Add defined? guard and better custom exemple

We had some problems with the custom class overwrite because Capistrano and Slackistrano are only in the Gemfile development group, and since the file is in lib/, rails was trying to load it, leading to uninitialized constant Slackistrano::Messaging
I also added an exemple to use the git user full name, which is cleaner in my opinion (still falling back to the user ENV).

Thanks @allaire!


Installation on Server

What is the container and port number to access when installed on a docker-Server?

it's 8000, which leads to a clash (of course) when using with std portainer installation.
mapping to 8090 works.
Additionally the PM-Portainer-Installation Doku seems to be quite old:
I used simple commands from the port mapping and short version from the syno-useres:
https://www.christian-knedel.de/post/2020/february/20200228-docker-papermerge/
working w/o hicks..

but for sure it is soooo annoying to work through the stuff on myself....and figure out how to deploy PM proper in an server environment.
live-time-thief...


ONLY IT WORKS WITH STRINGS?

Hi,
First, thinks for this package, but i have any doubts about the functionality with numbers. I mean, if the payload is a number it does no work?
I have an example with the topic and payload strings and it works well, but if the payload changes to number no.

Hi @carlosbama3
This repository is no longer maintained or supported.
Sry.


Add Support for Android

Thanks for Linux support, Please consider to add support for Android.

I'll try to work on that next month probably. At the moment I don't have much time for this project, sorry.


[VSCode] Unable to select iOS and Android devices

I can run Mac Catalyst, but when choosing Android and iOS I cannot select a device. The error is the same both times:

Log (Extension Host) reports:
[2021-06-15 21:12:21.324] [exthost] [info] ExtensionService#_doActivateExtension Clancey.comet-debug {"startup":false,"extensionId":{"value":"Clancey.comet-debug","_lower":"clancey.comet-debug"},"activationEvent":"onStartupFinished"}
[2021-06-15 21:12:21.324] [exthost] [info] ExtensionService#loadCommonJSModule file:///Users/dmo/.vscode/extensions/clancey.comet-debug-0.3.7/dist/extension
[2021-06-15 21:12:40.232] [exthost] [error] TypeError: Cannot read property 'map' of undefined
	at MobileProjectManager.<anonymous> (/Users/dmo/.vscode/extensions/clancey.comet-debug-0.3.7/dist/extension.js:22125:22)
	at Generator.next (<anonymous>)
	at fulfilled (/Users/dmo/.vscode/extensions/clancey.comet-debug-0.3.7/dist/extension.js:21852:58)
	at processTicksAndRejections (internal/process/task_queues.js:93:5) dotnetmobile.selectDevice
[2021-06-15 21:12:41.936] [exthost] [error] TypeError: Cannot read property 'map' of undefined
	at MobileProjectManager.<anonymous> (/Users/dmo/.vscode/extensions/clancey.comet-debug-0.3.7/dist/extension.js:22125:22)
	at Generator.next (<anonymous>)
	at fulfilled (/Users/dmo/.vscode/extensions/clancey.comet-debug-0.3.7/dist/extension.js:21852:58)
	at processTicksAndRejections (internal/process/task_queues.js:93:5) dotnetmobile.selectDevice
[2021-06-15 21:13:32.444] [exthost] [error] TypeError: Cannot read property 'devices' of undefined
	at MobileProjectManager.<anonymous> (/Users/dmo/.vscode/extensions/clancey.comet-debug-0.3.7/dist/extension.js:22161:51)
	at Generator.next (<anonymous>)
	at fulfilled (/Users/dmo/.vscode/extensions/clancey.comet-debug-0.3.7/dist/extension.js:21852:58)
	at processTicksAndRejections (internal/process/task_queues.js:93:5) dotnetmobile.selectDevice

I'm running macOS Monterey and .NET 6 Preview 5.
I can run iOS from CLI just fine.

Why the error occurs (Android)
Like you, I got the following error in the VSCode extension log window:
[2021-06-20 08:37:28.569] [exthost] [error] TypeError: Cannot read property 'devices' of undefined
	at MobileProjectManager.<anonymous> (c:\Users\[...]\.vscode\extensions\clancey.comet-debug-0.3.7\dist\extension.js:22161:51)
	at Generator.next (<anonymous>)
	at fulfilled (c:\Users\[...]\.vscode\extensions\clancey.comet-debug-0.3.7\dist\extension.js:21852:58)
	at runMicrotasks (<anonymous>)
	at processTicksAndRejections (internal/process/task_queues.js:93:5) dotnetmobile.selectDevice

The vscode extension for Comet makes use of the mobile-debug tool which is normally located at c:\Users\[username]\.vscode\extensions\clancey.comet-debug-0.3.7\src\mobile-debug\bin\Debug\net472\mobile-debug.exe.

(I've added the console.log statements myself to get the path and arguments in the Developer Console of VSCode for further investigation)
For android, it runs mobile-debug.exe util -c android-devices.

For iOS it runs mobile-debug.exe util -c ios-devices.

If you run these commands manually with the command line you'll get an error, the extension does ignore the error and tries to parse the empty JSON result, and fails when mapping the value.
You can find the source code of the mobile-debug program here.
The actual error on Android occurs in AndroidSdk.cs:102:
https://github.com/Clancey/vscode-comet/blob/d5b8b059e02e6a400f39b5336c76adf52ab6a69a/src/mobile-debug/AndroidSdk.cs#L100-L106
It tries to find the device data for the emulator which was shown as connected in my case when running adb devices -l. It fails to query the device name (L79) and then fails because the name was null (L102).

Solution (Android)
In my case, my system somehow had an emulator registered in AVDManager that did not even exist on disk (in a fresh installation).
Note that I can only provide the Windows command because I do not have an OS X system at hand.
To verify, run the following command: C:\Program Files (x86)\Android\android-sdk\tools\bin>avdmanager list avd
After some debug console output, I've got the following:
The following Android Virtual Devices could not be loaded:
    Name: pixel_2_pie_9_0_-_api_28
    Path: C:\Users\[username]\.android\avd\pixel_2_pie_9_0_-_api_28.avd
   Error: Google pixel_2 no longer exists as a device

To delete this device, run C:\Program Files (x86)\Android\android-sdk\tools\bin>avdmanager delete avd -n  pixel_2_pie_9_0_-_api_28.
You can ignore any errors because it tries to delete the emulator from the disk, which does not even exist.
Now run the following command again: C:\Program Files (x86)\Android\android-sdk\tools\bin>avdmanager list avd to verify that the emulator was removed:
C:\Program Files (x86)\Android\android-sdk\tools\bin>avdmanager list avd
Available Android Virtual Devices:

Now run  c:\Users\[username]\.vscode\extensions\clancey.comet-debug-0.3.7\src\mobile-debug\bin\Debug\net472\mobile-debug.exe util -c android-devices again to verify the program works correctly now:
{"id":"82a0c173-956a-407b-848f-56e363122246","command":"android-devices","response":[]}

(The GUID can differ)

Now start up your emulator, restart Visual Studio Code (should work without a restart but safe is safe), select net6.0-android, and click on "Select device". Now it should work:

It also works on a physical device now:

Alternative Solution (Android)

Create emulator (I use command line because I do not have Android Studio installed)
(- Install (Open)JDK8 (or else you will get an error with avdmanager).)
(- If you had another JDK installed, change your JAVA_HOME to point to the new (old) installation.)

To create the emulator run: C:\Program Files (x86)\Android\android-sdk\tools\bin>avdmanager.bat create avd -n "AndroidEmulator" -k system-images;android-30;google_apis;x86

Startup emulator

C:\Program Files (x86)\Android\android-sdk\tools>emulator @AndroidEmulator
If you get the following error: "PANIC: Missing emulator engine program for 'x86' CPU." (which happened in my case):

Set ANDROID_SDK to "C:\Program Files (x86)\Android\android-sdk"
ADD the following to PATH: "C:\Program Files (x86)\Android\android-sdk\platform-tools", "C:\Program Files (x86)\Android\android-sdk\emulator", and "C:\Program Files (x86)\Android\android-sdk\tools" (order is important here).
Run the first command again.

Ensure the emulator is running

Run adb devices -l
Ensure you have something like: "emulator-5554	device [...]"

Now it should work, I assume avdmanager recognized that there was an emulator shown in adb devices -l which does not really exist (I do not know the exact internals of the Android SDK).

Why the error occurs (iOS)
I tried to run the mobile-debug program with util -c ios-devices. It fails because it tries to find XCode on my machine which cannot be installed. When you debug the mobile-debug program, I encountered the following error:

On an OS X machine, you may get probably a similar error with the correct path.

Hope I could help!

Hi! I'm having a similar error here.
I'm getting an error only when I try to select a virtual android
device (ios-device selection and debugging works).
When I click on "Select a Device" throws the error:

Cannot read properties of undefined (reading 'map').

The Android Virtual Device is running (started from VDM of Android Studio)
when I click on "Select a Device".
Next is the output of the commands mentioned in previous comments.
Running mobile-debug:

% cd ~/.vscode/extensions/clancey.comet-debug-0.3.16/src/mobile-debug/bin/Debug/net6.0/
% dotnet mobile-debug.dll util -c android-devices
{"id":"[ID]","command":"android-devices","error":"Could not find adb"}

I added to PATH the path to platform-tools folder, but the error is still there.
added to ~/.zshrc

export PATH=/Users/[username]/Library/Android/sdk/platform-tools:$PATH

Running  adb:

% cd ~/Library/Android/sdk/platform-tools
% ./adb devices -l
List of devices attached
emulator-5554          offline transport_id:1

Running  avdmanager:

% cd ~/Library/Android/sdk/cmdline-tools/latest/bin
% ./avdmanager list avd
Available Android Virtual Devices:
Name: Pixel_3a_API_31
Device: pixel_3a (Google)
Path: /Users//.android/avd/Pixel_3a_API_31.avd
Target: Google Play (Google Inc.)
Based on: Android 12.0 (S) Tag/ABI: google_apis_playstore/x86_64
Skin: pixel_3a
Sdcard: 512M

Android Studio info:

Android Studio Chipmunk | 2021.2.1 Patch 1
Build #AI-212.5712.43.2112.8609683, built on May 18, 2022
Runtime version: 11.0.12+0-b1504.28-7817840 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.4
GC: G1 Young Generation, G1 Old Generation
Memory: 1280M
Cores: 16
Registry: external.system.auto.import.disabled=true

openjdk: microsoft-openjdk11 (installed with brew. version 11 Required by Maui)
dotnet-sdk version: 6.0.300
OS: macOS Monterey (12.4)


Fix corner case in URI encoding.

The jre native encoder translates ' ' into '+' which, although
legal, is not what we want or expect. I discovered this through
a test failure.

Current coverage is 68.64% (diff: 100%)

Merging #1429 into master will increase coverage by <.01%

@@             master      #1429   diff @@
==========================================
  Files           266        266
  Lines         13299      13299
  Methods       13016      13016
  Messages          0          0
  Branches        133        133
==========================================
+ Hits           9128       9129     +1
+ Misses         4171       4170     -1
  Partials          0          0

Powered by Codecov. Last update 06baa9e...73252a4


Run time GPU resources allocation in Tensorflow

Hi
I have developed a model which is  Real time vehicle and person detection using tensor flow as back end in python and have  ten jobs (ten video feed from different cctv camera ) or more than that at run time some time jobs are more than ten or less than ten  jobs ,I want to run ten  jobs at a same time on one  gpu(GT X 1080 memory 8118MiB) using tensor flow  but if i have ten jobs then GPU resources equally distribute to every jobs and if jobs are five then resource equally distributed to five jobs i.e run time GPU resources allocation on the basis of number of available jobs(may be more than ten jobs or less than ten jobs) like cpu use its intelligence when one job/process complete then it release resources and cpu assign these resources to other process so  I want to utilize my whole resources of my GPU at every time
suggest me any approach
Thanks

We encourage to post these type of questions on StackOverflow since it is not a bug or feature request. There is also a larger community that reads questions there.


Device doesn't blinks when creating a trigger with 'Blink'

the Device shows message and the vibrates but it doesn't blinks.

It is not possible to test this on my device (no led), but I can make a fixed build for you to test it if it works.
Btw, should vibrate option also blink?

@suomiy , i  don't think that the vibrate should blink too..
also, is there a way to choose the color of the blink ?

no it is not, but I don't think this functionality is really needed

@suomiy , many apps used this,
it allows them to see from which app the notification was received.

ok, we could do it in the future


Add mobile typography configuration

Problem Description:
The mobile design lacks consistent typography.
Expected Behavior/Solution:
Implement global typography configuration for mobile layout.
Requirements:

[x] Add styling configuration

Needed for promotion:
If an item on the list is not needed, it should be crossed off but not removed.

[x] Wireframe/Mockup - POW
[x] Committee discussions - Sarah
[x] Feasibility/Team discussion - Sarah
[x] ~Backend requirements - TBD~
[x] Frontend requirements - Kam
[x] Are new regression tests required for QA - Amy

No change in regression tests required

[x] ~Questions~

UAT/LUX Examples:

Any LUX page as this is a global change

Dependencies/Blocks:
N/A
Related Github Issues:

#269

Related links:
N/A
Wireframe/Mockup:

Typography Figma file
Example typography 1 Figma file
Example typography 2 Figma file

Approved by UAT


Vision: if one of RGB values for dominant color is absent, should default to 0

If you can provide us with as much of the following information as possible it
will help us identify the cause of your issue more quickly.

OS type and version
macOS Sierra 10.12.1

Python version and virtual environment information python --version
$ python --version
Python 2.7.12

google-cloud-python version pip show google-cloud, pip show google-<service> or pip freeze
$ pip freeze | grep google
google-cloud-core==0.21.0
google-cloud-vision==0.21.0
googleapis-common-protos==1.5.0

Stacktrace if available
Traceback (most recent call last):
  File "getpalette.py", line 108, in <module>
    main(args.images)
  File "getpalette.py", line 97, in main
    pixelfy(image_path)
  File "getpalette.py", line 58, in pixelfy
    properties = image.detect_properties()
  File "/Users/swast/venvs/cloud-vision/lib/python2.7/site-packages/google/cloud/vision/image.py", line 189, in detect_properties
    return self._detect_annotation(features)
  File "/Users/swast/venvs/cloud-vision/lib/python2.7/site-packages/google/cloud/vision/image.py", line 125, in _detect_annotation
    _entity_from_response_type(feature.feature_type, results))
  File "/Users/swast/venvs/cloud-vision/lib/python2.7/site-packages/google/cloud/vision/image.py", line 229, in _entity_from_response_type
    ImagePropertiesAnnotation.from_api_repr(results[feature_key]))
  File "/Users/swast/venvs/cloud-vision/lib/python2.7/site-packages/google/cloud/vision/color.py", line 40, in from_api_repr
    response['dominantColors']['colors']]
  File "/Users/swast/venvs/cloud-vision/lib/python2.7/site-packages/google/cloud/vision/color.py", line 160, in from_api_repr
    color = Color.from_api_repr(response['color'])
  File "/Users/swast/venvs/cloud-vision/lib/python2.7/site-packages/google/cloud/vision/color.py", line 90, in from_api_repr
    blue = response['blue']
KeyError: 'blue'

Steps to reproduce
Run the code example against the following image. python getpalette.py cat.png

Photo by Chen YiZhou

Code example getpalette.py

# Copyright 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from __future__ import division
from __future__ import print_function

import argparse
import io
import os
import os.path

from google.cloud import vision
from PIL import Image

def resize(size, max_dimension=500):
    width, height = size
    if width < height:
        return (int((width / height) * max_dimension), max_dimension)
    return (max_dimension, int((height / width) * max_dimension))

def pixelfy(image_path):
    print(image_path)
    vision_client = vision.Client()
    im = Image.open(image_path)
    im = im.resize(resize(im.size), resample=Image.LANCZOS)
    f = io.BytesIO()
    im.save(f, format='jpeg')
    image = vision_client.image(content=f.getvalue())
    properties = image.detect_properties()
    palette = []

    for property_ in properties:
        for color in property_.colors:
            palette.append(
                (
                    color.color.red,
                    color.color.green,
                    color.color.blue,
                ))
    print(palette)

def main(image_paths):
    for image_path in image_paths:
        pixelfy(image_path)

if __name__ == '__main__':
    parser = argparse.ArgumentParser(
        description=__doc__,
        formatter_class=argparse.RawDescriptionHelpFormatter)
    parser.add_argument('images', help='Path to image(s) to get palette.', nargs='+')

    args = parser.parse_args()

    main(args.images)

So this is pretty interesting. Apparently there's no blue in that image.
Based on the documentation, I was under the assumption that the values would be there but just set to 0. Which would be the right thing to do upstream.
@omaray @dhermes I think this is something that should change upstream. I could fix it for this case but not returning the default values seems wrong.
https://github.com/googleapis/googleapis/blob/acc991c2dd8e86a7299548b0bef7b7c5c1374eb0/google/cloud/vision/v1/image_annotator.proto#L389

@daspecster I don't think this can change upstream. I've filed similar bugs for the natural language API, which were closed as working as intended.
The reason this is happening is that internally the API converts a protocol buffer into JSON. According to the documentation on JSON-mapping "If a field has the default value in the protocol buffer, it will be omitted in the JSON-encoded data by default to save space".

Thanks for the explaination @tswast!
In that case, I'll try and audit vision and try and catch other places this happens as well.

@tswast I have a PR to fix this. I ended up setting the value to None if it's not in the response. I think this is more correct than 0 in general.
This is the result I get running your script with the image provided.
$ google-cloud-python/.tox/py27/bin/python getpallette.py cat.png
cat.png
[(78, 44, 26), (104, 70, 50), (53, 20, 5), (96, 72, 50), (72, 50, 32), (38, 2, None), (142, 105, 84), (45, 27, 14), (91, 44, 14), (108, 66, 33)]

I don't like setting it to None. It's more correct in the JSON world, but not the underlying protobuf v3 world. If an integer field isn't set, the default should be 0.

@daspecster @tswast I agree with both of you here. None is almost always more appropriate for a missing value, even a missing integer. However, in this case, RGB are actuall channels, so it seems 0 is superior in this particular case.

Ok SGTM.
https://github.com/GoogleCloudPlatform/google-cloud-python/pull/2761/commits/3ea33321bc2ac32bdcacfd786c112ac78a41b60c


Track visitors without javascript

While working on #9380, it has become apparent the noScriptViewer is not functioning correctly and has missing functionality (see #9427 and #9428)
It would be good to have real data about how many visitors we get to our site without javascript in order to prioritise the above issues and determine whether it would be worth investing more time enhancing the noScriptViewer functionality further. This is likely true of other parts of the site too.
Seems there are a couple of ways to implement this with GTM. Although that article is quite dated, so maybe GTM/GA4 now has another way?

I've just read that changing the current image source to use /v2, instead of v1, might fix this so have given that a go

"I've just read that changing the current image source to use /v2, instead of v1, might fix this so have given that a go"
This didn't work, so we need to implement this in a different way - see above.

I am uneasy about implementing pixel tracking in any form on the site as that's a slippery slope to invasive ad trackers.
If there's no way to track this without pixel tracking, I suggest we take it back to the drawing board (can we design an image experience without a 'viewer'?)

We've decided not to add non javascript tracking, so I'll remove the current (broken) implementation from GTM and close this issue.
N.B. We still plan to fix the things on the site that don't work without javascript.


Upgrade deprecated runtime nodejs6.10

CloudFormation templates in smart-product-solution have been found to include a deprecated Lambda function runtime (nodejs6.10). The affected templates have been updated to a supported runtime (nodejs10.x).
Please note, this pull request has been generated by a bot; please check the base branch and files changed before merging.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Thanks for your input. The files would be deleted in the next minor release since the files are not necessary.

As template.yml files are not necessary, we removed the files.

This should have been addressed in the latest update to this solution. Please let us know if you need additional assistance with this.


Add support for service principal app role add, update and remove

Add support for service principal app role add, update and remove
Added very simple tests for app role manipulation for applications and service principals

N.B. I am not an active contributor and relatively new to the golang community, I welcome any feedback

Hi @zbergus, thanks for the PR! Sorry for the delay in reviewing.
As far as I can tell, the appRoles for a service principal simply echo the appRoles for the linked application, and it's not possible to update the roles via the service principal object? When I try to update appRoles for a service principal, I get:
HTTP/1.1 400 Bad Request
Date: Wed, 26 May 2021 15:03:15 GMT
Content-Type: application/json

{
  "error": {
    "code": "Request_BadRequest",
    "message": "One or more properties contains invalid values.",
    "innerError": {
      "date": "2021-05-26T15:03:15",
      "request-id": "b7e2f3ed-e40f-4ef5-ac79-8a06dc7f913f",
      "client-request-id": "b7e2f3ed-e40f-4ef5-ac79-8a06dc7f913f"
    }
  }
}

@manicminer Apologies, yes i was getting the same result as well. I noticed it last week and meant to reply here, sorry for the delay, I will close this PR

No worries at all! Appreciate the time you put in.


Add static content to Individual PSC Statement

IDVA3-1037: Add static content to 'Individual PSC statement' screen

Static content added with localisation
Added placeholder for dynamic text [name] within the statement
Renamed the 'skeleton_five' files and references to 'individual statement'
Updated link on the personal code page to reference the individual PSC statement page

CI: No security warnings found

CI: No security warnings found

CI: No security warnings found

CI: No security warnings found


Various issues with the iOS build

Dear Developer,
We identified one or more issues with a recent delivery for your app, "Open Food Facts +" 5.5.5 (16). Please correct the following issues, then upload again.
ITMS-90683: Missing Purpose String in Info.plist - Your app's code references one or more APIs that access sensitive user data. The app's Info.plist file should contain a NSPhotoLibraryUsageDescription key with a user-facing purpose string explaining clearly and completely why your app needs the data. Starting Spring 2019, all apps submitted to the App Store that access user data are required to include a purpose string. If you're using external libraries or SDKs, they may reference APIs that require a purpose string. While your app might not use these APIs, a purpose string is still required. You can contact the developer of the library or SDK and request they release a version of their code that doesn't contain the APIs. Learn more (https://developer.apple.com/documentation/uikit/core_app/protecting_the_user_s_privacy).
ITMS-90683: Missing Purpose String in Info.plist - Your app's code references one or more APIs that access sensitive user data. The app's Info.plist file should contain a NSCameraUsageDescription key with a user-facing purpose string explaining clearly and completely why your app needs the data. Starting Spring 2019, all apps submitted to the App Store that access user data are required to include a purpose string. If you're using external libraries or SDKs, they may reference APIs that require a purpose string. While your app might not use these APIs, a purpose string is still required. You can contact the developer of the library or SDK and request they release a version of their code that doesn't contain the APIs. Learn more (https://developer.apple.com/documentation/uikit/core_app/protecting_the_user_s_privacy).
ITMS-90809: Deprecated API Usage - New apps that use UIWebView are no longer accepted. Instead, use WKWebView for improved security and reliability. Learn more (https://developer.apple.com/documentation/uikit/uiwebview).
Though you are not required to fix the following issues, we wanted to make you aware of them:
ITMS-90078: Missing Push Notification Entitlement - Your app appears to register with the Apple Push Notification service, but the app signature's entitlements do not include the 'aps-environment' entitlement. If your app uses the Apple Push Notification service, make sure your App ID is enabled for Push Notification in the Provisioning Portal, and resubmit after signing your app with a Distribution provisioning profile that includes the 'aps-environment' entitlement. Xcode does not automatically copy the aps-environment entitlement from provisioning profiles at build time. This behavior is intentional. To use this entitlement, either enable Push Notifications in the project editor's Capabilities pane, or manually add the entitlement to your entitlements file. For more information, see https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/HandlingRemoteNotifications.html#//apple_ref/doc/uid/TP40008194-CH6-SW1.
Best regards,
The App Store Team

https://stackoverflow.com/questions/59604058/flutter-ios-app-submission-missing-purpose-string-in-info-plist/64310132

We need to review the dependancies for UIWebview: https://github.com/flutter/flutter/issues/39470

The last one is not really an issue: Apple will validate anyway: https://stackoverflow.com/questions/55167611/flutter-ios-app-submission-issue-warning-missing-push-notification-entitlement

I know that "Missing Push Notification Entitlement" is common non-sense. Just ignore that message - AFAIK we don't use push notification here. In another flutter app I systematically get the same message.
cf. the previous message of @teolemon ;)

What do they mean with ""Open Food Facts +" 5.5.5 (16)"? It's not smoothie, is it?

it's the first name for Smoothie I found back in August. It's definitely not the final name :-)

it's only visible by testflight users anyway

I mean the version: 5.5.5+16?

5.5.5 is probably a mistake we also got for Android

hopefully we can pedal back ?

the submission failed, so we can possibly correct it

This is the current app version, (5.5.5 is just as an acciden)

#{major}.{minor}.{patch}+{version}
version: 5.5.5+16
pubspec.yaml

Hopefully, is this an manual upload or is fastlane ios working now?

What are you talking about?
https://github.com/openfoodfacts/smooth-app/blob/master/packages/smooth_app/pubspec.yaml#L15:
#{major}.{minor}.{patch}+{version}
version: 0.0.1

ah we need to rebase, possibly

https://github.com/openfoodfacts/smooth-app/blob/ios-fastlane/packages/smooth_app/pubspec.yaml

yes, we do need to rebase

Btw it should be 0.0.1+1, the +1 being for Android.

In Google Play you cannot pedal back the version number ("+1"), but you can change the version name "0.0.1". Already submitted to Google Play?

I am responsible for the 0.0.1.
The version given there is completely irrelevant. In the fastlane release the version will be overwritten. (determined by the brnach name)
The same with the build_code, but there the old one is retrieved from the playstore and increased.

The current one in the playstore is 0.0.1 and the buildcode should be 16 I guess.

I'm adding
NSPhotoLibraryUsageDescription
This app needs to access photo library for product photos uploads
NSCameraUsageDescription
This app needs Camera Usage for scanning barcodes and cropping photos
to Info.plist in ios-fastlane branch

any idea about:
New apps that use UIWebView are no longer accepted

We should first find out which package UIWebView actually needs, then we can weigh up how to proceed

I think I found it,
https://github.com/flutter/flutter/issues/60687#issuecomment-663890186

Luckily this is the "worse" scanner which is no longer maintained. This makes the discussions from previous issues obsolete.

Dear Developer,
We identified one or more issues with a recent delivery for your app, "Open Food Facts +" 0.0.1 (1). Please correct the following issues, then upload again.
ITMS-90809: Deprecated API Usage - New apps that use UIWebView are no longer accepted. Instead, use WKWebView for improved security and reliability. Learn more (https://developer.apple.com/documentation/uikit/uiwebview).
Though you are not required to fix the following issues, we wanted to make you aware of them:
ITMS-90078: Missing Push Notification Entitlement - Your app appears to register with the Apple Push Notification service, but the app signature's entitlements do not include the 'aps-environment' entitlement. If your app uses the Apple Push Notification service, make sure your App ID is enabled for Push Notification in the Provisioning Portal, and resubmit after signing your app with a Distribution provisioning profile that includes the 'aps-environment' entitlement. Xcode does not automatically copy the aps-environment entitlement from provisioning profiles at build time. This behavior is intentional. To use this entitlement, either enable Push Notifications in the project editor's Capabilities pane, or manually add the entitlement to your entitlements file. For more information, see https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/HandlingRemoteNotifications.html#//apple_ref/doc/uid/TP40008194-CH6-SW1.
Best regards,
The App Store Team

down to 1 blocking message

Apple doesn't like the Android+1
[22:46:17]: [iTMSTransporter] 		ERROR ITMS-90189: "Redundant Binary Upload. You've already uploaded a build with build number '1' for version number '0.0.1'. Make sure you increment the build string before you upload your app to App Store Connect. Learn more in Xcode Help (http://help.apple.com/xcode/mac/current/#/devba7f53ad4)."
[22:46:17]: [iTMSTransporter] [2021-02-16 22:46:17 UTC]  DBG-X: Returning 1
[22:46:17]: iTunes Transporter output above ^
[22:46:17]: ERROR ITMS-90189: "Redundant Binary Upload. You've already uploaded a build with build number '1' for version number '0.0.1'. Make sure you increment the build string before you upload your app to App Store Connect. Learn more in Xcode Help (http://help.apple.com/xcode/mac/current/#/devba7f53ad4)."

We fixes those issues


Ping

Right now every get or set pings the redis server first. This adds some latency to it. Any reason for this?

You'll have to dig around the upstream libraries for that answer.

Actually I think it's because the pool is set up to ping with TestOnBorrow unconditionally. It should check the last time the connection was idle, like in the examples in redigo.

Reopen if necessary.


chore: don't make all tests depend on builds

Overview

PR Checklist

[ ] Related to designs:
[ ] Related to JIRA ticket: [ABC-123]
[ ] I have run this code to verify it works
[ ] This PR includes unit tests for the code change
[ ] This PR includes testing instructions tests for the code change
[ ] The alpha package of this PR is passing end-to-end tests in all relevant Codecademy repositories

Testing Instructions

Don't make me tap the sign.
PR Links and Envs

Repository
PR Link
PR Env

Monolith
Monolith PR
Monolith Env

Portal
Portal Link
Portal Env

Another Repo
Another Link
Another Env

📬Published Alpha Packages:@codecademy/gamut@57.4.4-alpha.f0bc64.0@codecademy/gamut-icons@9.32.1-alpha.f0bc64.0@codecademy/gamut-illustrations@0.49.1-alpha.f0bc64.0@codecademy/gamut-kit@0.6.452-alpha.f0bc64.0@codecademy/gamut-patterns@0.9.16-alpha.f0bc64.0@codecademy/gamut-styles@17.1.1-alpha.f0bc64.0@codecademy/gamut-tests@5.1.3-alpha.f0bc64.0@codecademy/styleguide@68.2.4-alpha.f0bc64.0<EMAIL_ADDRESS>
🚀 Styleguide deploy preview ready!https://672a4b009689f8d54323eb58--gamut-preview.netlify.appDeploy Logs

📬Published Alpha Packages:@codecademy/gamut@57.4.4-alpha.4e7880.0@codecademy/gamut-icons@9.32.1-alpha.4e7880.0@codecademy/gamut-illustrations@0.49.1-alpha.4e7880.0@codecademy/gamut-kit@0.6.452-alpha.4e7880.0@codecademy/gamut-patterns@0.9.16-alpha.4e7880.0@codecademy/gamut-styles@17.1.1-alpha.4e7880.0@codecademy/gamut-tests@5.1.3-alpha.4e7880.0@codecademy/styleguide@68.2.4-alpha.4e7880.0<EMAIL_ADDRESS>
🚀 Styleguide deploy preview ready!https://672a50e1000bd4f4087988b1--gamut-preview.netlify.appDeploy Logs

📬Published Alpha Packages:@codecademy/gamut@57.4.4-alpha.bc260a.0@codecademy/gamut-icons@9.32.1-alpha.bc260a.0@codecademy/gamut-illustrations@0.49.1-alpha.bc260a.0@codecademy/gamut-kit@0.6.452-alpha.bc260a.0@codecademy/gamut-patterns@0.9.16-alpha.bc260a.0@codecademy/gamut-styles@17.1.1-alpha.bc260a.0@codecademy/gamut-tests@5.1.3-alpha.bc260a.0@codecademy/styleguide@68.2.4-alpha.bc260a.0<EMAIL_ADDRESS>
🚀 Styleguide deploy preview ready!https://672a67c5dd3a3719dfb539a2--gamut-preview.netlify.appDeploy Logs

🚀 Styleguide deploy preview ready!https://672a6a369405b30225f4dacf--gamut-preview.netlify.appDeploy Logs

📬Published Alpha Packages:@codecademy/gamut@57.4.4-alpha.572569.0@codecademy/gamut-icons@9.32.1-alpha.572569.0@codecademy/gamut-illustrations@0.49.1-alpha.572569.0@codecademy/gamut-kit@0.6.452-alpha.572569.0@codecademy/gamut-patterns@0.9.16-alpha.572569.0@codecademy/gamut-styles@17.1.1-alpha.572569.0@codecademy/gamut-tests@5.1.3-alpha.572569.0@codecademy/styleguide@68.2.4-alpha.572569.0<EMAIL_ADDRESS>
🚀 Styleguide deploy preview ready!https://672a6cbe9ae2c40a2700e278--gamut-preview.netlify.appDeploy Logs

📬Published Alpha Packages:@codecademy/gamut@57.4.4-alpha.f12aea.0@codecademy/gamut-icons@9.32.1-alpha.f12aea.0@codecademy/gamut-illustrations@0.49.1-alpha.f12aea.0@codecademy/gamut-kit@0.6.452-alpha.f12aea.0@codecademy/gamut-patterns@0.9.16-alpha.f12aea.0@codecademy/gamut-styles@17.1.1-alpha.f12aea.0@codecademy/gamut-tests@5.1.3-alpha.f12aea.0@codecademy/styleguide@68.2.4-alpha.f12aea.0<EMAIL_ADDRESS>
🚀 Styleguide deploy preview ready!https://672a708d9405b30c0cf4dabe--gamut-preview.netlify.appDeploy Logs

📬Published Alpha Packages:@codecademy/gamut@57.4.4-alpha.faa619.0@codecademy/gamut-icons@9.32.1-alpha.faa619.0@codecademy/gamut-illustrations@0.49.1-alpha.faa619.0@codecademy/gamut-kit@0.6.452-alpha.faa619.0@codecademy/gamut-patterns@0.9.16-alpha.faa619.0@codecademy/gamut-styles@17.1.1-alpha.faa619.0@codecademy/gamut-tests@5.1.3-alpha.faa619.0@codecademy/styleguide@68.2.4-alpha.faa619.0<EMAIL_ADDRESS>
🚀 Styleguide deploy preview ready!https://672a78aa27bb4d3959664a55--gamut-preview.netlify.appDeploy Logs

📬Published Alpha Packages:@codecademy/gamut@57.4.4-alpha.05bb18.0@codecademy/gamut-icons@9.32.1-alpha.05bb18.0@codecademy/gamut-illustrations@0.49.1-alpha.05bb18.0@codecademy/gamut-kit@0.6.452-alpha.05bb18.0@codecademy/gamut-patterns@0.9.16-alpha.05bb18.0@codecademy/gamut-styles@17.1.1-alpha.05bb18.0@codecademy/gamut-tests@5.1.3-alpha.05bb18.0@codecademy/styleguide@68.2.4-alpha.05bb18.0<EMAIL_ADDRESS>
🚀 Styleguide deploy preview ready!https://672a7e6cbeadb94132cad659--gamut-preview.netlify.appDeploy Logs


Request: Please test thoroughly before releasing any new version of language server

Dear Team,
Thank you so much for the wonderful software product and the team behind it. But after facing some major issues with python language server recently we cannot relay on it anymore. It is not much stable and it will break the flow with every new release. Also there is no option to downgrade the python language server.
I'm requesting you guys, if possible please test the python language server thoroughly before releasing any new version.
Once again thank you soo much!

We do test everything we release. We kept 0.3 back for about a month testing and fixing things, and 0.3.20 (the most recent stable) in daily/beta channels for a while itself making sure everything was working well. The recent CPU/memory usage issues were reported at the end of last week (the holiday weekend), a while after it was released to everybody. Issues do happen, and we try to prevent and fix them as much as we can, but there's always a chance of something being missed.
Your issue, #1291, may have improved with the most recent PR merged. See there for info.


update sdk to 5.0.104

There's also 5.0.201, but I didn't look into differences. Just updating security patch here. I think we just always want latest though?

I think we just always want latest though?

I think so.
Related: https://github.com/Brightspace/rules_csharp/issues/140


1 test failed. relative time:custom rounding (2721.3)

Client info
Date String   : Fri Mar 03 2017 10:31:40 GMT-0800 (PST)
Locale String : 3/3/2017, 10:31:40 AM
Offset        : 480
User Agent    : Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/602.4.8 (KHTML, like Gecko) Version/10.0.3 Safari/602.4.8
Moment Version: 2.17.1

====
relative time:custom rounding (2721.3)
Round down towards the nearest day
// Expected in 30 days
// Actual   in a month
"in a month" === "in 30 days"

Trying to help.

Thanks for making an issue.
This is a duplicate of #3801


Update README.markdown

remove duplicate parameter

Checklist

[✓ ] I've looked at the contribution guidelines.
[✓ ] This pull request is complete and ready for review.

Description

Nice little fix 👍


Discuss: Update CRD apiversion to v1 and drop v1beta1 version?

background
The apiextensions.k8s.io/v1beta1 API version of CustomResourceDefinition is no longer served as of v1.22.
ref: https://kubernetes.io/docs/reference/using-api/deprecation-guide/#customresourcedefinition-v122
And the apiextensions.k8s.io/v1 API version, available since v1.16.

All existing persisted objects are accessible via the new API
Notable changes:

spec.scope is no longer defaulted to Namespaced and must be explicitly specified
spec.version is removed in v1; use spec.versions instead
spec.validation is removed in v1; use spec.versions[*].schema instead
spec.subresources is removed in v1; use spec.versions[*].subresources instead
spec.additionalPrinterColumns is removed in v1; use spec.versions[*].additionalPrinterColumns instead
spec.conversion.webhookClientConfig is moved to spec.conversion.webhook.clientConfig in v1
spec.conversion.conversionReviewVersions is moved to spec.conversion.webhook.conversionReviewVersions in v1
spec.versions[*].schema.openAPIV3Schema is now required when creating v1 CustomResourceDefinition objects, and must be a structural schema
spec.preserveUnknownFields: true is disallowed when creating v1 CustomResourceDefinition objects; it must be specified within schema definitions as x-kubernetes-preserve-unknown-fields: true
In additionalPrinterColumns items, the JSONPath field was renamed to jsonPath in v1 (fixes #66531)

Should we drop the apiextensions.k8s.io/v1beta1 API version support?

Ok, let me implement it

Discussion on the mailing list
https://lists.apache.org/thread.html/rd5278463e2483f54ddb9a657020ad0637e17a77d1507875974fc5168%40<dev.apisix.apache.org>


Enable Field on Report Requestpage by using a global variable

Describe the bug
The Property Enabled on fields in a Report's Requestpage can't be set by a variable. If set directly by Enabled = true; it works.
The Property Visible doesn't work either.
To Reproduce
report 51000 "test report"
{
    UsageCategory = None;
    ProcessingOnly = true;
    requestpage
    {
        layout
        {
            area(Content)
            {
                group(Options)
                {
                    field(used; PaymentsTo)
                    {
                        ApplicationArea = All;
                        Caption = 'Payments to';
                        Enabled = PaymentDateEnabled;
                    }
                }
            }
        }
        trigger OnOpenPage()
        begin
            PaymentDateEnabled := true;
        end;
    }
    trigger OnInitReport()
    begin
        PaymentDateEnabled := true;
    end;
    var
        PaymentsTo: Date;
        PaymentDateEnabled: Boolean;
}

Expected behavior
The field should be enabled. Either by OnOpenPage or by OnInitReport.
Versions:

AL Language: 2.1.79379

Business Central: US Dynamics NAV 13.3 (27233)

Still open?
I would like to offer different option values depending on values set via program code. For this purpose I duplicated a selection field and created different selections using the OptionCaption and ValuesAllowed properties. Unfortunately, I cannot show the appropriate field via the Visibility property.

@sd484, thank you.
It is working now as expected.


Changed metrics to reset to 0

This came up when I was trying to figure out of the zk_followers and zk_synced_followers metrics were correct. A follower should never have those values be non-zero.

FYI - I'm in discussion with Netflix to move Exhibitor to its own repo so that it get better community support. Please stayed tuned.

Closing and re-opening to trigger Travis CI.


Support for es6 modules

Untested
Needs backmerge

Closes https://github.com/siddharthkp/auto-install/issues/11

It works with local files and npm modules, but import memoize from 'lodash/memoize' tries to install lodash/memoize instead of lodash

@bfred-it Trying to use detective and detective-es6 both.
The problem now is:
detective fails when it sees an import statement.
and detective-es6 only detects es6 modules.
I can solve this by asking the user to pick one flavor using a cli flag or config.
But, If a repository uses both styles, this fails.
Any suggestions?

My suggestion would be to open an issue for detective/-es6.
Alternatively you could revert to the previous code and just use a regex to get the right installable repo:
const regex = /^(@[^/]+\/)?([^/]+)/;
const simpleImport = 'foo';
const deepImport = 'foo/bar/baz.js';
const scopedImport =<EMAIL_ADDRESS>console.log(simpleImport.match(regex)[0]); // -> foo
console.log(deepImport.match(regex)[0]); // -> foo
console.log(scopedImport.match(regex)[0]); // -> @foo/bar


Hooks.useTransition is leaving transition-enter classname to its next sibling.

So I implemented it and it almost is identical to the animations that you have for TodoMVC. However, when I try to delete an item from the list say in the middle, then the next item will add transition-enter on the next sibling. It looks like transition-enter is getting applied to the next item after transition.triggerLeave is called?
Given the following code:
[<HookComponent>]
let Monitor (item: Monitor) dispatch =
    let transitionMs = 200
    let transition = Hook.useTransition(transitionMs, onLeft = (fun () -> DeleteMonitor item.Id |> dispatch))
    let className = Hook.use_scoped_css $"""
        :host {{
            transition-duration: {transitionMs}ms;
            border: 2px solid lightgray;
            border-radius: 10px;
            margin: 5px 0;
        }}
        :host.transition-enter {{
            opacity: 0;
            transform: scale(2);
        }}
        :host.transition-leave {{
            opacity: 0;
            transform: scale(0.1);
        }}
        .is-clickable {{
            user-select: none;
        }}
    """
    html $"""

{item.Id} {item.FriendlyName} {item.URL}

            <sl-button @click={Ev (fun _ -> transition.triggerLeave())}>Delete monitor</sl-button>
            <sl-button @click={Ev (fun _ -> EditMonitor item |> dispatch)}>Edit monitor</sl-button>

    """

[<HookComponent>]
let Page() =
    let model, dispatch = Hook.useElmish(init, update)
    let renderItem (item: Monitor) =
        match model.Edit with
        | Some value when value.Id = item.Id->
            html $"""

{item.Id}

                <input value={item.FriendlyName} @keyup={EvVal (fun e -> UpdateFriendlyName e |> dispatch)}/>
                <input value={item.URL}/>
                <sl-button @click={Ev (fun e -> SaveMonitor model.Edit.Value |> dispatch)}>Save monitor</sl-button>

            """
        | _ ->
            Monitor item dispatch

    html $"""
     <sl-button @click={Ev (fun e ->
            let newMonitor = {
                Id = Random.Shared.Next()
                FriendlyName = "Test1"
                URL = "2"
                Retries = 100
                HeartBeatInterval = 100
            }
            CreateMonitor newMonitor |> dispatch)}>New monitor</sl-button>
        {model.Monitors |> Seq.map renderItem}
    """

When the delete button is clicked, the next sibling is left hanging with transition-enter. I expect no transition class name is left hanging. I've checked the update function that I have and the delete is only getting called once.
Update: I changed model.Monitors |> Seq.map to Lit.mapUnique and it works perfectly fine. Documentation refer to the method as

mapUnique
You can pass any iterable (including F# lists) to Lit, but when it's important to identify items in a list (e.g. when the list can be sorted, filtered or included item transitions), use Lit.mapUnique to give each item a unique id.

Not sure what included item transition means here and why would it fix it? Also, why does mapUnique expects the Id to be a string?

This is probably due to how Lit does the diffing when removing/adding elements from a list. Apparently it's much faster to remove the last child instead of one in the middle. So what Lit does is, instead of deleting from the middle of the list, it removes the actual HTML element and the end and reuses the other elements. This is why the hook gets confused and applies the class to what should be a different element.
To avoid this, when rendering a dynamic list, it's recommended to use mapUnique to give a unique ID to each item. This will allow Lit to correctly identify each item and avoid situations like this: https://github.com/fable-compiler/Fable.Lit/blob/6317d3a32ed91927984b1fc03aa7da3fc02affa3/src/Lit/Lit.fs#L265-L272

Lit expects a string as its identifier?

Yes, this is common in JS (React also expects the key prop to be a string). Keys must be unique and shouldn't change between renders (e.g. don't use the index if you're going to sort the list or remove/add elements in the middle).

With Fable a usual pattern is to add a Guid property to the items and then convert it to string when passing to Lit or React.


[Bug] Wrong metric data used in contributors chart.

Version
1.9.6
Current Behavior
As implemented in https://github.com/hypertrons/hypertrons-crx/pull/794 , the data used right now is new_contributors, but we should use contributors metrics because the meaning of the chart just like participants, which is the active contributors in the repo but not new contributors.
Expected Behavior
Use contributors metrics instead of new_contributors
Environment
- OS: MacOS
- Browser: Chrome

Any additional comments?
No response

Can use https://github.com/redis/redis to check the data, contributors count in the repo should 4 but not 0.

Hello @Tenth-crew, could you handle this?

OK, I've made the changes. Previously, new_contributors was used because the Metric in opendigger's Readme did not list contributors but only new_contributors and Inactive contributors. I mistakenly thought that there were only these two metrics for contributors. If there is a complete metric somewhere, can you give me a link to check it out? In addition, maybe the metrics supported in the opendigger Readme can be updated later.

@Tenth-crew Yes, this should be a missing metric in README since the metric is implemented recently. Will fix this soon.


Sharding support

How can I use Postgres sharding with prisma? If it’s not currently supported, I would be very interested in it.

This is not currently supported so we'll keep this issue as a feature request.

Any update? Or any suggestions on workarounds?

No native support yet. One possible workaround would be adding something like Planetscale or Citus to handle the sharding.
Prisma then connects to a single endpoint and doesn't know that it's a sharded database. If you give that a try, please let us know how it goes!

need this feature for mysql as well.

Any news on this?

any news on this ?

News on this would be awesome! Huge for large scale.

How does sharding actually work in PostgreSQL? Can someone provide some documentation links?

Yes please. Sharding support would be amazing.

How does sharding actually work in PostgreSQL? Can someone provide some documentation links?

@janpio From what I can tell, PostgreSQL does not support sharding out of the box. There is some kind of workaround for that (by leveraging Partitioning + FDW) and an extension for it https://www.citusdata.com/.
For Citus some libs exist that provide a convenient DX for various Frameworks/ORMs (eg for Ruby on Rails).

Also following this for sharding


Driver crashes and WeeWx cannot recover

See log.  I had WeeWx set to capture the log in debug detail.  The first few hundred lines show normal behavior.  The crash stack is toward the end.
weewx weatherlink-live crashlog.txt

I see you are using the Weather34 skin. Could you try to run WeeWX without the skin (at least with the services disabled), just to see if the issues still appear?
What Pi model are you using?

Hi Michael -- I'm running it on a Pi 4 with Raspbian 10 Buster.  I will remove Weather34 and report back in a few days.  The crash sometimes takes a few days to happen.  It's happened a few times.

Your log shows that WeeWX could not start any more threads. The driver only starts 2 or so threads and always checks if the old ones have finished before starting new ones. I've checked this by profiling/debugging the driver for 2-3 hours.
So, I've guessed it was caused by Weather34.


Update createAccessPolicy.yaml

This is the default pull request template. You can customize it by adding a pull_request_template.md at the root of your repo or inside the .github folder.
Jira Ticket
Include a link to your Jira Ticket
Example: JIRAISS-1234
Demo
Please add a recording of the feature/bug fix in work. if you added new routes, the recording should show the request and response for each new/changed route
Checklist:

[ ] I have filled relevant self assessment (NodeJS, Frontend, Backend)
[ ] I have run ESlint on my changes and fixed all warnings and errors (NodeJS & Frontend Services)
[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have validated all the requirements in the Jira task were answered
[ ] I have all neccessary approvals for the design/mini design of this task
[ ] I have approved the API changes and granular permission patterns (documentation subtask) (For public services only)

@dorspot Please merge. I changed the description for api/services/administration/general/paths/createAccessPolicy.yaml


Module RCTAuroraIMUIModule requires main queue setup since it overrides `in

My environment:

黄色警告：

react-native 0.57.8:
aurora-imui-react-native version:0.12.0

Module RCTAuroraIMUIModule requires main queue setup since it overrides init but doesn't implement requiresMainQueueSetup. In a future release React Native will default to initializing all native modules on a background thread unless explicitly opted-out of

[ ]

[ ]

same issues


Issues with 'az network dns zone update'

Issues with 'az network dns zone update':

-h help text has two groups of parameters both under the same heading 'Generic Update Arguments'.  These should be grouped into a single group, containing add/remove/set
Not clear how add/remove/set should be used.  For example, how do I add, edit or remove ARM Tags using this command?  Needs concrete examples.
Supporting If-none-match is pointless, it's only useful when creating zones, and that should be done via 'az network dns zone create'.  We should support the option to control create-if-not-exist there, not here.

remove if-none-match
add examples

For zone update, please add example of ARM tag create/update/remove

For tags, we need examples covering:

Removing all tags
Adding a new tag (suggest using "dept=finance")
Removing an existing tag, leaving other items in place (again, use "dept=finance")

Reopening since the PR only addressed part of this issue.

Points 1 and 3 have been fixed. Point 2 is a more general issue with generic update that does not pertain specially to DNS so it is being tracked as a separate issue.


Upgrading to the latest version of Symphony (v2.3.1)

Do you have plans on updating to Symphony v2.3? I tried but I got a lot of errors due to incompatible extensions. I'm pretty new to Symphony but I like it's flexibility and this Ensemble is awesome.

@drejohnson Use https://github.com/atheycreek/atheycreek/ if you are interested in a CD implementation on a new version of Symphony. We are at 2.6.0-rc1.


PyBuilder install_dependencies behavior should mirror #340

Got rid of Mockito entirely. This resulted in finding a huge bug in reactor tests whereas the plugin loader in the actual (not mocked) reactor was substituted with a mock plugin loader affecting further reactor behavior. https://github.com/pybuilder/pybuilder/pull/347/files#diff-9584cce2b40001f24aa966f2329c0bc7R50 https://github.com/pybuilder/pybuilder/pull/347/files#diff-9584cce2b40001f24aa966f2329c0bc7R421

We use Unittest.Mock where it is available and Mock elsewhere. Dependencies are adjusted accordingly.

All of the PIP internal stuff is moved into pip_common (to expose Version and SpecifierSet) while pip_utils contains PIP-related utilities. https://github.com/pybuilder/pybuilder/pull/347/files#diff-3f7930768a016caa358fe51c630f08cfR1

Corollary to self-updating (since we use PIP internals) is reloading of PIP post-update to allow incompatible migrations from 6 to 8 etc. https://github.com/pybuilder/pybuilder/pull/347/files#diff-001479a18f1db7b9cde893d99c6734f1R133

Logic related to what to install is concentrated here: https://github.com/pybuilder/pybuilder/pull/347/files#diff-001479a18f1db7b9cde893d99c6734f1R136

Logic related to how to install (if there are individual install targets or URL install causing force-reinstall must install separately, otherwise can batch) is here:
https://github.com/pybuilder/pybuilder/pull/347/files#diff-001479a18f1db7b9cde893d99c6734f1R106

fixes #346, connected to #346

@arcivanov is this ready for review or are you still tinkering with it?

@mriehl still tinkering, hence the WIP label

Coverage decreased (-0.05%) to 70.391% when pulling ae9a3adc536de58c1c4cbf6197f5da3b11c15c2c on arcivanov:issue_346 into bc3b6702dbe70cf2ba79af2d6ac671d4e1b6df0e on pybuilder:master.

Coverage decreased (-0.05%) to 70.391% when pulling ca45b96ab6fb63640660e65dfdf1a9527adfeff0 on arcivanov:issue_346 into bc3b6702dbe70cf2ba79af2d6ac671d4e1b6df0e on pybuilder:master.

Coverage decreased (-0.05%) to 70.391% when pulling 9888447cc2ff40e29b666338185439ce7606e8ad on arcivanov:issue_346 into bc3b6702dbe70cf2ba79af2d6ac671d4e1b6df0e on pybuilder:master.

Coverage decreased (-0.05%) to 70.391% when pulling d0ce2ec238dfb81138e7d03fce559c2b79b63ff1 on arcivanov:issue_346 into bc3b6702dbe70cf2ba79af2d6ac671d4e1b6df0e on pybuilder:master.

Coverage increased (+1.6%) to 72.063% when pulling d9c29ac7497aad08155d39696c76853183d451cd on arcivanov:issue_346 into bc3b6702dbe70cf2ba79af2d6ac671d4e1b6df0e on pybuilder:master.

@mriehl ready for preliminary review

@mriehl @esc bump

Good stuff, and nice find on the mock.

Coverage decreased (-0.06%) to 72.207% when pulling eb036f4bbb3686846340969e1e0e7ac1f0c49d4f on arcivanov:issue_346 into 157420ec6626d4fe239c417c006c2c835df01d76 on pybuilder:master.


Python: Add hybrid search on text memory skill and memory store

Motivation and Context

Why is this change required? It would be opening the various search types of memory.
What problem does it solve? Currently, sk supports the nearest vector search.
What scenario does it contribute to? This PR supports hybrid search.
If it fixes an open issue, please link to the issue here. #3290

Description

I added the "search_type" signature so that we're able to select the search type such as "near_vector" or "hybrid" which is weaviate's a feature
.
Contribution Checklist

[x] The code builds clean without any errors or warnings
[x] The PR follows the SK Contribution Guidelines and the pre-submission formatting script raises no violations
[x] All unit tests pass, and I have added new tests where possible
[x] I didn't break anyone :smile:

Thanks for adding this @jungwookim! I definitely agree making hybrid search available and easy to use is important! This might be good to get into main in the interim while the Kernel Memory project (https://github.com/microsoft/kernel-memory) works on bringing up a Python client that can be easily used by SK.
@dluc what do you think?

Thanks for reviewing @alexchaomander ! I've resolved all your comments. vector is way better to read for code.

Hi @jungwookim, is this work still needed? I am closing this PR as it has been stale since Oct 2023. If the work is still required, please open a new PR against the latest code in main. Thank you.


Potential memory leak with SymbolicTensor

Issue type
Bug
Have you reproduced the bug with TensorFlow Nightly?
Yes
Source
source
TensorFlow version
2.15
Custom code
Yes
OS platform and distribution
Manjaro Linux
Mobile device
No response
Python version
3.11.5
Bazel version
No response
GCC/compiler version
No response
CUDA/cuDNN version
12.3.52
GPU model and memory
No response
Current behavior?
Hello,
I am working on a TinyML NAS framework, i.e. throughout the execution of my code, hundreds if not thousands of models are created and trained. I have come across a problem that has been starving my system of memory after a couple of days of execution. By using tracemalloc I have been able to see that the main contributor appears to be the symbolic tensor created when creating a Conv2D layer. Maybe I am missing something basic in terms of garbage collection in my code but over time the demo code will eventually consume all system memory.
I have also tried tf.keras.backend.clear_session() and gc.collect() but neither help.
Any help would be appreciated.
Cheers
Standalone code to reproduce the issue
import gc
import tracemalloc, sys, linecache, os
import numpy as np
import tensorflow as tf
from tensorflow import keras

EPOCHS = 5
BS = 512
TEST_LOOPS = 10000

def start_tracemalloc():
    tracemalloc.start()

def display_top(snapshot, key_type="lineno", limit=5):
    snapshot = snapshot.filter_traces(
        (
            tracemalloc.Filter(False, "<frozen importlib._bootstrap>"),
            tracemalloc.Filter(False, "<unknown>"),
        )
    )
    top_stats = snapshot.statistics(key_type)

    print("Top %s lines" % limit)
    for index, stat in enumerate(top_stats[:limit], 1):
        frame = stat.traceback[0]
        # replace "/path/to/module/file.py" with "module/file.py"
        filename = os.sep.join(frame.filename.split(os.sep)[-2:])
        print(
            "#%s: %s:%s: %.1f KiB" % (index, filename, frame.lineno, stat.size / 1024)
        )
        line = linecache.getline(frame.filename, frame.lineno).strip()
        if line:
            print("    %s" % line)

    other = top_stats[limit:]
    if other:
        size = sum(stat.size for stat in other)
        print("%s other: %.1f KiB" % (len(other), size / 1024))
    total = sum(stat.size for stat in top_stats)
    print("Total allocated size: %.1f KiB" % (total / 1024))

def display_snapshot():
    snapshot = tracemalloc.take_snapshot()
    display_top(snapshot)

def create_model() -> keras.models.Model:
    inputs = keras.layers.Input(shape=(28, 28, 1))
    x = keras.layers.Conv2D(32, kernel_size=(3, 3), padding="valid")(inputs)
    x = keras.layers.MaxPooling2D(pool_size=(2, 2), strides=None)(x)
    x = keras.layers.Flatten()(x)
    x = keras.layers.Dense(128, activation=tf.nn.relu)(x)
    x = keras.layers.Dropout(0.2)(x)
    outputs = keras.layers.Dense(10, activation=tf.nn.softmax)(x)

    model = keras.models.Model(inputs=inputs, outputs=outputs)
    model.compile(optimizer='adam', loss='sparse_categorical_crossentropy', metrics=['accuracy'])

    return model

def train_model(model, train_images, train_labels):
    model.fit(train_images, train_labels, epochs=EPOCHS, batch_size=BS)

def main() -> int:
    mnist = keras.datasets.mnist
    (train_images, train_labels), (test_images, test_labels) = mnist.load_data()

    train_images = train_images.reshape(train_images.shape[0], train_images.shape[1], train_images.shape[2], 1)
    train_images = train_images.astype(np.float32) / 255.0

    start_tracemalloc()

    for i in range(TEST_LOOPS):
        tf.keras.backend.clear_session()
        gc.collect()

        model = create_model()
        train_model(model, train_images, train_labels)
        display_snapshot()
        del model

if __name__ == '__main__':
    sys.exit(main())

Relevant log output
Epoch 1/5
...
Top 5 lines
#1: <frozen abc>:123: 1856.2 KiB
#2: python3.11/linecache.py:137: 606.4 KiB
    lines = fp.readlines()
#3: framework/ops.py:245: 197.9 KiB
    return pywrap_tf_session.PyTensor.__new__(
#4: <frozen importlib._bootstrap_external>:729: 158.6 KiB
#5: framework/ops.py:1211: 137.3 KiB
    self._gradient_function = None
952 other: 1407.6 KiB
Total allocated size: 4364.1 KiB
Epoch 1/5
...
Top 5 lines
#1: <frozen abc>:123: 1846.9 KiB
#2: python3.11/linecache.py:137: 620.8 KiB
    lines = fp.readlines()
#3: framework/ops.py:245: 382.3 KiB
    return pywrap_tf_session.PyTensor.__new__(
#4: framework/ops.py:1211: 264.9 KiB
    self._gradient_function = None
#5: framework/ops.py:1161: 254.7 KiB
    self = Operation(c_op, SymbolicTensor)
947 other: 2160.5 KiB
Total allocated size: 5530.0 KiB
Epoch 1/5
...
Top 5 lines
#1: <frozen abc>:123: 1843.9 KiB
#2: python3.11/linecache.py:137: 620.8 KiB
    lines = fp.readlines()
#3: framework/ops.py:245: 568.5 KiB
    return pywrap_tf_session.PyTensor.__new__(
#4: framework/ops.py:1211: 394.1 KiB
    self._gradient_function = None
#5: framework/ops.py:1161: 378.9 KiB
    self = Operation(c_op, SymbolicTensor)
949 other: 2702.3 KiB
Total allocated size: 6508.5 KiB

@SuryanarayanaY I was able to replicate the issue reported here. Thank you!

Being discussed in Keras. #19058

@SuryanarayanaY I posted a similar thing on Keras as I was not sure if it was a TF problem or a Keras problem

Any news @SuryanarayanaY? I just have a research paper waiting on this bugfix >.<


Init menu does not have an EXIT option, only CTRL+C exit

Enhancement
The menu of kusion init does not have an EXIT option, only CTRL+C exit
screenshot:

I don't think we need an exit button here from a long time view. Now we have only have 2 templates on list, "exit" button can be touched quickly, but if we have 10+ templates, users have to move the arrow from top to the bottom, this will be a very annoying operation.


Potentially change syntax for instancing

Right now only a moduledef can add an instance.
I could do the following:
Generator(genargs) -> Module
Module(modargs)  -> Instance
ModuleDef.addInstance(instnamename,unique_ptr<Instance>)

Pros:

Cleaner and similar semantics to magma (I think)
Simpler to understand relationship between generators, modules and instances

Cons:

I can have anonymous instances floating around which seems dangerous
Module would have to keep around genargs (maybe this is where they should be anyways)

Questions:

What happens when I connect an instance without attaching to a moduledef? @leonardt, how does magma deal with this?
Does the generator run the generator definition if it has it? Currently I can only run a generator from Instance.runGenerator

A potentially better way for instances are:
Instance = Module(moduledef, instname, modargs)

This was partially implemented.
It is annoying to directly do functor-style calling conventions due to everything being pointers though


FileNotFoundError: [Errno2]

Running: python main.py --is_train=true --iters=25000 --dataset=fashion_mnist
Result:
FileNotFoundError: [Errno 2] No such file or directory: '/content/collaborative-image-inpainting/fixed_z.pkl'

Thank you for the feedback. It should have been fixed by now, please check the new version.
The "fixed_z.pkl" was a presaved latent vector z (random noise) used to be able to observe the evolution of the generated images from a consistent fixed random vector. I added it back and it should be working now.

Thank you for the feedback. It should have been fixed by now. The "fixed_z.pkl" was a pre-saved latent vector z (random noise) used to be able to observe the evolution of the generated images from a consistent fixed random vector. I added it back and it should be working now. , please check the new version and keep me updated if anything goes wrong :)

Please note that I updated the repository readme with a link to my trained model and saved latent vectors for reproducibility.


update data health tile to ga

this pr updates data health tiles to ga:

removes beta lifecycle and callout
updates tableau instructions
adds release note

Approved by @rpourzand


[1.30.8] sap.ui.model.odata.v2.ODataModel.submitChanges Problems

sap.ui.model.odata.v2.ODataModel.submitChanges with useBatch: true after sap.ui.model.odata.v2.ODataModel.createEntry together with some other bindings behaves erratic when the create fails: It calls the success handler with batchResponses inside the odata parameter. I would have expected the error handler to be called.
I have an HANA XS application on hanatrial to reproduce (https://s9hanaxs.hanatrial.ondemand.com/p1941627274trial/hc/demo/ui/index.html), the code is available in the gist https://gist.github.com/DerGuteWolf/4e895c13b3cd4f8be51c .
To reproduce the error, create two entries with the same primary key or create a entry with a country code longer than 2 characters.

Hi valdrinkoshi,
thanks for analyzing this issue and creating a gist for it, i am not 100% sure if it is a bug but will contact the developers of the ODataModel and they will keep you updated here.
Internal incident id:<PHONE_NUMBER>
Best regards,
Michael

Hi,
when there are multiple requests in a batch and one request inside the batch failes but the batch itself is successful, then the success handler is called. You have to determine in the successhandler callback parameter the responses and check if a request has failed. Also you can do that by attaching to the event batchRequestCompleted and inside the oEvent.getParameter('requests') object you will find each request with the respons including and a success property:
oModel.attachBatchRequestCompleted(this, function(oEvent){
oEvent.getParameter('requests');
....
oRequest.response --> has response information
if (oRequest.success === false){...}
});


Fix DeadStoreElim by not lying about instruction semantics

@swift-ci Please test

Build failed
Jenkins build - Swift Test Linux Platform
Git Commit - 15a12da7466b7bfeb6664a6184748a8f431eb47d
Test requested by - @aschwaighofer

Unrelated lldb error:
09:35:18 /home/buildnode/jenkins/workspace/swift-PR-Linux/
branch-swift-4.0-branch/lldb/source/Symbol/SwiftASTContext.cpp:65:10: fatal error:
'swift/../../lib/IRGen/Linking.h' file not found
09:35:18 #include "swift/../../lib/IRGen/Linking.h"

Yes, I agree that the Linux failure is unrelated. I'll go ahead and merge this.


Compiling error

Describe your problem here.
When i do lime test windows, i get an error like this  Help please?
Are you modding a build from source or with Lua?
Source
What is your build target?
Windows x64
Did you edit anything in this build? If so, mention or summarize your changes.
No

That's not an error
You can look it up, it's a warning you can ignore

Oh, thanks


[Fix #17371][V4] Deactivating dropdown links in nav tab

This fixes issue #17371
Unit tests are included. If there is any feedback, feel free to let me know.

This bug happens with normal tab links also. Everytime you click a link, active class is added to it and it can't be clicked again because the active class is never removed. Meaning you can only visit every tab once.

@haBuu I'm trying to recreate the behavior you're talking about, but I can't seem to do it. Can you post a JS Fiddle or other example?

https://jsfiddle.net/qz8a1ay5/

Hi @haBuu!
You appear to have posted a live example (https://fiddle.jshell.net/qz8a1ay5/show/light/), which is always a good first step. However, according to the HTML5 validator, your example has some validation errors, which might potentially be causing your issue:

line 43, column 3 thru column 8: Start tag body seen but an element of the same type was already open.
line 47, column 12 thru column 92: An element with role=tab must be contained in, or owned by, an element with role=tablist.
line 48, column 12 thru column 92: An element with role=tab must be contained in, or owned by, an element with role=tablist.
line 52, column 12 thru column 92: An element with role=tab must be contained in, or owned by, an element with role=tablist.
line 53, column 12 thru column 92: An element with role=tab must be contained in, or owned by, an element with role=tablist.
line 57, column 12 thru column 92: An element with role=tab must be contained in, or owned by, an element with role=tablist.
line 58, column 12 thru column 92: An element with role=tab must be contained in, or owned by, an element with role=tablist.
line 63, column 1 thru column 7: Saw an end tag after body had been closed.

You'll need to fix these errors and post a revised example before we can proceed further.
Thanks!
(Please note that this is a fully automated comment.)

@haBuu I think this is what you were going for: https://fiddle.jshell.net/a_matt_appeared/uvcos7q7/
This is better, but still not working.
In this case, I'm not sure if this behavior will be supported by v4 out of the box. From what I understand, navs are meant to be static objects where there is only one .nav-tabs or .nav-pills per group of tabs.
The use of .nav-pills in this fiddle is more like pagination, and we have three copies. I don't think this is what the BS team intends them to be for.
But if you have an example where this worked in v3, post it.

Hi @matt-hernandez!
You appear to have posted a live example (https://fiddle.jshell.net/a_matt_appeared/uvcos7q7/show/light/), which is always a good first step. However, according to the HTML5 validator, your example has some validation errors, which might potentially be causing your issue:

line 57, column 3 thru column 8: Start tag body seen but an element of the same type was already open.
line 95, column 1 thru column 7: Saw an end tag after body had been closed.

You'll need to fix these errors and post a revised example before we can proceed further.
Thanks!
(Please note that this is a fully automated comment.)

Updated fiddle to satisfy @twbs-lmvtfy
https://fiddle.jshell.net/a_matt_appeared/uvcos7q7/

Here is a working v3 version. http://jsfiddle.net/qz8a1ay5/5/

Hi @haBuu!
You appear to have posted a live example (http://fiddle.jshell.net/qz8a1ay5/5/show/light/), which is always a good first step. However, according to the HTML5 validator, your example has some validation errors, which might potentially be causing your issue:

line 46, column 9 thru column 87: An element with role=tab must be contained in, or owned by, an element with role=tablist.
line 47, column 9 thru column 87: An element with role=tab must be contained in, or owned by, an element with role=tablist.
line 51, column 9 thru column 87: An element with role=tab must be contained in, or owned by, an element with role=tablist.
line 52, column 9 thru column 87: An element with role=tab must be contained in, or owned by, an element with role=tablist.
line 56, column 9 thru column 87: An element with role=tab must be contained in, or owned by, an element with role=tablist.
line 57, column 9 thru column 87: An element with role=tab must be contained in, or owned by, an element with role=tablist.

You'll need to fix these errors and post a revised example before we can proceed further.
Thanks!
(Please note that this is a fully automated comment.)

@cvrebert Any feedback on this?

@matt-hernandez Not from me. @fat is the one to run this by.

Would love a review here from someone :).
/cc @Johann-S @bardiharborow (please tell me to stop pinging y'all if this gets too annoying 😆)

For me everything is fine @mdo (and that's ok to ping me don't worry 😃)

<3 thanks everyone


Turn script into module

After installing this module in the default 'Modules' folder, for system-wide this would be:
C:\Program Files\WindowsPowerShell\Modules\HardeningKitty<Version>\   folder
The new way to import the module and use the command will be
Import-Module HardeningKitty
Invoke-HardeningKitty

Nice Michael !
Please note that you may need to update some documentation on your website…
The old way to start the script, was to dot-source the script, then run the function within:
. .\Invoke-HardeningKitty.ps1
Invoke-HardeningKitty
Now the new way to start is, to import-module first.
If the module is (later) installed via a Repository like PSRepository, it is normally installed in a path mentioned in $env:PSModulePath
And can be called like this:
Import-Module HardeningKitty
Invoke-HardeningKitty
For now, if people download the new module(s) from the website, they should use:
Import-Module \HardeningKitty.psd1
Invoke-HardeningKitty
Regards, Ben van Zanten
From: Michael Schneider @.>
Sent: Sunday, 4 September 2022 08:41
To: 0x6d69636b/windows_hardening @.>
Cc: Zanten van, BAM (Ben) @.>; Author @.>
Subject: Re: [0x6d69636b/windows_hardening] Turn script into module (PR #118)
Merged #118https://github.com/0x6d69636b/windows_hardening/pull/118 into master.
—
Reply to this email directly, view it on GitHubhttps://github.com/0x6d69636b/windows_hardening/pull/118#event-7318033341, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEOAIKMG2BLGFU3U53CLIA3V4Q76FANCNFSM6AAAAAAQAX4BMU.
You are receiving this because you authored the thread.Message ID<EMAIL_ADDRESS>
This email (including any attachments to it) is confidential, legally privileged, subject to copyright and is sent for the personal attention of the intended recipient only. If you have received this email in error, please advise us immediately and delete it. You are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. Although we have taken reasonable precautions to ensure no viruses are present in this email, we cannot accept responsibility for any loss or damage arising from the viruses in this email or attachments. We exclude any liability for the content of this email, or for the consequences of any actions taken on the basis of the information provided in this email or its attachments, unless that information is subsequently confirmed in writing. <#rbnl#1898i>

Hi Ben, I updated the README this weekend ;-) Did you spot any improvements?

Oops forgot to read that one, it is fine !
Good work, thx.


v1 Template Functionality

We include some simple templates in the source but it would be much more useful if folks can build and import their own.
Current list of high-level requirements:

[ ] Architect template API for opening/validating and 'exporting' templates

[ ] Determine v1 template structure/schema and identify gaps in code to confirm existing templates
[ ] Documentation on how to package a template manually suitable for template API

[ ] Add Create Template from Specification dialog

[ ] A template needs to be parsed and validated against provider schema prior to generating for output
[ ] Template high-level metadata should include:

[ ] Provider (inferred from settings)
[ ] Provider schema URL (auto-provided for future-proofing)
[ ] Template GUID (auto-generated)
[ ] Template schema version
[ ] Name (mandatory; provided by creator)
[ ] Author Name (mandatory; provided by creator)
[ ] Author Contact (optional)
[ ] Description (mandatory; provided by creator; plain text only)

[ ] We should scan specification for field references and enumerate these for the creator to assign placeholders
[ ] Placeholders should infer column/measure from dataset, as well as data types from metadata
[ ] (optional) Description for creator to fill out for each placeholder
[ ] Upon validation, template JSON will be provided for copy/paste > save as .json file (custom visuals/Power BI Desktop don't have native file system access; we might be able to allow user to open a link to browser w/JSON in the page for easier save, but this is for later.

[ ] Add Open from Template functionality to dialog

[ ] .json files only
[ ] A template needs to be parsed and validated against schema prior to admission into the visual
[ ] Implementation of assistive text for placeholders into the dialog
[ ] Completion of data type restrictions for placeholder selection (only measure/grouping/both is implemented)

[ ] Optional placeholders, and how to manage them if not supplied

If we want a compliant visual for AppSource, we won't be able to look at storing/publishing templates at this time, as it involves HTTP and certified visuals should not include this functionality. We also can't save/export to a local file, so none of this is currently in-scope.

If we were to take the initial template structure and flesh out a bit, this is what I would envisage it looking like, although the author section needs fleshing out. I have a schema written-up for this, which ensures validation both ways (will treat spec and config as generic objects and these will need to be validated against appropriate provider schema at appropriate time) could be hosted from the doc site fairly easily for any external tooling.
spec and config are from the simple bar chart example for Vega-Lite, just to show what a completed template might look like.
placeholders (tokenised in the spec with __ each end) would be presented to the end user upon loading for them to fill out, providing the supplied metadata to assist. This would be authoered by the template creator, and the fields in the spec would be replaced upon Create.
{
  "$schema": "https://deneb-viz.github.io/schema/deneb/template/v1.json",
  "information": {
    "uuid": "58628d3f-becf-4f54-bdea-336ca9247143",
    "generated": "2021-03-22T13:00:00",
    "name": "Simple Bar Chart",
    "description": "Test description"
  },
  "author": {
    "name": "Daniel Marsh-Patrick",
    ...?...
  },
  "provider": {
    "language": "vegaLite",
    "schemaUri": "https://vega.github.io/schema/vega-lite/v5.json"
  },
  "spec": {
    "data": {
      "name": "dataset"
    },
    "mark": {
      "type": "bar",
      "tooltip": true
    },
    "encoding": {
      "y": {
        "field": "__category__",
        "type": "nominal"
      },
      "x": {
        "field": "__value__",
        "type": "quantitative"
      }
    }
  },
  "config": {
    "autosize": {
      "type": "fit",
      "contains": "padding"
    }
  },
  "placeholders": [
    {
      "key": "__category__",
      "name": "Y-Axis (Category)",
      "description": "Column to display along the Y-Axis for each bar.",
      "kind": "column",
      "types": [
        "text"
      ]
    },
    {
      "key": "__value__",
      "name": "X-Axis (Value)",
      "description": "Measure to display along the X-Axis for each bar.",
      "kind": "measure",
      "types": [
        "numeric",
        "integer"
      ]
    }
  ]
}


Memory issues

Hi
I have a memory problem. For example, When I use the Mpoxvirus reference sequence to align with a partial genome or specific coding sequence. The program used 62 GB+ of RAM, and the OS killed the process before it finished the alignment.
I've come across https://github.com/smarco/BiWFA-paper which seems to offer a solution with lower memory usage. Additionally, I've noticed the presence of low-memory modes in the code (WFA_wrap.pxd).
Will you plan to integrate these features in the Python interface pyfwa to enable the BiWFA algorithm or select memory strategies, or is there an alternative way? Please feel free to suggest me.
I also changed the heuristic functions (adaptive and Xdrop ), but they didn't help in my case.

Hi @silenus092,
It would be nice to add BiWFA, for sure. However, I don't have much time to add this. Perhaps in a month or two I might take a look.

I've just implemented this option in my fork here: https://github.com/josephlalli/pywfa
Very experimental, no idea how exposing this option affects accuracy or introduces other complications.
To use, when initializing your WavefrontAligner, specify memory_mode 'biwfa'.
from pywfa import WavefrontAligner

a = WavefrontAligner(memory_mode='biwfa')


Rename to verademo-netframework

Make it clear that this is for .NET Framework, not .NET 6+.

@tjarrettveracode I appear to not have admin rights on this repo, could you do this?

@tjarrettveracode ?

Sorry, just seeing this. yes, will do.

Awesome, thank you @tjarrettveracode !


Windows 95 fails to boot, strange colors

Windows 95 won't boot, and does that when booting in safe mode.

Never mind, my disk is apparently broken.


Parser wrongly creates CommentReference nodes for markdown links.

From @kevmoo on July 19, 2017 19:20
the rfc link below shows us as broken.
SDK 1.25.0-dev.7.0
/// An implementation of [keyed-hash method authentication codes][rfc].
///
/// [rfc]: https://tools.ietf.org/html/rfc2104
///
/// HMAC allows messages to be cryptographically authenticated using any
/// iterated cryptographic hash function.
class Hmac extends Converter<List<int>, Digest> {
...
}

Copied from original issue: dart-lang/linter#750

@bwilkerson, @scheglov: should this be moved to another component? (e.g., CFE?)

I don't expect the CFE to parse doc comments, so no.

I believe that this has been fixed. Please let us know if you're still seeing the described behavior.

This is still happening with wrapped links
  /// [color] may either be a [String], a [bool], or `null`. If it's a string,
  /// it indicates an [ANSI terminal color
  /// escape](https://en.wikipedia.org/wiki/ANSI_escape_code#Colors) that should

Agree

Yeah still happening, and comment_references detects the link reference; analyzer should too. It won't be CommonMark bulletproof, but a minimal, 90% correct solution is not difficult.


add second_hand tag in preset and second_hand field for shop=car

Hi,
I added the second_hand= tag to the preset. The tag is used to denote for shops whether the merchandise is used. It's used over 4,000 times  so far in the planet.
One common use of the second_hand tag is to designate a used car lot. I've also added the second_hand tag in this pull request.

Thanks!  This looks great  👍


Fix flickering effect

Refreshing the website when dark mode is activated would cause the screen to show the default light mode for a split second, causing a flickering effect. I have removed the useEffect and changed the useStates to hold initial values depending on the theme saved in local storage, if there is one. The default is still light mode, but now the flicker is gone and refreshing the website is smooth.
UPDATE: there is an easier way to do this and it is by replacing useEffect with useLayoutEffect. Apologies for closing and reopening this pull request; I am a git noob still. It should be fine now though.

Refreshing the website when dark mode is activated would cause the screen to show the default light mode for a split second, causing a flickering effect. I have removed the useEffect and changed the useStates to hold initial values depending on the theme saved in local storage, if there is one. The default is still light mode, but now the flicker is gone and refreshing the website is smooth.
UPDATE: there is an easier way to do this and it is by replacing useEffect with useLayoutEffect. Apologies for closing and reopening this pull request; I am a git noob still. It should be fine now though.

Thank you for fixing this issue, I haven't noticed it myself. Don't worry about reopening the pull request, everyone was once a beginner :)


Help needed: Content-Type with extra characters can't be parsed?

Describe the bug
I have a number of fp against Content-Type header because of an extra field in Content-Type. I'm not sure if the content-type is invalid by its format or if there is a way to include it into the list of allowed content types and how.
Steps to reproduce
I'm having requests with a content-type header Content-Type: application/ld+json; profile="https://www.w3.org/ns/activitystreams".
This is not in the list of the allowed headers as defined in my rule
# Extend allowed content-types for ActivityPub and OStatus
SecAction \
    "id:900220,\
    phase:1,\
    pass,\
    t:none,\
    nolog,\
    tag:'OWASP_CRS',\
    ver:'OWASP_CRS/4.0.1-dev',\
    setvar:'tx.allowed_request_content_type=|application/octet-stream| |application/activity+json| |application/ld+json| |application/magic-envelope+xml| |application/x-zot+json| |application/x-www-form-urlencoded| |multipart/form-data| |multipart/related| |text/xml| |application/xml| |application/soap+xml| |application/json|'"

I have not found a way to add the Content-Type to the list as modsecurity always complains about syntax.

Additional context
ModSecurity: Warning. Matched "Operator `Rx' with parameter `^[\w/.+*-]+(?:\s?;\s?(?:action|boundary|charset|component|start(?:-info)?|type|version)\s?=\s?['\"\w.()+,/:=?<>@#*-]+)*$' against variable `REQUEST_HEADERS:Content-Type' (Value: `application/ld+json; profile="https://www.w3.org/ns/activitystreams"' ) [file "/etc/modsecurity.d/owasp-crs/rules/REQUEST-920-PROTOCOL-ENFORCEMENT.conf"] [line "971"] [id "920470"] [rev ""] [msg "Illegal Content-Type header"] [data "application/ld+json; profile=\x22https://www.w3.org/ns/activitystreams\x22"] [severity "2"] [ver "OWASP_CRS/4.0.0"] [maturity "0"] [accuracy "0"] [tag "modsecurity"] [tag "application-multi"] [tag "language-multi"] [tag "platform-multi"] [tag "attack-protocol"] [tag "paranoia-level/1"] [tag "OWASP_CRS"] [tag "capec/1000/255/153"] [tag "PCI/12.1"] [hostname "<IP_ADDRESS>"] [uri "/inbox"] [unique_id "170979133125.505720"] [ref "v419,68t:lowercase"]

Your Environment

CRS version (e.g., v4.0.0):
Paranoia level setting: 1
ModSecurity version (e.g., 2.9.3): latest docker image (owasp/modsecurity-crs:nginx)
Web Server and version (e.g., apache 2.4.41): nginx 2.5.3 (latest owasp/modsecurity-crs:nginx docker image)
Operating System and version: debian (latest owasp/modsecurity-crs:nginx image)

@ne20002 Hi and thanks for reporting this. Looks like a duplicate of https://github.com/coreruleset/coreruleset/issues/3497, can you confirm it?

Hi @azurit
Thank you for the reply. I think it's not a duplicate. I wonder of how to add the Content-Type to the string with the allowed content types. As it includes special chars like " ; = my Morsec is failing at startup complaining about syntax.
I tried to escape with e.g " is \x22, but then the configuration loads, but rule still complains as the string in the list of alowed content types in its escaped form does not match the one of the request when comparing.
So I wonder if there is a trick to add a content-type with special chacteres?

@ne20002 Currently, it is not possible to add ; profile="https://www.w3.org/ns/activitystreams" to allowed Content-Types using crs-setup (as stated also in #3497).

Thank you @azurit for clarification.
I'll try to mitigate with an extra rule checking on the profile part with substring match and then deactivate further Content-Type processing.
That should help, correct?

@ne20002 You can write an exclusion rule, for example:
SecRule REQUEST_HEADERS:Content-Type "@streq application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"" \
    "id:9999001,\
    phase:1,\
    pass,\
    t:none,\
    nolog,
    ctl:ruleRemoveTargetById=920470;REQUEST_HEADERS:Content-Type"

Thank you very much.
I did something similar yesterday. Will have a look on your proposed rule and learn something. 😃


Banner Image: EIP223 --> ERC223

I believe the correct name for the token is ERC 223 :)

wooo hoooo https://ethereumproject.github.io/TokenMint/


Add v5 skus to the ACU page

It seems like some models are missing on the ACU page e.g.
https://learn.microsoft.com/en-gb/azure/virtual-machines/dasv5-dadsv5-series
These should have ACUs and be on the page, please can this be added?

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

ID: ad3e8dba-4c99-47d6-ac9f-6d110ec5a43c
Version Independent ID: 308f299a-5bb2-cf20-a97d-47dd9485d574
Content: Overview of the Azure Compute Unit - Azure Virtual Machines
Content Source: articles/virtual-machines/acu.md
Service: virtual-machines
Sub-service: sizes
GitHub Login: @mimckitt
Microsoft Alias: mimckitt

@fleetwoodstack
Thanks for your feedback! We will investigate and update as appropriate.

@fleetwoodstack
Thanks for bringing this to our attention.
As per @mimckitt
Content owners are reevaluating how we measure ACU for the new V5 series. When we have numbers to share, the docs will be updated accordingly.


Query polling

Is this instead of subscriptions ?
Like a pull instead of push ?

Query poling will live alongside subscriptions. The Apollo docs explained it really nicely.

@HofmannZ thanks for link. Makes sense. They designed for KISS.
It will never scale. Polling in once a second over JSON will kill scaling once you have 10000 concurrent users. 10000 users hitting system every second.
Another way to do it without killing scaling.
If you have a local Cache DB it can cache the data.
If that local Cache also has a DB that uses GRPC underneath to the server for push updates its can do very low latency updates, and put it into the local DB. The data is now there waiting for the Flutter client to poll in.
here is a simple golang flutter plugin that would allow you to run a full cache and Db on flutter.
https://github.com/adieu/flutter_go
Its just JSONRPC which is perfect for grapql.
Its also bidirectional so both sides can push.
Behind the JSON RPC layer you can put anything easily.
A Full graphql server if you want.
Under that a bucket based versions DB is easy. Say BadgerDB
Even DGraph can be compiled to mobile with a few changes.

Here is how you do push based subscriptions. Just saying.. This will scale to millions of concurrent users easily. Its designed to be clustered. I use NATS alot.
https://github.com/cdmbase/graphql-nats-subscriptions
I have not run it yet but its easy to try.

Actually this is even better
https://outcrawl.com/go-graphql-realtime-chat/


Rewrite Docs in a Watch outputs duplicate content

I am trying to build the jsdoc3 into my gulp process by not only building the documents on default but I want them to update as a developer is coding so they can see if the content is outputting correctly via browsersync.
The issue is that every time the code changes the jsdocs gets rewritten via a watch as a duplicate instead of a fresh document.  Each time the watch runs the exact content gets duplicated over and over again for as many times as the code has changed.
The first time the jsdocs is called everything works fine it is only when you call the task via a watch.  Here is my gulp to provide some context.
Is there a way to clear, flush or something else to make this more of a living document versus a one time build?
gulp.task('doc', function (cb) {
    gulp.src(['README.md', './src/js/**/*.es6.js'], {read: true})
        .pipe(jsdoc(jsdocConfig,cb));
});
gulp.task('dev', function () {
    devCompiler.run(function (err, stats) {
        if (err) throw new gutil.PluginError('webpack:dev', err);
        reload();
    });
});
gulp.task('env', function () {
    browserSync({
        notify: true,
        port: 9000,
         ui: {
            port: 3000
        },
        server: {
            baseDir: ['./dist']
        }
    });

    var docs = browserSync.create()
    docs.init({
        notify: true,
        port: 9090,
        ui: {
            port: 9090
        },
        server: {
            baseDir: ['./docs']
        }
    });
    gulp.watch('./src/js/**/*.es6.js', ['lint','dev','doc']);
});

gulp.task('default', ['dev', 'doc', 'env']);

Adding this library in watch will lead to problems because we are a thin wrapper over jsdoc. Until that supports watch natively, I don't think this will be much help. Please post a request for watch support here: https://github.com/jsdoc3/jsdoc/issues
Closing.

@mlucool It is seemed that this cause due to this part, and I think it would be good to clear jsdocConfig.source.include in the event listners of 'close' and 'error'.
I'm sorry if this is not correct, but I'm encountering the same as this issue.

@sttk is correct.  I think cloning jsdocConfig would fix the issue.

I've submitted a PR. Let me know what you think

Thanks for the PR, I'll merge pending my comment


[bug 1124379] Upgrade peep and un-goofify it

upgrade peep to 2.1.1
rework how we handle the wheels problem so that instead of applying
tweaks to peep directly which is hard to maintain and error-prone,
we do our tweaks in a shell script and tell everyone to use that
update the documentation, vagrant provision script and travis stuff
to use the new peep.sh

r?

I moved "peep" to "bin/peep-2.1.1.py" and in the process updated it. You can ignore all those changes.
If Travis fails, it's because I didn't fix the travis install.sh script correctly. I'll watch out for that.
Doing:
./peep.sh install -r requirements/requirements.txt

should do the right thing in regards to wheels now without people having to figure out which version of pip they have and adding the appropriate arguments.

^^^ (force push) That fixes the arguments issue in peep.sh.

I tested this by cloning a new copy of fjord, and running ./peep.sh -r requirements/compiled.txt -r requirements/dev.txt -r requirements/requirements.txt. I did this with Pip 6.0.3 and pip 1.2 (to test a really old version without wheel support). It seems to have worked in both cases.
r+

0bb2e56 [bug 1124379] Upgrade peep and un-goofify it
Thank you for looking at it!


A Change in Preprocessor command is not recognised without a clean

Hello All,
I am new to ninja and the build system world.
I use a Ninja_v1.8.2 and CMake_v3.10.2.
If i change any preprocessor commands in an already built module's .h, these changes are not recognised by ninja but they are always recognised by make.
Basically any define changes in .h is not recognised by ninja.
Example:
I have a particualr a.h where the following is present:
#undef ENABLED
If I change it to:
#define ENABLED and rebuild without cleaning, as ninja
ninja: no work to do.

The only way to solve this problem seems to be explicitally linking related libraries.

This sounds like failure to correctly set up dependencies by the meta build system or in the build system definition, so in your case CMake or your CMake build file.

Agreed that this is more closely related to CMake. I'd recommend posting over in the CMake issue tracker with a small reproducible test case.

I can also not reproduce this with CMake 3.11.2.
@akshayupendran Can you check if this is till an issue and reopen if so? A minimal example to reproduce it would also help a lot.


revoker: Who doesn't love bit twiddling

Update the shadow bitmap in bulk, rather than with for-loops.  Running the test suite in sail shows ~7% speedup:
Before:
Test runner: Allocator finished in 6771859 cycles
Test runner: All tests finished in 7172781 cycles

After:
Test runner: Allocator finished in 6251099 cycles
Test runner: All tests finished in 6650597 cycles

Results of the allocator benchmark on Sail:
Size    After      Before
32      76679518  82048087
64      42698710  48347087
128     24238618  29898029
256     15291611  20911973
512     10789531  13488733
1024    8348866   9663253
2048    7008814   7677549
4096    6160605   6440585
8192    5478284   5631514
16384   4938536   5015645
32768   4119331   4152346
65536   3902681   3918152
131072  3888274   3904099

I am quite surprised that we still see a speedup above 256 bytes.  Presumably the heap base is not aligned and so these still do some work painting the ends, so we are now doing 3 stores rather than the loop.  Above 16 KiB, the dela is pretty negligible, because painting the ends is such a small part of the total.