Allow redirect configuring

Adds a REDIR_URI setting that operates by using it if it exists, else following the existent pattern of request.build_absolute_uri(reverse("django_auth_adfs:callback"))
It can be pretty useful in cases where there is a proxy or gateway before the application (where we lose the identification of is_secure). Today, the suggested fix for this situation is by creating on this proxy/gateway a header with this identification, to be used by SECURE_PROXY_SSL_HEADER. This is not possible in some situations (as was my case on the company I work, where it would require actions of multiple other teams that are responsible for the gateway).
Other problem that is solved by this is when the host/netloc of the request that is used to parse the redirect uri is different from a desired one (due to an app with multiple domain names, proxy/gateway configuration, etc)
This pr has the possibility to solve #327 and #303

Hm... Yeah, going against django premisses is pretty bad indeed.
Exploring a little bit more the situation I'm in, it's something like:
The Gunicorn/Uvicorn path is kinda impossible due to my current environment (the gateway/proxy/balancer I cited)
This middleware solution looks promissing for the https part of the problem, but I'm still stuck on the domain name one.
In the pr description, I haven't explained it completely, but in my situation, my app has a domain name specific to how requests are handled inside the cluster it is currently. This is how the request is built currently, so I get something like http://appname-appname/sufix/oauth2/callback?code=....
I need some way to indicate what is the real domain-name, before all this, but currently, there is none. It could go in a way similar to how I built this solution (I found that there is a header indicating the original domain name pre-request), but the redirect-uri would need to be mutated anyway, so this solution would go a little beyond in fixing both problems simmultaneously.
And I've made it opptional, so this option is available in cases where it is a must, but in all others, the default path can be used.

It is a gunicorn app. This runs inside a kubernetes cluster, with a gateway and a reverse proxy on the way between the client and the app. Both the gateway and the reverse-proxy are managed by other teams.
A fellow co-worker indicated that we can probably make it work completely with the middleware suggestion you made. We'll try it, seems pretty promising.
Sorry about my limited django knowledge, I'm just recently starting to use it.

I'd request the K8s team to ensure their proxy forwards the header, but that's just me.
An alternative is to use sslify, I've heard people use that for Heroku back in the days.

Did you find a solution? I'm still hesitant on this change.

Sorry for disappearing for so long, went on a vacation trip and got some time without a computer.
Updating on the problem I brought, internal do my company, we got it to work purely with middlewares, following your hint (Thanks a lot for that!!! <3)
On this PR's subject, we can discuss potential ways, but I agree that the way used in here wasn't very django-ish. Do you think something in this direction, but built differently, would be a great addition, or we should just close this PR?

That makes me happy - glad it got resolved. 😊
I think I’d like this closed for now - I’d like to keep this library as close to how Django documents stuff to be done. Thanks a lot for the PR, though - it sparked a good discussion.

Agreed my friend. Thanks a lot!

@arturpfb  what was your solution?  I have almost the exact same situation and the same issue.  Strange thing is that I did not have this problem when deployed with gunicorn and wsgi, but I'm testing gunicorn with asgi / uvicorn and this issue appeared. Only change made was this switch.

Hey @alex-atkins !
While on this infrastructure, we used the proposal of @JonasKs of having a middleware.
Basically it did something along the lines of the following, before proceeding to the treatment of the request itself:
  def __call__(self, request):
       setattr(request, "_dont_enforce_csrf_checks", True)
       response = self.get_response(request)
       return response

Later we migrated to an infra where the header was correctly redirected.
Try something like the code above, and tell us if it works for you.
(we use gunicorn + wsgi, so maybe it won't work the same for asgi + uvicorn, but there is a good probability that it will)


⚠ Bofrost.at has degraded performance

In 3ce7ac1, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 2045 ms

Resolved: Bofrost.at performance has improved in 3138666 after 36 minutes.


admin,client: convet to openapitools docker image for codegen

By default the macOS Actions runner doesn't come with docker, so our make admin / make client commands won't work in CI. I guess identity relies on make openapitools being ran external to the PR?
https://github.com/actions/virtual-environments/blob/main/images/macos/macos-10.15-Readme.md

Removing make admin and make client for now. We'll need to address this in all our repos. See https://github.com/moov-io/eng-project-templates/issues/21

Codecov Report

Merging #142 into master will decrease coverage by 0.10%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #142      +/-   ##
==========================================
- Coverage   62.51%   62.41%   -0.11%
==========================================
  Files          36       36
  Lines        1998     1998
==========================================
- Hits         1249     1247       -2
- Misses        530      531       +1
- Partials      219      220       +1


Issue ~ can't control the symbols

I can't control the symbols by changing the names. Version Of Sketch - 55.2

Hi Attvud, Can you please describe what you mean by "can't control by changing name?"
Here is a step by step process of creating stickers https://github.com/pratikjshah/symbol-browser/wiki/Getting-started-with-Symbols-Browser#steps-to-get-started

Hi!
When I add the @ tag to the folders, everything works. But when I add it to the symbols, it doesn't work. They are not displayed in the corresponding section.

Hi Artem,
You can take a look at this example Sketch Library:
https://sketch.cloud/s/DVnWq
To tag symbols or any layer, you have to

Define Category and Sub-category:
https://github.com/pratikjshah/symbol-browser/wiki/Getting-started-with-Symbols-Browser#32-define-categories
If you tag defined category and use<EMAIL_ADDRESS>as a
suffix to a symbol, it will be added as a Symbol-object and not an
instance. Which is similar to tagging an Artboard. Check guide here:
https://github.com/pratikjshah/symbol-browser/wiki/Getting-started-with-Symbols-Browser#32-define-categories

Hope this helps.
--
Pratik Shah
(+ 91<PHONE_NUMBER>)
PratikShah.Website http://pratikshah.website
On Mon, Jun 24, 2019 at 1:27 PM Artem Attvud<EMAIL_ADDRESS>wrote:

Hi!
When I add the @ tag to the folders, everything works. But when I add it
to the symbols, it doesn't work. They are not displayed in the
corresponding section.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/pratikjshah/symbol-browser/issues/2?email_source=notifications&email_token=ABWFHRUEMRHXZEA47IRYGJ3P4B447A5CNFSM4HZUV7FKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYMDAOA#issuecomment-504901688,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABWFHRQ3SVLXUERR3RVNUZDP4B447ANCNFSM4HZUV7FA
.

This does not work for symbols. At least for me, I checked. For folders and artboards works, for symbols - no.

I think I found the issue! I will fix it and release an update soon.
Thank you for pointing out.
--
Pratik Shah
(+ 91<PHONE_NUMBER>)
PratikShah.Website http://pratikshah.website
On Mon, Jun 24, 2019 at 3:10 PM Artem Attvud<EMAIL_ADDRESS>wrote:

This does not work for symbols. At least for me, I checked. For folders
and artboards works, for symbols - no.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/pratikjshah/symbol-browser/issues/2?email_source=notifications&email_token=ABWFHRXPVPQGDJ5E36JXEFTP4CJCFA5CNFSM4HZUV7FKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYML2CY#issuecomment-504937739,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABWFHRWIMXMEQA744GUKDY3P4CJCFANCNFSM4HZUV7FA
.

Thank you for your prompt feedback ;)

I'm having the same issue.

Hi, @ryankmccarty Thank you for reaching out.
The reason currently you are not able re-group symbols is that it was more about system-driven, I am taking this as an enhancement.

@pratikjshah to be more clear, I am unable to apply stickers to symbols. Your test file is also missing this instance.

Hey, @ryankmccarty you can tag any layer except SymbolArtboard as Stickers. In the test file, you can see Card - Symbol instances being marked as Stickers which will preserve your overrides.

Hi, @ryankmccarty Now you can tag your Master Symbols directly to group them as per your needs. Please check it out here: http://symbol-browser.pratikshah.website/#features


Review bpo-15871: Online docs: make index search always available.

An old open issue that you may be able to resolve.

The current "Quick Search" seems to be fairly effective in using and prioritizing index hits, such that (if I'm not just using google) it almost always seems to find what I'm looking for (and thus I was not able to duplicate the poor results suggested by the earlier comments in the BPO issue). A realtime search using only the index popping up results as users type in the search box would be useful, but it seems non-trivial to implement especially if the plan is to move to a more modern docs theme.
@pradyunsg Is there any plan for Furo to offer something like this?

@pradyunsg Is there any plan for Furo to offer something like this?

No.
I empathise and agree that would be a significantly better UX -- I don't think a Sphinx theme is the correct place to completely rework how Sphinx's search works though. :)

I'm not sure what the issue is about, and how that would be related to a Sphinx theme that Python's documentation does not even use. The b.p.o issue seems to be start by describing Windows Help, but also mentions things like bad search results on the online site (I can't reproduce the report in https://bugs.python.org/issue15871#msg170048 -- https://docs.python.org/3/search.html?q=random, but others do provide suboptimal results -- https://docs.python.org/3/search.html?q=if).
Anyway, based on what I'm reading in that b.p.o issue, I think what's actionable here is more along the lines of "improve search results" rather than "rework what the search UX is".

how that would be related to a Sphinx theme that Python's documentation does not even use.

Sorry, I was just curious if you had experience with or input on this, and I thought there was at least a tentative proposal to move CPython's docs to a more modern theme, which might have been able to address this.

Oh, this is about docs.python.org, which is lacking compared to the CHM version of the docs. Sorry for changing the title.
The issue seems to have been solved in Sphinx 1.2 (2013): https://github.com/sphinx-doc/sphinx/issues/1067

Hm, I can replicate the bad resulds mentioned in the 2014 comments -- for print and with.

Also, coming from #42: searching for symbols like / should yield the correct docs.

See #44 for some additional directly related discussion

x-ref: https://github.com/python/cpython/issues/60075

This is now https://github.com/python/cpython/issues/60075, discussion should happen on that issue as noted in the May 2022 meeting.
A


Upgrade + Fix Build Script

Fix prod_build script to only publish cleaned json build artifacts
zeppelin-solidity: 1.11.0 -> 1.12.0

Fixes last compiler warning (thanks to https://github.com/OpenZeppelin/openzeppelin-solidity/pull/1122)

ganache-cli: 6.1.6 -> 6.1.8

Shows reason on revert!  🎉 😄

truffle: 4.1.13 -> 4.1.14
solidity-coverage: 0.5.5 -> 0.5.7

Pull Request Test Coverage Report for Build 6542

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

Totals

Change from base Build 6519:
0.0%

Covered Lines:
1208

Relevant Lines:
1208

💛  - Coveralls


idea: add ARM support

make sure arm platform build pass

We need an ARM server to run our tests.

Partial fixed in #721 , we will add ARM/ARM64 tests in the further.


How to keep annotations of prev-image still exist when I open the next image?

  Hi, thanks for your good job firstly!
  My images capture from video, so the prev-image are similar with next-image. but when I open next image, previous annotations disappear. I don't want to create then again, since they are useful for the next image.
  I tried to modify you codes, but failed. can you tell me how to do it ?

and there is a bug when 'open annotation file', nothing load !

I have deal with it.
modify the code in labelImg.py(line in 928) as:
   # Label xml file and show bound box according to its filename
        if self.usingPascalVocFormat is True:
            if self.defaultSaveDir is not None:
                basename = os.path.basename(
                    os.path.splitext(self.filePath)[0]) + XML_EXT
                xmlPath = os.path.join(self.defaultSaveDir, basename)
            else:
                xmlPath = filePath.split(".")[0] + XML_EXT

            if self.loadPascalXMLByFilename(xmlPath) is None:
                self.loadPascalXMLByFilename(self.prev_xmlpath)
            else:
                self.prev_xmlpath = xmlPath

and at the end of function ' loadPascalXMLByFilename() ' add:  return Ture

Hi @zhonghuabao1 ,
Thanks for your information. I fixed it.

I modified labelImg to accomodate this change. You can find it here - https://github.com/kmsravindra/labelImg
I can do a pull request to add this change here as well...But from what I seen, the pull requests are not being merged into the repo here...


add defaulting and validation for control-plane labels

Towards https://github.com/giantswarm/giantswarm/issues/17073

Tested this in ginger.


Hovering window controls causes stutter

Version of vulkano: 0.11.1
OS: Linux
GPU: Nvidia GTX 1060
GPU Driver: Nvidia 415.27

The teapot example easily demonstrates the issue for my platform.  When hovering the close or maximize window controls, I drop a few frames.  So far I've logged the issue and did not see any WindowEventor DeviceEvent corresponding to the stutter.
Removing the render loop and just leaving the winit polls did not exhibit the behavior.  Confirmations on other platforms would be helpful before I get too educated on the matter.

Unrelated windows, anything that causes the mouse cursor to change, also causes the issue.  I'd label very low priority as likely my DE has something to do with it.  I will still attempt to trace the issue and find out if some complex recovery is going on perhaps in winit or vulkan-winit

This might have been your plan already but is suggest trying to reproduce the issue with glium or anything else that uses winit

I stripped the render down to just the winit event poll and did not get the issue.  Since I didn't log any window events when hovering the buttons (or other windows) I don't think the polling functions are related.  Something about hovering buttons in my DE causes the render loop to choke a bit.

I have managed to build an application with two render loop implementations in two windows.  One stutters but not the other.  Resize is smooth as well.  The issue is not specific to Vulkano / Winit and seems more related to how the example code (that I based the stuttering window on) go about recreating resources for resize.  I'll make a pass at updating the examples after I get my project published.


Remove ambiguity with --error-only flag

Update output formatters to limit output to packages with errors only.
For the table formatter for a project without errors it will print empty table like:
+---------+---------+----------------------------+--------------------+-------------+-----------+---------+---------------------+
| Package | Version | License Information Origin | License Expression | License Url | Copyright | Authors | Package Project Url |
+---------+---------+----------------------------+--------------------+-------------+-----------+---------+---------------------+
+---------+---------+----------------------------+--------------------+-------------+-----------+---------+---------------------+
For the json formatter it will print an empty array []
Fixes #63

Thank you very much for your contribution. It's much appreciated!

Thanks. What is the ETA for the next release? I'll be glad to benefit from these updates on my proj.

I just kicked off a release


about a istio configuration  on blog

sir,sorry to comment this msg on this repo,but,Recently, I read a blog from istio Official website，which like following,you said--"which instructs the gateway to pass the ingress traffic AS IS, without terminating TLS."
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
  name: proxy
spec:
  selector:
    istio: ingressgateway # use istio default ingress gateway
  servers:
  - port:
      number: 80
      name: http
      protocol: HTTP
    hosts:
    - httpbin.org
  - port:
      number: 443
      name: tls
      protocol: TLS
    tls:
      mode: PASSTHROUGH
    hosts:
    - edition.cnn.com

so there is a tls config,its make sense,then i see like this
apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
metadata:
  name: localhost
spec:
  host: localhost.local
  trafficPolicy:
    tls:
      mode: DISABLE
      sni: localhost.local

:(,so you let traffic go throuh istio  with PASSTHROUGH，why you write mode: DISABLE like this?

forget the follwing information
https://istio.io/blog/2019/proxy/

if this issue  disturb you，please close it,:)

close


[1.x] Allow to use terminable middleware

fixes #64

Replaced by https://github.com/laravel/folio/pull/66.


Focus last focused element on modal close – restored after wrong merge

Sorry Chris!

Well, looks like bootstrap actually does this itself, and it works with multiple modals. Oops!


Optimize Chinese localization owners

This PR tweaks the owner/reviewer list for Chinese localization in hope PRs are routed to currently active contributors. Names that are commented out rather than removed so that when these former contributors find cycles to resume their work on this project, we can easily add them back. The filtering of names is based on the PR commits and reviews during the past 6 months.
Please do NOT interpret this action as a negative one. We always welcome all kinds of contributions from everyone. While we admit that the past year has been a difficult one for everyone, we must carry on. If your id is commented out and you do not agree with it, please leave a comment and resume your contribution to the community. We need help, as we always do.
This PR also nominates @howieyuen to the reviewers team for Chinese localization, who has been an active contributor lately.
@chenopis @dchen1107 @haibinxie @hanjiayao @lichuqiang @zhangxiaoyu-zidif

Thanks for the nomination, I am quite excited 😭

/lgtm
/approve


newbie: help with LDS (v1)

Hi,
First of all, thanks for the great work! I'm trying to dynamically define tcp listeners to which I'm assigning ports for backend services. So I'm looking at getting CDS and LDS working. New to envoy, so if I'm on the wrong path let me know. So the clusters define the backends, the listeners define the front end port.
I've been able to get CDS working with the following configuration and an endpoint that exposes /v1/clusters/{service_cluster}/{service_node}. envoy picks up my dynamically defined clusters, but I'm unsure where to plug in LDS. I've already got a /v1/listeners/{service_cluster}/{service_node} endpoint, but it doesn't seem to get called. Any pointers?
{
  "listeners": [],
  "admin": {
    "access_log_path": "/dev/null",
    "address": "tcp://<IP_ADDRESS>:8001"
  },
  "cluster_manager": {
    "clusters": [],
    "cds": {
      "refresh_delay_ms": 5000,
      "cluster": {
        "name": "my-cluster",
        "connect_timeout_ms": 250,
        "type": "static",
        "lb_type": "least_request",
        "hosts": [
          {
            "url": "tcp://ip:port"
          }
        ]
      }
    }
  }
}

The clusters endpoint is returning clusters like the ones below:
{
	"clusters": [{
			"name": "my-cluster",
			"connect_timeout_ms": 250,
			"type": "static",
			"lb_type": "least_request",
			"hosts": [{
				"url": "tcp://backend_ip:backend_port"
			}]
		}
	}

Sorry! Somehow I managed to not document the top level "lds" object in the documentation. I will fix this tomorrow morning:
https://github.com/lyft/envoy/blob/master/source/common/json/config_schemas.cc#L1173
https://lyft.github.io/envoy/docs/configuration/listeners/lds.html

we have lift off! thank you!
added the following to the top-level configuration
    "cluster": "my-cluster",
    "refresh_delay_ms": 5000
  },```


OWNERS: add idvoretskyi

idvoretskyi has been the only person to merge PRs to this repo in the
last three weeks. Whether intended or not this makes him the OWNER.
Are there other OWNERS? How do I become an OWNER? Who reviews the PRs
for changes?

LGTM :D
cc @sarahnovotny @erictune @aronchick

@idvoretskyi How about you, @aronchick, and I maintain the repo so we have at least a redundant odd numbered number of folks?

@philips no objections from me.

@bgrant0607 updated as discussed. Merging.


lock bug

Output of restic version
user@ubuntu:$ restic version
restic 0.8.2
compiled with go1.10 on linux/amd64'

How did you run restic exactly?
Restic run using script
#!/usr/bin/bash

#set backblaze b2 account credentials
export B2_ACCOUNT_ID="XXXXXXXXXXX"
export B2_ACCOUNT_KEY="XXXXXXXXXXXXXXXXXXXXXX"
export RESTIC_PASSWORD="XXXXXXXXXXXX"

#set restic bucket repo
export RESTIC_REPOSITORY="b2:XXXXXXXXXX"

#backup Home directory excluding any unwanted directories
#script will not backup Downloads
#script backs all home directory
restic backup  /home    \
/etc                 \
'/var/lib/plexmediaserver/Library/Application Support/Plex Media Server' \

#check data is correctly in repo
restic check >> restic.snapshots.txt
restic snapshots >> restic.snapshots.txt

#Remove old repos based on backup strategy
restic forget           \
--keep-hourly 4         \
--keep-daily 7          \
--keep-weekly 4         \
--keep-monthly 6        \
>> ~/restic.snapshots.txt

#Delete removed snapshots
restic prune >> ~/restic.snapshots.txt

#Route the normal process logging to journalctl
2>&1

# If there is an error backing up, reset b2 credentials
export B2_ACCOUNT_ID=""
export B2_ACCOUNT_KEY=""
export RESTIC_PASSWORD=""

exit 0

Output
martin@ubuntu:/scripts$ sudo sh restic.sh
/home/martin/scripts/  does not exist, skipping
password is correct
using parent snapshot 540e9f5d
scan [/home/martin /etc /var/lib/plexmediaserver/Library/Application Support/Plex Media Server]
scanned 125697 directories, 246971 files in 8:40
[3:35] 100.00%  41.743 GiB / 41.742 GiB  372668 / 372668 items  0 errors  ETA 0:00
duration: 3:35
snapshot 3efce4b3 saved
^Z
[4]+  Stopped                 sudo sh restic.sh
martin@ubuntu:~/scripts$ sudo sh restic.sh
[sudo] password for martin:
/home/martin/scripts/  does not exist, skipping
password is correct
List(lock) returned error, retrying after 364.145008ms: repository is already locked by PID 7770 on ubuntu by root (UID 0, GID 0)
lock was created at 2018-02-18 19:29:09 (17m25.94100157s ago)
storage ID fa5e3b28
List(lock) returned error, retrying after 727.903271ms: repository is already locked by PID 7770 on ubuntu by root (UID 0, GID 0)
lock was created at 2018-02-18 19:29:09 (17m29.361673954s ago)
storage ID fa5e3b28
using parent snapshot 3efce4b3
scan [/home/martin /etc /var/lib/plexmediaserver/Library/Application Support/Plex Media Server]
scanned 125697 directories, 246971 files in 7:53
[1:59] 100.00%  41.744 GiB / 41.743 GiB  372668 / 372668 items  0 errors  ETA 0:00
duration: 1:59
snapshot 2bc148d9 saved
List(lock) returned error, retrying after 646.588351ms: repository is already locked by PID 7770 on ubuntu by root (UID 0, GID 0)
lock was created at 2018-02-18 19:29:09 (27m35.726502512s ago)
storage ID fa5e3b28
List(lock) returned error, retrying after 557.193005ms: repository is already locked by PID 7770 on ubuntu by root (UID 0, GID 0)
lock was created at 2018-02-18 19:29:09 (27m38.777363008s ago)
storage ID fa5e3b28
^Z
[5]+  Stopped                 sudo sh restic.sh

What backend/server/service did you use to store the repository?
Backblaze B2
Expected behavior
Clean exit, not locking errors
Actual behavior
Run script
Creates snapshot. Error message on creating locks
use restic unlock to break lock
Successful unlock message
Re run script.
Snapshot saves
Terminal hangs until cancelled by user
Creates snapshot. Error message on creating locks
use restic unlock to break lock
Successful unlock message
Re run script.
Snapshot saves
Terminal hangs until cancelled by user
Script to unlock
#!/usr/bin/env bash

#set backblaze b2 account credentials
export B2_ACCOUNT_ID="xxxxxxxxxx"
export B2_ACCOUNT_KEY="xxxxxxxxxxxxxxxxxxxxxxxxx"
export RESTIC_PASSWORD="xxxxx"

#set restic bucket repo
export RESTIC_REPOSITORY="b2:xxxxxx"

#unlock restic lock
restic unlock

#Route the normal process logging to journalctl
2>&1

#Reset b2 credentials
        export B2_ACCOUNT_ID=""
        export B2_ACCOUNT_KEY=""
        export RESTIC_PASSWORD=""

exit 0

Do you have any idea what may have caused this?
Broken upload to b2?
Do you have an idea how to solve the issue?
Absolutely not
Did restic help you or made you happy in any way?
Yes, great little program that backs up into very affordable backend

Hey, thanks for the report and for taking the time to fill out the issue template. I'm pretty sure it's not a bug in restic, but in your script.
What makes me think this is this line, after running the script the first time:
^Z
[4]+  Stopped                 sudo sh restic.sh

Did you manually stop the script? It looks like you've pressed CTRL+Z, which stops the process (the shell script and restic) temporarily. This probably happens while the script runs restic prune, which requires an exclusive lock. This is still present in the repo, that's what the second run of the script complains about. restic refuses to make a new backup when the repo is locked.

Yeah, it hangs forever so wasnt sure it was doing, I read the prune can take sometime so I didnt think to remember this
Ill leave it to see if it finishes and report back. Thanks very much for your help

I'm closing this issue for now, please report back if you find anything else.
I'd recommend not redirecting the output of restic prune to a file, otherwise you won't see any progress...

hello, removing the comments i get alot of
pack 0f1cd652616d42c475516c04e2fd3698abe8f131af7843645e1e79763fecb85c: not referenced in any index, is this normal behaviour?

@corkerss Yes, see this FAQ entry.

By the way, @corkerss, running restic prune every time in the script will mean the prune operation is run every single time. Better remove the explicit call to restic prune, and call forget with the --prune option. This instructs restic to run prune after forget, but only if snapshots have been removed.

Hey,
I left it to do its thing and it finished up error free. thanks for all the help. I will alter the scripts and carry on using this wonderful program
cheers

Nice, thanks for the feedback!


JSDoc support

Describe the feature
Currently there is support for typescript and javascript without any type safety. But there is no support for jsdoc. It would be nice to have. Or we can have one implementation in jsdoc which would benefit all

Unlikely to happen. Either TS or JS. The in-between is unmanageable for us.


Not able to run a job at a specific hour every day

Hello
I am not able to run a job at a specific hour every day.
My time zone is utc + 1
In my config/application.rb :
config.time_zone = 'Paris'
config.active_record.default_timezone = :local

Here is a sample of my cron for a task running every day, every minutes at 1pm utc+1:
* 12 * * * *
I tried like this too
* 12 * * * * Etc/UTC
and like this
* 13 * * * * Europe/Paris
To be sure I have tried * 13 * * * * and 0 13 * * * * too but without any success
I have nothing in last enque
If I try with something like * * * * * * or 5 * * * * *, it works fine
If I click on "Enqueue now" it works fine
Do you have any advice about how I can find what is wrong or any lead on how to make this work?

I've forgot something important, I am using it like this:
Sidekiq::Cron::Job.new(name: my_uniq_job_name, cron: * 12 * * * *, class: 'MyJob', args: {id: self.id})

I wonder if this is related to #89?

Yes maybe

Ok so my issue was my cron format for RufusScheduler as it must be a 5 cron
man 5 crontab


The down method for the migration where you are making the name column unique on notification_categories table

In the current version of the code the down method looks like
public function down()
    {
        Schema::table('notification_categories', function ($table) {
            $table->dropUnique('name');
        });
    }

The problem is that trying to do a rollback using php artisan fails, as the key is actually named differently. The following version works
public function down()
    {
        Schema::table('notification_categories', function ($table) {
            $table->dropUnique('notification_categories_name_unique');
        });
    }

I apologise for the very verbose issue name!

Please make a PR with your change, so I'll check if that doesn't break anything.

Thanks for submitting the issue and the pr really appreciated


Better error message for EntityType not specified in Schema (due to namespace)

Category
Cedar validation features
Describe the feature you'd like to request
In this slack thread: https://cedar-policy.slack.com/archives/C0547KH7R19/p1684968294619939
A user found a confusing error when he had a namespaced schema but his entities file didn't use the namespaced type.
Describe the solution you'd like
We should warn if types aren't declared in the schema and we should suggest a user likely meant a namespaced type if a matching namespaced type is declared in the schema.
Describe alternatives you've considered
We could keep the current behavior and update documentation to clarify behavior.
Additional context
No response
Is this something that you'd be interested in working on?

[ ] 👋 I may be able to implement this feature request
[ ] ⚠ This feature might incur a breaking change

In the slack thread, the user got the error
failed to parse entities from file mini-entities.json: error while deserializing entities: Attribute "color" on Environment::"env-123" shouldn't exist according to the schema:

Notably, they didn't get an error that Environment isn't even a type declared in the schema.  Arguably they should.  Any objections to adding this check during schema-based parsing of entities?  Namely, that declaring an entity with a type that isn't declared in the schema should be an error?  Then, it can be that error that we improve the message on in the presence of namespaces

We were talking about how schema based parsing should handle action entities in a another thread. It seems to me that action entities shouldn't be rejected when using schema based parsing because the only valid actions are those defined in the schema. Those should be extracted from the schema and not be duplicated elsewhere and parsed with other entities.
The Action entity types for various namespaces aren't explicitly defined in the schema, so emitting an error when an entity type is not defined will have this effect, but we should be delibrate with the error message. Claiming that the Action entity type does not exist would clearly be incorrect. It does exist, we just think it's incorrect to try to parse it.

we should be deliberate with the error message

I'll make sure to have a separate, more informative, error message for Action entity types (including namespace+Action) vs for all other entity types not declared in the schema.

action entities should be rejected when using schema based parsing

Worth calling out that this would be a breaking change.  I just confirmed via the CLI that currently, we allow providing action entities in schema-based parsing; we even do this in some of our integration tests (see cedar-integration-tests/tests/example_use_cases_doc/1a.json and its entities file cedar-integration-tests/sample-data/sandbox_a/entities.json).  I'm in favor of the change though.

Worth calling out that this would be a breaking change. I just confirmed via the CLI that currently, we allow providing action entities in schema-based parsing; we even do this in some of our integration tests

Good point. At a minimum, we should check that deleting the action and instead of extracting the action from the schema works for our test cases.

Should we reject action entities in non-schema-based entity parsing as well?  Can we even do that?  If we can't do that, it will be strange that an entities file that was accepted without a schema, is suddenly rejected when you add a schema, even though it was in perfect conformance with the schema, just because you'll be required to remove your action entities when you add the schema.

We definitely need to accept action entities when not using a schema.
If we accept actions entities for schema based parsing, and ultimately want schema based parsing to fill the role of entity store validation, then we'd need to check that the parsed actions are the same as the actions in the schema.

This proposal sounds good to me.  For the purposes of this issue (while we don't have partial schemas), I'll constant-fold the definition of "Consistency" to

If the action is present in both places, it matches up precisely.
If the action is present only in the entities file, error.
If the action is present only in the schema, no further restrictions.


rest api endpoint of query identity not giving any response

http://localhost:1317/identities/identities/Lkj8sS7M1GMTZT65lJ6K_1vfK5uT8C39icnvHMfQ5RA=

not giving any response, when I query identities through rest endpoint

fixed, giving response if we input id string there on endpoint


Change hero div to a semantic element

Change to
From
-

To
+

OR
+

Can I work on this ?

Sure @RishiKumarRay Assigned.

@Evavic44  please review

@Evavic44 please review #75

Nice work @RishiKumarRay 👍🏾


thanos store when query is working,it will stop with invalid memory address or nil pointer dereference

Thanos, Prometheus and Golang version used
thanos:0.1.0-rc.2
Prometheus ：
golang:go1.10.3

What happened
When I started looking up historical data, he showed up：
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0xb6c242]
What you expected to happen
I think he can keep running and not crash
How to reproduce it (as minimally and precisely as possible):
I wonder what's going on because my memory isn't low
Full logs to relevant components

Anything else we need to know

Full logs：
Oct 08 10:29:07 bje-qtt-public-store-01 thanos[22386]: level=debug ts=2018-10-08T02:29:07.169142786Z caller=bucket.go:672 msg="Blocks source resolutions" blocks=240 mint=153654624600000-1538956800000 Resolution: 0"
Oct 08 10:29:07 bje-qtt-public-store-01 thanos[22386]: panic: runtime error: invalid memory address or nil pointer dereference
Oct 08 10:29:07 bje-qtt-public-store-01 thanos[22386]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0xb6c242]
Oct 08 10:29:07 bje-qtt-public-store-01 thanos[22386]: goroutine 6252 [running]:
Oct 08 10:29:07 bje-qtt-public-store-01 thanos[22386]: github.com/improbable-eng/thanos/pkg/store.(*lazyPostings).Err(0xc62e5ca000, 0x0, 0x0)
Oct 08 10:29:07 bje-qtt-public-store-01 thanos[22386]: :1 +0x32
Oct 08 10:29:07 bje-qtt-public-store-01 thanos[22386]: github.com/improbable-eng/thanos/vendor/github.com/prometheus/tsdb/index.(*intersectPostings).Err(0xc65801a000, 0xc5dc9a3000,
Oct 08 10:29:07 bje-qtt-public-store-01 thanos[22386]: /go/src/github.com/improbable-eng/thanos/vendor/github.com/prometheus/tsdb/index/postings.go:329 +0x8c
Oct 08 10:29:07 bje-qtt-public-store-01 thanos[22386]: github.com/improbable-eng/thanos/vendor/github.com/prometheus/tsdb/index.(*intersectPostings).Err(0xc65801a060, 0xc42040c200,
Oct 08 10:29:07 bje-qtt-public-store-01 thanos[22386]: /go/src/github.com/improbable-eng/thanos/vendor/github.com/prometheus/tsdb/index/postings.go:326 +0x37
Oct 08 10:29:07 bje-qtt-public-store-01 thanos[22386]: github.com/improbable-eng/thanos/vendor/github.com/prometheus/tsdb/index.(*intersectPostings).Err(0xc65801a150, 0xc5dc9a3000,
Oct 08 10:29:07 bje-qtt-public-store-01 thanos[22386]: /go/src/github.com/improbable-eng/thanos/vendor/github.com/prometheus/tsdb/index/postings.go:326 +0x37
Oct 08 10:29:07 bje-qtt-public-store-01 thanos[22386]: github.com/improbable-eng/thanos/vendor/github.com/prometheus/tsdb/index.ExpandPostings(0xf21340, 0xc65801a150, 0x0, 0x9, 0xa
Oct 08 10:29:07 bje-qtt-public-store-01 thanos[22386]: /go/src/github.com/improbable-eng/thanos/vendor/github.com/prometheus/tsdb/index/postings.go:224 +0xfb
Oct 08 10:29:07 bje-qtt-public-store-01 thanos[22386]: github.com/improbable-eng/thanos/pkg/store.(*BucketStore).blockSeries(0xc420282280, 0xf20880, 0xc5ddc78400, 0xd32536da7c0f660
Oct 08 10:29:07 bje-qtt-public-store-01 thanos[22386]: /go/src/github.com/improbable-eng/thanos/pkg/store/bucket.go:489 +0x152
Oct 08 10:29:07 bje-qtt-public-store-01 thanos[22386]: github.com/improbable-eng/thanos/pkg/store.(*BucketStore).Series.func1(0xc626c794c8, 0x0)
Oct 08 10:29:07 bje-qtt-public-store-01 thanos[22386]: /go/src/github.com/improbable-eng/thanos/pkg/store/bucket.go:715 +0xe3
Oct 08 10:29:07 bje-qtt-public-store-01 thanos[22386]: github.com/improbable-eng/thanos/vendor/github.com/oklog/run.(*Group).Run.func1(0xc64e0a2180, 0xc5edf90230, 0xc5d53e0270)
Oct 08 10:29:07 bje-qtt-public-store-01 thanos[22386]: /go/src/github.com/improbable-eng/thanos/vendor/github.com/oklog/run/group.go:38 +0x27
Oct 08 10:29:07 bje-qtt-public-store-01 thanos[22386]: created by github.com/improbable-eng/thanos/vendor/github.com/oklog/run.(*Group).Run
Oct 08 10:29:07 bje-qtt-public-store-01 thanos[22386]: /go/src/github.com/improbable-eng/thanos/vendor/github.com/oklog/run/group.go:37 +0xa8
Oct 08 10:29:07 bje-qtt-public-store-01 systemd[1]: thanos-store.service: main process exited, code=exited, status=2/INVALIDARGUMENT
Oct 08 10:29:07 bje-qtt-public-store-01 systemd[1]: Unit thanos-store.service entered failed state.
Oct 08 10:29:07 bje-qtt-public-store-01 systemd[1]: thanos-store.service failed.

When I turned it on, he was normal, but when I started looking up historical data, he quit unexpectedly

#335 you are probably running into this

Can you make that clear？

Can you make that clear？

This is a duplicate of https://github.com/improbable-eng/thanos/issues/335 This can mean that your store has not enough memory to respond. Please move the discussion to https://github.com/improbable-eng/thanos/issues/335


Not working in Safari 15

Not working in Safari 15, shows everything and has no effect. Works perfectly in Chrome and Firefox.
System:
Safari 15.0
Craft Pro 3.7.16
Reasons 2.2.5
Developer console reports:
ReferenceError: Can't find variable: BroadcastChannel
init — DraftEditor.js:118
constructor — garnish.js:764
(anonym funksjon) — garnish.js:40
(anonym funksjon) — garnish.js:40

Did some further debugging and can confirm that Reasons not working in Safari is due to this error being thrown by Craft's core DraftEditor.js component. Looks like the issue was introduced quite recently in this commit.

Craft <IP_ADDRESS> was just released with a fix for this.


Bluetooth: Audio: fix possible overflow in BASE LTV decode

Consistently process BIS data, codec data and codec metadata. Range check count of data received so that buffer overflow cannot occur.

merged to Zephyr main


[🐛] GoodReads link go to "Gideon Defoe, The Pirates! In an Adventure with Scientists"

:bug: Bug report
Description

A clear and concise description of the problem...
Is this a regression?
Yes, check online - https://www.goodreads.com/review/edit/47129532
:microscope: Minimal Reproduction

Go to  https://github.com/bkimminich/juice-shop
Click on  in section "official companion guide"
You need to log into service.
https://www.goodreads.com/review/edit/47129532

:fire: Exception or Error

:deciduous_tree: Your Environment
Windows - Chrome

Link needs to be changed into https://www.goodreads.com/review/edit/33834308. Thanks for noticing!


Updating https://mvnrepository.com/artifact/com.slack.api so that we can access MessageFileShareEvent.java

Currently most recent version available in maven repo is 1.0.11.
Please update the  latest version

Please wait for a little more. We'll be releasing a new version early next week.

Thanks for the update

v1.1.0 jars are available in Maven Central repositories. https://repo1.maven.org/maven2/com/slack/api/


Add as_url method to each CloudPath implementation with ability to generate presigned_urls

Overview
Adds an as_url method that returns the https:// address of the object or generates a presigned URL if presign=True is passed.
Based on https://github.com/drivendataorg/cloudpathlib/issues/235
Usage
from cloudpathlib import CloudPath

path = CloudPath("az://tests/test.txt")

print(path.as_url())
# https://myaccount.blob.core.windows.net/tests/text.txt

print(path.as_url(presign=True))
# https://myaccount.blob.core.windows.net/tests/text.txt?se=...[OTHER_SAS_TOKEN_PARAMS]'

print(path.as_url(presign=True, expire_seconds=10))
# URL will now expire in 10 seconds
# https://myaccount.blob.core.windows.net/tests/text.txt?se=...[OTHER_SAS_TOKEN_PARAMS]'

Open Questions
1. What should we call this method? as_url would be fine but there's already the Pathlib as_uri method so it's probably confusing.
Maybe we make as_uri return the default https:// address for the blob instead of the str of the Path. Then we have this method for generating presigned urls be more specific (e.g. get_signed_url)
So for the above example:
from cloudpathlib import CloudPath

path = CloudPath("az://tests/test.txt")

print(path.as_uri())
# https://myaccount.blob.core.windows.net/tests/text.txt
#
# Note: Currently this would return the str of Path so:
# "az://tests/text.txt"

print(path.get_signed_url())
# https://myaccount.blob.core.windows.net/tests/text.txt?se=...[OTHER_SAS_TOKEN_PARAMS]'

@kabirkhan Thanks for this, I think the implementation is looking great. A few questions:
(1)  Do you know if any of the provider specific SDKs support getting the URL? Might be more reliable than the f-string version, even in the non-presigned case
(2) The S3 will need to handle if a custom endpoint url is set (e.g., on a MinIO server)
(3) I'm partial to using as_url and having that support the presigning, and also leaving as_uri alone. I do definitely see the point you brought up that it is potentially confusing, but IMO at least for S3 there's enough treatment of the s3://... form as a URI that having both options may provide utility (even if you can get the as_uri with str already).
Other than those qs, this will need:

[ ] tests
[ ] documentation updates

Also, do you have creds that you can use to test the various live versions of the services? If not, I can share some with you.

@kabirkhan I know this is a little old, but I'm pushing to get some valuable stale PRs in if possible. Would you have time to wrap the implementation here with the items above?

Hey @pjbull, I found some time! lol sorry for the super late reply here. I ended up not needing this for my work but it popped in my head that I never finished this and it's legitimately a useful addition.
Finished up the main code changes and this now uses the SDK of each provider to get the public URLs as well so local emulators should work.
Started working on the tests as well but not all the there yet.

Awesome, thanks @kabirkhan! I actually had just had to reach into the S3Client and do this with the boto client directly, so excited to get this in.
I'll take a look this weekend.

Thanks @kabirkhan! Moving to local branch to run the live backend tests


Backport to branch 6.4: Move setting of net.bytebuddy.experimental to the Jenkinsfile

The hope is that whenever we add a new JDK version to test, we'll notice this setting, will try to remove it and upgrade bytebuddy if necessary. This would avoid mess-ups like the one that caused https://github.com/hibernate/hibernate-orm/pull/7790
Backport of #7792 to branch 6.4

Rebased as we merged the Bytebuddy upgrade..


COSMOS DB

[Enter feedback here]

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

ID: ae7e28b8-c357-9184-97de-74c1648d4c42
Version Independent ID: 1dbde873-ceef-7b0d-19d5-d134a0d2f752
Content: Enable database protection for your subscription
Content Source: articles/defender-for-cloud/quickstart-enable-database-protections.md
Service: defender-for-cloud
GitHub Login: @bmansheim
Microsoft Alias: benmansheim

@barek2
Thanks for your feedback! We will investigate and update as appropriate.
Could you please elaborate the query for better understanding. So, we can assist you further.

@barek2
Since we have not heard back from you, we will now proceed to close this thread.
If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.


Jobs with multiple files don't complete when backend fails

When the following conditions are met:

A print job is submitted with multiple files (i.e. lp -d pq /etc/services /etc/services)
The print job uses at least one filter (i.e. not a raw queue)
The backend fails (due to, for example, a Broken Pipe error, which is a common occurrence)

Then the job stays in the queue.  The backend fails, but the filter doesn't receive SIGPIPE and never exits, and the scheduler doesn't kills the job.
If the print job has only one file, then the filter gets SIGPIPE when the backend fails and the job is aborted (or retried depending on the Error Policy).
I've reproduced this in CUPS 1.4.2, 1.6.3 and 2.2.6.
I've been trying (unsuccessfully) to discover a difference in the way the scheduler starts filters for multi-file jobs vs. single-file jobs that would account for this behavior.  Suggestions for where to look in the code would be appreciated (as would a patch to fix this, but I'm happy to work on the patch myself if I can get a push in the right direction).
Or would it make sense to call stop_job() somewhere if the backend fails.  There's not much point in continuing to process a job if the backend has failed, is there?
Thanks.

@bryan-mason "Broken pipe" should not be a common occurrence for a backend, particularly when all of the standard backends block/handle it.
The difference with single-vs-multi document jobs is that the backend (and associated pipes) remains active for all of the documents in the job - basically we reuse them for all documents, e.g:
filters for document 1  \
filters for document 2   | backend
...                                    /
filters for document N /

Anyways, we should probably be closing the pipes when the backend fails, which will allow the filters to see that the backend has gone away (rather than block on IO) and allow the job to abort.

"Broken pipe" should not be a common occurrence for a backend, particularly when all of the standard backends block/handle it.

It's been my experience supporting enterprise customers that:
D [25/Jul/2018:17:24:05 -0700] [Job 42] Error reading back-channel data: Connection reset by peer
E [25/Jul/2018:17:24:05 -0700] [Job 42] Unable to write print data: Broken pipe

Is one of the more common failure modes that people report.  The cause always seems to be some sort of network equipment problem, and the socket backend handles it gracefully and exits cleanly, but it's still a problem (usually because ErrorPolicy is stop-printer and the customer wants to know why their print queue stopped).

[master 72a213482] Fix stuck multi-file jobs (Issue #5359, Issue #5413)
[branch-2.2 e7e33bf64] Fix stuck multi-file jobs (Issue #5359, Issue #5413)


Options pattern class naming convention

Description
Hello documentation team,
Is it best practice to name the class with the "Options" suffix?
e.g. PositionOptions, NameTitleOptions
In another example in the article the "Settings" suffix is used:
TopItemSettings
Page URL
https://learn.microsoft.com/en-us/aspnet/core/fundamentals/configuration/options?view=aspnetcore-9.0&preserve-view=true
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/fundamentals/configuration/options.md
Document ID
dc7e3449-650b-d117-5eac-69e5ccb250cb
Article author
@tdykstra
Related Issues

It's outside the scope of this documentation to recommend a naming practice.   "Options" makes sense, but so does "Settings." What to name these classes is a decision best left up to each developer team.


Initial attempt at Scan Server Group Configuration IT

This is a draft because the non-default scans are not being directed to the 2nd scan server. I'm wondering if it's a client timing issue.


How to use without cdn

How can I  integrate this without using a cdn and locally serve via flask?

https://getmdl.io/started/index.html#download


smartd_warning.sh can't find sed

Describe the bug
smartd fails to send an email as sed is not in its path. This is quite an issue as it fails silently, not warning users of potential important events.
Steps To Reproduce
set services.smartd.notifications.test = true, with the service and mail enabled and configured
Expected behavior
smartd_warning.sh should correctly execute and notify users.
Additional context
Aug 25 20:55:21 xanadu smartd[145180]: Executing test of /nix/store/jvq800z9lz4rhanyvxk9xrc1dsakydi5-smartd-notify.sh to <nomailer> ...
Aug 25 20:55:21 xanadu smartd[145180]: Test of /nix/store/jvq800z9lz4rhanyvxk9xrc1dsakydi5-smartd-notify.sh to <nomailer> produced unexpected output (118 bytes) to STDOUT/STDERR:
Aug 25 20:55:21 xanadu smartd[145180]: /nix/store/2iwn0lzf58n7aqhrrzgifmvq5pwjhrm7-smartmontools-7.3/etc/smartd_warning.sh: line 125: sed: command not found
Aug 25 20:55:21 xanadu smartd[145180]: Test of /nix/store/jvq800z9lz4rhanyvxk9xrc1dsakydi5-smartd-notify.sh to <nomailer>: failed (32-bit/8-bit exit status: 32512/127)

Notify maintainers
@pacien
Metadata
 - system: `"x86_64-linux"`
 - host os: `Linux 5.15.60-hardened1, NixOS, 22.11 (Raccoon)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.7.0`
 - channels(root): `"agenix, home-manager, nixos, nixos-mailserver"`
 - channels(govanify): `"home-manager, nixos-mailserver, nixpkgs"`
 - nixpkgs: `/home/govanify/.nix-defexpr/channels/nixpkgs`

Woops, nevermind, this seems to have been fixed as of 2 days ago! Closing as duplicated, fixed in https://github.com/NixOS/nixpkgs/pull/188044


AttributeError: 'NoneType' object has no attribute 'click'

Bug/Feature/Support
AttributeError: 'NoneType' object has no attribute 'click'
It can't login.
How to reproduce
Just follow the instruction on Readme.
Motivation
If this code isn't capable of using, what's the point to contruct it?

Hi, I tried changing the line 86 in inscrawler/crawler.py to
login_btn = browser.find_one('button[class="_acan _aiit _acap _aijb _acas _aj1-"]').
But I am still facing the same issue, Any suggestion please?


No way to disable "underline" entirely

[x] I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
[x] I have read the documentation and cannot find an answer.

Describe the bug
I am attempting to configure the editor to support only a sub-set of possible markdown. One of the features I would like to remove is the ability to underline text. I was able to use the toolbar primitives to create a custom formatting toggle that only includes Bold and Italic buttons, and was able to ensure HTML cannot be used by setting suppressHtmlProcessing={true}, however, it is still possible to underline text by selecting the text and hitting Ctrl-U. The markdown produced then includes text, even though suppressHtmlProcessing is true.
Expected behavior
I'm not entirely sure what the correct fix for this would be... a couple options I can think of would be:

Ensure  cannot be produced when suppressHtmlProcessing is true.
Add an options prop to the BoldItalicUnderlineToggles, much like the ListsToggle, and then only enable the keyboard shortcuts for those options selected.

You can achieve this with your own plugin - you need to register two things, basically:

An mdast visitor with a higher priority than the default one which "drops" the u tag when encountered
A high priority Lexical command that handles ctrl/cmd+u and stops the underline formatting

Refer to the docs for more details on the matter.
As a general note: the toolbar is an "accessory"; its contents are by no means hard-bound to the editor capabilities, nor they can enable or restrict certain behavior.

I need this as well. I've been struggling with it for a day now, but cannot really put the pieces together from the docs.
Could you provide me/us with an example?

Bumping this, feels like a common use case! I don't want to allow users to set underlines since they're easily confused with links. Could you add an example to the docs, or provide an easy way to disable this natively?

After playing with stuff for quite some time, I managed to get something working.
Note: I haven't tested it deeply, but seems to work fine for basic markdown features.
Sharing it since it could be a good starting point for customizing based on your own needs.
 <MDXEditor
        plugins={[
           ...
           customDisableUnderlinePlugin()
        ]}
          ...
/>

import { createRootEditorSubscription$, realmPlugin } from '@mdxeditor/editor';
import { COMMAND_PRIORITY_CRITICAL, FORMAT_TEXT_COMMAND, TextNode } from 'lexical';

const IS_UNDERLINE = 0b1000 as const;

export const customDisableUnderlinePlugin = realmPlugin({
  init(realm) {
    realm.pub(createRootEditorSubscription$, (lexicalEditor) => {
      return lexicalEditor.registerCommand(
        FORMAT_TEXT_COMMAND,
        (payload) => {
          if (payload === 'underline') {
            return true;
          }
          return false;
        },
        COMMAND_PRIORITY_CRITICAL,
      );
    });

    realm.pub(createRootEditorSubscription$, (lexicalEditor) => {
      return lexicalEditor.registerNodeTransform(TextNode, (textNode) => {
        if ((textNode.getFormat() & IS_UNDERLINE) !== 0) {
          textNode.setFormat(textNode.getFormat() & ~IS_UNDERLINE);
        }
      });
    });
  },
});


Problems with using pgcli

The following error occurs above the 1.0.0 version:
-> % pgcli -h localhost -p 5432 -U postgres -W
Password:
Traceback (most recent call last):
File "/usr/bin/pgcli", line 9, in
load_entry_point('pgcli==0.20.1', 'console_scripts', 'console')()
File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 722, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/share/pgcli/pgcli/main.py", line 595, in cli
pgcli.run_cli()
File "/usr/share/pgcli/pgcli/main.py", line 278, in run_cli
self.cli = self._build_cli()
File "/usr/share/pgcli/pgcli/main.py", line 408, in _build_cli
cli = CommandLineInterface(application=application)
File "/usr/local/lib/python3.5/dist-packages/prompt_toolkit/interface.py", line 67, in init
assert isinstance(eventloop, EventLoop)
AssertionError
When I install version 0.59, I can use it properly
sudo pip  install prompt_toolkit==0.59
-> % pgcli -h localhost -p 5432 -U postgres -W
Password:
Version: 0.20.1
Chat: https://gitter.im/dbcli/pgcli
Mail: https://groups.google.com/forum/#!forum/pgcli
Home: http://pgcli.com
postgres>

Hi there, this seems to be an issue in pgcli and not the toolkit here.
Those assert statements are to help developers catch their programming errors.
In any case, the toolkit is way beyond that version reported in this ticket.
https://github.com/jonathanslenders/python-prompt-toolkit/releases/tag/2.0.3


Luanalysis freeezes CLion

Environment

name
version

IDEA version
CL2020.3

Luanalysis version
v1.2.2-IDEA203

OS
Linux Mint 20.1 "Ulyssa"

CLion completely freezes shortly after startup.
Please see: https://intellij-support.jetbrains.com/hc/en-us/requests/3094347
I "solved" the issue disabling Luanalysis plugin.
What should I do?
TiA!
Mauro

I'm unable to access that link. Could you please provide some details? Like, a lot more details :wink:

I'm unable to access that link. Could you please provide some details? Like, a lot more details :wink:

Sorry,apparently JetBrains people removed my YouTrack Request.
There have been a few comments there.
Essentially my CLion invariably freezed hard (I had to hard kill "-9" the java machine) a few seconds after startup.
JetBrains people told me logs showed Luanalysis was in tight loop.
I was fast enough to manage disabling Luanalysis before lock and, at next start, everything was OK.
I attach the same logs I sent to Jetbrains
log.tar.gz
I am available for further tests, if needed.
Thanks in Advance
Mauro

Sorry,apparently JetBrains people removed my YouTrack Request.
There have been a few comments there.
Essentially my CLion invariably freezed hard (I had to hard kill "-9" the java machine) a few seconds after startup.
JetBrains people told me logs showed Luanalysis was in tight loop.
I was fast enough to manage disabling Luanalysis before lock and, at next start, everything was OK.
I attach the same logs I sent to Jetbrains
log.tar.gz
I am available for further tests, if needed.
Thanks in Advance
Mauro

Just had a very quick look at those logs and I don't see any evidence of a tight loop. However, there is this blocking a thread:
com.tang.intellij.lua.ty.Ty.<clinit>(Ty.kt:673)
I actually ran into this at one stage in the past, after upgrading IntelliJ version. I've not done enough research to claim with any degree certainty, however it certainly looks a lot like a bug in theJBR (Jetbrains' Java Runtime).
The line in question is this:
https://github.com/Benjamin-Dobell/IntelliJ-Luanalysis/blob/v1.2.2/src/main/java/com/tang/intellij/lua/ty/Ty.kt#L673
It's trying to run the static initializer for TyPrimitiveClass, but it just hangs indefinitely. Presumably the other threads also go to access TyPrimitiveClass but must block until the static initializer completes (never).
clinit just shouldn't be allowed to hang indefinitely like that. It's quite likely there's something about Luanalysis' odebase that is causing the situation to arise - possibly cyclical static initializer logic. However, the Kotlin compiler should prevent this situation.
I'm of the opinion there's a bug in something Jetbrains, either the JBR or the Kotlin compiler. However, that's not to say there isn't also something wrong Luanalysis (e.g. something cyclical).
I can't reproduce this in order to debug, but I'll have a think about the static initializers and see if I can identify any problem areas.

Just had a very quick look at those logs and I don't see any evidence of a tight loop. However, there is this blocking a thread:
com.tang.intellij.lua.ty.Ty.<clinit>(Ty.kt:673)
I actually ran into this at one stage in the past, after upgrading IntelliJ version. I've not done enough research to claim with any degree certainty, however it certainly looks a lot like a bug in theJBR (Jetbrains' Java Runtime).
The line in question is this:
https://github.com/Benjamin-Dobell/IntelliJ-Luanalysis/blob/v1.2.2/src/main/java/com/tang/intellij/lua/ty/Ty.kt#L673
It's trying to run the static initializer for TyPrimitiveClass, but it just hangs indefinitely. Presumably the other threads also go to access TyPrimitiveClass but must block until the static initializer completes (never).
clinit just shouldn't be allowed to hang indefinitely like that. It's quite likely there's something about Luanalysis' odebase that is causing the situation to arise - possibly cyclical static initializer logic. However, the Kotlin compiler should prevent this situation.
I'm of the opinion there's a bug in something Jetbrains, either the JBR or the Kotlin compiler. However, that's not to say there isn't also something wrong Luanalysis (e.g. something cyclical).
I can't reproduce this in order to debug, but I'll have a think about the static initializers and see if I can identify any problem areas.

So, I was able to reproduce the problem. Actually running Luanalysis tests, not an interactive IDE instance.
I've refactored a bit to mitigate the issue, and I can no longer reproduce the problem.
I can certainly see why static initialization was (and still is) rather complicated for the runtime. However my current understanding is that what was already there should have been working fine.

So, I was able to reproduce the problem. Actually running Luanalysis tests, not an interactive IDE instance.
I've refactored a bit to mitigate the issue, and I can no longer reproduce the problem.
I can certainly see why static initialization was (and still is) rather complicated for the runtime. However my current understanding is that what was already there should have been working fine.

Should I wait for next Luanalysis update or should I try re-enabling it now?

Should I wait for next Luanalysis update or should I try re-enabling it now?

You can wait for the next release, build master, or use the attached build:
IntelliJ-Luanalysis-5018fdb14e170ccfcdaa1359a4db2e662a8dbd27.zip
I should probably add that whilst 5018fdb14e170ccfcdaa1359a4db2e662a8dbd27 is passing all tests, I tend to do a bunch of manual testing before each release, and I've not yet done that. Still, it's pretty hard to be worse than locking up your IDE on start-up.

You can wait for the next release, build master, or use the attached build:
IntelliJ-Luanalysis-5018fdb14e170ccfcdaa1359a4db2e662a8dbd27.zip
I should probably add that whilst 5018fdb14e170ccfcdaa1359a4db2e662a8dbd27 is passing all tests, I tend to do a bunch of manual testing before each release, and I've not yet done that. Still, it's pretty hard to be worse than locking up your IDE on start-up.

Per your message on Discord, I've installed this temp fix.  Certainly seems (a) not to crash Rider and (b) not to produce regular stack-overflow errors so that's great :)  Is there a way to be notified when it becomes the 'live' JetBrains plugins version (so I know to switch over)?  Thanks


syscall: CLONE_NEWTIME can't be used with SysProcAttr.Cloneflags

What version of Go are you using (go version)?

$ go version
go version go1.17.1 linux/amd64

Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE="on"
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/yusuke/.cache/go-build"
GOENV="/home/yusuke/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/yusuke/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/yusuke/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.17.1"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/yusuke/go/src/github.com/ysksuzuki/containers-from-scratch/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build2997449259=/tmp/go-build -gno-record-gcc-switches"

What did you do?

Run a command with Cloneflags unix.CLONE_NEWTIME and check if the process is in a different time namespace from its parent.
func run() {
        cmd := exec.Command(os.Args[2], os.Args[3]...)
        cmd.Stdin = os.Stdin
        cmd.Stdout = os.Stdout
        cmd.Stderr = os.Stderr
        cmd.SysProcAttr = &unix.SysProcAttr{
                Cloneflags:   unix.CLONE_NEWTIME,
        }

        cmd.Run()
}

What did you expect to see?
The process is in an isolated time namespace from its parent.
What did you see instead?
The process is in the same time namespace as its parent.
forkAndExecInChild uses SYS_CLONE but CLONE_NEWTIME can be used only with the clone3() system call.
https://github.com/golang/go/blob/go1.17.3/src/syscall/exec_linux.go#L218
https://github.com/torvalds/linux/commit/769071ac9f20b6a447410c7eaa55d1a5233ef40c
All available clone flags have been used, so CLONE_NEWTIME uses the highest
bit of CSIGNAL. It means that it can be used only with the unshare() and
the clone3() system calls.

cc @ianlancetaylor

The clone3 syscall was added in Linux kernel version 5.3 (https://man7.org/linux/man-pages/man2/clone.2.html#VERSIONS). As of Go 1.18 the minimal supported Linux kernel version is 2.6.32 , see #45964. So it looks like we cannot use clone3 unconditionally, but would need to fall back to clone in case clone3 returns ENOSYS.

Sounds right, but if CLONE_NEWTIME is specified and clone3 fails, we should probably fail the fork/exec in that case.

I looked into this and am unsure how to proceed because SYS_CLONE3 is not yet in src/syscall/zsysnum_linux_arm64.go, nor any other file. I was able to rebuild src/syscall/zsysnum_linux_arm64.go on my machine using ./mksysnum_linux.pl /usr/include/asm-generic/unistd.h > zsysnum_linux_arm64.go. However, that relies on my machine's headers and I'm not clear how to build the other zsysnum_linux_* files.
Some helpful background on time namespaces that might help someone looking at this:

The time_namespaces(7) man page is very informative.
The current namespace for a process is a symlink at /proc/{pid}/ns/time and the namespace for any children is at /proc/{pid}/ns/time_for_children. Use readlink to inspect them, for example to see the current process's time namespace:  readlink /proc/$$/ns/time

See also #51246.

We don't have a good way to rebuild the files in syscall.  We don't worry about it because the syscall package is frozen (http://golang.org/s/go1.4-syscall).  For purposes of this work it would be OK to manually copy the required constants and types from golang.org/x/sys/unix.

I looked into this and it looks like there's a bug in Linux' clone3 syscall which will lead to -EINVAL being return if CLONE_NEWTIME is specified in clone_args.flags. The following upstream patch should fix this<EMAIL_ADDRESS>


Icon binds only to first datagrid row

If I add an icon to a button in a datagrid in WPF everything works just fine.
But when I try to use it inside a DataTrigger, only the first row of my datagrid shows an image.
<Button>
    <Button.Style>
        <Style TargetType="Button">
            <Style.Triggers>
                <DataTrigger Binding="{Binding Order_Status.In_Prima}" Value="true">
                    <Setter Property="Content" Value="{iconPacks:PackIconFontAwesome StarOutline}" />
                </DataTrigger>
                <DataTrigger Binding="{Binding Order_Status.In_Prima}" Value="false">
                    <Setter Property="Content" Value="{iconPacks:PackIconFontAwesome StarOutline}" />
                </DataTrigger>
            </Style.Triggers>
        </Style>
    </Button.Style>
<Button>

Hi, did you solve this issue anyhow?
I have a similar problem when I try to bind an Icon several times: Only the last icon will be shown - the "old" icons disappear. Would be interesting to see your solution - if you have one.
Regards

I’m closing this issue because it has been inactive for a few months. This probably means that it is not reproducible or it has been fixed in a newer version. If it’s an enhancement and hasn’t been taken on for so long, then it seems no one has the time to implement this.
Please reopen if you still encounter this issue with the latest stable version.
Thank you! 🙏

Hello together,
just in case someone is still interested in a solution:
The problem is, that in WPF the Content property can only set once, if it is a Visual. But luckily you can set the ContentTemplate to a DataTemplate and then the Style should work as expected.
<Button>
    <Button.Style>
        <Style TargetType="Button">
            <Style.Triggers>
                <DataTrigger Binding="{Binding Order_Status.In_Prima}" Value="true">
                    <Setter Property="ContentTemplate">
                        <Setter.Value>
                               [YOUR DATATEMPLATE GOES HERE]
                        </Setter.Value>
                    </Setter>
                </DataTrigger>
                <DataTrigger Binding="{Binding Order_Status.In_Prima}" Value="false">
                    <Setter Property="Content">
                        <Setter Property="ContentTemplate">
                            <Setter.Value>
                                   [YOUR DATATEMPLATE GOES HERE]
                            </Setter.Value>
                        </Setter>
                </DataTrigger>
            </Style.Triggers>
        </Style>
    </Button.Style>
<Button>

Happy coding
Tim


Custom Map Tiles

Hi I was wondering if the SDK supports custom vector Map tiles . If yes then how can I use it? Any information would be of great help.

Hi @ImCarrot ,
The current XForms version hasn't implemented that feature.

@ImCarrot Plz check the latest version to see if it fits your need. Naxam could absolutely provide this feature on a contract.


I added stuff to the git ignore.

Before issuing a pull request, please see the contributing page.

Merged the new files into team code on the main branch.


docs(README): Add TravisCI badge

New Pullrequest for ticket <TICKET_NUMBER_HERE>
Changes:

Add Travis CI build badge to README

This Pullrequest fixes:
N/A

Cool one! Thanks!


Clarifications about VGG16 classification head

Hello, thank your nice work !
I was looking at your code and I noticed that your version of VGG16 uses a different architecture for the classification head compared to the original one. Is there any particular reasons that I have missed in your paper ?
your code:
        self.classifier = nn.Sequential(
            nn.Linear(512 * 1 * 1, 512),
            nn.ReLU(True),
            nn.Linear(512, 512),
            nn.ReLU(True),
            nn.Linear(512, num_classes)
        )

original code:
        self.classifier = nn.Sequential(
            nn.Linear(512 * 7 * 7, 4096),
            nn.ReLU(True),
            nn.Dropout(p=dropout),
            nn.Linear(4096, 4096),
            nn.ReLU(True),
            nn.Dropout(p=dropout),
            nn.Linear(4096, num_classes),
        )

Thank you in advance !

Hi tgoncalv,
Thank you for your interest in our work!
The main reason is due to the size of the input image. On CIFAR10 images of size 32 x 32, the VGG network will extract features of size 512 x 1 x 1. The original code assumes an input image of size 224 x 224, on which the VGG network will extract features of size 512 x 7 x 7.
You can also refer to these repositories that design VGG networks for CIFAR-10 images in a similar manner:
https://github.com/kuangliu/pytorch-cifar/tree/master/models
https://github.com/bymavis/CAS_ICLR2021

Thank you for your quick answer and the references !


feat-461: remove duplicate functions

I wanted to try to implement an idea by @eduardoboucas as described here, this is that implementation.

Seeing as the difference isn't too big, I'll be closing this for now :)


Markdown heading levels incorrect

First noticed in https://github.com/nextstrain/docs.nextstrain.org/pull/113#discussion_r991767274:
In a markdown document, the number of # characters doesn't correspond to the HTML heading level.
For instance, in the above PR the main title is ## How data... but rendered as <h1>. Other headings are ##### [a1] Colorings but rendered as <h3>.
I presume this is addressed in this repo, but perhaps not?

Sphinx doesn't directly translate Markdown to rST as doing so would violate the richer (and stricter) semantics of headings that rST has compared to HTML. The first heading becomes the document title (which Markdown has no syntax for) and sets the ## offset for the rest of the section headings.
Also, I'd really recommend writing new doc in rST instead of Markdown, as a lot of the power and usefulness of Sphinx lies in being able to use the richer markup language. The current Markdown support in our docs is to help ease the transition to Sphinx for existing documents, not be a long-term format for documents of any appreciable complexity.
(If we really wanted to support richer Markdown in Sphinx, we'd want to use MyST instead, a quite-diverged variant of Markdown that folds in ideas from rST. But in my experience, it's diverged enough that the simplicity of Markdown is lost and it's easier to just use rST. IMO, Markdown is great for simple standalone documents, but not great for more complex document systems.)


Doxygen Documentation: string.h

include/string.h needs Doxygen documentation added for each of the functions.
Please see embeddedartistry/libmemory or include/ctype.h as a reference for Doxygen function comments.
cppreference.com is a great resource to use for the functional descriptions.
To build the documentation, run make doc in the repository root. Documentation output is found at buildresults/doc/html/index.html.

@phillipjohnston I have already started with the first two functions memcmp and memset. I will continue with it and also with strings.h

@seekaddo thank you kindly for your help!

@phillipjohnston You welcome. Thank you for the opportunity.

Fixed by #34


Include Last updated Date in Docs Repo

With a the docs growing more frequently it would be good if each doc page had the last updated date so if we see if a recent change was made.
Could we use the templating feature for GitBook: Context Variables: file.mtime which should show the Last modified date of the file

That would be great. Any chance you would want to take a stab at it?


Auto Updates not working on Mac

After making the build, when I open the app, it just shows that update is available but doesn't attempt to update the app. What am I doing wrong?

Wait I got this error message after some time - Error in auto-updater.undefinedError: Code signature at URL file:///Users/shashankkumar/Library/Caches/com.github.iffy.electronupdaterexample.ShipIt/update.XM2kBNu/electron-updater-example.app/ did not pass validation: code object is not signed at all

Nevermind - I had published an unsigned release to github.


azure openai api key

Guidelines
Please note that GitHub issues are only meant for bug reports/feature requests.
Before creating a new issue, please check whether someone else has raised the same issue. You may be able to add context to that issue instead of duplicating the report. However, each issue should also only be focussed on a single problem, so do not describe new problems within an existing thread - these are very hard to track and manage, and your problem may be ignored. Finally, do not append comments to closed issues; if the same problem re-occurs, open a new issue, and include a link to the old one.
To help us understand your issue, please specify important details, primarily:

NeoDash version: 2.3

Neo4j Database version: 4.4.9 (Community)

Steps to reproduce
I tried to use azure openai key to use the NLP feature. It seems to work only with openai api key but not azure openai key

Solved with https://github.com/neo4j-labs/neodash/releases/tag/2.3.1


Add Prometheus-based container restarts measurement

This measurement leverages container_start_time_seconds metric to find out if there were pods with (potentially) crashlooping containers during performance testing.
The aforementioned metric is exposed by kubelet since Kubernetes 1.22 (https://github.com/kubernetes/kubernetes/pull/102444).
/kind feature
/sig scalability
/assign @mborsz

/lgtm
/approve
Very elegant solution!


Fix marketplace name overflow

Allow 13 characters marketplace names

Ok I see. Now the only issue is that updating to 1.22 or higher on WAX testnet will probably break the filler because we already started testing there. We should have communicated on that but I had no idea where to do, sorry for that.
I think the easiest solution would be that all testers either cancel or fulfill their buyoffers. That means some history will be missing but on testnet I guess it's not a big deal. I started fulfilling most of them and will try to have the last remaining ones tomorrow.

You can just set the version to 1.3.23 in the database (table dbinfo) and this version will be skipped for your testnet setup as it already ran @hugomspielworks

Yes I will do that but also for other eosio-contract-api providers

I dont think they have upgraded to that version as you only pushed the changes to this repo today as far as I could not see them yesterday. I think most operators used repo which should upgrade as expected


IncrementalKSTest fail

Describe the bug
Hi there,
Thank you so much for developing this facinating package for detecting drifts. It not only contains various kinds of algorithms but also easy to be integrated into the machine learning workflow. Unfortunately, the IKS test does not work even when I run the example code provided by frouros. The error shows the following message:
**TypeError: Invalid call to pythranized function `_compute_outer_prob_inside_method(int, int, int32, int)'
Candidates are:
- _compute_outer_prob_inside_method(int64, int64, int64, int64)**

It seems that there is a problem with the data type of the inputs of the function compute_outer_prob_inside_method.
I have modified the script by using np.int64(var_int32). And it works. However, I am not sure whether the modification will lead to incorrect results.
I am looking forward to your quick response. Thank you!
Steps/Code to Reproduce
the example  code provided by frouros
from frouros.detectors.data_drift import IncrementalKSTest
import numpy as np
np.random.seed(seed=31)
X = np.random.normal(loc=0, scale=1, size=100)
Y = np.random.normal(loc=1, scale=1, size=100)
detector = IncrementalKSTest(window_size=10)
_ = detector.fit(X=X)
for sample in Y:
test, _ = detector.update(value=sample)
if test is not None:
print(test.statistic, test.p_value)
Expected Results
No error is thrown
Actual Results
TypeError: Invalid call to pythranized function `_compute_outer_prob_inside_method(int, int, int32, int)'
Candidates are:
- _compute_outer_prob_inside_method(int64, int64, int64, int64)

Versions
0.6.1

Hi @Tiffany-TW,
Thank you for being interested in using Frouros library!
I've attempted to reproduce the issue using all Python versions compatible with version 0.6.1 (Python 3.{8, 9, 10, 11}), and in each case, there was no error when executing the code.
I suspect that the issue may be related to the compatibility of your numpy or scipy version with the ones specified in 0.6.1 version.
Please provide the Python version you are using and the versions of all packages in your environment. You can obtain this information using the pip freeze command.
Thank you!

Hi @jaime-cespedes-sisniega,
Thank you so much for your quick response. The following are the information of the versions of Python and packages that I am using.
Python: 3.9
scipy: 1.10.1
numpy: 1.24.3
And they all satisfy the package dependencies for 0.6.1 version. Thank you!

Hi @Tiffany-TW,
I have attempted to replicate the reported error with Python 3.9, numpy==1.24.3, and scipy==1.10.1, but everything appears to be functioning correctly on my end.
Could you please perform the following steps to help me further investigate the issue?

Create a virtualenv with Python 3.9.
python3.9 -m venv .venv_test
source .venv_test/bin/activate

Install frouros 0.6.1 (which installs numpy==1.25.2 and scipy==1.10.1).
pip install frouros==0.6.1

Execute the IncrementalKSTest example and print the array dtypes. Provide the output or any error encountered.

import numpy as np
np.random.seed(seed=31)
X = np.random.normal(loc=0, scale=1, size=100)
print(X.dtype)
Y = np.random.normal(loc=1, scale=1, size=100)
print(Y.dtype)
detector = IncrementalKSTest(window_size=10)
_ = detector.fit(X=X)
for sample in Y:
    test, _ = detector.update(value=sample)
    if test is not None:
        print(test.statistic, test.p_value)

If you prefer to use numpy==1.24.3.
pip install numpy==1.24.3

Execute the IncrementalKSTest example again and provide the output or error encountered.

Thank you!

Hi @jaime-cespedes-sisniega,
Thank you so much for your quick response! I will follow the steps and execute the example again once I am back to my lab.
Thank you!

Hi @jaime-cespedes-sisniega,
I have followed the steps that you provided and it works fine! The output is shown as follows:
float64
float64
0.48999999999999994 0.017076114165644283
0.48999999999999994 0.017076114165644283
0.59 0.0017749611644061964
0.48999999999999994 0.017076114165644283
0.59 0.0017749611644061964
0.59 0.0017749611644061964
0.59 0.0017749611644061964
0.59 0.0017749611644061964
0.56 0.0037084103033684338
0.53 0.00736946177546339
0.53 0.00736946177546339
0.53 0.00736946177546339
0.53 0.00736946177546339
0.63 0.000609529321726692
0.63 0.000609529321726692
0.63 0.000609529321726692
0.63 0.000609529321726692
0.63 0.000609529321726692
0.73 2.5523707124036954e-05
0.76 8.318506604670009e-06
0.76 8.318506604670009e-06
0.76 8.318506604670009e-06
0.76 8.318506604670009e-06
0.76 8.318506604670009e-06
0.76 8.318506604670009e-06
0.66 0.000254991605480713
0.66 0.000254991605480713
0.66 0.000254991605480713
0.66 0.000254991605480713
0.56 0.0037084103033684338
0.56 0.0037084103033684338
0.5700000000000001 0.002917542391038835
0.5700000000000001 0.002917542391038835
0.5800000000000001 0.00228234123327373
0.5800000000000001 0.00228234123327373
0.68 0.00013764243681949634
0.67 0.0001880475819434029
0.67 0.0001880475819434029
0.5700000000000001 0.002917542391038835
0.5700000000000001 0.002917542391038835
0.5700000000000001 0.002917542391038835
0.5700000000000001 0.002917542391038835
0.5700000000000001 0.002917542391038835
0.5700000000000001 0.002917542391038835
0.5700000000000001 0.002917542391038835
0.47000000000000003 0.025215606785466544
0.5 0.013949893831440276
0.4 0.08512095214731386
0.41 0.0725557449692047
0.51 0.011337601504381846
0.51 0.011337601504381846
0.41 0.0725557449692047
0.42999999999999994 0.051985241573246806
0.38 0.11567743352683023
0.27999999999999997 0.4150062844980919
0.32999999999999996 0.23149506155626867
0.27999999999999997 0.4150062844980919
0.38 0.11567743352683023
0.42999999999999994 0.051985241573246806
0.42999999999999994 0.051985241573246806
0.42999999999999994 0.051985241573246806
0.53 0.00736946177546339
0.53 0.00736946177546339
0.5900000000000001 0.0017749611644061964
0.63 0.000609529321726692
0.63 0.000609529321726692
0.72 3.6388781074041604e-05
0.72 3.6388781074041604e-05
0.62 0.0008040820202593602
0.62 0.0008040820202593602
0.6 0.0013719548736726567
0.6 0.0013719548736726567
0.6 0.0013719548736726567
0.6 0.0013719548736726567
0.6 0.0013719548736726567
0.6 0.0013719548736726567
0.6 0.0013719548736726567
0.6 0.0013719548736726567
0.7 7.199511188743968e-05
0.7 7.199511188743968e-05
0.75 1.220852122230883e-05
0.75 1.220852122230883e-05
0.75 1.220852122230883e-05
0.75 1.220852122230883e-05
0.75 1.220852122230883e-05
0.76 8.318506604670009e-06
0.76 8.318506604670009e-06
0.76 8.318506604670009e-06
0.76 8.318506604670009e-06
0.76 8.318506604670009e-06
0.76 8.318506604670009e-06
Since the IKS test works fine in the virtual environment, I am really curious about the reason that leads to the initial problem. Do you have any idea? Thank you^^

Hi @Tiffany-TW,
I'm glad it works for you using a virtual environment!
I'm not sure about the real reason for the problem. But it seems that it is not related to frouros, maybe there are some conflicts with other versions of other packages that you have in the original environment, but this is all speculation.


Please explain ./runkube.py --with-elk  -o overlay/user_template.yml --

Describe the bug
where is the  which is required to pass as argument to below command in the README.md
./runkube.py --with-elk  -o overlay/user_template.yml --
earlier there was component_versions.yaml file under optscale directory but that is also not there . please explain how to provide version to runkube.py under this command.
To Reproduce
Steps to reproduce the behavior:
./runkube.py --with-elk  -o overlay/user_template.yml --
Expected behavior
optscale successful installation
Desktop (please complete the following information):

OS: Ubuntu 20.04

the current version will work with this
./runkube.py --use-socket --with-elk  -o overlay/user_template.yml -- <deployment name> <version>

./runkube.py --use-socket --with-elk  -o overlay/user_template.yml -- my-deployment<PHONE_NUMBER>-public

you can take version number from here

Thanks for the information @nexusriot ,

for the  overlay/user_template.yml, I just want to use this to access AWS so can I just provide AWS access and secret key and left everything else as it is ?

https://github.com/hystax/optscale/blob/bc760992e08db2db6bdf0356a622423f7334050b/optscale-deploy/overlay/user_template.yml#L10

From where I will get the cluster secret mentioned in runkube.py
https://github.com/hystax/optscale/blob/bc760992e08db2db6bdf0356a622423f7334050b/optscale-deploy/overlay/user_template.yml#L4

@nexusriot , is there is any update on this. Or any better installation document available?


speed up zio/jsonio.Reader with pkg/jsonlexer

zio/jsonio.Reader performance suffers from the large number of
allocations performed by encoding/json.Decoder.Token.  Replace it with
pkg/jsonlexer, a JSON lexer that minimizes the number of allocations.
There are a number of JSON lexers in Go out there, and I'd hoped to use one, but all were slower than I'd hoped.
Reading NDJSON with -f json -i json is about three times faster for me with this branch compared to main.

Reading NDJSON with -f json is about three times faster for me with this branch compared to main.

You mean -i json, right?

unquoteBytes looks like zson.Lexer.scanString() but done differently (the specs are the same). Should we combine them?

Yep. I didn't want to deal with that hear but it's definitely something we should do.

You mean -i json, right?

I do!


State is shared among tabs

Toolbar controls are shared among JupyterLab tabs, even if they display different files.

See https://github.com/silx-kit/h5web/issues/518

Some progress was implemented in v0.0.7 but after some tests, this does not seem fully solved.
Also see https://github.com/silx-kit/h5web/issues/608

Some quick thoughts so we can decide how to move forward:
Demo app

store can be global and initialised before render
persist during use with global ID

JupyterLab tabs

store cannot be global

=> one store per tab (or single store managing multiple sub-stores?)

one tab can be persisted, but others cannot
code not controlled by user, so no way to customise/configure anything

=> detect if a tab is already open and disable persistence in any new tab
=> OR rehydrate tabs on open and persist on close
=> OR rehydrate tabs on open and persist anything

Jupyter notebook cells

store cannot be global
one store per cell (or single store managing multiple sub-stores?)
code controlled by user

=> "save slots": provide store persistence ID when opening a cell
=> OR provide API to pass initial state and persist on demand

Proposed solution
Global config provider exposed through @h5web/app:
<ConfigProvider>
  <App>
</ConfigProvider>

Global config provider wraps app with every toolbar config provider:
<LineConfigProvider>
  <HeatmapConfigProvider>
    {children}
  </HeatmapConfigProvider>
</LineConfigProvider>

Each toolbar config provider initialises its store on mount and provides it through context. It waits for the store to be rehydrated before rendering.
Two props are passed down from the global provider to the toolbar providers:

a string prop called id-- if provided, the ID is appended to the stores' names (e.g. h5web:<line|heatmap>:<id>) in order to create new persistence slots in localStorage;
a boolean prop called rehydrateWithId, which defaults to false -- if false, the store is rehydrated from the default persistence slots (h5web:line, `h5web:heatmap) instead of from the ID-suffixed slots.

From jupyterlab-h5web's side

When opening H5Web in a JupyterLab tab or notebook cell for the first time, the extension should not pass any prop to ConfigProvider.
When opening more tabs or cells, the extension should pass the id prop and let rehydratedWithId default to false. The id should be an incremental number (converted to string).
When opening cells, the extension should allow users to pass the id and rehydrateWithId props themselves. By passing a custom id and setting rehydrateWithId to true, users can therefore create and/or re-use custom persistence slots in notebook cells.

Thanks for the well-thought-out summary !
I think Solution 2 for persistence is promising:

it is not only simpler but more user-friendly
there is no need to act directly on ConfigProvider: it can stay in the App so we don't need to change the current implementation.
It matches my view of the store handling. To me, each h5web instance (whether it is a cell or a tab) should have its own store that is initialized from local storage. The instances' stores should not be interacting with each other (i.e. no persistence) during use.

In https://github.com/silx-kit/h5web/pull/575 we started injecting stores via context, but we put the providers in the Visualizer, which meant that the stores were being recreated and rehydrated from localStorage every time the active visualization changed.
In https://github.com/silx-kit/h5web/pull/646, we move the providers higher up in the tree so the stores are created and rehydrated from localStorage only once. Here is an example of what this will look like in JupyterLab:

localStorage has Viridis color map and Log scale
User opens a file in two separate tabs (1 and 2).
User selects Inferno color map in tab 1 => localStorage now has Inferno+Log
User switches to tab 2 => toolbar still shows Viridis+Log, because the two tabs don't share the same store instances
User switches to Line vis and back to Heatmap vis => toolbar still shows Viridis+Log, because store was not rehydrated from localStorage.
User selects Linear scale => localStorage now has Viridis+Linear (color scale gets overridden)

We think this behaviour is satisfactory and that neither solution 1 nor 2 is needed in the end.

I tried and it works great !
To sum up:

Settings of open tabs can be changed independently as they have their own store instance
Changes in any tab will change the user preferences in localStorage
A new tab will have the settings set to user preferences (i.e. the last settings set) as the store is rehydrated from the localStorage


Adding a custom model and drawing options

We are in the process of adding a custom model into Human. Seems like the model is being loaded, running and returning results and I'm now wondering what is the process for being able to draw the results ? similar to the other models.
For integrating the new models, we've followed the steps in here https://github.com/vladmandic/human/wiki/Module
In specific:

Defined the module that overrides the load and predict.
human.ts - Imported the new model and called predict
config.ts - Added our model config options
result.ts - Defined our model results and added to the main Result interface
models.ts - Added our model to the load function

Thank you !

nice!
if you want to add it to draw:
create a new module in src/draw which exports a draw function with signature
export function modelName(inCanvas: AnyCanvas, result: ObjectResult[], drawOptions?: Partial<DrawOptions>) { }

add that module to imports section in src/draw/draw.ts and re-export it
import { modelName } from './modelName';
export { modelName} from './modelName';

that's enough that you can now use it using human.draw.modelName
and if you want it to run automatically along other draw functions, add it to promise loop in function all:
    modelName(inCanvas, result.modelName, localOptions),

i'm closing the issue as its not a product issue, but feel free to continue with conversation here.

@vladmandic Thank you for the quick response. I've added the relevant methods and it's working.
I'm wondering on a different subject regarding the FPS, is there a way for me to specify the target FPS or even better the target FPS for each model ?

per-model? no.
globally? its not part of the lib as assumption is that human.detect (or other methods) are called by some other parent app so its really up to parent app to decide how often to call human.


Read/Write from a custom table

Hi Brock,
I am using MembershipReboot for user management
Things are working pretty well so far.
But I have a requirement to read and write from a custom table. I saw that you already have a custom table "SomeOtherEntity" in one of your examples, but I can't find a way to read and write to this table.
Is there an example available or can you help me with one
Thanks

That's something really outside the realm of MembershipReboot. Just use EF or whatever DB library you want.


Remove bridge-utils package installation from OSH

The repository that contains bridge-utils was removed in #750
so the installation of OSH cannot continue.
Because this package is not going to be used any more, is removed
from the installation

Let's restart the CI with deploy_osh once it fails

I thought this was still required for neutron on the nodes. I assume that with ovs  it might not be required.

Why did we need bridge-utils? AFAIK it was for OSH it might be worth checking if this breaks osh.

Why did we need bridge-utils? AFAIK it was for OSH it might be worth checking if this breaks osh.

This is being installed in the deployer, which makes no sense. It was introduced on commit number 0, so it may be a leftover from testing or something.

Can we remove more from suse_osh_deploy_packages?