Uninstall should rmmod kernel module

During a recent update from v0.11.1 to v.0.12.1, we were hit with segmentation fault issues. After investigation, it appears that the old kernel module had not been unloaded. An execution of rmmod falco_probe && modprobe falco_probe && systemctl restart falco resolved the issue.

from a sudo yum update falco
Resolving Dependencies
--> Running transaction check
---> Package falco.x86_64 0:0.11.1-1 will be updated
---> Package falco.x86_64 0:0.12.1-1 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
=======================================================================================================================
 Package                   Arch                       Version                         Repository                  Size
=======================================================================================================================
Updating:
 falco                     x86_64                     0.12.1-1                        draios                     2.4 M
Transaction Summary
=======================================================================================================================
Upgrade  1 Package
Total download size: 2.4 M
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
falco-0.12.1-x86_64.rpm                                                                         | 2.4 MB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : falco-0.12.1-1.x86_64                                                                               1/2
Creating symlink /var/lib/dkms/falco/0.12.1/source ->
                 /usr/src/falco-0.12.1
DKMS: add completed.
Kernel preparation unnecessary for this kernel.  Skipping...
Building module:
cleaning build area...
make -j2 KERNELRELEASE=3.10.0-862.11.6.el7.x86_64 -C /lib/modules/3.10.0-862.11.6.el7.x86_64/build M=/var/lib/dkms/falco/0.12.1/build..........
cleaning build area...
DKMS: build completed.
falco-probe.ko.xz:
Running module version sanity check.
 - Original module
   - This kernel never originally had a module by this name
 - Installation
   - Installing to /lib/modules/3.10.0-862.11.6.el7.x86_64/extra/
Adding any weak-modules
depmod......
DKMS: install completed.
-------- Uninstall Beginning --------
Module:  falco
Version: 0.11.1
Kernel:  3.10.0-862.11.6.el7.x86_64 (x86_64)
-------------------------------------
Status: This module version was INACTIVE for this kernel.
depmod......
DKMS: uninstall completed.
------------------------------
Deleting module version: 0.11.1
completely from the DKMS tree.
------------------------------
Done.
  Cleanup    : falco-0.11.1-1.x86_64                                                                               2/2
  Verifying  : falco-0.12.1-1.x86_64                                                                               1/2
  Verifying  : falco-0.11.1-1.x86_64                                                                               2/2
Updated:
  falco.x86_64 0:0.12.1-1
Complete!

Wed Sep 12 13:56:21 2018: Falco initialized with configuration file /etc/falco/falco.yaml
Wed Sep 12 13:56:21 2018: Loading rules from file /etc/falco/falco_rules.yaml:
Segmentation fault
Segmentation fault```
/var/log/messages

Sep 12 13:56:22 staging-01 kernel: falco_probe: adding new consumer ffff93b6d76d2f70
Sep 12 13:56:22 staging-01 kernel: falco_probe: initializing ring buffer for CPU 0
Sep 12 13:56:22 staging-01 kernel: falco_probe: CPU buffer initialized, size=8388608
Sep 12 13:56:22 staging-01 kernel: falco_probe: initializing ring buffer for CPU 1
Sep 12 13:56:22 staging-01 kernel: falco_probe: CPU buffer initialized, size=8388608
Sep 12 13:56:22 staging-01 kernel: falco_probe: starting capture
Sep 12 13:56:23 staging-01 kernel: falco[5900]: segfault at 7f29c05500d2 ip<PHONE_NUMBER>58ad88 sp 00007fff242ebe20 error 4 in falco[400000+695000]
Sep 12 13:56:23 staging-01 kernel: falco_probe: deallocating consumer ffff93b6d76d2f70
Sep 12 13:56:23 staging-01 kernel: falco_probe: no more consumers, stopping capture

The same has occurred on another similar system:
[root@simon-01 ~]# tree /var/lib/dkms/falco/
/var/lib/dkms/falco/
├── 0.11.1
│   ├── 3.10.0-862.11.6.el7.x86_64
│   │   └── x86_64
│   │       ├── log
│   │       │   └── make.log
│   │       └── module
│   │           └── falco-probe.ko.xz
│   └── source -> /usr/src/falco-0.11.1
└── kernel-3.10.0-862.11.6.el7.x86_64-x86_64 -> 0.11.1/3.10.0-862.11.6.el7.x86_64/x86_64

7 directories, 2 files
[root@simon-01 ~]# lsmod | grep falco
falco_probe           601973  2
[root@simon-01 ~]# dmesg | grep falco
[ 1215.053579] falco_probe: loading out-of-tree module taints kernel.
[ 1215.060394] falco_probe: module verification failed: signature and/or required key missing - tainting kernel
[ 1215.072475] falco_probe: driver loading, falco-probe 0.11.1
[ 1215.083156] falco_probe: adding new consumer ffff994e62495ee0
[ 1215.089941] falco_probe: initializing ring buffer for CPU 0
[ 1215.105219] falco_probe: CPU buffer initialized, size=8388608
[ 1215.111222] falco_probe: initializing ring buffer for CPU 1
[ 1215.129832] falco_probe: CPU buffer initialized, size=8388608
[ 1215.138757] falco_probe: starting capture
[root@simon-01 ~]# yum update falco
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.umd.edu
 * epel: mirror.us.leaseweb.net
 * extras: mirror.mojohost.com
 * updates: mirror.vtti.vt.edu
Resolving Dependencies
--> Running transaction check
---> Package falco.x86_64 0:0.11.1-1 will be updated
---> Package falco.x86_64 0:0.12.1-1 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

=======================================================================================================================
 Package                   Arch                       Version                         Repository                  Size
=======================================================================================================================
Updating:
 falco                     x86_64                     0.12.1-1                        draios                     2.4 M

Transaction Summary
=======================================================================================================================
Upgrade  1 Package

Total download size: 2.4 M
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
falco-0.12.1-x86_64.rpm                                                                         | 2.4 MB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : falco-0.12.1-1.x86_64                                                                               1/2

Creating symlink /var/lib/dkms/falco/0.12.1/source ->
                 /usr/src/falco-0.12.1

DKMS: add completed.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make -j2 KERNELRELEASE=3.10.0-862.11.6.el7.x86_64 -C /lib/modules/3.10.0-862.11.6.el7.x86_64/build M=/var/lib/dkms/falco/0.12.1/build....
cleaning build area...

DKMS: build completed.

falco-probe.ko.xz:
Running module version sanity check.
 - Original module
   - This kernel never originally had a module by this name
 - Installation
   - Installing to /lib/modules/3.10.0-862.11.6.el7.x86_64/extra/
Adding any weak-modules

depmod....

DKMS: install completed.

-------- Uninstall Beginning --------
Module:  falco
Version: 0.11.1
Kernel:  3.10.0-862.11.6.el7.x86_64 (x86_64)
-------------------------------------

Status: This module version was INACTIVE for this kernel.
depmod....

DKMS: uninstall completed.

------------------------------
Deleting module version: 0.11.1
completely from the DKMS tree.
------------------------------
Done.
  Cleanup    : falco-0.11.1-1.x86_64                                                                               2/2
  Verifying  : falco-0.12.1-1.x86_64                                                                               1/2
  Verifying  : falco-0.11.1-1.x86_64                                                                               2/2

Updated:
  falco.x86_64 0:0.12.1-1

Complete!
[root@simon-01 ~]# dmesg | grep falco
[ 1215.053579] falco_probe: loading out-of-tree module taints kernel.
[ 1215.060394] falco_probe: module verification failed: signature and/or required key missing - tainting kernel
[ 1215.072475] falco_probe: driver loading, falco-probe 0.11.1
[ 1215.083156] falco_probe: adding new consumer ffff994e62495ee0
[ 1215.089941] falco_probe: initializing ring buffer for CPU 0
[ 1215.105219] falco_probe: CPU buffer initialized, size=8388608
[ 1215.111222] falco_probe: initializing ring buffer for CPU 1
[ 1215.129832] falco_probe: CPU buffer initialized, size=8388608
[ 1215.138757] falco_probe: starting capture
[232783.262219] falco_probe: deallocating consumer ffff994e62495ee0
[232783.275174] falco_probe: no more consumers, stopping capture
[232784.115890] falco_probe: adding new consumer ffff994e36e60fd0
[232784.123117] falco_probe: initializing ring buffer for CPU 0
[232784.137070] falco_probe: CPU buffer initialized, size=8388608
[232784.143774] falco_probe: initializing ring buffer for CPU 1
[232784.157843] falco_probe: CPU buffer initialized, size=8388608
[232784.164238] falco_probe: starting capture
[232784.692123] falco[2830]: segfault at 7f79e8c450d2 ip<PHONE_NUMBER>58ad88 sp 00007fffe51c0630 error 4 in falco[400000+695000]
[232784.708514] falco_probe: deallocating consumer ffff994e36e60fd0
[232784.720017] falco_probe: no more consumers, stopping capture

Issue has occurred on a debian machine also, so doesn't appear to be OS-dependent:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
  falco
1 upgraded, 0 newly installed, 0 to remove and 28 not upgraded.
Need to get 0 B/2,920 kB of archives.
After this operation, 129 kB of additional disk space will be used.
(Reading database ... 69333 files and directories currently installed.)
Preparing to unpack .../falco_0.12.1_amd64.deb ...

-------- Uninstall Beginning --------
Module:  falco
Version: 0.11.1
Kernel:  4.9.0-6-amd64 (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

falco-probe.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.9.0-6-amd64/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod......

DKMS: uninstall completed.

------------------------------
Deleting module version: 0.11.1
completely from the DKMS tree.
------------------------------
Done.
Unpacking falco (0.12.1) over (0.11.1) ...
Setting up falco (0.12.1) ...
Loading new falco-0.12.1 DKMS files...
Building for 4.9.0-6-amd64
Building initial module for 4.9.0-6-amd64
Done.

falco-probe:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.9.0-6-amd64/updates/dkms/

depmod...

DKMS: install completed.
Processing triggers for systemd (232-25+deb9u1) ...
simon@staging-client-debian:~$ sudo dmesg | grep falco
[2057270.424184] falco_probe: deallocating consumer ffff9e48b6ccf040
[2057270.430867] falco_probe: no more consumers, stopping capture
[2057270.475827] audit: type=1130 audit(1536828834.327:291938): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=falco comm="systemd" exe="/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[2057270.501791] audit: type=1131 audit(1536828834.351:291939): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=falco comm="systemd" exe="/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'

simon@staging-client-debian:~$ sudo falco
Thu Sep 13 08:54:39 2018: Falco initialized with configuration file /etc/falco/falco.yaml
Thu Sep 13 08:54:39 2018: Loading rules from file /etc/falco/falco_rules.yaml:
Thu Sep 13 08:54:39 2018: Loading rules from file /etc/falco/acsia_rules.yaml:
Rule Write below etc: warning (trailing-evttype):
write_etc_common and (not acsia_writing_ansible) and (not is_cloud_binary) and (not proc.pname in (dnf, rpm, rpmkey, yum, "75-system-updat", rhsmcertd-worke, subscription-ma, repoquery, rpmkeys, rpmq, yum-cron, yum-config-mana, yum-debug-dump, abrt-action-sav, rpmdb_stat, microdnf, dpkg, dpkg-preconfigu, dpkg-reconfigur, dpkg-divert, apt, apt-get, aptitude, frontend, preinst, add-apt-reposit, apt-auto-remova, apt-key, apt-listchanges, unattended-upgr, apt-add-reposit, update-alternat, gem, pip, pip3, sane-utils.post, alternatives, chef-client))
         does not have all evt.type restrictions at the beginning of the condition,
         or uses a negative match (i.e. "not"/"!=") for some evt.type restriction.
         This has a performance penalty, as the rule can not be limited to specific event types.
         Consider moving all evt.type restrictions to the beginning of the rule and/or
         replacing negative matches with positive matches if possible.
Segmentation fault
Segmentation fault
simon@staging-client-debian:~$ sudo rmmod falco-probe && sudo modprobe falco-probe && sudo falco
Thu Sep 13 08:55:03 2018: Falco initialized with configuration file /etc/falco/falco.yaml
Thu Sep 13 08:55:03 2018: Loading rules from file /etc/falco/falco_rules.yaml:
Thu Sep 13 08:55:04 2018: Loading rules from file /etc/falco/acsia_rules.yaml:
Rule Write below etc: warning (trailing-evttype):
write_etc_common and (not acsia_writing_ansible) and (not is_cloud_binary) and (not proc.pname in (dnf, rpm, rpmkey, yum, "75-system-updat", rhsmcertd-worke, subscription-ma, repoquery, rpmkeys, rpmq, yum-cron, yum-config-mana, yum-debug-dump, abrt-action-sav, rpmdb_stat, microdnf, dpkg, dpkg-preconfigu, dpkg-reconfigur, dpkg-divert, apt, apt-get, aptitude, frontend, preinst, add-apt-reposit, apt-auto-remova, apt-key, apt-listchanges, unattended-upgr, apt-add-reposit, update-alternat, gem, pip, pip3, sane-utils.post, alternatives, chef-client))
         does not have all evt.type restrictions at the beginning of the condition,
         or uses a negative match (i.e. "not"/"!=") for some evt.type restriction.
         This has a performance penalty, as the rule can not be limited to specific event types.
         Consider moving all evt.type restrictions to the beginning of the rule and/or
         replacing negative matches with positive matches if possible.
^CEvents detected: 0
Rule counts by severity:
Triggered rules by rule name:
simon@staging-client-debian:~$ cat /etc/*elease
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"


Asking about the "DeepACO" paper

Hi @phlong3105
Could you please share your paper DeepACO: A Robust Deep Learning-based Automatic Checkout System?

You can find the paper here: https://www.researchgate.net/publication/360560864_DeepACO_A_Robust_Deep_Learning-based_Automatic_Checkout_System

hi @phlong3105
That's great. Thank you.


Query by Runtime

It will be great to have a query of boosters by runtime, as right now we have to query the missions and then query its boosters separately.

Fixed in https://github.com/openshiftio/booster-catalog-service/commit/bf27440d77b1c3bb75e95a3ca1a6a264f3f191f4


[stable/prometheus-operator] Don't set serviceMonitorNamespaceSelector to {}

What this PR does / why we need it:
In Prometheus Operator 0.22.2, it looks like the serviceMonitor objects are
not propertly detected when setting serviceMonitorNamespaceSelector to {},
however, they are when not setting it.
Checklist

[x] DCO signed
[x] Chart Version bumped
[x] Title of the PR starts with chart name (e.g. [stable/chart])

What impact does this have on the current version of Prometheus Operator (0.31.1)?

Unless I'm wrong it will have no impact : https://github.com/coreos/prometheus-operator/blob/master/pkg/prometheus/operator.go#L1477-L1489

I've done a few tests on this:
Omitting the selector entirely, selects only servicemonitors from the same namespace where the operator is running.
Setting the selector to {} selects servicemonitors from all namespaces.
This is true for both version 0.22.2 and the latest current version 0.31.1
This change was explicitly made in this pull request: https://github.com/helm/charts/pull/10390, which describes the purpose of it.
/hold

@vsliouniaev I have to find a way to omitting the serviceMonitorNamespaceSelector because setting it to {} does not work on my setup (OpenShift 3.11 - Prometheus Operator 0.22.2)

Is your goal to select the servicemonitors from the same namespace as the prometheus or select them from all namespaces in the cluster?

@vsliouniaev somehow neither any: true nor matchNames: [current_namespace] works... The only way I found to make it work is by completely remove the serviceMonitorNamespaceSelector key, which is not possible in the current state of the Chart...

This sounds like an issue with your setup, rather than a problem with the chart, since the functionality you are looking for is available and I have confirmed it works when I test it.
Could you please post the prometheus object, in particular the servicemonitorselector and servicemonitornamespaceselector, together with a servicemonitor object that you expect to be matched and isn't?

Here is a Prometheus object:
apiVersion: monitoring.coreos.com/v1
kind: Prometheus
metadata:
  labels:
    app: prometheus-operator-prometheus
    chart: prometheus-operator-5.14.0
    heritage: Tiller
    release: prometheus-cluster-backup
  name: prometheus-cluster-backup-prometheus
spec:
  alerting:
    alertmanagers: []
  baseImage: quay.io/prometheus/prometheus
  enableAdminAPI: false
  externalUrl: http://prometheus-cluster-backup-prometheus.cluster-backup:9090
  listenLocal: false
  logFormat: logfmt
  logLevel: info
  paused: false
  replicas: 1
  retention: 10d
  routePrefix: /
  ruleNamespaceSelector: {}
  ruleSelector:
    matchLabels:
      app: prometheus-operator
      release: prometheus-cluster-backup
  securityContext: {}
  serviceAccountName: prometheus-k8s
  serviceMonitorNamespaceSelector: {}
  serviceMonitorSelector:
    matchLabels:
      release: prometheus-cluster-backup
  version: v2.10.0

And a ServiceMonitor:
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  labels:
    app: prometheus-operator-prometheus
    chart: prometheus-operator-5.14.0
    heritage: Tiller
    release: prometheus-cluster-backup
  name: prometheus-cluster-backup-prometheus
spec:
  endpoints:
  - path: /metrics
    port: web
  namespaceSelector:
    matchNames:
    - cluster-backup
  selector:
    matchLabels:
      app: prometheus-operator-prometheus
      release: prometheus-cluster-backup

With this setup, it does not work. As soon as I remove the serviceMonitorNamespaceSelector: {} line from the Prometheus object, it works fine.

Could you share what namespaces these objects are created in?
Could you also share the generated configuration that is shown in the /config page of the Prometheus UI?


headerLines.reverse() error in stomp.js

undefined is not a function (evaluating 'headerLines.reverse()typeof Symbol === 'function' ? Symbol.iterator :'@@iterator'')
When I connect two android devices simultaneously, I encounter this error.
Please help me!
Thanks in advance.

maybe you should find by yourself first why you have an undefined value. This tool can help https://developers.google.com/web/tools/chrome-devtools/


[1.10] API Routes are not registering like in 1.9.2

We have a working route declaration in 1.9.2
new HttpRouteDescriptor {
    Name = "Membership",
    Priority = -10,
    RouteTemplate = "api/{controller}/{action}",
    Defaults = new {
       area = "Custom.Module.Security",
       controller = "Membership"
    }
}

But this doesn't work in 1.10.
I have to declare the route controller specifically and the controller cannot be part of the dynamic route path.
This works in 1.10:
new HttpRouteDescriptor {
    Name = "Membership",
    Priority = -10,
    RouteTemplate = "api/FilesApi/{action}",
    Defaults = new {
       area = "Custom.Module.Security",
       controller = "FilesApi"
    }
}

Closing, I had added a route to another module feature that seemed to break the {controller} route.
Ideally, the {controller} specification should work in a route as filtered by Area.


GH Actions Test, Verify require Lint

Why is this the case?

GH Actions simply run all jobs that are defined in our GitHub workflow.
These are:

lint
build
test
coverage
verify

In that order. You can find the workflows here: https://github.com/vacp2p/foundry-template/blob/main/.github/workflows/ci.yml#L14
These tasks are executed on every pull request to ensure quality.
Other than that, there's no inherent reason why test and verify require linting.
I guess the thinking here is: "If it doesn't even pass the linter we don't even need to test it."
We can change this and have it not be a requirement for the subsequent tasks if this is too annoying.

Its annoying if lint have some bug as happened in #21

ok


Unable to assign the identity to webapp

This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az webapp identity assign
Errors:
'NoneType' object has no attribute 'identity'
Traceback (most recent call last):
Temp\pip-install-ygnynjtx\knack\knack\cli.py, ln 206, in invoke
azure\cli\core\commands\__init__.py, ln 560, in execute
azure\cli\core\commands\__init__.py, ln 618, in _run_jobs_serially
azure\cli\core\commands\__init__.py, ln 611, in _run_job
Local\Temp\pip-install-ygnynjtx\six\six.py, ln 693, in reraise
azure\cli\core\commands\__init__.py, ln 588, in _run_job
azure\cli\core\commands\__init__.py, ln 297, in __call__
azure-cli-core\azure\cli\core\__init__.py, ln 461, in default_command_handler
azure\cli\command_modules\appservice\custom.py, ln 465, in assign_identity
azure\cli\core\commands\arm.py, ln 1032, in assign_identity
azure\cli\command_modules\appservice\custom.py, ln 460, in setter
AttributeError: 'NoneType' object has no attribute 'identity'

To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Put any pre-requisite steps here...
az webapp identity assign --name {} --resource-group {}

Expected Behavior
Environment Summary
Windows-10-10.0.16299-SP0
Python 3.6.6
Shell: cmd.exe

azure-cli 2.0.66

Additional Context

@benjaminbhuang sorry for the dealy on getting back to you on this. The error occurs when the app was not found in the RG. Can you confirm you have the correct values for -n &  -g & the app does exist in the RG specified. One way to debug this further would be to run the command with --debug flag.  Please verify & lets us know if this indeed the case. Thanks!


Render White instead of Green

Hello,
For some reason a part of the map is rendered in white (Looks like snow) but it is in fact grass.
What is odd is that on another part of the map the render worked and I see grass.
In the picture I attached you can see that some blocks got rendered correctly(Green) but the vast majority is white.
I am using Windows as the platform

Hello,
My apologies,
This is actually correct,
I failed to remember that my fellow minecraft enthusiast explored a deeper part of the map and I totally forgot about it.


state value is not json in parse-auth

I have setup whole stack using cloudformation and its works great.
At one point  i got this as state value eyJub25jZSI6Ii4xQUZkZVVONVQuZn5 VXciLCJyZXF1ZXN0ZWRVcmkiOiIvIn0=
when i tried to  console.log(Buffer.from(stateval, 'base64').toString()) i get this value
{"nonce":".1AFdeUN5T.f~U]��\]Y\�Y\�H���ȟ which is not a json  and it errors at
https://github.com/aws-samples/cloudfront-authorization-at-edge/blob/master/src/lambda-edge/parse-auth/index.ts#L20
What is the root cause for this issue?

Mmm.... that makes no sense to me. Is this when the nonce mismatch occurs?
Are your using federation with you Cognito user pool? If so, have a read of this #32 and #21 they explain why we added base64 encoding of state.
Was this an incident? How often does this happen?

@ottokruse  this happened only twice or so, couldn't reproduce the issue   again. Let me take a look into the issue mentioned

Believe this was caused by the + / and = characters that can be present in base64 encoded strings.
We URI encoded these to be able to put them in the URL state query param, that should be returned to us by Cognito unaltered after sign-in. However, together with another uses I was able to uncover that Cognito URL decodes the state query param on the way back. Our code did not expect that.
Implemented a work around in #47 that should prevent any unexpected URI component decoding.
Not 100% sure that this solves your issue, the state param you mention contains a space character, which I cannot explain - copy-paste typo?
Closing this issue for now. Please report back if this issue persists

Thanks @ottokruse  for the details, will take a look


fix edgecases when you know the source and the dest for a link

sometimes you already know who may be linking to who, you just want to check whether they actually did.
this is needed in blocking in 2 instances (checking if A blocked B when B connects to A, or when B asks for A's feed)

:+1: looks good

merge into 13.1.2


[Jenkins] timeout triggered by all_dbs_active

Current & Expected Behaviour
During an eunit test (couchdb_mrview_cors_tests) a request is made to retrieve the output of a view. It should succeed. Sometimes, it fails on a timeout.
Possible Solution
In one failure, the attempt to create the database in the eunit test fails, running into an all_dbs_active error. This is unusual because the couch application has just started up and only a single database is created for this test.
Perhaps we have a race condition in startup on in couch_lru?
Your Environment
Jenkins automated build, 2.1.x branch, Debian 8, default Erlang (17), logs uploaded as jenkins-couchdb-1-2017-05-29T02:02:45.043081. Relevant paste here: https://paste.apache.org/sdgk

I looked at this one a bit more closely. The Makefile log output is here: https://builds.apache.org/blue/organizations/jenkins/CouchDB/detail/2.1.x/1/pipeline/49/
That all_dbs_active error got me wondering: perhaps a prior test set the max_dbs_open value low, and didn't clear it. A few tests earlier, couchdb_views_tests:couchdb_1283 calls:
ok = config:set("couchdb", "max_dbs_open", "3", false),

but I never see a similar config:set call to restore the default. Does our test harness clean these up for us, or could the old setting be hanging around still? If the test harness doesn't clean up config settings for us, there may be a number of places in the eunit tests where this could be biting us in weird ways.

This is a really odd failure. My guess is we've hit a race condition where an attempt to open the database is happening prior to the database having been created yet, but I'm not comfortable enough with the couch_server code to be sure.
We see in the couch.log file that the PUT to create the eunit test database returns with a 201, so presumably the database has been created. But just a few hundred milliseconds, later, we also see:
[error] 2017-05-29T02:02:35.181959Z nonode@nohost <0.5150.1> -------- Could not open file /tmp/tmp.c3FrN4iLsk/apache-couchdb-2.0.0-79067c9/tmp/data/shards/40000000-5fffffff/eunit-test-db-149623354967440.1496023354.couch: no such file or directory

Question 1: Is it normal for a PUT to get back a 201 before all the shards have been created on disk?
During the open call, we hit couch_server:handle_call({open...}) > couch_server:make_room/2 > couch_server:maybe_close_lru_db/1, which is the only place in the code that returns all_dbs_active. We must be walking this code path. What's especially odd is that, because we get all_dbs_active back, we must be failing this guard:
maybe_close_lru_db(#server{dbs_open=NumOpen, max_dbs_open=MaxOpen}=Server)
        when NumOpen < MaxOpen ->
    {ok, Server};

Question 2: Why did we fail that guard?
So we get past the guard, head into couch_lru:close/1 which attempts close_int(gb_trees:next(gb_trees:iterator(Tree)), Cache). Inside of close_int/2 I see:
close_int(none, _) ->
    false;

In this particular failure, we can't possibly have >100 dbs open already. I wonder if gb_trees:iterator(Tree) is returning an empty list, possibly because nothing is actually open yet, and this bubbles back up as a false?
Question 3: Should we handle the special case of couch_lru:close/1 being called on an empty LRU to not return false?

Also: I noticed
couch/src/couch_server.erl:-define(MAX_DBS_OPEN, 100).

but default.ini defines max_dbs_open = 500. Should we bump the default in couch_server.erl? 500 seems like a more reasonable default to me. I'll open a new issue for this.

16:50 <+rnewson> "Is it normal for a PUT to get back a 201 before all the
                 shards have been created on disk?"
16:50 <+rnewson> no, fabric_db_create waits for all shard file creation before
                 responding

This is a duplicate of #571.
The timeout error is the first error seen when you scroll up in the log. But if you keep going you'll see this bit in the logs:
module 'couchdb_os_daemons_tests'
  OS Daemons tests
    couchdb_os_daemons_tests:107: should_check_daemon...ok
    couchdb_os_daemons_tests:113: should_check_daemon_table_form...ok
    couchdb_os_daemons_tests:120: should_clean_tables_on_daemon_remove...[0.544 s] ok
    couchdb_os_daemons_tests:127: should_spawn_multiple_daemons...[0.618 s] ok
    undefined
    *** context cleanup failed ***
**in function test_util:stop_sync_throw/4 (src/test_util.erl, line 160)
in call from couchdb_os_daemons_tests:teardown/2 (test/couchdb_os_daemons_tests.erl, line 58)
**throw:{timeout,os_daemon_stop}

  undefined
  *** context setup failed ***
**in function meck_proc:start/2 (src/meck_proc.erl, line 96)
  called as start(couch_stats,[passthrough])
in call from test_util:mock/1 (src/test_util.erl, line 244)
in call from test_util:'-mock/1-lc$^0/1-0-'/1 (src/test_util.erl, line 237)
in call from test_util:start/3 (src/test_util.erl, line 225)
in call from couchdb_os_daemons_tests:setup/1 (test/couchdb_os_daemons_tests.erl, line 47)
**error:{already_started,<0.3624.1>}

We failed to shutdown couch properl which leaves it in a weird state which causes a lot of other failures as well. Given that this was fixed I'm closing and we can reopen if it happens again.


x/pkgsite: overlarge box around the Example selector

What is the URL of the page with the issue?
https://pkg.go.dev/io/ioutil?tab=doc#example-WriteFile
What is your user agent?

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36
Screenshot

What did you do?

search for ioutil. Under Examples, click on WriteFile. I get a box that includes a couple of lines of the documentation for WriteFile. If it goes away, clicking on whitespace right after 'permissions' brings it back.
What did you expect to see?
a smaller box or no box at all
What did you see instead?
a box that is too large

Closing this in favor of #42698.


stm32g0b1re: Garbage uart data when running spi_flash_at45 sample with DMA enabled

Describe the bug
I'm trying the spi_flash_at45 on nucleo_g0b1re, and found that there are some garbage data in the debug log when SPI DMA is enabled.
To Reproduce
west build -b nucleo_g0b1re --pristine samples\drivers\spi_flash_at45
west flash

nucleo_g0b1re.dts:
&dma1 {
	status = "okay";
};

&dmamux1 {
	status = "okay";
};

&spi1 {
	pinctrl-0 = <&spi1_nss_pb0 &spi1_sck_pa5
		     &spi1_miso_pa6 &spi1_mosi_pa7>;
	status = "okay";
	dmas = <&dmamux1 2 17 0x20440
		&dmamux1 1 16 0x20480>;
	dma-names = "tx", "rx";
	cs-gpios = <&gpioc 8 GPIO_ACTIVE_LOW>;
	at45db0: at45db041e@0 {
		compatible = "atmel,at45";
		reg = <0>;
		spi-max-frequency = <15000000>;
		label = "DATAFLASH_0";
		jedec-id = [1f 27 01];
		size = <33554432>;
		sector-size = <65536>;
		block-size = <4096>;
		page-size = <512>;
		use-udpd;
		enter-dpd-delay = <4000>;
		exit-dpd-delay = <180000>;
		status = "okay";
	};
};

prj.conf:
# Not related, just for testing
CONFIG_SHELL=y

# Extra DMA configs for the sample
CONFIG_DMA=y
CONFIG_SPI_STM32_DMA=y
CONFIG_SPI_STM32_INTERRUPT=n

CONFIG_SPI_ASYNC=y

Expected behavior
UART with/without SPI_DMA should behaves the same
Impact
Nothing major for a test application, can cause error if the garbage appears in uart communication with an external modem.
Logs and console output
With DMA:
*** Booting Zephyr OS build v2.7.0-rc2-134-gb3be5ba11ce2  ***
DataFlash sample on nucleo_g0b1re
Using DATAFLASH_0, chip size: 4194304 bytes (page: 512)
Reading the first byte of the test region ... OK
Preparing test content starting with 0x3A.
Writing the first half of the test region...

K
Writing the second half of the test region... 1;32muaOK
Reading the whole test region... rt:~$ OK
Checking the read content... OK
Putting the flash device into suspended state... OK

Without DMA:
*** Booting Zephyr OS build v2.7.0-rc2-134-gb3be5ba11ce2  ***
DataFlash sample on nucleo_g0b1re
Using DATAFLASH_0, chip size: 4194304 bytes (page: 512)
Reading the first byte of the test region ... OK
Preparing test content starting with 0x3B.
Writing the first half of the test region... OK
Writing the second half of the test region... OK
Reading the whole test region... OK
Checking the read content... OK
Putting the flash device into suspended state... OK

Environment (please complete the following information):

Win 10
gnuarmemb
611284021c

@erwango I have tried the old uart_stm32.c code and the latest one, both results are identical.

@ycsin Have you tried to set dma prio to the same level as spi one ?

@erwango Sorry, I don't really understand. I only enabled DMA for SPI in the devicetree and left UARTs untouched, is there any dma prio that I should configure?

Try to set interrupts prio to 5 (same as SPI), here:
		dma1: dma@40020000 {
			compatible = "st,stm32-dma-v2";
			#dma-cells = <3>;
			reg = <0x40020000 0x400>;
-			interrupts = <9 0 10 0 10 0 11 0 11 0>;
+			interrupts = <9 5 10 5 10 5 11 5 11 5>;
			clocks = <&rcc STM32_CLOCK_BUS_AHB1 0x1>;
			dma-requests = <5>;
			dma-offset = <0>;
			status = "disabled";
			label = "DMA_1";
		};

It is overwritten in g0b1.dtsi and has different length:
interrupts = <9 0 10 0 10 0 11 0 11 0 11 0 11 0>;

Try to set interrupts prio to 5 (same as SPI), here:

It is overwritten in g051.dtsi and has different length:
interrupts = <9 0 10 0 10 0 11 0 11 0 11 0 11 0>;

What should I set this to?

These go by pairs. In first pair '9 0', '9' is the IRQ line, '0' is the prio.
Replace all '0' by '5'.

These go by pairs. In first pair '9 0', '9' is the IRQ line, '0' is the prio.
Replace all '0' by '5'.

I overwrite it in the nucleo_g0b1re.dts now
&dma1 {
	interrupts = <9 5 10 5 10 5 11 5 11 5 11 5 11 5>;
	status = "okay";
};

&dmamux1 {
	status = "okay";
};

&spi1 {
	pinctrl-0 = <&spi1_nss_pb0 &spi1_sck_pa5
		     &spi1_miso_pa6 &spi1_mosi_pa7>;
	status = "okay";
	dmas = <&dmamux1 2 17 0x20440
		&dmamux1 1 16 0x20480>;
	dma-names = "tx", "rx";
	cs-gpios = <&gpioc 8 GPIO_ACTIVE_LOW>;
	at45db0: at45db041e@0 {
		compatible = "atmel,at45";
		reg = <0>;
		spi-max-frequency = <15000000>;
		label = "DATAFLASH_0";
		jedec-id = [1f 27 01];
		size = <33554432>;
		sector-size = <65536>;
		block-size = <4096>;
		page-size = <512>;
		use-udpd;
		enter-dpd-delay = <4000>;
		exit-dpd-delay = <180000>;
		status = "okay";
	};
};

But unable to compile:
C:/Users/yongc/zephyrproject/zephyr/drivers/dma/dma_stm32.c: In function 'dma_stm32_config_irq_0':
../../../../include/toolchain/gcc.h:61:36: error: static assertion failed: "Invalid interrupt priority. Values must not exceed IRQ_PRIO_LOWEST"
   61 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG)
      |                                    ^~~~~~~~~~~~~~
../../../../include/arch/arm/aarch32/irq.h:97:2: note: in expansion of macro 'BUILD_ASSERT'
   97 |  BUILD_ASSERT((flags_p & IRQ_ZERO_LATENCY) || \

Ok, my bad, it seems that 5 is not a valid value on GO and besides SPI prio is 0 on G0.
So I guess my suggestion won't work.
Anyway, you can try to set prio to '4' and see if things get better, but I''m not so sure now.

Try to set interrupts prio to 5 (same as SPI)

Is this written anywhere?
		spi1: spi@40013000 {
			compatible = "st,stm32-spi-fifo", "st,stm32-spi";
			#address-cells = <1>;
			#size-cells = <0>;
			reg = <0x40013000 0x400>;
			clocks = <&rcc STM32_CLOCK_BUS_APB2 0x00001000>;
			interrupts = <25 0>;
			status = "disabled";
			label = "SPI_1";
		};

Anyway, you can try to set prio to '4' and see if things get better, but I''m not so sure now.

I've tried 4 but it also fails to compile, 1,2,3 compiles, but same result
DataFlash sample on nucleo_g0b1re
Using DATAFLASH_0, chip size: 4194304 bytes (page: 512)
Reading the first byte of the test region ... OK
Preparing test content starting with 0x41.
Writing the first half of the test region...

K
Writing the second half of the test region... 1;32muaOK
Reading the whole test region... rt:~$ OK
Checking the read content... OK
Putting the flash device into suspended state... OK

Anyway, you can try to set prio to '4' and see if things get better, but I''m not so sure now.

I've tried 4 but it also fails to compile, 1,2,3 compiles, but same result
DataFlash sample on nucleo_g0b1re
Using DATAFLASH_0, chip size: 4194304 bytes (page: 512)
Reading the first byte of the test region ... OK
Preparing test content starting with 0x41.
Writing the first half of the test region...

K
Writing the second half of the test region... 1;32muaOK
Reading the whole test region... rt:~$ OK
Checking the read content... OK
Putting the flash device into suspended state... OK

Ok, Thanks for having had a try. We'll need to investigate a bit more then.


Implement Contract IsStandardContract Interop

Summary or problem description
There isn't an Contract IsStandardContract Interop yet.
Do you have any solution you want to propose?
Implement Contract IsStandardContract Interop.
Where in the software does this update applies to?
In the contract.

It was removed.


bump version to 3.3 and use ld.bfd to link on fedora 36

https://github.com/rspamd/rspamd/pull/4211

@ajayramaswamy thank you for opening the PR!
Could you add an entry to the changelog in the spec too?


fixed-point tests

Codecov Report
Patch coverage: 85.52% and project coverage change: +6.14 :tada:

Comparison is base (a0d051a) 75.23% compared to head (6fa96c8) 81.37%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #349      +/-   ##
==========================================
+ Coverage   75.23%   81.37%   +6.14%
==========================================
  Files          30       30
  Lines        3735     3770      +35
==========================================
+ Hits         2810     3068     +258
+ Misses        925      702     -223

Flag
Coverage Δ

unittests
81.37% <85.52%> (+6.14%)
:arrow_up:

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

Impacted Files
Coverage Δ

elfpy/utils/math/update_weighted_average.py
92.30% <ø> (+30.76%)
:arrow_up:

elfpy/utils/math/fixed_point.py
88.64% <80.43%> (-0.10%)
:arrow_down:

elfpy/markets/hyperdrive/hyperdrive_market.py
74.80% <86.66%> (+9.32%)
:arrow_up:

elfpy/agents/wallet.py
86.88% <100.00%> (+3.36%)
:arrow_up:

elfpy/markets/hyperdrive/hyperdrive_actions.py
84.54% <100.00%> (+30.34%)
:arrow_up:

elfpy/types.py
93.50% <100.00%> (ø)

... and 4 files with indirect coverage changes

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Did you leave the project ?

Did you leave the project ?

This is still actively in development

Do  you need help ?


Added special post that refer to questions. Created corresponding answers template.

[ ] Fixes issue #41  : "Add features to ask a Question"
[x] Other checks

Reason for pull request:
"To add questions functionality"
Description of changes or additions:
"Posts model has new column isQuestion"
"New model 'Answer' created"
Screenshots:
"Insert screenshots here if ava

ilable"

@Kartik-Sama Please squash the commits.


fix high CPU usage DAMON+heat policy

by rewriting memory heat data structure

Taking a look at the orderedmap implementation, I'm not convinced that it would save CPU or memory compared to using plain map. If I understand it correctly, the only thing it adds is iterating through elements stored in the map in the order (or the reverse order) in which they were added. The order of stored addresses would be much more relevant for us, because we need a quick way to find out if address X belongs to any stored address range - and modify that range in order to update the heatmap.
==> Compared with using arrays to store heatrange, orderedMap does not need to do additional sorting work when inserting, which saves CPU consumption I believe?

One thing that caught my eye in the orderedmap, too, is that it stores both key and value in two places, which does not promise good memory efficiency. And it even seems to fail keeping these values in sync on Set(k, v) if k is already stored. :-/
==> Thank you for pointing it out, if this method is okay, I could fix it by only storing one copy via other structures.

Compared with using arrays to store heatrange, orderedMap does not need to do additional sorting work when inserting, which saves CPU consumption I believe?

Arrays were sorted by address for fast search of already stored heatmap areas that overlap with new address range. From a sorted array this lookup happens in logarithmic time when bisecting.
Doing similar lookup from the orderedmap requires going through all stored keys (start addresses) and many/all associated values (length of address range) to find out if each region overlaps. It's the same also in the case when using native go map instead of orderedmap. However, orderedmap has the extra burden that it also maintains a doubly-linked list with keys and values. I do not see any benefit from that list in our case. Do you? (It might be that I'm missing something.)

This PR also needs to rebase on the PR: https://github.com/intel/memtierd/pull/100.
I think now the second issue (storing in two places) is fixed, @askervin, also tried to make some changes to save the CPU consumption (while it does not help with the memory consumption). Could you pls have a second look when you are available? Thank you in advance. : - )

Jing, I'm glad you found this solution. After playing around with this a bit (and trying to get a grip on type parameters in go), I think this might work.
I'd suggest simplifying orderedMap by removing the kv map completely. It's only duplicating keys and values in memory. You can replace all kv[key] expressions by using values from rbtree (or its iterator). I think it will simplify the code a lot, as there will be no need for our own versions of put/set/get/getelement. We can do just something like:
type addrHRTree = rbt.Tree[uint64, *HeatRange] // red-black tree with start addresses as keys and heat ranges as values
type addrHRNode = rbt.Node[uint64, *HeatRange] // red-black tree node (if needed... but might be that you don't need this...)

You can use addrHRTree.Floor() and addrHRTree.Ceiling() instead of our own findNear().

Some of my comments are purely cosmetic (documentation). Feel free to deprioritize those.
How's the functionality of the code in your perspective? Does it pass unit and e2e tests? Does it ease memtierd's CPU usage when running long with DAMON?

Rebased on the top of main, all the comments got resolved, all the e2e tests passed (except enable-damon) on ubuntu-22.04.


[18.09] prometheus/exporters: fix regression in DynamicUser behavior

Cherry-pick from #51545 onto 18.09.

(cc @globin -- not sure if you were planning to do it on your own, so here's a PR for convenience)

Yes, sorry just did it myself, noticing this too late.


Better return values for concept cluster/pipeline deletion method

The following two deletion methods both return a ResponseEntity<void>:

ConceptPipelineApiDelegateImpl.deleteConceptPipelineById
ConceptClusterApiDelegateImpl.deleteConceptClustersForPipelineId

Maybe it's more feasible to change this to a ResponseEntity<PipelineResponse>; this would need a change in top-api as well, as those methods are overrides.

For deleteConceptPipelineById one could also think about an option to only partially delete (or better pick up where failed previously because there are already steps present)
The second option could/should be checked in top-frontend startPipeline.


📃: Want to add crossy road game

🔴 Title : Crossy Road game
🔴 Tech stack : HTML, CSS ,JavaScript
🔴 Objective : The goal of this game is to guide a character across roads, avoiding obstacles like vehicles and rivers, while reaching the other side safely
🔴 Summary : Crossy Road is a simple yet engaging arcade game where players control a character trying to cross busy roads and rivers. The player needs to avoid obstacles by moving the character forward, backward, left, and right. The challenge increases as the game progresses, making it a test of quick reflexes and decision-making skills. The project showcases a combination of game logic, event handling, and dynamic rendering using JavaScript.
📸 Screenshots

✅ Details to Include When Taking the Issue:
Name : Abhijit Motekar
Participant Role (Specify the Open Source Program name, e.g., GSSOC, Hacktoberfest, etc.): Gssoc-ext Hacktoberfest

Happy Contributing! 🚀
Wishing you all the best on your open source journey. Enjoy! 😎

Hey @iamrahulmahato
This is not level 1 project please give level 2 for this.

i am closing it as it is duplicate


New Rule: requireEarlyReturn

From https://github.com/jscs-dev/node-jscs/issues/1071#issuecomment-74583649 (node-style-guide and idiomatic preset).
Right:
function isPercentage(val) {
  if (val < 0) {
    return false;
  }

  if (val > 100) {
    return false;
  }

  return true;
}

Wrong:
function isPercentage(val) {
  if (val >= 0) {
    if (val < 100) {
      return true;
    } else {
      return false;
    }
  } else {
    return false;
  }
}

Name? Maybe requireEarlyReturnFromFunctions?
Not sure how we would go about doing this? Checking for return's in else statements?

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/10295000-new-rule-requireearlyreturn?utm_campaign=plugin&utm_content=tracker%2F281640&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F281640&utm_medium=issues&utm_source=github).

:+1: for this.
requireEarlyReturn is fine for me. I think FromFunctions not needed because returns used in functions only and made for functions.

Oh haha good point.

That one would be cool to have

Going to close for now.

Okay, reopening, since it is needed for couple presets


change MAINTAINER in Dockerfiles to email list

What does this PR (Pull Request) do?

[x] This PR fixes #3457
Which Traffic Control components are affected by this PR?

Documentation

Only changes the "MAINTAINER" entry in Dockerfiles.  This should help to focus new users to use the mailing list as the resource to get help rather than seeking out individuals.
What is the best way to verify this PR?

Build all components using ./pkg -v.   There should be no difference from the current build.
No documentation change is needed and this does not fit the criteria for CHANGELOG.md.
If this is a bug fix, what versions of Traffic Ops are affected?

The following criteria are ALL met by this PR

[x] This PR includes tests OR I have explained why tests are unnecessary
[x] This PR includes documentation OR I have explained why documentation is unnecessary
[x] This PR includes an update to CHANGELOG.md OR such an update is not necessary
[x] This PR includes any and all required license headers
[x] This PR ensures that database migration sequence is correct OR this PR does not include a database migration
[x] This PR DOES NOT FIX A SERIOUS SECURITY VULNERABILITY (see the Apache Software Foundation's security guidelines for details)

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/3462/
Test PASSed.


[Rust] Rustlings 01 - variables

Description

Add author
Add the blog post for Rustlings chapter 1 - variables

Related Issue
https://github.com/lowlevelers/lowlevelers.com/issues/12

omg this is so well-written! thank you @henchiyb


Question - is allocation size stored in JFR format?

Hi, is allocation size stored in JFR format? I looked at source code and some generated JFRs and cannot find it :(
event=alloc, v1.8.1

Not in 1.8.x.
But async-profiler 2.0 (pre-release published today) writes jdk.ObjectAllocationInNewTLAB and jdk.ObjectAllocationOutsideTLAB events containing allocationSize and tlabSize fields.

Great, thank you.


build: Update to header 1.3.287

CI Vulkan-Tools build # 1463 failed.

CI Vulkan-Tools build # 1463 failed.

CI Vulkan-Tools build queued with queue ID 197150.

CI Vulkan-Tools build # 1464 running.

CI Vulkan-Tools build # 1464 passed.


[OAP-CACHE] Error runing q32 binary cache

core dump running q32 using binary cache

@offthewall123  mark this as "OAP 1.0"?

@zhixingheyi-tian No, it's 0.8 branch.

closed since PR got merged.

@HongW2019 reproduce this issue on branch-1.0. Analyze code again, need some more fix.

LGTM.


Possibility to change color for state buttons

Is is possible to change the color for state buttons (not just tooltip) in the awesomewm:  sticky mode, onTop mode, floating mode?
Changing of colors for hover mouse mode for close, minimize and maxime works nice ;-)

Yes all button colors can be changed through the following config params:

-- close_color = "#ee4266"
-- minimize_color = "#ffb400"
-- maximize_color = "#4CBB17"
-- floating_color = "#f6a2ed"
-- ontop_color = "#f6a2ed"
-- sticky_color = "#f6a2ed"

However currently you can not specify different colors for on/off states (but it is planned)


Redirects to other pages are sometimes included in the Lua table

See, for example, line 75 of Module:Pagetype/softredirect/sandbox. This template, Template:Taxonomy/Olindiasidae is a redirect, but it does not redirect to Template:Soft redirect with Wikidata item; it only links to it.

This is caused by dablinks.py using BasePage.backlinks on line 45. This method lists all links, not just redirects. While dablinks.py uses the filter_redirects option to this method to return only redirects, this does not ensure that the redirect target is the desired page; pages that are redirects to other targets are also included if they link to or transclude the desired page in the redirect body. The correct method to use is the BasePage.redirects method; this method will only return redirects where the target is the desired page.


Using with universal app

When using with universal react app, window is not defined error is shown. The problem is in responsive example, not in module itself.
var mql = window.matchMedia('(min-width: 800px)');

It think it shall be inside componentDidMount event instead of componentWillMount.

Are you using the latest version?
On Sat, Jul 30, 2016, 14:58 Kakhaber<EMAIL_ADDRESS>wrote:

When using with universal react app, window is not defined error is shown.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/balloob/react-sidebar/issues/61, or mute the thread
https://github.com/notifications/unsubscribe-auth/ABYJ2g_WzbR2z0v4ftQsBn_VKdhTmyzUks5qa8kGgaJpZM4JY5xf
.

I'm running into the same problem when using this module with react-start-kit.
Window is not defined during componentWillMount, but of course it isn't good practice to set state in componentDidMount; doing so makes the docking functionality work initially but doesn't allow responding to size changes.


mfa configuration #91

Fixed default behaviour for mfa configuration

Works like it should, Good job!

Good job indeed! We will merge it right after releasing 1.1.


Access Denied Error

I have been trying for days to get this working. I had started using Docker on my WIndows10 Server with no luck.
I've now moved onto a RPi3 also with no luck.
I've installed Docker on the RPi, I've created a docker-compose and config file. I've run the docker-compose up -d command.

This is the log from the app container:
Cron is enabled, launching it!,
Starting cron daemon now...,

writing mariadb config,
gomplate version 3.1.0, build 2f357bd5 (2018-11-30T02:51:36Z),
config is:,
input: /etc/templates/my.cnf.tmpl,
output: /etc/mysql/my.cnf,
,
rendered 1 template(s) with 0 error(s) in 4.535557ms,
chown data directory,
running mysql_install_db...,
Installing MariaDB/MySQL system tables in '/var/lib/mysql' ...,
2020-08-24 23:42:20 6 [Warning] Failed to load slave replication state from table mysql.gtid_slave_pos: 1017: Can't find file: './mysql/' (errno: 2 "No such file or directory"),
OK,
,
To start mysqld at boot time you have to copy,
support-files/mysql.server to the right place for your system,
,
,
Two all-privilege accounts were created.,
One is root@localhost, it has no password, but you need to,
be system 'root' user to connect. Use, for example, sudo mysql,
The second is mysql@localhost, it has no password either, but,
you need to be the system 'mysql' user to connect.,
After connecting you can set the password, if you would need to be,
able to connect as any of these users with a password and without sudo,
,
See the MariaDB Knowledgebase at http://mariadb.com/kb or the,
MySQL manual for more instructions.,
,
You can start the MariaDB daemon with:,
cd '/usr' ; /usr/bin/mysqld_safe --datadir='/var/lib/mysql',
,
You can test the MariaDB daemon with mysql-test-run.pl,
cd '/usr/mysql-test' ; perl mysql-test-run.pl,
,
Please report any problems at http://mariadb.org/jira,
,
The latest information about MariaDB is available at http://mariadb.org/.,
You can find additional information about the MySQL part at:,
http://dev.mysql.com,
Consider joining MariaDB's strong and vibrant community:,
https://mariadb.org/get-involved/,
,
finished mysql_install_db,
starting mariadb service,
200824 23:42:24 mysqld_safe Logging to '/var/lib/mysql/db9f8d613d39.err'.,
200824 23:42:24 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql,

This is the log from the DB
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.,
[s6-init] ensuring user provided files have correct perms...exited 0.,
[fix-attrs.d] applying ownership & permissions fixes...,
[fix-attrs.d] done.,
[cont-init.d] executing container initialization scripts...,
[cont-init.d] done.,
[services.d] starting services,
[services.d] done.,
Generating dummy SSL certificate...,
Generating a RSA private key,
...............+++++,
................+++++,
writing new private key to '/data/nginx/dummykey.pem',
-----,
Complete,
❯ Enabling IPV6 in hosts: /etc/nginx/conf.d,
❯ /etc/nginx/conf.d/include/block-exploits.conf,
❯ /etc/nginx/conf.d/include/letsencrypt-acme-challenge.conf,
❯ /etc/nginx/conf.d/include/assets.conf,
❯ /etc/nginx/conf.d/include/ip_ranges.conf,
❯ /etc/nginx/conf.d/include/proxy.conf,
❯ /etc/nginx/conf.d/include/force-ssl.conf,
❯ /etc/nginx/conf.d/include/ssl-ciphers.conf,
❯ /etc/nginx/conf.d/include/resolvers.conf,
❯ /etc/nginx/conf.d/production.conf,
❯ /etc/nginx/conf.d/default.conf,
❯ Enabling IPV6 in hosts: /data/nginx,
[8/24/2020] [11:42:28 PM] [Global   ] › ✖  error     ER_ACCESS_DENIED_ERROR: Access denied for user<EMAIL_ADDRESS>(using password: YES),
[8/24/2020] [11:42:29 PM] [Global   ] › ✖  error     ER_ACCESS_DENIED_ERROR: Access denied for user<EMAIL_ADDRESS>(using password: YES),
[8/24/2020] [11:42:30 PM] [Global   ] › ✖  error     ER_ACCESS_DENIED_ERROR: Access denied for user<EMAIL_ADDRESS>(using password: YES),
[8/24/2020] [11:42:31 PM] [Global   ] › ✖  error     ER_ACCESS_DENIED_ERROR: Access denied for user<EMAIL_ADDRESS>(using password: YES),
[8/24/2020] [11:42:32 PM] [Global   ] › ✖  error     ER_ACCESS_DENIED_ERROR: Access denied for user<EMAIL_ADDRESS>(using password: YES),
[8/24/2020] [11:42:33 PM] [Global   ] › ✖  error     ER_ACCESS_DENIED_ERROR: Access denied for user<EMAIL_ADDRESS>(using password: YES),
[8/24/2020] [11:42:34 PM] [Global   ] › ✖  error     ER_ACCESS_DENIED_ERROR: Access denied for user<EMAIL_ADDRESS>(using password: YES),

My docker-compose file: You'll notice that I've changed the db image and the MARIADB from MYSQL in the bottom part of the file. I had the same problem being unable to get this working even with the original db and MYSQL language. This change was based on reading about what others have tried.
version: "3"
services:
app:
image: jc21/nginx-proxy-manager:2
restart: always
ports:
# Public HTTP Port:
- '80:80'
# Public HTTPS Port:
- '443:443'
# Admin Web Port:
- '81:81'
environment:
- TZ:America/New_York
volumes:
# Make sure this config.json file exists as per instructions above:
- ./config.json:/app/config/production.json
- ./data:/data
- ./letsencrypt:/etc/letsencrypt
depends_on:
- db
db:
image: webhippie/mariadb:latest
restart: always
environment:
MARIADB_ROOT_PASSWORD: 'npm'
MARIADB_DATABASE: 'npm'
MARIADB_USER: 'npm'
MARIADB_PASSWORD: 'npm'
volumes:
- ./data/mysql:/var/lib/mysql

My config.json file
{
"database": {
"engine": "mysql",
"host": "db",
"name": "npm",
"user": "npm",
"password": "npm",
"port": 3306
}
}
Any suggestions?

SAME ISSUE HERE!

No luck. I'm using an nginx proxy manager docker from jlesage right now. Based on the same nginx proxy manager

@adamgreenberg07 seems like you cant change the db passwort without explosion.

did you find any solution? I am having the same trouble and up until now could not get it to work.

It finally worked for me after using the standard login credentials:
  MYSQL_ROOT_PASSWORD: ROOTPASSWORD
  MYSQL_DATABASE: DBNAME
  MYSQL_USER: DBUSERNAME
  MYSQL_PASSWORD: DBPASSWORD

Same issue here

Same issue here

It finally worked for me after using the standard login credentials:
  MYSQL_ROOT_PASSWORD: ROOTPASSWORD

  MYSQL_DATABASE: DBNAME

  MYSQL_USER: DBUSERNAME

  MYSQL_PASSWORD: DBPASSWORD

Security hole or back door 🚪 as a feature? The same what Mongo db does for years, not only in their docker images. Sometimes I get the impression that projects get payed for leaving the doors wide open.

Something must be pretty wrong with the db Image, even if you try using the Maria cli inside of the db Container you have no access.  ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

This issue seems to be a mix of lots of different things. For setup on a raspberry pi please see https://github.com/jc21/nginx-proxy-manager/issues/212, and on other systems if you have this issue, you could try a different database image.

Same here and I have done everything that has been suggested here and other places and I am still getting the same thing everytime.

very frustrating.....

@nexusguy59 what does the log say?

I hope this helps someone. I was getting the same error when trying to set up my Nginx Proxy Manager using docker.  My MariaDB was in a separate docker (on Unraid).
The problem was, I had an "@" in my DB_MYSQL_PASSWORD variable.  I changed my password to a simple string --> "password" on my database for a test. I updated the docker variable and restarted. All worked.

Same issue here, if I use a password different than "PASSWORD", I retrieve the same error.
Has anyone managed to make it work with a password different than the default one?
I am also using it in conjuction with MariaDB.

Hi!
Today I had the same problem of Bad Gateway after one update. I read and did all the indications here, my fix was:

Start a new container with PHPMyAdmin, on the same network
remove the user from the database
change this user's password
add the user back to the DB
update the docker-compose with the new password
rebuild NPM

Voilà

I hope this helps someone. I was getting the same error when trying to set up my Nginx Proxy Manager using docker. My MariaDB was in a separate docker (on Unraid).
The problem was, I had an "@" in my DB_MYSQL_PASSWORD variable. I changed my password to a simple string --> "password" on my database for a test. I updated the docker variable and restarted. All worked.

Same but with a "$"! Thank you so much for leading me to the right direction!


How to choose a pre-training model？

I replaced WEIGHT: "catalog://ImageNetPretrained/MSRA/R-50" in the e2e_faster_rcnn_R_50_C4_1x_1_gpu_voc.yaml2 file with WEIGHT: https://download.pytorch.org/models/resnet50-19c8e357.pth, this mAp value is from 0.73 dropped to 0.58.  How did you choose at the time? Thank you!

Here are a few reasons:

you need to modify the mean / std for the image pre-processing to match the ones from torchvision. They are different from the ones from Caffe2
https://github.com/facebookresearch/maskrcnn-benchmark/blob/f917a555bc422ed5e06a402e739da0e21b00d0b5/maskrcnn_benchmark/config/defaults.py#L51-L53
The image should be between 0-1 in RGB format, while Caffe2 uses BGR in 0-255
https://github.com/facebookresearch/maskrcnn-benchmark/blob/f917a555bc422ed5e06a402e739da0e21b00d0b5/maskrcnn_benchmark/config/defaults.py#L54-L55
The stride in the 1x1 convolution is different between Caffe2 models and PyTorch models
https://github.com/facebookresearch/maskrcnn-benchmark/blob/f917a555bc422ed5e06a402e739da0e21b00d0b5/maskrcnn_benchmark/config/defaults.py#L261-L263


VS Code Windows 64 Bit - Copy on right click in terminal does not work

VSCode Version: Code 1.15.0 (8b95971d8cccd3afd86b35d4a0e098c189294ff2, 2017-08-09T20:16:18.034Z)
OS Version: Windows_NT x64 10.0.10586
Extensions:

Extension
Author (truncated)
Version

vscode-eslint
dba
1.2.11

auto-close-tag
for
0.4.3

beautify
Hoo
1.1.1

vscode-docker
Pet
0.0.16

vscode-icons
rob
7.12.0

I have "terminal.integrated.rightClickCopyPaste" set to true. Still when I right click in embedded terminal it opens a context menu instead of copy/paste selected text in the terminal.
Steps to Reproduce:

Open embedded terminal (Ctrl + `)
Select any text in the terminal
Right click in the terminal
Expected behavior: It should copy the selected text
Actual behavior: It shows context menu

Reproduces without extensions: Yes

Duplicate of https://github.com/Microsoft/vscode/issues/32336


Rest interface for dtfa?

It would be quite nice to use django-two-factor-auth through rest api/json calls. Any plans?

I have no plans to build any new features for this package. That said, I think that API keys should be used instead? Usually on the consumer-side I don't think you'd want the hassle of the second factor, and an API key can be stored safely and is less likely to be phished anyway.


cant run the samples

Error: Could not find or load main class org.apache.spark.launcher.SparkCLRSubmitArguments
em... can someone tell me why?

Can you share the steps you are following to run the samples? There are multiple deployment modes and we would like to make sure that the steps you are following are supported/tested.

i follow the step from https://ci.appveyor.com/project/skaarthik/SparkCLR/branch/master and set the environment variables.
Then uncommit the setting
<add key="CSharpWorkerPath" value="C:\SparkCLR-master\SparkCLR-master\csharp\Samples\Microsoft.Spark.CSharp\bin\Release\CSharpWorker.exe"/>
and run command
sparkclr-submit.cmd --verbose -exe SparkCLRSamples.exe  %SPARKCLR_HOME%\samples spark.local.dir C:\temp\SparkCLRTemp sparkclr.sampledata.loc %SPARKCLR_HOME%\data

em..anyway i change the sparkclr-submit.cmd
"%JAVA_HOME%\bin\java" -cp %LAUNCH_CLASSPATH% org.apache.spark.launcher.SparkCLRSubmitArguments %* > %LAUNCHER_OUTPUT%
simply because my %JAVA_HOME% include space and it go wrong here.

Please try below cmd again with latest code, we just merged some changes.
sparkclr-submit.cmd --verbose --exe SparkCLRSamples.exe %SPARKCLR_HOME%\samples spark.local.dir C:\temp\SparkCLRTemp sparkclr.sampledata.loc %SPARKCLR_HOME%\data sparkclr.samples.torun PiSample

i use the latest code and it still can't run.
Could not find or load main class org.apache.spark.launcher.SparkCLRSubmitArguments
can someone tell me is there exist a main class in spark-clr-1.4.1-SNAPSHOT.jar\org\apache\spark\launcher if it compile successful?

@tawan0109 - please follow-up with @LeiTi. Once the issue is resolved @LeiTi  can close the issue.

Hi LeiTi, please check whether %SPARKCLR_HOME% is set properly, and spark-clr-1.4.1-SNAPSHOT.jar can be found under %SPARKCLR_HOME%\lib. If still can't work, please make below modifications to your scripts/sparkclr-submit.cmd, rerun it and send us the output, we will use it for diagnosis.
(line 41)
-%JAVA_HOME%\bin\java -cp %LAUNCH_CLASSPATH% org.apache.spark.launcher.SparkCLRSubmitArguments %* > %LAUNCHER_OUTPUT%
+echo %JAVA_HOME%\bin\java -cp %LAUNCH_CLASSPATH% org.apache.spark.launcher.SparkCLRSubmitArguments %*
+goto :eof

C:\Program Files\Java\jdk1.8.0_65\bin\java -cp ;D:\sparkCLRHome\lib\spark-clr-1.4.1-SNAPSHOT.jar;D:\sparkcsv\commons-csv-1.2.jar;D:\sparkcsv\spark-csv_2.11-1.2.0.jar org.apache.spark.launcher.SparkCLRSubmitArguments --verbose --exe SparkCLRSamples.exe D:\sparkCLRHome\samples spark.local.dir C:\temp\SparkCLRTemp sparkclr.sampledata.loc D:\sparkCLRHome\data

It looks like spark-assembly-1.4.1-hadoop2.6.0.jar is missing in the classpath. Would you please check whether %SPARK_HOME% has been set properly, and spark-assembly-1.4.1-hadoop2.6.0.jar can be found under %SPARK_HOME%\lib?

ya. i found that there is no folder name lib under SPARK_HOME...and  spark-assembly-1.4.1-hadoop2.4.0.jar is under folder assembly...

It seems you didn't download spark bits, before running the samples.
Sent from my Windows Phone

From<EMAIL_ADDRESS>Sent: 11/11/2015 11:53 PM
To<EMAIL_ADDRESS>Subject: Re: [SparkCLR] cant run the samples (#35)
ya. i found that there is no folder name lib under SPARK_HOME...and  spark-assembly-1.4.1-hadoop2.4.0.jar is under folder assembly...

Reply to this email directly or view it on GitHub:
https://github.com/Microsoft/SparkCLR/issues/35#issuecomment-156027734

u r right. i build it use mvn by myself. now i download spark-bin and it run.
i think we can close this issue. thk all.

I am currently trying to run the samples for SparkCLR and the local samples from within the localmode folder works great.  However, when trying to execute the samples against my Spark server (cluster) using the sparkclr-submit.cmd script:

C:\MyData\Apache_Spark\SparkCLR-master\build\runtime>sparkclr-submit.cmd --verbose --master spark://spark01:7077 --exe SparkCLRSamples.exe  %SPARKCLR_HOME%\samples spark.local.dir %SPARKCLR_HOME%\Temp sparkclr.sampledata.loc %SPARKCLR_HOME%\data

I am getting the following error:
The system cannot find the path specified.
SPARKCLR_JAR=spark-clr_2.10-1.6.0-SNAPSHOT.jar
Error: Could not find or load main class org.apache.spark.launcher.SparkCLRSubmitArguments
is this another environment variable that needs to be set?  I have the SPARKCLR_HOME and  JAVA_HOME variables.  Are there more that are needed?
Thanks all.


Generate mapping routes from subclasses of Value and MappingStep

Added two new arguments to mapping_routes() such that we can generate mapping routes based on custom subclasses of Value and MappingStep.

Codecov Report
Base: 66.94% // Head: 67.62% // Increases project coverage by +0.67% :tada:

Coverage data is based on head (b336e32) compared to base (a676c26).
Patch coverage: 66.66% of modified lines in pull request are covered.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #73      +/-   ##
==========================================
+ Coverage   66.94%   67.62%   +0.67%
==========================================
  Files          14       14
  Lines        1074     1078       +4
==========================================
+ Hits          719      729      +10
+ Misses        355      349       -6

Impacted Files
Coverage Δ

tripper/triplestore.py
78.41% <ø> (ø)

tripper/mappings/mappings.py
50.87% <66.66%> (+2.83%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Model builder hangs on large datasets

System Information:

Model Builder Version: 16.0.2003.302
Visual Studio Version: 2019 Preview

Describe the bug
When trying to load a large file in the Data step, VS hangs ("Not responding").
To Reproduce
Load a dataset of size 1TB w/ 4.4B rows.

Additional context

@beccamc can we add this to our datasets issue.

I took a look at our telemetry for number of columns (query in one note -> Shield team -> Kusto Queries). Below are the buckets of datasets and columns. 8,675 datasets have 1-100 columns. 2,744 datasets have 101-200 columns, etc. 47% of our datasets have over 100 columns (our current cut off for rendering in the UI).  5% have over 1000 columns.
NumColumns | count_ |  percentage of total
100 | 8675 | 53%
200 | 2744 | 17%
300 | 1830 | 11%
400 | 909 | 6%
500 | 304 | 2%
600 | 952 | 6%
700 | 107 | 1%
800 | 18 | 0%
900 | 26 | 0%

1000 | 127 | 5%

@Lynx1820, Can you share the dataset? How many columns/rows does it have?

I'm sorry, I just saw this. The data can be found at \ct01\data\Criteo\Spark\day_0-23_withHeader.tsv

Closing out for Epic to track this work.


Puppeteer and AWS Lambda

I would like to officially open an issue for 1st class support of running Puppeteer in AWS Lambda. I know in the troubleshooting doc it says it is not possible and that there are community work arounds. However, it would be especially awesome if as a community we could build support for AWS Lambda and Puppeteer right here in this repository. If this is not on the roadmap and never will be, feel free to close this issue. If not, than let's put our brains together and brainstorm!!!
You guys are the best.

The linked resources are our recommendations, and created by the community. Anything wrong with those? IMO, Puppeteer shouldn't get into the business of compiling and vending Chrome binaries for different platforms.

I'm having a problem with clicking elements. Locally works perfect, but running on lambda says:
Node is not HTML Element or not visible.
any Idea.>?


add GO_TEST_FLAGS to make e2e-test

so we can see the live test running in e2e github action log
Signed-off-by: Chmouel Boudjnah<EMAIL_ADDRESS>
Changes

Submitter Checklist

[ ] ♽  Run make test lint before submitting a PR (ie: with pre-commit, no need to waste CPU cycle on CI
[ ] 📖 If you are adding a user facing feature or make a change of the behavior, please verify that you have documented it
[ ] 🧪 100% coverage is not a target but most of the time we would rather have a unit test if you make a code change.
[ ] 🎁 If that's something that is possible to do please ensure to check if we can add a e2e test.
[ ] 🔎 If there is a flakiness in the CI tests then don't necessary ignore it, better get the flakyness fixed before merging or if that's not possible there is a good reason to bypass it. (token rate limitation may be a good reason to skip).

Codecov Report

Merging #677 (2520bd0) into main (881d94d) will decrease coverage by 0.00%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #677      +/-   ##
==========================================
- Coverage   70.35%   70.35%   -0.01%
==========================================
  Files          61       61
  Lines        3731     3737       +6
==========================================
+ Hits         2625     2629       +4
- Misses        851      852       +1
- Partials      255      256       +1

Impacted Files
Coverage Δ

pkg/hub/get.go
82.85% <0.00%> (-0.48%)
:arrow_down:

pkg/templates/templating.go
100.00% <0.00%> (ø)

Continue to review full report at Codecov.

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


Docker RTMPS server not work when gstreamer push stream

Which version are you using?
v1.0.0
Which operating system are you using?

[ ] Linux amd64 standard
[ ] Linux amd64 Docker
[ ] Linux arm64 standard
[x ] Linux arm64 Docker
[ ] Linux arm7 standard
[ ] Linux arm7 Docker
[ ] Linux arm6 standard
[ ] Linux arm6 Docker
[ ] Windows amd64 standard
[ ] Windows amd64 Docker (WSL backend)
[ ] macOS amd64 standard
[ ] macOS amd64 Docker
[ ] Other (please describe)

Describe the issue
Description
Describe how to replicate the issue

I changed configure file  like :

###############################################
# RTMP parameters

# Enable support for the RTMP protocol.
rtmp: yes
# Address of the RTMP listener. This is needed only when encryption is "no" or "optional".
rtmpAddress: :1935
# Encrypt connections with TLS (RTMPS).
# Available values are "no", "strict", "optional".
rtmpEncryption: "optional"
# Address of the RTMPS listener. This is needed only when encryption is "strict" or "optional".
rtmpsAddress: :1936
# Path to the server key. This is needed only when encryption is "strict" or "optional".
# This can be generated with:
# openssl genrsa -out server.key 2048
# openssl req -new -x509 -sha256 -key server.key -out server.crt -days 3650
rtmpServerKey: /server.key
# Path to the server certificate.
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Redistribute latency...
ERROR: from element /GstPipeline:pipeline0/GstRTMPSink:rtmpsink0: Could not open resource for writing.
Additional debug info:
gstrtmpsink.c(293): gst_rtmp_sink_render (): /GstPipeline:pipeline0/GstRTMPSink:rtmpsink0:
Could not connect to RTMP stream "rtmps://<IP_ADDRESS>:1936/live/stream0?user=user&pass=pass" for writing
Execution ended after 0:00:00.633439537
Setting pipeline to NULL ...
Freeing pipeline ...
ubuntu@ubuntu:~$ client_loop: send disconnect: Broken pipe

Did you attach the server logs?

yes
Did you attach a network dump?

no

duplicate of #2186

I have try  gst-inspect-1.0 rtmpsink, It seems suppport rtmps.:
URI handling capabilities:   Element can act as sink.   Supported URI protocols:     rtmp     rtmpt     rtmps     rtmpe     rtmfp     rtmpte     rtmpts
when I  push stream with   rtmp://uri/stream to rtmps  server , server logs  like "Not a TLS connection".
when I push stream with  rtmp:/uri/stream, server logs like "Opened ,but closed with EOF soon."
Is it related with CA?

I run "gst-inspect-1.0 rtmpsink" cmd ,and  I got it support RTMPS
URI handling capabilities:   Element can act as sink.   Supported URI protocols:     rtmp     rtmpt     rtmps     rtmpe     rtmfp     rtmpte     rtmpts

when rtmpsink location='rtmp:uri' , server log  "2023/08/09 13:03:06 INF [RTMPS] [conn <IP_ADDRESS>:56720] closed (tls: first record does not look like a TLS handshake)"
when rtmpsink location='rtmps:uri' ,server log "2023/08/09 13:03:49 INF [RTMPS] [conn <IP_ADDRESS>:53424] closed (EOF)"
they are different. I think rtmpsink support  rtmps.
because something other, server closed it soon with EOF.


Place build.db under the scratch directory

Motivation:
The build database should be shared between different triple builds to re-generate the build manifest correctly.
With the current implementation, the following build command sequence fails:
# 1st iteration: They both do not trigger "PackageStructure" build
$ swift build --experimental-swift-sdk wasm32-unknown-wasi
$ swift build

# 2nd iteration: They both trigger "PackageStructure" build because there is description.json and debug.yaml
$ swift build --experimental-swift-sdk wasm32-unknown-wasi
$ swift build

# 3rd iteration: Manifest cache entry in .build/wasm32-unknown-wasi/build.db created by 2nd iteration hits,
# so do not update debug.yaml. <--- Incorrect
$ swift build --experimental-swift-sdk wasm32-unknown-wasi

Modifications:
This changes the llbuild build database to be placed under .build/build.db instead of .build/<product triple>/build.db.
Also this change splits llbuild target names for each triple to avoid cache invalidation when switching triple.
Result:
build.db will be shared across product target triples, and SwiftPM will keep consistent cache state when switching triples.

@swift-ci test

@swift-ci test

@swift-ci test

@swift-ci test

@swift-ci test Windows

Ok, source compat tests passed. At least this change does not break initial clean build 😌


New Chrome Update makes buttons float on scroll

This is a (multiple allowed):

[x] bug

[ ] enhancement

[ ] feature-discussion (RFC)

Framework7 Version: 1.4.2 .

Platform and Target: Desktop (Web) platform

What you did
Used a "" with the class ".button"
Expected Behavior
Show a button where the  hyperlink is with a image (custom image) and scroll normally (along the content)
Actual Behavior
after the last chrome update the buttons scrolls along the scrollbar

Used a "" with the class ".button"

what is a ""?
Complete screenshots please if not code sample (jsfiddle ext)

oh, github tried to parse the
This is a sample of a button that moves along the scroll

User

                            <input  type="text" placeholder="User" autocomplete="off" required>

Due to the limits on my confidential agreement  I can't post a complete screenshot, but in the following pictures the gray button is aligned with  a box , when I scroll the button moves but the background keeps static.
I have tried this same page in firefox and , in fact, using the css inspector from chrome I have deactivated  the following properties in the .button class from framework7.materia.css :
-webkit-transform: translate3d(0,0,0)
transform: translate3d(0,0,0)

So, the problem is resolved?

Closed due to no reaction


FR:  Add a command to send the active popover pane directly into the native root split

Hi, I love hover editor!   I would find it supremely useful if there was a button that turns a hover window into a pane. If I have too many hover editors open, the view can get scattered, and I may choose to make them 'permanent' by opening them in a pane.
Thank you!

There's already the ability to drag hover editor panes into the main workspace as shown in the demo video in the readme. Are you aware of that ability? It provides a bit more flexibility as you can be precise about where the pane gets placed within the workspace. If there was a button, I would have to stick it somewhere indiscriminately :)

what do you think about allowing the esc key to cancel the movement of the pane? the only way to cancel the movement of the pane in to the main workspace is to move the cursor back to where you first had it @nothingislost

🙀 Oooooh I didn't realize you could drag panes out of the hover editor window into the main workspace! That didn't get clear to me from the demo video, and that is amazing. In case you did want to create a button, it could either by default add the pane to the right of the last pane, or if another pane is highlighted and I click the button in hover editor, the new pane could be added next the the previously highlighted one.
Either way, I am happy with the existing funtionality. This allows me to quickly jump back and forth between hover editor window and a static pane (I constantly have ca. 10 panes open using sliding panes).
Thanks again for your awesome work!

There is now a command and menu item to  "Dock Hover Editor to workspace", and as of Obsidian 0.15.x, the escape key works to cancel pane dragging, so I think that covers everything that was requested in this issue.  (You can even drag panes from hover editors out to the desktop to open them as a new window now, which will also make them "permanent".)


Again in 103.1: Support destinations in NameTrees with encoded keys (issue 14847)

I refer to the issues 14847 and 14848. This was solved in Firefox version 102.
Unfortunately, this error again appears in Firefox version 103.1. See attached screenshot.
Please check.
Best Regards
Jan-Michael

Sorry, this was a mistake, I took a wrong pdf for testing.


Sample code for app update?

Is there any sample code available in the community that demonstrates how to use this plugin to implement the deployment of App updates? I would really appreciate if someone would like to share his or her code and experiences?

Hi @Avareto,
We use this plugin for the Phonegap Developer App. The PhoneGap Developer App gets the zip generated by this module connect-phonegap.
You can see it in action by doing the following:
npm install -g phonegap
phonegap create myProject
cd myProject
phonegap serve    // this will generate the zip of the phonegap project to download via the developer app

@timkim.  Thanks for the link!
One question: In your code, when you finished updating your content you are reloading the app based on the newly created root/download directory. This works perfectly, as long you don't stop and restart the App. After stop/restart the App falls back to its original location and loads the old content.
What would be a reliable handling strategy to make sure that all subsequent re-starts are served from the new asset folder?
Are there any drawbacks from running an App from the "data" directory?

No drawbacks on loading from a different folder. There are different ways you can do it but the easiest way would probably be to set document.location to the path to your stored app when deviceready fires (if you have a stored app).

This simple script should do the thing if you have all content inside the package, but it needs some updating from time to time:
    document.addEventListener('deviceready', function() {         var sync = ContentSync.sync({id: 'ionapp', type: 'local'});         sync.on('complete', function(data) {             if(data.localPath) {               var url = 'file://' + data.localPath + '/www/index.html';               document.location = url;             }         });         sync.on('error', function(e) {           document.location = 'index.html';         });     }, false);
some improvements can be made, like adding loadUrl for iOS.
The only thing worth mentioning, is to put it in a different file than index.html.


How to generate model files?

Where should I put in the following command on a Mac, in terminal? Gradle shuld be preinstalled on my Mac?
gradle :modelgen:run -Pargs="-f /path/to/model/todo.model.json -O /path/to/output/src/main/java"
I do not see gradle script in the project folder.
Kukodas-MacBook-Air:MovieBuffs3 kukodajanos$ ls
MovieBuffs3.iml		gradle			local.properties
app			gradle.properties	settings.gradle
build			gradlew
build.gradle		gradlew.bat
Kukodas-MacBook-Air:MovieBuffs3 kukodajanos$ gradle
-bash: gradle: command not found

Looks like you don't have gradle installed in your system. You can use the provided gradle script (gradlew in the root of the project) instead:
./gradlew :modelgen:run -Pargs="-f /path/to/model/todo.model.json -O /path/to/output/src/main/java"

I'll need to update the README file to reference the provided gradle script, since it's safer.

Hi! Tried your script, it started, but at the end I get following error message. Do you have any idea, what cause it?
Incremental java compilation is an incubating feature.
FAILURE: Build failed with an exception.

What went wrong:
Project 'modelgen' not found in root project 'MovieBuffs3'.


Compile the project fail

Hi Sir
I have download the source code and add three libraries((Adafruit_GFX, Adafruit_SSD1306,libraries(rx5808-pro-diversity-master\src\libraries)) to the Arduino libraries folder,
When I compile the project, give below errors.
oled_128x64_adafruit_screens.cpp:47:6: error: #error ("Screen size incorrect, please fix Adafruit_SSD1306.h!");
oled_128x64_adafruit_screens.cpp:44: error: 'Adafruit_SSD1306' does not name a type
oled_128x64_adafruit_screens.cpp: In member function 'char screens::begin(const char*)':
oled_128x64_adafruit_screens.cpp:58: error: 'display' was not declared in this scope
oled_128x64_adafruit_screens.cpp:58: error: 'SSD1306_SWITCHCAPVCC' was not declared in this scope
oled_128x64_adafruit_screens.cpp:65: error: 'delay' was not declared in this scope
oled_128x64_adafruit_screens.cpp:70: error: 'WHITE' was not declared in this scope
oled_128x64_adafruit_screens.cpp:71: error: 'BLACK' was not declared in this scope
oled_128x64_adafruit_screens.cpp:88: error: 'A7' was not declared in this scope
oled_128x64_adafruit_screens.cpp:88: error: 'analogRead' was not declared in this scope
oled_128x64_adafruit_screens.cpp:95: error: 'strlen' was not declared in this scope
oled_128x64_adafruit_screens.cpp: In member function 'void screens::reset()':
oled_128x64_adafruit_screens.cpp:104: error: 'display' was not declared in this scope
oled_128x64_adafruit_screens.cpp:107: error: 'WHITE' was not declared in this scope
oled_128x64_adafruit_screens.cpp: In member function 'void screens::flip()':
oled_128x64_adafruit_screens.cpp:111: error: 'display' was not declared in this scope
oled_128x64_adafruit_screens.cpp: In member function 'void screens::drawTitleBox(const char*)':
oled_128x64_adafruit_screens.cpp:115: error: 'display' was not declared in this scope
oled_128x64_adafruit_screens.cpp:115: error: 'WHITE' was not declared in this scope
oled_128x64_adafruit_screens.cpp:119: error: 'BLACK' was not declared in this scope
oled_128x64_adafruit_screens.cpp:121: error: 'strlen' was not declared in this scope
oled_128x64_adafruit_screens.cpp: In member function 'void screens::mainMenu(uint8_t)':
oled_128x64_adafruit_screens.cpp:130: error: 'display' was not declared in this scope
oled_128x64_adafruit_screens.cpp:130: error: 'WHITE' was not declared in this scope
oled_128x64_adafruit_screens.cpp:132: error: 'BLACK' was not declared in this scope
oled_128x64_adafruit_screens.cpp:143: error: 'A7' was not declared in this scope
oled_128x64_adafruit_screens.cpp:143: error: 'analogRead' was not declared in this scope
oled_128x64_adafruit_screens.cpp: In member function 'void screens::seekMode(uint8_t)':
oled_128x64_adafruit_screens.cpp:168: error: 'display' was not declared in this scope
oled_128x64_adafruit_screens.cpp:168: error: 'WHITE' was not declared in this scope
oled_128x64_adafruit_screens.cpp: In member function 'void screens::updateSeekMode(uint8_t, uint8_t, uint8_t, uint8_t, uint16_t, uint8_t, bool)':
oled_128x64_adafruit_screens.cpp:201: error: 'display' was not declared in this scope
oled_128x64_adafruit_screens.cpp:201: error: 'WHITE' was not declared in this scope
oled_128x64_adafruit_screens.cpp:201: error: 'BLACK' was not declared in this scope
oled_128x64_adafruit_screens.cpp:239: error: 'display' was not declared in this scope
oled_128x64_adafruit_screens.cpp:239: error: 'map' was not declared in this scope
oled_128x64_adafruit_screens.cpp:241: error: 'BLACK' was not declared in this scope
oled_128x64_adafruit_screens.cpp:242: error: 'WHITE' was not declared in this scope
oled_128x64_adafruit_screens.cpp: In member function 'void screens::bandScanMode(uint8_t)':
oled_128x64_adafruit_screens.cpp:286: error: 'display' was not declared in this scope
oled_128x64_adafruit_screens.cpp:292: error: 'display' was not declared in this scope
oled_128x64_adafruit_screens.cpp:295: error: 'display' was not declared in this scope
oled_128x64_adafruit_screens.cpp:295: error: 'WHITE' was not declared in this scope
oled_128x64_adafruit_screens.cpp: In member function 'void screens::updateBandScanMode(bool, uint8_t, uint8_t, uint8_t, uint16_t, uint16_t, uint16_t)':
oled_128x64_adafruit_screens.cpp:310: error: 'map' was not declared in this scope
oled_128x64_adafruit_screens.cpp:311: error: 'display' was not declared in this scope
oled_128x64_adafruit_screens.cpp:314: error: 'BLACK' was not declared in this scope
oled_128x64_adafruit_screens.cpp:315: error: 'WHITE' was not declared in this scope
oled_128x64_adafruit_screens.cpp:324: error: 'WHITE' was not declared in this scope
oled_128x64_adafruit_screens.cpp:324: error: 'BLACK' was not declared in this scope
oled_128x64_adafruit_screens.cpp:326: error: 'HEX' was not declared in this scope
oled_128x64_adafruit_screens.cpp:340: error: 'WHITE' was not declared in this scope
oled_128x64_adafruit_screens.cpp:340: error: 'BLACK' was not declared in this scope
oled_128x64_adafruit_screens.cpp:343: error: 'DEC' was not declared in this scope
oled_128x64_adafruit_screens.cpp: In member function 'void screens::screenSaver(uint8_t, uint8_t, uint16_t, const char*)':
oled_128x64_adafruit_screens.cpp:360: error: 'display' was not declared in this scope
oled_128x64_adafruit_screens.cpp:361: error: 'WHITE' was not declared in this scope
oled_128x64_adafruit_screens.cpp:363: error: 'HEX' was not declared in this scope
oled_128x64_adafruit_screens.cpp:373: error: 'A7' was not declared in this scope
oled_128x64_adafruit_screens.cpp:373: error: 'analogRead' was not declared in this scope
oled_128x64_adafruit_screens.cpp:386: error: 'BLACK' was not declared in this scope
oled_128x64_adafruit_screens.cpp: In member function 'void screens::updateScreenSaver(char, uint8_t, uint8_t, uint8_t)':
oled_128x64_adafruit_screens.cpp:404: error: 'A7' was not declared in this scope
oled_128x64_adafruit_screens.cpp:404: error: 'analogRead' was not declared in this scope
oled_128x64_adafruit_screens.cpp:407: error: 'map' was not declared in this scope
oled_128x64_adafruit_screens.cpp:408: error: 'display' was not declared in this scope
oled_128x64_adafruit_screens.cpp:408: error: 'BLACK' was not declared in this scope
oled_128x64_adafruit_screens.cpp:411: error: 'WHITE' was not declared in this scope
oled_128x64_adafruit_screens.cpp:416: error: 'WHITE' was not declared in this scope
oled_128x64_adafruit_screens.cpp:424: error: 'WHITE' was not declared in this scope
oled_128x64_adafruit_screens.cpp:429: error: 'WHITE' was not declared in this scope
oled_128x64_adafruit_screens.cpp:433: error: 'display' was not declared in this scope
oled_128x64_adafruit_screens.cpp:433: error: 'BLACK' was not declared in this scope
oled_128x64_adafruit_screens.cpp:434: error: 'WHITE' was not declared in this scope
oled_128x64_adafruit_screens.cpp:438: error: 'map' was not declared in this scope
oled_128x64_adafruit_screens.cpp:454: error: 'display' was not declared in this scope
oled_128x64_adafruit_screens.cpp:454: error: 'millis' was not declared in this scope
oled_128x64_adafruit_screens.cpp:454: error: 'WHITE' was not declared in this scope
oled_128x64_adafruit_screens.cpp:454: error: 'BLACK' was not declared in this scope
oled_128x64_adafruit_screens.cpp:459: error: 'A7' was not declared in this scope
oled_128x64_adafruit_screens.cpp:459: error: 'analogRead' was not declared in this scope
oled_128x64_adafruit_screens.cpp:460: error: 'display' was not declared in this scope
oled_128x64_adafruit_screens.cpp:460: error: 'BLACK' was not declared in this scope
oled_128x64_adafruit_screens.cpp:463: error: 'display' was not declared in this scope
oled_128x64_adafruit_screens.cpp: In member function 'void screens::diversity(uint8_t)':
oled_128x64_adafruit_screens.cpp:473: error: 'display' was not declared in this scope
oled_128x64_adafruit_screens.cpp:473: error: 'WHITE' was not declared in this scope
oled_128x64_adafruit_screens.cpp:475: error: 'BLACK' was not declared in this scope
oled_128x64_adafruit_screens.cpp: In member function 'void screens::updateDiversity(char, uint8_t, uint8_t)':
oled_128x64_adafruit_screens.cpp:498: error: 'map' was not declared in this scope
oled_128x64_adafruit_screens.cpp:500: error: 'display' was not declared in this scope
oled_128x64_adafruit_screens.cpp:500: error: 'BLACK' was not declared in this scope
oled_128x64_adafruit_screens.cpp:503: error: 'WHITE' was not declared in this scope
oled_128x64_adafruit_screens.cpp:508: error: 'WHITE' was not declared in this scope
oled_128x64_adafruit_screens.cpp:516: error: 'WHITE' was not declared in this scope
oled_128x64_adafruit_screens.cpp:521: error: 'WHITE' was not declared in this scope
oled_128x64_adafruit_screens.cpp: In member function 'void screens::updateSetupMenu(uint8_t, bool, bool, const char*, char)':
oled_128x64_adafruit_screens.cpp:534: error: 'display' was not declared in this scope
oled_128x64_adafruit_screens.cpp:534: error: 'WHITE' was not declared in this scope
oled_128x64_adafruit_screens.cpp:536: error: 'BLACK' was not declared in this scope
oled_128x64_adafruit_screens.cpp: In member function 'void screens::save(uint8_t, uint8_t, uint16_t, const char*)':
oled_128x64_adafruit_screens.cpp:586: error: 'display' was not declared in this scope
oled_128x64_adafruit_screens.cpp:586: error: 'WHITE' was not declared in this scope
oled_128x64_adafruit_screens.cpp:632: error: 'DEC' was not declared in this scope
oled_128x64_adafruit_screens.cpp: In member function 'void screens::updateSave(const char*)':
oled_128x64_adafruit_screens.cpp:649: error: 'display' was not declared in this scope
oled_128x64_adafruit_screens.cpp:649: error: 'WHITE' was not declared in this scope
oled_128x64_adafruit_screens.cpp:649: error: 'BLACK' was not declared in this scope
oled_128x64_adafruit_screens.cpp:650: error: 'strlen' was not declared in this scope
I am a newbie with Arduino, and the version is  Arduino 1.0.5-r2, could you please help me, Thanks.

It looks like you havnt edited the adafruit oled library. You need to open the file in a text viewer and uncomment a few lines.

You also need to update Arduino to the latest version... 1.6.7 and install Adafruit graphics library if you intend to use OLED.
Closing this issue as it is not a bug.

OK, thanks. After upgrade to  version 1.6.8, both TVOUT_SCREENS and OLED_128x64_ADAFRUIT_SCREENS compile successful


Fix typo

Related to the glossary - rename from .Net -> .NET

@Potapy4 : Thanks for your contribution! The author, @wolfma61, has been notified to review your proposed change.


Will you attend Openlanev2 Competition?

Hi,
This is great work from the Shanghai AI lab! But I see you release its results on the leaderboard.
Will you attend OpenLane Topology Competition?

As there are organizers of this competition among the TopoNet author team, we will not be participating in the current challenge. The test result of TopoNet will serve only as another strong baseline to facilitate the community.

Okay! Thanks for your great work!
I close the issue.


[BUG] grpc disconnection when ngnix is in the middle

Describe the bug
When deploying a flamelet in non-orchestration mode, it tries to connected to the notifier but eventually times out if there is no job waiting for the flamelet
To Reproduce
Steps to reproduce the behavior:

Deploy a flamelet in non-orchestration mode, with no task created in the control plane

Expected behavior
We would expect the flamelet to wait for for a task to appear, and then run the task, without giving errors regarding the connections
Additional context
Logs below:
Wed, Jun 22 2022/06/22 07:21:17 [INFO] app/taskhandler.go:150 Connected with notifier at flame-notifier.cisco.com:443
--
Wed, Jun 22 2022 9:22:17 am | 2022/06/22 07:22:17 [ERROR] app/taskhandler.go:159 Failed to receive notification: rpc error: code = Unavailable desc = unexpected HTTP status code received from server: 504 (Gateway Timeout); transport: received unexpected content-type "text/html"
Wed, Jun 22 2022 9:22:17 am | github.com/cisco-open/flame/cmd/flamelet/app.(*taskHandler).do
Wed, Jun 22 2022 9:22:17 am | /src/cmd/flamelet/app/taskhandler.go:159
Wed, Jun 22 2022 9:22:17 am | github.com/cisco-open/flame/cmd/flamelet/app.(*taskHandler).doStart
Wed, Jun 22 2022 9:22:17 am | /src/cmd/flamelet/app/taskhandler.go:119
Wed, Jun 22 2022 9:22:17 am | 2022/06/22 07:22:17 [INFO] app/taskhandler.go:166 Disconnected from notifier

nginx has a default idle timeout (e.g., 60 seconds). flamelet reactively works with notifier, which means that notifier will push events to flamelet and flamelet reacts to the a push message from notifier. If flamelet faces timeout of gRPC connection with notifier, it retries. So, this won't cause any functional issue.


Release 2.6.0 🚀

Huge thanks to all our contributors 🎆
Special thanks to: @chrisgavin @dvanbrug @johanvdhaegen @lcy0321 @mavin
I'll merge this and release the gem once all tests pass.

Finished in 19 minutes 33 seconds (files took 0.5754 seconds to load)
9 examples, 0 failures

λ rake release
vagrant-google 2.6.0 built to pkg/vagrant-google-2.6.0.gem.
Tagged v2.6.0.
Pushed git commits and tags.
Pushing gem to https://rubygems.org...
Successfully registered gem: vagrant-google (2.6.0)
Pushed vagrant-google 2.6.0 to rubygems.org


GM&LC: incremental learning supports hot update of model

fix bug: upstream numberOfSamples periodly when no update
GM&LC: incremental learning supports hot update of model

“upstream numberOfSamples periodly when no update”
pay more attention to the grammar

“upstream numberOfSamples periodly when no update”
pay more attention to the grammar

@TymonXie how about new tilte?

LC: fix upstream of number in dataset is misleading, may means upstream is fixed or number is wrong
how about "LC: send dataset update to GM only when changed"?

LC: fix upstream of number in dataset is misleading, may means upstream is fixed or number is wrong
how about "LC: send dataset update to GM only when changed"?

ok

/lgtm
/approve