Partially fixed visibility for symbols (Ops, Nodes, Transformations, Matchers)

Partially resolved issues with RTTI and AppleClang
Exports most of ngraph Ops which allows to use them from OpenCV, IE.
Note: it does not solve all the issues since we need to review NGraph API more carefully. I will submit more MR related to this topic after.
CC @ilyachur

It is hard to split into smaller pieces since changing one part leads to changing another one. originally, I wanted to create simple to review PR, but it become bigger :)


add plural filter

Add a custom filter for pluralizing a word

@kstasik what do you think? I did not find another way to get the plural of a word apart from custom filter. It can be used in cases of coding conventions where the plural is used e.g. sql

it's fine with me.

Please make sure your commit follows https://www.conventionalcommits.org/en/v1.0.0/
Fix lints
And make the dependency optional, needed only by codegen itself

And we can merge if if you need it.


Failed importing latest version

Tool
Name: [Msbot|Ludown|LUIS|QnAMaker|Chatdown|Dispatch|LuisGen]
Version: Latest
OS: Window Server 2016
Describe the bug
When refreshing the domain getting error "Failed importing latest version..." It also takes VERY LONG time after it says "Importing Demo mode" until it displays an error. This is a very small sample domain. There is also no option to actually see what is the error.
Exporting Demo.UseCases LUIS application...
Exported LUIS app JSON is at C:\Dispatch\staging\demo\data_L_Demo.UseCases.json
Exporting MetLife.Sam.HumanResources.Pto LUIS application...
Exported LUIS app JSON is at C:\Dispatch\staging\demo\data_L_Demo.HumanResources.json
Creating dispatch LUIS model json...
Creating training data...
Updating Demo model...
Training Demo.UseCases...
Training Demo.HumanResources
Importing Demo model...
ERROR
Failed importing latest version of Demo app
To Reproduce
Tried with and without --version, as I saw that as an answer in some other post
dispatch refresh --publishToStaging true --dataFolder c:\dispatch\staging\demo --version 1
or
dispatch refresh --publishToStaging true --dataFolder c:\dispatch\staging\demo
Expected behavior
Complete process.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
[bug]

@tsuwandy Please take a look at this issue. 😉

@dkonyayev, is it possible to get a copy of your dispatch json so we could get a repro of the import failure?   From where you run your dispatch command, it's  \data_experiments\model_001\train_luis_model_augmented.json.  Could you email it to<EMAIL_ADDRESS> Thank you!

Emailed the JSON.

@dkonyayev, closing this per our conversations in email.  Let me know if you are seeing other issues.  Thank you!


Missing transaction handler added

Missing transaction handler added
Please review and merge the PR. #106
Handler added for the missing transactions in the Controller and Service modules.
Test cases added for the same.
Problem Solved: Block could not successfully update in the db if one or more transactions are missing.
Note: While updating block, if the update block process got any transactions missing it will fetch that transaction only from the peer who created the block.

Conflict Resolved


longhorn: make calls to rancher optional

Very stale. Closing. Thanks! Please open a new PR if there is still a relevant change.


Remove partition supplier support for ServiceBusTemplate

This pr is to resolve API review comments for ServiceBusTemplate should allow configuration of partition id.

/azp run java - spring - tests


template for club pages

Besides content, the club's individual markdown file also contains other club information via frontmatters,
pull information from those tags as well. Place them before the main content, with proper formatting.

New template is probably too much work. Simply duplicate the frontmatters content to content body should be sufficient.


Unable to call Child Component functions from Parent Component

Important
Use the following form to submit an issue only if it's related to samples in this repo. If you have an issue related to the SharePoint Framework or its documentation, please submit the issue at https://github.com/SharePoint/sp-dev-docs/issues/new. This will help us respond to your issue faster.

Thank you for reporting an issue or suggesting an enhancement. We appreciate your feedback - to help the team to understand your needs, please complete the below template to ensure we have the necessary details to assist you.
Category

[ X ] Question
[ ] Bug
[ ] Enhancement

How to Call react Child component function from parent component, i tried react ref but no luck

react with typescript default refs functionality is not working as suggested we need to use refs with typescript as follows it will be good if such are documented and shown some examples
`import { MyRequests } from '../MyRequests';
export class Main extends React.Component<IMainProps, any> {
references: {
myReq: MyRequests;
} = {
myReq: null
};
public render(): JSX.Element {
const { context, Departments, provision, provisionService } = this.props;
return (<MyRequests {...this.props}
seterrormessage={this.setCommandErrorMessage.bind(this)}
ref={(i: any) => { this.references.myReq = i; }}/>)
}
public callChildFunction():void{
// Here getRequestsData() is child Function
this.references.myReq.getRequestsData();
}
}`


is this Compatible 'swarm 0.3.5'?

geth
geth --syncmode light

swarm
swarm --bzzaccount 4fe9account --corsdomain '*' --maxpeers 100 --ens-api /Users/username/Library/Ethereum/geth.ipc –-ws --wsorigins '*'

import { SwarmClient } from '@erebos/swarm-browser';

this.Client = new SwarmClient({ ws: 'ws://localhost:8546' });
console.log(this.Client);

const [publicKey, overlayAddress] = await Promise.all([
  this.Client.pss.getPublicKey(),
  this.Client.pss.baseAddr(),
]);

console.log(publicKey);
console.log(overlayAddress);

this isn't work. It does not work in any Browser.
However, if you run Onyx, the above code works.
What is the problem? Help me.

It's hard to say without more information, especially what error you're getting, but the SwarmChat app works as expected for me running swarm 0.3.6 (build recently from source). I'm not aware of any specific issue related to 0.3.5.

@PaulLeCam Oh. Sorry. The error history as
WebSocket connection to 'ws://localhost:8546/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
When using this library, does not connect to Swarm from the Browser. :(
Can you tell what options you are running Swarm with?

Here are the flags I use locally ($DIR and $KEY are just defined in the bash script): swarm --datadir $DIR --password $DIR/password --bzzport 8500 --httpaddr <IP_ADDRESS> --bzzaccount $KEY --ws --wsport 8546 --wsorigins "*" --corsdomain "*"
Maybe you could try adding the --httpaddr <IP_ADDRESS> flag, see if it makes any difference for Swarm?

It also brings about the same effect. :( Have you ever reported a case like me?

Yes I've had this issue before due to bad configurations such as not setting the --wsorigins flag or running Swarm in a specific environment requiring additional config (docker).
Using a tool such as wscat you can easily check if the problem comes from Erebos or the Swarm config depending on your ability to connect to the WebSocket with another client.

@PaulLeCam I'm sooooo sorry, --ws flag had a fake hyphen. Your answer was very grateful.

Good to know you solved your issue!


ImageDataGenerator's load_img() forcing conversion to PIL mode "L" loses bit depth on 16bit grayscale .png

Please make sure that the boxes below are checked before you submit your issue. Thank you!

[X ] Check that you are up-to-date with the master branch of Keras. You can update with:
pip install git+git://github.com/fchollet/keras.git --upgrade --no-deps

[ X] If running on Theano, check that you are up-to-date with the master branch of Theano. You can update with:
pip install git+git://github.com/Theano/Theano.git --upgrade --no-deps

[X ] Provide a link to a GitHub Gist of a Python script that can reproduce your issue (or just copy the script here if it is short).

Summary:
I believe it would be helpful to allow toggling off of the forced conversion to 8bit:
def load_img(path, grayscale=False, target_size=None):
    from PIL import Image
    img = Image.open(path)
    if grayscale:
        img = img.convert('L')
    else:  # Ensure 3 channel even when loaded image is grayscale
        img = img.convert('RGB')
    return img

This is causing issues with, in my case, higher depth 16bit, grayscale images. And in the future, I can only imagine images getting more complex as processing power and the complexity demand size grows.
Expected behavior:
from keras.preprocessing.image import ImageDataGenerator, array_to_img, img_to_array, load_img

img = Image.open('./toy/foo.png')  # this image is 16bit grayscale, PIL.Image autoloads as mode "I"
#img = load_img('./toy/foo.png')  # keras hardcodes PIL.Image.convert to mode "L", which is acting as a low-pass filter, truncating all values above 255
x = img_to_array(img)  # this is a Numpy array with shape (101, 101, 3)
x

Clearly, the values are quite diverse.
array([[[ 26947.],
        [ 26367.],
        [ 26429.],
        ...,
        [ 38390.],
        [ 40277.],
        [ 39516.]],

       [[ 27135.],
        [ 27470.],
        [ 26532.],
        ...,
        [ 39014.],
        [ 39567.],
        [ 39516.]],

       [[ 27723.],
        [ 27323.],
        [ 26781.],
        ...,
        [ 39972.],
        [ 39491.],
        [ 39063.]],

       ...,
       [[ 27533.],
        [ 28660.],
        [ 28660.],
        ...,
        [ 42340.],
        [ 41147.],
        [ 41948.]],

       [[ 27893.],
        [ 27744.],
        [ 29005.],
        ...,
        [ 42521.],
        [ 41457.],
        [ 41250.]],

       [[ 27914.],
        [ 26532.],
        [ 27366.],
        ...,
        [ 43681.],
        [ 41897.],
        [ 40684.]]], dtype=float32)

BUG:
from keras.preprocessing.image import ImageDataGenerator, array_to_img, img_to_array, load_img

#img = Image.open('./toy/foo.png')  # this image is 16bit grayscale, PIL.Image autoloads as mode "I"
img = load_img('./toy/foo.png')  # keras hardcodes PIL.Image.convert to mode "L", which is acting as a low-pass filter, truncating all values above 255
x = img_to_array(img)  # this is a Numpy array with shape (101, 101, 3)
x

Now, the values are all "whitened"
array([[[ 255.,  255.,  255.],
        [ 255.,  255.,  255.],
        [ 255.,  255.,  255.],
        ...,
        [ 255.,  255.,  255.],
        [ 255.,  255.,  255.],
        [ 255.,  255.,  255.]],

       [[ 255.,  255.,  255.],
        [ 255.,  255.,  255.],
        [ 255.,  255.,  255.],
        ...,
        [ 255.,  255.,  255.],
        [ 255.,  255.,  255.],
        [ 255.,  255.,  255.]],

       [[ 255.,  255.,  255.],
        [ 255.,  255.,  255.],
        [ 255.,  255.,  255.],
        ...,
        [ 255.,  255.,  255.],
        [ 255.,  255.,  255.],
        [ 255.,  255.,  255.]],

       ...,
       [[ 255.,  255.,  255.],
        [ 255.,  255.,  255.],
        [ 255.,  255.,  255.],
        ...,
        [ 255.,  255.,  255.],
        [ 255.,  255.,  255.],
        [ 255.,  255.,  255.]],

       [[ 255.,  255.,  255.],
        [ 255.,  255.,  255.],
        [ 255.,  255.,  255.],
        ...,
        [ 255.,  255.,  255.],
        [ 255.,  255.,  255.],
        [ 255.,  255.,  255.]],

       [[ 255.,  255.,  255.],
        [ 255.,  255.,  255.],
        [ 255.,  255.,  255.],
        ...,
        [ 255.,  255.,  255.],
        [ 255.,  255.,  255.],
        [ 255.,  255.,  255.]]], dtype=float32)

Sample images
illustrating the difference between de facto load_img() behavior and manually calling PIL.open(), letting it stick with mode "I".
from keras.preprocessing.image import ImageDataGenerator, array_to_img, img_to_array, load_img
datagen = ImageDataGenerator(
        rotation_range=40,
        width_shift_range=0.2,
        height_shift_range=0.2,
        shear_range=0.2,
        zoom_range=0.2,
        horizontal_flip=True,
        fill_mode='nearest')
#img = Image.open('./toy/foo.png')  # this image is 16bit grayscale, PIL.Image autoloads as mode "I"
img = load_img('./toy/foo.png')  # keras hardcodes PIL.Image.convert to mode "L" 8bit, which is acting as a low-pass filter, truncating all values above 255
x = img_to_array(img)  # this is a Numpy array with shape (101, 101, 3)
i = 0
for batch in datagen.flow(x, batch_size=1, save_to_dir='./toy', save_prefix='bug', save_format='png'):
    i += 1
    if i > 20:
        break

Original image:

Expected ImageDataGenerator sample:

Actual ImageDataGenerator:

Update:  I found one problem with the example above. I forgot to include grayscale=true while calling load_img(). The reason I forgot was because my original issue was actually with ImageDataGenerator.flow_from_directory(), where I already previously included a color_mode='grayscale'
So despite fixing this toy example, it was not enough to fix my intended issue.
For now, I've changed the source load_img() to mode 'I' as a temporary fix until I figure out a better way. Suggestions welcome!
if grayscale:
        img = img.convert('I')

and correspondingly, I'm passing  rescale=1.0/(65535)  to the data generator to account for the 16bit range.
This is now giving me augmented images as expected in the save dir.

Was the output 16bit or was it just scaled to 8bit ? It seem the array_to_img command is hard coded to create 8bit imagery.

It happens when img.mode is F (float32) and  grayscale the function load_img truncates the values, so I have to avoid it changing the source code in image.py such as :
def load_img(path, grayscale=False, target_size=None):
    ...
    if grayscale and not img.mode != 'F':
        img = img.convert('L')
    ...
    return img

Update: I found one problem with the example above. I forgot to include grayscale=true while calling load_img(). The reason I forgot was because my original issue was actually with ImageDataGenerator.flow_from_directory(), where I already previously included a color_mode='grayscale'
So despite fixing this toy example, it was not enough to fix my intended issue.
For now, I've changed the source load_img() to mode 'I' as a temporary fix until I figure out a better way. Suggestions welcome!
if grayscale:
        img = img.convert('I')

and correspondingly, I'm passing rescale=1.0/(65535) to the data generator to account for the 16bit range.
This is now giving me augmented images as expected in the save dir.

This solution worked for me!

@jfx319 Could you please elaborate on how you have changed the source load_img() so that it does not convert the 16 bit grayscale images into 'L' mode? It seems that I too have the same issue of the ImageDataGenerator resulting in white images but am not able to correct that issue. Also, would changing the source load_img() be enough for the ImageDataGenerator also to work correctly (as in after passing rescale = 1./65535)?
I am stuck at this for many days, so any help would be greatly appreciated. Thanks!

My fix was to edit the file: ~/venv/lib64/python3.6/site-packages/keras_preprocessing/image.py (l.500 for me) and instead of converting to 'L', I converted to 'I' as follows
def load_img(path, grayscale=False, color_mode='rgb', target_size=None,
             interpolation='nearest'):
    /// function stuff ///
    if color_mode == 'grayscale':
        img = img.convert('I')


update Dockerfiles

Maybe... I don't have a way to test it, so please test this carefully before merging.
To install the dev version is enough to add --dev to the opam command.
With these changes the opam installed inside the Docker images shuld become actually usable.
Signed-off-by: Marcello Seri<EMAIL_ADDRESS>

I have cleaned all of them up, so that we can test our new features.
Please test them thorougly before merging, I don't have a Docker installation to test this at the moment.

Thanks for trying. It means that the opam database is not getting updated for some reason, as owl-plplot is released.
I’ll try to figure it out, and no worries if you cannot test it

It's almost certainly that in the base opam repos the opam-repository remote is a local git repo - if you want to opam update you need to pull as well as update.
try
RUN cd /home/opam/opam-repository && git pull origin master

before the opam update

Thanks! You are right: https://github.com/ocaml/infrastructure/wiki/Containers#using-the-defaults

I am going to be testing these branches via Travis on my local test-docker branch. You can follow the evolution from https://travis-ci.org/mseri/owl/builds/503807805

Update:

alpine, debian, fedora, centos and opensuse are building fine and seem usable
ubuntu.arm seems not testable via travis
ubuntu needs some more work, hopefully 7d2c915 is fixing it

It works also for ubuntu: https://travis-ci.org/mseri/owl/builds/503843614
I am modifying the test to check that it was actually linked properly

It worked!!!
They are all working properly now 🎉
The only exception is the arm image (that I cannot test)

@jzstark built the docker image before, he might be able to test it when he is free.

https://hub.docker.com/r/owlbarn/owl/tags
yes, all seem working now, awesome!

We can alos use them to showcase the new build features (override env variables, custom openblas builds, ...)


Ak codecs

closes #230
deleted useless codecs, left only TableCodec (per @ldgauthier's request), removed GenomeLoc (and reference dependency), simplified parsing code and added tests for the codec (and corresponding TableFeature)
@droazen please review

closing for now.


How Can I Use IOptions With Castle

Hi everyone
I Use Castle in my Asp.net Core project and use this for reading option from appsetting.json
services.Configure<PermissionOptions>(Configuration.GetSection("PermissionOptions"));
but i can't resolve  IOptions<PermissionOptions> into my service for use,how can i fix this?
thanks .

What version of ASP.NET Core?
Are you using the Windosr AspNetCore facility?

Closing as stale. Castle.Windsor.Extensions.DependencyInjection is the path forward for ASP.NET Core 3.x.


Don't use proxy for ADF if the session's apps only use IP rules

The proxy is only needed when there are URL-based rules in use

Just use "create upf application name TST" instead of "create upf application proxy name TST" (no "proxy"). The functionality is already present.

Just use "create upf application name TST" instead of "create upf application proxy name TST" (no "proxy"). The functionality is already present.


bug: Unable to run example command from site (Syntax error)

Provide environment information
npx: installed 1 in 1.546s
System:
OS: Windows 10 10.0.19045
CPU: (32) x64 AMD Ryzen Threadripper 1950X 16-Core Processor
Memory: 14.24 GB / 31.90 GB
Binaries:
Node: 12.19.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.15 - ~\AppData\Roaming\npm\yarn.CMD
npm: 6.14.8 - C:\Program Files\nodejs\npm.CMD
Describe the bug
When running npm create t3-app@latest as suggested on the site I am getting a SyntaxError that prevents me running the script. It will go through and fetch everything correctly, then error out when trying to execute.
The output is:
>npm create t3-app@latest
npx: installed 110 in 9.627s
(node:24316) ExperimentalWarning: The ESM module loader is experimental.
file:///C:/Users/Kieran/AppData/Roaming/npm-cache/_npx/27912/node_modules/create-t3-app/dist/index.js:6
`,A="my-t3-app",N="create-t3-app";var J=({projectDir:e,packages:t})=>{let i=t?.nextAuth.inUse,s=t?.prisma.inUse,n=Oe(!!i,!!s),o=i&&s?"with-auth-prisma.mjs":i?"with-auth.mjs":s?"with-prisma.mjs":"";if(o!==""){let p=j.join(c,"template/extras/src/env/schema",o),m=j.join(e,"src/env/schema.mjs");M.copySync(p,m)}let r=j.join(e,".env"),l=j.join(e,".env.example");M.writeFileSync(r,n,"utf-8"),M.writeFileSync(l,Ne+n,"utf-8")},Oe=(e,t)=>{let i="# When adding additional env variables, the schema in /env/schema.mjs should be updated accordingly";return t&&(i+=`
                                                                              ^

SyntaxError: Unexpected token '.'
    at Loader.moduleStrategy (internal/modules/esm/translators.js:117:18)
    at async link (internal/modules/esm/module_job.js:42:21)

To reproduce
On my machine I did the following:

Setup a new folder on the desktop
Ran npm create t3-app@latest

Additional information
No response

Immediately after submitting I confirmed the issue is related to using old version of node/npm.
Working correctly after updating to node 18 and npm 8. Might be worth adding to the docs somewhere as a FAQ suggestion, or to the new issue form for troubleshooting!
Thanks for all your great work on the project!

Just tried to reproduce, and was only able to do so on Node versions that are EOL. 14.x, which is the oldest version that is still officially supported, works fine. Since this is the first time we've ever had anyone run into this, and it requires having an extremely outdated node version, which wouldn't happen to anyone on a new setup, I think it's better to not add this to docs etc until we get more people with the same issue.


⚠ HDBits has degraded performance

In 5ff2c9a, HDBits ($HDB) experienced degraded performance:

HTTP code: 200
Response time: 1287 ms

Resolved: HDBits performance has improved in ae5b3f8 after 5 minutes.


No Lua vessel callbacks or oapi methods available to read/write vessel state variables to scenario files.

There do not appear to be Lua vessel callbacks equivalent to clbkSaveState(scn) that can be overloaded to allow custom vessel status variables to be saved to the scenario file, or clbkLoadStateEx(scn) to read custom vessel status variables from the scenario file.
Without these callbacks or equivalents, custom vessel states for Lua script vessels cannot be saved or read from the scenario files.

...working on that 😉
Detailed discussion here


HDDS-11413. PipelineManagerImpl lock optimization reduces AllocateBlock latency

What changes were proposed in this pull request?
PipelineManagerImpl lock optimization reduces AllocateBlock latency
The following are the issues discovered in our production environment:
When applying for a block in the Ratis replica, there may be jitter in the P99 latency due to obtaining a read lock

The main parts that hold write locks:
org.apache.hadoop.hdds.scm.pipeline.WritableECContainerProvider#allocateContainer

EC pipelines are frequently created and closed because there is only one container in each EC pipeline. When the container is full, the creation of new ones will be closed. When creating a pipeline, a write lock at the pipeline manager level will be held, while when applying for a Ratis block, a read lock at the pipeline manager level will be held.
The purpose of this optimization is to unlock. When creating and closing an EC pipeline, only the write lock at the EC pipeline manager level will be held, while when applying for a ratis replica block, only the read lock of the ratis pipeline manager will be held. The two locks will not affect each other.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-11413

Thank you for making this improvement. Can you please post the measurements done before and after for this performance improvement?

@guohao-rosicky can you please share performance improvement numbers as requested in this comment:

Can you please post the measurements done before and after for this performance improvement?

Looks good.
Also looks like we don't have metrics in SCM for allocateBlock. That would make finding p99 latency problems easier.

Looks good.

@jojochuang are you comfortable merging this?

Merging this one. I'll open another jira for the SCM allocateBlock metric.

@guohao-rosicky @jojochuang currently CI is failing on TestBlockManager test failure for
org.apache.hadoop.hdds.scm.block.TestBlockManager#testAllocateBlockInParallel
org.apache.hadoop.hdds.scm.block.TestBlockManager#testBlockAllocationWithNoAvailablePipelines
org.apache.hadoop.hdds.scm.block.TestBlockManager#testAllocateBlockSucInSafeMode.
Can we revert this patch and triage the test case failures?


Extremely Poor .ply file quality

Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):

Consider checking out SDK examples.
Have you looked in our documentations?
Is you question a frequently asked one?
Try searching our GitHub Issues (open and closed) for a similar issue.

All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)

Required Info

Camera Model
D435

Firmware Version
<IP_ADDRESS>

Operating System & Version
Win10

Platform
PC

SDK Version
2.0

Language
{Python }

Segment
{Robot/Smartphone/VR/AR/others }

Issue Description
Hello all! I have been working on a program that requires me to take snapshots of the camera and save them in a cloud point format, similar to the way a cloud point is displayed and saved in the "3D" section of the Intel Realsense Viewer. However, when opened in meshlab, the .ply files are seemingly darkand seem to hold no significant data. I have tried different lighting and distances to no avail.
Am I missing something obvious here, or is there maybe something that I need to configure in the "settings" of my code? Any help is appreciated!

To clarify, this is just captured using the basic "example" code "export_ply_example" in the example folder of the SDK

[Realsense Customer Engineering Team Comment]
hi @jasonjsong,
can you show us what's your scene?
maybe you capture with realsense viewer and export_ply_example together and show us why you feel the quality is poor.
thanks.

[Realsense Customer Engineering Team Comment]
@jasonJsong,
another possibility is the ply viewer's scale/unit is different
the object you capture may just a very small object inside the ply viewer

I have taken a few screenshots of what appears.

This is the scene as seen from the viewer in 2D.

This is the scene as seen in 3D from the viewer, this is the kind of quality that I am looking for.

This is the ply file I get when I export the 3D scene as a PLY, still acceptable quality, and easily viewable. The subject in question is the plant, which is still clear in this file.

However this is what I get from the export.ply. It is missing the plant entirely. You can see that the orientation of the doors on the right hand side is correct, although they are fairly difficult to make out. Is this just the nature of the simplicity of the example program? Or am I doing something incorrectly? Thank you.

I think that the first thing you want to do is to adjust the parameters of the camera.
If you're only interested in capturing the plant, then you should adjust the Depth Clamp Min/Max under Stereo Module/Advanced Controls/Depth Table in the Intel RealSense Viewer. You'll capture only a small part of your scene, plus that may help you "get rid" of the light in the ceiling (which is never helping btw).
I don't know if it's going to work for you, but I suggest you then set the Depth Units to 100 (under Advanced Controls/Depth Table), and the other Depth Units to 0.0001 (under Controls).
That being done, try adjusting the Disparity Shift (under Advanced Controls/Depth Table) and maybe the Exposure and the Laser Power (under Controls) depending on the lighting conditions.
Finally, enable the Post-Processing for the max achievable quality. (Obviously, there is a lot more parameters, but these ones are a good start).
Just export the ".json" if you don't want to use the Viewer in your workflow next time.
One thing being weird though, is that you seem to lose some data when you export the ".ply", I don't know if it's going to correct that.
Keep us updated

This same issue occurred for me after running a firmware update. The solution was to turn the camera off, then on again....

[Realsense Customer Engineering Team Comment]
Ticket being closed due to inactivity for 30+ days


Implement config system

The config system can be built with OSC messages that are called at startup.  Things that it should handle (extend as needed in this thread?):

custom paths for commands/ and assets/with default to the current ones (or application's default directory).  Maybe they should have an order of preference (user-defined overwrites app-defaults if present)?
maybe a "project" file with a list of assets and commands to be used?  Not sure if this is the same as the previous point.
application window placement (#10)
server IP address and port

I added a new config option to allow you to restrict OSC messages from non-localhost clients:

Add /app/remote configuration command (to block remote) 7cf6879


⚠ Bofrost.be has degraded performance

In 80871ad, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1283 ms

Resolved: Bofrost.be performance has improved in 5e5135e after 16 minutes.


Improve develop sdk documentation

Add information about the release planner
https://eng.ms/docs/products/azure-developer-experience/onboard/request-exception
Language channels for help

PR https://dev.azure.com/azure-sdk/internal/_git/azure-sdk-docs-eng.ms/pullrequest/1018


Overwrite ENTRYPOINT/CMD

I am running the Redis image (https://registry.hub.docker.com/_/redis/) and according to the documentation I need to run the container with
redis-server --appendonly yes
but the image runs
redis-server
Is it possible to change the CMD?

+1

Closing this issue due to the lack of activity and in favor of pending feature #1260


Issue with k8s.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/

This is a Bug Report

Problem:
I am not able to install kubeadm
I followed the instructions in the documentation yet I am not able to install the kubeadm RPM on my RHEL7 system.  Here is my /etc/yum.repos.d/kubernetes.repo
[kubernetes]
name=Kubernetes
baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-$basearch
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
exclude=kubelet kubeadm kubectl

And when I execute (as root):
yum install -y kubelet kubeadm kubectl –disableexcludes=kubernetes

I get this output:
Loaded plugins: fastestmirror, langpacks, merge-conf, priorities, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Loading mirror speeds from cached hostfile
13024 packages excluded due to repository priority protections
No package kubelet available.
No package kubeadm available.
No package kubectl available.
Error: Nothing to do

The problem seem to be that the yum repo on the yum server does not have any packages.
If I point my browser to https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64/Packages I see no RPMs listed.
Proposed Solution:
Page to Update:
https://kubernetes.io/...

duplicate of https://github.com/kubernetes/kubernetes/issues/90158
please watch that ticket.
in the meantime i will try the install steps myself.
/close


[macros] add JsonCodable support for enums

Enum's aren't supported by the JsonCodable macro, this is a bit of a shame as string's don't enforce options and classes are still verbose if you have a lot of enum data types.
Couldn't the enums be generated as built enum classes like built_value does?

Is there a way I could polyfill the solution for now? If the package supported annotations for custom fromJson/toJson' (like json_serializable) that could work:
  @JsonKey(
      name: 'foobar',
      fromJson: _deserializeStringToEnumClass,
      toJson: _serializeEnumClassToString)

Is there a way I could polyfill the solution for now? If the package supported annotations for custom serializer and deserializer (a bit like json_serializable does it with it's JsonKey())?

The package doesn't support configuration at all because annotations don't work for macros yet.
Note that this package is not ready for production use (the feature is experimental still and will have breaking changes).

Should enum work out of the box without being annotated with @JsonCodable or should they require it ?
Adding JsonCodable to the enum would generate a static fromJson , which is currently not supported by the macro.
It's also possible to just do enums automatically:
    if (declaration is EnumDeclaration) {
      return RawCode.fromParts([
        if (nullCheck != null) nullCheck,
        valueReference,
        '.name'
      ]);
    }


[macOS] Switch ANGLE backend to ANGLE over OpenGL, switch default compatibility renderer back to native.

I think it's pretty clear that using ANGLE over Metal on macOS was a total failure. Unlike ANGLE over DX11 on Windows which seems to be doing a good job for supporting older hardware, it's causing a lot more issues than fixing.
Superseded https://github.com/godotengine/godot/pull/84563
Fixes https://github.com/godotengine/godot/issues/85619
Fixes https://github.com/godotengine/godot/issues/84591

Is there much value left in using ANGLE over OpenGL as opposed to just native OpenGL? The main rationale for using ANGLE on macOS was the fear that bitrotting OpenGL drivers would have too many issues, but if we're still using them via ANGLE there might not be much benefit in having ANGLE at all?

Is there much value left in using ANGLE over OpenGL as opposed to just native OpenGL?

The only issues with ANGLE over OpenGL is slow shader compilation (first start will take minute or two, some WebGL issue we have on macOS), and it's not fixing GPU particles issues. It might be fixing some issues, but I'm not sure. So we probably should not have it built-in, but keeping support for dynamically linked versions cost noting (most of the code is shared with Windows, and EGL on Linux), so I do not see many reasons to completely remove macOS specific part of it.

The main rationale for using ANGLE on macOS was the fear that bitrotting OpenGL drivers would have too many issues, but if we're still using them via ANGLE there might not be much benefit in having ANGLE at all?

Unlikely it will get less functional, and when OpenGL is removed from macOS, I would expect Google to fix all issues in the ANGLE over Metal (unless WebGPU will supersede it by the time) for the use in Chromium.


Homepage is not responsive

Describe the bug
The All rights reserved. Copyright © Manthan 2021 overlays the heading of welcome page
To Reproduce
Steps to reproduce the behavior:

Go to chrome inspect
Switch to mobile
See error

Expected behavior
The copyright statement should be at the end of page
Screenshots

Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

Please assign me this issue under gssoc21

I am a gssoc'21 participant and I want to work on this issue.
So please assign this issue to me.

Hey @iamabhi222 I have observed that in the localhost the footer is already fixed but the heading is distorted, so can I fix that under this issue and create a PR

I have fixed the heading, can I create a PR

Can I work on this issue?

I have fixed the heading, can I create a PR

yes


Build error on TableGen files

TritonGPUAttrDefs.td(67,5): Error G0888248B : Initializer of 'attrName' in 'CTALayoutAttr' could not be fully resolved: !strconcat("triton_gpu", !strconcat(".", mnemonic))
def CTALayoutAttr : TritonGPU_Attr<"CTALayout"> {

I'm trying to build triton on Windows with main branch of llvm-project, and I have no idea on this error.

The LLVM main branch moves quite quickly, and API breaking changes are common.
You can see the LLVM version that Triton builds against here in cmake/llvm-hash.txt.


ActiveForm's error summary not displaying neigther with client nor ajax validation

I have the form:
	<?php $form = ActiveForm::begin([
		'id' => 'ordering',
		'enableAjaxValidation' => true,
		'validationUrl' => ['checkout/validate-form'],
		'fieldConfig' => [
			'template' => "{label}\n{input}\n{hint}"
		]
	]) ?>
   ...
   Some controls here
   ...
   <?= $form->errorSummary($model) ?>
   ...
    <?php ActiveForm::end() ?>

After field validation the error summary didn't update. Form has errors, fields are highlighted (input div's has 'has-error' class and populated 'help-block' with error message), but error summary doesn't provide any info about errors. It has style="display: none" and empty error list (ul). It doesn't work neither with ajax validation nor client validation.
Questions are:

Do I understand correctly the purpose of error summary?
I used error summary in beta version of Yii2, it worked then for client validation. How I can make it work in Yii 2.0.4?

Error summary is updated on form submit either by client or ajax validation. However validation triggered by such events like 'ontype' does not affect summary.

I'm closing the issue unless further information provided.


ModuleNotFoundError: No module named 'google'

When you try to import any google libraries via
from google.cloud import bigquery
ModuleNotFoundError: No module named 'google'

I was surprised because we can see in the constraints.txt
google-cloud-bigquery==1.28.0
Is this a bug?

we're also having this issue. Running MWAA and added google modules (googleapiclient, google, etc) but none seem to work. All other modules/processes working fine

Please add to requirements.txt
https://docs.aws.amazon.com/mwaa/latest/userguide/t-apache-airflow-11012.html#missing-bigquery-cython


Importer: Drops uv_mutex in favor of std::mutex

Importer: Drops uv_mutex in favor of std::mutex. (0720fa8)

It is not safe to use uv_cond_wait
outside of v8 thread (uv loop).

Importer: Hack to make CLI importer usage work. (ff53926)

If anyone could ever explain this!
This is related to the changes made in 0720fa8.
Tidbit: it was also failing on windows with node.js v0.10.32
updating to v0.10.35 (current stable), it worked without this hack on Windows
but when tested with v0.10.35 on Ubuntu via nvm, it still fails without this hack.
The only downside of this hack is extra nuisance on console
(I tried to dodge it by overriding console.log function, but that didn't work either, so we would have to live with this little annoyance**, until someone can figure out why it is happening).

@browniefed, @xzyfer, can you guys please confirm if this patch makes custom importer useable on Mac (and addresses https://github.com/sass/node-sass/issues/586)?

** without the hack running the following in cli hangs indefinitely:
node node_module/.bin/node-sass /path/to/input.scss --importer /path/to/importer.js

with the hack, it executes properly, but prints whatever custom importer returns. Tested on Ubuntu and Windows.
Note 1: If the importer option is not set (in CLI or render() usage, leaving renderSync() alone), no unwanted / extra stuff will not be printed.
Note 2: This means we would have to apply same hack to custom functions feature (#332), whenever we will implement it. :)
Note 3: We use render (as opposed to renderSync) in case of CLI usage, because we route the errors to emitter. In case of renderSync, the errors are thrown to stderr. [1]   [2]

Coverage increased (+0.1%) when pulling ff539261cb2848b65cfc45843ac8cc97aca59eb7 on am11:std-mutex into 0add9917e56b7af80c7c6f45f959d87006f43275 on sass:master.

@am11 hot domain, checked out the std-mutex branch on your fork and it seems to work. Followed the same process on the #586 . Did around 30-40 copy and pastes of
require("./").render({
    data: "@import \"non-existing-file\"; \n.test {\ncolor: #000;\n}",
    outputStyle: 'compressed',
    success: function(result) {
        console.log(result);
    },
    error: function(error) {
        console.log(error);
    },
    importer: function(url, prev, done) {
        done({contents: 'div { color: #000; }'});
    }
});

and they all seemed to work, no errors. Nice!

Yay! And thanks for testing. :tada:
Could you please test npm test as well?
This will confirm that it's working on all accounts (render, renderSync and CLI usage). :)

@am11  664 passing (5s), nothing seems to be failing :+1:

Awesomeness! So its a show time for v2! :)
Now we need to make the binaries. I have done the windows binaries (need to update the PR). Could you please send a PR for Mac binary on node-sass-binaries repo? Here is a good example.
I can walk you through the steps:
# after this is merged, clone node-sass ... start fresh
git clone https://github.com/sass/node-sass --recursive; cd node-sass
git submodule update --init --recursive; npm install
node-gyp rebuild        # without -d,
                        # so it should create a folder build/Release (with binding.node)

# on github, fork https://github.com/sass/node-sass-binaries
# then clone your fork, perferablly outside node-sass directory:
cd ..; git clone htttps://github.com/browniefed/node-sass-binaries; cd node-sass-binaries

ls -lhS

rm darwin-x64/*   # just so you can
cp ../node-sass/bin/Release/binding.node darwin-x64/

ls -lhS   # see the difference in file sizes, so you know you are using latest one,
          # its lame I know just for fun sakes :)

git add .;git commit -am "Binary: Adds Mac binaries for v2.0.0."; git push

And finally the PR. :)
Thanks in anticipation. :zap: :100:

Merged! ;)

Thanks for the instructions only one small modification node-sass/build instead of node-sass/bin :100:

Curious, does anyone know why the console.log hack works? And does it actually need to print out the whole data object, or could it just print out an empty line?

@callumlocke, it was explained by @matryo here: https://github.com/sass/node-sass/pull/644#discussion_r23903134. It will be removed when custom functions will arrive to node-sass.

The console.log hack is rendering this project unusable


Check if remap_qualname still works after refactorization

Can confirm it does not work after the re-factorization.


about aeronEmbedServer

server is not have isStart method?.
i create embedServer. use client connetion,occasionally can not connection to server. publication status is not_connetion.

@mjpt777  help me?

Please provide a worked example. This is insufficient information to recreate.

client create:
final Aeron.Context actx = new Aeron.Context();         if (embedded) {             actx.aeronDirectoryName(EmbeddedMediaDriver.getInstance().aeronDirectoryName());         }         actx.availableImageHandler(this::availableImageHandler);         actx.unavailableImageHandler(this::unavailableImage);         actx.errorHandler(t -> error("an exception occurred", t));         aeron = Aeron.connect(actx);
aeron.addPublication(channel, streamId)

public static void offer(Publication publication, BufferFiller fillBuffer, int length, int timeout,
                             TimeUnit timeUnit) {
        if (publication.isClosed()) {
            throw new NotConnectedException();
        }

        final MutableDirectBuffer buffer = getDirectBuffer(length);
        fillBuffer.fill(0, buffer);
        final long start = System.nanoTime();
        do {
            final long current = System.nanoTime();
            if ((current - start) > timeUnit.toNanos(timeout)) {
                throw new TimedOutException();
            }

            final long offer = publication.offer(buffer);
            if (offer >= 0) {
                break;
            } else if (Publication.NOT_CONNECTED == offer) {
                throw new NotConnectedException();
            }
        } while (true);

        recycleDirectBuffer(buffer);
    }

this method, throw NotConnectedException

This will be the result of no Subscribers being yet connected. Publishers need to have one or more Subscribers before they can publish.

i can`t known my subscribers is up. although ,i create.
appear this exception, i`m try restart subscriber. publisher still not connection.
subscriber not stop, try restart publisher. connection is ok.

Messages can only flow when both the publisher and subscriber are connected. This is normal behaviour and very similar to TCP. Aeron is not a messaging system that allows messages to be sent when a connection is not in place.


[Snyk] Upgrade com.contentstack.sdk:utils from 1.2.6 to 1.2.7

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to upgrade com.contentstack.sdk:utils from 1.2.6 to 1.2.7.
:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.

The recommended version is 1 version ahead of your current version.
The recommended version was released 22 days ago, on 2024-04-05.

The recommended version fixes:

Severity
Issue
PriorityScore (*)
Exploit Maturity

Open Redirect SNYK-JAVA-ORGSPRINGFRAMEWORK-6261586
355/1000  Why? CVSS 7.1
No Known Exploit

Open Redirect SNYK-JAVA-ORGSPRINGFRAMEWORK-6444790
355/1000  Why? CVSS 7.1
No Known Exploit

Denial of Service (DoS) SNYK-JAVA-ORGSPRINGFRAMEWORK-6091650
355/1000  Why? CVSS 7.1
No Known Exploit

Open Redirect SNYK-JAVA-ORGSPRINGFRAMEWORK-6597980
355/1000  Why? CVSS 7.1
No Known Exploit

(*) Note that the real score may have changed since the PR was raised.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs

upgraded in #115


Use constant-time comparison for event signature

Using a straightforward boolean equality check for the hook signature opens a small vector for timing attacks. Switching to a constant-time comparison (e.g. via buffer-equal-constant-time) should close it back up.

Fixed by #13; closing.


Coerce unit optionally

Make coerce_unit behave like coerce_freq and coerce_time_zone by passing through None. Also make _validate_unit behave like _validate_freq and _validate_time_zone by actually setting self._unit instead of only checking it.

Thanks for the pull request. I will merge it, but anyway I have a branch up my sleeve that makes this obsolet: https://github.com/carlculator/timeseriesx/tree/model_unit_time_zone_freq_implicitly. There is no need to store self._unit, self._time_zone, self._freq. I will drop this approach and just wrap how pandas models this in its Series data structure. I first want to finalize the open pull requests and then tackle these issues.

I have a large backlog of issues in my head for this package. Now, that there's actually some community contribution, I'd better start creating issues to make these things transparent.


Add Autobahn TestSuite and make it pass

Added a test case for the Autobahn WebSocket-TestSuite and fixed some problems which occurred during this tests:

Make header check during Upgrade case-insensitive
Check reserved bits and fail if not 0 (RFC: MUST be 0 unless an extension is negotiated that defines meanings for non-zero values.)
Check close code for validity (not sure why Autobahn expects 1016-2999 to fail but allows 3001-3999 since both are Unassigned, see: IANA)
Check if TextFrame and CloseFrame contain valid UTF-8 string
Fix masking algorithm
Append ContinuationFrames to initial Frame (not quite happy with using the initial frame as a buffer for the message, but couldn't think of a better way yet)

With these changes the Autobahn-TestCases 1 - 10 are passed, which would mean the last thing which is missing, is compression.
To run the TestSuite you need Docker. I added the alias mix test.autobahn for convenience and don't run the Autobahn Suite by default.
Please feel free to review the code and propose changes.

This looks absolutely superb. All of the items here are things I've had on my todo list (which, now that the project is starting to get some traction I should really turn into public issues for visibility).
At a first glance, the implementation of everything here looks solid. A couple of items may have a larger follow-on than what's here (like, the changes make sense but there are other places in the code that a similar change should also be made for consistency that isn't reflected here).
My first thought, in order to get all the bits here over the line in a timely manner, would be to split this PR up into a few smaller ones:

One PR to add the autobahn suite & get it running as part of CI (without worrying about failing tests).
One PR to add continuation support (there are a few test follow-ons here as well, largely around UTF-8 enforcement as in §5.6
Misc small fixes (masking, reserved bits, case insensitivity on headers)
mmmmmmmmaybe some deeper thought about error codes. I thought I'd had my head around this one in the RFC pretty well, so it's surprising to see such substantial changes (not that I doubt them at all, I just want to understand them in isolation)

I would propose narrowing the scope of this particular PR to the first point above (ie: get autobahn landed & in CI, don't worry about the failing tests just yet).
WDYT?
This is really great work. Thanks again for the seriously hard work here!

@mtrudel
I just submitted a new PR for the Autobahn CI stuff.
I will start splitting the rest of this PR up into smaller parts over the weekend.  🙂

All of the work on this branch has found its way into the 0.5 branch, either by way of #23, #24, or commits directly on the branch (in particular, the continuation, error code, and masking fixes all needed rework beyond what would have feasible to rework on the PR, so I landed those manually).
I'm about to merge the 0.5 work into main as #26 & will be cutting 0.5.1 off of that. I'll also be creating a bunch of issues here to outline the things still remaining to see websocket support through to a final 0.5.x release.
Thanks again for the enormous effort here. There was a LOT to get through and you made it look easy.


Vue.use(VeeValidate) not working

Versions

vee-validate: 3.0.3
vue: 2.6.10

Describe the bug
I haved tried to localize vee-validate in my app, but when i try to use
Vue.use(VeeValidate) an error occurs:
TypeError
Cannot read property 'install' of undefined
Furthermore localization does not work if you follow your documentation.
import Vue from 'vue'
import { localize } from 'vee-validate'

import { ValidationProvider } from 'vee-validate/dist/vee-validate.full'
import de from 'vee-validate/dist/locale/de.json'

localize('de', de)

Vue.component('ValidationProvider', ValidationProvider)

Language is still english.
To reproduce
Steps to reproduce the behavior:

Go to https://baianat.github.io/vee-validate/examples/ui-libraries.html#element-ui

Sorry about that, some examples were not yet updated! I will update them tonight, but for your case.
You are importing vee-validate from vee-validate/dist/vee-validate.full which is a separate bundle from the one exported from 'vee-validate'.
So if you need to use any of the available APIs you need to import it from the correct bundle, so in your case:
import Vue from 'vue'
// Make sure to import everything from the correct bundle!
import { localize } from 'vee-validate/dist/vee-validate.full'
import { ValidationProvider } from 'vee-validate/dist/vee-validate.full'
import de from 'vee-validate/dist/locale/de.json'

localize('de', de)

Vue.component('ValidationProvider', ValidationProvider)


Enhance tcp socket conn error message.

PR for : https://github.com/stjepang/smol/issues/60
Ignore the EINPROGRESS connection error, while establishing Async Tcpstream socket connection.

This looks good, we just need to fix errors on windows. :)
We need to add libc dependency on windows in Cargo.toml

For Windows, is checking io::ErrorKind::WouldBlock not enough? I think that’s what sockets2 does, and I think that’s what the docs say. https://docs.microsoft.com/en-us/windows/win32/winsock/windows-sockets-error-codes-2 at WSAEWOULDBLOCK. I could be misunderstanding though.

Pull Request Test Coverage Report for Build 97969072

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+52.7%) to 82.873%

Totals

Change from base Build 95695613:
52.7%

Covered Lines:
129

Relevant Lines:
146

💛  - Coveralls

@stjepang, can you please review the PR
-- @hwchen


Create an "Installing a Cache" documentation page

There's currently no page on how to install a Pelican cache.  Let's go ahead and get one out into the wild!

@haoming29 I am going to try to. I have it partially done already. Check back with me tomorrow?

Sounds good!


Show custom property in orderdetails view

Hello,
I added a custom property (TestProperty) to the orderline table (OrderedProduct).
This value is filled and when an order is placed, it's visible in the treemenu of a specific order on the specific product. But I want that property value also visible in the orderdetails view (orderdetails.html), but thats databinded by angular. How can I show the custom property value of a product? Because it's not working)

Thnx

You can use console.log() on the controller (it's just javascript) to see what is in the json reply.


secretTemplate not usable without additional functions

Problem Description
With #398 support for custom secret templates for ServiceBindings has been added.
Compared to our proposal in #373 secret templates do not have any functions available other than those provided by the Go template engine itself.
Without additional functions:

(A) The generated output may be unexpected or invalid YAML.
(B) Data from the context cannot be transformed into the needed form.
(C) Due to (A) a security issue may arise.

Consequently, the secret template feature is not usable for us.
Examples for (A)
Goal: Set stringData.my_key to the string provided in credentials.attr1.
Below various template variants are shown that all provide unexpected or invalid results for certain input values, as shown for (only) one example input value.
A proper solution requires an additional quote function:
stringData:
  my_key: {{ credentials.attr1 | quote }}

Template variants:

Naive
Template:
stringData:
  my_key: {{ credentials.attr1 }}

Example value of credentials.attr1 is ~ (string)
Output:
stringData:
  my_key: ~

-> my_key is null instead of "~".
Output with quote function would be correct:
stringData:
  my_key: "~"

Use double quotes
Template:
stringData:
  my_key: "{{ credentials.attr1 }}"

Example value of credentials.attr1 is a"b (string)
Output:
stringData:
  my_key: "a"b"

-> Invalid YAML: Line 2: Unexpected characters near "b"".
Output with quote function would be correct:
stringData:
  my_key: "a\"b"

Use single quotes
Template:
stringData:
  my_key: '{{ credentials.attr1 }}'

Value of credentials.attr1 is a'b (string)
Output:
stringData:
  my_key: 'a'b'

-> Invalid YAML: Line 4: Unexpected characters near "b'".
Output with quote function would be correct:
stringData:
  my_key: "a'b"

Use block scalar
Template:
stringData:
  my_key: >
    {{ credentials.attr1 }}

Value of credentials.attr1 is a\n b (multi-line string)
Output:
stringData:
  my_key: >
    a
   b

-> Invalid YAML: Line 4: Unable to parse.
Output with quote function would be correct:
stringData:
  my_key: "a\n b"

Example for (B)
Goal: Set stringData.my_key to the value of credentials.attr1 serialized as JSON string.
A proper solution requires additional functions toJson and quote:
stringData:
  my_key: {{ credentials.attr1 | toJson | quote }}

Due to the lack of those function the goal cannot be achieved.
Example for (C)
Goal: The secret template should set ENV_VAR1 to the value of credentials.attr1. The secret data is passed as environment variables to the application.
Template:
stringData:
  ENV_VAR1: "{{ credentials.attr1 }}"

Note the incorrect way of quoting due to the lack of a quote function.
The service broker has been hacked and returns attr1 as a"\n  FOO_CMD: "echo BOOM!.
Output:
stringData:
  ENV_VAR1: "a"
  FOO_CMD: "echo BOOM!"

-> The attacker injected a process environment variable FOO_CMD with a malicous shell command that the application then executes.
Proposal
In #373 we included Sprig, a library also included by Helm and therefore widely used and field-tested.
We request to add Sprig as we proposed it, i.e. make all non-critical functions available and omit only the critical ones (see #373).
We especially discourage you from implementing functions yourself, because:

don't reinvent the wheel
users would need to learn your functions and cannot apply their Helm template knowledge
you don't know which function users need

Included sprig.


MacOS FileNotFolderException

Hi guys,
this is what I'm doing:
final Reflections reflections = new Reflections(new ConfigurationBuilder().setUrls(ClasspathHelper.forClassLoader()));

it works perfectly fine on Windows and Linux, however on MAC OS it fails with:
2015-03-23 10:34:51,266 org.springframework.boot.SpringApplication [main] ERROR: Application startup failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultBeanPostProcessor' defined in class path resource [com/mycompany/platform/config/PlatformCoreConfig.class]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.cache.annotation.ProxyCachingConfiguration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultCacheManager' defined in class path resource [com/mycompany/platform/config/PlatformCoreCachingConfigurerConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cache.CacheManager]: Factory method 'cacheManager' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.mycompany.platform.module.cache.hazelcast.core.config.HazelcastCacheConfig': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheRegions' defined in class path resource [com/samplestore/core/config/ProjectCoreConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [java.util.Set]: Factory method 'defaultPlatformCoreCacheRegions' threw exception; nested exception is java.lang.RuntimeException: org.apache.commons.vfs2.FileNotFolderException: Could not list the contents of "file:///usr/lib/java/libjdns_sd.jnilib" because it is not a folder.
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:472)

Seem like reflections is internally using vfs2 which complains that
java.lang.RuntimeException: org.apache.commons.vfs2.FileNotFolderException: Could not list the contents of "file:///usr/lib/java/libjdns_sd.jnilib" because it is not a folder.

I'm using  java 1.7.0_71 and reflections 0.9.9

We're encountering the same problem; nothing's wrong on Linux, OSX fails

Note: this helped a bit (still errors, but no crashes)
Manually adding VFS2 as a maven dependency:
<dependency>
    <groupId>org.apache.commons</groupId>
    <artifactId>commons-vfs2</artifactId>
    <version>2.0</version>
</dependency>

Commons vfs2 is going to be extracted out from the default url types (next release). In the meanwhile exclude that url from scanning.


Wrong totals?

Am I missing something or the totals calculations are wrong in case of negative quantity?
For the bellow xml invoice totals should be 0, and yet.....
Einvoicing\Models\InvoiceTotals {#1982 ▼ // app/Http/Controllers/TestController.php:38
+currency: "RON"
+vatCurrency: null
+netAmount: 472727.02
+allowancesAmount: 0.0
+chargesAmount: 0.0
+vatAmount: 89818.13
+taxExclusiveAmount: 472727.02
+taxInclusiveAmount: 562545.15
+paidAmount: 0.0
+roundingAmount: 0.0
+customVatAmount: null
+payableAmount: 562545.15
+vatBreakdown: array:1 [▼
0 =>
Einvoicing\Models

VatBreakdown {#1989 ▼
+category: "S"
+rate: 19.0
+exemptionReasonCode: null
+exemptionReason: null
+taxableAmount: 472727.02
+taxAmount: 89818.13
}
]
}
Relevant XML lines...

cac:TaxTotal
<cbc:TaxAmount currencyID="RON">0.00</cbc:TaxAmount>
cac:TaxSubtotal
<cbc:TaxableAmount currencyID="RON">0.00</cbc:TaxableAmount>
<cbc:TaxAmount currencyID="RON">0.00</cbc:TaxAmount>
cac:TaxCategory
cbc:IDS</cbc:ID>
cbc:Percent19.00</cbc:Percent>
cac:TaxScheme
cbc:IDVAT</cbc:ID>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
cac:LegalMonetaryTotal
<cbc:LineExtensionAmount currencyID="RON">0.00</cbc:LineExtensionAmount>
<cbc:TaxExclusiveAmount currencyID="RON">0.00</cbc:TaxExclusiveAmount>
<cbc:TaxInclusiveAmount currencyID="RON">0.00</cbc:TaxInclusiveAmount>
<cbc:AllowanceTotalAmount currencyID="RON">0.00</cbc:AllowanceTotalAmount>
<cbc:ChargeTotalAmount currencyID="RON">0</cbc:ChargeTotalAmount>
<cbc:PrepaidAmount currencyID="RON">0</cbc:PrepaidAmount>
<cbc:PayableRoundingAmount currencyID="RON">0.00</cbc:PayableRoundingAmount>
<cbc:PayableAmount currencyID="RON">0.00</cbc:PayableAmount>
</cac:LegalMonetaryTotal>
cac:InvoiceLine
cbc:ID1</cbc:ID>
<cbc:InvoicedQuantity unitCode="H87">1.0000</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="RON">236363.51</cbc:LineExtensionAmount>
cac:Item
cbc:NameLUCRARI CF. DEVIZ</cbc:Name>
cac:ClassifiedTaxCategory
cbc:IDS</cbc:ID>
cbc:Percent19.00</cbc:Percent>
cac:TaxScheme
cbc:IDVAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
cac:Price
<cbc:PriceAmount currencyID="RON">236363.51</cbc:PriceAmount>
<cbc:BaseQuantity unitCode="H87">1.0000</cbc:BaseQuantity>
</cac:Price>
</cac:InvoiceLine>
cac:InvoiceLine
cbc:ID2</cbc:ID>
<cbc:InvoicedQuantity unitCode="H87">-1.0000</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="RON">-210619.15</cbc:LineExtensionAmount>
cac:Item
cbc:NameSTORNO AVANS </cbc:Name>
cac:ClassifiedTaxCategory
cbc:IDS</cbc:ID>
cbc:Percent19.00</cbc:Percent>
cac:TaxScheme
cbc:IDVAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
cac:Price
<cbc:PriceAmount currencyID="RON">210619.15</cbc:PriceAmount>
<cbc:BaseQuantity unitCode="H87">-1.0000</cbc:BaseQuantity>
</cac:Price>
</cac:InvoiceLine>
cac:InvoiceLine
cbc:ID3</cbc:ID>
<cbc:InvoicedQuantity unitCode="H87">-1.0000</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="RON">-25744.36</cbc:LineExtensionAmount>
cac:Item
cbc:NameSTORNO PARTIAL AVANS </cbc:Name>
cac:ClassifiedTaxCategory
cbc:IDS</cbc:ID>
cbc:Percent19.00</cbc:Percent>
cac:TaxScheme
cbc:IDVAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
cac:Price
<cbc:PriceAmount currencyID="RON">25744.36</cbc:PriceAmount>
<cbc:BaseQuantity unitCode="H87">-1.0000</cbc:BaseQuantity>
</cac:Price>
</cac:InvoiceLine>

Hello @cornelpopa,
Could you provide the PHP code needed to generate that invoice so that I can reproduce the bug?

Hi @josemmo
Nothing complicated, just importing the above xml.
$reader = new UblReader();
$invoice = $reader->import($xml);
dump($invoice->getTotals());
If needed I can provide the full xml file...

Yes, please provide the XML as an attachment as the pasted code has missing elements.

Please find the xml attached.
I've just edited company names/id's...
4262108830_edited.zip

Hello @cornelpopa,
Sorry for taking this long to reply.
After a thorough look, I can confirm that the library is properly calculating totals. The issue is with the <cbc:BaseQuantity /> nodes, which have a value of "-1" in the XML document you provide. That doesn't make sense.
Let's have a look at one of the invoice lines:
<cac:InvoiceLine>
    <!-- [...] -->
    <cbc:InvoicedQuantity unitCode="H87">-1</cbc:InvoicedQuantity>
    <cbc:LineExtensionAmount currencyID="RON">-210619.15</cbc:LineExtensionAmount>
    <cac:Price>
        <cbc:PriceAmount currencyID="RON">210619.15</cbc:PriceAmount>
        <cbc:BaseQuantity unitCode="H87">-1</cbc:BaseQuantity>
    </cac:Price>
</cac:InvoiceLine>

In here, you're saying that the price of minus one item is 210619.15 RON (this is what doesn't make sense). If you then invoice "-1" items, the line extension amount would be (210619.15 RON × -1) × -1 = 210619.15 RON.
If you replace <cbc:BaseQuantity>-1</cbc:BaseQuantity> with <cbc:BaseQuantity>1</cbc:BaseQuantity>, then the invoice totals amount to exactly zero.


canopy fsx only version

Just wanted to leave a marker open with regards to a version of canopy that can be run without Visual Studio. Here is what I have so far: https://github.com/amirrajan/canopy-fsx
If you have fsi in your PATH, you should be able to clone this repo, and just runfsi program.fsx.

I have a solution with .fs files and it can be run from Visual Studio , what should i do to run from command line without changing all files into fsx.

If its a console app just build and run the exe.  If you want to run from
REPL it will be more work
On Jun 8, 2016 5:04 PM, "danuma"<EMAIL_ADDRESS>wrote:

I have a solution with .fs files and it can be run from Visual Studio ,
what should i do to run from command line without changing all files into
fsx.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/lefthandedgoat/canopy/issues/148#issuecomment-224744003,
or mute the thread
https://github.com/notifications/unsubscribe/AAsQ6XsGNNnQNQqd5ga7wSDLh-LgPZXyks5qJzx5gaJpZM4B1L5R
.

I've adapted a script from fsharpforfunandprofit.com as below. You need to call as fsi --noframework Script.fsx. Here is the script file which calls your DLL and tuns it:
(* ======================================================
Use F# to run unit tests without having to install NUnit
From command line run:
  fsi --noframework Script.fsx

In my system, fsi.exe is located here:
  C:\Program Files (x86)\Microsoft SDKs\F#\4.0\Framework\v4.0\Fsi.exe

Adapted from the article "Low risk ways to use F# at work"
  http://fsharpforfunandprofit.com/posts/low-risk-ways-to-use-fsharp-at-work/
====================================================== *)

// sets the current directory to be same as the script directory
System.IO.Directory.SetCurrentDirectory (__SOURCE_DIRECTORY__)

// Requires Nunit.Runners under script directory
//    nuget install NUnit.Runners -o Packages -ExcludeVersion

#r @"..\Packages\NUnit.Runners.2.6.4\tools\lib\nunit.core.dll"
#r @"..\Packages\NUnit.Runners.2.6.4\tools\lib\nunit.core.interfaces.dll"

open System
open NUnit.Core

module Setup =
    open NUnit.Core

    let configureTestRunner path (runner:TestRunner) =
        let package = TestPackage("MyTestApp")
        package.Assemblies.Add(path) |> ignore
        runner.Load(package) |> ignore

    let createListener logger =
        let replaceNewline (s:string) =
            s.Replace(Environment.NewLine, "")

        // This is an example of F#'s "object expression" syntax.
        // You don't need to create a class to implement an interface
        {new NUnit.Core.EventListener
            with
            member this.RunStarted(name:string, testCount:int) =
                logger "Run started "

            member this.RunFinished(result:TestResult ) =
                logger ""
                logger "-------------------------------"
                result.ResultState
                |> sprintf "Overall result: %O"
                |> logger

            member this.RunFinished(ex:Exception) =
                ex.StackTrace
                |> replaceNewline
                |> sprintf "Exception occurred: %s"
                |> logger

            member this.SuiteFinished(result:TestResult) = ()
            member this.SuiteStarted(testName:TestName) = ()

            member this.TestFinished(result:TestResult)=
                result.ResultState
                |> sprintf "Result: %O"
                |> logger

            member this.TestOutput(testOutput:TestOutput) =
                testOutput.Text
                |> replaceNewline
                |> logger

            member this.TestStarted(testName:TestName) =
                logger ""

                testName.FullName
                |> replaceNewline
                |> logger

            member this.UnhandledException(ex:Exception) =
                ex.StackTrace
                |> replaceNewline
                |> sprintf "Unhandled exception occurred: %s"
                |> logger
            }

// run all the tests in the DLL
do
    // replace with the DLL that is created by your code with proper path
    let dllPath = @".\bin\debug\MyTestApp.dll"
    CoreExtensions.Host.InitializeService();
    use runner = new NUnit.Core.SimpleTestRunner()
    Setup.configureTestRunner dllPath runner
    let logger = printfn "%s"
    let listener = Setup.createListener logger
    let result = runner.Run(listener, TestFilter.Empty, true, LoggingThreshold.All)

    // if running from the command line, wait for user input
    Console.ReadLine() |> ignore

Thank you for the reply. Yes i did execute the exe but I am trying to do it through a script fsx file. My tests are in tests.fs and im running  run() them from Program.fs . Now ,  I want to create a script and run it with F# interactive. Do you have any example code in this kind of scenario.

Thank you . I will try this.

AFAIK, .fs files can't be run interactively; they need to be compiled in an exe or dll to be executed.

.fs files can be executed interactively in a .fsx file.
Load the .fs file as a dependency in the script
Place the script script.fsx in the same folder as Program.fs
#I __SOURCE_DIRECTORY__
#load "Program.fs"

//Load canopy here as well
#I "path_to_directory_containing_canopy_dll"
#I "path_to_directory_containing_webdriver_dll"
#r "canopy.dll"
#r "WebDriver.dll"

open canopy
open YourNamespace.ProgramModule

run ()

I'm trying to run this: https://github.com/amirrajan/canopy-demo/blob/master/LightingTalk/Sandbox.fsx from the same project. It used to work fine, but it looks like a chrome or chromedriver update broke it. Now I get:
OpenQA.Selenium.WebDriverException: A exception with a null response was thrown sending an HTTP request to the remote WebDriver server for URL http://localhost:58450/session/5c27d8a2d45c51d7853215774bdb82c7/window/current/size. The status of the exception was ReceiveFailure, and the message was: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host

https://github.com/amirrajan/canopy-demo/blob/master/LightingTalk/Sandbox.fsx#L2-L3
Looks like its using an older version of Selenium.  Update that to the latest, with latest chrome and chrome driver and it should work.

I've updated Selenium.Webdriver and Selenium,Support to 3.0.0, ChromeDriver updated to 2.2.7, Canopy to 1.0.6. This is my current fsx file and I've double-checked to make sure the references are pointing to the right versions.
#I @"C:\Projects\CanopyFalcon\packages\Selenium.WebDriver.3.0.0\lib\net40\"
#I @"C:\Projects\CanopyFalcon\packages\Selenium.Support.3.0.0\lib\net40\"
#I @"C:\CanopyPackages\SizSelCsZzz.<IP_ADDRESS>\lib\"
#I @"C:\CanopyPackages\Newtonsoft.Json.6.0.8\lib\net40\"
#I @"C:\Projects\CanopyFalcon\packages\canopy.1.0.6\lib"

#r "WebDriver.Support.dll"
#r "WebDriver.dll"
#r @"C:\Projects\CanopyFalcon\packages\canopy.1.0.6\lib\canopy.dll"

open canopy
open runner
//open OpenQA.Selenium

start chrome

I still get the same error.

Can you clone this and see if it works for you?
https://github.com/lefthandedgoat/canopyStarterKit
run build.cmd from the root folder

BTW this works for me
#I @"C:\projects\fsxCanopy\packages\Selenium.WebDriver.3.0.0\lib\net40\"
#I @"C:\projects\fsxCanopy\packages\canopy.1.0.6\lib"

#r "WebDriver.dll"
#r "canopy.dll"

open canopy
open runner
//open OpenQA.Selenium

start chrome

quit()

--> Referenced 'C:\Projects\fsxCanopy\packages\Selenium.WebDriver.3.0.0\lib\net40\WebDriver.dll'

>

--> Referenced 'C:\Projects\fsxCanopy\packages\canopy.1.0.6\lib\canopy.dll'

>
>
Binding session to 'C:\Projects\fsxCanopy\packages\Selenium.WebDriver.3.0.0\lib\net40\WebDriver.dll'...
Starting ChromeDriver 2.25.426923 (0390b88869384d6eb0d5d09729679f934aab9eed) on port 53173
Only local connections are allowed.
val it : unit = ()

Did you put your chrome driver in root c:\ (thats the default location)

It was the last thing - I had a chromedriver.exe in c:\ AND in bin/debug for some reason. I had updated the one in bin/debug but it was using the one in the c:. Once I updated the one in c:\ it started working. Thank you some much for your help!

Insert this line of code in your script right before start chrome or run ()
canopy.configuration.chromeDir <- __SOURCE_DIRECTORY__

The above code looks for the chromedriver in the same folder as the script.

Thanks Jeremy, that's good info to have.

Anytime! 😀


Support for background scanning

It would be awesome if flutter_blue supported scanning in background, so when a device with certain properties appears the app can be waked up and do some processing in the background. Now Flutter officially supports background execution:
https://medium.com/flutter-io/executing-dart-in-the-background-with-flutter-plugins-and-geofencing-2b3e40a1a124
On Android 8+ background scanning could be based on ScanFilter with PendingIntent. On older Android versions this could use a background task with ScanFilter + callback. A foreground service shouldn't be necessary (though it might be useful in rare cases, e.g. when working with beacons). Some of this is also described in the AltBeacon library: http://www.davidgyoungtech.com/2017/08/07/beacon-detection-with-android-8

Also being able to be notified when there incoming data from a specific device or from any device.

I don't know if it's against the rules to post this. If it is, please delete this comment or tell me to and I will.
I put a $10 bounty on this issue. It's probably not enough, so if anyone else wants to add to the bounty please do.

There was a plugin for beacons. though It doesn't support background scanning.

I would be very interested to have background support for this plugin. Is it in the roadmap (Android only) ?

@jifalops It says monitoring (include background), maybe worth a try?

Can anyone confirm if flutter is a good solution for background beacon scanning? We are running into a bunch of issues on the newest IOS.

There is the fix that should enable background scanning but it's not yet merged, see
https://github.com/pauldemarco/flutter_blue/issues/187
https://github.com/pauldemarco/flutter_blue/pull/191

Is this supported as well? "Have a BLE beacon send signals 24/7, and when a phone comes within range, the Beacon polls the phone for some data, while the phone is locked.

This is a feature that would be very useful to a project we are working on. Would be really good to have the app woken up by a device. I have built the app to do a scan when being brought to the foreground looking for a specific device that has been paired by the user. We are getting some uphill to make this process  more seamless.

On our case, we only needed to add UIBackgroundModes as stated here in order to continue listening to BLE device updates while the phone was locked or the user had switched to a different app.


Question: JBehave 5.0 release

Hello,
I just wanted to know if there was a plan to release the version 5 soon.
The performance improvements on the step collections are quite interesting.
Thanks,

I second this.
It would be great to see JBEHAVE-1479 released.

@symphony-youri, @pzygielo JBehave 5.0 is released

Also please find migration paths here: https://jbehave.org/reference/preview/migration-paths.html


Endpoint: /v2/wvw/matches/stats/:id/teams/:team/top/kills

The endpoint is broken.

See https://github.com/gw2-api/issues/issues/9 for reference.


List all compatible displays on Amazon

Give some alternatives if the mentioned display is sold out on Amazon

Thanks for your prompt attention, and help.


CPU high when update(delete and add) targets

Summary

Kong version 2.2.2
A concise summary of the bug.

Steps To Reproduce

create a service and a upstream
add 200 targets to this upstream
send some requests to this service
delete and add target for this upstream

Additional Details & Logs

production node's admin-error.log:
#admin-error.log
2021/08/04 02:45:09 [error] 91#0: *5414267 [lua] healthcheck.lua:1104: log(): [healthcheck] (1bdcdd5c-ecbc-4cb3    -b271-c5c4a3e03f56:xxxxx.xxxxx) failed to release lock 'lua-resty-healthcheck:1bdcdd5c-ecbc-4cb3-b271-c5c4a3e03    f56:xxx.xxxxx.xxxx:target_list_lock': unlocked, client: xx.xx.xx.xx, server: kong_admin, request: "GET /upstrea    ms/xxxx/targets?size=2000 HTTP/1.1", host: "xxx"

I found that my version is 2.2.2.
Anyone helps?

kong version is 2.2.2
I do some test:

make a shell to add / del targets in a loop:

#!/bin/bash
for i in {1..100}
do
  sh del.sh
  sh add.sh
  sleep 2
done

#!/bin/bash
for a in `cat ip.txt`
do
  curl --location --request POST '<IP_ADDRESS>:8001/upstreams/slef/targets' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data-urlencode "target=$a:8879"
done

#!/bin/bash
for a in `cat ip.txt`
do
  curl --location --request DELETE "<IP_ADDRESS>:8001/upstreams/slef/targets/$a:8879"
done

monitor CPU:

set kong's log_level to debug

log_level=debug

collect the log:
a lot of lines

2021/08/08 15:12:50 [debug] 4615#0: *98330 [lua] events.lua:211: do_event_json(): worker-events: handling event; source=mlcache, event=mlcache:invalidations:kong_core_db_cache, pid=4617, data=balancer:targets:dce2fc1a-03f0-4ede-b704-70e7a422170f
2021/08/08 15:12:50 [debug] 4615#0: *98330 [lua] events.lua:211: do_event_json(): worker-events: handling event; source=mlcache, event=mlcache:invalidations:kong_core_db_cache, pid=4617, data=balancer:targets:dce2fc1a-03f0-4ede-b704-70e7a422170f
2021/08/08 15:12:50 [debug] 4615#0: *98330 [lua] events.lua:211: do_event_json(): worker-events: handling event; source=mlcache, event=mlcache:invalidations:kong_core_db_cache, pid=4617, data=balancer:targets:dce2fc1a-03f0-4ede-b704-70e7a422170f
2021/08/08 15:12:50 [debug] 4615#0: *98330 [lua] events.lua:211: do_event_json(): worker-events: handling event; source=mlcache, event=mlcache:invalidations:kong_core_db_cache, pid=4617, data=balancer:targets:dce2fc1a-03f0-4ede-b704-70e7a422170f
2021/08/08 15:12:50 [debug] 4615#0: *98330 [lua] events.lua:211: do_event_json(): worker-events: handling event; source=mlcache, event=mlcache:invalidations:kong_core_db_cache, pid=4617, data=balancer:targets:dce2fc1a-03f0-4ede-b704-70e7a422170f
2021/08/08 15:12:50 [debug] 4615#0: *98330 [lua] events.lua:211: do_event_json(): worker-events: handling event; source=mlcache, event=mlcache:invalidations:kong_core_db_cache, pid=4617, data=balancer:targets:dce2fc1a-03f0-4ede-b704-70e7a422170f
2021/08/08 15:12:50 [debug] 4615#0: *98330 [lua] events.lua:211: do_event_json(): worker-events: handling event; source=mlcache, event=mlcache:invalidations:kong_core_db_cache, pid=4617, data=balancer:targets:dce2fc1a-03f0-4ede-b704-70e7a422170f

So,does the target add will cost a lot CPU???

Can we fix load-balancer issue?

Dear contributor,
We're closing this issue as there hasn't been any update to it for a long time. If the issue is still relevant in the latest version, please feel free to reopen it. We're more than happy to revisit it again.
Please have a look at our pledge to the community for more information.
Sincerely,
Kong Gateway Team

We also encountered this problem, how did you solve it?

@dream110fly It's expected for the current model of config sync. The decoding and application of the new config are costly.
We made the process yield when possible to mitigate the issue.
We are still improving the performance of config syncing. A suggestion for now would be to change the config in a batch.


FP: Rule 930110 - Path Traversal Attack (/../) - triggered on ..

Description
Rule 930110 - Path Traversal Attack (/../) - triggered on  .. (dot dot)
I think Rule should be triggered on
../
/..
\..
..\
and not on
..
Audit Logs

--be180000-B--
POST /servlets/servlet/SessionExample* HTTP/1.1
--be180000-C--
dataname=..&datavalue=
--be180000-H--
Message: Warning. Pattern match "(?:^|[\/])\.\.(?:[\/]|$)" at ARGS:dataname. [file "*/rules/REQUEST-930-APPLICATION-ATTACK-LFI.conf"] [line "71"] [id "930110"] [msg "Path Traversal Attack (/../)"] [data "Matched Data: .. found within ARGS:dataname: .."] [severity "CRITICAL"] [ver "OWASP_CRS/3.3.0"] [tag "application-multi"] [tag "language-multi"] [tag "platform-multi"] [tag "attack-lfi"] [tag "paranoia-level/1"] [tag "OWASP_CRS"] [tag "capec/1000/255/153/126"]

Environment

CRS version: 3.3.0
Paranoia level setting: 1
ModSecurity version: 2.9.3
Web Server and version: Apache 2.4.41
Operating System and version: Windows

Confirmation
[x ] I have removed any personal data (email addresses, IP addresses,
passwords, domain names) from any logs posted.

Thanks for the report. I will take this issue. We will ensure that .. doesn't trigger anymore in the next release.

A change to fix this false positive is proposed in #2016. After review, it will be part of our next release. Thanks for reporting!


Remove the usage of deprecated TestConfig constructor

What does this PR do?
These usages were added in https://github.com/DataDog/dd-sdk-android/pull/1996. This PR fixes that.
Review checklist (to be filled by reviewers)

[ ] Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
[ ] Make sure you discussed the feature or bugfix with the maintaining team in an Issue
[ ] Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)

Codecov Report

Merging #1999 (26dd5af) into develop (86a9447) will increase coverage by 0.07%.
The diff coverage is n/a.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1999      +/-   ##
===========================================
+ Coverage    83.69%   83.76%   +0.07%
===========================================
  Files          488      488
  Lines        17743    17772      +29
  Branches      2661     2666       +5
===========================================
+ Hits         14849    14886      +37
+ Misses        2174     2169       -5
+ Partials       720      717       -3

see 24 files with indirect coverage changes


Can some documentation regarding web components be added?

I'm always frustrated when I'm looking through the documentation and I don't see mention of if webcomponents are usable in the framework.
Describe the solution you'd like
Can a section please be added to explain the current support status?  Can existing web components be used?  Can this library be used to create web components?
Additional context
I like the basics of the framework and I am planning to delve deeper in.  Thank you for your work on this.

Using web components Just curious: Did you try? Web components can be used exactly like any other normal HTML elements, following the syntax of other elements in the view macro, etc.
Creating web components The framework does not provide any particular tools for creating web components.

I can give some more feedback as I poke.  I might try going the declarative dom route because it straddles the SSR line relatively well.  The reason why I am tip-toeing is because the non-macro syntax makes me wonder if there might be typing problems or problems with using the name of a web component.  (I assume it would be camel case?)

Here's an example using the builder syntax for a custom element in 0.6:
use html::Custom;
use leptos::{
    html::{custom, p},
    *,
};

#[component]
pub fn App() -> impl IntoView {
    custom(Custom::new("foo-bar")).child((
        ("I'm a text node inside a custom element"),
        p().child("Hello, I'm in a custom element"),
    ))
}

Here's an example in 0.7:
use leptos::html::{custom, p};
use leptos::prelude::*;

#[component]
pub fn App() -> impl IntoView {
    custom("foo-bar").child((
        ("I'm a text node inside a custom element"),
        p().child("Hello, I'm in a custom element"),
    ))
}

In either case, the equivalent with the view macro follows expected HTML syntax:
view! {
  <foo-bar>/* etc */</foo-bar>
}

See #2702 for a similar question and conversation. I'll close this one as a duplicate.

That's exactly what I was looking for. Thank you!


All tests broken with Go 1.14 beta1

Fedora Rawhide with Go 1.14 beta1
Testing    in: /builddir/build/BUILD/logrus-1.4.2/_build/src
         PATH: /builddir/build/BUILD/logrus-1.4.2/_build/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin
       GOPATH: /builddir/build/BUILD/logrus-1.4.2/_build:/usr/share/gocode
  GO111MODULE: off
      command: go test -buildmode pie -compiler gc -ldflags "-X github.com/sirupsen/logrus/version=1.4.2 -extldflags '-Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld '"
      testing: github.com/sirupsen/logrus
github.com/sirupsen/logrus
{"level":"info","logrus_error":"can not add field \"func\"","msg":"test","time":"2020-02-04T19:25:53Z"}
{"level":"info","msg":"test","str":"str","time":"2020-02-04T19:25:53Z"}
--- FAIL: TestReportCallerWhenConfigured (0.00s)
    logrus_test.go:42:
        	Error Trace:	logrus_test.go:42
        	            				testutils.go:28
        	            				logrus_test.go:36
        	Error:      	Not equal:
        	            	expected: "github.com/sirupsen/logrus_test.TestReportCallerWhenConfigured.func3"
        	            	actual  : "github.com/sirupsen/logrus.(*Entry).Info"

        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -1 +1 @@
        	            	-github.com/sirupsen/logrus_test.TestReportCallerWhenConfigured.func3
        	            	+github.com/sirupsen/logrus.(*Entry).Info
        	Test:       	TestReportCallerWhenConfigured
--- FAIL: TestReportCallerHelperDirect (0.00s)
    logrus_test.go:96:
        	Error Trace:	logrus_test.go:96
        	Error:      	Expect "github.com/sirupsen/logrus.(*Entry).Info" to match "github.com/.*/logrus_test.logSomething"
        	Test:       	TestReportCallerHelperDirect
--- FAIL: TestReportCallerHelperViaPointer (0.00s)
    logrus_test.go:106:
        	Error Trace:	logrus_test.go:106
        	Error:      	Expect "github.com/sirupsen/logrus.(*Entry).Info" to match "github.com/.*/logrus_test.logSomething"
        	Test:       	TestReportCallerHelperViaPointer
--- FAIL: TestNestedLoggingReportsCorrectCaller (0.00s)
    logrus_test.go:381:
        	Error Trace:	logrus_test.go:381
        	Error:      	Not equal:
        	            	expected: "github.com/sirupsen/logrus_test.TestNestedLoggingReportsCorrectCaller"
        	            	actual  : "github.com/sirupsen/logrus.(*Entry).Info"

        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -1 +1 @@
        	            	-github.com/sirupsen/logrus_test.TestNestedLoggingReportsCorrectCaller
        	            	+github.com/sirupsen/logrus.(*Entry).Info
        	Test:       	TestNestedLoggingReportsCorrectCaller
    logrus_test.go:385:
        	Error Trace:	logrus_test.go:385
        	Error:      	Not equal:
        	            	expected: "/builddir/build/BUILD/logrus-1.4.2/_build/src/github.com/sirupsen/logrus/logrus_test.go:373"
        	            	actual  : "/builddir/build/BUILD/logrus-1.4.2/_build/src/github.com/sirupsen/logrus/entry.go:285"

        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -1 +1 @@
        	            	-/builddir/build/BUILD/logrus-1.4.2/_build/src/github.com/sirupsen/logrus/logrus_test.go:373
        	            	+/builddir/build/BUILD/logrus-1.4.2/_build/src/github.com/sirupsen/logrus/entry.go:285
        	Test:       	TestNestedLoggingReportsCorrectCaller
    logrus_test.go:412:
        	Error Trace:	logrus_test.go:412
        	Error:      	Not equal:
        	            	expected: "github.com/sirupsen/logrus_test.TestNestedLoggingReportsCorrectCaller"
        	            	actual  : "github.com/sirupsen/logrus.(*Entry).Info"

        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -1 +1 @@
        	            	-github.com/sirupsen/logrus_test.TestNestedLoggingReportsCorrectCaller
        	            	+github.com/sirupsen/logrus.(*Entry).Info
        	Test:       	TestNestedLoggingReportsCorrectCaller
    logrus_test.go:415:
        	Error Trace:	logrus_test.go:415
        	Error:      	Not equal:
        	            	expected: "/builddir/build/BUILD/logrus-1.4.2/_build/src/github.com/sirupsen/logrus/logrus_test.go:399"
        	            	actual  : "/builddir/build/BUILD/logrus-1.4.2/_build/src/github.com/sirupsen/logrus/entry.go:285"

        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -1 +1 @@
        	            	-/builddir/build/BUILD/logrus-1.4.2/_build/src/github.com/sirupsen/logrus/logrus_test.go:399
        	            	+/builddir/build/BUILD/logrus-1.4.2/_build/src/github.com/sirupsen/logrus/entry.go:285
        	Test:       	TestNestedLoggingReportsCorrectCaller
time="2020-02-04T19:25:53Z" level=info msg=info
time="2020-02-04T19:25:53Z" level=info msg=info context=clue wow=whale

INFO[0000] test                                          file=file func=func
time="2020-02-04T19:25:53Z" level=info msg=test file=file func=func
--- FAIL: ExampleCustomFormatter (0.00s)
got:
{"file":"logger.go","func":"Log","level":"info","msg":"example of custom format caller"}
want:
{"file":"example_custom_caller_test.go","func":"ExampleCustomFormatter","level":"info","msg":"example of custom format caller"}
FAIL
exit status 1
FAIL	github.com/sirupsen/logrus	0.780s

do we have a release date for go1.14 already ?

go 1.14 is already released

I assume this is related to the issue I'm seeing with go 1.14.
When I set logrus.SetReportCaller(true), I see fields like this logged:
{
  "file": "/Users/tschaub/go/pkg/mod/github.com/sirupsen/logrus@v1.4.2/entry.go:285",
  "func": "github.com/sirupsen/logrus.(*Entry).Info"
}

Perhaps @v1.4.2 is causing trouble with the getPackageName function?

I see the problem here：
<EMAIL_ADDRESS>line 167：function getCaller
func getCaller() *runtime.Frame {

	// cache this package's fully-qualified name
	callerInitOnce.Do(func() {
		pcs := make([]uintptr, 2)
		_ = runtime.Callers(0, pcs)
		**logrusPackage = getPackageName(runtime.FuncForPC(pcs[1]).Name())**

		// now that we have the cache, we can skip a minimum count of known-logrus functions
		// XXX this is dubious, the number of frames may vary
		minimumCallerDepth = knownLogrusFrames
	})

The variable ’logrusPackage‘’'v value is wrong.
I'm just going to rewrite it as：	logrusPackage = "github.com/sirupsen/logrus" , It works.
In addition， it works In debug mode.

I see the problem here：
logrusPackage = getPackageName(runtime.FuncForPC(pcs[1]).Name())

Modified to：
logrusPackage = getPackageName(runtime.FuncForPC(pcs[0]).Name())

It works.
Go 1.14

// getCaller retrieves the name of the first non-logrus calling function
func getCaller() *runtime.Frame {

	// cache this package's fully-qualified name
	callerInitOnce.Do(func() {
		pcs := make([]uintptr, maximumCallerDepth)
		_ = runtime.Callers(0, pcs)
		// dynamic get the package name and the minimum caller depth will has a mostly compatibility of go version
		for i := 0; i < maximumCallerDepth; i++ {
			funcName := runtime.FuncForPC(pcs[i]).Name()
			if strings.Contains(funcName, "getCaller") && logrusPackage == "" {
				logrusPackage = getPackageName(funcName)
				continue
			}
			if logrusPackage != "" && logrusPackage != getPackageName(funcName) {
				// now that we have the cache, we can skip a minimum count of known-logrus functions
				// XXX this is dubious, the number of frames may vary
				minimumCallerDepth = i - 1
				break
			}
		}
	})

I tested @heramerom code and it works for me, with go version go1.14 linux/amd64.

do we have a release date for go1.14 already ?
I suggest we wait for its release before fixing things

Go 1.14 has been released! https://blog.golang.org/go1.14

I see we have the solution. Is someone working on a PR for this issue?

@panshul007 I see you are primed and eager to help :smile:. You are welcome to take a shot at it :1st_place_medal:  :+1:

@panshul007  @chibby0ne I did it! See #1108

Sorry to bother. But can we have a new tag to address this issue?

Done! https://github.com/sirupsen/logrus/releases/tag/v1.5.0
Thank you all!


Fix import for cloudflare_list_item

There was a small typo introduced in the migration of cloudflare_list_item to the plugin framework in #3026, that breaks imports. The expected id format is a 3 part string separated by slashes, but the import code performs a check at the beginning that checks that it is only 2 parts long (even though the code right after expects 3 parts). This 1-character change fixes this issue.
The current workaround is to pin to a provider version at 4.22 or below.

thanks!


fix(storybook): fix storybook UI styles

Summary
Storybook
Shortcut ticket: #361

One last thing 🙏 Should we use throttle over denounce in resize event? This way we can resize the page some times while the window is being resized, but not too many times to degrade performance!

One last thing 🙏 Should we use throttle over denounce in resize event? This way we can resize the page some times while the window is being resized, but not too many times to degrade performance!

Hmm, sounds like a good idea, I'll test it out 🤩🥳


Server connection string is constructed using %s:%d format string

This is done in two places:
https://github.com/atc0005/check-cert/blob/ede5ef7aac6aae386be75e8d1304087cac738c4f/internal/netutils/net.go#L90
https://github.com/atc0005/check-cert/blob/ede5ef7aac6aae386be75e8d1304087cac738c4f/internal/netutils/net.go#L215
This works as expected for IPv4 addresses, but not IPv6 addresses.
References:

https://github.com/golang/go/issues/28308
https://github.com/dominikh/go-tools/issues/358

Fixed per #278.


Python plot giving errors when reading data through pandas

Issue Report Checklist

[v ] Searched the issues page for similar reports
[ v] Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
[v ] Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
[ v] Could not reproduce inside jupyter qtconsole (if console-related)
[ ]v Tried basic troubleshooting (if a bug/error)

[v ] Restarted Spyder
[ v] Reset preferences with spyder --reset
[ v] Reinstalled the latest version of Anaconda
[ v] Tried the other applicable steps from the Troubleshooting Guide

[ v] Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description
I am trying to get plots for my homework. Iuse the following code:
import matplotlib.pyplot as mp
import pandas as pd
import seaborn as sns;
import pylab
from matplotlib import rc
mp.rc('text', usetex = True)
mp.rc('font', **{'family' : "serif"})
params = {'text.latex.preamble' : [r'\usepackage{siunitx}', r'\usepackage{sfmath}']}
mp.rcParams.update(params)
mp.style.use('bmh')
D=pd.read_csv('EXTRA.csv')
A=D.values
colors = ["red","purple","red","chocolate","black","red","#ff5733","chocolate","orange","#800000","#ff5733"]
title=["Plutonium","No Material","Bismuth","3 percent Enriched UO2 Spectrum","5 percent Enriched UO2 Spectrum","Bismuth Spectrum","Pu Spectrum","Spectrum With no Material","Natural UO2 Spectrum","3 percent Enriched UO2 Spectrum","5 percent Enriched UO2 Spectrum","Bismuth Spectrum","Pu Spectrum","Spectrum With no Material","Natural UO2 Spectrum","3 percent Enriched UO2 Spectrum","5 percent Enriched UO2 Spectrum","Bismuth Spectrum" ]
title1=["Neutron Spectrum Comparison at location DP2","v","Neutron Spectrum Comparison at DP3","Gamma Spectrum Comparison at location DP1","Gamma Spectrum Comparison at location DP1","Gamma Spectrum Comparison at location DP1","v","Neutron Spectrum Comparison at location DP3"]
for i in range(1,3):#len(A[0,:])):
mp.plot(A[:,0],A[:,i],linewidth=0.8,color=colors[i],label=title[i-1])
mp.xlabel(r'\textit{Energy (MeV)}')
mp.ylabel(r'\textit{Percentage of particles}')
mp.title(title1[i-1])
mp.grid(True,which="both",ls="-")
mp.legend(loc='best')
mp.savefig("Sanchit3zx.png",dpi=300,format='png')
mp.show()
What steps reproduce the problem?
I get following error:
What is the expected output? What do you see instead?
File "/home/anaconda3/lib/python3.6/site-packages/pandas/core/dtypes/common.py", line 853, in is_integer_dtype
tipo = _get_dtype_type(arr_or_dtype)
NameError: name '_get_dtype_type' is not defined
Paste Traceback/Error Below (if applicable)
File "/home/anaconda3/lib/python3.6/site-packages/pandas/core/dtypes/common.py", line 853, in is_integer_dtype
tipo = _get_dtype_type(arr_or_dtype)
NameError: name '_get_dtype_type' is not defined

Versions

Spyder version: 3
Python version: 3.6
Qt version:
PyQt version:
Operating System name/version: Centos

Dependencies

PASTE DEPENDENCIES HERE

File "/home/anaconda3/lib/python3.6/site-packages/pandas/core/dtypes/common.py", line 853, in is_integer_dtype
tipo = _get_dtype_type(arr_or_dtype)
NameError: name '_get_dtype_type' is not defined

As you can clearly see, this error is not in Spyder but in Pandas, so please open your issue here:
https://github.com/pandas-dev/pandas