How to handle context with Rasa Core?

As mentioned Serve.py, used to implement bot but integrate with UI got below issue
Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
i have installed flask cors and added cross-origin code in serve.py file but not resolve my issues. Please share me how to resolve this issues?

Thanks. Cross origin issue was fixed.

Can you please tell me how to handle context in rasa_core my custom chat bot? How to use tracker, slot in custom bot? please share any examples

Did you take a look at the examples that are part of the documentation, e.g. https://core.rasa.com/tutorial_supervised.html
You can set slots as part of your actions. The values will influence the dialogue predictions depending on their value and type. (more info about this can be found in the slots section of the docs). Let me know if you have any more specific questions, or things you didn't understand.

one more question? how to create custom polices? and how to set default responses for untrained question?

Hi TOm
i read this link
https://lastmile-rasa-dm.readthedocs-hosted.com/en/latest/plumbing.html
I took example for bot_custom.py
https://github.com/souvikg10/rasa_bot_example/blob/master/bot_custom.py
i need to create custom policy. i took example for class SimplePolicy(Policy):
def predict_action_probabilities(self, tracker, domain):
# type: (DialogueStateTracker, Domain) -> List[float]
responses = {
    "greet": 3,
}

if tracker.latest_action_name == ACTION_LISTEN_NAME:
    key = tracker.latest_message.intent["name"]
    action = responses[key] if key in responses else 2
    return utils.one_hot(action, domain.num_actions)
else:

the above code how to give in my response
that response only gave greet only

@Selvaganapathi06 where did you find those docs? it's a really ancient version. http://core.rasa.com/ has the up-to-date docs

how to create custom policy ? give any example?. especially need to give my responses?
one more question how set default response for untrained questions?

please see
https://github.com/RasaHQ/rasa_core/issues/137

thanks for the  default response. how to create custom policy ? give any example?. especially need to give my responses?

responses are defined in the domain. There is an up-to-date tutorial here: http://core.rasa.com/tutorial_basics.html

sorry Aalan, in my question is the below is my policy for example,
class ExamplePolicy(Policy):
def predict_action_probabilities(self, tracker, domain):
    responses = {
        "greet": 3,
    }

    if tracker.latest_action_name == ACTION_LISTEN_NAME:
        key = tracker.latest_message.intent["name"]
        action = responses[key] if key in responses else 2
        return utils.one_hot(action, domain.num_actions)
    else:
        return np.zeros(domain.num_actions)

the mentioned       responses = {
"greet": 3,
}
how to give in my responses

one more qustion, in my bot some of Q&A is yes or no based, but not working properly yes or no questions.

How to call above mentioned fallback function using keras policy .i have created a policy like restaurant policy example which is based on keras policy

i saw issue no Reg:137 based  on suggestion i added my code. but finally got this error.
File "serve1.py", line 164, in
train_dialogue()
File "serve1.py", line 108, in train_dialogue
validation_split=0.2
File "/usr/local/lib/python2.7/dist-packages/rasa_core/agent.py", line 152, in train
trainer.train(filename, remove_duplicates=remove_duplicates, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/rasa_core/policies/trainer.py", line 53, in train
self.ensemble.train(training_data, self.domain, self.featurizer, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/rasa_core/policies/ensemble.py", line 54, in train
Policy.prepare(featurizer,
AttributeError: 'MyPolicy' object has no attribute 'prepare'

I only found this github issue about using context with rasa core, but I still dont know how to handle it.
Lets contruct a simple usecase:

User asks for the temperature

The bot asks if the user is inside or outside (yes/no)

The bot reports the temperature

But how can I tell rasa that this yes/no question is no "normal" intent? I want to forbid something like this:

The user writes yes/no

(undefined?!?) The bot reportes the temperature

2nd usecase (just a different example, if the above was not clear):

the user asks for the weather

the bot asks in which town

the bot reports the weather in the selected town

Now if you just enter the town, without asking for the weather, it will still trigger the weather option:

user selects town New York
(undefined!?) Bot reports weather?
OR bot safes town, but waites for a weather request!? -> what if a too long time was passed and the town slot information is way too old?

Any hints on how to handle such a flow? I also want to clear any used slot, because I do not want to keep any yes/no decision that was answered 10 days ago, and with a new request the bot still assumes the same yes/no.
To me it looks like the examples only cover very simple question -> response use cases, but this seem incomplete or unsupported to me.

Does this help? http://rasa.com/docs/core/slotfilling/

Okay I tried to understand the linked doc, but I am still not sure how to handle my scenario with rasa.
My usecase:
I want to create a partybot that can inform users about parties, register them for a party and me as administrator/host can create new party events.
First I want to create a new party event. I have to provide party (name), time (date and time), limit (guest limit) and newsletter (an initial newsletter sent to all registered members).
The problem I am facing is, that the bot recognizes my intent create_party and then executes the FormAction. It asks for the newsletter first, which is okay so far.
What I expect the bot to do is to take the user input and simply but it into the slot. But it will rather listen for all available intents:
erstelle eine neue party
/home/arch/.local/lib/python3.6/site-packages/sklearn/preprocessing/label.py:151: DeprecationWarning: The truth value of an empty array is ambiguous. Returning False, but in future this will result in an error. Use `array.size > 0` to check that an array is not empty.
  if diff:
------
Chat history:

	bot did:	None

	bot did:	action_listen

	user said:	erstelle eine neue party

		 whose intent is:	create_party

we currently have slots: datetime: None, limit: None, newsletter: None, party: None, requested_slot: None

------
The bot wants to [utter_greet] due to the intent. Is this correct?

	1.	Yes
	2.	No, intent is right but the action is wrong
	3.	The intent is wrong
	0.	Export current conversations as stories and quit
2
------
Chat history:

	bot did:	None

	bot did:	action_listen

	user said:	erstelle eine neue party

		 whose intent is:	create_party

we currently have slots: datetime: None, limit: None, newsletter: None, party: None, requested_slot: None

------
what is the next action for the bot?

         0                           action_listen    0.19
         1                          action_restart    0.06
         2                 action_default_fallback    0.01
         3                             utter_greet    0.78
         4                               utter_bye    0.47
         5              utter_register_party_guest    0.11
         6                         utter_ask_party    0.35
         7             action_register_party_guest    0.01
         8                     action_create_party    0.01
8
thanks! The bot will now [action_create_party]
 -----------
Processed trackers: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 739.48it/s, # actions=2]
[...]
Bitte gebe den Party Newsletter ein.
------
Chat history:

	bot did:	None

	bot did:	action_listen

	user did:	create_party

	bot did:	action_create_party

we currently have slots: datetime: None, limit: None, newsletter: None, party: None, requested_slot: newsletter

------
The bot wants to [action_listen]. Is this correct?

	1.	Yes.
	2.	No, the action is wrong.
	0.	Export current conversations as stories and quit
1
Next user input:
am freitag machen wir wieder eine coole party
/home/arch/.local/lib/python3.6/site-packages/sklearn/preprocessing/label.py:151: DeprecationWarning: The truth value of an empty array is ambiguous. Returning False, but in future this will result in an error. Use `array.size > 0` to check that an array is not empty.
  if diff:
------
Chat history:

	bot did:	action_listen

	user did:	create_party

	bot did:	action_create_party

	bot did:	action_listen

	user said:	am freitag machen wir wieder eine coole party

		 whose intent is:	register_party_guest

	with time:	2018-08-03T00:00:00.000Z

we currently have slots: datetime: None, limit: None, newsletter: None, party: None, requested_slot: newsletter

------
The bot wants to [utter_greet] due to the intent. Is this correct?

	1.	Yes
	2.	No, intent is right but the action is wrong
	3.	The intent is wrong
	0.	Export current conversations as stories and quit

So how can I solve this? Should I rather use input() calls in my python code to extract user input directly from the command line (I guess this will not work, if you want to move the bot to telegram/slack etc). But how can I make the bot to NOT interpret the data it is asking for?
from rasa_core.actions.forms import (
    BooleanFormField,
    EntityFormField,
    FormAction,
    FreeTextFormField
)

class ActionCreateParty(FormAction):

    RANDOMIZE = False

    @staticmethod
    def required_fields():
        return [
            EntityFormField("newsletter", "newsletter"),
            EntityFormField("time", "datetime"),
            EntityFormField("number", "limit"),
            EntityFormField("party", "party"),
        ]

    def name(self):
        return 'action_create_party'

    def submit(self, dispatcher, tracker, domain):
        response = """Erstelle Party {} am {} für {} Personen. Der Newsletter heisst: {}""".format(
            tracker.get_slot("party"),
            tracker.get_slot("datetime"),
            tracker.get_slot("limit"),
            tracker.get_slot("newsletter")
        )

        dispatcher.utter_message(response)
        return [SlotSet("search_results", results)]

@NicoHood what do your stories look like? It looks like NLU is picking up the correct intent but the predicted action is wrong, which would suggest the problem is in your Rasa Core model. For help with this, I would recommend posting in the community forum

I'll close this for now then, since it's more of a community forum post :)


Only UpdatePrimitives and Draw tracks on screen

Optimization easy to make now that we are not setting
positions neither sizes while drawing anymore.
After calculation all the positions in WorldSpace we only
UpdatePrimitives and Draw to the tracks which have some part visible in
screen.
As a result, in captures where we have a lot of Tracks with timers
in several depths, we are much more faster at Updating Primitives. For
example, in the capture generated by Pierric using OrbitTest, with the
initial zoom I'm seeing UpdatePrimitives being 5/6 times faster, but
maybe could vary based on the resolution.
Anyway, in addition with https://github.com/google/orbit/pull/2780,
which is an optimization only for thread tracks, we are aiming to be
only bounded by the number of pixels where we draw timers multiplied by
a log of the number of elements.
Test: Loaded a capture, start a new one.

Thanks for this Pablo! Oh, maybe add
IMGUI_VAR_TO_TEXT(time_graph_->GetTrackManager()->GetTracksOnScreen().size());

To CaptureWindow::RenderImGuiDebugUI() ?

Done! Thanks for the suggestion :)


Release 0.9.2

/test-all

/test-whole-conformance

/test-windows-networkpolicy

I thought about including the apigroup change into 0.9.2, but later feel we might not want to make such change in a patch release.


ERROR:input_method_base.cc

`/catkin_ws$ roslaunch flexbe_app flexbe_full.launch
... logging to /home/yubao/.ros/log/fb537152-fdd1-11e9-a8ce-309c23e1152f/roslaunch-yubao-Z370M-S01-6367.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://<IP_ADDRESS>:40533/
SUMMARY
PARAMETERS

/behavior/log_enabled: False
/behavior/log_folder: ~/.flexbe_logs
/rosdistro: kinetic
/rosversion: 1.12.14

NODES
/
behavior (flexbe_onboard/start_behavior)
behavior_launcher (flexbe_widget/be_launcher)
behavior_mirror (flexbe_mirror/behavior_mirror_sm)
flexbe_app (flexbe_app/run_app)
auto-starting new master
process[master]: started with pid [6378]
ROS_MASTER_URI=http://localhost:11311
setting /run_id to fb537152-fdd1-11e9-a8ce-309c23e1152f
process[rosout-1]: started with pid [6395]
started core service [/rosout]
process[behavior_mirror-2]: started with pid [6405]
process[flexbe_app-3]: started with pid [6416]
process[behavior_launcher-4]: started with pid [6418]
process[behavior-5]: started with pid [6419]
[INFO] [1572741395.235183]: 1 behaviors available, ready for start request.
[INFO] [1572741395.745634]: --- Behavior Engine ready! ---
[INFO] [1572741395.746462]: No onboard behavior is active.
[INFO] [1572741395.747591]: --- Behavior Mirror ready! ---
[6420:6420:1103/093643.174381:ERROR:input_method_base.cc(146)] Not implemented reached in virtual ui::InputMethodKeyboardController *ui::InputMethodBase::GetInputMethodKeyboardController()Using InputMethodKeyboardControllerStub
`
When launch
roslaunch flexbe_app flexbe_full.launch
No package list here:

No State listed:

I cloned these to my catkin_ws

flexbe_app
flexbe_behavior_engine
generic_flexbe_states

And create a demo using:
rosrun flexbe_widget create_repo tutorial
And install ros packages by:
$ sudo apt-get install ros-kinetic-flexbe-*
roscd flexbe_states is no problem.
Here is my system info:
$ uname  -a Linux yubao-Z370M-S01 4.15.0-66-generic #75~16.04.1-Ubuntu SMP Tue Oct 1 14:01:08 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Thanks

I am not sure about the "ERROR:input_method_base.cc", I think this comes from nwjs internally and I have seen this messages like this independently from no states being listed.
In fact, I think your problem could be more related to #42, but I have no idea yet what could be the reason since I did not yet manage to reproduce the error.

closing as stale.


fatal: could not read Username for 'https://github.com': No such device or address

I get following error when I run this action in job inside docker on self-hosted runner (github repo is private):
Run<EMAIL_ADDRESS>Run set -eu
git version
  git version 2.43.0
git config --global --add safe.directory /__w/test-github-runner/test-github-runner
git init
git remote add origin https://github.com/artslob/test-github-runner
git config --local gc.auto 0
git fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +305159c8fca5513d64cae6962980080b181968ba:refs/remotes/origin/tmp
  fatal: could not read Username for 'https://github.com/': No such device or address
  fatal: could not read Username for 'https://github.com/': No such device or address
  fatal: could not read Username for 'https://github.com/': No such device or address
  fatal: could not read Username for 'https://github.com/': No such device or address
  fatal: could not read Username for 'https://github.com/': No such device or address
  fatal: could not read Username for 'https://github.com/': No such device or address
  fatal: could not read Username for 'https://github.com/': No such device or address
  fatal: could not read Username for 'https://github.com/': No such device or address
  fatal: could not read Username for 'https://github.com/': No such device or address
  fatal: could not read Username for 'https://github.com/': No such device or address
  fatal: could not read Username for 'https://github.com/': No such device or address
  Error: Process completed with exit code 128.

Set up job log looks like this:
Current runner version: '2.321.0'
Runner name: 'test-github-runner'
Runner group name: 'Default'
Machine name: 'alfa'
GITHUB_TOKEN Permissions
  Contents: read
  Metadata: read
  Packages: read
Secret source: Actions
Prepare workflow directory
Prepare all required actions
Getting action download info
Download action repository<EMAIL_ADDRESS>(SHA:b13d20b7cda4e2f325ef19895128f7ff735c0b3d)
Download action repository 'dtolnay/rust-toolchain@stable' (SHA:1ff72ee08e3cb84d84adba594e0a297990fc1ed3)
Complete job name: Check

Action looks like this:
jobs:
  check:
    name: Check
    runs-on: self-hosted
    container: ubuntu:latest
    steps:
      - name: Install deps
        run: apt-get update && apt-get install -y curl unzip build-essential git
      - uses<EMAIL_ADDRESS>

Duplicate of https://github.com/taiki-e/checkout-action/issues/1.


Updated thrift gem dependency to ">= 0.7.0, < 0.9.0" to allow for thrift-0.8.x compatibility.

Hey, thrift gem 0.8.0 is released, but can't be used with thrift_client 0.7.1 because of the way the gem dependency is specified right now.
Thrift 0.8.0 is basically a bugfix-only release as far as Ruby libraries are concerned, client code that worked with 0.7.0 is fully compatible with 0.8.0. So, this pull request updates the gem dependency version to allow >= 0.7.0 but < 0.9.0. If 0.9.0 ends up being another fully-compatible release then we can increase the upper bound to 0.10.0 etc.

Hah, looks like there's already an open pull request for this ...

Can you update this so it can be cleanly merged?


Change dynamics to classes

Hey,
I rewrote some parts of this library to get rid of those dynamics.

Merged the static typed version to remove dynamics


chore: enhancement better linter

Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes # (issue)
Type of change
Please delete options that are not relevant.

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

Developer Configuration

OS:
Python version:

Checklist

[ ] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings or errors
[ ] Any dependent changes have been merged and published in downstream modules

good to go


ECS AsteroidRock and add a doafter to mining

About the PR

Splits AsteroidRock into RandomAppearance and Mineable

RandomAppearance takes an appearance data key and list of possible values then picks one
Mineable handles pickaxe interactusing

Pickaxe specifies its own damage, rather than MeleeWeapon
Asteroid rocks no longer have interaction outlines or metallic resistances
Mining now has a doafter

You can only mine X number of entities at once, which is specified on the pickaxe component
Delay is determined by mineable factor * pickaxe factor

This opens up the way for better pickaxes (better damage, mining time, # of entities) for salvage to find, research to create, etc. Will open up an issue for that when this is merged
Changelog

:cl:

tweak: Mining entities with pickaxes now has a delay.

I will happily upstream and finish ore stuff when this is merged.


ApplicationRevision.spec.referredObjects  array should have exactly one sub-item

Describe the bug
get error when apply application
SchemaError(dev.oam.core.v1beta1.ApplicationRevision.spec.referredObjects): array should have exactly one sub-item）

To Reproduce
yaml
apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
  name: cluster-app
spec:
  components:
    - name: simple-test
      type: webservice
      properties:
        image: nginx

I uninstall the kubevela v1.1.11 and reinstall kubevela v1.3.4
I have execute command to clear CRD before reinstall
kubectl get crd |grep oam | awk '{print $1}' | xargs kubectl delete crd

Expected behavior
Screenshots

KubeVela Version
CLI Version: v1.3.4
Core Version: 1.3.4
GitRevision: git-d748096
GolangVersion: go1.17.9
Cluster information
kubernet v1.19.2
Additional context

/cc @Somefive

This could be a potential problem for k8s 1.19. Try to run the following command and see if it can help.
kubectl patch crd applicationrevisions.core.oam.dev --type json -p='[{"op": "remove", "path": "/spec/versions/1/schema/openAPIV3Schema/properties/spec/properties/referredObjects/x-kubernetes-preserve-unknown-fields"}]'

Seems should be fixed after k8s v1.19.5. https://github.com/kubernetes/kubernetes/pull/96562

This could be a potential problem for k8s 1.19. Try to run the following command and see if it can help.
kubectl patch crd applicationrevisions.core.oam.dev --type json -p='[{"op": "remove", "path": "/spec/versions/1/schema/openAPIV3Schema/properties/spec/properties/referredObjects/x-kubernetes-preserve-unknown-fields"}]'

thanks, it work


A minor change to make quizeo play responsive

The play just needs a minor change to the CSS file to make it responsive.

Yes please fix it @vasantisuthar


pm2 don't work in nuxt application

Version
v2.12.1
windows 10
node v12.16.0
pm2 v4.4.0
Reproduction link
http://example.com
Steps to reproduce
pm2 start npm -- start
What is expected ?
running application
What is actually happening?
[PM2] Starting C:\PROGRAM FILES\NODEJS\NPM.CMD in fork_mode (1 instance)
[PM2] Done.
[PM2][ERROR] Script not found: D:\site.loc\client\start

This bug report is available on Nuxt community (#c10636)

Actually same issue I just had

pm2 work with nuxtjs, from my project I add this in package.json script,
    "ypm2": "pm2 start --name 'web' 'yarn start' ",

I solved it like this
npm i nuxt-start
ecosystem.config.js
module.exports =
{
    apps:
    [
        {
            name: "client",
            script: "node_modules/nuxt-start/bin/nuxt-start.js",
            cwd: "/home/site/client",
            args: "start -p 80 -H <IP_ADDRESS>"
        }
    ]
}

pm2 start ecosystem.config.js

I solved it like this:
mv ecosystem.config.js ecosystem.config.cjs
pm2 ecosystem.config.cjs

DONE.


fix: Allow search in ChromaDocumentStore without metadata

Related Issues

fixes #462

Proposed Changes:
Update _query_result_to_documents to also run without metadata
How did you test it?
Added a unit test
Notes for the reviewer
NA
Checklist

I have read the contributors guidelines and the code of conduct
I have updated the related issue with new insights and changes
I added unit tests and updated the docstrings
I've used one of the conventional commit types for my PR title: fix:, feat:, build:, chore:, ci:, docs:, style:, refactor:, perf:, test:.

@silvanocerza  Can you take a look at the test that's failing. I am wondering whats wrong there.


Add UIA support for menus

This encompasses both menu bars and popup/context menus. These implement keyboard focus and selection much like list boxes. But menus have their own quirky events, and we'll need to make sure our implementation of these events works correctly with all of the Windows screen readers.

I forgot a couple more patterns we'll need for these controls:
Menu items will need to conditionally implement the expand/collapse pattern, since some menu items are submenus.
Menu items will also need to conditionally implement the toggle pattern, since some can be checked like check boxes.


Bacon example does not run as suggested

I copied the code from an example describing how groupBy works, as I was suspicious that the operation on the stream in limitF actually did nothing.
In the limitF call, is a call to takeUntil, but the return value is never used, and no return value is passed back from the function. If I understand Bacon correctly, then the original stream is unchanged by the filter calls, and if the result is not used, so I'd expect there to be no side-effects. I was trying to run the example to investigate what was wrong with my mental model.
However, when I run the example against the current git distribution, it actually fails with a different error as follows.
require("./groupby.js");
{}
>
/home/user/Documents/code/imagination/git/bacon.js/dist/Bacon.js:1246
        throw e;
              ^
TypeError: Cannot call method 'withHandler' of undefined
    at /home/cefn/Documents/code/imagination/git/bacon.js/dist/Bacon.js:2862:33
    at Next.valueF (/home/cefn/Documents/code/imagination/git/bacon.js/dist/Bacon.js:882:18)
    at Next.value (/home/cefn/Documents/code/imagination/git/bacon.js/dist/Bacon.js:871:35)
    at spawn (/home/cefn/Documents/code/imagination/git/bacon.js/dist/Bacon.js:2223:40)
    at Object.sink (/home/cefn/Documents/code/imagination/git/bacon.js/dist/Bacon.js:2274:22)
    at Dispatcher.pushToSubscriptions (/home/cefn/Documents/code/imagination/git/bacon.js/dist/Bacon.js:1236:23)
    at Dispatcher.pushIt (/home/cefn/Documents/code/imagination/git/bacon.js/dist/Bacon.js:1259:14)
    at Object.Bacon.UpdateBarrier.inTransaction (/home/cefn/Documents/code/imagination/git/bacon.js/dist/Bacon.js:350:18)
    at Dispatcher.push (/home/cefn/Documents/code/imagination/git/bacon.js/dist/Bacon.js:1227:28)
    at Dispatcher._handleEvent (/home/cefn/Documents/code/imagination/git/bacon.js/dist/Bacon.js:2824:23)

The original code (with the modification of the require call) is as follows...
var Bacon = require("baconjs");

var events = [
  {id: 1, type: "add", val: 3 },
  {id: 2, type: "add", val: -1 },
  {id: 1, type: "add", val: 2 },
  {id: 2, type: "cancel"},
  {id: 3, type: "add", val: 2 },
  {id: 3, type: "cancel"},
  {id: 1, type: "add", val: 1 },
  {id: 1, type: "add", val: 2 },
  {id: 1, type: "cancel"}
]

function keyF(event) {
  return event.id
}

function limitF(groupedStream, groupStartingEvent) {
  var cancel = groupedStream.filter(function(x) { return x.type === "cancel"}).take(1)
  var adds = groupedStream.filter(function(x) { return x.type === "add" })
  adds.takeUntil(cancel).map(".val")
}

Bacon.sequentially(2, events)
  .groupBy(keyF, limitF)
  .flatMap(function(groupedStream) {
    return groupedStream.fold(0, function(acc, x) { return acc + x })
  })
  .onValue(function(sum) {
    console.log(sum)
    // returns [-1, 2, 8] in an order
  })

...and it can be found under the heading "Calculator for grouped consecutive values until group is cancelled" at https://github.com/baconjs/bacon.js/
Is there something I'm doing wrong which means this example doesn't work.

There's a return missing from the limitF function above.

I fixed the example in the readme.


GuiTextBox(): Do not get previous code point when at start of string

Prevents going out of bounds before the beginning of the string

@segcore Thanks! Nice improvement!


Exiting typo fix

Fixed a typo, plus lots of white-space fixes.

are the
ConnectionNotifyEvent*   smConnectionNotify = NULL;
ConnectionAcceptedEvent* smConnectionAccept = NULL;
ConnectionReceiveEvent*  smConnectionReceive = NULL;
PacketReceiveEvent*      smPacketReceive = NULL;
Declarations supposed to have the Net namespace on them, then? I remember we had to do a quick rollback before. I'm not getting any compilation errors or anything, just wanted to check if we were sticking with them being inside the Net namespace, or keeping them global.
Other than that, this PR's looking good.

They're static members of the Net struct declaration - hence the naming convention of sm rather than g.

Ok, so the way it is in this PR should be considered correct then. Just wanted to be sure because like said, we'd had to run that quick rollback from before.

Yeah, this PR should be the correct version.
~Thomas
On Mon, Apr 3, 2017 at 11:02 PM, Areloch<EMAIL_ADDRESS>wrote:

Ok, so the way it is in this PR should be considered correct then. Just
wanted to be sure because like said, we'd had to run that quick rollback
from before.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/GarageGames/Torque3D/pull/1963#issuecomment-291380916,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACk_KfdloK1cUbN_y-7i3NfKlbc_3P3Iks5rsbK6gaJpZM4MaCU0
.


Playground with strictNullChecks enabled
Playground with strictNullChecks disabled


Loading command module errors

I'm facing this issue now. Kindly refer to the following lines....

➜  ~ az login
Error loading command module 'redis'
Error loading command module 'resource'
To sign in, use a web browser to open the page https://aka.ms/devicelogin and enter the code XXXXXXXX to authenticate.

Thanks,

I've tried to reinstall Azure cli then. Azure cli works fine now.

but I still want to know what is the exact problem, should we reinstall when azure-cli 2.0 released?

@sasukeh If it happens again, provide the output from az --debug and we can investigate.  Thanks.

@derekbekoe Sure. Thanks

Error loading command module 'ml'
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/azure/cli/core/init.py", line 129, in _update_command_table_from_modules
module_command_table = _load_module_command_loader(self, args, mod)
File "/usr/local/lib/python2.7/dist-packages/azure/cli/core/commands/init.py", line 549, in _load_module_command_loader
return _load_command_loader(loader, args, mod, 'azure.cli.command_modules.')
File "/usr/local/lib/python2.7/dist-packages/azure/cli/core/commands/init.py", line 523, in _load_command_loader
module = import_module(prefix + name)
File "/usr/lib/python2.7/importlib/init.py", line 37, in import_module
import(name)
File "/usr/local/lib/python2.7/dist-packages/azure/cli/command_modules/ml/init.py", line 8, in
import azure.cli.command_modules.ml._help #pylint: disable=unused-import
File "/usr/local/lib/python2.7/dist-packages/azure/cli/command_modules/ml/_help.py", line 6, in
from azure.cli.core.help_files import helps
ImportError: No module named help_files


Docs

- What I did
- How I did it
- How to verify it
- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

Please sign your commits following these rules:
https://github.com/docker/docker/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:
$ git clone -b "docs" git@github.com:docker/docker.git somewhere
$ cd somewhere
$ git rebase -i HEAD~842354413144
editor opens
change each 'pick' to 'edit'
save the file and quit
$ git commit --amend -s --no-edit
$ git rebase --continue # and repeat the amend for each commit
$ git push -f

Amending updates the existing PR. You DO NOT need to open a new one.

Seems opened by mistake.
Closing this PR.


Missing permission title

I'm using a forum in a German. In the admin CP, the poll permission under user permissions is missing. The whole checkbox-table makes no sense because the poll's permission is skipped.

Yup, fixed on v0.2.20 :

You can close this issue @tom-rade
Thanks @julianlam


docker: switched to rabbitmq base image, added message delay plugin

closes https://github.com/reanahub/reana-server/issues/118
Depends on: https://github.com/reanahub/reana-message-broker/pull/36

Switched to official RabbitMQ base image: rabbitmq:3.8.9-management
Install and enable rabbitmq_delayed_message_exchange (inspiration from this Dockerfile)
Disable rabbitmq_management on production mode (enabled by default)

Testing:
reana-dev docker-build -c reana-message-broker -b DEBUG=1 --no-cache
reana-dev kind-load-docker-image -c reana-message-broker
redeploy the cluster
kubectl exec -it reana-message-broker-5874b75cdd-tnqmv  rabbitmq-plugins list <-- to see the list of enabled plugins

Codecov Report

Merging #37 (959d927) into master (5704409) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##            master       #37   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            2         2
  Lines            7         7
=========================================
  Hits             7         7


datapath: Return early if SVC is not found

In the case of k8s external-ip svc being enabled, stop executing the nodeport_lb{4,6} helper functions if a service for the given skb is not found.
The functions are used to load-balance requests to service endpoints, so it is fine to return early if a svc is not found.

This change is

test-me-please

Coverage decreased (-0.02%) to 45.843% when pulling baf9810f822dbee2bf548fa5771f7c0d630eb234 on pr/brb/fix-external-ip-dp into 6b784d8a31ab0cf5c25a57c45e5c28739408add7 on master.

test-me-please

test-me-please

The return makes the helper functions to bypass NodePort svc traffic. Closing for now.


socket.io was missing

package was not in the dependencies list.

Hmm? https://github.com/meanjs/mean/blob/master/package.json#L65

@flik ?

@lirantal
When you install with npm, You will face an error because of socket.io It is not included in dependencies list and MEAN is using it.

@flik which version you're running?
At least it's here at the latest tagged version: https://github.com/meanjs/mean/blob/e14088039748ba515e7de3f5a44ec20965337537/package.json#L63
...and at master as I pointed out earlier.

0.11.1
and I am getting these messages.
/home/ashfaq/myA# gulp
Error: Cannot find module 'socket.io'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/home/ashfaq/myA/node_modules/karma/lib/server.js:1:78)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/home/ashfaq/myA/node_modules/karma/lib/index.js:4:14)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/home/ashfaq/myA/gulp/test.js:6:17)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at requireDir (/home/ashfaq/myA/node_modules/require-dir/index.js:116:33)
at Object. (/home/ashfaq/myA/gulpfile.js:12:23)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module.load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Liftoff.handleArguments (/usr/local/lib/node_modules/gulp/bin/gulp.js:116:3                )
at Liftoff. (/usr/local/lib/node_modules/gulp/node_modules/liftoff/                index.js:193:16)
at module.exports (/usr/local/lib/node_modules/gulp/node_modules/liftoff/node                modules/flagged-respawn/index.js:17:3)
at Liftoff. (/usr/local/lib/node_modules/gulp/node_modules/liftoff/                index.js:185:9)
at /usr/local/lib/node_modules/gulp/node_modules/liftoff/index.js:159:9
at /usr/local/lib/node_modules/gulp/node_modules/v8flags/index.js:108:14
at /usr/local/lib/node_modules/gulp/node_modules/v8flags/index.js:36:12
at /usr/local/lib/node_modules/gulp/node_modules/v8flags/index.js:47:7
at process._tickCallback (node.js:415:13)
at Function.Module.runMain (module.js:499:11)
at startup (node.js:119:16)
at node.js:902:3

@flik
What is 0.11.1?
I don't even remember such version :)

root@ubuntu-512mb:~# mean -v
0.11.1
It is showing mean version

@flik I don't know what project you are you using but MEAN.JS never had an 0.11.1 version.
Can you paste here your entire package.json file maybe?

We don't have a mean command line interface. So running mean -v is not giving your the version of our project. Nor is using mean from the command line related to this project.

sounds like mean.io


New App: Hayward Omnilogic Pool Temperature

@matslina There is no oauth2 service provided. There is an XML endpoint to grab a token as you can see in the code.
I guess you don't have a way for a dynamic config option to run some custom code to take some user entered parameters and then save the result as a token?

@kcharwood There is a (currently undocumented, possibly unsupported for community apps) dynamic configuration field that generates a new schema field by calling a handler whenever some other schema variable (A) is changed by user. Unfortunately, A is also persisted as a configuration value, so since A needs to hold username&password in this use case, we're back at the original problem...

I have a few other ideas for apps (SleepNumber IQ and Sutro), but both would need username/password i think...

I have a few other ideas for apps (SleepNumber IQ and Sutro), but both would need username/password i think...

Might be a kludge, but you can have the user manually enter (copy/paste) the token into a schema field.

I took @skola28's idea and changed out to use a token generated outside the system. I updated the README to include instructions on how to generate a token.


Support custom maintenance scripts

How about a new callback: insteadOfClean.sql?
I have a multi-product, co-mingled schema, and clean is a bit... heavy handed.
With the new callbacks, I can replace all of my supporting scripts except my reset-database (single product) script.
Any interest in a: insteadOfClean.sql?

What you are really asking for is the ability run a custom script. Let's leave this open and see if this gathers support.

This would be very useful. Relates to #1086


Error with loading debug information

I have created a simple PoC composed of two .NET Standard 2.0 libraries:

ClassLibrary1 (with a reference to ClassLibrary2)
ClassLibrary2

When I launch (from command-line) ILRepack, it's not possible read debug info; this is verbose log:
λ ILRepack.exe ClassLibrary1.dll ClassLibrary2.dll /out:Test.dll /verbose
INFO: IL Repack - Version 2.0.18
VERBOSE: Runtime: ILRepack, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null
INFO: ------------- IL Repack Arguments -------------
/out:Test.dll  ClassLibrary1.dll ClassLibrary2.dll
INFO: Adding assembly for merge: ClassLibrary1.dll
INFO: Failed to load debug information for ClassLibrary1.dll
INFO: Adding assembly for merge: ClassLibrary2.dll
INFO: Failed to load debug information for ClassLibrary2.dll
INFO: Processing references
INFO: Processing types
VERBOSE: - Importing <Module> from ClassLibrary1.dll
VERBOSE: - Importing <Module>
INFO: Merging <Module>
VERBOSE: - Importing ClassLibrary1.Class1 from ClassLibrary1.dll
VERBOSE: - Importing ClassLibrary1.Class1
VERBOSE: - Importing <Module> from ClassLibrary2.dll
VERBOSE: - Importing <Module>
INFO: Merging <Module>
VERBOSE: - Importing ClassLibrary2.Class2 from ClassLibrary2.dll
VERBOSE: - Importing ClassLibrary2.Class2
INFO: Processing exported types
INFO: Processing resources
INFO: Fixing references
VERBOSE: - Fixing references for type <Module>
VERBOSE: - Fixing references for type ClassLibrary1.Class1
VERBOSE: - Fixing references for type ClassLibrary2.Class2
VERBOSE: Processing XAML resource paths ...
INFO: Writing output assembly to disk
INFO: Finished in 00:00:01.3123098

Files are compiled with VS 2019 Version 16.7.3
It is supported this scenario?
Thanks

The latest version should support debug information


Large format data

@DanielJMaher @FBRTMaka
New download page for large format data. Please review, pull down and test. Goes along with this services PR https://github.com/asascience-open/ooi-ui-services/pull/486

:+1:


[ros2] memory not cleaned up (memory leak?)

We've encountered that there is a junk of memory per loaded plugin not cleaned up.
When running a minimal example with valgrind, we see the following output:
==11631== 152 bytes in 1 blocks are indirectly lost in loss record 6 of 8
==11631== at 0x4C2E0EF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==11631== by 0x528F670: class_loader::impl::AbstractMetaObjectBase::AbstractMetaObjectBase(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&) (meta_object.cpp:56)
==11631== by 0x791766A: ???
==11631== by 0x79172FE: ???
==11631== by 0x791710A: ???
==11631== by 0x7916E49: ???
==11631== by 0x7916F33: ???
==11631== by 0x7916F49: ???
==11631== by 0x40106B9: call_init.part.0 (dl-init.c:72)
==11631== by 0x40107CA: call_init (dl-init.c:30)
==11631== by 0x40107CA: _dl_init (dl-init.c:120)
==11631== by 0x40158E1: dl_open_worker (dl-open.c:575)
==11631== by 0x4010563: _dl_catch_error (dl-error.c:187)
==11631==
==11631== 267 (16 direct, 251 indirect) bytes in 1 blocks are definitely lost in loss record 7 of 8
==11631== at 0x4C2E0EF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==11631== by 0x79170F4: ???
==11631== by 0x7916E49: ???
==11631== by 0x7916F33: ???
==11631== by 0x7916F49: ???
==11631== by 0x40106B9: call_init.part.0 (dl-init.c:72)
==11631== by 0x40107CA: call_init (dl-init.c:30)
==11631== by 0x40107CA: _dl_init (dl-init.c:120)
==11631== by 0x40158E1: dl_open_worker (dl-open.c:575)
==11631== by 0x4010563: _dl_catch_error (dl-error.c:187)
==11631== by 0x4014DA8: _dl_open (dl-open.c:660)
==11631== by 0x6C78F08: dlopen_doit (dlopen.c:66)
==11631== by 0x4010563: _dl_catch_error (dl-error.c:187)

The original issue to this: https://github.com/ros2/rosbag2/issues/23
fyi @Martin-Idel-SI

@Martin-Idel-SI @Karsten1987 Is this only happening on shutdown ?
Or can you reproduce N * bytes leaked by loading and unloading the plugin N times ?

@mikaelarguedas No, it seems to only happen at shutdown.
Taking the example, I just duplicated the lines loading the plugin (here: https://github.com/bsinno/rosbag2/blob/8f1e7137e0e3dee13e9dc6b38213bfc3b62add3b/minimaldll/main.cpp#L26-30) and I still only see the one leak with the same amount of leaked memory

Thanks @Martin-Idel-SI for confirming
I suspect this is an optimization from Poco then, that knows the process is shutting down and there is no need to cleanup everything. I don't think there is much we can do on our side if that's the case

what's happening if you put this line in a loop (let's say 10x) and load and unload the plugin everytime?

@Martin-Idel-SI can you check if https://github.com/ros/class_loader/pull/103 fixes the issue ?

valgrind still reports lost bytes with the minimal example.
I believe it's less than before though.

Thanks @Karsten1987 for trying it!
Can you post the report when you get a chance to compare to the one in the issue description?

Sorry, should have mentioned it!
 ➭ valgrind --track-origins=yes --leak-check=full build/test_library/minimaldll
==24973== Memcheck, a memory error detector
==24973== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==24973== Using Valgrind-3.13.0.SVN and LibVEX; rerun with -h for copyright info
==24973== Command: build/test_library/minimaldll
==24973==
==24973== Syscall param msg->desc.port.name points to uninitialised byte(s)
==24973==    at 0x1007D334A: mach_msg_trap (in /usr/lib/system/libsystem_kernel.dylib)
==24973==    by 0x1007D2796: mach_msg (in /usr/lib/system/libsystem_kernel.dylib)
==24973==    by 0x1007CC485: task_set_special_port (in /usr/lib/system/libsystem_kernel.dylib)
==24973==    by 0x10096810E: _os_trace_create_debug_control_port (in /usr/lib/system/libsystem_trace.dylib)
==24973==    by 0x100968458: _libtrace_init (in /usr/lib/system/libsystem_trace.dylib)
==24973==    by 0x1004989DF: libSystem_initializer (in /usr/lib/libSystem.B.dylib)
==24973==    by 0x1000EDA1A: ImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==24973==    by 0x1000EDC1D: ImageLoaderMachO::doInitialization(ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==24973==    by 0x1000E94A9: ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, char const*, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) (in /usr/lib/dyld)
==24973==    by 0x1000E9440: ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, char const*, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) (in /usr/lib/dyld)
==24973==    by 0x1000E8523: ImageLoader::processInitializers(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) (in /usr/lib/dyld)
==24973==    by 0x1000E85B8: ImageLoader::runInitializers(ImageLoader::LinkContext const&, ImageLoader::InitializerTimingList&) (in /usr/lib/dyld)
==24973==  Address 0x10496021c is on thread 1's stack
==24973==  in frame #2, created by task_set_special_port (???:)
==24973==  Uninitialised value was created by a stack allocation
==24973==    at 0x1009680A6: _os_trace_create_debug_control_port (in /usr/lib/system/libsystem_trace.dylib)
==24973==
--24973-- UNKNOWN mach_msg unhandled MACH_SEND_TRAILER option
--24973-- UNKNOWN mach_msg unhandled MACH_SEND_TRAILER option (repeated 2 times)
--24973-- UNKNOWN mach_msg unhandled MACH_SEND_TRAILER option (repeated 4 times)
Random number: 4
==24973==
==24973== HEAP SUMMARY:
==24973==     in use at exit: 40,759 bytes in 191 blocks
==24973==   total heap usage: 1,438 allocs, 1,247 frees, 223,266 bytes allocated
==24973==
==24973== 72 bytes in 3 blocks are possibly lost in loss record 36 of 69
==24973==    at 0x10016C232: calloc (vg_replace_malloc.c:714)
==24973==    by 0x1009DC846: map_images_nolock (in /usr/lib/libobjc.A.dylib)
==24973==    by 0x1009EFFE8: objc_object::sidetable_retainCount() (in /usr/lib/libobjc.A.dylib)
==24973==    by 0x1000DD03B: dyld::notifyBatchPartial(dyld_image_states, bool, char const* (*)(dyld_image_states, unsigned int, dyld_image_info const*), bool, bool) (in /usr/lib/dyld)
==24973==    by 0x1000DD255: dyld::registerObjCNotifiers(void (*)(unsigned int, char const* const*, mach_header const* const*), void (*)(char const*, mach_header const*), void (*)(char const*, mach_header const*)) (in /usr/lib/dyld)
==24973==    by 0x10062A00A: _dyld_objc_notify_register (in /usr/lib/system/libdyld.dylib)
==24973==    by 0x1009DC074: _objc_init (in /usr/lib/libobjc.A.dylib)
==24973==    by 0x1005BD68D: _os_object_init (in /usr/lib/system/libdispatch.dylib)
==24973==    by 0x1005BD63A: libdispatch_init (in /usr/lib/system/libdispatch.dylib)
==24973==    by 0x1004989D5: libSystem_initializer (in /usr/lib/libSystem.B.dylib)
==24973==    by 0x1000EDA1A: ImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==24973==    by 0x1000EDC1D: ImageLoaderMachO::doInitialization(ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==24973==
==24973== 136 (40 direct, 96 indirect) bytes in 1 blocks are definitely lost in loss record 48 of 69
==24973==    at 0x10016B861: malloc (vg_replace_malloc.c:302)
==24973==    by 0x1004C0E0D: operator new(unsigned long) (in /usr/lib/libc++abi.dylib)
==24973==    by 0x100387C70: class_loader::impl::loadLibrary(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, class_loader::ClassLoader*) (class_loader_core.cpp:455)
==24973==    by 0x10037DD38: class_loader::ClassLoader::loadLibrary() (class_loader.cpp:132)
==24973==    by 0x10037DA8D: class_loader::ClassLoader::ClassLoader(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) (class_loader.cpp:91)
==24973==    by 0x10037DDCB: class_loader::ClassLoader::ClassLoader(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) (class_loader.cpp:85)
==24973==    by 0x10039C2BE: class_loader::MultiLibraryClassLoader::loadLibrary(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (multi_library_class_loader.cpp:96)
==24973==    by 0x10000C388: pluginlib::ClassLoader<StorageInterface>::loadLibraryForClass(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (class_loader_imp.hpp:695)
==24973==    by 0x1000788A3: pluginlib::ClassLoader<StorageInterface>::createUniqueInstance(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (class_loader_imp.hpp:199)
==24973==    by 0x1000034B8: pluginlib::ClassLoader<StorageInterface>::createSharedInstance(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (class_loader_imp.hpp:151)
==24973==    by 0x1000032CB: main (main.cpp:26)
==24973==
==24973== 144 (16 direct, 128 indirect) bytes in 1 blocks are definitely lost in loss record 49 of 69
==24973==    at 0x10016B861: malloc (vg_replace_malloc.c:302)
==24973==    by 0x1004C0E0D: operator new(unsigned long) (in /usr/lib/libc++abi.dylib)
==24973==    by 0x10017FDF8: void class_loader::impl::registerPlugin<Storage, StorageInterface>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (class_loader_core.hpp:221)
==24973==    by 0x10017FA43: (anonymous namespace)::ProxyExec0::ProxyExec0() (storage.cpp:27)
==24973==    by 0x10017F634: (anonymous namespace)::ProxyExec0::ProxyExec0() (storage.cpp:27)
==24973==    by 0x10018430F: __cxx_global_var_init (storage.cpp:27)
==24973==    by 0x100184328: _GLOBAL__sub_I_storage.cpp (storage.cpp:0)
==24973==    by 0x1000EDA1A: ImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==24973==    by 0x1000EDC1D: ImageLoaderMachO::doInitialization(ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==24973==    by 0x1000E94A9: ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, char const*, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) (in /usr/lib/dyld)
==24973==    by 0x1000E9440: ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, char const*, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) (in /usr/lib/dyld)
==24973==    by 0x1000E8523: ImageLoader::processInitializers(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) (in /usr/lib/dyld)
==24973==
==24973== LEAK SUMMARY:
==24973==    definitely lost: 56 bytes in 2 blocks
==24973==    indirectly lost: 224 bytes in 3 blocks
==24973==      possibly lost: 72 bytes in 3 blocks
==24973==    still reachable: 22,474 bytes in 32 blocks
==24973==         suppressed: 17,933 bytes in 151 blocks
==24973== Reachable blocks (those to which a pointer was found) are not shown.
==24973== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==24973==
==24973== For counts of detected and suppressed errors, rerun with: -v
==24973== ERROR SUMMARY: 4 errors from 4 contexts (suppressed: 12 from 12)


GLIBCXX_3.4.21 not found > Debian Jessie 8.2

It installs fine with npm and node 6.9.1.
But when I try to run it, I get:
osm@map:~/carto/kosmtik$ node_modules/mapnik/bin/mapnik-index.js
/home/osm/carto/kosmtik/node_modules/mapnik/lib/binding/node-v48-linux-x64/mapnik-index: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /home/osm/carto/kosmtik/node_modules/mapnik/lib/binding/node-v48-linux-x64/mapnik-index)
/home/osm/carto/kosmtik/node_modules/mapnik/lib/binding/node-v48-linux-x64/mapnik-index: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /home/osm/carto/kosmtik/node_modules/mapnik/lib/binding/node-v48-linux-x64/libmapnik.so)

What version of node is recommended?
I just tried with 4.3.0 and I could install 3.5.13.

Your server's c++ compiler is not a high enough version to support 3.5.14, rather than a specific node version you should target.
I ran into this trying to run on CentOS 7 and ended up switching to Ubuntu Xenial instead to solve it.

Same error on LMDE2. Both LMDE2 and Jessie have the same symbols available - GLIBCXX_3.4.20 being highest. Problem is I have to deploy on Jessie so I can't just switch to Xenial. Also I need Mapnik 3.5.14 because of support for Node 6 - Node 4 isn't supported anymore.
Also, using http://unix.stackexchange.com/questions/284817/how-to-install-gcc-5-on-debian-jessie-8-1/290021 I tried to add the repo for Debian Testing and install only libstdc++-5-dev but turns out I cannot do that too - apt says that it needs to uninstall several packages, among them postgres9.4-postgis2.1
What can I do? Is there a way to install needed packages in separate directory and use them only for Mapnik? Does Mapnik need to be recompiled? Please provide some instructions if there is any way to do it. Thanks in advance.

Probably caused by the #660 bug

For others still having this problem on Debian 8, here's a somewhat workable solution:

Download the Stretch build of libstdc++ for your arch from one of the mirrors here: https://packages.debian.org/stretch/libstdc++6
Extract the .deb file (don't install). Most archive tools will let you do this as they're just standard archives.
Find the symlinked file libstdc++.so.6 inside the data.tar.xz archive and copy this to a suitable location on the target machine, for example /home/youruser/yourproject/libstdc++.so.6. You want the file to be named libstdc++.so.6, not libstdc++.so.6.0.22, otherwise the soname will not match and you'll still get the old libstdc++ loading.
Run node with the new libstdc++:
LD_LIBRARY_PATH=/home/youruser/yourproject:$LD_LIBRARY_PATH node somescript.js
If you have spaces in the path, you will need to escape them. Also note the lack of trailing slash in the directory name.
This node process will now be running with a suitably new version of libstdc++ and node-mapnik will work. All other parts of the system will still be using the standard Debian 8 libstdc++. If you are using a process manager, you can set the LD_LIBRARY_PATH variable in the environment vars.

For more info on this method and possible variations, see http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html
For more info on potential issues with LD_LIBRARY_PATH, see http://xahlee.info/UnixResource_dir/_/ldpath.html
Someone can probably chime in on whether this is a bad idea, but for the time being it runs fine and avoids updating the whole system libstdc++ or switching distro for the sake of one node module.


[App]: Web login

Current Behavior
Cannot login with Google account.
Authorisation Error
Error 403: org_internal
This client is restricted to users within its organization.
Expected Behavior
wandb.ai should accept Google account login.
Steps To Reproduce

Open wandb.ai
Click login
Login with Google account
Failed

Screenshots

Environment
OS: windows
Browsers: chrome
Version: 103.0.5060.134
Additional Context
No response

Same issue for me when logging in with google account

Now it is ok. Thank you!


Use .pylintrc files

Description
switches pylint to use .pylintrc configs instead of python generated pylint commands
Issues Resolved
#645
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

The one thing I don't like about this solution is that each .pylintrc stands on its own. There's no way to inherit the config from a higher level folder so if max-line-length should be 240 across the whole project, it needs to be in each .pylintrc.


vue-tsc didn't work in dev mode

recently,when i found that vite cannot emit the errors in ts, i installed vue-tsc for help.however,when i type some type errors in files and save,vite prompt this in terminal:

it seems that vue-tsc didn't work!?
Or did i miss something in my config file?
here is my tsconfig.json:

and the tsconfig.app.json written like this:

my vite.config.ts:

package.json:

Hi, can you provide me a minimal reproduction repo?

Hi, @CatherineYF  I don't known weather it's a bug in vue-tsc or a bug in vite-plugin-checker. Can you provide me a reproduction repo?
cc @fi3ework

actually,the problem is solved by changing tsconfig.json to this one:

so maybe the problem is not a bug?
and here is the repo
https://github.com/CatherineYF/myVue3
I have restored the code to a version with the bug.

I don't believe the issue lies with vite-plugin-checker as no errors are thrown when I run pnpm vue-tsc --noEmit. The problem might be related to the tsconfig, as previously mentioned.

actually,the problem is solved by changing tsconfig.json to this one:

Regardless of whether I use this setting or not, I can't reproduce the problem by running npm run type-check. If you still have this problem on the latest version, please let me know.


Volto edit view should open for unauthenticated?

Today volto edit view open for unauthenticated people, altho don't allow to save changes.
Is it okay? or we should change it?

Closing as fixed long time ago.


[Microsoft][MsTeams] [MS teams users conversation cache]

Platform

iOS

Author or host
MsTeams
Details
We have good amount of features talking to Graph API where in access token of users will be used to query them. Can you help for how much time MS teams users conversation cache will be retained and refreshed ?

@nesalang
forward the question to Teams.

@siduppal / @Wajeed-msft This is for Teams please.

Can you help for how much time MS teams users conversation cache will be retained and refreshed ?

@Sujit-Gaikwad , Are you talking about the validity of access token and refresh token for calling graph API?

@Subhasish-msft It will helpful is if you give clarity  on below points :

validity of access token
will it automatically refreshed?
a. if yes what will be validity after refresh
is there any way to know the token expiry before it get expired ?

Here are the answers :

Access token expires in 60 mins
No, User must refresh them by providing the refresh_token.
a. After refresh, a new access token will be granted with 60 mins validity. Azure allows an access-token to be refreshed using the refresh_token for a maximum period of time of 90 days
Not exactly any direct mechanism, but you can cache the last refreshed/granted time of access token to validate.

Please refer Authentication with Azure AD.


✨ v3 press-kit

missing K. Logo export
missing svg export

Related

#16
#17
https://github.com/kodadot/nft-gallery/issues/1449

Everything exported in #16

Everything exported in #16
@XyloDone
Please if possible upload in curves, real SVG, these are all PNG bitmap images in SVG file :(
https://github.com/kodadot/kodadot-presskit/tree/main/v3

Not sure why this keeps happening. Hope these work:
Koda_SVG_Logo_Export.zip

Not sure why this keeps happening. Hope these work: Koda_SVG_Logo_Export.zip

I think your export went wrong:

This is very odd as neither of the logos look like that when I open them. I redownloaded my own file and it looks fine.

Is anyone else gettting this?

This is very odd as neither of the logos look like that when I open them. I redownloaded my own file and it looks fine.

Your files contain the definition of the font-style, if I don't have the font installed on my computer it won't show as excepted.

I see. I hope this is finally it:
KodaDot_SVG Export_v2.zip

I see. I hope this is finally it: KodaDot_SVG Export_v2.zip

Perfect!

I see. I hope this is finally it: KodaDot_SVG Export_v2.zip

Nice, this is vector <3


Using closure modules results in JS output appearing to be licensed as apache v2

From https://developers.google.com/closure/compiler/docs/js-for-compiler#tag-license, it appears that any @license comments end up in the compiled output, and no flags can prevent that (and perhaps, nor should they). Given a project which uses goog.provides/module/etc, the https://github.com/google/closure-library/commit/1fe1bd873b1b772cca7de983cbaf72ef4011de0b commit appears to add a license header advertising only apache v2 to the JS output, where previously a (potentially proprietary) project might have had no license shown, giving the impression that the entire file is now apache v2.
My hunch is that this is to make sure that the apache license terms are upheld, but at least as I understand apache v2 this isn't sufficient - the full text of the license still needs to be included elsewhere, so I'm not sure why this is now mandatory.
Sorry for such an open ended report, but I'm not sure what the takeaway should be for downstream projects - including licenses is mandatory? Fork closure-library to remove it? Introduce additional command line args to make this optional (--license-file-provided-outside-js=true)?

For what it's worth, these commits are bringing Closure Library into compliance with a Google-internal rule that the library had previously had a grandfathered exemption from.  It is indeed intended to uphold the terms of the Apache license, while adding the minimal number of bytes to compiled output as possible.  We were instructed that this text was sufficient (see https://spdx.org for more details, I guess - IANAL).  The behavior of @license is based on how Google's build infrastructure handles licenses - it might be reasonable for there to be a flag to support some other workflow, though it might be difficult to prioritize.
In terms of mandatory, you can do what you want with the output of the compiler.  If you are documenting your licenses elsewhere, then nothing is stopping you from adding a post-processing step to remove the extra license, and that would surely be preferable to forking the library.

Well we already fork the compiler so that BUNDLE has sourcemaps and defines, so that the PersistentInputStore is restored, so one more patch isn't a big deal. I'll bring it up on google/j2cl, since no annotations from .java make it into .js, so we can't easily control how arbitrary java jars get their license respected in this way, see if they have a plan...
Agreed that I don't want to get into what a lawyer may or may not suggest (and certainly don't want to advise anyone downstream on what they should be doing), but only want to point out that my naive read of the license file says that this isn't sufficient, a copy of the license is required, not just its name.

You must give any other recipients of the Work or Derivative Works a copy of this License; and...

I think it would be reasonable to have an option to output the licenses to another file rather than included at the top of the output or turn it off completely.   Ultimately, we don't attempt to provide any enforcement of licenses (not everything file with a license is tagged @license for example) that is up to the folks deploying the code.
Happy to entertain a patch.

The license comments are coordinated via SingleBinaryLicenseTracker, which is called from Compiler.toSource().
Right now, this is hardcoded. It would be helpful to expose a public toSource(LicenseTracker) method, so users of the Java API could provide their own implementations (no-op, or tracking externally, for example).


TextureWriter closes vvvv with default SceneTexture texture format (16bit)

this is a breaking changes since 2021.3.3 where this worked because the default format was 8bit!

Related?
https://github.com/vvvv/VL.Stride/issues/444

yes, same issue. thanks!


Create Azure Virtual Machine Scale Set agents incorrect instructions regarding unmanaged disks

The issue is regarding this article.
And specifically this chapter.
It states that in order to create scale set agents we must create a VM with an unmanaged disk. However, in this article it states that unmanaged disks will be retired.
Please provide correct instructions on how to create a VM for scale set agents without resorting to unmanaged disks.
Thank you!

We've moved this issue to our internal tracking system as we transition to a new feedback system.


backport: trivial 2023 04 15

Issue being fixed or feature implemented
Trivial backport cherry-picked via script on April 15th
What was done?
Backports
How Has This Been Tested?
Make -j8 check
Breaking Changes
Should be none; did a light review
Checklist:
Go over all the following points, and put an x in all the boxes that apply.

[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have added or updated relevant unit/integration/functional/e2e tests
[ ] I have made corresponding changes to the documentation
[x] I have assigned this pull request to a milestone (for repository code-owners and collaborators only)

@knst dropped those as the test failed :)

linter complains contrib/devtools/test-symbol-check.py:27:23: F821 undefined name 'get_machine'

Resolved

utACK

LGTM but CI failed to start for some reason..


Add Multipart tests to NodeJS Axios Codegen

PR Description
Added Posts Test 4-9 for multipart form testing for NodeJS Axios Codegen.
Related Issues

Closes #281

Checklist

[x] I have gone through the contributing guide
[x] I have run the tests (flutter test) and all tests are passing

Added/updated tests?

[x] Yes

Have you manually verified whether POST 4- POST 9 generated code are working correctly?
nodejs fetch codes were not running.

Refer https://github.com/foss42/apidash/pull/286#issuecomment-1994811511


refmt outputs invalid Unicode stuff

Repro: " │ " (a unicode bar, for drawing boxes) formats into " �\148\130 " (literally)

How are you running this?

echo '" │ "' | ./refmt_impl.native --parse re --print re

oh gross

Fortunately, parsing works correctly - it's just a matter of finding the right unicode printing library to use I believe.
Marking it as Good First Task.

@jordwalke, I experiment this issue too, how can I help?
Can you be more explicit than  “it's just a matter of finding the right unicode printing library to use I believe.” to see if I can help?
thanks!

Does the AST token for the string store the start/end location within the source string for token?  If so, maybe we could use that when printing.

Sorry, this is solved already. And yeah we do that


feat: detect assets

Do not allow asset files to be imported inside logic.

This is going to break some of my games. I use SVG for instance as an input to build game physics models for Scorched Turf. Think this would be nice to be able to turn off.

AFAIK, the SVG in Scorched Turf is inlined into logic.js. Perhaps we can make the detection more intelligent to not flag inlined assets and explain in the error msg how to inline assets into logic.js if needed for that game?

I.e. I'd suggest making the detection more intelligent rather than adding a flag :)

Sounds great 👍


Make the rss event provider support local couchdb.

The rss event provider currently only support the cloudant service to store the trigger info, we need to update it to support the local couchdb installation as per the readme outlined.

pr merged, close.


Microsoft bot framework emulator not working offline

Hi everyone am trying to run the default project sample that comes with the MS bot framework template , when am connected to the internet the bot runs normally but when am offline the bot doesnt work and i got this error in the console : "POST getaddrinfo ENOENT localhost:3979" .does the emulator needs internet connection to work???

If you're in airplane mode then you might not be able to do DNS lookups... even for localhost. Try replacing localhost with <IP_ADDRESS> for your bot's endpoint:

Hi thanks for the answer, am not on airplane mode , and i tried replacing "localhost" with "<IP_ADDRESS>" the other error is gone and i get another one "POST 400 [ConversationUpdate]".

A 400 error indicates the emulator was able to get some kind of response back from your bot (albeit an error code). Going ahead and closing this issue now. Please reply here or open a new issue if you'd like assistance working through the 400 error.

Hello @eanders-MS , can you please provide me some assistance on how to work through the 400 error when using the bot emulator offline? I replace the address with <IP_ADDRESS> and got "POST 400 [Converstion Update]. I have tried to figure it out with out success. Thanks


how to on the 'finish'  event

Hi,
I use
fs.createReadStream('path/to/archive.zip').pipe(unzip.Extract({ path: 'output/path' }));
unzip file, How to on finish events?

Please see #2 for an example. Also, you need to use the close event.


[fix][client] Release the orphan producers after the primary consumer is closed

Motivation
The producers ["retryLetterProducer", "deadLetterProducer"] will be auto-created by consumers if enabled DLQ, but these producers will not close after consumers are closed.
Modifications
Auto close "retryLetterProducer" and "deadLetterProducer" after the primary consumer is closed
Documentation

[ ] doc
[ ] doc-required
[x] doc-not-needed
[ ] doc-complete

Matching PR in forked repository
PR in forked repository:

https://github.com/poorbarcode/pulsar/pull/79

Codecov Report

Merging #19858 (54ad9d7) into master (f20dc93) will increase coverage by 13.05%.
The diff coverage is 87.50%.

@@              Coverage Diff              @@
##             master   #19858       +/-   ##
=============================================
+ Coverage     25.11%   38.16%   +13.05%
- Complexity      205     1364     +1159
=============================================
  Files          1680     1686        +6
  Lines        127176   133729     +6553
  Branches      13863    15400     +1537
=============================================
+ Hits          31942    51040    +19098
+ Misses        90242    75961    -14281
- Partials       4992     6728     +1736

Flag
Coverage Δ

inttests
25.36% <87.50%> (?)

systests
25.17% <21.42%> (+0.05%)
:arrow_up:

unittests
33.13% <75.00%> (?)

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

Impacted Files
Coverage Δ

...rg/apache/pulsar/common/util/URIPreconditions.java
44.44% <0.00%> (+44.44%)
:arrow_up:

...va/org/apache/pulsar/client/impl/ConsumerImpl.java
57.06% <93.33%> (+29.06%)
:arrow_up:

... and 581 files with indirect coverage changes

/pulsarbot rerun-failure-checks


Zero Blocks visual identity

Creating a visual identity for Zero Blocks:

Create logo
Define visual identity style (styleguide):
A. imagery use (overlays, masking shapes, etc)
B. fonts (used for websites and promo materials)
C. colors (define base colors and color scheme)
D. define iconography styles (round/edgy/mixed/lines/filled)

@simeonoff Should this one be closed or there is more work to be done?

@kdinev can be closed.


Implement the logic surrounding a symbol's freq argument

Right now, it's just an arbitrary string that does nothing.
In reality, a symbol either needs an Index and IndexArg similar to a Feed's Munging and MungingArg.  Or, the Munging, and MungingArg, plus all it's relevant templates can be applied at the Symbol level as well.  Since, it's all just data in -> data out.  But, the templates for it would be become interchangeable, but some wouldn't make sense.

closed this, as frequency has been relegated to the Index and sub objects.


GpuCache: Constant time hash lookups of matching glyph texures

I had a thought after the last optimisation of the glyph search: Instead of storing the info of the glyphs we cache and searching through what we have, we could have a function that produces some hashable data such that 2 matching glyphs produce the same hash. In this way we could then lookup glyphs in constant time.
tldr: You can, and it's way faster.
Implementation
I've implemented this idea by instead of keying the cache by the exact scale & offset of the glyphs, using lossy integer scales & offsets. These integers are attained by dividing the actual values by the scale_tolerance or position_tolerance as applicable then rounding into integers.
So with scale_tolerance = 0.2 glyph with scale 10.0, matches glyph with scale 10.09 as the lossy scale_over_tolerance is 50 for both. The matching bracket is (9.9, 10.1).
This is a little different to before where you add a glyph with scale 10.33 and it would become a match for anything within the tolerance, ie (10.23, 10.43) for default 0.1 tolerance. The lossy approach the bracket already conceptually exists, so the glyph with scale 10.33 becomes a match for anything in it's bracket (10.25, 10.35).
Impacts
The old approach meant that you could have glyphs next to each other but in the worst case rendered with textures up to 2 times the scale/position tolerance away from the ideal. The new approach means the absolute maximum error is equal to the tolerance, but you can now have glyphs close to each other but requiring a texture each as they lie in adjacent brackets.
So different usages could see size requirements go up, but may be able to simply relax their tolerances if previously they were seeing the worst case.
Other than subtle changes to tolerance meaning the API is mostly unaffected, that is except gpu_cache::Cache::set_scale_tolerance & gpu_cache::Cache::set_position_tolerance which are now deprecated. These method invalidate the cache as they're moving our hashing goalposts. They function equivalently to recreating the Cache. It looks like no-one is using them anyway (crates.io/github quick search).
Because of this we should probably bump to 0.6, even though all 0.5 code should still compile.
Performance
All this yields a large performance improvement compared with 0.5.2 (using b4ad64e6bef85087b9e82b9375920f2d76820890 to test which has the latest bench code). The moving text benchmark goes from 4.1ms -> 1.5ms frame latency. General performance is 1.6× to 3× faster. First run performance looks about the same, though maybe the change has just got the benchmark scenario generating more glyph textures than before as discussed above.
name                                                         control ns/iter  change ns/iter  diff ns/iter   diff %  speedup
gpu_cache::cache_bench_tests::bench_high_position_tolerance  1,813,760        1,113,060           -700,700  -38.63%   x 1.63
gpu_cache::cache_bench_tests::bench_moving_text              4,086,238        1,456,736         -2,629,502  -64.35%   x 2.81
gpu_cache::cache_bench_tests::bench_multi_font               3,628,038        1,309,421         -2,318,617  -63.91%   x 2.77
gpu_cache::cache_bench_tests::bench_multi_font_population    12,649,773       12,160,079          -489,694   -3.87%   x 1.04
gpu_cache::cache_bench_tests::bench_single_font              3,799,776        1,255,568         -2,544,208  -66.96%   x 3.03

Code Changes
The code is overall reduced. BTreeMap search logic was a big part of the old code, and now is totally gone. I also removed the very short lived use of rayon, as with the new data structures it didn't yield a significant benefit.

@jackpot51 it would be nice to get a 0.6 release out for the gpu_cache improvements. I don't think we have any other changes in the pipeline.

Ok, I will do that soon. Do you want to be a crate owner so you can do releases?

Do you want to be a crate owner so you can do releases?

Sure

I have added you, so you should be able to make the release. Let me know if that works.

Seems to work thanks!


Matrix: Subtotal property is missing in dev mode from request

When I run my custom visual in development mode, it won't request for subtotal values, however when I package and import it, it will. I'm using 3 fields: customer group name, customer name (belongs to a customer group) and discount. The attached picture shows the request for the discount field, which should have a subtotal value for each customer group name.
package.json

pbiviz.json

capabilities.json

request in dev mode

request in packaged mode

At the moment I'm working on a different custom visual using<EMAIL_ADDRESS>and the issue is the same.
This might be the same issue:
https://github.com/microsoft/Powerbi-Visuals-SampleMatrix/issues/1
EDIT: Adding the difference of the request.

Hi @helen508light
Thanks for the tip, but after modifying my capabilities.json to the following, it still doesn't work. Subtotal is not requested nor received from the backend.

hello  -the fix should be deployed by the end of this week.

Hi- The issue still in latest API. Could anyone please update the status.

Hi- The issue still in latest API. Could anyone please update the status.

Was the fix deployed? I am still not able to get subtotals work.
Also the sample Matrix Custom Visual doesn't work
https://github.com/microsoft/Powerbi-Visuals-SampleMatrix


If the loss detection timer has fired we may not have lost packets

We calculate the delay from the point that a packet arrives until it will be counted as lost based on rtt info. Looking at all the packets we can then calculate the earliest time that a packet will be counted as lost. When that timer fires the latest rtt info may have changed and therefore the packet may no longer be counted as lost yet.
We should not assume that just because the ackm timeout has fired that there will definitely be lost packets.
Fixes #22538

Hmmm....CI failure is not related....but what is that?

Rerunning msan to see what happens.

This pull request is ready to merge

Merged to master and 3.2. Thank you.


Timeout to remind players its their turn

If it is just a reminder, this should probably be done on the client side

This is the intention


Still issues running Flash under Windows

I have created a new issue as the previous #1674 issue is now closed.
Electron 0.26.1 has certainly improved the situation as it will now load a Flash player dll from any desired directory.
However, this is the ppapi-flash-path option which is supposed to load a "pepper flash plugin".
The problem I am experiencing is that it will only load an NPAPI plugin!?
The only one I can get it to load is called NPSWF64_17_0_0_169.dll (which as the name suggests, is the old style NPAPI plugin).
Whenever I attempt to load a PPAPI plugin, I get the following error:
[5480:0525/080243:ERROR:ppapi_thread.cc(278)] Failed to load Pepper module from /dev/...etc..../plugins/pepflashplayer32_17_0_0_188.dll (error: 193)
I have had a little look for ppapi_thread.cc but this is not in the Electron package so probably somewhere in the bowls of Chromium.
Doesn't make sense, I know, but this is what I am experiencing.

It looks like you're trying to load 32-bit Pepper Flash in a 64-bit process, since NPSWF64 works for you. Reopen this if you've confirmed you're not mixing up the architectures

Thanks, that did point me in the right direction.
There is certainly some weirdness with Flash installs under Windows (8.1 in my case). Here are my findings, in case it helps anyone:

Chrome pepper flash plugin is in: C:\Program Files (x86)\Google\Chrome\Application\XX.XX.XX.XX\PepperFlash\pepflashplayer.dll.
Chrome Canary plugins are in: C:\Users\XXX\AppData\Local\Google\Chrome SxS\Application\XX.XX.XX.XX\PepperFlash\pepflashplayer.dll.
These are both 32-bit. To get the 64-bit version of Chrome, you need to specify "another platform" from the Chrome install page.

When you manually install Flash:

32-bit plugins are installed in C:\Windows\SysWOW64\Macromed\Flash (notice the helpful 64 in the folder name).
64-bit plugins are installed in C:\Windows\System32\Macromed\Flash (notice the helpful 32 in the folder name).
Both Chrome and Canary will continue to use their own pepflash.dll versions and ignore these.

(notice the helpful 64 in the folder name)

WOW64 is the name of the subsystem that handles running 32-bit apps on a 64-bit OS - basically everyone writing Windows apps should read https://msdn.microsoft.com/en-us/library/windows/desktop/aa384249(v=vs.85).aspx and all the subsections, especially the redirector bits. Everything will make sense then :)

Thanks, very useful info.

Just wanted to add this:
If your plugin works in DEBUG but not in RELEASE, then it could still be the architecture. I was convinced it has to be something else, since my DEBUG was always working with the provided .dll, but i would always see 'plugin couldn't be loaded' whenever i ran release.
It was just the architecture. Copy&Pasting the other (32bit) .dll fixed everything.
For being stubborn i had to research this for 16hours, and wanted to safe someone else the troubles.


x/tools/gopls: refactor.extract.variable on multi-valued expression produces invalid code

Gopls' extract logic does not correctly handle the case when an expression has multiple values:
Before:
func f(m map[string]int) {
	if v, ok := m[""]; ok { // <-- refactor.extract.variable on m[""]
		println(v)
	}
}

After:
func f(m map[string]int) {
	x := m[""]
	if v, ok := x; ok { // error: assignment mismatch
		println(v)
	}
}

Related Issues

x/tools/gopls: refactor.extract.variable on RHS of const declaration produces invalid code #70562

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)


[AzureMonitorDistro] Rename Azure.Monitor.OpenTelemetry to Azure.Monitor.OpenTelemetry.AspNetCore

Collaborated with .NET and Azure SDK teams. Received recommendation to rename Azure.Monitor.OpenTelemetry to Azure.Monitor.OpenTelemetry.AspNetCore.

API change check
APIView has identified API level changes in this PR and created following API reviews.
Azure.Monitor.OpenTelemetry.AspNetCore

TODO: need to review the CodeOwners file


Context refactoring

Description
This refactors the usage and typings for the GeoStylerContext:

context definition has moved from the context to the components
destructuring of properties has been simplified in the components

:exclamation: This PR contains breaking changes:

legacy DefaultValueContext, CompositionContext, CompositionUtil and withDefaultsContext hoc have been removed
several properties of Style and RuleTable have been removed as they are now covered by the context
property enableClassification in Rules component has been inverted to disableClassification so default is false

Closes #2170
Do you introduce a breaking change?

[x] Yes
[ ] No
[ ] I am unsure (no worries, we'll find out)

Thanks a lot for the reviews @jansule

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Avoid reusing grpc port for reliability

What does this PR do?
When running gRPC tests in CI, the application port is being reused unless it's not available, for example due to a failed to bind error.
We can observe this by a simple starting grpc server on port on the build logs in CI.
This PR attempts to avoid this by not trying to reuse port when starting the grpc server.
[main] INFO  co.elastic.apm.agent.grpc.testapp.HelloServer - starting grpc server on port 27575
... 27575
[main] INFO  co.elastic.apm.agent.grpc.testapp.HelloServer - starting grpc server on port 27575
[main] INFO  co.elastic.apm.agent.grpc.testapp.HelloServer - starting grpc server on port 55074
[main] INFO  co.elastic.apm.agent.grpc.testapp.HelloServer - starting grpc server on port 58505
[main] INFO  co.elastic.apm.agent.grpc.testapp.HelloServer - starting grpc server on port 1819
[main] INFO  co.elastic.apm.agent.grpc.testapp.HelloServer - starting grpc server on port 45002
[main] INFO  co.elastic.apm.agent.grpc.testapp.HelloServer - starting grpc server on port 52264
[main] INFO  co.elastic.apm.agent.grpc.testapp.HelloServer - starting grpc server on port 34650
[main] INFO  co.elastic.apm.agent.grpc.testapp.HelloServer - starting grpc server on port 17372
[main] INFO  co.elastic.apm.agent.grpc.testapp.HelloServer - starting grpc server on port 60916
[main] INFO  co.elastic.apm.agent.grpc.testapp.HelloServer - starting grpc server on port 19523
[main] INFO  co.elastic.apm.agent.grpc.testapp.HelloServer - starting grpc server on port 10805
[main] INFO  co.elastic.apm.agent.grpc.testapp.HelloServer - starting grpc server on port 56063
[main] INFO  co.elastic.apm.agent.grpc.testapp.HelloServer - starting grpc server on port 27575
... 27575
[main] INFO  co.elastic.apm.agent.grpc.testapp.HelloServer - starting grpc server on port 27575
[main] INFO  co.elastic.apm.agent.grpc.testapp.HelloServer - starting grpc server on port 13426
... 13426
[main] INFO  co.elastic.apm.agent.grpc.testapp.HelloServer - starting grpc server on port 13426
[main] INFO  co.elastic.apm.agent.grpc.testapp.HelloServer - starting grpc server on port 24005
[main] INFO  co.elastic.apm.agent.grpc.testapp.HelloServer - starting grpc server on port 52041
[main] INFO  co.elastic.apm.agent.grpc.testapp.HelloServer - starting grpc server on port 45392
[main] INFO  co.elastic.apm.agent.grpc.testapp.HelloServer - starting grpc server on port 41993
[main] INFO  co.elastic.apm.agent.grpc.testapp.HelloServer - starting grpc server on port 23572
[main] INFO  co.elastic.apm.agent.grpc.testapp.HelloServer - starting grpc server on port 29149
[main] INFO  co.elastic.apm.agent.grpc.testapp.HelloServer - starting grpc server on port 49099
[main] INFO  co.elastic.apm.agent.grpc.testapp.HelloServer - starting grpc server on port 21593
[main] INFO  co.elastic.apm.agent.grpc.testapp.HelloServer - starting grpc server on port 16709
[main] INFO  co.elastic.apm.agent.grpc.testapp.HelloServer - starting grpc server on port 57201
[main] INFO  co.elastic.apm.agent.grpc.testapp.HelloServer - starting grpc server on port 2849
[main] INFO  co.elastic.apm.agent.grpc.testapp.HelloServer - starting grpc server on port 13426
... 13426
[main] INFO  co.elastic.apm.agent.grpc.testapp.HelloServer - starting grpc server on port 13426

Checklist

:grey_exclamation: Build Aborted

There is a new build on-going so the previous on-going builds have been aborted.

the below badges are clickable and redirect to their specific view in the CI or DOCS

Expand to view the summary

Build stats

Reason: Aborted from #2

Start Time: 2021-08-24T09:00:59.295+0000

Duration: 41 min 23 sec

Commit: 2e04b4d86b6313714b67da0d89e20ae9fc0fc7d2

Test stats :test_tube:

Test
Results

Failed
0

Passed
2345

Skipped
17

Total
2362

Trends :test_tube:

Log output
Expand to view the last 100 lines of log output

[2021-08-24T09:42:04.028Z] [tomcat] 24-Aug-2021 09:42:03.841 INFO [Thread-11] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["ajp-nio-8009"]
[2021-08-24T09:42:04.212Z] Sending interrupt signal to process
[2021-08-24T09:42:04.508Z] script returned exit code 143
[2021-08-24T09:42:04.980Z] 2021-08-24 09:42:04,618 [main] DEBUG org.testcontainers.shaded.com.github.dockerjava.core.command.AbstrDockerCmd - Cmd: c35008ebcef25f63d5cdf46e9e3b6c1adfdaa9e42ba4cf8c9203a869f39c3552,false
[2021-08-24T09:42:04.980Z] 2021-08-24 09:42:04,618 [main] DEBUG org.testcontainers.shaded.com.github.dockerjava.core.exec.InspectContainerCmdExec - GET: DefaultWebTarget{path=[/containers/c35008ebcef25f63d5cdf46e9e3b6c1adfdaa9e42ba4cf8c9203a869f39c3552/json], queryParams={}}
[2021-08-24T09:42:04.980Z] 2021-08-24 09:42:04,624 [main] DEBUG org.testcontainers.shaded.com.github.dockerjava.core.command.AbstrDockerCmd - Cmd: c35008ebcef25f63d5cdf46e9e3b6c1adfdaa9e42ba4cf8c9203a869f39c3552,false
[2021-08-24T09:42:04.980Z] 2021-08-24 09:42:04,624 [main] DEBUG org.testcontainers.shaded.com.github.dockerjava.core.exec.InspectContainerCmdExec - GET: DefaultWebTarget{path=[/containers/c35008ebcef25f63d5cdf46e9e3b6c1adfdaa9e42ba4cf8c9203a869f39c3552/json], queryParams={}}
[2021-08-24T09:42:04.980Z] 2021-08-24 09:42:04,629 [main] DEBUG org.testcontainers.shaded.com.github.dockerjava.core.command.AbstrDockerCmd - Cmd: c35008ebcef25f63d5cdf46e9e3b6c1adfdaa9e42ba4cf8c9203a869f39c3552,true,true
[2021-08-24T09:42:04.980Z] 2021-08-24 09:42:04,653 [main] DEBUG org.testcontainers.utility.ResourceReaper - Removed container and associated volume(s): tomcat:9-jre11-slim
[2021-08-24T09:42:05.455Z] Sending interrupt signal to process
[2021-08-24T09:42:05.556Z] Terminated
[2021-08-24T09:42:05.695Z] script returned exit code 143
[2021-08-24T09:42:06.848Z] Post stage
[2021-08-24T09:42:06.892Z] Post stage
[2021-08-24T09:42:06.941Z] Recording test results
[2021-08-24T09:42:06.977Z] Recording test results
[2021-08-24T09:42:09.315Z] [Checks API] No suitable checks publisher found.
[2021-08-24T09:42:09.390Z] Running in /var/lib/jenkins/workspace/_java_apm-agent-java-mbp_PR-2079/src/github.com/elastic/apm-agent-java
[2021-08-24T09:42:09.442Z] [INFO] Codecov: Getting branch ref...
[2021-08-24T09:42:09.485Z] Masking supported pattern matches of $GITHUB_TOKEN
[2021-08-24T09:42:09.767Z] [INFO] Codecov: Sending data...
[2021-08-24T09:42:10.057Z] [Checks API] No suitable checks publisher found.
[2021-08-24T09:42:10.228Z] Running in /var/lib/jenkins/workspace/_java_apm-agent-java-mbp_PR-2079/src/github.com/elastic/apm-agent-java
[2021-08-24T09:42:10.289Z] [INFO] Codecov: Getting branch ref...
[2021-08-24T09:42:10.334Z] Masking supported pattern matches of $GITHUB_TOKEN
[2021-08-24T09:42:10.380Z] + echo curl -sSLo codecov.sh https://codecov.io/bash
[2021-08-24T09:42:10.381Z] curl -sSLo codecov.sh https://codecov.io/bash
[2021-08-24T09:42:10.802Z] [INFO] Codecov: Sending data...
[2021-08-24T09:42:10.854Z] + echo bash codecov.sh
[2021-08-24T09:42:10.855Z] bash codecov.sh
[2021-08-24T09:42:11.569Z] Terminated
[2021-08-24T09:42:11.581Z] Terminated
[2021-08-24T09:42:11.684Z] + echo curl -sSLo codecov.sh https://codecov.io/bash
[2021-08-24T09:42:11.684Z] curl -sSLo codecov.sh https://codecov.io/bash
[2021-08-24T09:42:11.716Z] Failed in branch Smoke Tests 01
[2021-08-24T09:42:11.802Z] Sleeping for 5 sec
[2021-08-24T09:42:17.134Z] Error when executing always post condition:
[2021-08-24T09:42:17.135Z] org.jenkinsci.plugins.workflow.steps.FlowInterruptedException
[2021-08-24T09:42:17.135Z] 	at org.jenkinsci.plugins.workflow.cps.CpsBodyExecution.cancel(CpsBodyExecution.java:253)
[2021-08-24T09:42:17.135Z] 	at org.jenkinsci.plugins.workflow.cps.steps.ParallelStepExecution.stop(ParallelStepExecution.java:74)
[2021-08-24T09:42:17.135Z] 	at org.jenkinsci.plugins.workflow.cps.steps.ParallelStep$ResultHandler$Callback.checkAllDone(ParallelStep.java:151)
[2021-08-24T09:42:17.135Z] 	at org.jenkinsci.plugins.workflow.cps.steps.ParallelStep$ResultHandler$Callback.onFailure(ParallelStep.java:138)
[2021-08-24T09:42:17.135Z] 	at org.jenkinsci.plugins.workflow.cps.CpsBodyExecution$FailureAdapter.receive(CpsBodyExecution.java:361)
[2021-08-24T09:42:17.135Z] 	at com.cloudbees.groovy.cps.impl.ThrowBlock$1.receive(ThrowBlock.java:68)
[2021-08-24T09:42:17.135Z] 	at com.cloudbees.groovy.cps.impl.ConstantBlock.eval(ConstantBlock.java:21)
[2021-08-24T09:42:17.135Z] 	at com.cloudbees.groovy.cps.Next.step(Next.java:83)
[2021-08-24T09:42:17.135Z] 	at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:174)
[2021-08-24T09:42:17.135Z] 	at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:163)
[2021-08-24T09:42:17.135Z] 	at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:129)
[2021-08-24T09:42:17.135Z] 	at org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:268)
[2021-08-24T09:42:17.135Z] 	at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:163)
[2021-08-24T09:42:17.135Z] 	at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:18)
[2021-08-24T09:42:17.135Z] 	at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:51)
[2021-08-24T09:42:17.135Z] 	at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:185)
[2021-08-24T09:42:17.135Z] 	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:400)
[2021-08-24T09:42:17.135Z] 	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$400(CpsThreadGroup.java:96)
[2021-08-24T09:42:17.135Z] 	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:312)
[2021-08-24T09:42:17.135Z] 	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:276)
[2021-08-24T09:42:17.135Z] 	at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:67)
[2021-08-24T09:42:17.135Z] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[2021-08-24T09:42:17.135Z] 	at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:139)
[2021-08-24T09:42:17.135Z] 	at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
[2021-08-24T09:42:17.135Z] 	at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
[2021-08-24T09:42:17.135Z] 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[2021-08-24T09:42:17.135Z] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[2021-08-24T09:42:17.135Z] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[2021-08-24T09:42:17.135Z] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[2021-08-24T09:42:17.135Z] 	at java.lang.Thread.run(Thread.java:748)
[2021-08-24T09:42:17.135Z]
[2021-08-24T09:42:17.411Z] Failed in branch Smoke Tests 02
[2021-08-24T09:42:17.791Z] Click here to forcibly terminate running steps
[2021-08-24T09:42:17.816Z] Stage "Integration Tests" skipped due to earlier failure(s)
[2021-08-24T09:42:17.940Z] Stage "Unit Tests" skipped due to earlier failure(s)
[2021-08-24T09:42:18.263Z] Stage "Matrix - JAVA_VERSION = 'java12'" skipped due to earlier failure(s)
[2021-08-24T09:42:18.272Z] Stage "Matrix - JAVA_VERSION = 'openjdk12'" skipped due to earlier failure(s)
[2021-08-24T09:42:18.282Z] Stage "Matrix - JAVA_VERSION = 'openjdk13'" skipped due to earlier failure(s)
[2021-08-24T09:42:18.290Z] Stage "Matrix - JAVA_VERSION = 'openjdk14'" skipped due to earlier failure(s)
[2021-08-24T09:42:18.297Z] Stage "Matrix - JAVA_VERSION = 'openjdk15'" skipped due to earlier failure(s)
[2021-08-24T09:42:18.310Z] Stage "Matrix - JAVA_VERSION = 'openjdk16'" skipped due to earlier failure(s)
[2021-08-24T09:42:18.522Z] Stage "Matrix - JAVA_VERSION = 'java12'" skipped due to earlier failure(s)
[2021-08-24T09:42:18.535Z] Stage "Matrix - JAVA_VERSION = 'openjdk12'" skipped due to earlier failure(s)
[2021-08-24T09:42:18.544Z] Stage "Matrix - JAVA_VERSION = 'openjdk13'" skipped due to earlier failure(s)
[2021-08-24T09:42:18.552Z] Stage "Matrix - JAVA_VERSION = 'openjdk14'" skipped due to earlier failure(s)
[2021-08-24T09:42:18.560Z] Stage "Matrix - JAVA_VERSION = 'openjdk15'" skipped due to earlier failure(s)
[2021-08-24T09:42:18.568Z] Stage "Matrix - JAVA_VERSION = 'openjdk16'" skipped due to earlier failure(s)
[2021-08-24T09:42:19.891Z] Failed in branch Matrix - JAVA_VERSION = 'java12'
[2021-08-24T09:42:19.913Z] Failed in branch Matrix - JAVA_VERSION = 'openjdk12'
[2021-08-24T09:42:19.925Z] Failed in branch Matrix - JAVA_VERSION = 'openjdk13'
[2021-08-24T09:42:19.938Z] Failed in branch Matrix - JAVA_VERSION = 'openjdk14'
[2021-08-24T09:42:19.949Z] Failed in branch Matrix - JAVA_VERSION = 'openjdk15'
[2021-08-24T09:42:19.962Z] Failed in branch Matrix - JAVA_VERSION = 'openjdk16'
[2021-08-24T09:42:20.595Z] Stage "Stable" skipped due to earlier failure(s)
[2021-08-24T09:42:20.731Z] Stage "AfterRelease" skipped due to earlier failure(s)
[2021-08-24T09:42:20.799Z] Stage "AfterRelease" skipped due to earlier failure(s)
[2021-08-24T09:42:21.647Z] Running on Jenkins in /var/lib/jenkins/workspace/_java_apm-agent-java-mbp_PR-2079
[2021-08-24T09:42:21.777Z] [INFO] getVaultSecret: Getting secrets
[2021-08-24T09:42:21.845Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-08-24T09:42:23.003Z] + chmod 755 generate-build-data.sh
[2021-08-24T09:42:23.003Z] + ./generate-build-data.sh https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-java/apm-agent-java-mbp/PR-2079/ https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-java/apm-agent-java-mbp/PR-2079/runs/1 ABORTED 2483424
[2021-08-24T09:42:23.003Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-java/apm-agent-java-mbp/PR-2079/runs/1/steps/?limit=10000 -o steps-info.json


Suppress false positive CodeQL errors

We noticed that in our mirrored branch codeQL raises some errors and after looking into them decided they were false positives:

"Dereference of potentially uninitialized pointer field" in HttpClient_CAPI.cpp - the shared_ptr operation is dereferenced within an if block that checks it isn't null, in addition it is default constructed with nullptr so in the case that it isn't null, it means it was purposely assigned a non garbage value. I added the lgtm comment with justification to suppress the error and changed the initialization of operation for better clarity on its initialized value.
link to the error:

"Alert Suppression Without Justification" in json.hpp - The function scan_number() uses goto which raised a codeQL error which was later suppressed with the comment "lgtm [cpp/use-of-goto]", I added justification for this suppression in order to comply with the new CodeQL suppression standard: https://onees.lgtm.microsoft.com/rules/1001259/
link to the error:

@lalitb Can you please merge the PR? I seem to not have write access.

@t-ransemel - you can get write permission from here - https://microsoft.sharepoint.com/teams/1ds.sdk.cpp/SitePages/Home.aspx


Issue/2542 bigint field (#2842)

Pull request opened by the merge tool on behalf of #2842

Merged in 994f33ccca9e76a05ba3f8eaf6384058b4871025


Edited dates style in date selector component

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


Shape doesn't exist apparently

So basically I have this piece of code in my config:
shape {
    monitor =
    size = 1000, 1000
    color = rgba(255, 255, 255, 1.0)
    rounding = -1
    border_size = 8
    border_color = rgba(0, 207, 230, 1.0)
    rotate = 0
    xray = true # if true, make a "hole" in the background (rectangle of specified size, no rotation)

    position = 0, 80
    halign = center
    valign = center
}

And you can see the issue clearly on the screenshot: shapes are nonexistent as configuration options. I don't think shapes are in any way separated on the wiki, so I just assume they are supposed to work as a normal widget, but literally the example config doesn't function lol

only on git