Unable to install app-photos-debug.apk -> INSTALL_FAILED_CONFLICTING_PROVIDER

Describe the bug
I get
Failure [INSTALL_FAILED_CONFLICTING_PROVIDER: Scanning Failed.: Can't install because provider name com.google.android.gsf.gservices (in package com.google.android.apps.photos) is already used by com.google.android.gsf]
when trying to install app-photo-debug.apk via the adb command :
adb shell pm install --force-queryable /data/local/tmp/app-photos-debug.apk
To Reproduce
Steps to reproduce the behavior:

Install Google Play Services in a secondary user profile
Go on the clean primary user profile
Push app-photos-debug.apk on /data/local/tmp/ : adb push app-photos-debug.apk /data/local/tmp/
Run the installation adb command : adb shell pm install --force-queryable /data/local/tmp/app-photos-debug.apk
See error :
Failure [INSTALL_FAILED_CONFLICTING_PROVIDER: Scanning Failed.: Can't install because provider name com.google.android.gsf.gservices (in package com.google.android.apps.photos) is already used by com.google.android.gsf]

Smartphone
Device: Pixel 3a
OS/ROM: GrapheneOS 11 (SP1A.211105.002.2021111414)
Gcam-Services-Provider version: 1.4
Additional context
There is Google Play Services installed on a Sandbox (another user profile), but not on the user profile I'm trying to install app-photo-debug.apk

Hi,
please update this issue to match the issue template and provide more information about your use case.
Thanks!

Got exactly the same Error on Pixel 5 with Graphene OS. It's conflicting with the sandboxed Google Play services. But they should be sandboxed. Why do they conflict on different workprofiles?
I am using Insular to Sandbox them.

The response of strcat was to just use Google Play Services on your main Profile because Graphene OS sandboxes every app.
I just installed Google Play Services on my main Profile and restricted Network and Sensor access. It shouldn't be able to do any harm I think. So there is no need to fake it.

Saw the discussion on Matrix and just want to comment on that here.

Gcam-Services-Provider uses official app IDs that don't belong to them
That's how it works
You're trying to install two apps with the same app ID
Those will conflict with each other because they're not signed the same

My app (the basic variant) has not been using Google's ApplicationId for a couple of versions. The variant with gallery support, on the other hand, must use the ApplicationId from Google Photos. So both do not use com.google.android.gsf as ApplicationId.
However, both variants of the app register a provider with the id com.google.android.gsf.gservices. This provider is of course included in the app com.google.android.gsf and that is why the installation does not work, because there can never be two providers with the same ID. This therefore has nothing to do with signing (except when using Google Photos).

But they should be sandboxed. Why do they conflict on different workprofiles?

This has already been answered perfectly by Daniel. Here is a quote:

when you install an app in any user / work profile, it installs the apk globally and enforces key pinning / downgrade protection based on the currently installed one
if you update the app in any profile, it updates it globally, you don't have to update it in each
it doesn't keep a separate copy of the apk for each profile where an app is installed and they don't need to be separately updated, and the key pinning / downgrade protection is enforced across all

So why do I continue to maintain this app, even though I use GrapheneOS myself and could simply use the app com.google.android.gsf? GSF not only provides the necessary interfaces to get Google Camera working, but also takes care of other things. These additional interfaces, which do not exist in my app, can have (side) effects on other apps.
Providing only the bare essentials has always been a core feature of this project. Before I put this app together, you could get Gcam to work with microg (of course also in a sandbox and without privileges like any app), but there were a lot of side effects.
By the way, questions similar to these have already been answered in previous issues. This is not a bug in my app, but a reasonable restriction of the OS.

There's something I can hardly understand : If you install play services on main profile, don't log in, and restrict every privilege including Network, where would be the security issue ? What is the value-added of Gcam-Services-Provider then ?
Anyway, thanks @lukaspieper, too bad I can't use your solution, thank you anyway for your time and your involvement in the community !

If you install play services on main profile, don't log in, and restrict every privilege including Network, where would be the security issue ? What is the value-added of Gcam-Services-Provider then ?

I have not used the word security at all so far, for the simple reason that there is no security benefit. I have only talked about compatibility and side effects. It may be that GSF causes side effects on other apps.
But now let's talk in practical terms. This app has been around much longer than the GrapheneOS compatibility layer. From today's perspective, I might not have developed this app at all, but more than a year and a half ago there was no good alternative.
For all those who use the new compatibility layer in GrapheneOS, my app is no longer usable. For many other users (there are also users without GrapheneOS), my app is still the best way to go. Also, the preview button does not work with GSF and without Google Photos, which is a new feature here since a few versions.

Anyway, thanks @lukaspieper, too bad I can't use your solution, thank you anyway for your time and your involvement in the community !

You're welcome.

@lukaspieper Thank you for being so responsive with explaining things in this thread. I'm new to Graphene and trying to follow: Is it possible to use the Photos version of this app on Graphene? I get an error that it cannot install "due to unknown error", even if I've completely uninstalled Graphene's play store/services/framework apps. My main interest is to get gcam's Photos shortcut to work.

Nevermind, I found the Calyx Photos Preview app!

Also you found a suitable solution let me answer one or two things (for future readers).

Is it possible to use the Photos version of this app on Graphene?

Yes absolutely. The compatibility restrictions of the basic version apply plus the fact that you cannot have Google Photos installed.

I get an error that it cannot install "due to unknown error", even if I've completely uninstalled Graphene's play store/services/framework apps.

There are technical solutions to get the real cause of the issue. For the average user that error messages would not be too advanced. As I had this a few days back I might need to consider documenting the steps somewhere.


Failing test: test_ds_interface, because rhs() is null for NewtonEulerDS

After the recent refactor I am not sure whether this is correct or not, so I pose the question:  the test test_ds_interface in test_dynamical_systems.py fails because in the case of NewtonEulerDS, the assertion assert ds.rhs() is not None fails.  However, I see that in NewtonEulerDS::computeRhs(), the computation is only performed if _wrench is non-null, otherwise nothing happens.  Is it correct, or is the assertion now incorrect in assuming that rhs() should always be defined?

Le 9 mai 2017 à 19:09, Stephen Sinclair<EMAIL_ADDRESS>a écrit :
After the recent refactor I am not sure whether this is correct or not, so I pose the question: the test test_ds_interface in test_dynamical_systems.pyfails because in the case of NewtonEulerDS, the assertion assert ds.rhs() is not None fails. However, I see that in NewtonEulerDS::computeRhs(), the computation is only performed if _wrench is non-null, otherwise nothing happens. Is it correct, or is the assertion now incorrect in assuming that rhs() should always be defined?

I leave this failing test for NewtonEuler as a reminder, to handle (later …) this rhs problem in NewtonEuler.
In DynamicalSystems, I think (but we may discuss that)  that rhs() should always be defined as soon as initRhs() has been called to fill xdot vector properly (see for example LagrangianDS.cpp). This is mandatory for lsodar for instance.
If so, the implementation of this initRhs in NewtonEuler should be properly done, especially to set _x[1].
This will fix the test_dynamical_systems.py error.


Feature Request: itemDefaults for completions to be combined with completion item

In Pylance, we return a lot of duplicate data in our completion list. We'd like to use the new itemDefaults for completions.
However, some of the data is not duplicated. Only parts of it. But if we send back itemDefaults, they're not combined with the data on each item.
Here's an example completion result:
{
    "itemDefaults": {
         "data": {
              filePath: "root/test.py",
              position: { line: 0, col: 1 },
              workspacePath: "root"
         }
    }
    items: [
         {
             label: "foo",
             kind: 6
             data: {
                  symbolLabel: "foo"
             }
         },
         {
             label: "bar",
             kind: 6
             data: {
                  symbolLabel: "bar"
             }
         }
    ]
}

When a resolve happens (if we send the data this way), the filePath, position, and workspacePath are lost.
Resolve completionItem:
{
      label: "foo",
      kind: 6
      data: {
            symbolLabel: "foo"  // No filePath, position, or workspacePath
      }
}

I believe that's because this line here picks one or the other:
https://github.com/microsoft/vscode-languageserver-node/blob/4b77bb4d2e47dbfeeed6c263c28054eced60e030/client/src/common/protocolConverter.ts#L591
Would it be a breaking change to change this line in the protocolConverter.ts to something like this instead?
   const data = {...(defaultData ?? {}), ... (item.data ?? {});

If that's agreeable, I can submit a PR. Thanks.

Or maybe a different change would be to add something to the spec that allows the combination of data. The main goal is to dedupe data on every completionItem.

Looks like a dup to https://github.com/microsoft/language-server-protocol/issues/1802 for me.
The spec currently states that if a item defines items available in the items default it is a replace operation and not a merge operation. So changing the code is not an option since it could break existing users.
Lets continue the discussion in the other item


Provide [entryname] for output.chunkFilename and output.namedChunkFilename

This will allow to group all the entry related code under a single dir or prefix.
It would also be nice to have similar feature for ExtractTextPlugin.

Not possible, because two entries can share an additional chunk. The ExtractTextPlugin can use [name] which is the entry name.


Goto definition and refactor rename confused with local variable and global variable of same name

In the following code:
import random

def get_a_name():
    name = raw_input('Hello! What is your name?\n')
    return name

guesses_made = 0
number = random.randint(1, 20)
name = get_a_name()
print 'Well, {0}, I am thinking of a number between 1 and 20.'.format(name)

Press F12, or do Refactor->Rename on name inside of format(name).
F12 will take you to the name on the left of raw_input.
Rename will result in this, where the name that was selected when renaming isn't changed.
def get_a_name():
    refactored_name = raw_input('Hello! What is your name?\n')
    return refactored_name

guesses_made = 0
number = random.randint(1, 20)
name = get_a_name()
print 'Well, {0}, I am thinking of a number between 1 and 20.'.format(name)

No longer repros, probably since #3166


VideoDecoderTheoraPlayer:  Fixed TheoraPlayer updating issue with 4K …

Issues :

Currently the video texture is not an OverlayTexture so it will perform a resize from the origin size -> pow2 in main thread.
The way we handle video decoding with multithreading is wrong, it can't handle videos with frame rate higher than half of the game fps

Fixed multithreading video updating issue
there was a new test case for it, you can enable

Formal Notes

RN:
RN:
NoRN:

Description, Motivation and Context

Link to issue: Fixes ?
Link to reference doc: ?

How Has This Been Tested?

Command line to run all the tests that I run locally:
ham Run_ci

Types Of Changes

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that causes existing functionality to change)
[ ] Documentation (code docs, comments, or changes to the doc systems)
[ ] Testing/Build (test coverage or the test/build subsystems themselves)
[ ] Packaging (adds examples or modifies a release package)

The way we handle video decoding with multithreading is wrong, it can't handle videos with frame rate higher than half of the game fps

Half of the game fps limit might be a bug, but the video decoder is meant to decode video textures as a low priority task, not for a full fledge video player.
I'm not against making it more flexible, but the default should remain for the current use case. I elaborated a bit more on this in one of the comments.


Pylance is using path to environment folder as interpreter path

[Info  - 1:44:07 PM] (21220) Pylance language server 2023.2.10 (pyright 01758105) starting
[Info  - 1:44:07 PM] (21220) Server root directory: /home/username/.vscode/extensions/ms-python.vscode-pylance-2023.2.10/dist
[Info  - 1:44:07 PM] (21220) Starting service instance "venvtest"
[Info  - 1:44:07 PM] (21220) No configuration file found.
[Info  - 1:44:07 PM] (21220) No pyproject.toml file found.
[Info  - 1:44:07 PM] (21220) Setting pythonPath for service "venvtest": "/home/username/Desktop/Tests/Python/venvtest/.venv"
[Warn  - 1:44:07 PM] (21220) stubPath /home/username/Desktop/Tests/Python/venvtest/typings is not a valid directory.
[Info  - 1:44:07 PM] (21220) Assuming Python platform Linux
[Info  - 1:44:07 PM] (21220) Searching for source files
[Info  - 1:44:07 PM] (21220) Found 1 source file
[Info  - 1:44:07 PM] (21220) Background analysis(1) root directory: /home/username/.vscode/extensions/ms-python.vscode-pylance-2023.2.10/dist
[Info  - 1:44:07 PM] (21220) Background analysis(1) started

Originally posted by @zebra-f in https://github.com/microsoft/vscode-python/issues/20644#issue-1569813748

me neither, but as I have said, there is a problem- Import "numpy" could not be resolved Pylance...

@zebra-f You reported here https://github.com/microsoft/vscode-python/issues/20644#issuecomment-1416702458 you were seeing the above behavior.
Fix should be out in the pre-release version of the extension in half a hr, use the following to try it out:

Thanks!

@karrtikr

Fix should be out in the pre-release version of the extension in half a hr, use the following to try it out:

From quick test it looks like everything works fine with Pre-Release Version.


height for input-group

Hi, I noticed the height was slightly off for fields in an input-group, here's my fix for the single only:
.input-group {
	$height: ($input-font-size + $form-spacing * 1.5);

	.select2-container--foundation {

		.select2-selection--single,
		.selection .select2-selection--single {
			height: $height;

			.select2-selection__arrow {
				height: $height;
			}
		}
	}
}

@ArtDepartmentMJ Thanks for letting me know. I've confirmed the issue. I'll apply the height similar to how it is done in https://github.com/zurb/foundation-sites/blob/develop/scss/forms/_input-group.scss#L92


Please add a license file and a screen shot

I'd like to add this to awesome-zsh-plugins, but I prefer to add themes with screen shots in the readme so that users can see what they look like without having to install them.
Also, please add a license file, some people won't use any code that doesn't have an open source license. If you don't have one in mind, https://choosealicense.com is a good resource to help you select an appropriate one.
Thanks!

Awesome! Adding this to awesome-zsh-plugins would be great. I've added a license and some screen shots. 👏


Gigaspeech egs in Kaldi stopped

When I train Gigaspeech in kaldi/egs/gigaspeech. It stopped during extracting feat as shown below, how can I solve it?
....
======Extract feat START | current time : 2022-09-08-23:36:51==========
steps/make_mfcc.sh --cmd run.pl --nj 30 data/gigaspeech_dev exp/make_mfcc/gigaspeech_dev mfcc
steps/make_mfcc.sh: moving data/gigaspeech_dev/feats.scp to data/gigaspeech_dev/.backup
utils/validate_data_dir.sh: Successfully validated data-directory data/gigaspeech_dev
steps/make_mfcc.sh [info]: segments file exists: using that.
steps/make_mfcc.sh: Succeeded creating MFCC features for gigaspeech_dev
steps/compute_cmvn_stats.sh data/gigaspeech_dev exp/make_mfcc/gigaspeech_dev mfcc
Succeeded creating CMVN stats for gigaspeech_dev
steps/make_mfcc.sh --cmd run.pl --nj 30 data/gigaspeech_test exp/make_mfcc/gigaspeech_test mfcc
steps/make_mfcc.sh: moving data/gigaspeech_test/feats.scp to data/gigaspeech_test/.backup
utils/validate_data_dir.sh: Error: in data/gigaspeech_test, speaker lists extracted from spk2utt and cmvn
utils/validate_data_dir.sh: differ, partial diff is:
--- /tmp/kaldi.LRoo/speakers	2022-09-08 23:37:28.100356559 +0800
+++ /tmp/kaldi.LRoo/speakers.cmvn	2022-09-08 23:37:28.096356455 +0800
@@ -12301,3 +12301,2 @@
YOU1000000101_S0000152
-YOU1000000101_S0000153
YOU1000000101_S0000154
...
YOU1000000192_S0000233
-YOU1000000192_S0000234
YOU1000000192_S0000235
@@ -25618,2 +25376 @@
YOU1000000192_S0000247
-YOU1000000192_S0000248
[Lengths are /tmp/kaldi.LRoo/speakers=25619 versus /tmp/kaldi.LRoo/speakers.cmvn=25376]

Could you check if your feature extraction failed for certain IDs (see the diff)

I looked into utils/validate_data_dir.sh, found the code which generated the error shown above,
286 if [ -f $data/cmvn.scp ]; then
287   check_sorted_and_uniq $data/cmvn.scp
288   cat $data/cmvn.scp | awk '{print $1}' > $tmpdir/speakers.cmvn
289   cat $data/spk2utt | awk '{print $1}' > $tmpdir/speakers
290   if ! cmp -s $tmpdir/speakers{,.cmvn}; then
291     echo "$0: Error: in $data, speaker lists extracted from spk2utt and cmvn"

It compares first column of these 2 files
data/gigaspeech_test/cmvn.scp
data/gigaspeech_test/spk2utt
I used command vimdiff to compare 2 files
$> vimdiff data/gigaspeech_test/cmvn.scp data/gigaspeech_test/spk2utt
found the first difference is as shown below - there is a id jump in cmvn.scp, from YOU1000000101_S0000152 to YOU1000000101_S0000154, which supposed to be YOU1000000101_S0000153, I think.
12301 YOU1000000101_S0000152 /home/xxx/storage/original_storage_folder/kaldi/egs/gigaspeech/s5/mfcc   12301 YOU1000000101_S0000152 YOU1000000101_S0000152
12302 YOU1000000101_S0000154 /home/xxx/storage/original_storage_folder/kaldi/egs/gigaspeech/s5/mfcc   12302 YOU1000000101_S0000153 YOU1000000101_S0000153

That means it failed to extract mfcc/cmvn for YOU1000000101_S0000153. You can check the logs and see what happens. Or you can modify your file to skip it.

I checked log
exp/make_mfcc/gigaspeech_test/cmvn_gigaspeech_test.log
It complains
 2 WARNING (compute-cmvn-stats[5.5.1038~1-9af2c]:main():compute-cmvn-stats.cc:107) Did not find features for utterance YOU1000000101_S0000153
  3 WARNING (compute-cmvn-stats[5.5.1038~1-9af2c]:main():compute-cmvn-stats.cc:123) No stats accumulated for speaker YOU1000000101_S0000153

Then I check feature file
mfcc/cmvn_gigaspeech_test.scp
found YOU1000000101_S0000153 is not there, then check feature extraction log
exp/make_mfcc/gigaspeech_test/make_mfcc_gigaspeech_test.15.log
found that YOU1000000101_S0000153 is skipped because it is too short
WARNING (extract-segments[5.5.1038~1-9af2c]:main():extract-segments.cc:158) Segment YOU1000000101_S0000153 too short, skipping it.
Should we change utils/validate_data_dir.sh to fix this? like remove those utterances that are missing in feature scp file?

I wouldn't touch the validation script. Instead, you should remove these lines manually or try to figure out why you didn't get features for these lines.

@leo1980 imho, this question is really not supposed to be asked here.
This repo is all about the dataset itself, whereas the question you are diving into is essentially a recipe thing, which are supposed to be maintained by various toolkits owners.  So the maintainers of this repo are not guaranteed to help you out with very specific advices, unless you track the problem down and find out there's indeed an upstream dataset error, which I think is probably not the case.
I'm not sure if you can get quick responses from Kaldi community, the next-gen Kaldi community should be much more active.
One fact that might be helpful to you, is that all training utterances in GigaSpeech are guaranteed to have a duration >= 0.5 sec. If this is not the case for your local copy, this repo contains strict MD5 checking tool(in utils/) to help you with the consistency validation.  And it's always worth it to make sure your local data is consistent with the release before any large-scale/serious experiments and trainings, particularly for large dataset like GigaSpeech.


Updates underline to use ins tag (via ++)

Markdown will underline ins text by default, and bolds __.

Hi @codenamev ,
You can use config object to over-ride the defaults provided by the lib: https://github.com/jpuri/draftjs-to-markdown/blob/master/js/index.js#L553
I will add this more clearly to readme.

You can use my version that already solves this problem of compatibility with the library just by adding new properties to your config by invoking the standard draftToMarkdown function.
LINK PULL REQUEST


provisioner.options.extra-vars in molecule.yml no longer takes dict as input

Issue Type

Bug report

Molecule and Ansible details
ansible 2.10.6
  config file = None
  configured module search path = ['/home/gitlab-runner/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python3.9/site-packages/ansible
  executable location = /usr/local/bin/ansible
  python version = 3.9.2 (default, Mar  3 2021, 09:23:36) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)]
molecule 3.2.3 using python 3.9
    ansible:2.10.6
    delegated:3.2.3 from molecule
    docker:0.3.3 from molecule_docker

Molecule installation method (one of):

pip

Ansible installation method (one of):

pip

Detail any linters or test runners used:
We use the yaml-lint and ansible-lint
lint: |
        yamllint . && ansible-lint .

Desired Behavior
The way we pass extra_vars is as given below in the molecule.yml
provisioner:
  name: ansible
  options:
    extra-vars:
      testing: 1234
  lint:
    name: ansible-lint
  env:
    ANSIBLE_ROLES_PATH: "${CI_PROJECT_DIR}/roles"

The expected behavior is to see the variable testing available in the converge step
This is breaking the converge step when the molecule > 3.2.0 tries to run the an
Actual Behaviour
The actual behaviour is an error from the shlex library
[root@04a7f4bae124 java]# molecule --debug converge
DEBUG    Validating schema /home/avictor/roles/java/molecule/default/molecule.yml.
INFO     default scenario test matrix: dependency, create, prepare, converge
INFO     Running default > dependency
WARNING  Skipping, dependency is disabled.
WARNING  Skipping, dependency is disabled.
INFO     Running default > create
WARNING  Skipping, instances already created.
INFO     Running default > prepare
WARNING  Skipping, prepare playbook not configured.
INFO     Running default > converge
INFO     Sanity checks: 'docker'
DEBUG: ANSIBLE ENVIRONMENT:
ANSIBLE_COLLECTIONS_PATH: /home/avictor/.cache/molecule/java/default/collections:/home/avictor/.ansible/collections:/usr/share/ansible/collections:/etc/ansible/collections
ANSIBLE_CONFIG: /home/avictor/.cache/molecule/java/default/ansible.cfg
ANSIBLE_FILTER_PLUGINS: /usr/local/lib/python3.9/site-packages/molecule/provisioner/ansible/plugins/filter:/home/avictor/.cache/molecule/java/default/plugins/filter:/home/avictor/roles/java/plugins/filter:/home/avictor/.ansible/plugins/filter:/usr/share/ansible/plugins/filter
ANSIBLE_FORCE_COLOR: '1'
ANSIBLE_LIBRARY: /usr/local/lib/python3.9/site-packages/molecule/provisioner/ansible/plugins/modules:/home/avictor/.cache/molecule/java/default/library:/home/avictor/roles/java/library:/home/avictor/.ansible/plugins/modules:/usr/share/ansible/plugins/modules
ANSIBLE_ROLES_PATH: /home/avictor/.cache/molecule/java/default/roles:/home/avictor/roles:/home/avictor/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/roles

DEBUG: MOLECULE ENVIRONMENT:
MOLECULE_DEBUG: 'True'
MOLECULE_DEPENDENCY_NAME: galaxy
MOLECULE_DRIVER_NAME: docker
MOLECULE_ENV_FILE: /home/avictor/roles/java/.env.yml
MOLECULE_EPHEMERAL_DIRECTORY: /home/avictor/.cache/molecule/java/default
MOLECULE_FILE: /home/avictor/.cache/molecule/java/default/molecule.yml
MOLECULE_INSTANCE_CONFIG: /home/avictor/.cache/molecule/java/default/instance_config.yml
MOLECULE_INVENTORY_FILE: /home/avictor/.cache/molecule/java/default/inventory/ansible_inventory.yml
MOLECULE_PROJECT_DIRECTORY: /home/avictor/roles/java
MOLECULE_PROVISIONER_NAME: ansible
MOLECULE_SCENARIO_DIRECTORY: /home/avictor/roles/java/molecule/default
MOLECULE_SCENARIO_NAME: default
MOLECULE_STATE_FILE: /home/avictor/.cache/molecule/java/default/state.yml
MOLECULE_VERIFIER_NAME: testinfra
MOLECULE_VERIFIER_TEST_DIRECTORY: /home/avictor/roles/java/molecule/default/tests

DEBUG: SHELL REPLAY:
ANSIBLE_COLLECTIONS_PATH=/home/avictor/.cache/molecule/java/default/collections:/home/avictor/.ansible/collections:/usr/share/ansible/collections:/etc/ansible/collections ANSIBLE_CONFIG=/home/avictor/.cache/molecule/java/default/ansible.cfg ANSIBLE_FILTER_PLUGINS=/usr/local/lib/python3.9/site-packages/molecule/provisioner/ansible/plugins/filter:/home/avictor/.cache/molecule/java/default/plugins/filter:/home/avictor/roles/java/plugins/filter:/home/avictor/.ansible/plugins/filter:/usr/share/ansible/plugins/filter ANSIBLE_FORCE_COLOR=1 ANSIBLE_LIBRARY=/usr/local/lib/python3.9/site-packages/molecule/provisioner/ansible/plugins/modules:/home/avictor/.cache/molecule/java/default/library:/home/avictor/roles/java/library:/home/avictor/.ansible/plugins/modules:/usr/share/ansible/plugins/modules ANSIBLE_ROLES_PATH=/home/avictor/.cache/molecule/java/default/roles:/home/avictor/roles:/home/avictor/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/roles MOLECULE_DEBUG=True MOLECULE_DEPENDENCY_NAME=galaxy MOLECULE_DRIVER_NAME=docker MOLECULE_ENV_FILE=/home/avictor/roles/java/.env.yml MOLECULE_EPHEMERAL_DIRECTORY=/home/avictor/.cache/molecule/java/default MOLECULE_FILE=/home/avictor/.cache/molecule/java/default/molecule.yml MOLECULE_INSTANCE_CONFIG=/home/avictor/.cache/molecule/java/default/instance_config.yml MOLECULE_INVENTORY_FILE=/home/avictor/.cache/molecule/java/default/inventory/ansible_inventory.yml MOLECULE_PROJECT_DIRECTORY=/home/avictor/roles/java MOLECULE_PROVISIONER_NAME=ansible MOLECULE_SCENARIO_DIRECTORY=/home/avictor/roles/java/molecule/default MOLECULE_SCENARIO_NAME=default MOLECULE_STATE_FILE=/home/avictor/.cache/molecule/java/default/state.yml MOLECULE_VERIFIER_NAME=testinfra MOLECULE_VERIFIER_TEST_DIRECTORY=/home/avictor/roles/java/molecule/default/tests

Traceback (most recent call last):
  File "/usr/local/bin/molecule", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.9/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.9/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/click/decorators.py", line 21, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/molecule/command/converge.py", line 104, in converge
    base.execute_cmdline_scenarios(scenario_name, args, command_args, ansible_args)
  File "/usr/local/lib/python3.9/site-packages/molecule/command/base.py", line 113, in execute_cmdline_scenarios
    execute_scenario(scenario)
  File "/usr/local/lib/python3.9/site-packages/molecule/command/base.py", line 155, in execute_scenario
    execute_subcommand(scenario.config, action)
  File "/usr/local/lib/python3.9/site-packages/molecule/command/base.py", line 144, in execute_subcommand
    return command(config).execute()
  File "/usr/local/lib/python3.9/site-packages/molecule/logger.py", line 185, in wrapper
    rt = func(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/molecule/command/converge.py", line 83, in execute
    self._config.provisioner.converge()
  File "/usr/local/lib/python3.9/site-packages/molecule/provisioner/ansible.py", line 693, in converge
    return pb.execute()
  File "/usr/local/lib/python3.9/site-packages/molecule/provisioner/ansible_playbook.py", line 107, in execute
    result = util.run_command(self._ansible_command, debug=self._config.debug)
  File "/usr/local/lib/python3.9/site-packages/molecule/util.py", line 144, in run_command
    result = run(
  File "/usr/local/lib/python3.9/site-packages/subprocess_tee/__init__.py", line 103, in run
    cmd = join(args)
  File "/usr/local/lib/python3.9/shlex.py", line 320, in join
    return ' '.join(quote(arg) for arg in split_command)
  File "/usr/local/lib/python3.9/shlex.py", line 320, in <genexpr>
    return ' '.join(quote(arg) for arg in split_command)
  File "/usr/local/lib/python3.9/shlex.py", line 329, in quote
    if _find_unsafe(s) is None:
TypeError: expected string or bytes-like **object**

The error is from the shlex library (used by subprocess_tee library) trying to escape the command strings -- pull #2917 and this file
Reproducing
This should be self explanatory
[root@04a7f4bae124 java]# python3
Python 3.9.2 (default, Mar  3 2021, 09:23:36)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from subprocess_tee import run
>>> args=['ansible-playbook', '--diff', '--extra-vars', {'testing': 1234}, '--inventory', '/home/gitlab-runner/.cache/molecule/java/default/inventory', '--skip-tags', 'molecule-notest,notest', '/home/gitlab-runner/roles/java/molecule/default/converge.yml']
>>> run(args)
run string=['ansible-playbook', '--diff', '--extra-vars', **{'testing': 1234}**, '--inventory', '/home/gitlab-runner/.cache/molecule/java/default/inventory', '--skip-tags', 'molecule-notest,notest', '/home/gitlab-runner/roles/java/molecule/default/converge.yml']
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.9/site-packages/subprocess_tee/__init__.py", line 104, in run
    cmd = join(args)
  File "/usr/local/lib/python3.9/shlex.py", line 320, in join
    return ' '.join(quote(arg) for arg in split_command)
  File "/usr/local/lib/python3.9/shlex.py", line 320, in <genexpr>
    return ' '.join(quote(arg) for arg in split_command)
  File "/usr/local/lib/python3.9/shlex.py", line 329, in quote
    if _find_unsafe(s) is None:
TypeError: expected string or bytes-like object

Please note that extra-vars as a dict were working until molecule=3.1.x.

In my case this error happens when I specify a forks option with a numeric value like this:
provisioner:
  name: ansible
  log: true
  options:
    vv: true
    forks: 20

If I change it to a string molecule works fine:
provisioner:
  name: ansible
  log: true
  options:
    vv: true
    forks: '20'

I see that your testing extra_option has a numeric value, could that be a problem as well?

@hluaces yup.. i have seen that molecule > 3.2 doesnt treat the integers in molecule.yml kindly. They have to be quoted to be passed on as args in the commandline.
However the issue is that extra-vars is not working with a dict as its value.

extra-vars as a string -- 👍
extra-vars as a int -- 👍 when quoted; 👎 when not quoted
extra-vars as a dict -- 👎;but 👍 when passed as string;  something like this

provisioner:
  name: ansible
  options:
    extra-vars: "{'testing': 1234}"
  lint:

and this works..
Commandline is
COMMAND: ansible-playbook --diff --extra-vars '{'"'"'testing'"'"': 1234}' --inventory /home/avictor/.cache/molecule/java/default/inventory --skip-tags molecule-notest,notest /home/avictor/roles/java/molecule/default/converge.yml

But this way, we loose the flexibility of dicts and ymls.
Thoughts?

is this feature still required?
If yes, I'll try to fix it


Add ability to skip (next track)

Add skip command to move to the next track. Suggested command:
spty player skip

Fix / implements this in 0.2.0


Mandatory package rule

Sometimes, each project should have the same package (for example, roslyn diagnostic package (such as VSDiagnostics).
SolutionCop should check, that all projects have this mandatory package

Yeah, good idea. Of course it requires exceptions list.

In progress


feat(client-debugger): Add system for generating visual summary trees for DDS_s

This PR adds a system to the debugger which can generate visual summary trees for DDS_s provided to the debugger (as well as nested DDS_s).
Visual Tree Format
Here, I have taken the design approach of having the debugger generate visual descriptions of DDS contents. Consumers of these visual trees can then process the visual data as they see fit, but the assumption is that they will be rendered in some sort of tree/graph-like representation.
See VisualTree.ts for the specific types.
Consumers can pattern match on the NodeKind associated with each node.
Data can be requested for a FluidHandleNode via the GET_DATA_VISUALIZATION message.
This will yield a DATA_VISUALIZATION message containing a FluidObjectNode tree to be rendered.
Messaging Flow
The following sample can be found in Overview.md. It offers a high-level summary of the message-passing flow for "rendering" visual trees describing DDS contents.
sequenceDiagram
participant Application
participant Debugger
participant Consumer

Application->>Debugger: Initialize debugger
Consumer-->>Debugger: "GET_ROOT_DATA_VISUALIZATIONS"
Debugger->>Consumer: "ROOT_DATA_VISUALIZATIONS" ([handle1, handle2, ..., handleN])
loop renderTrees
	Consumer->>Consumer: renderTree(handle.id)
end
Consumer-->>Debugger: "GET_DATA_VISUALIZATION" (id)
Debugger->>Consumer: "DATA_VISUALIZATION" (visualization)

Initial rendering (and subsequent automatic updates) can be initiated by the consumer via the GET_ROOT_DATA_VISUALIZATIONS message. This will generate a list of FluidHandleNodes for any rootData provided to the debugger at initialization time.
While recursively rendering visualization trees, any time a FluidHandleNode is encountered, its corresponding data can be requested via GET_DATA_VISUALIZATION.
Once a DDS's data has been requested this way for the first time, subsequent changes will automatically result in DATA_VISUALIZATION messages being posted, so consumers will not need to poll for updates or anything like that. So long as they subscribe to the DATA_VISUALIZATION message, they will receive updates automatically.
Notes for Reviewers
Primary points of note for the review:

VisualTree.ts: Contains a grammar for describing visual summary trees for DDS data. Interested in thoughts on type names here as well as the underlying data format.
DataVisualization.ts": Contains a lazy / incremental system for generating visual summary trees. The entry-point (used initialized by the debugger) is the DataVisualizerGraph. Generates VisualNodes on demand on a per-DDS granularity.

Follow-Up Work
The current implementation has some limitations that should be fixed before MVP.
The most important issue currently is that, once a visualization has been requested for a DDS, we never clean that visualizer node up. So even if the associated DDS becomes unreachable by walking rootData, we currently will never dispose of the corresponding node, and will continue to broadcast updates. For applications that create many dynamic DDSs, this may result in non-trivial memory leakage. We will need to add some dependency tracking to ensure we can clean up resources as needed. The plan is to do this in a subsequent PR.
We also will likely want to broadcast visual tree diffs, rather than complete trees, when posting updates. But we can address this as performance demands.
These follow-up considerations are also noted in Overview.md.

Note that GET_ROOT_DATA_VISUALIZATIONS returns a list of handle nodes, rather than full trees describing the root DDSs. This isn't strictly necessary, but it does have a couple of advantages:

We don't waste any time "rendering" child contents until explicitly requested (via GET_DATA_VISUALIZATION)
Enforces a pattern when consumers always start with handles, and have to explicitly make requests for the corresponding data (i.e. it makes the initial part of the flow less "special").

Interested in thoughts on this as well 🙂

Approved with minor concern: During testing of different data types, casting some data objects to ISharedObject may fail, potentially resulting in errors and causing the page to break.

Good call! And the case that was a failure mode also represents a case where we probably want to display some disclaimer to the user on the extension side. I added an UnknownObjectNode type to the tree grammar to represent this case.
@jikim-msft FYI, since you'll have to handle this case on the extension side.

Minor thing, and a grammar thing still open from before, I believe? But 🚀 .

Totally missed that lingering comment. I cleaned that up as well. Thanks!


[AA-1338] Hangfire brings down Postgres if not managed correctly

I don't know of the context, but @jamessmckay and @CSR2017 but something to look out for here: we already have class HangFireInstance which seems to be making a few similar statements about what database engine we're connected to and how to establish sotrage for Postgres and SQL Server, so if this addition to Startup is right I suspect the old code is at best dead and at worst conflicting/redundant. Suganya, what do you think about the timeout durations with respect to how long these jobs tend to run in production?

@pmcvtm can you evaluate if this pull request is still relevant? And if not, can you go ahead and close it please?

Sounds like some of this may have already been addressed, or was an edge case. I am closing this but @jamessmckay if you are still having an issue and have a solution or proposal that meets your need, let us know.


Automatically force generation of debug info

This looks good.  The BCOpts is a nice cleanup, and I like that it defaults to adding the debug flag.


Catastrophic forgetting problem

Hi dear:
Thanks for your open source, but when i finetuned (whatever full parameters or LoRa ) on my dataset, catastrophic forgetting kept coming up (decrease in performance on the humaneval), i do not know how to solve it, do you have any tops?

If you fine-tune on the Instruct model, I think such a phenomenon is normal. There are two reasons for this: one is that your data is inferior compared to the original data used to fine-tune  the Instruct model, and the other reason is that further fine-tuning on the Instruct model could lead to overfitting.

Thx, i will continue to check my data quality.


test(RHTAPWATCH-382): test get-uid-map.sh

Reworked scripts from #20.
created sample test to test get-uid-map.sh returned output.
Modified kwok/user-signups.sh to patch complaintUsername to usersignup yaml.

How to test:

First build the image using podman build --build-arg CLUSTER_NAME=tester -t kwok -f kwok/Dockerfile .
Now run the go test

Since #20 is not merged yet, please help @Omeramsc get things right there instead of modifying it again here.


autopano-pro needs to be versioned

https://github.com/caskroom/homebrew-cask/blob/master/Casks/autopano-pro.rb#L10.

Already done.


Performance improvements

This PR improves multithreading, which results some performance increases.

 Results
  =========

  A ratio greater than 1.0 denotes a possible regression (marked with :x:),
  while a ratio less than 1.0 denotes a possible improvement (marked with
  :whitecheckmark:). Only significant results - results that indicate possible
  regressions or improvements - are shown below (thus, an empty table means
  that all benchmark results remained invariant between builds).


test LND v0.7.0 - includes "edge not found" fix

LND v0.7.0 contains a bug fix to avoid the "edge not found" error considered to be a lnd database corruption caused by a "deadlock" and hit by at least eight Raspiblitz nodes.  It's important we test this release and nodes upgrade to it.  Note: does not fix DB corruption so nodes with this will need to reinstall and recover/restore. @rootzoll @openoms

There is a potential fix in upcoming LND v0.7.0 but it only avoids the problem for working nodes, it does not cure the problem for nodes already with the database corruption:
https://github.com/lightningnetwork/lnd/issues/3025#issuecomment-497458753

We've found a potential deadlock when polling GetInfo that could cause the daemon to not shut down cleanly, which would explain why users are experiencing this database issue.
The deadlock would cause lnd not to shut down completely, so if the process gets force killed then it's possible to run into database corruption. The fix is now in master and will be included in the upcoming v0.7.0 release, so it should prevent nodes with this fix from running into this issue. For any other nodes without this fix that continue to run into this issue, there's not much we can do other than the recommended recovery process.
With that said, I'll go ahead and close this for now. Once v0.7.0 is out and most Raspiblitz nodes have upgraded, we can re-examine any further reports if the issue seems to persist.

Originally posted by @fluidvoice in https://github.com/rootzoll/raspiblitz/issues/562#issuecomment-497939315

You can build from source up to the commit of your choice with this script:
https://github.com/openoms/bitcoin-tutorials/blob/master/lnd.from.source.sh
Run:
$ wget https://raw.githubusercontent.com/openoms/bitcoin-tutorials/master/lnd.from.source.sh && sudo bash lnd.from.source.sh
and it will ask for the commit ID from this list: https://github.com/lightningnetwork/lnd/commits/master.

I run into this issue recently (2 days ago). Not really sure what should I do: wait for new version? try to fix the database corruption? clean the hdd and restart again?
I'm not sure what to delete from the HDD, I would like to avoid downloading the blockchain again if possible. I do have the channels.backup, but is it corrupt? or what is exactly corrupt?

You can try if a update to LND v0.7-RC2 fixes this ... get to Teminal and run:
wget https://raw.githubusercontent.com/openoms/bitcoin-tutorials/master/lnd.update.v0.7.0-beta-rc2.sh && sudo bash lnd.update.v0.7.0-beta-rc2.sh

After that reboot: sudo shutdown -r now

no luck, same message
 [ERR] SRVR: unable to start server: edge not found

but it worked for a while, so I'm suspecting a hardware issue maybe? A new power supply is coming, but have some doubts about the recovery process. do I need to backup the macaroons and wallet.db/macaroons.db too?

Use the channel.backup to try to recover it but it doesn't, 0 satoshis, 0 channels, no history, everything is empty

no luck, same message
 [ERR] SRVR: unable to start server: edge not found

but it worked for a while, so I'm suspecting a hardware issue maybe? A new power supply is coming, but have some doubts about the recovery process. do I need to backup the macaroons and wallet.db/macaroons.db too?

Sorry to say, but this seems to be an unrecoverable error. It was fixed in a way that it won`t happen after lnd v.0.7.0, but unfortunately there is no  method to repair corrupted no node.
You will need to restore form seed and SCB as described here: https://github.com/rootzoll/raspiblitz/blob/master/FAQ.md#2-recover-from-wallet-seed and further issues discussed here: https://github.com/rootzoll/raspiblitz/issues/632

update to v0.7.0-beta-rc3
https://github.com/openoms/bitcoin-tutorials/tree/master/lnd.updates
Download and run this script on the RaspiBlitz:
$ wget https://raw.githubusercontent.com/openoms/bitcoin-tutorials/master/lnd.updates/lnd.update.v0.7.0-beta-rc3.sh && sudo bash lnd.update.v0.7.0-beta-rc3.sh
https://twitter.com/openoms/status/1145714613335613440

I deleted the lnd folder and recover with seed + channel.backup. It showing me my wallet balance and my channels are "Waiting Close Channel"

not sure how to proceed

I deleted the lnd folder and recover with seed + channel.backup. It showing me my wallet balance and my channels are "Waiting Close Channel"

not sure how to proceed

Restoring from the Static Channel Backup has successfully triggered a fore close on your channels. Will need to wait a day for the funds to become available as part of the on-chain balance,

update to v0.7.0-beta
Run the one-liner to update:
$ wget https://raw.githubusercontent.com/openoms/bitcoin-tutorials/master/lnd.updates/lnd.update.v0.7.0-beta-rc3.sh && sudo bash lnd.update.v0.7.0-beta-rc3.sh
https://github.com/openoms/bitcoin-tutorials/tree/master/lnd.updates#update-lnd-to-v070-beta
https://twitter.com/openoms/status/1146159431085899778

OK I was always hoping that 0.7.0 will "fix" LNDs having that error - nit just preventing it for the future. RaspiBlitz v1.3 will have LND 0.7.0 ... so i will close this issue.

Updated to v0.7.0 with the on-line without any issues, running fine now. Sorry this might be a bit offtopic, could find much help about the recovery process, Looks like some channels were closed but there's not settled balance and some funds are not appearing on the wallet. Will a re-scan help? looks like it will only with on-chain funds, but this seems to be from channels.

It may take some time until funds get available. You may want to join the telegram channel for assistance: https://t.me/raspiblitz


[20.03] wolfssl: v4.3.0 → v4.4.0

Motivation for this change
Backport #86997
Fixes: CVE-2020-11713
(cherry picked from commit 6baa4e74bfacf406f463f7ada4132e029341b18b)
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

@mcmtroffaes Do we need to wait for https://github.com/NixOS/nixpkgs/pull/86799 to be backported before backporting this?

@ryantm I don't think we need to wait for the curl update to get merged, as this wolfssl update doesn't break any existing builds currently in nixpkgs.

@mcmtroffaes That is true, but some people might be building curl with wolfsslSupport set to true, won't they be messed up?

@ryantm You're completely right. I had missed that curl had grown an option in nixpkgs to officially support the wolfssl build and was still doing my own local override. I've tested the new nixpkgs option, and yes, I agree, we should probably hold off merging this until curl has been updated.

Curl was merged. Is this good to go?

@Mic92 It doesn't look like curl was backported yet so nope.

ccing @lovek323  as curl maintainer.

Rebased on top of staging-20.03 where the curl version has been bumped. Can someone merge this, please?

Is the curl issue resolved?


Latest stable MicroPython (20210902) does not provide REPL at startup

Trying to use the 20210902 MicroPython .uf2 with the newest 0.14.2 rp2040js build does not start/display the friendly REPL
I used the instructions to run the local demo

Did older versions work for you?

Yes
Using the 20210618 MicroPython .uf2 works fine

Can you please try to find the earliest version where it stops working?

Stable MicroPython builds for the rp2040 jump from 20210618 to 20210902 (https://micropython.org/download/rp2-pico/) and so the earliest version it stops working is technically 20210902

Got it, there seem to be a lot of changes between these two versions, so it might take me some time to pinpoint the issue. Thanks for reporting!
What's your use case for the MicroPython simulation?

Turning mcu.logger to 'Debug' level in 'demo/micropython-run-ts' displays a lot of USB transfer messages with working 20210618 but none in 20210902.
My use case is simply messing around with it. I may try to use it to simulate graphics on a webpage using a MicroPython ssd1306 screen library in the future. Although, I have not seen an example of importing a 'custom' python file/module

Should be fixed now!


GitHub Actions: work with tox to build docs

Specifies how to install Python 3.x env and build docs
with tox command by adding into GitHub Actions - workflow yaml file
initially implemented through Default Azure Static Web App.

(Let's merge and see how it works..)


servant-pandoc now maintained by @ivan-m

Blocked by http-media:
base-<IP_ADDRESS> is out of bounds for:

[ ] http-media-0.7.1 (>=4.7 && < 4.10). No maintainer. @zmthy. Used by: library

Looks like http-media-<IP_ADDRESS> is out with support for base < 4.11.


Development Version syntax in Update Checker

Pretty self-explanatory. Need to implement functionality to convert prerelease tags (alpha, beta, pre, rc) to numbers and compare them in the update checking process. Will enable people to switch to "beta tester" mode and get notifications for new development versions they can test.

Implemented now.


[PATCH] fix a typo

In Debian we are currently applying the following patch to
Math-NoCarry.
We thought you might be interested in it too.
Description: fix a typo
Origin: vendor
Author: gregor herrmann<EMAIL_ADDRESS>Last-Update: 2016-02-20

The patch is tracked in our Git repository at
https://anonscm.debian.org/cgit/pkg-perl/packages/libmath-nocarry-perl.git/plain/debian/patches/spelling.patch
Thanks for considering,
gregor herrmann,
Debian Perl Group

Pull requests would be better :)

Filed a pull request for this issue (typo in doc)


compile error of undefined of c.Timeout

ns/ns.go:199: c.Timeout undefined (type *dns.Client has no field or method Timeout)

It doesn't show this error w/ my local and travis-ci.

If anyone else faces this error, it's because of you have older library.
go get -u github.com/miekg/dns

This command will fix it.


Save not returning to rodan (rodan wrapper)

The save button does not return the user to Rodan. This mean the edited file is not properly exported to Rodan and all changes are lost.

Fixed in 5c091a1. Edited MEI file successfully exports to Rodan as a corrected MEI file.


Why I can't properly _logout ??

Hi There,
I'm just so excited about all the possibilities that envoy gives to our team, we are really enjoying envisioning it for our next customers. The thing is, everything works perfectly but the _logout route.
The logout route returns a nice and clean ok true client side:
{"ok":true}

and a nice reply server side:
::ffff:<IP_ADDRESS> - - [16/Nov/2016:21:38:06 +0000] "GET /_logout HTTP/1.1" 200 11 "http://localhost:8100/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"

but I appear to be still logged in, when I try a get _auth client side:
{"loggedin":true,"username":"1479300601"}

server side:
::ffff:<IP_ADDRESS> - - [16/Nov/2016:21:38:10 +0000] "GET /_auth HTTP/1.1" 200 41 "http://localhost:8100/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"

I tried to install redis and redis-connect. It's working brillantly too but no way of logging out.
I tried to pass in PRODUCTION mode, same.
I'd like to be unauthed our platform is going to be hosted on tablets where users have to logout before the next user can use the same tablet.
Do I miss something ???
My stack
Ionic2
cloudant
pouchdb-envoy

Ok I've found the reason why _logout didn't work properly ....
Please add to your doc that you need to pass some credentials to the logout GET
This is the angular2 way :
let bodyString = null;
let headers = new Headers({ 'Content-Type': 'application/x-www-form-urlencoded' });
let options = new RequestOptions({ headers: headers, withCredentials:true });

    return this.http.get('http://<IP_ADDRESS>:9000/_logout', options)
        .map((res:Response) => res.json())
        .catch((error:any) => Observable.throw(error.json().error || 'Server error'));

The GET /_logout call simply deletes your user data from the session.
https://github.com/cloudant-labs/envoy/blob/master/lib/plugins/auth/default.js#L149
You're right that we always return "{ok: true}". That could be changed so that it only returns true if there was a user in session already. If you call GET /_logout without a cookie, then Envoy doesn't know which session you are participating in and will create a new session.

yes true,
but from my tests, and I've just redone it now, if I don't send {withCredentials:true} in my header I'm not logged out and session persists when reconnecting with a different envoy user, the previous user db contents are pushed to the new db.
When I add withCredentials:true to my logout header then the logout is correct.
Are you with me ?

The solution mentioned by numerized worked great for me too.  All I did was add the content-type header and the withCredentials:true to my http GET and it fixed the issue where my express session was remaining the same between two different envoy users, causing one to essentially read/write into the other.  Thanks for this!


Invoke-Kerberoast: Print hashes only. Formatting with a text editor is no longer required.

Changed the Write-Output line to print just the $HashFormat and not the whole PS object. This way you get output that you can directly copy/paste into a file that you send to hashcat/john without any other modification.

Great fix! Much easier to cut/paste now.


Allowing scavenger map items intake through mice map intake

and added map type to be sent to server, just in case we want it in future.
Downside is our map_mice table will be 1.6GB instead of two 800MB tables if we keep mice and items separately.

i think this pr can be closed since it's so old and there were so many changes since then. But it can be used as an example to fix scavenger maps intake.


Fix grammar and minor typos in documentation as well as Javadoc

See title.

@jxblum Thanks for fixing. LGTM, merging.


Delta diff MVP: documentation

Add public docs for the feature.

More needed details:

Diff plugin configurations under .lakefs.yaml
Contribution guide updates (regarding the delta diff plugin)


Weird error message when using dolt import

[oscarbatori:scratch] >> dolt table import people --pk=first -c test_data.csv
Data already exists.  Use -f to overwrite.

Should say "Table already exists".

I think the export table path was changed by the PR above not the import path.

@andrew-wm-arthur is gonna fix and make a bats test.

So it turns out that error code was used on both the import and export path. So, when we merged the PR one of our integration tests failed. @andrew-wm-arthur is going to make two different paths, one for export and one for import.


Doesn't work on Arch Linux

I've finally been able to install on my workstation (https://github.com/opscode/omnibus/pull/367), but I can't yet provision EC2 nodes with knife-ec2:
ec2-54-74-70-113.eu-west-1.compute.amazonaws.com Unable to determine platform version!
ec2-54-74-70-113.eu-west-1.compute.amazonaws.com Version: 12

Arch Linux is not a platform supported by omnitruck. See here for a list of supported platforms and other API information.
I too have run into this issue (trying to use test kitchen in my case) and am planning to patch in arch support and submit a PR.

So to quote install.sh,
This should now match ohai platform and platform_version matching

But this is not the case, since ohai actually recognizes archlinux now (although it does not correctly set something for platform_version, hence my PR #473)
I am writing a patch to make install.sh function like ohai in this regard.

Nevermind. Thoroughly examining install.sh shows a comment stating that arch (along with a bunch of other distros) will not be supported due to a lack of build infrastructure. Therefore, omnitruck will not work on arch, and this is not really a bug.
So this should probably be closed.

Yeah there's install instructions for arch here:
https://wiki.archlinux.org/index.php/Chef
Since arch is a rolling distro you can probably also just gem install it.  The major point of omnibus is to deal with CentOS5 and other ancient distros with out of date rubies and openssls which we didn't have any time to debug.  At least on arch you're likely to be more ahead of us than 10 years behind us.

closing because this is not a bug, and not really useful for prioritizing build platforms.
getting involved in IRC in the community meetings and the RFC process and lobbying for arch support there would be more useful.


Improve Prow job verification script

Description
Changes proposed in this pull request:
-We were facing the following issue during Prow job verification:
curl: (23) Failed writing body
{ "state": "pending",
Jobs failed or pending - Check Prow status
Error: Process completed with exit code 1.

Then we realized the status API was called immediately after the starting, therefore the state will be Faliled or Pending every time.
Added some extra output and parse the results with jq

Related issue(s)

/recheck-cla

/cla-recheck


Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.

Require cycle: node_modules/react-native-popup-dialog/dist/type.js -> node_modules/react-native-popup-dialog/dist/components/DialogButton.js -> node_modules/react-native-popup-dialog/dist/type.js
Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
React Native Environment Info:
System:
OS: macOS 10.14.2
CPU: (8) x64 Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
Memory: 295.50 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 10.13.0 - /usr/local/bin/node
Yarn: 1.12.3 - /usr/local/bin/yarn
npm: 6.4.1 - /usr/local/bin/npm
SDKs:
iOS SDK:
Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
Android SDK:
API Levels: 21, 23, 25, 26, 27, 28
Build Tools: 23.0.1, 25.0.2, 26.0.2, 26.0.3, 27.0.3, 28.0.3
System Images: android-23 | Intel x86 Atom_64, android-24 | Google Play Intel x86 Atom, android-28 | Google APIs Intel x86 Atom
IDEs:
Android Studio: 3.0 AI-171.4443003
Xcode: 10.1/10B61 - /usr/bin/xcodebuild
npmPackages:
react: 16.6.3 => 16.6.3
react-native: 0.57.8 => 0.57.8
npmGlobalPackages:
react-native-cli: 2.0.1
"dependencies": {
"lottie-react-native": "^2.5.10",
"react": "16.6.3",
"react-native": "0.57.8",
"react-native-amap-geolocation": "^0.3.2",
"react-native-animatable": "^1.3.0",
"react-native-image-crop-picker": "^0.21.3",
"react-native-modalbox": "^1.6.0",
"react-native-picker": "^4.3.7",
"react-native-popup-dialog": "^0.16.6",
"react-native-root-toast": "^3.0.2",
"react-native-scrollable-tab-view": "^0.10.0",
"react-native-storage": "^0.2.4",
"react-native-svg": "^8.0.10",
"react-native-svg-uri": "^1.2.3",
"react-native-swiper": "^1.5.14",
"react-navigation": "^2.18.3"
}

Closing, this is a Metro warning - there is already an open conversation in the dedicated repro about muting these warnings.

#20841

here is the solution https://stackoverflow.com/a/55665566

in your DialogButton.js file
import {NativeModules} from 'react-native';
//import react-native-popup-dialog from '/dist/type.js';
const react-native-popup-dialog = NativeModules.react-native-popup-dialog;


Update mytap.sql

Why quote cid?

I was testing for a class. Sorry. You can ignore or close this.
Thanks!

Ah, okay, good luck, with your class!


Auto Cycle views

In-order to screen burn /ghosting on my HA kiosk display I'd really appreciate a feature that would make HA cycle through the various views on a time cycle. So for example it's start on the default view/tab then move to display the next view after a defined period of time, then move to display the next view and so on.
If you could implement this, I'd be really grateful.
Thanks.

This isn't something I'd add to CH, but you can do this with hass-browser-mod. It has two features that would help you. You could use the navigate feature to create an automation that would cycle through tabs or you could use the blackout feature to prevent screen burn.
Keep in mind that even though you're cycling through the tabs, there will still be elements that don't move and could cause burn in.

Ok, I'll take a look at those. thanks.


Change rem to px

Pull Request Test Coverage Report for Build 1629

4 of 4 (100.0%)  changed or added relevant lines in 4 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 75.735%

Totals

Change from base Build 1628:
0.0%

Covered Lines:
93

Relevant Lines:
114

💛  - Coveralls


HTML get damaged with replace URL in Editor

I found a issue in CodeMirror. I use CodeMirror for TinyMCE as a replacement for the source-code editor. As basic I used https://github.com/christiaan/tinymce-codemirror with CodeMirror verison 5.17.0.
Without (comment out) CodeMirror that issue is gone.
My TinyMCE settings:
            external_plugins: {
				"codemirror": "/tinymce-plugins/codemirror/plugin.min.js",
    		},
			codemirror: {
				indentOnInit: true,
				path: 'codemirror-5.17',
				config: {
					mode: 'htmlmixed',
					lineNumbers: false
				}
			},

Here the issue:
I insert in souce-code editor this:
Text

Now I replace "URL1" with a real URL. After Submit, I get this result in TinyMCE:
" target="_blank">URL1
Reopen CodeMirror, I see this as source:
" target="_blank">URL1
This not happen, I insert the code with already URL in it.
And... this bug happen only in the last replaced URL. Means:
URL1
URL2

Replace first URL1, only the second URL2 have this issue. Replace first URL2, only the first URL1 have this issue.
There is no issue, when I use a single line:
Text

The maintainers of this repository have nothing to do with the TinyMCE integration code. I suggest you ask whoever created the integration you're using.


Skip tests during official builds

The official build (internal build that produces artifacts) doesn't need to run tests, because the commit has been validated already. It should do the minimum work to produce artifacts to improve turnaround time.
If we don't have rolling builds, we might not want to do this. There's a chance that two PRs merged closely together can conflict in a way that the tests catch it but Git doesn't. We should have some way to detect this. Maybe running -short tests is sufficient?

We split testing out into another pipeline, which has helped decouple publishing from tests and improve turnaround. We decided to keep running the tests because of the concerns mentioned.


Fix size check

fixes #1892
The github api lies about the size of diffs if they are large. If we
then subtract out the size of generated files that it is not lieing
about we end up with negative numbers. So huge PRs can get XS size.
Instead of believing the API and deleting those things we don't care
about just sum the things we do care about and use that.

LGTM

Hopefully there are no more surprises in the API :) Thanks for investigating and fixing!


Only create user objects in Stripe that are NOT Anonymous

I create Anonymous users to make sure users dont lose data when using my app prior to sign up. however i probably dont want to create an objec in stripe until they upgrade their account.
Could you please add an option to filter out anonymous users?

When configuring the extension you can select "Do not sync":

This way the extension only creates a Stripe customer object when you create the first checkout_session for the user.

Sorry this isn't quite what im looking for as i want to sync those users that have provided an email...
The solution you suggest means that i can not manually upgrade users from Stripe. I will have to get each sign up to create a checkout session so that their userId is in stripe

@perryjsteward that seems like a somewhat niche use-case. Two options:

You set the extension to "Do not sync" and write your own separate function that handles your specific sign up and customer creation logic.
You open a PR to add the functionality to the extension.


[LANGUAGES]How to perform unit testing in Flask

Topic Suggestion
.[LANGUAGES]How to perform unit testing in Flask
Proposal Submission.
Proposed article introduction
Flask unit testing is defined as a method of testing individual portions of source code that consist of one or more modules programmed together, which takes care of usage procedures, operation procedures, and the data associated with it to be tested to determine their fitness for usage. These tests are performed by software developers to ensure that the section of code written for a specific task accomplishes the task in addition to meeting the design requirements and behavior. These tests are typically automated and are aimed at specific functions or procedures.
Key takeaways
Storing the Unit tests
Creation of the basic unit test file
Running of Unit Tests
code coverage
Examples of Flask unit testing
Article quality
The article is intended to be precise and clear to the point, illustrated by codes making it more practical and interesting, to increase time spent on the page.
References
Please list links to any published content/research that you intend to use to support/guide this article.
Templates to use as guides

How To Guide Template
Software Review Template
Tutorial Template

Sounds like a helpful topic @Gracey2 - Approved. Please make sure your article does not reference any youtube tutorial or other articles covering this topic.

Just wanted to follow up on this topic, as we will be clearing up the queue where possible.
Just and FYI I will be closing this topic form just to help clear up the queue where possible - can be REOPENED at anytime when ready. 👍


Login page flash warning message broken

Description

Maybe there should have some space
Gitea Version
latest
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
build
Database
None

It broken again after I updated the branch.
It seems that in the recent 20 commits, as it show 20 commits behind the main branch when I updated the fork.


Deadlock with signal handler called during configure

I'm using signal handler to log code crashes:
void crash_handler(int sig) {
    LOG(ERROR) << "Crashed completely with signal " << sig;
    LOG(ERROR) << "Here's stack trace: \n" << el::base::debug::StackTrace();;
    exit(255);
}

When I try to reconfigure logger and some crash happens during the reconfiguration (from the reason outside this library) I get deadlock, as it tries to lock the same mutex twice:
(gdb) bt
#0  __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1  0x00007f6968361657 in _L_lock_909 () from /lib/x86_64-linux-gnu/libpthread.so.0
#2  0x00007f6968361480 in __GI___pthread_mutex_lock (mutex=0x1838558) at ../nptl/pthread_mutex_lock.c:79
#3  0x00007f6954c2fcc2 in __gthread_mutex_lock (__mutex=0x1838558) at /usr/include/x86_64-linux-gnu/c++/4.8/bits/gthr-default.h:748
#4  0x00007f6954c3bf4e in std::mutex::lock (this=0x1838558) at /usr/include/c++/4.8/mutex:134
#5  0x00007f6954c3c22c in el::base::threading::ThreadSafe::lock (this=0x1838550) at include/easylogging++.h:943
#6  0x00007f6954c45252 in el::base::Writer::Writer (this=0x7f6951dcd930, loggerId=..., level=@0x7f6951dcdb2e: el::Fatal, file=0x7f6954c773c9 "include/easylogging++.h", line=4705,
    func=0x7f6954c78380 <el::base::debug::logCrashReason(int, bool, el::Level const&, char const*)::__PRETTY_FUNCTION__> "void el::base::debug::logCrashReason(int, bool, const el::Level&, const char*)",
    dispatchAction=@0x7f6951dcd910: el::base::NormalLog, verboseLevel=0) at include/easylogging++.h:3977
#7  0x00007f6954c302e4 in el::base::debug::logCrashReason (sig=11, stackTraceIfAvailable=true, level=@0x7f6951dcdb2e: el::Fatal, logger=0x7f6954c76e65 "default") at include/easylogging++.h:4705
#8  0x00007f6954c30430 in el::base::debug::defaultCrashHandler (sig=11) at include/easylogging++.h:4714
#9  <signal handler called>
#10 0x00007f69670fc198 in std::ostream::flush() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#11 0x00007f6954c42a2e in el::Logger::flush (this=0x1838550, level=@0x7f6951dce14e: el::Debug, fs=0x175c5a0) at include/easylogging++.h:3259
#12 0x00007f6954c42630 in el::Logger::flush()::{lambda()#1}::operator()() const (__closure=0x7f694400f940) at include/easylogging++.h:3205
#13 0x00007f6954c50f56 in std::_Function_handler<bool (), el::Logger::flush()::{lambda()#1}>::_M_invoke(std::_Any_data const&) (__functor=...) at /usr/include/c++/4.8/functional:2057
#14 0x00007f6954c46f78 in std::function<bool ()>::operator()() const (this=0x7f6951dce200) at /usr/include/c++/4.8/functional:2464
#15 0x00007f6954c3c0ff in el::LevelHelper::forEachLevel(unsigned short*, std::function<bool ()> const&) (startIndex=0x7f6951dce1ee, lambdaFn=...) at include/easylogging++.h:482
#16 0x00007f6954c426b5 in el::Logger::flush (this=0x1838550) at include/easylogging++.h:3207
#17 0x00007f6954c4240c in el::Logger::configure (this=0x1838550, configurations=...) at include/easylogging++.h:3151
#18 0x00007f6954c465ef in el::Loggers::reconfigureLogger (logger=0x1838550, configurations=...) at include/easylogging++.h:4905
#19 0x00007f6954c46625 in el::Loggers::reconfigureLogger (identity=..., configurations=...) at include/easylogging++.h:4910

I'm not sure where's the first lock, but for sure the mutex is owned by the current thread:
(gdb) info thread 6
  Id   Target Id         Frame
* 6    Thread 0x7f6951dd8700 (LWP 30399) "searchd" 0x00007f6968361480 in __GI___pthread_mutex_lock (mutex=0x1838558) at ../nptl/pthread_mutex_lock.c:79
(gdb) bt 5
#0  __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1  0x00007f6968361657 in _L_lock_909 () from /lib/x86_64-linux-gnu/libpthread.so.0
#2  0x00007f6968361480 in __GI___pthread_mutex_lock (mutex=0x1838558) at ../nptl/pthread_mutex_lock.c:79
#3  0x00007f6954c2fcc2 in __gthread_mutex_lock (__mutex=0x1838558) at /usr/include/x86_64-linux-gnu/c++/4.8/bits/gthr-default.h:748
#4  0x00007f6954c3bf4e in std::mutex::lock (this=0x1838558) at /usr/include/c++/4.8/mutex:134
(More stack frames follow...)
(gdb) up 4
#4  0x00007f6954c3bf4e in std::mutex::lock (this=0x1838558) at /usr/include/c++/4.8/mutex:134
134	      int __e = __gthread_mutex_lock(&_M_mutex);
(gdb) print this->_M_mutex.__data.__owner
$4 = 30399

I think it could be easy fixed by changing mutex type to std::recursive_mutex, but this is probably supported only by c++11.

Oh, I've just noticed this problem happens not in my error handler, but in the default one - mine is installed just after the reconfigureLogger - I thought my init function is called twice from some reason, but it seems to be not the case - so the problem is even worse than I thought.
I have no idea why SEGV during the std::ostream::flush() - maybe it's not thread-safe?

@piotr-piatkowski I noticed similar deadlock while reconfiguring logger, were you able to resolve it?


Update endpoint-dashboard layout and remove unnecessary fields

Modified the endpoint-dashboard.html under agrirouter-middleware-application by adding placeholder divs and removing specific endpoint details. The updates include the addition of fields with dummy placeholders and corresponding CSS styling. These changes improve the layout, while removing unnecessary information, to enhance user interface.

Fixes #341


feat: add prop to specify ens chain

Allow changing which chain is used for ENS, by setting the ensChain prop on RainbowKitProvider
Relates to: https://github.com/rainbow-me/rainbowkit/discussions/752

Thanks for the PR!
This will need some docs on the "Chains" page: https://www.rainbowkit.com/docs/chains — did you want to write these, or would you prefer push updates to your PR?

Thanks, I've added a section in the docs.

Will close this for now because there might be a better/simpler means to an end for this particular testnet ENS problem. Can reopen if this changes or based on additional conversations here.


Option on reduxForm to automatically throw submission error if onSubmit returns Promise Rejection

Are you submitting a bug report or a feature request?
Feature request
What is the current behavior?
A frequent use case is calling onSubmit with an ajax call that returns a promise. Currently, if I want that server-side error to show a form-wide error, I have to write something like this in the catch block for every form I have
throw new SubmissionError({_error: error.message})

It would be awesome if there was an option on reduxForm to automatically throw a submission error from a Promise rejection.
This is kind of similar to how if you return a promise to onSubmit, submitting is set to true until the Promise resolves or rejects. It's awesome and super convenient because its a really common use case.

Thanks for the suggestion!

Yes please! We have to .catch(catchAndRethrowAsReduxFormError) to make our promises play nice.


For Flag State on Vessel Information Store Country Code

On the Vessel Information page - when the user chooses a menu option for Flag State - the country code should be stored in the database - not the full name of the country. e.g. 'us' not 'United States' or 'ec' not 'Ecuador'.

@o-fish-wildaid you mean alpha-2 code from ISO 3166-1 standard?


Forbidden Access Error

Microsoft PowerToys version
0.59.0
Running as admin

[ ] Yes

Area(s) with issue?
General
Steps to reproduce
Accessing system and it give error - Forbidden – The application cannot be run as a standalone process.  Please start the application through a runner.
Looking for help to resolve.

✔ Expected Behavior
Ability to access and employ powertoys
❌ Actual Behavior
unable to access powertoys
Other Software
No response

When I click 'close' on the error, it allows me to access the powertoys menu but none of the features are able to be used.

@adammprice You have to open PowerToys from the taskbar tray icon.


Cant login on iTNC530E

However I try to connect to machine i get unknown or unsupported login
could not log in as user PLCDEBUG.
Tried it on multiple machines.
code:
import pyLSV2

con = pyLSV2.LSV2("<IP_ADDRESS>")
con.connect()
print(con.versions.control)
print(con.read_plc_memory(32, pyLSV2.MemoryType.MARKER, 15))
print(con.execution_state())
con.disconnect()

console:
iTNC530E [] 5 unknown or unsupported login could not log in as user PLCDEBUG unknown or unsupported login could not log in as user DNC
Am I doing something wrong?

On which line do you get the error about the unsupported login?
If it is when trying to read from plc memory, it is because you need to disable the safe mode of pyLSV2. To do this, add safe_mode=False as a parameter to the line con = pyLSV2.LSV2("<IP_ADDRESS>").
The safe mode limits the accepted login type. This is meant to stop you from damaging the machine.

it was my fault, found it. Sorry....


chore: blog5

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


Vendor and OS icon cleanup

This PR replaces the remaining vendor and os PNG references in the tree nodes with SVGs.
https://www.pivotaltracker.com/n/projects/1613907/stories/129371557

@miq-bot add_label ui, technical debt, euwe/no

@miq-bot assign @skateman

✂ ✂ ✂

cc @himdel

Not quite yet, sorry :(
Still using some PNGs for both os- and vendor-:
OS:
lib/report_formatter/timeline.rb
105:          e_image = ActionController::Base.helpers.image_path("100/os-#{rec.os_image_name.downcase}.png")
109:          e_image = ActionController::Base.helpers.image_path("100/os-#{rec.os_image_name.downcase}.png")
148:            e_image = ActionController::Base.helpers.image_path("100/os-#{Vm.find(rec[:vm_or_template_id]).os_image_name.downcase}.png")

VENDOR:
app/helpers/application_helper.rb
1622:      image = "vendor-#{vendor}"
1626:      image = "vendor-#{vendor}"
1637:      image = "vendor-#{ems.image_name}"

app/controllers/application_controller/tree_support.rb
76:          :icon        => ActionController::Base.helpers.image_path("svg/vendor-#{ems.image_name}.svg")

app/controllers/miq_policy_controller/alert_profiles.rb
212:              icon = "vendor-#{o.image_name}.png"

app/presenters/tree_builder_vat.rb
15:    image =<EMAIL_ADDRESS>

Also possible that hash_nodes use those png names.

.. aand created https://github.com/ManageIQ/manageiq/pull/13272/files to make it easier to untangle these os* and vendor* remnants :) ... and to fix the hash_nodes :)

@himdel timeline.rb updated. PNGs restored.

Feels much safer without deleting the PNG files, let's eliminate them all at the same time when all the icons are converted!

Frankly I was hoping we could remove them in this PR, just merging https://github.com/ManageIQ/manageiq/pull/13272 first and doing the few remaining changes.
But.. up to you guys

@himdel I want to approve a big PR where we only delete files to please @chrisarcand :trollface:

@himdel That sounds fine to me.

@miq-bot add_label wip

@miq-bot rm_label wip

@miq-bot assign @dclarizio


freeswitch: expose compilation option to enable postgres support

Motivation for this change
To run freeswitch with postgresql backend.
Tested with nix-build -E 'with import ./. { }; freeswitch.override { enablePostgres = true; }'
Not sure if enabling postgres should be the default or not. It would simplify my life it it was  (closure size 135 to 142 MiB with postgres)
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[x] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Assured whether relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

@danbst Good catch, thank you.

I hope it works. The problem I've got most likely isn't related to this PR:
$ sudo freeswitch
Cannot open pid file /nix/store/p3bi9mli3cfldsnh3kls1wz2kdvkx439-freeswitch-1.6.20/var/run/freeswitch/freeswitch.pid.

@danbst Yes... there are some annoyances with freeswitch.  It works if you supply a configuration with appropriate values for log dirs, pid files, etc..  I'd like to slowly chip away at some of these issues, but only have limited time (and I'm not using freeswitch on NixOS, and have no use for a NixOS service module at this time).


[Firebase_Analytics] Logging nested event

Hello, I'm trying to log an event on firebase analytics with the setup mentioned below.
Thought it was supported, but couldn't find any place confirming or denying.
After trying to log it, all I receive is a parameter named ga_extra_params_ct with value 1
(flutter project)
params = {
    post: [{
      'title': 'my_post_title',
      'current_likes': '3',
      'extra_info': 'my_extra_info',
    }]
  }

  await analytics.logEvent('post_like', params);

The reason is: I need to know the post name with more likes and the total count of current likes...
Is it possible to register this event without BigQuery?

Hey @mktdevcwi, this is covered with #1036  I'm closing this and you can follow the updates over there :).


sync users wall on the homepage

Hi, since the update of the user's wall on the homepage last time, there have more than 2+ users.
[1] https://github.com/apache/apisix/issues/487?notification_referrer_id=MDE4Ok5vdGlmaWNhdGlvblRocmVhZDU4MDI1Mzk3MzoyMTA2OTg3&notifications_query=repo%3Aapache%2Fapisix#issuecomment-773107772

@juzhiyuan Can I Work on this?

Sure


[Additional Parameter Request] Codeunit 5760 Whse.-Post Receipt - OnInitSourceDocumentLinesOnAfterSourceSalesLineFound

Hi Team,
In codeunit 5760 we need possibility to have additional checks in the procedure InitSourceDocumentLines. Standard publisher would suit us if it had additional standard parameter WhseRcptHeader of type record and parameter WhseRcptLine type record. OnInitSourceDocumentLinesOnAfterSourceSalesLineFound would be perfect solution:

[IntegrationEvent(false, false)]
local procedure OnInitSourceDocumentLinesOnAfterSourceSalesLineFound(var SalesLine: Record "Sales Line"; WhseRcptLine: Record "Warehouse Receipt Line"; WhseRcptHeader: Record "Warehouse Receipt Header"; OldWhseRcptLine: Record "Warehouse Receipt Line"; ModifyLine: Boolean)

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.


Re-implement max() and min() with a named 'key' argument, and give sort() a 'key' also

All three should be built-in functions, including sort, so that other Iterable types (such as Range) can be passed in.
See https://github.com/claes-magnus/007-boxify/pull/1#discussion_r235722005 for more discussion/rationale.
(Need to think a little bit about whether to have both sort and sorted, like Python does.)
(Adding currently-blocked because we need at least named arguments for this. Preferably either or both of #202 and #215 too.)

This issue is a little bit related to #527; in fact, min and max can probably be implemented in terms of reduce.


enhancements in orahost-logrotate

The new role orahost-logrotate has been enhanced and modified.
oracle_base is used to get the right directories for logfiles.
Removed copytruncate, this is not required anymore from 11.2 onwards.
Added missing alert.log for ASM.

Merged!


Fixing part 7.12 of CIS Apache Benchmark - removing non-forward secrecy ciphers

Removing these non-forward secrecy ciphers from Apache configuration:
ECDHE-ECDSA-AES128-GCM-SHA256
ECDHE-ECDSA-AES256-GCM-SHA384

Link to CRS wiki with the plan for this:

https://github.com/coreruleset/coreruleset/wiki/Hardening%3A-the-Apache-Alpine-Docker-Container-2024#user-content-712-l2-ensure-only-cipher-suites-that-provide-forward-secrecy-are-enabled-automated

Hmm, looks like i picked wrong cyphers - both of these supports forward secrecy. But i can't see those mentioned in CIS benchmark anywhere in the configuration.

@azurit @dune73 What's next here? Can you provide an update PR with the updated ciphers?


Extend all_user_cluster_generated_commands with more info

Extending the all_user_cluster_generated_commands with more information on command arguments
Github: ZAP#971

Codecov Report

Merging #985 (bf060a9) into master (1b876c1) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #985   +/-   ##
=======================================
  Coverage   66.85%   66.85%
=======================================
  Files         156      156
  Lines       16975    16975
  Branches     3688     3688
=======================================
  Hits        11348    11348
  Misses       5627     5627

Impacted Files
Coverage Δ

src-electron/db/query-command.js
69.37% <ø> (ø)

... and 1 file with indirect coverage changes
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Support for async init of handler

Currently there are only two mechanisms to instantiate handler either from_cli or init.  Both of these methods are regular methods they don't support async.  Can you please add support for a async initialization of handler so that we can do some initialization tasks which needs await.
Currently I've a requirement of creating redis connection in handler.  I can't use aioredis create_pool inside my handler init as there is no way to do await.

I think I have some ideas on how to implement this, but that'll require some deep changes in the underlying mechanism.

@kesavkolla I'm not familiar with aioredis, so I have to ask: Can you call create_pool multiple times? Will there be a deleterious effect?
Because if you can do that without major negative impact, you can put the call to create_pool inside handle_HELO / handle_EHLO.
Please CMIIW because, as I said, I am not really familiar with aioredis.

I'm pretty sure that you could do something like:
asyncio.run(aioredis.create_pool)
controller.start()

Is there any reason that won't work for you?

Won't asyncio.run block until aioredis.create_pool completes?
If that is the case, then probably kesavkolla wants the initialization of aioredis pool to happen concurrently with the initialization of aiosmtpd.
(Please CMIIW, I'm a bit unclear about asyncio.run's behavior.)

Ah, it might be create_task. I know you can schedule a task, either with a high level or low level call. It may take some experiments to figure out what calls

A 'simple' workaround would be to create a hook, let's say handle__init__ (notice the pair of dunders), which can be await-ed from SMTP.__init__
That handler must implement a semaphore-like system to ensure that other hooks won't start processing until handle__init__ completes.

That said...
Why not just create an event loop, have the loop do call_soon to the handler's initialization (which involves aioredis.create_pool), then feed the loop to Controller?
If the semaphore-like system as I posted above has been implemented, then the handler hooks will politely wait until aioredis.create_pool is done ...
The more we talk about this, the more I think we don't really need to change SMTP at all...

Wouldn't all the proposed solutions create a pool every time a client connects to the server? Is there any way to use one pool that is created when the server is started?
In my case, I want to connect to mysql to check recipients in the RCPT handler and extract data from the body and store it in mysql in the DATA handler.


I don't know, if it counts as an issue or rather a featurerequest.
But I wish there was a way to disable the cluttering of the dom.

I've created #107 that may solve your issue. Instead of coupling this library with a specific style library, it adds a way to decorate the components. I haven't tried, but this technique should work with jss as well.


loss nan

hello, i have a problem. when I use ffhq data with 256x256, g loss and d loss is nan.

here is log:
D_loss: nan, D_loss_grad_norm: nan, D_lr: 0.001882
D_reg: 0.002352, D_reg_grad_norm: 0.001569, G_loss: nan
G_loss_grad_norm: nan, G_lr: 0.0016, G_reg: nan
G_reg_grad_norm: nan, pl_avg: nan, seen: 15
0%|          | 14/1000000 [00:51<634:57:52,  2.29s/it]

Hey,
Is the loss nan from the very first iteration? Or does it become nan after a couple of iterations?
What settings do you use when you run the training?


Fix dialyzer errors

Fixes #2

In this PR, I removed the variants of the send_message and send_files functions that pattern match on nil parameter values.
Since send_message and send_files are private functions that are invoked via the public call function, I propose that instead of trying to handle nil values deeper in the function call stack, we could prevent invalid values from being passed into the public call function in the first place.
One way of achieving this is by defining a struct or map with the expected fields for the payload and options parameters and then pattern matching on this struct or map (instead of relying on comments to indicate which fields are required).

One way of achieving this is by defining a struct or custom map type with the expected fields for the payload and options parameters and then pattern matching on this struct or map.

I'm aligned to refactoring this to use structs. It would be great if you could try creating a separate PR with structs in place, instead of the current approach. If it works well, we could go ahead with using structs!
I'll keep this current PR on hold - thanks for the contribution! 😄

One way of achieving this is by defining a struct or custom map type with the expected fields for the payload and options parameters and then pattern matching on this struct or map.

I'm aligned on refactoring this to use structs. It would be great if you could try creating a separate PR with structs in place, instead of the current approach. If it works well, we could go ahead with using structs!
I'll keep this current PR on hold - thanks for the contribution! 😄

Sounds good! I'll create a new PR with the struct implementation in place.

There were a few hiccups I encountered when trying to implement structs that I was hoping to get your feedback on. I couldn't find a way to easily create structs for the payload and options parameters without creating additional modules (since the defstruct keyword uses the module name as the struct name). So instead of adding boilerplate modules for the structs, I tried creating custom map types with the required fields for the payload and options parameters. These custom types can be used as the parameter types in the typespec definition (@spec) for the call function.


Boss module disappears/doesn't show up in instances

I wanted to test the mod in Sastasha, and it showed up fine at the beginning. But as soon as I transitioned from "Sastasha Seagrot" to "The Cattery" - the window with the map disappeared completely. In other instances, it doesn't show up at all. Did I press a wrong button or is this a bug somehow? Thanks!

Hubby and I are having the same problem. I installed yesterday and today did a EW Hunt train and OMG loved the help with getting away from mechs! but then did Void Ark and a few other duties and it never showed up :( Looks as if its working for others so wondering what we may have done wrong? Please Help
Thank you Gypsy and Tass :)

Not all content is supported at the moment. It has to be added instance by instance, you're not doing anything wrong and it's not a bug. The plugin will only show the window in supported content, some dungeons are supported, some aren't.

This is mostly useful for high-end content, other things are added slowly.


Add vue-yan-progress

Add vue-yan-progress

This is a cascading progress bar plugin based on vue

close due to in-activity.
if you want to add to list, you can re-send PR.


Yellow reference line feature files

Hi,
Even though I implemented the steps, I can see the yellow underline's in feature file. I hope these lines should go off when relative steps are implemented, right. How to fix this?

Many thanks,
Channakeshava

Hello! Yes, yellow underline should go off.
Could you share which VSCode extension do you use for bdd?

Thanks for your response. I am sharing the VSCode bdd extensions with you..

There are both Cucumber and Cucumber (Gherkin) Full Support extensions that do not work properly together. Please try to disable one of them and re-check.

Yes! it works. Thanks a lot! and Many thanks.


"Unknown option: .cacheDirectory" after updating to babel-jest v24.3.0

💥 Regression Report
After updating to the v24.3.0 minor release, our tests started failing with:
ReferenceError: Unknown option: .cacheDirectory.
Check out https://babeljs.io/docs/en/babel-core/#options for more information about options.

This appears to be due to the change here (CC @SimenB):
https://github.com/facebook/jest/pull/7862/files#diff-ad0be0b5e1f4711c408a42bdbea512bcL42
The reason cacheDirectory was present is that we were passing the Babel config used for babel-loader as-is:
https://github.com/neutrinojs/neutrino/blob/97781fd69dbf01be33a07687670a064395a92a6b/packages/jest/src/index.js#L21-L25
https://github.com/neutrinojs/neutrino/blob/97781fd69dbf01be33a07687670a064395a92a6b/packages/jest/src/transformer.js
In the meantime we've added filtering of cacheDirectory (neutrinojs/neutrino/pull/1314).
Last working version
Worked up to version: v24.1.0
Stopped working in version: v24.3.0
To Reproduce
Trigger a Travis build on https://github.com/neutrinojs/neutrino revision 97781fd69dbf01be33a07687670a064395a92a6b (which is before neutrinojs/neutrino/pull/1314).
Expected behavior
That either:

the Babel options sanitisation not change in a minor version
(or if this is seen as an internal implementation detail that we shouldn't have been replying upon) for the Jest changelog to perhaps mention the change

Many thanks :-)

Aha, that's where it was from! The typings yelled at us and I couldn't find cacheDirectory by grepping in Babel's code base, so I just removed it.
Wanna send a PR adding it back? Even though I don't think it's Jest's job to filter out non-valid options to babel, it doesn't hurt. And we shouldn't stop doing it in a minor

Can probably just add it with @ts-ignore and an explanation it's do work with config to babel-loader, similar to https://github.com/facebook/jest/pull/7862#discussion_r255696224


SIGTRAP & SIGFILL Errors

Hello @bch0w,
I have a question regarding to some problems. When the optimization is running (using L-BFGS), I've been dealing with the following error:
================================================================================
EXTERNAL SOLVER ERROR
/////////////////////
The external numerical solver has returned a nonzero exit code (failure).
Consider stopping any currently running jobs to avoid wasted computational
resources. Check 'scratch/solver/mainsolver/fwd_solver.log' for the solvers
stdout log message. The failing command and error message are:
exc: mpirun -n 2 bin/xspecfem2D
err: Command 'mpirun -n 2 bin/xspecfem2D' returned non-zero exit status 133.
The first time I thought the simulation got unstable due to any selection of the model parameters but after doing some tests I noticed that specfem has no problem as long as the CFL condition is being satisfy. I tried increasing the Nb_points per wavelength and selecting a smaller time stepping following the recommendation in the fwd_solver.log, but the problems persists. Looking into the fwd_solver.log this time the error was this:
Program received signal SIGTRAP: Trace/breakpoint trap.
Backtrace for this error:
Could not print backtrace: executable file is not an executable
Could not print backtrace: executable file is not an executable
#0  0x103742f33
#1  0x1037421db
#2  0x189f07583
#3  0x189f052bb
#4  0x189ed58ff
#5  0x10304af0b
#6  0x103154b0b
#7  0x103158733
#8  0x1030d37cb
#9  0x1030c18ff
#10  0x1030ac3ef
#11  0x103087f2b
#12  0x103065bef
#13  0x102f5dc5b
#14  0x10386e107
#15  0x103608f3b
#16  0x10343458b
#17  0x102dd52eb
#18  0x102de86ef
Primary job  terminated normally, but 1 process returned
a non-zero exit code. Per user-direction, the job has been aborted.

mpirun noticed that process rank 1 with PID 0 on node Rauls-MacBook-Pro exited on signal 5 (Trace/BPT trap: 5).
but there are other times where the error is this:
Color image maximum amplitude =    1.0203639704453120E+018
Color image created
Program received signal SIGILL: Illegal instruction.
Backtrace for this error:
#0  0x1035d6f33
#1  0x1035d61db
#2  0x19d74f583
#3  0x102e40a1f
Is there any way to avoid this problems?
The parameters that I'm using are the following:
workflow: inversion
system: workstation
solver: specfem2d
preprocess: default
optimize: LBFGS

ntask: 1
nproc: 2
tasktime: 10000
mpiexec: mpirun
log_level: DEBUG
verbose: False

materials: acoustic
smooth_h: 500.0
smooth_v: 500.0
components: XZ
source_prefix: SOURCE

unit_output: PRE
misfit: traveltime
adjoint: traveltime
normalize: TNORML2
filter: BANDPASS
min_freq: 1
max_freq: 10
I am sorry for the inconvenience but I hope you can help me.
Thank you.

Hi @raulleoncz, this is a SPECFEM2D issue so I am not sure this is the correct place to raise the issue, but I can try to help you out.
What part of the workflow does this issue happen? If it's during the initial forward simulations, then that might suggest there is something wrong with how you have set up SPECFEM. If it is happening during the line search, then perhaps your model has become unphysical and caused the simulation to fail.
Once we have that information it might be easier to troubleshoot but again it seems like something is going wrong with SPECFEM, leading SeisFlows to crash.

I think I found my error.
The CFL and time stepping were right but the frequency of the source was being a little high. I chose a smaller frequency and I think the problem is solved.
Thank you.

That's great to hear! Happy you were able to solve the problem. I'll close this as complete but if that is incorrect please feel free to re-open!