Serialize photo - AttributeError: 'bytes' object has no attribute 'encode'

Hi,
I have been using vobject 0.7.1 with python 2.7 since 2008.  I am trying to update my script to python 3.5 with vobject 0.9.3.
I have a local file that I want to add to a vCard object.  The enclosed code below worked in the 2.7 version but fails now.
#!/usr/bin/env python

import base64
import os
import vobject
import unittest
import urllib.request

class TestVcardPhotoSerialize(unittest.TestCase):

    def setUp(self):
        self.card=vobject.vCard()
        self.card.add('n')
        self.card.n.value=vobject.vcard.Name(family="Thecat",given="Felix")
        self.card.add('fn')
        self.card.fn.value="Felix Thecat"
        if not os.path.isfile("felix-229.png"):
            urllib.request.urlretrieve("https://upload.wikimedia.org/wikipedia/commons/thumb/0/0f/Felix_the_cat.svg/229px-Felix_the_cat.svg.png","felix-229.png")

    def test_add_photo_serialize_27(self):
        """add a photo and serialize (worked with the python 2.7 version)"""
        self.card.add('photo')
        photo_fh=open("felix-229.png",'rb')
        self.card.photo.value = photo_fh.read()
        self.card.photo.encoding_param = "b"
        self.card.photo.type_param = "PNG"
        photo_fh.close()
        print(self.card.serialize())
        # AttributeError: 'bytes' object has no attribute 'encode'

if __name__ == '__main__':
    unittest.main()

Here is the log:
(ps2vcard) 172-17-96-87:ps2vcard matthew$ ./test_vcard_photo.py
EE
======================================================================
ERROR: test_add_photo_serialize_27 (__main__.TestVcardPhotoSerialize)
add a photo and serialize (worked with the python 2.7 version)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./test_vcard_photo.py", line 28, in test_add_photo_serialize_27
    print(self.card.serialize())
  File "/Users/matthew/Library/virtualenvs/ps2vcard/lib/python3.5/site-packages/vobject/base.py", line 255, in serialize
    return behavior.serialize(self, buf, lineLength, validate)
  File "/Users/matthew/Library/virtualenvs/ps2vcard/lib/python3.5/site-packages/vobject/behavior.py", line 162, in serialize
    out = base.defaultSerialize(transformed, buf, lineLength)
  File "/Users/matthew/Library/virtualenvs/ps2vcard/lib/python3.5/site-packages/vobject/base.py", line 993, in defaultSerialize
    child.serialize(outbuf, lineLength, validate=False)
  File "/Users/matthew/Library/virtualenvs/ps2vcard/lib/python3.5/site-packages/vobject/base.py", line 255, in serialize
    return behavior.serialize(self, buf, lineLength, validate)
  File "/Users/matthew/Library/virtualenvs/ps2vcard/lib/python3.5/site-packages/vobject/vcard.py", line 227, in serialize
    VCardTextBehavior.serialize(obj, buf, lineLength, validate)
  File "/Users/matthew/Library/virtualenvs/ps2vcard/lib/python3.5/site-packages/vobject/behavior.py", line 162, in serialize
    out = base.defaultSerialize(transformed, buf, lineLength)
  File "/Users/matthew/Library/virtualenvs/ps2vcard/lib/python3.5/site-packages/vobject/base.py", line 1001, in defaultSerialize
    obj.behavior.encode(obj)
  File "/Users/matthew/Library/virtualenvs/ps2vcard/lib/python3.5/site-packages/vobject/vcard.py", line 152, in encode
    line.value = codecs.encode(line.value.encode(coding), "base64").decode("utf-8")
AttributeError: 'bytes' object has no attribute 'encode'

What's the right way to do this now?

can you post the full traceback?

@wpercy Sure thing.  See edit.

Thanks! I'll be sure to look into it

@leingang this is fixed in the newest release, 0.9.4 - thanks for the heads up

Improved PEP8 compliance
Improved Python 3 compatibility
Improved encoding/decoding
Correct handling of pytz timezones
Added tests.py to the PyPi package

Thanks so much.  Works perfectly now.

I still hit this error with version <IP_ADDRESS> and the following vcard
BEGIN:VCARD
VERSION:3.0
UID:87jdz2q60li3cjuyx7656aa2s23g6uhtyuzc
<EMAIL_ADDRESS>FN:Cama Estoy
N:Estoy;Cama;;;
PHOTO;TYPE=JPEG;ENCODING=b:/9j/4AAQSkZJRgABAQEASA......
.....
UqVKh+wnu//9k=
REV:20170626T224828Z
END:VCARD

Get the following Trace:
2017-06-26 22:50:14,037 - [747ff460] ERROR: An exception occurred during request:
Traceback (most recent call last):
  File "/usr/lib/python3.4/wsgiref/handlers.py", line 137, in run
    self.result = application(self.environ, self.start_response)
  File "/usr/lib/python3.4/site-packages/radicale/__init__.py", line 425, in __call__
    environ, base_prefix, path, user)
  File "/usr/lib/python3.4/site-packages/radicale/__init__.py", line 691, in do_PUT
    new_item = parent_item.upload(href, items[0])
  File "/usr/lib/python3.4/site-packages/radicale/storage.py", line 662, in upload
    fd.write(item.serialize())
  File "/usr/lib/python3.4/site-packages/vobject/base.py", line 255, in serialize
    else:
  File "/usr/lib/python3.4/site-packages/vobject/behavior.py", line 162, in serialize
    else:
  File "/usr/lib/python3.4/site-packages/vobject/base.py", line 993, in defaultSerialize
    if obj.group is None:
  File "/usr/lib/python3.4/site-packages/vobject/base.py", line 255, in serialize
    else:
  File "/usr/lib/python3.4/site-packages/vobject/vcard.py", line 227, in serialize
  File "/usr/lib/python3.4/site-packages/vobject/behavior.py", line 162, in serialize
    else:
  File "/usr/lib/python3.4/site-packages/vobject/base.py", line 1001, in defaultSerialize
    # validate is recursive, we only need to validate once
  File "/usr/lib/python3.4/site-packages/vobject/vcard.py", line 152, in encode
    """
AttributeError: 'bytes' object has no attribute 'encode'

I'm sorry for the noise, It seems I hadn't restarted radicale after bumping vobject version. This issue is fine here.


google datastore how to fetch item in an array

PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.
How can I retrieve and update an element inside an array stored in datastore. I have an entitity called 2019-06-26. This entity have an array called houses. I want to update houses[3] in datastore, how do I do that? I find it impossible to find the right query.

Hello! You can try something like:
const key = datastore.key('2019-06-26')

datastore.get(key, (err, entity) => {
  // Locate and update the property
  entity.houses[3].status = 'PENDING'

  // Save the updated entity to Datastore
  datastore.save(entity, (err) => {
    if (err) {
      console.log('Entity update failed')
      return
    }

    console.log('Entity successfully updated')
  })
})

Let me know if there are any issues!


Change IP-Camera settings

How to change ip-camera settings like framerate , resolution ... etc , with onvif
Any help please.

There are media profiles, which describes VideoSourceConfiguration  you can check all of your device available profiles by calling GetProfiles method.  You can choose which profile u want use with <ProfileToken> argument in GetStreamUri method
for more check: http://www.onvif.org/ver10/media/wsdl/media.wsdl


feat: add android arm64 build

Summary
Should fix #249, #304 and #468  🤞
I also added in this PR two small fixes:

YAML formatting due to the schema.json was complaining about goarm being a list of integer and not strings
A deprecation notice regarding snapshot.name_template

How did you test this change?
I cannot properly test it due to my OS/Arch, but feel free to do a pre-release and ask for feedback in those issues.
Build seems to work fine on my machine:
> goreleaser release --snapshot --clean
  • skipping announce, publish and validate...
  • cleaning distribution directory
  • loading environment variables
  • getting and validating git state
    • git state                                      commit=cbe0aef1d6c8bc8c331d8f6b4d8df554931a876d branch=feat/support-android-arm current_tag=v4.7.1 previous_tag=v4.7.0 dirty=true
    • pipe skipped                                   reason=disabled during snapshot mode
  • parsing tag
  • setting defaults
  • snapshotting
    • building snapshot...                           version=4.7.2-next
  • running before hooks
    • running                                        hook=go mod tidy
  • ensuring distribution directory
  • setting up metadata
  • writing release metadata
  • loading go mod information
  • build prerequisites
  • checking go.mod
  • building binaries
    • building                                       binary=dist/gh-dash_linux_arm_7/gh-dash
    • building                                       binary=dist/gh-dash_freebsd_arm_7/gh-dash
    • building                                       binary=dist/gh-dash_freebsd_amd64_v1/gh-dash
    • building                                       binary=dist/gh-dash_freebsd_arm64_v8.0/gh-dash
    • building                                       binary=dist/gh-dash_freebsd_arm_6/gh-dash
    • building                                       binary=dist/gh-dash_android_arm64_v8.0/gh-dash
    • building                                       binary=dist/gh-dash_linux_arm_6/gh-dash
    • building                                       binary=dist/gh-dash_linux_arm64_v8.0/gh-dash
    • building                                       binary=dist/gh-dash_freebsd_386_sse2/gh-dash
    • building                                       binary=dist/gh-dash_linux_amd64_v1/gh-dash
    • building                                       binary=dist/gh-dash_linux_386_sse2/gh-dash
    • building                                       binary=dist/gh-dash_windows_amd64_v1/gh-dash.exe
    • building                                       binary=dist/gh-dash_windows_arm64_v8.0/gh-dash.exe
    • building                                       binary=dist/gh-dash_windows_arm_6/gh-dash.exe
    • building                                       binary=dist/gh-dash_windows_arm_7/gh-dash.exe
    • building                                       binary=dist/gh-dash_windows_386_sse2/gh-dash.exe
    • building                                       binary=dist/gh-dash_darwin_amd64_v1/gh-dash
    • building                                       binary=dist/gh-dash_darwin_arm64_v8.0/gh-dash
  • archives
    • skip archiving                                 binary=gh-dash name=gh-dash_v4.7.1_freebsd-arm_6
    • skip archiving                                 binary=gh-dash name=gh-dash_v4.7.1_linux-arm_6
    • skip archiving                                 binary=gh-dash.exe name=gh-dash_v4.7.1_windows-386.exe
    • skip archiving                                 binary=gh-dash.exe name=gh-dash_v4.7.1_windows-arm_6.exe
    • skip archiving                                 binary=gh-dash name=gh-dash_v4.7.1_darwin-amd64
    • skip archiving                                 binary=gh-dash.exe name=gh-dash_v4.7.1_windows-arm_7.exe
    • skip archiving                                 binary=gh-dash name=gh-dash_v4.7.1_freebsd-arm64
    • skip archiving                                 binary=gh-dash name=gh-dash_v4.7.1_linux-arm_7
    • skip archiving                                 binary=gh-dash name=gh-dash_v4.7.1_linux-amd64
    • skip archiving                                 binary=gh-dash.exe name=gh-dash_v4.7.1_windows-arm64.exe
    • skip archiving                                 binary=gh-dash name=gh-dash_v4.7.1_android-arm64
    • skip archiving                                 binary=gh-dash name=gh-dash_v4.7.1_freebsd-386
    • skip archiving                                 binary=gh-dash name=gh-dash_v4.7.1_linux-arm64
    • skip archiving                                 binary=gh-dash.exe name=gh-dash_v4.7.1_windows-amd64.exe
    • skip archiving                                 binary=gh-dash name=gh-dash_v4.7.1_freebsd-amd64
    • skip archiving                                 binary=gh-dash name=gh-dash_v4.7.1_freebsd-arm_7
    • skip archiving                                 binary=gh-dash name=gh-dash_v4.7.1_linux-386
    • skip archiving                                 binary=gh-dash name=gh-dash_v4.7.1_darwin-arm64
  • calculating checksums
  • writing artifacts metadata
  • release succeeded after 10s
  • thanks for using goreleaser!

Amazing thank you!
Do you have an android phone to verify this?


🐛 Bug Report: Docker Deployment Build Documentation Breaks Runtime $include

📜 Description
When I follow the documentation for docker deployment it errors because the $include file for the github app credentials only exists at runtime.
👍 Expected behavior
Build without issues and only evaluate $include be evaluated at runtime the same as environment variables (maybe?).
👎 Actual Behavior with Screenshots
yarn build:backend --config ../../app-config.yaml --config ../../app-config.production.yaml
Building app separately because it is a bundled package
app:
app:  Error: Failed to read config file at "/home/redline/Source/backstage/app-config.production.yaml", error at .integrations.github[0].apps[0], failed to include "/etc/secrets/github-app-credentials.yaml", file does not exist
app:
app:

Command 'yarn' exited with code 1

👟 Reproduction steps

Use @backstage/create-app
Add github app $include to app-config.production.yaml according to docs:
https://github.com/backstage/backstage/blob/master/docs/integrations/github/github-apps.md?plain=1#L90-L96
Build app locally according to docker docs:
https://github.com/backstage/backstage/blob/master/docs/deployment/docker.md?plain=1#L43-L50
Observe error above

📃 Provide the context for the Bug.
I obviously don't want to provide all my runtime credentials to the CI, so I am only injecting this file on Kubernetes via a secret volume. However it seems this doesn't work with the recommended docker guidance.
I previously did not include the production config because the docs didn't include it, but this was changed in this pr:
https://github.com/backstage/backstage/pull/26610/files#diff-40cc48381cba4cdf7d207ed887565c87e01856c80b13c31ad28b2b38bdcc98eaR50
There is no real justification why this was changed in the PR, but I think $include probably shouldn't fail the build either way.
🖥 Your Environment
OS:   Linux 6.10.11-200.fc40.x86_64 - linux/x64
node: v20.17.0
yarn: 4.5.0
cli:  0.27.1 (installed)
backstage:  1.31.1

Dependencies:
  @backstage/app-defaults                                          1.5.11
  @backstage/backend-app-api                                       1.0.0
  @backstage/backend-common                                        0.25.0
  @backstage/backend-defaults                                      0.5.0
  @backstage/backend-dev-utils                                     0.1.5
  @backstage/backend-openapi-utils                                 0.1.18
  @backstage/backend-plugin-api                                    1.0.0
  @backstage/backend-test-utils                                    1.0.0
  @backstage/catalog-client                                        1.7.0
  @backstage/catalog-model                                         1.7.0
  @backstage/cli-common                                            0.1.14
  @backstage/cli-node                                              0.2.8
  @backstage/cli                                                   0.27.1
  @backstage/config-loader                                         1.9.1
  @backstage/config                                                1.2.0
  @backstage/core-app-api                                          1.15.0
  @backstage/core-compat-api                                       0.3.0
  @backstage/core-components                                       0.15.0
  @backstage/core-plugin-api                                       1.9.4
  @backstage/e2e-test-utils                                        0.1.1
  @backstage/errors                                                1.2.4
  @backstage/eslint-plugin                                         0.1.9
  @backstage/frontend-plugin-api                                   0.8.0
  @backstage/integration-aws-node                                  0.1.12
  @backstage/integration-react                                     1.1.31
  @backstage/integration                                           1.15.0
  @backstage/plugin-api-docs                                       0.11.9
  @backstage/plugin-app-backend                                    0.3.75
  @backstage/plugin-app-node                                       0.1.25
  @backstage/plugin-auth-backend-module-atlassian-provider         0.3.0
  @backstage/plugin-auth-backend-module-auth0-provider             0.1.0
  @backstage/plugin-auth-backend-module-aws-alb-provider           0.2.0
  @backstage/plugin-auth-backend-module-azure-easyauth-provider    0.2.0
  @backstage/plugin-auth-backend-module-bitbucket-provider         0.2.0
  @backstage/plugin-auth-backend-module-bitbucket-server-provider  0.1.0
  @backstage/plugin-auth-backend-module-cloudflare-access-provider 0.3.0
  @backstage/plugin-auth-backend-module-gcp-iap-provider           0.3.0
  @backstage/plugin-auth-backend-module-github-provider            0.2.0
  @backstage/plugin-auth-backend-module-gitlab-provider            0.2.0
  @backstage/plugin-auth-backend-module-google-provider            0.2.0
  @backstage/plugin-auth-backend-module-guest-provider             0.2.0
  @backstage/plugin-auth-backend-module-microsoft-provider         0.2.0
  @backstage/plugin-auth-backend-module-oauth2-provider            0.3.0
  @backstage/plugin-auth-backend-module-oauth2-proxy-provider      0.2.0
  @backstage/plugin-auth-backend-module-oidc-provider              0.3.0
  @backstage/plugin-auth-backend-module-okta-provider              0.1.0
  @backstage/plugin-auth-backend-module-onelogin-provider          0.2.0
  @backstage/plugin-auth-backend                                   0.23.0
  @backstage/plugin-auth-node                                      0.5.2
  @backstage/plugin-auth-react                                     0.1.6
  @backstage/plugin-bitbucket-cloud-common                         0.2.23
  @backstage/plugin-catalog-backend-module-github-org              0.3.1
  @backstage/plugin-catalog-backend-module-github                  0.7.4
  @backstage/plugin-catalog-backend-module-logs                    0.1.0
  @backstage/plugin-catalog-backend-module-scaffolder-entity-model 0.2.0
  @backstage/plugin-catalog-backend                                1.26.1
  @backstage/plugin-catalog-common                                 1.1.0
  @backstage/plugin-catalog-graph                                  0.4.9
  @backstage/plugin-catalog-import                                 0.12.3
  @backstage/plugin-catalog-node                                   1.13.0
  @backstage/plugin-catalog-react                                  1.13.0
  @backstage/plugin-catalog                                        1.23.0
  @backstage/plugin-events-node                                    0.4.0
  @backstage/plugin-home-react                                     0.1.17
  @backstage/plugin-home                                           0.7.10
  @backstage/plugin-org                                            0.6.29
  @backstage/plugin-permission-backend-module-allow-all-policy     0.2.0
  @backstage/plugin-permission-backend                             0.5.49
  @backstage/plugin-permission-common                              0.8.1
  @backstage/plugin-permission-node                                0.8.3
  @backstage/plugin-permission-react                               0.4.26
  @backstage/plugin-proxy-backend                                  0.5.6
  @backstage/plugin-scaffolder-backend-module-azure                0.2.0
  @backstage/plugin-scaffolder-backend-module-bitbucket-cloud      0.2.0
  @backstage/plugin-scaffolder-backend-module-bitbucket-server     0.2.0
  @backstage/plugin-scaffolder-backend-module-bitbucket            0.3.0
  @backstage/plugin-scaffolder-backend-module-gerrit               0.2.0
  @backstage/plugin-scaffolder-backend-module-gitea                0.2.0
  @backstage/plugin-scaffolder-backend-module-github               0.5.0
  @backstage/plugin-scaffolder-backend-module-gitlab               0.5.0
  @backstage/plugin-scaffolder-backend                             1.25.0
  @backstage/plugin-scaffolder-common                              1.5.6
  @backstage/plugin-scaffolder-node                                0.4.11
  @backstage/plugin-scaffolder-react                               1.12.0
  @backstage/plugin-scaffolder                                     1.25.0
  @backstage/plugin-search-backend-module-catalog                  0.2.2
  @backstage/plugin-search-backend-module-pg                       0.5.35
  @backstage/plugin-search-backend-module-techdocs                 0.2.2
  @backstage/plugin-search-backend-node                            1.3.2
  @backstage/plugin-search-backend                                 1.5.17
  @backstage/plugin-search-common                                  1.2.14
  @backstage/plugin-search-react                                   1.8.0
  @backstage/plugin-search                                         1.4.16
  @backstage/plugin-signals-react                                  0.0.5
  @backstage/plugin-techdocs-backend                               1.10.13
  @backstage/plugin-techdocs-common                                0.1.0
  @backstage/plugin-techdocs-module-addons-contrib                 1.1.14
  @backstage/plugin-techdocs-node                                  1.12.11
  @backstage/plugin-techdocs-react                                 1.2.8
  @backstage/plugin-techdocs                                       1.10.9
  @backstage/plugin-user-settings-common                           0.0.1
  @backstage/plugin-user-settings                                  0.8.12
  @backstage/release-manifests                                     0.0.11
  @backstage/test-utils                                            1.6.0
  @backstage/theme                                                 0.5.7
  @backstage/types                                                 1.1.1
  @backstage/version-bridge                                        1.0.9

👀 Have you spent some time to check if this bug has been raised before?

[X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

[X] I have read the Code of Conduct

Are you willing to submit PR?
Yes I am willing to submit a PR!

Hi @RedlineTriad, sorry I don't have a solution to this issue, very much a valid problem.
As the person who changed the docs around this recently I wanted to help clarify: "There is no real justification why this was changed in the PR, but I think $include probably shouldn't fail the build either way". I probably should have broken out these changes so that's a fair call out.
I was trying to reconcile this comment - "# The configuration files here should match the one you use inside the Dockerfile below." - with the command being referenced. With the docs as they are now they all line up with this: CMD ["node", "packages/backend", "--config", "app-config.yaml", "--config", "app-config.production.yaml"].
Hope that helps clear up the intention?

Hmm, with the changes in #26389 we don't actually need the config present when building the backend anyway. I think the best fix here is to skip this --config args for the backend build. Do you want to help get that sorted @RedlineTriad? 🙏

Hmm, with the changes in #26389 we don't actually need the config present when building the backend anyway. I think the best fix here is to skip this --config args for the backend build. Do you want to help get that sorted @RedlineTriad? 🙏

Would just require removing the config flags from the build instructions right? If so I can make a PR.

@RedlineTriad yep, thank you! 👍


Create editRole command

Handle editing of a role in a filtered and unfiltered company list

EditRoleCommand class to handle the command and execution of editing role

EditRoleCommandParser class to handle the input from the user

ParserUtil.parseDoubleIndexWithContent method to handle two indexes and role information from the user's input

EditRoleDescriptionBuilder class to assist in testing EditRoleCommand

Fix checkstyle error

To do next:

continue testing for the command class
Testing for parser class
Testing for parseDoubleIndexWithContent method

Codecov Report

Merging #118 (5ab82e7) into master (4ab3fc9) will decrease coverage by 1.06%.
The diff coverage is 41.00%.

@@             Coverage Diff              @@
##             master     #118      +/-   ##
============================================
- Coverage     70.09%   69.02%   -1.07%
- Complexity      540      563      +23
============================================
  Files            90       92       +2
  Lines          1719     1834     +115
  Branches        190      216      +26
============================================
+ Hits           1205     1266      +61
- Misses          454      494      +40
- Partials         60       74      +14

Impacted Files
Coverage Δ

.../seedu/address/logic/parser/AddressBookParser.java
80.00% <0.00%> (-4.22%)
:arrow_down:

...du/address/logic/parser/EditRoleCommandParser.java
0.00% <0.00%> (ø)

...in/java/seedu/address/logic/parser/ParserUtil.java
82.27% <0.00%> (-6.77%)
:arrow_down:

.../seedu/address/logic/commands/EditRoleCommand.java
64.06% <64.06%> (ø)

.../model/role/RoleNameContainsKeywordsPredicate.java
70.00% <0.00%> (-17.50%)
:arrow_down:

.../company/CompanyNameContainsKeywordsPredicate.java
80.00% <0.00%> (-8.89%)
:arrow_down:

...rc/main/java/seedu/address/model/ModelManager.java
94.23% <0.00%> (-5.77%)
:arrow_down:

...eedu/address/logic/commands/AddCompanyCommand.java
100.00% <0.00%> (ø)

src/main/java/seedu/address/model/role/Role.java
87.50% <0.00%> (+2.50%)
:arrow_up:

.../seedu/address/logic/parser/FindCommandParser.java
69.56% <0.00%> (+5.92%)
:arrow_up:

... and 3 more

Continue to review full report at Codecov.

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


Database Migration Assistant (DMA) SQL Assessment Console page states minimum req of .NET Core 3.1 but .NET 6.0 is required for SqlAssessment.exe v<IP_ADDRESS> (2023-08-14 build)

https://learn.microsoft.com/en-us/sql/dma/dma-sku-recommend-sql-db?view=sql-server-ver16
States:

Prerequisites

Download and install the latest version of DMA. If you have already an earlier version of the tool, open it, and you'll be prompted to upgrade DMA.
Install the minimum version .NET Core 3.1 on the tools machine where the SKU recommendations console application is running.
Ensure the account used to connect to your SQL Server on-premises source has sysadmin permission.

However, attempting to run the DMA SqlAssessment.exe console application with only .NET Core 3.1 Runtime installed returns the following error:

It was not possible to find any compatible framework version
The framework 'Microsoft.NETCore.App', version '6.0.0' was not found.

The following frameworks were found:
3.1.32 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

You can resolve the problem by installing the specified framework and/or SDK.
The specified framework can be found at:

https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=6.0.0&arch=x64&rid=win10-x64

Please update the docs to correctly reference and link to .NET 6 instead.
https://dotnet.microsoft.com/en-us/download/dotnet/6.0/runtime
Tagging @ajithkr-ms as page owner.

Edit: It appears it must be exactly .NET 6. Having only .NET 7 Runtime installed returns the following error:

You must install or update .NET to run this application.
App: C:\Program Files\Microsoft Data Migration Assistant\SqlAssessmentConsole\SqlAssessment.exe
Architecture: x64
Framework: 'Microsoft.NETCore.App', version '6.0.0' (x64)
.NET location: C:\Program Files\dotnet\
The following frameworks were found:
7.0.10 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Learn about framework resolution:
https://aka.ms/dotnet/app-launch-failed
To install missing framework, download:
https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=6.0.0&arch=x64&rid=win10-x64

Thanks, @scarson. We'll have a refreshed article published in the next day or so.


add max-width to BigValue titles

Resolves #494

Add a max-width to BigValue comparison titles
Left align title to end of Value rather than start

Before:

After:

Hey, sorry if this is unclear in the issue.
The issue we're most worried about here is when the text is "too short" not "too long".
This stackblitz hopefully is a better explanation: https://stackblitz.com/edit/evidence-patpt5?file=pages%2Findex.md

Thanks for the stackblitz, that helped clear things up more.
This time, I applied the min-width to the container instead of just the comparison title.
Before:

After:

However, I wonder if adding a max-width would still be ideal for longer titles/numbers?
Example of long title with min-width and max-width:

I think I dislike the titles spilling across lines as it ruins the horizontal alignment of the BigValue numbers.
I think in that case we should probably just let the thing run.
From a user perspective they then have a choice:

Either shorten the title so that the components are evenly spaced
Or, if you need the longer title, you keep it

We could expose the prop to the user to allow them to override the min-width with a larger value in cases where they want to have generally longer titles, but still keep alignment.
WDYT?

I like the idea of exposing min-width as a prop. I think it gives more control to the user. I can make the min-width I set as a default for it.
I also think adding a max-width as an optional prop would be nice too. I think it's better to let the user decide how they want to format their titles and worry less about how short the title should be.

^ Sounds perfect 👍🏼

Ok, I added style props for both min-width and max-with. The defaults are 25% and none respectively. As well, I updated the documentation for BigValue.

Excellent
I've done:

Reduced the min-width default to 18%: allows you to stack 4 in wider viewports, given the default padding.

Can you:

Add a changeset: https://github.com/evidence-dev/evidence/blob/main/CONTRIBUTING.md#adding-a-changeset

Two related questions about the props:

Defining the min-width and max-width props at ::root - I'm not a css expert here, but does this mean they are global styles that would be accessible to anything in the page?
I see to edit the min and max width, you have to add them as css style props --max-width, rather than js style props maxWidth - for the rest of our components, when we expose props we are using js type props, even if they are for styling purposes. For example see the exported props in the DataTable

Ok, I've added a changeset and switched it to use JS props. Docs also updated accordingly.
Good catch about the use of :root! I incorrectly thought Svelte also scopes it to just that component.
By changing it to JS style props,  the :root reference is no longer needed.


Use AYON prefix in context environment variables

Changelog Description
Environment variables which define context now have AYON_ prefix.
Additional info
Renamed used environment variables.

AVALON_PROJECT -> AYON_PROJECT_NAME
AVALON_ASSET -> AYON_FOLDER_PATH
AVALON_TASK -> AYON_TASK_NAME
AVALON_APP_NAME -> AYON_APP_NAME
AVALON_APP -> AYON_HOST_NAME
AVALON_WORKDIR -> AYON_WORKDIR
AVALON_LAST_WORKFILE -> AYON_LAST_WORKFILE

Added conversion of the keys to farm publishing (to not break old jobs). But jobs from this PR won't work on older ayon-core.
Session data for launcher actions still support AVALON_* keys too, so actions from other addons should still work.
Testing notes:
Most important test is if this works with old farm jobs.

Create job with older ayon-core.
Suspend the job.
Copy new deadline plugin to deadline repository.
Create job with older ayon-core.
Update ayon-core to this PR.
Resume the job.
It should publish fine.

I've submitted a job with old ayon-core + new GlobalJobPreLoad.py and got this error.
Error: Global job preload script 'C:\ProgramData\Thinkbox\Deadline10\workers\Major-Kalawy\plugins\65ca5f4f531db7c24ca6a500\GlobalJobPreLoad.py': ValueError : too many values to unpack (expected 2) (FranticX.Scripting.PythonNetException)
  File "C:\ProgramData\Thinkbox\Deadline10\workers\Major-Kalawy\plugins\65ca5f4f531db7c24ca6a500\GlobalJobPreLoad.py", line 638, in __main__
    inject_ayon_environment(deadlinePlugin)
  File "C:\ProgramData\Thinkbox\Deadline10\workers\Major-Kalawy\plugins\65ca5f4f531db7c24ca6a500\GlobalJobPreLoad.py", line 481, in inject_ayon_environment
    "app": ["AYON_APP_NAME", "AVALON_APP_NAME"],
   at Python.Runtime.PyObject.Invoke(PyObject[] args)
   at Python.Runtime.PyObject.InvokeMethod(String name, PyObject[] args)
   at FranticX.Scripting.PythonNetScriptEngine.CallFunction(String moduleName, String functionName, Object[] args)
   at Deadline.Plugins.PluginWrapper.d()
   at Deadline.Plugins.PluginWrapper.StartJob(String& outMessage, AbortLevel& abortLevel)
.
.
.
.
2024-02-12 20:11:53:  0: PYTHON: *** GlobalJobPreload start ...
2024-02-12 20:11:53:  0: PYTHON: >>> Getting job ...
2024-02-12 20:11:53:  0: PYTHON: >>> Injecting AYON environments ...
2024-02-12 20:11:53:  0: PYTHON: --- Ayon executable: E:\Ynput\ayon-launcher\tools\ayon_console.bat
2024-02-12 20:11:53:  0: PYTHON: >>> Temporary path: C:\Users\MUSTAF~1\AppData\Local\Temp\20240212181153842189_3371bb4c-c9d2-11ee-96ef-f02f74db125e.json
2024-02-12 20:11:53:  0: PYTHON: Traceback (most recent call last):
2024-02-12 20:11:53:  0: PYTHON:   File "C:\ProgramData\Thinkbox\Deadline10\workers\Major-Kalawy\plugins\65ca5f4f531db7c24ca6a500\GlobalJobPreLoad.py", line 481, in inject_ayon_environment
2024-02-12 20:11:53:  0: PYTHON:     "app": ["AYON_APP_NAME", "AVALON_APP_NAME"],
2024-02-12 20:11:53:  0: PYTHON: ValueError: too many values to unpack (expected 2)
2024-02-12 20:11:53:  0: PYTHON: !!! Injection failed.

While we at it.. could you please add a version in the GlobalJobPreLoad.py 😭?

Will create PR for that.


[Documentation] No information on the parameters that need to be passed in the SQL connector

Following is available on the ballerina by example site. But no details on what the parameters are.
 sql:ClientConnector empDB = create sql:ClientConnector(sql:MYSQL, "localhost", 3306, "db", "sa", "root", properties);

These details can be found in API doc [1]
[1] https://ballerinalang.org/docs/api/0.93/ballerina.data.sql.html#ClientConnector


game no work

game is literally just a white screen when i try to open it. it instantly crashes when i try to run the code. i have downloaded sound in library, i have every .pde in the sketch, i cant figure out how to fix the game. please help

Are there any errors in the code? Also, what platform & architecture are you on?


Failed to parse model JSON of response from ./models/blazeface.json

I have this issue in production
Failed to parse model JSON of response from ./models/blazeface.json. Please make sure the server is serving valid JSON for this request.
I checked the demo site today, and the demo has the same problem
i think is the same problem of #4

can you fix the issue


encodeNonASCII is actually encodeNonExtendedASCII

http://en.wikipedia.org/wiki/Extended_ASCII
would be nice to have a real encodeNonASCII as well as a encodeNonUTF8.
I will try to add this when I get a chance.

Hello! Feel free to contribute this feature!


fix: Added dropdown to select whether to send credentials in header or body in client credentials flow

Description
We were missing the option to select between body and header while sending credentials in the client credentials flow. This fix introduces the dropdown and maintains the default of sending as body for existing APIs.
Fixes #14218
Type of change

Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Manually tested by hitting a mock endpoint with both settings
JUnit tests for both settings
Cypress test to check for correct form rendering and default option to send as body selected

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes

/ok-to-test sha=dfa5af3

Cypress tests look good to me.

/ok-to-test sha=b587e8b

Merging in because tests have passed but ui-test-result won't update.


Detect version update

Please verify the following:

[x] Everything works on iOS/Android
[x] ignite-base ava tests pass
[x] fireDrill.sh passed

Describe your PR
Cli now automatically detect version updates.
With  update-notifier.
Close #240

Have you found a good way to test this?  I pulled your branch down and I've lowered the version number and ran ignite doctor expecting it to alert me. But alas, it does not.

Any way to test?

Have you already tried the command before changing the package version ? If yes there is a cache in update notifier, it will check for an update and if no updates found it will only recheck on npm 24 hours after (https://github.com/yeoman/update-notifier#updatecheckinterval).
You can disable cache by comenting L84 to 86 in node_modules/update-notifier/inde.js

This might be wrong @GantMan, but you're not npm link'ing your Ignite are ya?

Also doctor take the global installed version of ignite and update-notifier will take the version of you local package.json so you don't need to have your global ignite lowered.
As you can see on the picture I posted upper I have a gloabl 1.6.1 ignite version but I put ignite to 1.5.2 in my local package.json.

LGTM!  👍
And @skellock - it's called "Big ol head" font.   Ok, not really.


Appstudio update test-component-pac-uhgo

Pipelines as Code configuration proposal

Pipelines as Code CI/test-component-pac-uhgo-on-pull-request has failed.

StatusDurationName

❌ Failed
38 seconds
init

Failure reasontask init has the status "TaskRunImagePullFailed":
The step "init" in TaskRun "test-component-pac-uhgo-on-pull-request-ljm57-init" failed to pull the image "". The pod errored with the message: "Back-off pulling image "registry.redhat.io/openshift4/ose-tools-rhel8:v4.12@sha256:253d042ecfad7b64593112a4aa3f528d39cb5fe738852e44f009db87964cf051"."

Pipelines as Code CI/test-component-pac-uhgo-on-pull-request has failed.

StatusDurationName

❌ Failed
38 seconds
init

Failure reasontask init has the status "TaskRunImagePullFailed":
The step "init" in TaskRun "test-component-pac-uhgo-on-pull-request-ljm57-init" failed to pull the image "". The pod errored with the message: "Back-off pulling image "registry.redhat.io/openshift4/ose-tools-rhel8:v4.12@sha256:253d042ecfad7b64593112a4aa3f528d39cb5fe738852e44f009db87964cf051"."


New org assigned to Gabriel Bobis: Responsible AI Institute

Ready. Check https://github.com/riceissa/aiwatch/commit/d55fecf61b146d3f505415ff6ce347bbdba5c41b

The positions of this organization have been visible only since August 2021, when a change occurred in the URLs from "who-we-are/#team" to "about." The organization shows temporal gaps, but the information is otherwise complete, with two particular details: first, the entire team listed as "Member" on LinkedIn does not appear on the website, so the data is solely based on LinkedIn.
As for the Expert Advisors, many of them do not mention their work with the organization on their LinkedIn profiles. I was able to accurately determine their start dates, as they did not appear one month but were listed the next. However, these dates do not align with those who do mention their experience with the organization on LinkedIn. Therefore, I am not entirely confident about the information provided, but I relied on Wayback updates.
Responsible AI Institute (RAI Institute) focuses on the "AI safety" cause area due to its emphasis on the implementation of standards, assessments, and certifications aimed at mitigating risks and ensuring that artificial intelligence systems are developed and deployed in a safe and ethical manner.


pull request list head query parameter. Missing organization/repo:ref…

…-name
See the difference between executing
curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/kiegroup/droolsjbpm-integration/pulls?head=sutaakar:7.67.x-JBPM-10042  | jq length
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 21389    0 21389    0     0  49283      0 --:--:-- --:--:-- --:--:-- 49170
1

curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/kiegroup/droolsjbpm-integration/pulls?head=7.67.x-JBPM-10042  | jq length
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  620k    0  620k    0     0   467k      0 --:--:--  0:00:01 --:--:--  467k
30

curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/kiegroup/droolsjbpm-integration/pulls?head=whatever  | jq length
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  620k    0  620k    0     0   473k      0 --:--:--  0:00:01 --:--:--  473k
30

So the problem for grgrzybek:ggrzybek-test-PR still persists (probably because it has been renamed, but this something I can only speculate with without checking your code), see
curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/kiegroup/droolsjbpm-integration/pulls?head=grgrzybek:ggrzybek-test-PR  | jq length
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100     5  100     5    0     0     15      0 --:--:-- --:--:-- --:--:--    15

The solution is about to
$ curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/kiegroup/droolsjbpm-integration/pulls?head=grgrzybek/kiegroup-droolsjbpm-integration:ggrzybek-test-PR | jq length
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 22337    0 22337    0     0  47424      0 --:--:-- --:--:-- --:--:-- 47424
1

So https://api.github.com/repos/kiegroup/droolsjbpm-integration/pulls?head=sourceGroup:sourceBranch should be replaced by https://api.github.com/repos/kiegroup/droolsjbpm-integration/pulls?head=sourceGroup/sourceRepository:sourceBranch

Why:
Closes [issue link]

What's being changed:

Check off the following:

[ ] I have reviewed my changes in staging (look for "Automatically generated comment" and click Modified to view your latest changes).
[ ] For content changes, I have completed the self-review checklist.

Writer impact (This section is for GitHub staff members only):

[ ] This pull request impacts the contribution experience

[ ] I have added the 'writer impact' label
[ ] I have added a description and/or a video demo of the changes below (e.g. a "before and after video")

@Ginxo We don't accept changes made to the files in this comment so I am going to close this PR now 💛. You can open an issue in this public API description repo.
Thanks so much for your contributions in improving the GitHub docs 💖


Encountered an internal AutoML error - PipelineRunException: No group keys passed

I have created pipeline using python sdk AutoML for data preparation,AutoML training and deploy as endpoint url with scheduler option. It was working as expected for past day. Today i tried to create new pipline at the AutoML model creation I got error as "PipelineRunException: No group keys passed!" , Tried with different conda environment and also with new compute instance. Still that issue persist.
"message": "Encountered an internal AutoML error. Error Message/Code: PipelineRunException. Additional Info: PipelineRunException:\n\tMessage: PipelineRunException: No group keys passed!\n\tInnerException: None\n\tErrorResponse \n{\n "error": {\n "message": "PipelineRunException: No group keys passed!"\n }\n}",
"message_format": "Encountered an internal AutoML error. Error Message/Code: PipelineRunException. Additional Info: {error_details}"
Please suggest what needs to be done. Any help appreciated !

@dhgokul Thank you for raising this issue. Unfortunately, this forum is only for documentation issues and not functionality issues. But such functionality issues are investigated at Microsoft Graph Q&A. Please share the link in case of issue related with any tutorial or document you are following.

As we don't have any updates regarding this issue, so closing this thread.

FYI This issue is related to the Azure team. Fix will be released within a week or so for all regions. Confirmed with Microsoft team


Downloading courses posted by organization

There's a directory change when downloading content that is posted by an organization using LinkedIn Learning - there's a /video/ before the slug from the users perspective, and a few directories looking at the same video from the administrator's perspective. Example:
Learner: /learning/videos/41967568?autoplay=true&u=111959436
Admin: /learning-admin/content/custom-content/2198203?account=111959436
Currently llvd cannot ID the video when providing the slug.

Thanks for letting me know


Potential bug "pi is None"

            for pi in range(len(pins)):
                net = pins[pi]
                if pi is None:
                    continue

Should this be if net is None: ?
https://github.com/tdene/synth_opt_adders/blob/main/src/pptrees/ExpressionNode.py#L375

pn is an awful name. I need to global-replace that variable name with pin_name.
But yes! I had to walk through the logic to make sure, but yeah, that was a typo. Thanks for the catch!
Luckily, that faulty if statement would only get triggered if two nodes get partially (but not fully) disconnected, which is not something currently possible (nor do I think it ever will be, but might as well account for it).
Thanks, fixed, will push the patch through today and getting some more fixes in.


Input changing direction to rtl annoying especially when content is not rtl.

Does this issue occur when all extensions are disabled?: Yes/No

VS Code Version: 1.56.2
OS Version: Windows_NT x64 10.0.19041

Steps to Reproduce:

Open search in an editor
Change keyboard to rtl language like hebrew / arabic
Change keyboard back
The input stays as dir='rtl' even if the content is english
To fix would like a setting for inputs to always be ltr

These are native Chromium input boxes, I'm not sure what we should do here -- cc @deepak1556 @bpasero

I'm not sure either, is it a bug within chromium?
And likewise I do not know what character input causes the input or textarea to change to have attribute dir=rtl>
I noticed that setting dir='ltr' with rtl content messes up the cursor position.
I would just add enum setting for inputDirection to be ['auto', 'ltr', 'rtl']
See https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/dir

I'll let you know if I notice it this bug again, not noticed all today. Developer: Reload Window.

I realise it is pressing Ctrl + RightShift causes this, and to reverse you press Ctrl + LeftShift. I must be hitting this in one of my keyboard shortcuts whilst being focused on an input. Mystery solved.


feat: inview threshold

fix thresholds and rootMargin to a few variations only

:tada: This PR is included in version 0.10.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Is it possible to store the current step in the database / session and restore it when the user comes back ?

Hello !
Simple question: Is it possible to store the current state of the form in the session / database so that if the user leaves, when they comes back they can continue filling the form ?
Thanks a lot for this bundle ! It is awesome :)

See issue #376, I create a new button to save the progress of the form. Might help you get started.


Vnet integration to connect Azure App Service to SQL MI

Hi,
Can you please let me know what service plan is required to connect App Service to SQL  MI over private endpoint? This documentations seems to be confusing. For regional Vnet integration, it says Standard plan is required. However, under limitations it says premium plan is required.
In my scenario, app service(Standard), vNet, SQL MI all are in same region. However, vNet integration wizard is not allowing to configure.
Thanks,
P
Edited: Added metadata info

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

ID: a7a98803-1438-b1b5-f543-7dd88bc4294e
Version Independent ID: 37ff1d0f-ed8e-5e4d-1f4c-1b9f6cffb938
Content: Integrate app with Azure Virtual Network - Azure App Service
Content Source: articles/app-service/web-sites-integrate-with-vnet.md
Service: app-service
GitHub Login: @ccompy
Microsoft Alias: ccompy

@pmummi,  Thanks for levering Azure docs feedback channel to raise this question. Could you also please share the Azure documentation for which this feedback is applicable to?

Thank you @AjayKumar-MSFT for getting back on this.
As per below document, to connect SQL MI from App service, we need to do vNet integration.
https://docs.microsoft.com/en-us/azure/sql-database/sql-database-managed-instance-connect-app
As per below document, it needs minimum Standard ASP to do regional vNet integration.
https://docs.microsoft.com/en-us/azure/app-service/web-sites-integrate-with-vnet
So, Can you please check and let me know what app service plan is required to connect App Service to SQL MI over private endpoint?

@pmummi, Apologies for the delay!
Thanks for sharing additional details on this.
Yes, for Regional VNet Integration, your Webapp must be in a Standard, Premium, PremiumV2 or Elastic Premium App Service plan.
I believe you're referring to this line in the document section 'Regional VNet Integration' "There are some limitations with using VNet Integration with VNets in the same region:"
"The feature is available only from newer Azure App Service scale units that support PremiumV2 App Service plans.
To see if additional clarification is required, your feedback has been shared with the content owner  (@ccompy) for further review.

@AjayKumar-MSFT , @ccompy ,
Thank you @AjayKumar-MSFT for getting back on this.
I am still confused. My scenario is very simple. I have a Standard App Service in Region A. I have a SQL MI, vNet in the same region. Can i use this SQL MI as database for my app service?
I will gather the requested details and share with you.
Thanks,
Prathap

@pmummi,  For your scenario, use regional VNet integration and Standard App Service Plan should work.
To isolate the issue on the configuration, this doc highlights on how to call to private endpoints - https://docs.microsoft.com/azure/app-service/web-sites-integrate-with-vnet#regional-vnet-integration , kindly review these settings and then check.
Azure DNS Private Zones : After your app integrates with your VNet, it uses the same DNS server that your VNet is configured with. By default, your app won't work with Azure DNS Private Zones. To work with Azure DNS Private Zones you need to add the following app settings:

WEBSITE_DNS_SERVER with value <IP_ADDRESS>
WEBSITE_VNET_ROUTE_ALL with value 1

These settings will send all of your outbound calls from your app into your VNet in addition to enabling your app to use Azure DNS private zones.
Private endpoints : If you want to make calls to Private Endpoints, then you need to either integrate with Azure DNS Private Zones or manage the private endpoint in the DNS server used by your app.
Since this is not specific to the documentation feedback, we will now proceed to close this thread.
In case the issue still persists and please send an email to AzCommunity[at]Microsoft[dot]com referencing this thread and the Azure subscription ID, I will follow-up with you further.
Thanks for your patience and co-operation!


getCountQuery doesn't respect distinct flag

It seems our getCountQuery implementation doesn't respect the distinct flag i.e. it should construct a count(distinct ...) for the select list in that case. Also, it can't work when group by and distinct are combined.

QueryDSL has a fetchCount() method as well. We've struggled with count queries with a HAVING clause as well (in particular having clauses that can't be expressed as a where clause, i.e. having clauses with an aggregate function in it). I suppose these are troublesome for Blaze-Persist then as well?

You mean that QueryDSL had issues with fetchCount with queries that uses group by and having predicates that contain aggregate functions? Would be interesting to know what was problematic so I can add tests for that.

As @jwgmeligmeyling mentioned, something like the following SELECT a.key, sum(a.value) FROM Entity a HAVING sum(a.value) > 0 will need query wrapping. We will implement a count query for such queries and distinct queries like SELECT (select count(*) from (...) x) from ValuesEntity e

I've just done a couple of tests in CountQueryTest against the current master, and they all worked flawlessly.
The scenario's I've tested:

Having clause that cannot be expressed as a where clause, and thus requires a subquery
Group by clause that is entropy increasing
Count distinct on multiple columns

My scenario's were as follows, if you're interested in any of them let me know, then I'll provide them as patch. 👍  I wasn't sure for which of these scenarios tests already exist.
@Test
public void testCountWithHavingClauseThatCannotBeExpressedAsWhereClause() {
    CriteriaBuilder<Tuple> crit = cbf.create(em, Tuple.class)
            .from(Person.class, "owner")
            .leftJoin("owner.ownedDocuments", "d")
            .select("owner.id")
            .select("count(d.id)")
            .groupBy("owner.id")
            .having("count(d.id)").gtExpression("3");

    final Long expected = (long) crit.getResultList().size();
    final Long actual = crit.getCountQuery().getSingleResult();
    assertEquals(expected, actual);
}

@Test
public void testCountWithGroupByClauseThatCannotBeRemoved() {
    CriteriaBuilder<Tuple> crit = cbf.create(em, Tuple.class)
            .from(Person.class, "owner")
            .leftJoin("owner.ownedDocuments", "d")
            .select("count(d.id)")
            .groupBy("CASE WHEN d.id < 2 THEN TRUE ELSE FALSE END");

    final Long expected = (long) crit.getResultList().size();
    final Long actual = crit.getCountQuery().getSingleResult();
    assertEquals(expected, actual);
}

@Test
public void testCountDistinctWithGroupByClauseThatCannotBeRemoved() {
    CriteriaBuilder<Tuple> crit = cbf.create(em, Tuple.class)
            .from(Person.class, "owner")
            .leftJoin("owner.ownedDocuments", "d")
            .distinct()
            .select("owner.id")
            .select("min(d.id)");

    final Long expected = (long) crit.getResultList().size();
    final Long actual = crit.getCountQuery().getSingleResult();
    assertEquals(expected, actual);
}

Thanks for testing! I think these cases are covered by the following testsuite methods:

testCountWithHavingClauseThatCannotBeExpressedAsWhereClause is covered by com.blazebit.persistence.testsuite.CountQueryTest#countQueryFromHavingQuery
testCountWithGroupByClauseThatCannotBeRemoved is covered by com.blazebit.persistence.testsuite.CountQueryTest#countQueryWithGroupBy
testCountDistinctWithGroupByClauseThatCannotBeRemoved is covered by com.blazebit.persistence.testsuite.CountQueryTest#countQueryWithDistinct


Fix auto-remove not working in toast.dismiss()

The toast.dismiss(toastId) function didn't work as intended (Auto-remove after 1 second by default).
The DOM tree of toast bars persist until the end of duration which would block the background elements during the time span. It's more noticeably if you have a long duration.

Thanks for finding & fixing this issue. One thing I want to check before merging is if we can prevent duplication in the useToaster hook, which also has this logic built-in.

Thanks for finding & fixing this issue. One thing I want to check before merging is if we can prevent duplication in the useToaster hook, which also has this logic built-in.

I extracted the duplicated code and put them into util file. Let me know what you think.

I extracted the duplicated code and put them into util file. Let me know what you think.

Thanks for your help! I moved the logic back where you initially placed it. I prefer not having any business logic inside the utils file.
I settled with using toast.dismiss() inside the useToaster() hook, which should work just fine.

Thanks for your help! I moved the logic back where you initially placed it. I prefer not having any business logic inside the utils file.
I settled with using toast.dismiss() inside the useToaster() hook, which should work just fine.

Love this library!
I don't think this issue was fixed. When I call toast.dismiss(<a_toast_id>) I see the div sticking around for quite some time. Unfortunately this means what the toast was covering (and some large space around the toast) is un clickable on my site.
Here is an example
https://user-images.githubusercontent.com/46989410/110065814-47690f80-7d2d-11eb-947e-535d1cf27e32.mov

@kmbro It's normal for the div to stay in the DOM for 1s after being dismissed. This makes room for the leave animation. It should have pointer-events: none to make sure it does not block any clicks. Can you confirm that's the case on your end?

@kmbro It's normal for the div to stay in the DOM for 1s after being dismissed. This makes room for the leave animation. It should have pointer-events: none to make sure it does not block any clicks. Can you confirm that's the case on your end?

It is blocking click events for as long as I set the duration of the toast for. So if it is a 30 second toast, then the div is there, and I cannot click on the links behind it, even after dismissal.
is there a work around for this? Could I add that css element to a class somewhere and make clicks “go through” to my links?


First iteration of the documentation

Yes, I noticed the changes yesterday midway. I'll rebase to the new rev and
create a new pull request.
I've lot of other screenshots and stuff I want to add.
ishu
On Thu, Oct 6, 2016 at 8:52 PM, Andrew Block<EMAIL_ADDRESS>wrote:

@sabre1041 requested changes on this pull request.
Love the diagram and the move to .adoc format
It appears you are missing the most recent version of the README that
includes how to set up Zeppelin. Would you be able to integrate those
changes in?
In README.adoc
https://github.com/sabre1041/iot-ose/pull/2#pullrequestreview-3241490:

+:Date:      10/10/2016

+== Overview
+Demonstration of Intelligent IoT Gateway on the Red Hat OpenShift Container Platform. The Gateway enables IoT data transformation, routing and real time decision-making at the edge. OpenShift provides secure enterprise-grade container platform to accelerate IoT application delivery. Each component of the demo runs in its own container, thereby, allowing security, scalability and ease of deployment.
+
+image:images/ose-iot.png[]
+
+This demo uses the CDK platform: learn how to install CDK https://github.com/redhatdemocentral/cdk-install-demo[here]
+
+Please note: This repository is currently under development and the feature set/components are subject to change without notice
+
+== Components
+
+* AMQ and MQTT
+* Realtime Decision Server
+* Fuse Integration Services
Links are not in asciidoc format
In README.adoc
https://github.com/sabre1041/iot-ose/pull/2#pullrequestreview-3241490:

@@ -0,0 +1,61 @@
+= IoT OpenShift Demo

+:Author:    Andrew Block, Ishu Verma
+:Email<EMAIL_ADDRESS><EMAIL_ADDRESS>+:Date:      10/10/2016
+
+== Overview
+Demonstration of Intelligent IoT Gateway on the Red Hat OpenShift Container Platform. The Gateway enables IoT data transformation, routing and real time decision-making at the edge. OpenShift provides secure enterprise-grade container platform to accelerate IoT application delivery. Each component of the demo runs in its own container, thereby, allowing security, scalability and ease of deployment.
+
+image:images/ose-iot.png[]
Do we want to denote these are not full instances of BRMS and Fuse and
instead xPaaS?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/sabre1041/iot-ose/pull/2#pullrequestreview-3241490,
or mute the thread
https://github.com/notifications/unsubscribe-auth/APpY8N9b9RsdPeOERXMWxDxgF56RVX3cks5qxcH1gaJpZM4KPcy5
.

sent another request based on the latest rev of readme


Issues running the examples on the Intel Aero RTF Drone

Hello,
I am currently trying to perform autonomous flying development for my  but I am having some problems running the examples from this repository on my Intel Aero Ready To Fly Drone. Every time i try to run any of the examples i get either timeout due to lack of connection after the

"Connecting to vehicle on: tcp:<IP_ADDRESS>:5760"

appears on my terminal, or i get

data link #0 lost
data link #0 regained

and then the drone fails to run the code file.
I have been able to do an autonomous take off using QGroundControl but I am unable to run any python script on the drone.
I hope someone can shed some light on the subject.
Thank you in advance,

On Wed, 20 Feb 2019, AauSurfaceGo wrote:

I am currently trying to perform autonomous flying development for my but I am having some problems running the examples from this repository on my. Every
time i try to run any of the examples i get either timeout due to lack of connection after the
        "Connecting to vehicle on: tcp:<IP_ADDRESS>:5760"

It's trying to connect to a simulated aircraft.
You need to supply a connect string - try "--help" on the examples - but
you'll probably just specify the path to the serial port...

Which firmware of Flight controller did you install in your Intel RTF drone? Px4 or ardupilot?


Conf.d file modified during "Caching service dependencies"

After creating a custom service with its own config file in /etc/conf.d/, I've noted the following:

The config file has the line swap_size=
After running "Caching service dependencies", the line gets modified to swap_size=0
When the line is commented out, it does not get changed.

Environment:

OS: Alpine Linux
Version: openrc (OpenRC) <IP_ADDRESS>370d3655

More testing shows: #swap_size=1024 gets replaced by OpenRC, but not # swap_size=1024.

Actually, this was completely unrelated to OpenRC. Sorry for the noise!


issue occurs when using tag and categories tabs is clicked

Summary
Repo is forked and changed the username into mine and the website is deployed the problem is when you click the categories and tags tab in navigation it shows 404 error message but the website you hosted in your server works good. I don't know what's the problem with this codes.
Reference

please check this URL
https://ghostonwater.github.io/

I just forked the repository and edited the config file the only thing i changed is repo URL only.

Thanks
Ghost

Why do you ignore the checklist of the issue template?
Why don't you read docs?


Add JRE 11

On behalf of Maksym - tested with 8.1, older 8.5, newer 8.5
The change to the user script fixes a build blocker encountered on my machine

Just a few minor comments, this looks good.


Adds a deprecation warning that prints when you load the gem.

This adds a deprecation warning when you load the gem. I was going to release a new version (3.0.1) of the gem so that RubyGems can pick up the new description and summary, so I thought, while I'm at it, why not a deprecation message for those that update their gems.
@robinske do you think this is a good idea?
Contributing to Twilio

All third-party contributors acknowledge that any contributions they provide will be made under the same open-source license that the open-source project is provided under.

[x] I acknowledge that all my contributions will be made under the project's license.

I can archive the repo once this is decided.


Fix Issue #50

Fix Issue #50 by using tree-kill instead of psTree + spawn(kill).
Tested and works on windows.

Thanks @MackieLoeffel


Settings -> Sources: view issues

https://github.com/mlcraft-io/client-v2/assets/2017148/dbe198ac-84f5-494e-9c84-ff9886ab5ce5

Checkbox working incorrectly. It needs to click several times to check.
After updating inputs it shows old value and then reloads
Form is lagging overall
When it closes, showing first step of the onboarding

https://github.com/mlcraft-io/client-v2/assets/2017148/440b533d-2951-487f-821a-125065e1f7a6

After clicking on the data source icon it should proceed next step
Icon is not centralized

https://github.com/mlcraft-io/client-v2/assets/2017148/039e919c-7663-4423-beec-efd3e387bf1d
Source should go next step only if test connection successfully

Sources list should be ordered by created_at

I see passwords for datasources in variables. We need to hide datasource passwords everywhere. It looks like only dbParams.host is used, but you can create graphql named function for this

https://github.com/mlcraft-io/client-v2/blob/master/src/pages/SqlApi/index.tsx#L182
SQL API view: Datasources somehow are not visible for individual users (without the team)

Errors are not showing. Every exceptional situation should be shown to the user.

https://github.com/mlcraft-io/client-v2/blob/master/src/pages/SqlApi/index.tsx#L182
SQL API view: Datasources somehow are not visible for individual users (without the team)

We decided to create a team by default when user sign ups

same situation.
Please, check everywhere

app should show full error if it's received from the server, not the generic one

is it possible to forward user to creating data models if no data models exist?


Not working in 40.3

As most Sketch users are on the latest rev and BI stupidly keep breaking backwards compatibility. Would really like to see this work as its so useful. thanks.

Reporting the same for Sketch Version 58 (84663).

macOS 10.14.6 (18G95)
Sketch Unlinker 1.1.0


Could not find a version that satisfies the requirement jaxlib

I get errors while running pip install -r requirements.txt

Same error, but i think its because im Windows 10

I got the same error (Windows 10), i worked around it by using
pip install jax==0.3.7 https://whls.blob.core.windows.net/unstable/cuda111/jaxlib-0.3.7+cuda11.cudnn82-cp39-none-win_amd64.whl
don't know if this is a valid way to work around this, found it via the jax windows builder.
However, i am still stuck not being able to run any of the unit tests...

@momentmal I think you just need to download 0.3.14 rather than 0.3.7. That's what worked for me. Confusingly, 0.3.14 is above 0.3.7 on that site.

@ISipi thanks, in the meantime i went the extra mile and installed a dual boot ubuntu and went past this point and now got stuck some steps later 😂 👌

@momentmal I was thinking about installing ubuntu on Hyper-V but I can't be bothered. I got stuck running the local_colmap_and_resize.sh, but I figured all that part is doing is using COLMAP to make a point cloud and also rescaling the images - I can do both jobs by launching COLMAP manually and creating my own python script to rescale the images. The heavy reliance on Linux only software is making the testing pretty tedious.

try this


Fixes broken links in skype.yaml v2

I wasn't able to commit directly to the other PR I opened for this so opening up another one, apologies for that
I * think * we should be all good with this one, sorry for the slow draw on my end here.

These all work on upload for me, so squashing and merging. Thanks for your attention @peteratticusberg !

you bet


assertEquals fails when comparing various Temporal instances with polyfill or --unstable-temporal flag

Describe the bug
assertEquals fails when comparing various Temporal instances with polyfill or --unstable-temporal flag.
Steps to Reproduce
deno repl --unstable-temporal

import { assert, assertEquals, assertThrows } from 'jsr<EMAIL_ADDRESS>assertEquals(Temporal.PlainDate.from('1999-09-09'), Temporal.PlainDate.from('1212-12-12'))
// doesn't throw assertion error

Equivalent results can be observed with unequal instances of Temporal.Instant, Temporal.ZonedDateTime, etc.
Expected behavior
assertEquals to throw when the instances are not value-equal.
Environment
OS: Ubuntu 20.04, WSL on Windows 11
deno version: 2.0.3
std version<EMAIL_ADDRESS>

It looks like it's because objects are compared using own-properties, but all the properties of Temporal instances are defined on the prototype instead. I suspect this also means similar bugs exist for many other built-in and user-defined classes.
Possible means of patching for Temporal could include comparing toString or valueOf; a more generic fix could include comparing non-own properties up the prototype chain (not sure about perf implications though).

Possible means of patching for Temporal could include comparing toString or valueOf;

Adding special path for builtin Temporal makes sense to me (We already have special handling for Date). I don't think we need to do special things about polyfills.

Adding special path for builtin Temporal makes sense to me (We already have special handling for Date). I don't think we need to do special things about polyfills.

I agree that there should be no special handling for polyfills, but also any solution for built-in Temporal should work seamlessly for any correctly implemented polyfill. I only mentioned that the issue also affects the polyfill to rule out the possibility it could be a bug in the V8 harmony Temporal implementation.
I'm not sure to what extent special-casing Temporal really makes sense, except maybe implementing a fast path if that noticeably improves perf. Notably, URL and RegExp are similarly special-cased as well as Date, but other built-ins that library consumers might reasonably want to compare, such as URLSearchParams and URLPattern, are not (upon further testing, they also fail to throw when unequal).

Upon further testing, URLSearchParams and URLPattern also fail to throw when unequal do work correctly within Deno, but it seems that's only thanks to Deno's non-standard addition of own-property symbols to instances of those objects (e.g. URLPattern having a Symbol("components") property). So such comparisons work correctly within Deno, but fail in the browser. I'm not sure what the rationale was for adding those symbol properties in the first place, but it might be worth revisiting their use (e.g. switching to WeakMaps) given that it introduces inconsistency between Deno and browsers. Looks like there's an issue for this already: https://github.com/denoland/deno/issues/11720

Fair enough. Dependency to Deno's specific implementation doesn't sound great. #6153 makes sense to me.


Getting the winner's username in deposit.php.

I know this would go in the deposit.php, but I'm not sure how to get the name of the winning account. Any help would be nice, I just need to know how to get the name and I can do the checks from there if there is my website name in it or not.

https://github.com/ztizzlegaming/CSGOWinBig/blob/master/src/php/deposit.php#L115 there you get the winner. Solution could be that  you do a json request : https://developer.valvesoftware.com/wiki/Steam_Web_API#GetPlayerSummaries_.28v0002.29 and play around with it. Of course there are other beter solutions.

Thank you.


Not all classes are acceptable as salt

Hi,
While creating a Obfuscator object I came across an issue where not all my classes are obfuscating the key successfully. For example if I use any of the below set of classes as a salt I always get error Could not obfuscate - Use different salt
Obfuscator *o = [Obfuscator newWithSalt:[NSString class], [NSObject class], [NSString class], nil];
or
//Application is a class define in my project
Obfuscator *o = [Obfuscator newWithSalt:[Application class], [NSString class], nil];
or
//Rename class from Application to Applicatio
Obfuscator *o = [Obfuscator newWithSalt:[Applicatio class], [NSString class], nil];
or
//Rename class from Application to Applicatin
Obfuscator *o = [Obfuscator newWithSalt: [Applicatin class], [NSObject class], nil];
or
//Protection is a class in my application
Obfuscator *o = [Obfuscator newWithSalt: [Protection class], [NSString class], nil];
or
//Protection is a class in my application
Obfuscator *o = [Obfuscator newWithSalt: [Protection class], [NSObject class], nil];

Whereas below set of classes are acceptable
// Using NSString and NSObject as salt
Obfuscator *o = [Obfuscator newWithSalt:[NSString class], [NSObject class], nil];
or
Obfuscator *o = [Obfuscator newWithSalt:[NSString class], [NSString class], [NSString class], nil];
or
//Rename class from Application to Applicatin
Obfuscator *o = [Obfuscator newWithSalt:[Applicatin class], [NSString class], nil];

I am not sure if any of the character in class name is causing this issue. If there is any limitation in using the specific characters in class name for salt than let me know.

I think there is a misunderstanding of how it works.
The newWithSalt method just converts the classes into a NSString by applying the SHA1 hashing algorithm. The salt used does not necessarily determine if the obfuscator will work or not!
Whether the salt can be used is a function of the salt (which is for all intents and purposes a random string) and the set of strings you are trying to obfuscate.

In your examples: Find out if your class(s) Protection... returns a proper string for the class method.
If it does not, then it means by coincidence the NSObject and NSString class in your examples are not obfuscating your current set of strings.
Let me know.

Finally add more classes. The more classes you add,the more likely it will successfully obfuscate all your strings

Use generateCodeWithSalt instead because it does everything for you without forcing you to know how it works behind the scenes. Instructions are in the "more advanced usage" section.

The error message Use Different salt was suggesting that there is something wrong in my salt so I assume that something is wrong with class name which prevent my secret key from obfuscating.
After following your instruction on adding more classes and after trying different combinations of classes being used in salt, now I have been able to get a salt which successfully obfuscate my secret key.
Thanks for your prompt response.


Merge master branch to prTesting1_202010220508 branch

Docs Build status updates of commit 614c58e:
:clock10: Pending: waiting for processors (16 builds ahead of you)
:warning: Docs Build is busy, currently there are 16 builds ahead of this one, for more information you can view the Build queue graph on the Docs Portal.

Docs Build status updates of commit 614c58e:
:warning: Validation status: warnings

File
Status
Preview URL
Details

split/updateTestRef1.md
:warning:Warning

Details

split/updateTestRef1.md

Line 0: [Warning-h1-not-first] Markdown content is not allowed before {0}.
Line 1: [Suggestion-h1-missing] H1 is required. Use a single hash (#) followed by a space to create your top-level heading. NOTE: This Suggestion will become a Warning around July 2020.

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


SSL error

I am getting an error after running this line
data = td.images.fromexample('mouse',None)
Traceback (most recent call last):
File "/home/l-01-314/PycharmProjects/test/Motion_Correction.py", line 12, in
data = td.images.frombinary(path=path, npartitions=1, order='F', engine=None)
File "/usr/anaconda3/lib/python3.5/site-packages/thunder/images/readers.py", line 255, in frombinary
buf = reader.read(path, filename=conf).decode('utf-8')
File "/usr/anaconda3/lib/python3.5/site-packages/thunder/readers.py", line 498, in read
storageScheme, key = self.getkey(path, filename=filename)
File "/usr/anaconda3/lib/python3.5/site-packages/thunder/readers.py", line 465, in getkey
scheme, keys = self.getkeys(path, filename=filename)
File "/usr/anaconda3/lib/python3.5/site-packages/thunder/readers.py", line 438, in getkeys
bucket = conn.get_bucket(bucket_name)
File "/usr/anaconda3/lib/python3.5/site-packages/boto/s3/connection.py", line 503, in get_bucket
return self.head_bucket(bucket_name, headers=headers)
File "/usr/anaconda3/lib/python3.5/site-packages/boto/s3/connection.py", line 522, in head_bucket
response = self.make_request('HEAD', bucket_name, headers=headers)
File "/usr/anaconda3/lib/python3.5/site-packages/boto/s3/connection.py", line 665, in make_request
retry_handler=retry_handler
File "/usr/anaconda3/lib/python3.5/site-packages/boto/connection.py", line 1071, in make_request
retry_handler=retry_handler)
File "/usr/anaconda3/lib/python3.5/site-packages/boto/connection.py", line 1030, in mexe
raise ex
File "/usr/anaconda3/lib/python3.5/site-packages/boto/connection.py", line 943, in mexe
request.body, request.headers)
File "/usr/anaconda3/lib/python3.5/http/client.py", line 1083, in request
self._send_request(method, url, body, headers)
File "/usr/anaconda3/lib/python3.5/http/client.py", line 1128, in _send_request
self.endheaders(body)
File "/usr/anaconda3/lib/python3.5/http/client.py", line 1079, in endheaders
self._send_output(message_body)
File "/usr/anaconda3/lib/python3.5/http/client.py", line 911, in _send_output
self.send(msg)
File "/usr/anaconda3/lib/python3.5/http/client.py", line 854, in send
self.connect()
File "/usr/anaconda3/lib/python3.5/http/client.py", line 1237, in connect
server_hostname=server_hostname)
File "/usr/anaconda3/lib/python3.5/ssl.py", line 376, in wrap_socket
_context=self)
File "/usr/anaconda3/lib/python3.5/ssl.py", line 747, in __init
self.do_handshake()
File "/usr/anaconda3/lib/python3.5/ssl.py", line 983, in do_handshake
self._sslobj.do_handshake()
File "/usr/anaconda3/lib/python3.5/ssl.py", line 628, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:645)

@ObadaM after fixing what I think is an unrelated error with PR #329, I was able to read the mouse example data. Is this still an issue?

@boazmohar I have just checked it and it is solved. Thanks!


Ink ripple inconsistent with material design spec (?)

Bug, feature request, or proposal:
Bug
What is the expected behavior?
Ink ripples in previous material design implementations trigger the effect on mousedown, rather than mouseup.
What is the current behavior?
The effect is only triggered on mouse up, which is far less noticable than prior implementations.
What are the steps to reproduce?
Material2 demo from the PR that added ripples to buttons: https://dozingcat-material2.firebaseapp.com/button
Material1 demo: https://material.angularjs.org/latest/demo/button
Click the buttons to see the difference. Click and hold your mouse button to make the difference more obvious.
What is the use-case or motivation for changing an existing behavior?
Consistency with the spec.
Which versions of Angular, Material, OS, browsers are affected?
All?

We worked directly with the Material Design spec folks on this one and their direction was that the ripple is supposed to trigger on the down and not the up.

Hi Jeremy,
I apologize, but I typoed in my original bug report. What I meant to say is that the ripples are only being triggered on mouseup, not down. Thus, they are behaving incorrectly according to your comment.
Sorry for the confusion, but check out the two demos and you'll see what I mean.

Ah, I was just going based on what you wrote 😄 ; my recollection was that the Material Design person we consulted with gave direction that ours should be the way it is (I just didn't remember which was which).
@traviskaufman will have the definitive answer for this

Gotcha. Most implementations I've seen are consistent with the mousedown approach (Angular 1 Material, Polymer, etc.)
Interested in the official response though!

Not to sound like a broken record, but that the ink ripples still don't appear to match the spec (using beta 10).
In fact, the readme for md-ripple actually specifies:

By default, a ripple is activated when the host element of the md-ripple directive receives mouse or touch events. On a mousedown or touch start, the ripple background fades in.


性能を上げる

Could you provide benchmarks for how much this increases performance? It's always good to have a baseline then show improvement

In this benchmark, new subtype parsing 3 times faster then current.
Benchmark code:
import re
import time

a = ["text/plain", "applicationjson", "text/html"]
subtype = re.compile('/[^/]*$')
media_type = "application/*"

start = time.time()
for j in range(1000000):
    for i in a:
        match = re.sub(subtype, '/*', i)
        if media_type == match:
            pass
end = time.time()
print("Old")
print(end - start)

start = time.time()
for x in range(1000000):
    typ = media_type[:-2]
    for i in a:
        try:
            match = i[:i.rindex('/')]
        except ValueError:
            match = i
        if typ == match:
            pass
end = time.time()
print("New")
print(end - start)

Result:
Old
6.139465808868408
New
1.8832921981811523


Document default values

Related to https://github.com/hypertrace/agent-config/issues/11 we should also document the default values of properties that have default values.

Default values are per language so I am not sure if this issue is related to this config or to the specs folder in the main repo?

There are a couple of fields that we might consider using the same defaults across languages:

reporting address shall we default to the localhost?
service name unknown or unknown_language?
propagation protocol


gitattributes language overriding only works in subdirectories?

Preliminary Steps
Please confirm you have...

[x] reviewed How Linguist Works,
[x] reviewed the Troubleshooting docs,
[x] considered implementing an override,
[x] verified an issue has not already been logged for your issue (linguist issues).

Problem Description

This is probably a FAQ but I can't seem to search for it. Namely, a colleague and I were trying to figure out how to have Github's highlighter consider .pf files as Fortran. We went our separate ways and hit on using .gitattributes with:
*.pf linguist-language=fortran

But while it worked for him in a toy repo, it didn't for me. In the end the difference was that his code was in a subdir and mine wasn't!
If you go to the repo below, you'll see that subdir/Test_MAPL_Config.pf is highlighted as Fortran but Test_RegridderManager.pf isn't.
Is this a feature of the .gitattributes that we should know more about? That it only affects files below itself? (Or above depending on how you see directory trees. In subdirectories.)
URL of the affected repository:
https://github.com/Goddard-Fortran-Ecosystem/testhighlighting
Last modified on:

2019-04-03
Expected language:

Fortran
Detected language:

None

Is this a feature of the .gitattributes that we should know more about?

Nope. This is a known limitation with the way GitHub caches the blobs: the cache, and thus syntax highlighting, isn't refreshed when you make changes to the .gitattributes. You need to make a change to the files affected by the change.
In your repo, the file in the root directory was last changed before you made the .gitattribute changes whilst the one in the subdir was changed after.
I've forked your repo and make added a blank line to the file in the root dir and you can see the syntax highlighting has taken effect - https://github.com/lildude/testhighlighting/blob/master/Test_RegridderManager.pf

Huh. Well I'll be. I would never have thought of that!
I have learned something today. Thanks!
I suppose I can now close this.

Hello
Thanks to the efforts of all dear friends
Unfortunately, the opportunity to deliver the project ended and I could not find a solution
I've abandoned this thread
Thanks

Hello
I stopped following the project
Please do not go any further
Thank you

Hello
I stopped following the project
Please do not go any further
Thank you
On Wed, Apr 3, 2019 at 10:23 PM Matthew Thompson<EMAIL_ADDRESS>wrote:

Closed #4483 https://github.com/github/linguist/issues/4483.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/github/linguist/issues/4483#event-2250644284, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AuyF4kO3jpcNC_o-rsNc8TeCgbw8e07Pks5vdOp9gaJpZM4ca73l
.


Add LARS to benchmarks

Added LARS to benchmarks.
NOTE: most recent echo causes the build to fail, v2 was just released and there were breaking changes.

Thanks! Like I said in #55, the next round might still take a while since I'm lacking time.

No worries :)


PyChef doesn't work on Amazon linux

I'm sure this is some kind of operating system bug and totally not PyChef's fault, but I just tried to use PyChef in an AWS Lambda, and I ran into snags using libcrypto.so, because it doesn't exist:
   __|  __|_  )
   _|  (     /   Amazon Linux AMI
  ___|\___|___|

https://aws.amazon.com/amazon-linux-ami/2015.09-release-notes/
No packages needed for security; 14 packages available
Run "sudo yum update" to apply all updates.
[ec2-user@ip-172-10-12-87 ~]$ ls /lib64/crypto
/lib64/libcrypto.so.10  /lib64/libcrypto.so.1.0.1k  /lib64/libk5crypto.so.3  /lib64/libk5crypto.so.3.1
I "fixed" it, for my own use, by changing line 9 of rsa.py to use libcrypto.so.10, instead.

I used this to bundle the libcrypto in the zip file used to create the lambda function:
https://markn.ca/2015/10/python-extension-modules-in-aws-lambda/
This is not a PyChef issue, but rather a Lambda issue, like you suggested.

Could also be solved via #49 , just to link them

Yea, I just saw that.  I'm thinking of forking and merging everything in myself to do a new release.  Would have saved me lots of time if this was already merged into the official release.

https://github.com/coderanger/pychef/pull/43 is another fix for it, or I could gut the whole thing and replace with Cryptography which is probably the safest option but will piss people off so I just haven't gone there yet. The right fix is probably to check for Cryptography and use it if present and otherwise fall back to rsa.py. But implementing that will be a pain so I haven't done it yet and no one else has offered.

0.3.0 is out with #43 as an interim fix. It's no worse than what was there before at least.


Caret position after images and videos insert

Hi.
Every time when I insert picture or video in redactor, the caret stays on the same place where was before. Is it possible to fix it so the caret will be after inserted element?
P.S. Sorry for my english.

I really can't imagine how your problem? Can you capture a screenshot of the problem?

Here are the screenshots showing the problem.

I hope these screenshots will be helpful and I hope also you understand the
problem now.
Thank you and have a nice day.
2015-05-13 23:32 GMT+03:00 Nghia Nguyen<EMAIL_ADDRESS>
I really can't imagine how your problem? Can you capture a screenshot of
the problem?
—
Reply to this email directly or view it on GitHub
https://github.com/yiidoc/yii2-redactor/issues/26#issuecomment-101806706
.

I dont see your screen file attachment

Please, check your inbox of<EMAIL_ADDRESS>

Please update composer
i was test on my project after insert pix cursor at right of pix.
if your page right to left i think cursor will left of pix

Is it possible to set the cursor below of picture automatically?

Hello.
It's a bug of the redactor core.
On the official demo on site of redactor I can see the same issue.
You can try to insert a picture in an empty redactor window and you'll see
the caret doesn't move below an inserted picture.


Ensure reverse translate works with new API and Common removed

https://github.com/istio/operator/pull/210 introduces changes that break reverse translation UT and disable it. The test may need some additional changes to reflect the new API.

PR created: https://github.com/istio/operator/pull/215


optimize docker image size

Description
Using multistage build for the docker image the size should be much smaller.
The new size is 237 Mb from 1.2Gb
Related issues
none
Testing
There should be no

Thank you very much for such a helpful improment. I've invited some reviewers, and several comments will be leaved later on.


FCALL_RO tests fails on valkey-8

fcall_readonly and fcall_readonly_binary fails on valkey-8 when routing the command to a replica
temporary disabled the tests

Created https://github.com/valkey-io/valkey/issues/1005


Installation from github.com does not work

I'm getting an error when trying to install a plugin via GitHub in my fishfile:
john@arch ~/.config> fin
fin: Fetch error github.com/fisherman/metro

Fishfile:
github.com/fisherman/metro

Adding the protocol in the fishfile works as expected (e.g., https://github.com/fisherman/metro)

@johnfraney Observed and fixed.


Custom file parser support

Support for custom testng file parsers through command line argument -parser, it allows to use testng files following custom dtd or xsd schemas. Parser is updated to recieve custom IFileParser implementations for concrete file extensions. -parser argument value is a semicolon separated list of file extension to IFileParser implementation bindings (binding example "xml:com.myproject.XmlParser" overrides default TestNG parser for xml files).
If the update is accepted the next steps are TestNGAntTask update to support the same functionality and probably eclipse plugin update to support vary file extensions (it would give the freedom to write testng files with extension .suite .case etc and provide corresponding parsers for them)

Could you add any tests?

Duplicate of #702


Module is not asyncronous

This module is using the standard sqlite3 module which is blocking. Operations like execute() will block the thread until they are done.
As opsdroid uses asyncio then all io operations like database commands should be asynchronous.
I recommend looking at aiosqlite which provides an async wrapper for the standard sqlite3 module. This allows execute() commands to be called with await which frees up the loop to do other things while the database operation happens.

Totally agree, I will try it. I started with aioodbc but it was a mess of dependencies and I decided to just use sqlite, but I didn't search for something with aio and sqlite. Thanks!


grammarForScopeName problem

When I open a file called x.sh it has the grammar Shell Script.  But when I call atom.grammars.grammarForScopeName 'x.sh' I get nothing.  Am I using it correctly?
If needed I can make a sample package to show the problem.
Versions

Atom:       0.194.0
Atom-Shell: 0.22.3
OS:         linux 3.14.0
Misc

apm  0.161.0
npm  2.5.1
node 0.10.35
python 2.7.3
git <IP_ADDRESS>

This report was created in and posted from the Atom editor using the package bug-report v0.6.3.

Scope name is the value inside the grammar, so for shell script it is source.shell.
https://github.com/atom/language-shellscript/blob/abf186b46f972b5b8491069d8f8c8ef5efe6ff15/grammars/shell-unix-bash.cson#L984
If you want to get a grammar for a file name or path use atom.grammars.selectGrammar('x.sh')

So to get the shell directly use atom.grammars.grammarForScopeName('source.shell')

thanks.  BTW, the example in the api docs is wrong.
::grammarForScopeName(scopeName)

Get a grammar with the given scope name.
  Argument	Description
    scopeName
      A String such as "source.js".
  Return values
    Returns a Grammar or .

thanks. BTW, the example in the api docs is wrong.

Reading it over I'm unclear on what is wrong with it? source.js is the scopeName and it does return a Grammar.

Oh, source.js looks like a javascript filename being used like x.sh.
BTW,  x.sh is not a real filename.  I'm doing a package that lets an atom user put a comment in their file telling what grammar to use.  Right now I'm letting them specify an extension like this ...
# -*- grammar-ext: sh -*-

I'm just adding x. to the front of the extension and looking up the grammar.  Can you think of a better way for them to specify it?

Can you think of a better way for them to specify it?

The grammars could include this themselves in the firstLineMatch property.
This was recently added in https://github.com/atom/language-ruby/pull/90 for

Sigh.  When I call this ...
atom.grammars.selectGrammar 'x.sh'

I'm getting the null grammar.  I know that making a file called x.sh is
considered a Shell Script.
On Thu, Apr 30, 2015 at 3:23 PM, Kevin Sawicki<EMAIL_ADDRESS>wrote:

thanks. BTW, the example in the api docs is wrong.
Reading it over I'm unclear on what is wrong with it? source.js is the
scopeName and it does return a Grammar.
—
Reply to this email directly or view it on GitHub
https://github.com/atom/atom/issues/6586#issuecomment-97988917.

When I call this

When are you calling it? The grammars do load asynchronously at startup.

The grammars could include this themselves in the firstLineMatch property.

That would require changing the grammar files, right?  I am not working on anything relating to the grammar files.  I'm letting the user specify what grammar a source file should use by adding a comment to that source file.  This is needed on files with no extensions or files that start with one language but then are mostly another language (like riot.js tag files).

That would require changing the grammar files, right?

Yup

When are you calling it?

I'm calling it in a atom.workspace.observeTextEditors (editor) =>  callback.

The grammars do load asynchronously at startup.

Not all of them.  I have found that grammars are only loaded in the registry for files already in the project and known.  Since no files loading are considered shell files the registry doesn't include the shell grammar.  I was hoping there was a call that would give me a grammar when I specify something like sh or Shell Script.

Never mind.  I was wrong about only some loading.  When I put my observeTextEditors call with a 3 second delay, everything worked.  So there may be a visible switch of the file type I don't think this will be  problem.  Is there a way to find out when all grammars are loaded?
Thanks for explaining all this.

Is there a way to find out when all grammars are loaded?

There isn't a final event but there is the following:

atom.grammars.onDidAddGrammar
atom.grammars.onDidUpdateGrammar
TextEditor::observeGrammar

So you can know when grammars are added or updated and also when an editor's grammar changes in response to a grammar being loaded or manually changed from the status bar.

Hmm.  I got a bit of a problem.  I can look for the grammar by listening to every onDidAddGrammar event but I'll never know when to give up and tell the user I can't find his grammar.
I'll put in a timeout before giving the error but the ux isn't going to be wonderful.  Consider this issue a request for some way to search all grammars.
-- Wait, there is a feature to switch the grammar in the status bar.  How does this know what all the grammars are?

Wait, there is a feature to switch the grammar in the status bar.

Yup, the Coffee Script link in the screenshot:

How does this know what all the grammars are?

It uses atom.grammars.getGrammars() to populate the list when it is clicked:
https://github.com/atom/grammar-selector/blob/9c5fffe592f8158869ae74569342f82b29c83449/lib/grammar-list-view.coffee#L56

It uses atom.grammars.getGrammars() to populate the list when it is clicked:

That's the first thing I tried but the list wasn't complete when the texteditor loaded.  Hence the origin of my whole problem.

I'll put in a low-priority request for an event when all grammars are loaded.  I don't know if there is any other use case for this but I think this feature of having the grammar specified in the file to be a serious use case.  There is no other way to fully control what grammar is used for a file.  I don't consider making all grammar writers add the feature, like the one for ruby, to be a solution.
For now I'll use a timeout.  It won't kill the user to see the grammar switch after a few seconds.


fix(VTIOutput): Fixed a bug on the vti output for grids.

:tada: This PR is included in version 5.20.3 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


【建议】在codeapp失去焦点时，保留光标位置

即在多个应用之间切换时，切换回codeapp会丢失光标位置，需要点击代码编辑框才能继续输入。而例如Safari在切换时，会保留输入文本框中的光标位置，可以直接输入，以上。

这也是我已经注意到的，是的，我正在使用Google翻译，所以听起来可能不正确...

以及希望终端的最下面一行能够比底部的工具栏（maybe）更高一些，或者说令终端的下边界升高

这也是我已经注意到的，是的，我正在使用Google翻译，所以听起来可能不正确...

yep, it’s discommodious.

You mean inconvenient? That is what discommodious means... I am sure you meant something else...

You mean inconvenient? That is what discommodious means... I am sure you meant something else...

Emmmmm, I don’t know the difference between them. What I want to express is that the fact that the cursor position cannot be retained is inconvenient. It seems that I still need to study English hard.

And I need to study Chinese more :) Anyways, I guess what I said made since then, my bad!

You mean inconvenient? That is what discommodious means... I am sure you meant something else...

Emmmmm, I don’t know the difference between them. What I want to express is that the fact that the cursor position cannot be retained is inconvenient. It seems that I still need to study English hard.

And I need to study Chinese more :) Anyways, I guess what I said made since then, my bad!

Never mind. It seems that my tone seems a little heavy. I need to study English to pass the master's entrance exam, but it seems that it is not enough to complete it.

And I need to study Chinese more :) Anyways, I guess what I said made since then, my bad!

Never mind. It seems that my tone seems a little heavy. I need to study English to pass the master's entrance exam, but it seems that it is not enough to complete it.

Oh, I am only 16, I have a lot to learn in life still. I don't think the tone was heavy, but I think that we should keep to the art of code talk.