Suppress errors about missing peak annotation files during study-doc only validation

Summary Change Description
Suppressed errors about missing peak annotation files when validating only the study doc.
You can test with MASTER STUDY DOC FOR TRACEBASE_exp011b3_240816.xlsx.  It produces lots of errors, but FileFromInputNotFound is no longer one of them.
Affected Issues/Pull Requests

Resolves #1169
Merges into main

Review Notes

See comments in-line.
Checklist

This pull request will be merged once the following requirements are met.  The
author and/or reviewers should uncheck any unmet requirements:

Review requirements

Minimum approvals: 1
No changes requested
All blocking issues resolved by reviewers
Specific reviewers: @add_username_here

Review period: 2 days

Associated issue/pull request requirements:

[x] All requirements in affected issues marked "resolved" are satisfied
[x] All required pull requests are merged (or none)

Basic requirements

[x] All linters pass
[x] All tests pass
[x] All conflicts resolved

Overhead requirements

[x] New/changed method tests implemented/updated (or no change)
[ ] Updated Unreleased section of changelog.md (or no change)
[x] Migrations created & committed (or no change)

I am OK with this, but why would you want to suppress this error?  Should all studies have at least 1 peak file?   Is this only in the second step of study validation, as opposed to submission (even though the edits are in submission.py)?

I am OK with this, but why would you want to suppress this error? Should all studies have at least 1 peak file? Is this only in the second step of study validation, as opposed to submission (even though the edits are in submission.py)?

And by "submission", and am thinking about loading...

I am OK with this, but why would you want to suppress this error? Should all studies have at least 1 peak file? Is this only in the second step of study validation, as opposed to submission (even though the edits are in submission.py)?

From the linked issue:

Since the validate page only accepts the Study doc, the peak annotation files are not available for processing and thus errors are buffered about missing files. This is expected behavior, however the errors are not necessary when just validating the Study doc by itself.

Thanks for the review @jcmatese!


Running it with superuser permission doesn't use the right theme

Hello!
I've tested latest version of SysmonTask (1.3.9) both normally (from desktop icon) and with superuser permission (with sudo from command line) on the latest version of Kubuntu (21.04) and I've noticed that when running with sudo the dark theme is not selected automatically like the version that I'm opening from the icon.
I'm using Breeze Dark theme that comes with Kubuntu but normally not used by default.
Could you please have a look why this this is happening ?
Or, is it possible to start the program from the desktop icon, with superuser permission (like with sudo from command line), but in a way that it doesn't request my password, but still have the dark theme and also all the necessary permissions ?

Hello!
I've tested latest version of SysmonTask (1.3.9) both normally (from desktop icon) and with superuser permission (with sudo from command line) on the latest version of Kubuntu (21.04) and I've noticed that when running with sudo the dark theme is not selected automatically like the version that I'm opening from the icon.
I'm using Breeze Dark theme that comes with Kubuntu but normally not used by default.
Could you please have a look why this this is happening ?
Or, is it possible to start the program from the desktop icon, with superuser permission (like with sudo from command line), but in a way that it doesn't request my password, but still have the dark theme and also all the necessary permissions ?

Hi,
That might be because the theme settings are not carried with the root user since both have different environments variables.
Did you try the theme setting API of sysmontask? You can find out about it in readme
Let me know if it work for you.

Can you update me regarding the issue if you still have it?

Hey, the new release is out with this bug fixed.


[Cross-Service Samples] IoT Hub => Event Hub Connection String Translation

Summary
The focus of these changes is to introduce a new sample that illustrates how to query IoT Hub for the connection string to its "built-in Event Hub endpoint" used
for sharing device telemetry.
Note: These changes do not include integration into the nightly smoke tests; this will follow as an independent unit of work.
Last Upstream Rebase
Thursday, April 16, 11:36am (EDT)
References and Related Issues

IoT Hub Connection String Translation Sample (#11072)
IoT Hub: Connection String Translator Proposal

Apologies to the folks that got looped in inadvertently here; something got very, very angry with the latest rebase and did not properly honor the local squashing.  I just did another force and will make sure this is resolved.


SHADE and CONTOUR color key edges and centers with /KEY=CENTERLAB

Reported by andrew wittenberg on 10 Dec 2015 17:50 UTC
The documentation at
[the color key in the colored sections of the key rather than at the default location at the line dividing one color from the next. The levels controls do not change for this style, only the locations of the labels.''
Now with /KEY=CENTERLAB the labels shift to the center of the color patches, and the number of color patches increases by one.  Seems almost right, but check this out.
First set up a field with values of 0.5, 1.5, 2.5 etc. in cells spanning (0,1), (1,2), (2,3) etc.:
 	NOAA/PMEL TMAP
 	FERRET v6.961 (beta)
 	Linux 2.6.32-573.8.1.el6.x86_64 64-bit - 12/09/15
 	10-Dec-15 11:36

yes? def ax/edge/x=0:10:1 xax; let a = x[gx=xax](http://ferret.pmel.noaa.gov/Ferret/documentation/users-guide/commands-reference/CONTOUR#_VPINDEXENTRY_1265]

says:

```CONTOUR/FILL/KEY=CENTERLAB```

''Labels) + 0*y[gy=1:9:1]

Now watch what CENTERLAB does:
yes? cancel view; set view ul; shade/line/lev=(0,10,2)/key/title="/KEY" a
yes? set view ur; shade/line/lev=(1,9,2)/key=centerlab/title="/KEY=CENTERLAB" a

The upper-left plot is fine; between any two contours the cell-values lie entirely within each contour interval.
But the upper-right plot with /KEY=CENTERLAB is a little strange.  The color key is misleading, since it suggests that the value of "3" sits at the midpoint of the teal-colored patch, while the plot shows that it actually sits at the lower edge.
Two ways to address this:

Interpolate between the /LEVELS values to obtain new '''edge-values''' for the contours and patch-edges; then SHADE and CONTOUR just as we always have, but using those new computed levels.  The color key would labeled at the patch-centers using the original /LEVELS values.  Or

Interpolate between the /LEVELS values to obtain new '''patch-center values''' applied as labels for the color key; then SHADE and CONTOUR just as we always have using the original /LEVELS values.

Perhaps these 2 alternatives could be added as options, e.g. something like (1) "/KEY=CENTERLAB(COMPUTE_EDGES)" and (2) "/KEY=CENTERLAB(FROM_EDGES)".  The results would look like the bottom 2 panels on the plot, generated artificially in Ferret v6.961 with:
yes? set view ll; shade/lev=(1,9,2)/key=centerlab/title="/LEV=(1,9,2)/KEY=CENTERLAB(COMPUTE_EDGES)" a; shade/ov/nolab/nokey/line/lev=(0,10,2)/key a
yes? set view lr; shade/lev=(1,9,2)/key=centerlab/title="/LEV=(0,10,2)/KEY=CENTERLAB(FROM_EDGES)" a; shade/ov/nolab/nokey/line/lev=(0,10,2)/key a

I'd suggest making (1) the default for CENTERLAB, since integer fields are probably the main application for CENTERLAB.
Migrated-From: http://dunkel.pmel.noaa.gov/trac/ferret/ticket/2335

Comment by ansley.b.manke on 10 Dec 2015 18:00 UTC
Thanks, I'll study this.  The intent here is to make a correct key for data such as "vegetation index" where the values are discrete and blue should be index 1, green is index 2, etc.

Attachment from andrew.wittenberg on 10 Dec 2015 17:51 UTC
The resulting plot.
REPLACE THIS TEXT WITH UPLOADED FILE ./attachments/TRAC_2335_GIT_1607/plot.gif

I am implementing option 1 suggested in the original report.  The effect is that the values given by the /LEVELS specification will be the numbers used to label the colors on the colorbar instead of the boundary between colors (the location of contour-lines on a color-fill contour plot).  For discrete colors in particular I think this is what is expected. So for instance to color by a flag, which may take on the values 2-5 or 9, it would be:
PLOT/VS/LEV=(2,5,1)(9)/palette=ten_by_levels  xpts, ypts, flag
Plots like the example above now looks like this -- the upper two are the same plot with differently-labeled colorbars, the lower one shows the effect of keeping the same levels spec but changing to /KEY=center
yes? def ax/edge/x=0:10:1 xax
yes? let a = x[gx=xax] + 0*y[gy=1:9:1]

yes? set v ul; shade/line/lev=(0,10,2)/key/title="/KEY/LEV=(0,10,2)" a
yes? set v ur; shade/line/lev=(1,9,2)/key=centerlab/title="/KEY=CENTERLAB/LEV=(1,9,2)" a
yes? set v ll; shade/line/lev=(0,10,2)/key=centerlab/title="/KEY=CENTERLAB/LEV=(0,10,2)" a

If FILL/LINE or SHADE/LINE is given as in these examples, the lines will always be drawn as contour lines between colors.
A new symbol is added to the automatically-generated  LEV* symbols. Symbol lev_centered_labels takes the value "on" or "off"
yes? shade/line/lev=(1,9,2)/key=centerlab/title="/KEY=CENTERLAB/LEV=(1,9,2)" a
yes? show sym lev*
LEV_TEXT = "(1,9,2)"
LEV_MIN = "0"
LEV_MAX = "10"
LEV_NUM = "5"
LEV_DEL = "2"
LEV_CENTERED_LABELS = "on"


How do I run doom-emacs --daemon on Windows 10 (work machine)

What are you trying to achieve?
I try to run doom-emacs (GNU Emacs 26.3) as a daemon on Windows 10 (work machine)
What have you tried?
I installed Emacs 26.3 on Windows 10.
I am able to start emacs.exe or runemacs.exe, but the loading time is (~14-15 sec) is horrible. I tried to run emasc --daemon and without doom was able to start and using with emacsclientw (loading time under <1 sec).
This works fine without doom:

Daemon: C:\EMACSLOCATION\emacs-26.3\bin\emacs.exe "--fg-daemon" or "--daemon"
Client: e.g: C:\EMACSLOCATION\emacs-26.3\bin\emacsclientw.exe "temp.org"

I installed fresh installation of doom without any change. After installation of doom. The daemon is able to start, but client is not able to find it:
> emacs --daemon
Starting Emacs daemon.
Doom loaded 142 packages across 29 modules in 35.573s

> emacsclientw "temp.org"

Return me error message:
Emacsclient ERROR:
emacsclientw: No socket or alternate editor. Please use:
-- server-file (or environment variable)
-- alternate-editor (...)

And also daemon does not create any files in %APPDATA%/server directory
Do I need to reconfigure config.el file ?
Additional information

This setup (daemon + client) with doom is working fine on Linux distro (Manjaro).
Emacs Server setup
problem with emacs server
EmascMSWindowsIntegration
Setting up emacsclient on ms windows

System information
λ .emacs.d\bin\doom.cmd version
Doom v2.0.9 (Emacs v26.3)
Branch: develop
Commit: a7c2cbab9042d0f19ff88efbdcf5a50e8a317035
Build date: 2020-05-12 22:40:07 -0400

Emacs 26.3
Windows 10  Version 10.0.17763 Build 17763
HOME is setup it to %APPDATA%

emacs   version    26.3
        features   XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS THREADS LCMS2
        build      aug 29, 2019
        buildopts  (--without-dbus --host=x86_64-w64-mingw32 --without-compress-install 'CFLAGS=-O2 -static -g3')
        windowsys  w32
        daemonp    server-running
doom    version    2.0.9
        build      grafted, HEAD -> develop, origin/develop, origin/HEAD a7c2cbab 2020-05-12 22:40:07 -0400
        dir        ~/.doom.d/
system  type       windows-nt
        config     x86_64-w64-mingw32
        shell      C:/MYLOCATION/Emacs/emacs-26.3/libexec/emacs/26.3/x86_64-w64-mingw32/cmdproxy.exe
        uname      n/a
config  envfile    envvar-file
        elc-files  0
        modules    (:completion company ivy :ui doom doom-dashboard doom-quit hl-todo modeline ophints (popup +defaults) vc-gutter vi-tilde-fringe workspaces :editor (evil +everywhere) file-templates fold snippets :emacs dired electric undo vc :checkers syntax :tools (eval +overlay) lookup magit :lang emacs-lisp markdown org sh :config (default +bindings +smartparens))
        packages   (n/a)
        unpin      (n/a)
        elpa       (n/a)

Thanks for advice

Perhaps this can help you: https://github.com/earvingad/configfiles/blob/master/emacs/DoomEmacsWindows.org

Very good tutorial. It works great. The main issue probably was setup PATH for home directory and also for EMACS_SERVER_FILE the file path C:\Users\USERNAME.emacs.d.local\cache\server\server.
Thanks for help. That tutorial should be in wiki.


Add onended callback to p5.SoundFile.prototype.play

See this thread on the Processing forum.  It seems like a reasonable suggestion to allow passing of a callback to the play method, that gets called when the sound file finishes playing.
I just tested the feasibility of this locally (simply replacing the separate arguments in p5.SoundFile.prototype.play with an object) and it seems relatively trivial.  Of course you may well have deliberately chosen to separate the arguments.  I don't know what's considered best practice with argument overloading, but presumably you could just check if the last arg is a function and assume a callback and then call that from this.bufferSourceNode.onended...

Great suggestion, @blindfish3! Thank you for looking into it and bringing the issue here.
I'd lean towards adding a separate method to schedule this callback, like .onended(myCallback). I like the idea of replacing arguments with an arguments object, but I don't think we've done that in p5. A separate function is similar to the way p5.dom handles events.
Let me know if you'd like to work on this, or I can, and we can run it by the Processing forum for feedback

Using objects as arguments seems a fairly standard technique for dealing with large numbers of method arguments in JS - e.g. it makes it easy to override one default without having to provide all those that come before it in the argument list (and also gets around the fact that JS only supports overloading the number of args and not by arg type).
This is one reason I feel a little uneasy with p5js's apparent attempts to duplicate Processing syntax: it means you're missing opportunities to implement good practice afforded by JS's more flexible approach to Object creation.  Anyway that's a separate topic for discussion (but one well worth having)...
If I had the time I'd commit to implementing this feature; but in practice I suspect it may happen more quickly if it's done at your end.  My 2 year old daughter's demands mean that the time I have for personal dev work is sporadic and very limited :/

ok! I've got it working, and this will be a very useful feature.
I think you're right about the options object, and other opportunities to take introduce p5 users to JS rather than just sticking to the Processing syntax. It would have a lot of benefits.
I'd want to do this as part of a larger effort so that it's consistent with other p5.sound methods, and ideally with p5.js in general.
Let's continue the discussion on the p5 github.

We need a way to remove the callback. It is holding onto my sound object if I try to remove my sketch in instance mode before the sound has completed.


Deprecate on_before_accelerator_backend_setup callback hook

Fixes #11559
What does this PR do?

Fixes #<issue_number>
Does your PR introduce any breaking changes? If yes, please list them.

Before submitting

[x] Was this discussed/approved via a GitHub issue? (not for typos and docs)
[x] Did you read the contributor guideline, Pull Request section?
[x] Did you make sure your PR does only one thing, instead of bundling different changes together?
[ ] Did you make sure to update the documentation with your changes? (if necessary)
[ ] Did you write any new necessary tests? (not for typos and docs)
[ ] Did you verify new and existing tests pass locally with your changes?
[ ] Did you list all the breaking changes introduced by this pull request?
[ ] Did you update the CHANGELOG? (not for typos, docs, test updates, or internal minor changes/refactorings)

PR review
Anyone in the community is welcome to review the PR.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:

[ ] Is this pull request ready for review? (if not, please submit in draft mode)
[ ] Check that all items from Before submitting are resolved
[ ] Make sure the title is self-explanatory and the description concisely explains the PR
[ ] Add labels and milestones (and optionally projects) to the PR so it can be classified

Did you have fun?
Make sure you had fun coding 🙃

@ananthsub this is part 2 of this PR. Does it look okay?

@krishnakalyan3 currently this PR is only changing the changelog. It should be deprecating the hook, like in https://github.com/PyTorchLightning/pytorch-lightning/pull/10940
Please also update the title to be the same as #11559

The title and description of this PR don't match the contents - you seem to be removing the on_pretrain_routine_start hooks

@daniellepintz You are right. Now, this PR only contains the change log.

Part 2/2 #11550

Thanks @rohitgr7


Problem with Certificate Authorization

Problem with Certificate Authorization on v <IP_ADDRESS>
I used to work on V<IP_ADDRESS>-beta1 but then had problems on renewals so I installed <IP_ADDRESS>.  So I am following this procedure:

open cmd line in Administrator mode
N = create a new certificate
1 = Single Binding of an IIS site
Select site 141
I select the Authorization method

(alternative Authorization methods listed below)

5.1) if i click 1 = [tls-sni-01] Use IIS as endpoint

 [DBUG] Send POST request to https://acme-v01.api.letsencrypt.org/acme/new-authz
 [DBUG] AcmeWebException: AcmeWebException {WebException=WebException {Status=ProtocolError, Response=HttpWebResponse {I
sMutuallyAuthenticated="The property accessor threw an exception: ObjectDisposedException", Cookies="The property access
or threw an exception: ObjectDisposedException", Headers="The property accessor threw an exception: ObjectDisposedExcept
ion", SupportsHeaders=True, ContentLength="The property accessor threw an exception: ObjectDisposedException", ContentEn
coding="The property accessor threw an exception: ObjectDisposedException", ContentType="The property accessor threw an
exception: ObjectDisposedException", CharacterSet="The property accessor threw an exception: ObjectDisposedException", S
erver="The property accessor threw an exception: ObjectDisposedException", LastModified="The property accessor threw an
exception: ObjectDisposedException", StatusCode="The property accessor threw an exception: ObjectDisposedException", Sta
tusDescription="The property accessor threw an exception: ObjectDisposedException", ProtocolVersion="The property access
or threw an exception: ObjectDisposedException", ResponseUri="The property accessor threw an exception: ObjectDisposedEx
ception", Method="The property accessor threw an exception: ObjectDisposedException", IsFromCache=False}, Message="The r
emote server returned an error: (400) Bad Request.", Data=[], InnerException=null, TargetSite=System.Net.WebResponse Get
Response(), StackTrace="   at System.Net.HttpWebRequest.GetResponse()\r\n   at ACMESharp.AcmeClient.RequestHttpPost(Uri
uri, Object message)", HelpLink=null, Source="System", HResult=-2146233079}, Response=AcmeHttpResponse {StatusCode=BadRe
quest, Headers=["Boulder-Requester", "Replay-Nonce", "Pragma", "Connection", "Content-Length", "Cache-Control", "Content
-Type", "Date", "Expires", "Server"], Links=[], RawContent=System.Byte[], ContentAsString="{\n  \"type\": \"urn:acme:err
or:badNonce\",\n  \"detail\": \"JWS has invalid anti-replay nonce 2Is7hcfhw8tZwokxM28_382jz0xT5TuYy09s4Vl29Rk\",\n  \"st
atus\": 400\n}", IsError=True, Error=WebException {Status=ProtocolError, Response=HttpWebResponse {IsMutuallyAuthenticat
ed="The property accessor threw an exception: ObjectDisposedException", Cookies="The property accessor threw an exceptio
n: ObjectDisposedException", Headers="The property accessor threw an exception: ObjectDisposedException", SupportsHeader
s=True, ContentLength="The property accessor threw an exception: ObjectDisposedException", ContentEncoding="The property
 accessor threw an exception: ObjectDisposedException", ContentType="The property accessor threw an exception: ObjectDis
posedException", CharacterSet="The property accessor threw an exception: ObjectDisposedException", Server="The property
accessor threw an exception: ObjectDisposedException", LastModified="The property accessor threw an exception: ObjectDis
posedException", StatusCode="The property accessor threw an exception: ObjectDisposedException", StatusDescription="The
property accessor threw an exception: ObjectDisposedException", ProtocolVersion="The property accessor threw an exceptio
n: ObjectDisposedException", ResponseUri="The property accessor threw an exception: ObjectDisposedException", Method="Th
e property accessor threw an exception: ObjectDisposedException", IsFromCache=False}, Data=[], Message="The remote serve
r returned an error: (400) Bad Request.", InnerException=null, TargetSite=System.Net.WebResponse GetResponse(), StackTra
ce="   at System.Net.HttpWebRequest.GetResponse()\r\n   at ACMESharp.AcmeClient.RequestHttpPost(Uri uri, Object message)
", HelpLink=null, Source="System", HResult=-2146233079}, ProblemDetail=ProblemDetailResponse {Type="urn:acme:error:badNo
nce", Title=null, Status=400, Detail="JWS has invalid anti-replay nonce 2Is7hcfhw8tZwokxM28_382jz0xT5TuYy09s4Vl29Rk", In
stance=null, OrignalContent="{\n  \"type\": \"urn:acme:error:badNonce\",\n  \"detail\": \"JWS has invalid anti-replay no
nce 2Is7hcfhw8tZwokxM28_382jz0xT5TuYy09s4Vl29Rk\",\n  \"status\": 400\n}"}}, Message="Unexpected error\n +Response from
server:\n\t+ Code: BadRequest\n\t+ Content: {\n  \"type\": \"urn:acme:error:badNonce\",\n  \"detail\": \"JWS has invalid
 anti-replay nonce 2Is7hcfhw8tZwokxM28_382jz0xT5TuYy09s4Vl29Rk\",\n  \"status\": 400\n}", Data=[DictionaryEntry {Key="Pr
oblemDetail", Value="{\n  \"type\": \"urn:acme:error:badNonce\",\n  \"detail\": \"JWS has invalid anti-replay nonce 2Is7
hcfhw8tZwokxM28_382jz0xT5TuYy09s4Vl29Rk\",\n  \"status\": 400\n}"}], InnerException=WebException {Status=ProtocolError,
Response=HttpWebResponse {IsMutuallyAuthenticated="The property accessor threw an exception: ObjectDisposedException", C
ookies="The property accessor threw an exception: ObjectDisposedException", Headers="The property accessor threw an exce
ption: ObjectDisposedException", SupportsHeaders=True, ContentLength="The property accessor threw an exception: ObjectDi
sposedException", ContentEncoding="The property accessor threw an exception: ObjectDisposedException", ContentType="The
property accessor threw an exception: ObjectDisposedException", CharacterSet="The property accessor threw an exception:
ObjectDisposedException", Server="The property accessor threw an exception: ObjectDisposedException", LastModified="The
property accessor threw an exception: ObjectDisposedException", StatusCode="The property accessor threw an exception: Ob
jectDisposedException", StatusDescription="The property accessor threw an exception: ObjectDisposedException", ProtocolV
ersion="The property accessor threw an exception: ObjectDisposedException", ResponseUri="The property accessor threw an
exception: ObjectDisposedException", Method="The property accessor threw an exception: ObjectDisposedException", IsFromC
ache=False}, Data=[], Message="The remote server returned an error: (400) Bad Request.", InnerException=null, TargetSite
=System.Net.WebResponse GetResponse(), StackTrace="   at System.Net.HttpWebRequest.GetResponse()\r\n   at ACMESharp.Acme
Client.RequestHttpPost(Uri uri, Object message)", HelpLink=null, Source="System", HResult=-2146233079}, TargetSite=ACMES
harp.AuthorizationState AuthorizeIdentifier(System.String), StackTrace="   at ACMESharp.AcmeClient.AuthorizeIdentifier(S
tring dnsIdentifier)\r\n   at LetsEncrypt.ACME.Simple.Program.Authorize(Target target)\r\n   at LetsEncrypt.ACME.Simple.
Program.Auto(Target binding)\r\n   at LetsEncrypt.ACME.Simple.Program.CreateNewCertificate()\r\n   at LetsEncrypt.ACME.S
imple.Program.Main(String[] args)", HelpLink=null, Source="ACMESharp", HResult=-2146233088}
 [EROR] AcmeWebException: Unexpected error
 +Response from server:
        + Code: BadRequest
        + Content: {
  "type": "urn:acme:error:badNonce",
  "detail": "JWS has invalid anti-replay nonce 2Is7hcfhw8tZwokxM28_382jz0xT5TuYy09s4Vl29Rk",
  "status": 400
}
 [DBUG] Loading signer from C:\Users\evan.camilleri\AppData\Roaming\letsencrypt-win-simple\httpsacme-v01.api.letsencrypt
.org\Signer
 [DBUG] Getting AcmeServerDirectory
 [DBUG] Send GET request to https://acme-v01.api.letsencrypt.org/directory
 [DBUG] Loading registration from C:\Users\evan.camilleri\AppData\Roaming\letsencrypt-win-simple\httpsacme-v01.api.letse
ncrypt.org\Registration
 [DBUG] Certificate folder: C:\Users\evan.camilleri\AppData\Roaming\letsencrypt-win-simple\httpsacme-v01.api.letsencrypt
.org
 [DBUG] Certificate store: WebHosting
 [DBUG] Renewal period: 60

another time this
 [DBUG] Send POST request to https://acme-v01.api.letsencrypt.org/acme/new-authz
 [INFO] Authorizing mfcs.domain.com using tls-sni-01 validation (IIS)
 [INFO] Installing certificate in the certificate store
 [DBUG] Opened certificate store WebHosting
 [INFO] Adding certificate 11e370afb958bb6f575013c6de8d9eb9.695bdccbf83296f13f28de311ca1bb83.acme.invalid to store WebHo
sting
 [VERB] CN=11e370afb958bb6f575013c6de8d9eb9.695bdccbf83296f13f28de311ca1bb83.acme.invalid - CN=11e370afb958bb6f575013c6d
e8d9eb9.695bdccbf83296f13f28de311ca1bb83.acme.invalid (0DC4E2A636FDBA2A2AAE3287D5D12345B0C2AC1F)
 [DBUG] Closing certificate stores
 [INFO] Adding new https binding 11e370afb958bb6f575013c6de8d9eb9.695bdccbf83296f13f28de311ca1bb83.acme.invalid:443
 [WARN] No HTTP binding for 11e370afb958bb6f575013c6de8d9eb9.695bdccbf83296f13f28de311ca1bb83.acme.invalid on W5_MFCS
 [DBUG] Submitting answer
 [DBUG] Send POST request to https://acme-v01.api.letsencrypt.org/acme/challenge/vXSXbutDiaI19nbBgxKO-54wbcJE-jFzWWo9AoC
16GI/2613333205
 [DBUG] Refreshing authorization
 [DBUG] Send GET request to https://acme-v01.api.letsencrypt.org/acme/authz/vXSXbutDiaI19nbBgxKO-54wbcJE-jFzWWo9AoC16GI
 [INFO] Authorization result: invalid
 [INFO] Uninstalling certificate from the certificate store
 [DBUG] Opened certificate store WebHosting
 [INFO] Removing certificate 11e370afb958bb6f575013c6de8d9eb9.695bdccbf83296f13f28de311ca1bb83.acme.invalid from store W
ebHosting
 [DBUG] Closing certificate store
 [EROR] ACME server reported type urn:acme:error:connection
 [EROR] ACME server reported detail Connection reset by peer
 [EROR] ACME server reported status 400
 [EROR] Create certificate [IIS] mfcs.domain.com (SiteId 85) [ @ C:\COMPANY\Applications\W5_MFCS\WEB\WEB-root] failed
 [DBUG] Loading signer from C:\Users\evan.camilleri\AppData\Roaming\letsencrypt-win-simple\httpsacme-v01.api.letsencrypt
.org\Signer
 [DBUG] Getting AcmeServerDirectory
 [DBUG] Send GET request to https://acme-v01.api.letsencrypt.org/directory
 [DBUG] Loading registration from C:\Users\evan.camilleri\AppData\Roaming\letsencrypt-win-simple\httpsacme-v01.api.letse
ncrypt.org\Registration
 [DBUG] Certificate folder: C:\Users\evan.camilleri\AppData\Roaming\letsencrypt-win-simple\httpsacme-v01.api.letsencrypt
.org
 [DBUG] Certificate store: WebHosting
 [DBUG] Renewal period: 60

5.2) if i click 4 = [http-01] Create temporary application in IIS (recommended)

 [DBUG] Send POST request to https://acme-v01.api.letsencrypt.org/acme/new-authz
 [INFO] Authorizing mfcs.domain.com using http-01 validation (IIS)
 [DBUG] Writing web.config
 [INFO] Answer should now be browsable at http://mfcs.domain.com/.well-known/acme-challenge/Z9w8BTaQgEV0m4uGCUKPS_tx1ss
sGrUjrx5Xd4Exb3w
 [DBUG] Submitting answer
 [DBUG] Send POST request to https://acme-v01.api.letsencrypt.org/acme/challenge/aVslxtRSqwjJYPbhu5QPtst4gZZUYu3l_IondYX
h0E8/2613446895
 [DBUG] Refreshing authorization
 [DBUG] Send GET request to https://acme-v01.api.letsencrypt.org/acme/authz/aVslxtRSqwjJYPbhu5QPtst4gZZUYu3l_IondYXh0E8
 [INFO] Authorization result: invalid
 [DBUG] Deleting web.config
 [DBUG] Deleting answer
 [DBUG] Additional files or folders exist in C:\COMPANY\Applications\W5_MFCS\WEB\WEB-root\.well-known, not deleting.
 [EROR] ACME server reported type urn:acme:error:unauthorized
 [EROR] ACME server reported detail Invalid response from http://mfcs.domain.com/.well-known/acme-challenge/Z9w8BTaQgEV
0m4uGCUKPS_tx1sssGrUjrx5Xd4Exb3w: "<!DOCTYPE html>
<html>
    <head>
        <title>Configuration Error</title>
        <meta name="viewport" content="width=de"
 [EROR] ACME server reported status 403
 [EROR] Create certificate [IIS] mfcs.domain.com (SiteId 85) [ @ C:\COMPANY\Applications\W5_MFCS\WEB\WEB-root] failed
 [DBUG] Loading signer from C:\Users\evan.camilleri\AppData\Roaming\letsencrypt-win-simple\httpsacme-v01.api.letsencrypt
.org\Signer
 [DBUG] Getting AcmeServerDirectory
 [DBUG] Send GET request to https://acme-v01.api.letsencrypt.org/directory
 [DBUG] Loading registration from C:\Users\evan.camilleri\AppData\Roaming\letsencrypt-win-simple\httpsacme-v01.api.letse
ncrypt.org\Registration
 [DBUG] Certificate folder: C:\Users\evan.camilleri\AppData\Roaming\letsencrypt-win-simple\httpsacme-v01.api.letsencrypt
.org
 [DBUG] Certificate store: WebHosting
 [DBUG] Renewal period: 60

Client version: = <IP_ADDRESS>
Windows version:  = Windows Server 2012 R2

First one: "JWS has invalid anti-replay nonce" - this happens when you spend too much time in the main menu. There seems to be some kind of timeout period where the client is supposed to refresh the nonce but doesn't. I believe this is fixed in 1.9.8.
Second one: "ACME server reported detail Connection reset by peer" - seems like Let's Encrypt is unable to set up a TLS connection with your web server. This might be due to TLS protocol/cipher settings. Maybe #639 provides some hint?
Third one: I'd be very interested to know what causes the 403 exception. Can you use --test mode to freeze the process at the validation stage and figure out what should be different in IIS (in terms of modules, security, etc.) so that we can improve this?

Third one, it has to do with the original site (which works correctly when not in '/.well-known' folder)
Server Error in '/.well-known' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Could not load file or assembly 'DevExpress.Web.ASPxTreeList.v16.2, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b88d1754d700e49a' or one of its dependencies. The system cannot find the file specified.
Source Error:
An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Source File: C:\COMPANY\Applications\W5_SITE\WEB\WEB-root\web.config    Line: 107
Assembly Load Trace: The following information can be helpful to determine why the assembly 'DevExpress.Web.ASPxTreeList.v16.2, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b88d1754d700e49a' could not be loaded.
=== Pre-bind state information ===
LOG: DisplayName = DevExpress.Web.ASPxTreeList.v16.2, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b88d1754d700e49a
(Fully-specified)
LOG: Appbase = file:///C:/COMPANY/Applications/W5_SITE/WEB/WEB-root/.well-known/
LOG: Initial PrivatePath = C:\COMPANY\Applications\W5_SITE\WEB\WEB-root.well-known\bin
Calling assembly : (Unknown).
LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Post-policy reference: DevExpress.Web.ASPxTreeList.v16.2, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b88d1754d700e49a
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/.well-known/cc51f2a1/24019a93/DevExpress.Web.ASPxTreeList.v16.2.DLL.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/.well-known/cc51f2a1/24019a93/DevExpress.Web.ASPxTreeList.v16.2/DevExpress.Web.ASPxTreeList.v16.2.DLL.
LOG: Attempting download of new URL file:///C:/COMPANY/Applications/W5_SITE/WEB/WEB-root/.well-known/bin/DevExpress.Web.ASPxTreeList.v16.2.DLL.
LOG: Attempting download of new URL file:///C:/COMPANY/Applications/W5_SITE/WEB/WEB-root/.well-known/bin/DevExpress.Web.ASPxTreeList.v16.2/DevExpress.Web.ASPxTreeList.v16.2.DLL.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/.well-known/cc51f2a1/24019a93/DevExpress.Web.ASPxTreeList.v16.2.EXE.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/.well-known/cc51f2a1/24019a93/DevExpress.Web.ASPxTreeList.v16.2/DevExpress.Web.ASPxTreeList.v16.2.EXE.
LOG: Attempting download of new URL file:///C:/COMPANY/Applications/W5_SITE/WEB/WEB-root/.well-known/bin/DevExpress.Web.ASPxTreeList.v16.2.EXE.
LOG: Attempting download of new URL file:///C:/COMPANY/Applications/W5_SITE/WEB/WEB-root/.well-known/bin/DevExpress.Web.ASPxTreeList.v16.2/DevExpress.Web.ASPxTreeList.v16.2.EXE.
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.1590.0

Can you try the IIS mode in beta4?

thanks - worked with beta6
(sorry for delay in answering)


Add a job browser

Changes
On response at the idea : "https://github.com/halcyon-tech/vscode-ibmi/issues/304"
Add the posibilities to a job :

End
Change
Hold
Release
Display Job properties / Joblog

Checklist

[X] have tested my change
[ ] updated relevant documentation
[X] Remove any/all console.logs I added
[ ] eslint is not complaining
[ ] for feature PRs: PR only includes one feature enhancement.

@worksofliam I make the adaptation into this project.

We have decided that we won't be including an object browser in this extension. Sorry for the trouble!


Fix bug in keyed fragment example

I tried this out in my editor and without wrapping the Fragment in a return statement, the Fragment never renders in the DOM

@katiejenn
if you want to contribute in this repo you need to sign up for CLA agreement check here

this won't work. you probably wrote item => { rather than item => ( like in the example.

specifically, this works:
      {props.items.map(item => ( // <--- parenthesis
        <React.Fragment key={item.id}>

this also works:
      {props.items.map(item => { // <--- curly brace
        return (
          <React.Fragment key={item.id}>

but this (as in this PR) won't work:
      {props.items.map(item => (
        return (
          <React.Fragment key={item.id}>

i hope this helps! sorry for the confusion.


Research: Offline transactions support RFC

Lock funds potentially?
More research needed.

Maybe Irina can help with requirements?


Night Mode Lag

Description
There's a lag in the main menu's transition from night to day mode.
How To Reproduce
Steps to reproduce the behaviour:

Go to 'main menu'
Click on 'night mode' top left button
You don't need to scroll
See error

Expected Behaviour
There should be no lag.
Temporary Fix
Texture loading.

fixed in pr #653


Document release checklist

Resolve #110

@iamsamirzon, can you 👀

@iamsamirzon, can you 👀

LGTM. While obvious, but do we need to add a step in here to open and close an issue to track this release checklist. For example, for alpha-1 release we created three issues one each in notation, notation-go-lib and notary-project repos.

Thanks @iamsamirzon , that’s a great item to add for clarity.


Add NetworkInfo, configuration classes and tests

This adds NetworkInfo, NetworkConfiguration, StandardNetworkConfiguration and SubnetNetworkConfiguration classes and related unit tests.
eb36f92 also applies minor style fixes to SubnetworkInfo and its test.

Coverage increased (+0.09%) to 83.345% when pulling 23a852f9fdd98f69c2a24bbd8eb052d1d7edd1c2 on mziccard:compute-network into d19f7c608d177296e1c4a84442f87aaa6a18a285 on GoogleCloudPlatform:compute-alpha.


IE9 Routing

Hiya,
I have html5-history-api on my meteor platform. Currently the entire site is password protected with the exception of one page (not the route (/) page). When i try to load up that page in ie9 it adds a /#/ between the page
i.e http://siteurl.com/change-password becomes http://siteurl.com/#/change-password
Due to that the system must be assuming its in the route and because of that it sees the user isn't logged in and prompts them for their login which it shouldn't. Is there any way around this issue?

Hi,
I'm not exactly clear about the issue. Sorry for that.
Could you describe more or build a kind of sample repo. Or may be a little screencast.


use_effect cleanup with use_state

Scenario: We have a component with a use_effect with a cleanup function.
When the component unmounts, we want the cleanup function to do something with the current use_state of the component.
But the current use_state is not available to the cleanup function, because the cleanup function was closed over the use_state variables when the use_effect was last called.

If we have a use_effect that always runs on every render, then the cleanup function will be closed on the latest use_state variables.
But currently it's hard to make a use_effect that always runs. We could change use_effect so that if the deps are None then the effect always runs. We could default deps to None. That is how React's useEffect works. https://react.dev/reference/react/useEffect#parameters

use_effect always runs with deps None https://github.com/pyedifice/pyedifice/commit/0967cdfbffdb1caa7980325b37ca693cc359a068

Hang on this won't give us an unmount cleanup function because with deps None the cleanup function will run on every render.

I guess React has the same problem https://stackoverflow.com/questions/68124694/useeffect-cleanup-on-unmount-with-dependencies

I wrote and tested this Hook and it works. I'm thinking maybe I should add this to Edifice.
def use_unmount(cleanup: Callable[[], None]):
    """
    When component unmounts, call the :code:`cleanup` function with the latest
    local state from :func:`use_state` Hooks.

    This Hook solves the problem of using :func:`use_effect` with constant
    deps to run a :code:`cleanup`
    function when a component unmounts. If the :func:`use_effect` deps
    are constant so that the :code:`cleanup` function only runs once, then the
    :code:`cleanup` function will not have a closure on the latest state.

    Example::

        x, set_x = ed.use_state(0)

        def unmount_cleanup_x():
            print(f"At unmount, the value of x is {x}")

        use_unmount(unmount_cleanup_x, [x])

    """
    internal_mutable, _ = ed.use_state(cast(list[Callable[[],None]], []))

    # Always re-bind the cleanup function closed on the latest state
    def bind_cleanup():
        if len(internal_mutable) == 0:
            internal_mutable.append(cleanup)
        else:
          internal_mutable[0] = cleanup
    ed.use_effect(bind_cleanup, None)

    # This unmount function is called when the component unmounts
    def unmount():
        def internal_cleanup():
            internal_mutable[0]()
        return internal_cleanup
    ed.use_effect(unmount, [])

Maybe use_unmount should take a deps so it can be used to clean up things other than components.

Published as use_effect_final in #134


Fixed # 27787 -- Raise CommandError on unrecognized option

This commit is not complete.
There are some calls to call_command, where hidden options are passed for internal use.
For e.g. - core/management/commands/flush.py
# The following are stealth options used by Django's internals.
reset_sequences = options.get('reset_sequences', True)
allow_cascade = options.get('allow_cascade', False)
inhibit_post_migrate = options.get('inhibit_post_migrate', False)
I am not sure, how to handle these cases.

We might add a private_options = () attribute to Command to allow other arguments not defined by the parsers.

@timgraham I like that private_options approach. I suggest we allow but don't mention them in the TypeError raised on disallowed kwargs.

@timgraham In that case, the private_options are added for each command in their own class, or all the private commands being used be put in BaseCommand.private_options ?

@yahzaa pretty sure you want to add this for each and only commands that require it.

I'm not sure if you're doing it intentionally, but going forward, please try to update the existing pull request rather than creating a new one for each set of revisions.


Make deployment detector show deployments (failed and succeeded) across multiple stamps for a single ASE

Today if I try to search for 4blog in ASE Lens
I will get a not found because the environment currently doesn't exist in geomaster. I have a work item for this so that we can investigate issues in failed deployed or deleted hosting environments. #544
Next thing is that if we look at the georegionservice tables, we have multiple rows of data for the same hosting environment name and that's because the environments table holds data for past deleted ASEs as well as currently existing ASEs.
The difference between each row of data is that the public host or the ugly name for the ASE are all different.
Therefore, similar to the UI for selecting a site that exists in multiple stamps, create a selector for an ASE and only show ASE that currently exists or have been deleted within the past 30 days.

Decided to not use selector. Since we accept AppLens accepts ASE friendly name as the input it makes sense to show all deployments (despite different stamp names for each deployment) for that ASE.


Request. Binary release for Windows.

Actual.

For Windows you can use GoodByeDPI.

For Windows you can use GoodByeDPI.

Okay i will add the windows' binary release for the next release

Done


[Bug]: sync: remote repo doesn't support _catalog

zot version
v2.0.0-rc7
Describe the bug
When mirroring k8s registry, the logs are full of errors like this:
{"level":"info","goroutine":66,"caller":"zotregistry.io/zot/pkg/extensions/sync/service.go:441","time":"2023-12-10T15:56:08.508935531Z","message":"getting available client"}
{"level":"error","errorType":"*errors.errorString","remote registry":"https://registry.k8s.io","error":"_catalog is not supported\n","goroutine":66,"caller":"zotregistry.io/zot/pkg/extensions/sync/service.go:187","time":"2023-12-10T15:56:08.55788001Z","message":"error while getting repositories from remote registry"}
{"level":"error","component":"scheduler","error":"_catalog is not supported\n","goroutine":66,"caller":"zotregistry.io/zot/pkg/scheduler/scheduler.go:311","time":"2023-12-10T15:56:08.558002147Z","message":"scheduler: error while executing generator"}

registry.k8s.io intentionally doesn't support GET v2/_catalog call
$ curl -L -XGET https://registry.k8s.io/v2/_catalog
_catalog is not supported

see https://github.com/kubernetes/registry.k8s.io/pull/164
To reproduce
  extensions:
    sync:
      enable: true
      registries:
        - urls:
            - https://registry.k8s.io
          onDemand: true
          maxRetries: 3
          retryDelay: 5m
          pollInterval: 6h
          tlsVerify: true

Expected behavior
Silently ignore unsupported call (or add option to ignore fetching _catalog)
Screenshots
No response
Additional context
No response

Hi @deric.
Please see https://github.com/project-zot/zot/issues/1283.
In short we can sync from registry.k8s.io, but only with onDemand, as we need the _catalog call for periodic sync.
Can you try removing the pollInterval setting from your config?
Thanks,

@andaaron Will do, thanks for quick response!


This article has been withdrawn. Please delete this page.

Description
This article has been withdrawn at 2024 /3 / 22 09:09:45 UTC (1 KB). Please delete this page. This page influenced my article to be republished
(Optional:) Please add any files, screenshots, or other information here.
No response
(Required) What is this issue most closely related to? Select one.
Other
Internal issue ID
691882ff-a4db-4e8b-971c-ffa79c2c553a
Paper URL
https://arxiv.org/html/2401.10519v1
Browser
Chrome/<IP_ADDRESS>
Device Type
Android

Only v2 of this article has been withdrawn. The first version is still available on arXiv, so this is as intended.


[SPARK-36660][SQL] Add cot as Scala and Python functions

What changes were proposed in this pull request?

Add cotangent support by Dataframe operations (e.g. df.select(cot($"col"))).
Why are the changes needed?

Cotangent has been supported by Spark SQL since 2.3.0 but it cannot be called by Dataframe operations.
Does this PR introduce any user-facing change?

Yes, users can now call the cotangent function by Dataframe operations.
How was this patch tested?

unit tests.

cc @wangyum

Can one of the admins verify this patch?

cc @HyukjinKwon

ok to test

I am okay with this.
cc @zero323, @WeichenXu123 and @srowen FYI

Test build #142969 has started for PR 33906 at commit ee170d6.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/47469/

Test build #142972 has started for PR 33906 at commit c142527.

BTW noticed that cosecant and secant are missing. Though they are just the reciprocals of sin and cos, I feel a bit odd that only cot is supported.

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/47469/

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/47473/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/47469/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/47473/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/47473/

The arguments here are the same as for SPARK-33061 (#29938). so if we've added those, this one should be fine as well.

Test build #142969 has finished for PR 33906 at commit ee170d6.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/142969/

Test build #142972 has finished for PR 33906 at commit c142527.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/142972/

Can one of the admins verify this patch?

Test build #143006 has started for PR 33906 at commit a4ec1e1.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/47508/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/47508/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/47508/

Test build #143006 has finished for PR 33906 at commit a4ec1e1.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/143006/

Merged to master.

I mentioned before but how about implementing SEC/CSC? I believe they can be used as much as COT.

I am fine with them.

Thank you. I'll post the new ticket and start working on them.

We need to change python/docs/source/reference/pyspark.sql.rst for cot right?

Yup

Thank you, I just added to it.


Change everything to CCResponse Objects

start after #21 is done
every endpoint should return a CCResponse
The Response Objects returned by the Resources at the moment simply return okay no matter what happens in the backend. When for example a set or deletion fails for some reason the Response Object should Obviously not be okay. The way to do this is not through boolean returns but by checking values and throwing exceptions and catching those (or just the ones produced by numberformats or whatever) in the Ressource and converting them to Response.status() codes
There also is the option to override the chaotic default exceptions thrown by quarkus to get ccExceptions for things that are automatically caught by Quarkus.

seems good


⚠ Bofrost.es has degraded performance

In dc14e3f, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 1659 ms

Resolved: Bofrost.es performance has improved in e2f0180 after 9 minutes.

Resolved: Bofrost.es performance has improved in e2f0180 after 9 minutes.


Issue #000 fix: Handle redis connection resource closing gracefully

RedisPool needs to be closed when resetConnection is called.
Use java try-with-resources while obtaining connection from pool.

Closing this PR as it was raised against an incorrect branch.


Update media-services-manage-live-encoder-enabled-channels.md

Hi @Juliako, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

It looks like you're working at Microsoft (Juliako). If you're full-time, we DON'T require a contribution license agreement.

If you are a vendor, or work for Microsoft Open Technologies, DO please sign the electronic contribution license agreement. It will take 2 minutes and there's no faxing! https://cla.azure.com.

TTYL, AZPRBOT;


flyway command line option -X does not show insert / update / delete counts.

This is one of the show stopper for us to implement on many of our enterprise level critical app.
As it does for failed migrations ( stmt executions), Flyway needs to provide feedback , like, # of rows updated/inserted/deleted even
successful stmt executions for verification by developers. This will help developers to check their DMLs exactly executed as they wanted. Also
flyway could provide way for returning result set for 'select' Queries and 'dbms_output' procedure output.
-- flywaytest db is running on <IP_ADDRESS> host with oracle 11g
-- as SAMPLE user create a test table.
create table employees ( i int, name varchar2(10), instime date);
-- sample file has 1 create stmt, 3 insert stmts, 2 update stmts , 1 delete stmts
insert into employees values (1, 'test1', sysdate);
insert into employees values (2, 'test2', sysdate);
insert into employees values (3, 'test3', sysdate);
commit;
update employees set i=4 where name='test3';
update employees set 1=5 where name='test1';
commit;
delete from employees where i=2;
commit;
-- using command line option with oracle 11g
--flyway conf file. flywaytest db is running on <IP_ADDRESS>.
admin$ cat conf/flyway.conf
flyway.url=jdbc:oracle:thin:@//<IP_ADDRESS>:1800/flywaytest
flyway.user=SAMPLE
flyway.password=ampletest
flyway.sqlMigrationPrefix=1215
flyway.sqlMigrationSuffix=.sql
-- do flyway baseline w/ default version and discription
admin$ ./flyway baseline
admin$ ./flyway -X migrate
<<< debug mode output wont show # rows inserted / updated / deleted. >>>
from attached image, we can see there are 3 insert, 2 update and 1 delete stmts successfully executed. But flyway doesn't show # rows
inserted/updated/deleted even we have commit in between.

Duplicate of #1174


RFC: Handling different spool weights for the same filament.

Hey there Donkie!
It's refreshing to finally see some real effort being put into a centralized database, I have been waiting for this for a long, long time.
I manage a 3D printing research lab and have access to and can contribute hundreds of spools from tens of manufacturers.
While working on my first pull request to add Formfutura filaments, I remembered that they sometimes sell different spools for the same filament and weight product.
As also seen in their technical spool information, they offer cardboard and plastic variants for the same product, each with different spool weights.
For example, the cardboard 2300g spool weighs ~265g, while the plastic 2300g one weighs ~600g.
I would like to hear opinions and suggestions on how to best handle such cases, as I've seen a steady rise in manufacturers providing cardboard spools as an eco-friendly option.
Thank you so much for all the work you're putting into all this, I look forward to contributing to the best of my ability!

I have now added an additional field to the weights object where you can specify the type of spool. So in your example you would do:
"weights": [
    {
        "weight": 2300.0,
        "spool_weight": 600,
        "spool_type": "plastic"
    },
    {
        "weight": 2300.0,
        "spool_weight": 265,
        "spool_type": "cardboard"
    }
],

Thank you so much! this seems perfect.
I'll push an initial PR with the filaments in question so you can take a look!


Update release notes for <IP_ADDRESS>

As the title says

Docs only, merging to clear things up for the release


constructor should allow vector of vectors even if the outer type is not Any

Currently
DataFrame(Any[[1:10], [21:30]], [:A, :B])

works, but it fails when the first argument has a more specific element type, eg Array{Array{Int64,1},1}. Removing Any from
function DataFrame(columns::Vector{Any},
                   cnames::Vector{Symbol} = gennames(length(columns)))
    return DataFrame(columns, Index(cnames))
end

would fix this, but before submitting a PR I wanted to ask if this has other implications, or if there is a reason for the restriction.

I think it's a good idea to fix this ctor. Potentially, there might be clashes with the other DataFrame ctors, in particular the one that expects the vector of Associatives. PR would be the best way to check for that for each Julia version.
And we definitely need to add a test for columns::Vector{T}, T != Any, another good reason for a PR.

This works on current master
julia> DataFrame([collect(1:10), collect(21:30)], [:A, :B])
10×2 DataFrames.DataFrame
│ Row │ A  │ B  │
├─────┼────┼────┤
│ 1   │ 1  │ 21 │
│ 2   │ 2  │ 22 │
│ 3   │ 3  │ 23 │
│ 4   │ 4  │ 24 │
│ 5   │ 5  │ 25 │
│ 6   │ 6  │ 26 │
│ 7   │ 7  │ 27 │
│ 8   │ 8  │ 28 │
│ 9   │ 9  │ 29 │
│ 10  │ 10 │ 30 │


回答出问题了，代码太旧了

Describe the bug

To Reproduce

Code snippets
No response
OS
windows
Node version
Node v16
Library version
openai^3.1.0

This repository is for issues with the client SDK itself, not the underlying models.


Delete should check earlier if a component exists

We should have a more informative error / error out earlier if a component does not exist:
github.com/redhat-developer/ocdev  create-components-same-name ✗                                                                                21m ⚑  ⍉
▶ ./ocdev delete thisisatest -f
unable to delete component thisisatest: unable to set  component as active, application myproject in app project doesn't exists

@cdrage now that #277 is in, do you still face this?

Because #277 prints only the cause of the error, and not the entire error. The entire error is still visible in verbose mode though.

@cdrage This is the current output
[mdas@localhost ocdev]$ ./ocdev delete thisisatest -f
unable to set  component as active, application blah-project in app project doesn't exists

Still bad error / descriptions ^^ let's keep this open

I think we should close it as the fix for this has been merged.

@mik-dass can you link the PR/commit?

@mik-dass can you link the PR/commit?

it is already mentioned above @mik-dass 's comment

Okay, it's #359, missed it :P


Bump Dependencies #2455486738

Bumps dependencies for product-is. Link : https://github.com/wso2/product-is/actions/runs/2455486738

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.jenkins-is-staging seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


FeeCollector should create simple fee providers from the constructor

It was decided not to call providers inside the constructor in favor of erc165 checks


Stanley Parable - Easier loading

Loading in The Stanley Parable is not informative enough - at the very least the screenshot should be working, is that a mod issue?
Among other things this will make QA easier.
Also, Stanley doesn't allow loading from the game menu - you have to quit the current game first, though I imagine that's not something that's changeable and has its reasons.
Ideally there should be a way to name the save games - that will allow marking specific points to test, but maybe a better solution for that is just to note the map to jump to for a pain point and use the console to do that.

You can use the console commands "save name" and "load name".


Latest version (1.3.3) fails to install

It isn't obvious to me why, but 1.3.2 installs fine and 1.3.3 does not, despite c72fc47540f021bf6a04ac6e501679468df87ff4 being the only change.
[stephen:/tmp]$ npm install<EMAIL_ADDRESS><EMAIL_ADDRESS>node_modules/wit
├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS>└──<EMAIL_ADDRESS><EMAIL_ADDRESS>
[stephen:/tmp]$ npm install<EMAIL_ADDRESS>npm ERR! Linux 3.17.4-1-ARCH
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install"<EMAIL_ADDRESS>npm ERR! node v0.10.33
npm ERR! npm  v2.1.12
npm ERR! path /tmp/node_modules/wit/bin/cmd.js
npm ERR! code ENOENT
npm ERR! errno 34

npm ERR! enoent ENOENT, chmod '/tmp/node_modules/wit/bin/cmd.js'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! Please include the following file with any support request:
npm ERR!     /tmp/npm-debug.log

Thanks for catching that, it was a recurring npm issue I've run into. Fixed in 1.3.4.

Out of curiosity, what was the problem? Does npm not like the 1.3.3 magic number?


Feature Suggestion - Helidon integration with Tyrus Client would help users develop services backed by other WebSockets

Helidon integration with Tyrus enables proper support for WebSocket server endpoints. Similarly, it would be helpful, if there is support to connect to other websocket endpoints, and consume data obtained from those.
An use-case could be like Helidon endpoint, which streams / filters / aggregates data obtained from another web-socket endpoint.
Environment Details

Helidon Version: 2.5.1
Helidon MP
JDK version: JDK 17
OS: Windows 11

What sort of support are you looking for? You can use the WebSocket client API as is now. Please elaborate.

I tried to implement JAX-RS Web API connect to a WebSocket Client using javax.websocket-api / jakarta.websocket-api client endpoints with custom encoders / decoders for data and consume data from the same. But, i ran into blockers as i could not get even a basic example working past ClientManager.createClient() / client.connectToServer() call successfully.
If this support is already available in Helidon, then it would be nice to provide a sample / example code to educate us on how to get it working.

@bvkrish83 I don't understand your first sentence: JAX-RS and WebSocket are different APIs/protocols. There are several examples/tests that use the WebSocket client API in our code base (also this is a standard API that is well documented, not specific to Helidon). For example,
https://github.com/oracle/helidon/blob/helidon-2.x/webserver/tyrus/src/test/java/io/helidon/webserver/tyrus/EchoClient.java
Also when you say "ran into blockers", there's just not enough information there to provide additional help.

@spericas I wanted to develop a JAX-RS API, which when executed in turn would connect to WebSocket to download / process some messages from server, and then return a response based on this processing step.
I will try to look into the sample code / classes shared by you, and then either close this issue (if it addresses all my concerns) or provide additional details / questions, if i have any - probably in couple of days time.

@bvkrish83 Let me know if I can close this issue

@bvkrish83 Please re-open if necessary


Allow fitting arbitrary @formulas

Currently, there are only a few models available via this interface. I suggest implementing also adding a FormulaRegressor for arbitrary formulas, via StatsModels.@formula(...).
@ablaom, what do you think? Would this make sense to add this to this interface?

Okay I've created a new issue here specific to the suggestion not immediately addresses in the initial comment. So further comment on that should go there, thanks.


Add slackin to our site

Add https://github.com/rauchg/slackin to our site so we dont need to invite people manually

https://jszgb-slackin.herokuapp.com/


Add method to return Sampler transpiled circuits

What is the expected feature or enhancement?
Transpiled circuits are available for Sampler jobs. We need to provide a way to be able to retrieve these transpiled circuits from this package.
Acceptance criteria
Proposal: add a SamplerJob class that inherits from RuntimeJob . Add a transpiled_circuits() method to the SamplerJob class. Transpiled circuits are only available for Sampler jobs, not Estimator.

Not having access to the transpiled circuits with the specific decomposition of the gates that was deployed on the backend seems really urgent to me. For publication-quality results, specifics are extremely important! One could do the same about the specific implementation of the noise resilience and circuit optimization implementations.

Is there any progress on  giving user access to transpiled circuit? It is important to know which qubits have been chosen. Is there any hack in the meantime?

Let's just close this for now. With ISA circuit change, SamplerV2 doesn't do transpilation anymore.


Create js script to deploy vouching package contracts in a given network

The script should push the zOS app in zos/packages/vouching and create instances for the contracts BasicJurisdiction, ZEPToken, Vouching and ZEPValidator.
Use the exported commands from: https://github.com/zeppelinos/zos/pull/177
The script should not just perform the actions, but also verify that the deployment was successful and everything works as expected.
It would be nice if the script also provides links to etherscan, exposes expenses, etc...

Addressed by #186


python310Packages.pydeconz: 108 -> 110

Diff: https://github.com/Kane610/deconz/compare/refs/tags/v108...v110
Changelog: https://github.com/Kane610/deconz/releases/tag/v110
Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 220645 run on x86_64-linux 1

4 packages built:

home-assistant-component-tests.deconz
home-assistant-component-tests.zha
python310Packages.pydeconz
python311Packages.pydeconz


Improve summary data

@pascalw Two questions:

I'm returning an empty array if you ask a non-color font which color formats it contains. Or should this be false/null? Also see test.
I've used this elsewhere but it doesn't work here, any idea why?


Strip Outgoing header values

This PR contains changes to _writers.py:
Removes trailing characters and spaces from outgoing header values.
Resolves #5

[Current coverage][cc-pull] is 100%

Merging [#6][cc-pull] into [master][cc-base-branch] will not change coverage

@@             master         #6   diff @@
==========================================
  Files            20         20
  Lines           867        867
  Methods           0          0
  Messages          0          0
  Branches        169        169
==========================================
  Hits            867        867
  Misses            0          0
  Partials          0          0

Powered by Codecov. Last updated by [c0531bd...d855ff0][cc-compare]
[cc-base-branch]: https://codecov.io/gh/njsmith/h11/branch/master?src=pr
[cc-compare]: https://codecov.io/gh/njsmith/h11/compare/c0531bdc1aae21acd65f06d79c89bef99edd9cc9...d855ff0f6040cd20a9a9c4a1b258f7b5903d264d
[cc-pull]: https://codecov.io/gh/njsmith/h11/pull/6?src=pr

Hi @accraze -- thanks for your interest and contribution!
Unfortunately, there are a few issues:

This doesn't actually address issue #5, which is about doing more careful checking of the contents of outgoing header values. The example given there is a newline inside a header value, which is unaffected by stripping whitespace around the edges of a header value. But there are also other ways that a header value can be invalid beyond just containing embedded newlines.

No test is included -- as noted in our contribution guidelines, all functionality changes need some corresponding change to the test suite. (Though now that I look at it that section probably isn't phrased as clearly as it could be... sorry about that.)

Also, I'm actually experimenting with a different general strategy for handling headers and header validation on a local branch right now... which of course you had no way to know :-). But I'd prefer to leave this particular issue alone for now until I've gotten a bit further on that, so I'm going to close this for now. Hopefully the above notes are useful for future reference, though.


cant change the path to a folder where testing reports are saved

In carina-demo __config.properties i set parameter project_report_directory=./myReports
expected:
report generates an new folder named myReports
actual:
report generates to the folder named reports
the same issue with parameter max_screen_history
for example:
i set parameters
project_report_directory=./myReports/android
max_screen_history=15
my test:
@Test
public void testOneMore(){
System.out.println(R.CONFIG.get("project_report_directory"));
System.out.println(R.CONFIG.get("max_screen_history"));
}
output:
2021-03-03 11:26:59 Messager [main-1] [INFO]  TEST [carina - testOneMore] STARTED at [11:26:59 2021-03-03]
./reports
0
2021-03-03 11:26:59 Messager [main-1] [INFO]  TEST [carina - testOneMore] PASSED at [11:26:59 2021-03-03]

now we can set a folder for test reports and max number of screenshot history.
by default, folder for reports: ./reports; number of screenshot history: 10

open carina-demo
enter __config.properties
set new folder for project_report_directory that starts with / (for example project_report_directory=/tmp/myreports)
set max_screen_history property with positive number (for example max_screen_history=2)
create new Test in src.test.java, for example:
public class TestAbs extends AbstractTest {
@Test
public void testOneMore() {
System.out.println(“report directory: ” + R.CONFIG.get(“project_report_directory”));
System.out.println(“max screen history: “+ R.CONFIG.get(“max_screen_history”));
}
}
launch test

we expect:

created new folder with test reports (in our case it is /tmp/myreports)
console output match the expected (in our case it is :
report directory: /tmp/myreports
max screen history: 2
)

if we comment this parameters
#project_report_directory=/tmp/myreports
#max_screen_history=2
or leave an empty value
project_report_directory=
max_screen_history=
or set values as NULL
project_report_directory=NULL
max_screen_history=NULL
we expect default values to be set in project
./reports for project_report_directory
10 for max_screen_history
we can test it with the help of test above


Hide tabbar when only images or videos are selected

Hi
Thx for a great picker :-)
I need to hide the tabbar when mode 2 or 3 is selected.
I looked into the library code and added tabbar visibility as an extra. It could also be done as a standard, when choosing mode 2 or 3, but I wasn't sure if it should be default?
Should I make a pull request or would you rather that I did not :-)
Regards
Msuhl

Hi again :-)
I get a "403 - not unauthorized" when trying to push my branch?
Could it be a read/write permission issue or am I doing something wrong?
Regards
Msuhl

Hello @msuhl
Here is the reason for that :
"Those instructions would work if you were a contributor to that project, but you're not. So you need to fork first. Read Fork a Repo. Clone your fork, make the branch there, push and then submit the pull request.
The your repository vs. their repository isn't really spelled out, but if you look start with your article and click the link for creating a branch you end up at Creating and deleting branches within your repository. Emphasis mine.
There's a bit more about the two different collaboration models (Fork & Pull vs. Shared Repository) in Using Pull Requests."
from : https://stackoverflow.com/questions/29044551/http-403-on-github-pull-request
Please try it, if it still does not work please write again and we can create a solution for that :)

Thx for your help - always nice to learn new things :-)
I have created a pull request
Regards
Msuhl

Going to release a new version ASAP, thank you again :)


Error installing AdGuard Home LXC

Please verify that you have read and understood the guidelines.
yes
A clear and concise description of the issue.
Trying to install ADGuard but the script crashes.
What settings are you currently utilizing?

[X] Default Settings
[X] Advanced Settings

Which Linux distribution are you employing?
Debian 12
If relevant, including screenshots or a code block can be helpful in clarifying the issue.
✓ Installed Dependencies
 -curl: (6) Could not resolve host: static.adtidy.org

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

[ERROR] in line 23: exit code 0: while executing command $STD tar zxvf <(curl -fsSL https://static.adtidy.org/adguardhome/release/AdGuardHome_linux_amd64.tar.gz) -C /opt
The silent function has suppressed the error, run the script with verbose mode enabled, which will provide more detailed output.

Please provide detailed steps to reproduce the issue.
Just install adguard via the sh script.

For the one viewing this, added <IP_ADDRESS> as a new DNS on proxmox and the script worked flawlessly


Helm upgrade for karpenter version 0.37.0 is failing with context deadline exceeded.

Hi,
When I am trying to upgrade karpenter  version from v0.29.1 to 0.37.0 I am getting context deadline exceeded error.
Received response status [FAILED] from custom resource. Message returned: Error: b'Error: UPGRADE FAILED: context deadline exceeded\n'

I even tried to upgrade to 0.33.1. Facing the same issue.
We guess the helm chart upgradation is taking more time than expected but not very sure.
Is there anyways we can solve this issue? Can we increase the timeout time for helm upgrade?

It would be helpful to understand which resource is failing here, at least to confirm it's the Helm chart, do you have additional logs from the Lambda function which backs the custom resource?

Hi,
This is the lambda function logs,
LAMBDA_WARNING: Unhandled exception. The most likely cause is an issue in the function code. However, in rare cases, a Lambda runtime update can cause unexpected function behavior. For functions using managed runtimes, runtime updates can be triggered by a function change, or can be applied automatically. To determine if the runtime has been updated, check the runtime version in the INIT_START log entry. If this error correlates with a change in the runtime version, you may be able to mitigate this error by temporarily rolling back to the previous runtime version. For more information, see https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html

[ERROR] Exception: b'Error: UPGRADE FAILED: context deadline exceeded\n' Traceback (most recent call last):   File "/var/task/index.py", line 17, in handler

[ERROR] Exception: b'Error: UPGRADE FAILED: context deadline exceeded\n'
Traceback (most recent call last):
  File "/var/task/index.py", line 17, in handler
    return helm_handler(event, context)
  File "/var/task/helm/__init__.py", line 93, in helm_handler
    helm('upgrade', release, chart, repository, values_file, namespace, version, wait, timeout, create_namespace)
  File "/var/task/helm/__init__.py", line 199, in helm
    raise Exception(output)

Thanks

TLDR;
A node is required in your eks cluster so setup a managed node group before configuring karpenter.
EXPLANATION
Running helm directly against my eks cluster with the --debug flag reveals that karpenter requires a node to be available because it attempts to startup some pods (see screenshoot below).

Since this lib configures helm to wait for completion as seen below, it eventually hits the timeout.
https://github.com/aws-samples/cdk-eks-karpenter/blob/b2553187ae1d47a27def1ba9018e90250c7ceb43/src/index.ts#L187-L202
What worked for me was to first have a managed node group setup within my eks cluster before configuring karpenter.


Correct small grammar and math errors

This is great!  Thank you for creating this.  I found a few small things that might be confusing to GPT-4 and modified them.

You are welcome, and done!


I'm having trouble finding where the variable "_pixel_top_left_int" is assigned in src/proc/sse/sse-align.cpp

OS: Ubuntu
Language: C++
I'm having trouble finding where the variable "_pixel_top_left_int" is  assigned in src/proc/sse/sse-align.cpp
When I say assigned I mean a code that looks something like this:
_pixel_top_left_int = someVectorValue;
OR some form of modification of the vector.
Right now I understand that the vector _pixel_top_left_int is initialized in the constructor called image_transform::image_transform with the size of from.width * from.height.
So now I am trying to figure out where the code modifies the values in the vector _pixel_top_left_int but I am lost. Could I get some help?

Hello,
in sse-align.cpp image_transform::align_other_to_depth_sse() line 329  and image_transform::align_depth_to_other_sse line 301
we are calling to get_texture_map_sse() and move (byte*)_pixel_top_left_int.data() as parameter
inside get_texture_map_sse() we calculate the texture map from depth to other stream and set the result on _pixel_top_left_int.

@kgh475926 , was the info by @aangerma useful ?
Do you have any follow up questions?


Auto sensitivity correction for imaging observers

Current imaging observers require the camera sensitivity to be manually set. This can result in a lot of trial and error which is computationally expensive.

Develop a heuristic for determining exposure level.
Allow user to set absolute or auto exposure mode.

Implemented in 44c2849469e08ac79cad6d48984835eb5dd4976c


Link error on OS X: Undefined symbols for architecture x86_64

I successfully installed  uWebSockets on OS X with make and make install.
I had to modify the makefile to include the libUV library (line 3 & 4):
CPP_SHARED := -std=c++11 -O3 -I src -shared -fPIC src/Extensions.cpp src/Group.cpp src/Networking.cpp src/Hub.cpp src/Node.cpp src/WebSocket.cpp src/HTTPSocket.cpp src/Socket.cpp src/Epoll.cpp
CPP_OPENSSL_OSX := -L/usr/local/opt/openssl/lib -I/usr/local/opt/openssl/include
CPP_LIBUV_OSX := -L/usr/local/Cellar/libuv/1.11.0/lib/ -I/usr/local/Cellar/libuv/1.11.0/include
CPP_OSX := -stdlib=libc++ -mmacosx-version-min=10.7 -undefined dynamic_lookup $(CPP_OPENSSL_OSX) $(CPP_LIBUV_OSX)
[...]

I created a small main.cpp file:
#include <string>
#include <iostream>
#include <uWS/uWS.h>

int main() {
    uWS::Hub h;

    h.onMessage([](uWS::WebSocket<uWS::SERVER> *ws, char *message, size_t length, uWS::OpCode opCode) {
        ws->send(message, length, opCode);
    });

    h.onHttpRequest([](uWS::HttpResponse *res, uWS::HttpRequest req, char *data, size_t length, size_t remainingBytes) {
        std::cout << "onHttpRequest: " << std::string(data, length) << std::endl;
        res->end(data, length);
    });

    h.listen(3000);
    h.run();
}

I try to compile it with the following command:
g++ -std=c++11 -I. -I. -I/usr/local/include/ -I/usr/local/opt/openssl/include  -L. -L/usr/local/lib -L/usr/local/opt/openssl/lib -L/usr/local/Cellar/libuv/1.11.0/lib/ main.cpp
But I get the following error:
Undefined symbols for architecture x86_64:
  "_SSL_get_error", referenced from:
      uS::Socket::write(uS::Socket::Queue::Message*, bool&) in main-b77dd0.o
  "_SSL_write", referenced from:
      uS::Socket::write(uS::Socket::Queue::Message*, bool&) in main-b77dd0.o
  "uS::TLS::Context::~Context()", referenced from:
      _main in main-b77dd0.o
  "uS::Node::run()", referenced from:
      _main in main-b77dd0.o
  "uS::Node::Node(int, int, int, bool)", referenced from:
      uWS::Hub::Hub(int, bool, unsigned int) in main-b77dd0.o
  "uS::Node::~Node()", referenced from:
      uWS::Hub::Hub(int, bool, unsigned int) in main-b77dd0.o
      uWS::Hub::~Hub() in main-b77dd0.o
  "uWS::Hub::listen(int, uS::TLS::Context, int, uWS::Group<true>*)", referenced from:
      _main in main-b77dd0.o
  "uWS::Group<false>::Group(int, unsigned int, uWS::Hub*, uS::NodeData*)", referenced from:
      uWS::Hub::Hub(int, bool, unsigned int) in main-b77dd0.o
  "uWS::Group<true>::onHttpRequest(std::__1::function<void (uWS::HttpResponse*, uWS::HttpRequest, char*, unsigned long, unsigned long)>)", referenced from:
      _main in main-b77dd0.o
  "uWS::Group<true>::onMessage(std::__1::function<void (uWS::WebSocket<true>*, char*, unsigned long, uWS::OpCode)>)", referenced from:
      _main in main-b77dd0.o
  "uWS::Group<true>::Group(int, unsigned int, uWS::Hub*, uS::NodeData*)", referenced from:
      uWS::Hub::Hub(int, bool, unsigned int) in main-b77dd0.o
  "uWS::WebSocket<true>::send(char const*, unsigned long, uWS::OpCode, void (*)(uWS::WebSocket<true>*, void*, bool, void*), void*)", referenced from:
      main::$_0::operator()(uWS::WebSocket<true>*, char*, unsigned long, uWS::OpCode) const in main-b77dd0.o
  "_inflateEnd", referenced from:
      uWS::Hub::~Hub() in main-b77dd0.o
  "_inflateInit2_", referenced from:
      uWS::Hub::Hub(int, bool, unsigned int) in main-b77dd0.o
  "_uv_async_send", referenced from:
      Async::send() in main-b77dd0.o
  "_uv_poll_start", referenced from:
      Poll::start(Loop*, Poll*, int) in main-b77dd0.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

What went wrong?
Macbook Pro 2012
OS X
C++

You are not linking to OpenSSL

You are not linking to anything at all

Yes, I forgot to link to the libraries, sorry about that.
Now I added  -luWS -luv -luv.1 -lssl -lcrypto so I compile with :
 g++ -std=c++11 -I. -I. -I/usr/local/include/ -I/usr/local/opt/openssl/include -L. -L/usr/local/lib -L/usr/local/opt/openssl/lib -L/usr/local/Cellar/libuv/1.11.0/lib/  -luWS -luv -luv.1 -lssl -lcrypto main.cpp

And I still gives
Undefined symbols for architecture x86_64:
  "_inflateEnd", referenced from:
      uWS::Hub::~Hub() in main-56eec6.o
  "_inflateInit2_", referenced from:
      uWS::Hub::Hub(int, bool, unsigned int) in main-56eec6.o
ld: symbol(s) not found for architecture x86_64

What should I do?

it's missing -lz as you could have probably found out with a 2 min google search

Yes, sorry about that, thank you


Recruiting additional maintainers for Emacs Lisp

We're about to start a big push towards version 3 (v3) of Exercism. This is going to be a really exciting step forward for Exercism, with in-browser coding, new Concept Exercises with automated feedback, improved mentoring and much more.
This to be a big community effort, with the work spread out among hundreds of volunteers across Exercism. One key thing is going to be each track having enough maintainers who have the time to manage that community effort. We are therefore putting out a call for new maintainers to bolster our numbers. We're hoping that our existing maintainers will be able to act as mentors to the newer maintainers we add, and take on a parental role in the tracks.
If you are an existing maintainer, could you please reply to this letting us know that you think you'll have time (2-3hrs/week) to help with this over the next 6 months. If you won't have that time, but still want to be a maintainer and just help where you can instead, please tell us that too. If you have come to the end of the road as a maintainer, then we totally understand that and appreciate all your effort, so just let us know.
For anyone new who's interested in becoming a maintainer, thanks for your interest! Being an Exercism maintainer is also a great opportunity to work with some other smart people, learn more about your language of choice, and gain useful skills and experience that are useful for growing your career in the technical leadership direction. Please write a comment below introducing yourself along with your Exercism handle, and telling us why you're interested in becoming a maintainer, and any relevant experience. We will then evaluate every application and contact you using your exercism email address once we have finished the evaluation process.
Thank you!
See also https://github.com/exercism/exercism/issues/5161

🙌 Hey @kytrinyx! Ive not been the most active here (I try to be when I can) and I dont always have the most free time to dedicate to the project but I love spreading the joys of emacs and lisp as much as I can.
While I somehow managed to become a maintainer of this track, my elisp experience is limited to configuring my own emacs and solving and writing exercism exercises. Im super happy to help in whatever way I can, but would love some assistance in making sure that the track provides the best experience for teaching not just the syntax, but also the semantics of elisp. (This is the area I could really use help).
Ill reach out to some people in the emacs community and see if I cant recruit a solid co-maintainer of the track.

We're closing this issue as it was part of our push to implement the v3 version of this track and v3 has just been released.
New maintainer are always welcome though!


contact: rework

Draft PR to track progress on rework of contact section

I have read the CLA Document and I hereby sign the CLA


go/types: panic in (*StdSizes).Sizeof when building github.com/kisielk/errcheck with Go tip

Go version
go version devel go1.22-37aed23f51 Wed Nov 22 19:53:59 2023 +0000 linux/amd64
Reproducibility

[ ] Does this issue reproduce with the latest release?

What operating system and processor architecture are you using (go env)?
GO111MODULE=''
GOARCH='amd64'
GOBIN=''
GOCACHE='/homes/hawkwind/u0/cks/.cache/go-build'
GOENV='/homes/hawkwind/u0/cks/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/homes/hawkwind/u0/cks/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/homes/hawkwind/u0/cks/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/data/code/go-lang/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='path'
GOTOOLDIR='/data/code/go-lang/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='devel go1.22-37aed23f51 Wed Nov 22 19:53:59 2023 +0000'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/dev/null'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmpfs/go-build1784122446=/tmp/go-build -gno-record-gcc-switches'

What did you do?
A version of github.com/kisielk/errcheck built from the current Go tip will panic when attempting to check anything, including its own main.go. A dlv stack trace says this happens in:
0  0x000000000043efc4 in runtime.fatalpanic
    at /data/code/go-lang/go/src/runtime/panic.go:1217
 1  0x000000000043dfbd in runtime.gopanic
    at /data/code/go-lang/go/src/runtime/panic.go:779
 2  0x00000000005fd665 in go/types.(*Checker).handleBailout
    at /data/code/go-lang/go/src/go/types/check.go:366
 3  0x00000000005fdfb3 in go/types.(*Checker).checkFiles.deferwrap1
    at /data/code/go-lang/go/src/go/types/check.go:391
 4  0x000000000043df96 in runtime.gopanic
    at /data/code/go-lang/go/src/runtime/panic.go:770
 5  0x000000000043d25e in runtime.panicmem
    at /data/code/go-lang/go/src/runtime/panic.go:261
 6  0x00000000004566c5 in runtime.sigpanic
    at /data/code/go-lang/go/src/runtime/signal_unix.go:866
 7  0x0000000000660bec in go/types.(*StdSizes).Sizeof
    at /data/code/go-lang/go/src/go/types/sizes.go:228
 8  0x0000000000694a2e in go/types.Sizes.Sizeof-fm
    at <autogenerated>:1
 9  0x00000000006616eb in go/types.(*Config).sizeof
    at /data/code/go-lang/go/src/go/types/sizes.go:333
10  0x0000000000601019 in go/types.representableConst.func1
    at /data/code/go-lang/go/src/go/types/const.go:76
11  0x0000000000600389 in go/types.representableConst
    at /data/code/go-lang/go/src/go/types/const.go:92
12  0x000000000060154f in go/types.(*Checker).representation
    at /data/code/go-lang/go/src/go/types/const.go:256
13  0x0000000000615b97 in go/types.(*Checker).implicitTypeAndValue
    at /data/code/go-lang/go/src/go/types/expr.go:375
14  0x00000000005e0a33 in go/types.(*Checker).assignment
    at /data/code/go-lang/go/src/go/types/assignments.go:52
15  0x00000000005e1a4e in go/types.(*Checker).initConst
    at /data/code/go-lang/go/src/go/types/assignments.go:126
16  0x000000000060b014 in go/types.(*Checker).constDecl
    at /data/code/go-lang/go/src/go/types/decl.go:490
17  0x000000000060789f in go/types.(*Checker).objDecl
    at /data/code/go-lang/go/src/go/types/decl.go:191
18  0x00000000006574d2 in go/types.(*Checker).packageObjects
    at /data/code/go-lang/go/src/go/types/resolver.go:693
19  0x00000000005fdb0b in go/types.(*Checker).checkFiles
    at /data/code/go-lang/go/src/go/types/check.go:407
20  0x00000000005fd6e5 in go/types.(*Checker).Files
    at /data/code/go-lang/go/src/go/types/check.go:371
21  0x0000000000713365 in golang.org/x/tools/go/packages.(*loader).loadPackage
    at /homes/hawkwind/u0/cks/go/pkg/mod/golang.org/x/tools@v0.9.1/go/packages/packages.go:1052
[...]

The first non-panic related frame appears to be frame 7, where dlv says the panicing line is return s.WordSize // catch-all and s is nil.
Reproduction is straightforward:
cd /tmp
git clone https://github.com/kisielk/errcheck
cd errcheck
go build -o errcheck.bin
./errcheck.bin main.go
[panic]

I believe this has been happening in the development version for some unknown length of time, but it doesn't happen with Go 1.21.
What did you expect to see?
No panic.
What did you see instead?
The panic above.

Maybe related https://github.com/golang/go/issues/62103 ?
Several CLs listed there were updates to x/tools in the go.mod file example https://go.dev/cl/520435.
https://github.com/kisielk/errcheck looks to be on an old version of x/tools:
require golang.org/x/tools v0.9.1

My guess is you need to sync past https://go.dev/cl/520555. So does go get<EMAIL_ADDRESS>go mod tidy resolve the issue?

Updating golang.org/x/tools to v0.15.0 does seem to fix the issue; I can't reproduce the crash with a Go tip build of errcheck now.

This was fixed in x/tools in CL 516917.
Turns out a wrong type assertion to *types.StdSizes from a *types.gcSizes was causing the sizes to be nil here. Later on in *go/types/stdSizes.Sizeof it tries to access WordSize from s which is nil resulting in the segmentation fault.
Closing as this is an x/tools issue that is already fixed.


Question: avoiding stringly-typed api

First of all, thanks for a great library - I hope to be able to contribute to it myself :)
I have a situation where I want to expose the GraphQL endpoint to external consumers via http (the normal way) but then I also want to use that same endpoint internally (via ffi etc).
My issue is that I want to receive compile-time errors if the query is invalid, but I can't think of a way to achieve this?
essentially I don't want to resort to runtime errors if the query is incorrect like this
client
    .post(url.as_str())
    .header("User-Agent", "Actix-web")
    .send_json(serde_json::json!({
        query: "mutation { stop }" // this is what I want to avoid, in case it's incorrect
    }))
    .await

so, given something simple like the following - I'm wondering how we could construct mutation { stop } in a way that would result in a compile-time error if it's incorrect?
pub struct MutationRoot;

#[async_graphql::Object]
impl MutationRoot {
     async fn stop(&self) -> async_graphql::Result<Something> {
           // ... impl omitted for brevity
     }
}

love to hear any thoughts on this :)

You might want to look at graph-client and cynic, which can validate queries at compile time.

You might want to look at graph-client and cynic, which can validate queries at compile time.


Link to sample rosbag does not work

Hello,
thank you very much for your recent update! So we got your software starting now.
As we did not succeed yet with our own sensor data, we would like to use your sample rosbag to see how a successful calibration should look like.
In your README.md you have a link to a sample rosbag:
https://filebrowser.homelab.up2metric.com/share/J1vaDI4Z
Clicking this link sais:
This location can't be reached.
Could you fix this link, or somehow else provide your sample rosbag?
Thank you very much
Manuel from Fraunhofer

Please use the following link
https://filebrowser.homelab.up2metric.com/share/JJw-BnDA
Regards,
Christos.

Thanks for the link fix, and the file.
I could do a successful geometric calibration with your rosbag.


Seperate Document number and payment reference

Currently the payment reference is take directly from the document id.
I would like to be able to set the document id seperately from the payment reference.
Is this possible?

interesting, would be trivial to fix it, do you want to give it a try?

You know its not urgent for me until at least Q1 of 2025.
If i have some free time im happy to make a PR for it but don't count on me.


perf: improve logging for MLflow metrics

Change Description

#41 - Improving the MLflow to handle (prevent overriding) metrics logging when running eval() or eval_prompts() with multiple prompts.

[x] My PR includes a link to the issue that I am addressing

Solution Description

Code Quality

[x] I have read the Contribution Guide
[x] My code follows the code style of this project
[x] My code builds (or compiles) cleanly without any errors or warnings
[x] My code contains relevant comments and necessary documentation

Project-Specific Pull Request Checklists

Bug Fix Checklist

[ ] My fix includes a new test that breaks as a result of the bug (if possible)
[ ] My change includes a breaking change

[ ] My change includes backwards compatibility and deprecation warnings (if possible)

New Feature Checklist

[ ] I have added or updated the docstrings associated with my feature using the NumPy docstring format
[ ] I have updated the tutorial to highlight my new feature (if appropriate)
[ ] I have added unit/End-to-End (E2E) test cases to cover my new feature
[ ] My change includes a breaking change

[ ] My change includes backwards compatibility and deprecation warnings (if possible)

Documentation Change Checklist

[ ] Any updated docstrings use the NumPy docstring format

Build/CI Change Checklist

[ ] If required or optional dependencies have changed (including version numbers), I have updated the README to reflect this
[ ] If this is a new CI setup, I have added the associated badge to the README

Other Change Checklist

[ ] Any new or updated docstrings use the NumPy docstring format.
[ ] I have updated the tutorial to highlight my new feature (if appropriate)
[ ] I have added unit/End-to-End (E2E) test cases to cover any changes
[ ] My change includes a breaking change

[ ] My change includes backwards compatibility and deprecation warnings (if possible)

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (aac9880) 98.65% compared to head (5f99fb1) 98.65%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #42      +/-   ##
==========================================
- Coverage   98.65%   98.65%   -0.01%
==========================================
  Files           8        8
  Lines         298      297       -1
==========================================
- Hits          294      293       -1
  Misses          4        4

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

Also updated the code to use mlflow.logMetrics() - allows for multiple metrics logging via dictionary instead of log.metric() - which logs only one key-value pair at a time.


Adapt wagtail embed finder from ppa and add support for github pages

copied custom embed finder & test from ppa code & updated path names
revised to support github pages urls as well as glitch
add csp settings to allow loading content from Moacir's map, hosted on princeton-cdh github pages

Actual embed code is unchanged and doesn't need review, but would appreciate quick look over the csp stuff to see if you have any concerns.

Codecov Report

Merging #730 (b2b186b) into develop (00a23d8) will decrease coverage by 11.36%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##           develop     #730       +/-   ##
============================================
- Coverage    97.90%   86.54%   -11.37%
============================================
  Files          227       12      -215
  Lines        12423      446    -11977
  Branches        66       66
============================================
- Hits         12163      386    -11777
+ Misses         260       60      -200


Adding Partition Problem to DP / Winter of Code

🚀 Feature
Need to add the Partition Problem to DP Section.
The Partition Problem: Given a nonempty set A of positive integers, we have to find two nonempty
disjoint subsets A1 and A2 such that (a) A1∪A2 = A and (b) sum of elements of A1 = sum of elements
of A2.
Have you read the Contributing Guidelines on Pull Requests?
Yes
Motivation
Dynamic Programming is must needed for the competitive programming purpose.
Pitch
We can add both the recursive and iterative approach of this problem

I would like to take this problem in both recursive and iterative way. Please assign this to me.


fix: [firebase_ml_vision] Added nil check to visionBarcodeEmailToDictionary

Description
This PR will perform a nil check because the iOS app will crash if "Subject" and "Body" do not exist when reading the QR code of the email address.
Related Issues
Fix #3506
For a QR code with only an email address, it is crashing on iOS because the "Subject" and "Body" values do not exist.
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]).
This will ensure a smooth and quick review process. Updating the pubspec.yaml and changelogs is not required.

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] My PR includes unit or integration tests for all changed/updated/fixed behaviors (See Contributor Guide).
[x] All existing and new tests are passing.
[x] I updated/added relevant documentation (doc comments with ///).
[x] The analyzer (flutter analyze) does not report any problems on my PR.
[x] I read and followed the Flutter Style Guide.
[x] I signed the CLA.
[x] I am willing to follow-up on review comments in a timely manner.

Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?

[ ] Yes, this is a breaking change (please indicate a breaking change in CHANGELOG.md and increment major revision).
[x] No, this is not a breaking change.

Hey @lynrin. I had the same problem in my PR: https://github.com/FirebaseExtended/flutterfire/pull/1645.
Can you take a look? It would be nice if these two changes were merged. I'm waiting for this fix for a while.

Any updates?

Hey @lynrin, please change your PR title to the correct pattern:
fix: [firebase_ml_vision] Added nil check to visionBarcodeEmailToDictionary

Thanks to @rafaelcmm.
I changed the title of the PR.

Closing in favour of #1645