Failed when running the python file.

Hi, there, I follow the markdown to run the python file, and whatever I run, always fail, here is the one of the error log when running generate_image.py:
[SPEAR | env.py] Launching Unreal instance...

WARNING:tornado.general:Connect error on fd 6: ECONNREFUSED
chmod: changing permissions of '/home/michael/git/spear/SpearSim/SpearSim/Binaries/Linux/SpearSim-Linux-Shipping': Operation not permitted
5.2.1-0+UE5 1009 0
Disabling core dumps.
[SPEAR | CoreUtils.cpp] CoreUtils::StartupModule
[SPEAR | ActorHitEventComponent.h] UActorHitEventComponent::UActorHitEventComponent
[SPEAR | TickEventComponent.h] UTickEventComponent::UTickEventComponent
[SPEAR | VehicleMovementComponent.cpp] UVehicleMovementComponent::UVehicleMovementComponent
[SPEAR | VehicleMovementComponent.cpp] UVehicleMovementComponent::UVehicleMovementComponent
[SPEAR | VehiclePawn.cpp] AVehiclePawn::AVehiclePawn
[SPEAR | VehicleWheel.cpp] UVehicleWheel::UVehicleWheel
[SPEAR | SpearSimSpectatorPawn.cpp] ASpearSimSpectatorPawn::ASpearSimSpectatorPawn
[SPEAR | SpearSimGameEngine.cpp] USpearSimGameEngine::USpearSimGameEngine
[SPEAR | SpearSimGameMode.cpp] ASpearSimGameMode::ASpearSimGameMode
WARNING:tornado.general:Connect error on fd 6: ECONNREFUSED
[SPEAR | Vehicle.cpp] Vehicle::StartupModule
[SPEAR | SimulationController.cpp] SimulationController::StartupModule
[SPEAR | SpearSimGameEngine.cpp] USpearSimGameEngine::USpearSimGameEngine
[SPEAR | SimulationController.cpp] SimulationController::postWorldInitializationEventHandler
[SPEAR | SimulationController.cpp] SimulationController::worldCleanupEventHandler
[SPEAR | SimulationController.cpp] SimulationController::postWorldInitializationEventHandler
[SPEAR | SimulationController.cpp] scene_id:                apartment_0000
[SPEAR | SimulationController.cpp] map_id:                  apartment_0000
[SPEAR | SimulationController.cpp] desired_world_path_name: /Game/Scenes/apartment_0000/Maps/apartment_0000.apartment_0000
[SPEAR | SimulationController.cpp] desired_level_name:      /Game/Scenes/apartment_0000/Maps/apartment_0000
[SPEAR | SimulationController.cpp] world->GetPathName():    /Game/Scenes/apartment_0000/Maps/apartment_0000.apartment_0000
[SPEAR | SimulationController.cpp] open_level:              0
[SPEAR | SpearSimGameMode.cpp] ASpearSimGameMode::ASpearSimGameMode
[SPEAR | SpearSimSpectatorPawn.cpp] ASpearSimSpectatorPawn::ASpearSimSpectatorPawn
[SPEAR | SimulationController.cpp] SimulationController::worldBeginPlayEventHandler
libc++abi: terminating due to uncaught exception of type std::out_of_range: map::at:  key not found
Signal 6 caught.
Malloc Size=262146 LargeMemoryPoolOffset=262162
CommonUnixCrashHandler: Signal=6
Malloc Size=131160 LargeMemoryPoolOffset=393352
Malloc Size=131160 LargeMemoryPoolOffset=524536
Engine crash handling finished; re-raising signal 6 for the default handler. Good bye.
WARNING:tornado.general:Connect error on fd 6: ECONNREFUSED
Aborted (core dumped)
[SPEAR | env.py] ERROR: Unrecognized process status: zombie
[SPEAR | env.py] ERROR: Killing process 3148595...
Traceback (most recent call last):
  File "generate_images.py", line 98, in <module>
    env = CustomEnv(config, num_internal_steps=args.num_internal_steps)
  File "generate_images.py", line 26, in __init__
    super(CustomEnv, self).__init__(config)
  File "/home/michael/git/spear/python/spear/env.py", line 27, in __init__
    self._initialize_rpc_client()
  File "/home/michael/git/spear/python/spear/env.py", line 290, in _initialize_rpc_client
    self._close_rpc_client()
  File "/home/michael/git/spear/python/spear/env.py", line 353, in _close_rpc_client
    self._rpc_client._loop._ioloop.close()
  File "/home/michael/anaconda3/envs/spear-env/lib/python3.8/site-packages/tornado/ioloop.py", line 716, in close
    self.remove_handler(self._waker.fileno())
  File "/home/michael/anaconda3/envs/spear-env/lib/python3.8/site-packages/tornado/platform/posix.py", line 48, in fileno
    return self.reader.fileno()
ValueError: I/O operation on closed file

My running env is under Ubuntu with display， GPU 3090，and no root mode(cause the UE disallow root mode)

The example seems to be proceeding as expected until this line.
libc++abi: terminating due to uncaught exception of type std::out_of_range: map::at:  key not found

This is encouraging because we don't actually call the std::map::at() in very many places. The most commonly called place we use std::map::at() is in our Config system, but we explicitly check if a requested key isn't found, and we print out our own error message in this case. I don't see that error message in your log, so that narrows the problem down even further.

Can you successfully run the precompiled binary (SpearSim.sh) from the command-line with no additional arguments?
Can you run the getting_started example?
Can you paste your user_config.yaml?
Are you using the precompiled binaries or did you build SpearSim yourself?

Yes, I use precompiled binary. I can run the pre-compiled binary follow the markdown, and control it with my keyboard and mouse.
Yes or no? after I started it , it shows one window with seems not continue images flash, and then the second windows shows final color.
Here below is my user_config.
`#
Copyright(c) 2022 Intel. Licensed under the MIT License http://opensource.org/licenses/MIT.

SPEAR:
LAUNCH_MODE: "standalone_executable"
STANDALONE_EXECUTABLE: "/home/michael/git/spear/SpearSim/SpearSim.sh"
PAKS_DIR: "/home/michael/git/spear/pak"
CUSTOM_COMMAND_LINE_ARGUMENTS: []
RENDER_OFFSCREEN: False
WINDOW_RESOLUTION_X: 1024
WINDOW_RESOLUTION_Y: 1024
SIMULATION_CONTROLLER:
AGENT: "CameraAgent"
TASK: "NullTask"
CUSTOM_UNREAL_CONSOLE_COMMANDS: []
NAVMESH:
MIN_REGION_AREA: 0.0
CAMERA_AGENT:
CAMERA_ACTOR_NAME: "camera_actor"
SPAWN_MODE: "specify_existing_actor"
SPAWN_ACTOR_NAME: "PlayerStart_0"
ACTION_COMPONENTS: ["set_location", "set_rotation"] # "set_location", "set_rotation"
OBSERVATION_COMPONENTS: ["camera"] # "camera"
STEP_INFO_COMPONENTS: []
CAMERA:
RENDER_PASSES: ["final_color, depth"] # "depth", "final_color", "normal", "segmentation"
IMAGE_HEIGHT: 1024
IMAGE_WIDTH: 1024
FOV: 90.0
VISUALIZER:
ACTOR_NAME: "camera_actor"
SPAWN_CAMERA: False`

The pak dir contains only one pak, kujiale_0000.pak

Please use ``` to format blocks of code instead of ` (I corrected this issue in both of your posts already, but for future reference, this is a better way to format multi-line code blocks.)

Ah, your RENDER_PASSES is defined as an array with a one string entry "final_color, depth". This is incorrect. You want it to be an array with two string entries "final_color" and "depth". So you want to do the following.
RENDER_PASSES: ["final_color", "depth"]

We provide an example for how to define this parameter in the README for this example. I hope that helps.

@mikeroberts3000 Thanks for that， now the generation is done(After I press Igore the warning). But the depth shows some wired, it gives a kinda textural depth? Maybe something is wrong?

I think you're now experiencing a bug/limitation in the Unreal Engine that we make a note of in our backlog here: https://github.com/isl-org/spear/issues/198
We render depth images in a full-precision floating-point format, but this texture format doesn't seem to work correctly on macOS or Linux in UE 5.2. The easiest workaround is to use Windows.
Another workaround (that would require modifying our code) would be to change the texture format used for depth rendering:
https://github.com/isl-org/spear/blob/8afa15b30cc667b55729e1c10bac141c36c76953/cpp/unreal_plugins/SimulationController/Source/SimulationController/CameraSensor.cpp#L51
The goal would be to: (1) change the texture format to a format that is better-behaved on macOS and Linux; (2) implement an encoding function in the depth post-processing material (PPM_Depth.uasset) that encodes floating-point depth into the desired format, hopefully without losing much precision; (3) implement a decoding function in CameraSensor.cpp that will recover floating-point depth; and (4) invoke the decoding function in CameraSensor::getObservation(), once the data has been copied from the GPU to the CPU.


Injection in DBS is particularily slow

over the last few days, there has been numerous workflows in completed with missing files in DBS.
related to #8148 but not only. there appears to be some severe delays in getting files registered, holding up workflows of high priority.

pdmvserv_task_HIG-RunIISummer15wmLHEGS-01262__v1_T_170906_162107_4411
pdmvserv_task_HIG-PhaseIITDRFall17wmLHEGS-00015__v1_T_171010_201726_6880
pdmvserv_task_HIG-PhaseIITDRFall17wmLHEGS-00013__v1_T_171010_201709_6648
pdmvserv_task_SUS-PhaseIITDRFall17wmLHEGS-00001__v1_T_171009_161734_6361
at the moment, the list was longer at the beginning of the week

note the PhaseIITDR

I haven't found any errors in DBS3Upload. It seems it is still inserting the blocks on those workflows.
2017-11-03 13:51:07,594:140163629393664:INFO:DBSUploadPoller:About to insert block /ChargedHiggs_HplusTB_HplusToTauNu_IntermediateMassNoNeutral_M-200_13TeV_amcatnlo_pythia8/RunIISummer16MiniAODv2-PUMoriond17_80X_mcRun2_asymptotic_2016_TrancheIV_v6-v1/MINIAODSIM#2aa58202-bf03-11e7-abc1-02163e018570

https://cmsweb.cern.ch/reqmgr2/fetch?rid=pdmvserv_task_HIG-PhaseIITDRFall17wmLHEGS-00013__v1_T_171010_201709_6648
force-complete: 2017-11-01 09:02:07 UTC
completed: 2017-11-01 09:06:35 UTC
and still missing 2 files in DBS holding it up for the Upgrade group.

I started checking this workflow
pdmvserv_task_HIG-PhaseIITDRFall17wmLHEGS-00013__v1_T_171010_201709_6648
which had an inconsistency in dbs/phedex because the workflow was force-completed and the agent hit a race condition where jobs were still getting created/submitted. I have just removed a condor job for HIG-PhaseIITDRFall17MiniAOD-00026_0 (that was pending > 2 days now) and force completed the workflow in the agent.
I still see this block open:
/GluGlu_HToMuMu_M125_14TeV_powheg_pythia8/PhaseIITDRFall17MiniAOD-PU200_93X_upgrade2023_realistic_v2-v1/MINIAODSIM#f423df82-c153-11e7-abc1-02163e018570
with this file in it:
/store/mc/PhaseIITDRFall17MiniAOD/GluGlu_HToMuMu_M125_14TeV_powheg_pythia8/MINIAODSIM/PU200_93X_upgrade2023_realistic_v2-v1/30000/D85DBD3D-51C1-E711-9547-7CD30AD0A1F8.root

A new issue has been created: https://github.com/dmwm/WMCore/issues/8300
and the file mentioned above should have been injected to DBS already. Jean-Roch, can you please x-check and close it if everything looks fine now? Thanks


Special syntax to wrap cell in a string macro

I think that given that we don't have a way to hook into custom repl modes other than the ones hard coded into IJulia, it could be really nice to have a special syntax for wrapping the contents of a cell in a string macro. The idea would be that the string macros used in this way are analogous to custom repl modes, and the special syntax would allow us to use them in such a way that would not interfere with syntax highlighting and would require less typing.
For instance, if someone did using PyCall, they have access to the py_str macro so they could just have a codeblock that looks like
%% py
import numpy as np

def sinpi(x):
    return np.sin(np.pi * x)

sinpi(1)

would be translated into
py"""
import numpy as np

def sinpi(x):
    return np.sin(np.pi * x)

sinpi(1)
"""

Alternatively to the %% syntax, maybe we could just handle a comment on the first line specially, i.e. #mode mymode would use the mymode_str macro? I'm not sure what the best syntax to use would be.

I'm not sure why %% py is better than py""" .... """  other than saving a couple characters?  The latter has the advantage that it won't be formatted as Julia code.

Yes, maybe PyCall is a poor example because Python's indentation style could cause headaches.
Basically, my intention would be to use this for special repl-like modes. There are cases where one might want to use a string macro for a code block but still mostly adhere to Julia's indentation rules. One example being https://github.com/swadey/LispSyntax.jl, or something like PyCall but for Matlab. Another example would be a side-project I'm working on to support Bra-Ket notation in julia with a string macro.


Support Azure Managed Disks

New Feature
Currently there is only support for unmanaged disks.  Azure virtual machines deployed with managed disks are not compatible with unmanaged volumes.
Rexray also lacks support for scale sets, as the libstorage driver cannot connect managed disks to scale set instances.
Including support for this feature would allow for much broader use of rexray within Azure.

++1

This is a duplicate of #806.


bugfix: add --name following container name in cmd

make CI happy
Signed-off-by: Wei Fu<EMAIL_ADDRESS>
Ⅰ. Describe what this PR did
NONE
Ⅱ. Does this pull request fix one issue?

NONE
Ⅲ. Describe how you did it
NONE
Ⅳ. Describe how to verify it
NONE
Ⅴ. Special notes for reviews

Codecov Report

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

@@            Coverage Diff             @@
##           master    #1924      +/-   ##
==========================================
- Coverage    62.8%   62.78%   -0.02%
==========================================
  Files         200      200
  Lines       15567    15567
==========================================
- Hits         9777     9774       -3
- Misses       4544     4546       +2
- Partials     1246     1247       +1

Flag
Coverage Δ

#criv1alpha1test
33.25% <ø> (-0.03%)
:arrow_down:

#criv1alpha2test
33.71% <ø> (-0.02%)
:arrow_down:

#integrationtest
37.99% <ø> (+0.05%)
:arrow_up:

#unittest
20.7% <ø> (ø)
:arrow_up:

Impacted Files
Coverage Δ

daemon/logger/jsonfile/utils.go
71.54% <0%> (-1.63%)
:arrow_down:

daemon/mgr/container.go
53.85% <0%> (-0.16%)
:arrow_down:

cri/v1alpha2/cri.go
66.13% <0%> (+0.17%)
:arrow_up:

LGTM


directory size is not calculated past the root level

It appears that the directory sizes are not calculated past the root.

Let's ignore the fact that I should have used --no-cache-dir, but I think that looks like an inconsistency.
To clarify, I am not sure if /root should show 77MB or 0. I am thinking that there should be an option to show the size that a directory contains, because all directories are "effectively" 0 (or very close to 0).
~tommy

Also, for what its worth, the color is probably wrong. from /root/.cache down should have been green?

I feel like this may be related to #45 .

@wagoodman I think you are right, but mine is more colorful, we can close this as a duplicate of #45


Switching to PHP7

I'm loving the stack so far, but I'd prefer to use PHP 7.1 instead of 5.6.

Thanks @wickedurge !
We're planning to make this a setting in setup.yml but for now you can use PHP 7.1 with just a couple of file edits:

change the first line in provision/wp/Dockerfile to FROM wordpress:php7.1-fpm
change the last line in provision/wp/zz-php.ini to zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20160303/xdebug.so

We're adding this to documentation too while we implement the setting in the setup configuration file.

Hi @wickedurge, further to @tiojoca's instructions and just to clarify: those steps should be taken after cloning the repo and before running ./setup.rb.
Alternatively, if you'd like to make the swap on the project you've already started set up, make those changes and then to replace the _wp container (which contains PHP), run the following commands,  replacing <project slug> as appropriate in the second one:
docker rmi <project slug>_wp
./setup.rb --reinstall```

But as @tiojoca mentioned, we'll shortly implement this as a setup option. Thanks for bringing it to our attention.

Awesome stuff, thanks!
I'm including my steps because it's still not quite working and hopefully someone else will find it useful.
I made the suggested changes to Dockerfile and zz-php.ini. No problems there.
It took a little Googling to get the docker commands to work (I'm very new with docker). docker-compose rm --stop worked fine. But, I ended up using docker rmi <project slug>_wp -f in order to get it to stop.
I then ran ./setup.rb --reinstall. Everything looked fine until that last few lines:
WARNING: Image for service wp was built because it did not already exist. To rebuild this image you must use docker-compose build or docker-compose up --build.
fabricaproject_db is up-to-date
Recreating f8d2a2c06c2c_f8d2a2c06c2c_fabricaproject_wp

ERROR: for wp  No such image: sha256:ecf5f1399347fcec01d54b257b861029ea195b041bf7cd0dcd24a3942b083e4c
ERROR: Encountered errors while bringing up the project.
[Fabrica] ⚠  Docker containers provision failed.

Turns out it's a bit trickier than we thought to live-swap the _wp container on an existing installation, but the following steps should sort it out (NB it'll replace the database).
cd dev
docker-compose down --volumes --rmi local
cd ..
./setup.rb --reinstall

In the meantime we've pushed some changes so that if you set up a new project you'll only have to modify the /provision/wp/Dockerfile as above between clone and setup (ie. not php.ini), and we'll shortly add a setup parameter to automate that too.
Thanks!

And we're officially back in business!
Thank you for your help and for making such a cool tool. If you ever need a "WordPress hero" for testing or something, drop me a line.

Glad to hear, thank you @wickedurge !


Fix NPE on stopping the stream

fixes https://github.com/alejandrorosas/android-uvc-rtmp-stream/issues/83

perfect


Automated cherry pick of #3978: cloudnet: fix validating "action"

Cherry pick of #3978 on release/2.13.
#3978: cloudnet: fix validating "action"

Codecov Report

:exclamation: No coverage uploaded for pull request base (release/2.13@78766f7). Click here to learn what that means.
The diff coverage is n/a.

@@              Coverage Diff               @@
##             release/2.13   #3982   +/-   ##
==============================================
  Coverage                ?   6.94%
==============================================
  Files                   ?     505
  Lines                   ?   85006
  Branches                ?       0
==============================================
  Hits                    ?    5906
  Misses                  ?   78599
  Partials                ?     501

Flag
Coverage Δ

#aFlag
6.94% <ø> (?)

Continue to review full report at Codecov.

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

/lgtm

/lgtm

/approve

/lgtm

/approve


Add support for postgresql

If sqlite is created+killed on every request by Grafana, sqlite can not keep an index cache in memory and will need to rebuild it from scratch on every query. This is something I observed: a fairly simple retrieval of data for 7 days back can take up to 2-3 seconds on Raspberry PI. Having a proper PostgreSQL database could fix that.
Grafana has direct out-of-the-box support for PostgreSQL: https://grafana.com/docs/grafana/latest/datasources/postgres/
The outstanding question is: how to access PosgreSQL from Kotlin Native ARM. There's an unanswered question on Kotlin forums in this regard: https://discuss.kotlinlang.org/t/ktolin-native-and-postgresql-connections/25780 , so I'll assume that there's no support for that out-of-the-box.
Couple of solutions:

Access PostgreSQL via ODBC: https://odbc.postgresql.org/ . The problem is that I have no idea how to access ODBC from Kotlin Native.
https://cashapp.github.io/sqldelight/ only supports PostgreSQL via JDBC+Java so that's a no.
There's a C native client for PostgreSQL: https://www.postgresql.org/docs/current/libpq.html but I'm too lazy to figure out how to use it in Kotlin Native.
There's https://postgrest.org/en/stable/ which allows to access PostgreSQL via REST, which sounds good, BUT
There's a native command-line client for postgresql which is by far easiest to run.

I'll try implementing the support via the command-line client.

Here's an example on how to run a SQL query via command-line: https://stackoverflow.com/questions/18223665/postgresql-query-from-bash-script-as-database-user-postgres

Implemented in Controller 0.2


service loadbalancer - unsupported protocol scheme

I am running kube cluster with three servers acting as master and node.
Overlay networking is flannel.
I0119 15:53:00.203897       1 service_loadbalancer.go:550] Creating new loadbalancer: {Name:haproxy ReloadCmd:./haproxy_reload Config:/etc/haproxy/haproxy.cfg Template:template.cfg Algorithm: startSyslog:false lbDefAlgorithm:roundrobin}
E0119 15:53:00.204072       1 service_loadbalancer.go:241] Get : unsupported protocol scheme ""
I0119 15:53:00.204514       1 loadbalancer_log.go:38] Starting syslog server for haproxy using /var/run/haproxy.log.socket as socket
This is the error, when I run rc.yaml,
cat rc.yaml
apiVersion: v1
kind: ReplicationController
metadata:
name: service-loadbalancer
labels:
app: service-loadbalancer
version: v1
spec:
replicas: 1
selector:
app: service-loadbalancer
version: v1
template:
metadata:
labels:
app: service-loadbalancer
version: v1
spec:
nodeSelector:
role: loadbalancer
containers:
- image: gcr.io/google_containers/servicelb:0.2
imagePullPolicy: Always
name: haproxy
ports:
# All http services
- containerPort: 8080
hostPort: 80
protocol: TCP
# haproxy stats
- containerPort: 1936
hostPort: 1936
protocol: TCP
resources: {}
args:
- --tcp-services=hellotom-svc:8080
- --syslog
$ kubectl get svc
NAME           CLUSTER_IP       EXTERNAL_IP   PORT(S)    SELECTOR        AGE
hellotom-svc   <IP_ADDRESS>           8080/TCP   app=hello-tom   2h

kubectl version
Client Version: version.Info{Major:"1", Minor:"1", GitVersion:"v1.1.4", GitCommit:"a5949fea3a91d6a50f40a5684e05879080a4c61d", GitTreeState:"clean"}
Server Version: version.Info{Major:"1", Minor:"1", GitVersion:"v1.1.4", GitCommit:"a5949fea3a91d6a50f40a5684e05879080a4c61d", GitTreeState:"clean"}
Cluster running on ubuntu 14.04.3

@rnagarajan12 can you please try service-loadbalancer from master to get the correct log line ?

@remoe in the cluster node is also master,
I found something else in the logs,
api-server.log
logs.go:40] http: TLS handshake error from :42853: remote error: bad certificate
kube-proxy.log
24726 proxysocket.go:165] I/O error: write tcp <IP_ADDRESS>:43514: broken pipe
$ kubectl  exec -it lb-tom-7v3cu -- ip ad li |grep eth0
507: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1472 qdisc noqueue state UP
inet <IP_ADDRESS>/24 scope global eth0
looks like, api server not accepting connection load-balancer pod.
I am running load balancer with these args, still certificate errors???
args:
26         - --tcp-services=hellotom-svc:8080
27         - --syslog
28         - --server=https://api-server-url:6443
29         - --insecure-skip-tls-verify

@rnagarajan12 your logs are not from https://github.com/kubernetes/contrib master, so you don't use the original code from here: https://github.com/kubernetes/contrib/tree/master/service-loadbalancer
And the other errors are configuration issues of your kube setup.

@remoe
Hey ,
Right now I am using gcr.io/google_containers/servicelb:0.2 image!
How can I run service-loadbalancer from master branch?
Thanks

ok, you don't need to build from master, your issue is not a service-loadbalancer issue.
You can try to ask here: http://stackoverflow.com/questions/tagged/kubernetes

I think it is, service-loadbalancer can not connect to api-server. My other services can connect to api-server, for ex, controller, scheduler, proxy but not this loadbalancer.
So far I explored kubernetes myself, I will try to figure it out.
Thanks for your help

I found the problem and fixed.
KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT  env variables needed to be changed, the default one had pointing to cluster IP, but the cert is only valid for FQDN.

great! now you can close the issue?

Thanks , I am having other issues, I will debug further.


Update install.rst

Latest versions of Django do not create account_profile. Also the syncdb command is replaced by migrate.

We don't want to lock Graphite to an old version of Django. If there are problems with newer versions we should fix those issues. Thank you for the proposed change though.


Dropdown Component

Closes #19

TODO

[x] Styling for selected item
[x] Ability to select multiple options
[ ] Add checkbox icon to selected options
[ ] Styling for when the dropdown renders above the search field

The remaining TODOs can potentially be addressed as separate tickets since the final design is still TBD

I think this is fine to merge. We can revisit the other details once we have completed designs.


Revise Volume Imaging Ex for use of newly released panel-neuroglancer

Resolves #481
The primary approaches have been reworked around the installable package panel-neuroglancer, rather than depending on a in-notebook coded implementation.
The in-notebook coded implementation was retained but reframed to be about understanding the underlying implementation and about further customization, with added some explanation of the machinery.

⚠  It's already known that the in-notebook apps are not rendering properly on the docs site or deployment, and this should NOT block review approval.

I was trigger-happy and merged this PR before the last commit was finished running through the CI because it only contained minor wording style changes based on the review feedback, and since the CI was passing prior to that commit.
But…. I think that messed up the github workflows chain of dependencies which maybe expects that the PR CI finished before merging because now the deployed main website does not contain the wording updates made in the last commit of the PR and the test+build+deploy action is failing.
IMO, it’s not urgent to address, but I wanted to document that deployed site does not match the latest (squashed) commit that has now been merged into main. I’m tempted to click ‘Revert’ on this merged PR page and see if that allows the PR CI to rerun in full successful and then I can remerge the PR and wipe everything under the rug, but I’m worried that will break things on main/deployed website somehow and with some of our more infra-familiar team away for holidays, I have a very low risk tolerance so I think things will stay as they are for a few more days.
lesson learned


[New Feature]: Adding persistence to theme in the web-page using cookies

🎮 feature Request
When the page is reloaded, the theme resets to default, which is dark. When a user changes the theme, it should persist through reloads. For example, when I change the page to light, and reload the page, or close the site and visit some other time, the theme should remain light.
Point down the features

Persist the website theme through reloads

Select program in which you are contributing
GSSoC24
Code of Conduct

[X] I follow CONTRIBUTING GUIDELINE of this project.

please assign this issue to me

If you have any doubt you can directly send message on our discord (https://discord.gg/rZb46cCMmK), we have created separate channals for all projects...
Thank you :)

I will work on this and report to you!

Please add the level for this issue.


[Issue] DuplicateHider not working on Playnite V9

I do not know when it stopped working but I remember it working perfectly on Playnite V8 and not working at all in later versions of Playnite V9.

Don't want to create new issue so will post log from playnite:
25-12 11:10:44.901|ERROR|MainMenu:Main menu extension action failed.
System.ArgumentNullException: Wartość nie może być zerowa.
Nazwa parametru: input
w System.Text.RegularExpressions.Regex.Replace(String input, MatchEvaluator evaluator)
w DuplicateHider.NumberToRomanFilter.ApplySingle(String& input) w D:\Programmierung\playnite-dev\DuplicateHider\source\Filters\StringFilters.cs:wiersz 133
w DuplicateHider.IFilter1.Apply(T& input) w D:\Programmierung\playnite-dev\DuplicateHider\source\Filters\IFilter.cs:wiersz 53    w DuplicateHider.DuplicateHiderPlugin.GetFilteredName(Game game, IFilter1 filter) w D:\Programmierung\playnite-dev\DuplicateHider\source\DuplicateHiderPlugin.cs:wiersz 1381
w DuplicateHider.DuplicateHiderPlugin.BuildIndex(IEnumerable1 games, IFilter1 gameFilter, IFilter`1 nameFilter) w D:\Programmierung\playnite-dev\DuplicateHider\source\DuplicateHiderPlugin.cs:wiersz 1216
w DuplicateHider.DuplicateHiderPlugin.b__60_0(MainMenuItemActionArgs context) w D:\Programmierung\playnite-dev\DuplicateHider\source\DuplicateHiderPlugin.cs:wiersz 745
w Playnite.DesktopApp.Controls.MainMenu.<>c__DisplayClass18_2.b__1(Object _, RoutedEventArgs __) w C:\projects\playnite\source\Playnite.DesktopApp\Controls\Menus\MainMenu.cs:wiersz 387

@Krekot that's very odd. This error indicates that a game name is somehow null. Do you have any custom replacement rules set up?

I suppose no. I just installed it today (Playnite) and added few addons (libraries, DH_Night theme). How to check it?

If you didn't set them up yourself, there won't be any. Are there games in your list with an empty name?

Yes, 13 games from Amazon library.

This is the cause for the crash. I can fix such that it won't crash in that case. In the meantime you can set the name of those games manually or delete them. Those games not having a name is apparently a bug in the library integration and shouldn't happen anyway.

Thanks a lot. Removing that games fixed this.

This is the error that I got with DuplicateHider:
30-12 12:54:56.030|ERROR|ExtensionFactory:Failed to load plugin: DuplicateHider Newtonsoft.Json.JsonSerializationException: Unexpected end when reading JSON. Path 'CustomGroups[11]', line 151, position 0.    at Newtonsoft.Json.JsonReader.ReadAndAssert()    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateList(IList list, JsonReader reader, JsonArrayContract contract, JsonProperty containerProperty, String id)    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, Object existingValue, String id)    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)    at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)    at Newtonsoft.Json.JsonSerializer.Deserialize[T](JsonReader reader)    at Playnite.Common.Serialization.FromJsonStream[T](Stream stream) in C:\projects\playnite\source\Playnite\Common\Serialization.cs:line 272    at Playnite.Common.Serialization.FromJsonFile[T](String filePath) in C:\projects\playnite\source\Playnite\Common\Serialization.cs:line 302    at Playnite.Common.DataSerializer.FromJsonFile[T](String filePath) in C:\projects\playnite\source\Playnite\Common\Serialization.cs:line 90    at Playnite.SDK.Data.Serialization.FromJsonFile[T](String filePath) in C:\projects\playnite\source\PlayniteSDK\Data\DataSerialization.cs:line 356    at Playnite.SDK.Plugins.Plugin.LoadPluginSettings[TSettings]() in C:\projects\playnite\source\PlayniteSDK\Plugins\Plugin.cs:line 323    at DuplicateHider.DuplicateHiderSettings..ctor(DuplicateHiderPlugin plugin) in D:\Programmierung\playnite-dev\DuplicateHider\source\DuplicateHiderSettings.cs:line 301    at DuplicateHider.DuplicateHiderPlugin..ctor(IPlayniteAPI api) in D:\Programmierung\playnite-dev\DuplicateHider\source\DuplicateHiderPlugin.cs:line 69

It would seem that your config.json for DuplicateHider has been corrupted. I don't know how though, probably due to Playnite crashing at some point while writing to it.
You need to locate the ExtensionData folder in your Playnite's config folder. The folder for DuplicateHider should start with 382f8003. In that folder you should find config.json. If you know how to close a json file you can try to fix it. Otherwise you can either upload it and I will try to fix it or you can simply delete it and a new one will be created when Playnite launches. The second option will require you to reconfigure DuplicateHider, including custom groups and replacement rules.


the cards in the docs/card are overflowing on top of one another at 100% zoom level view of screen

the cards in the docs/card are overflowing on top of one another at 100% zoom level view , but they are perfect at 90% zoom level
100% zoom level view is the default view for any pc
https://github.com/user-attachments/assets/5c502eb4-b50a-49c7-b3be-a6059c9e3119
expected behaviour :
they should align perfectly at the 100% zoom level

assign me ,
i can fix this issue

@ganeshkondaka Mine is 14 inch screen and it's having much more alignment issues. fix the alignment for 14 inch too

but @arihantcodes wants contributers to add more components rather than solving these minor issues , i guess .
and yeah that is also true , we can solve these issues later aswell .


index.ts is not part of the compilation output

Hello
I have a fresh Angular 5.0.1 application, and i trying to include javascript api<EMAIL_ADDRESS>into my project:
But every time that  I instatiate new ApiAiClient in my project i get the following error:
ERROR in ./node_modules/api-ai-javascript/index.ts
Module build failed: Error: /home/andre/Sites/chatbot/node_modules/api-ai-javascript/index.ts is not part of the compilation output. Please check the other error messages for details.
    at AngularCompilerPlugin.getCompiledFile (/home/andre/Sites/chatbot/node_modules/@ngtools/webpack/src/angular_compiler_plugin.js:629:23)
    at plugin.done.then (/home/andre/Sites/chatbot/node_modules/@ngtools/webpack/src/loader.js:467:39)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
 @ ./src/app/chat.service.ts 12:0-48
 @ ./src/app/chat/chat.module.ts
 @ ./src/app/app.module.ts
 @ ./src/main.ts
 @ multi webpack-dev-server/client?http://<IP_ADDRESS>:0 ./src/main.ts

Any ideas?

Having the same issue.

I made a work around.

Add include in tsconfig.app.json

  "include": [ "../node_modules/api-ai-javascript/**/*.ts", "**/*.ts" ],

Then replace your node_modules/api-ai-javascript/ts/Interface.ts
/**
 * Copyright 2017 Google Inc. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

import {ApiAiConstants} from './ApiAiConstants';

export interface IRequestOptions {
    query?: string;
    event?: {name: string, data?: IStringMap};
    sessionId?: string;
    lang?: ApiAiConstants.AVAILABLE_LANGUAGES;
}

export interface IServerResponse {
    id?: string;
    result?: {
        action: string,
        resolvedQuery: string,
        speech: string;
        fulfillment?: {
            speech: string
        },
        contexts?: [string],
        parameters?: {
            [index: string]: string;
        },
        metadata?: {
            intentId: string,
            intentName: string,
            webhookForSlotFillingUsed: boolean,
            webhookUsed: boolean,
        }
    };
    status: {
        code: number,
        errorDetails?: string,
        errorID?: string,
        errorType: string
    };
}

export interface IStringMap { [s: string]: string; }

export interface IApiClientOptions {
    lang?: ApiAiConstants.AVAILABLE_LANGUAGES;
    version?: string;
    baseUrl?: string;
    sessionId?: string;
    streamClientClass?: IStreamClientConstructor;
    accessToken: string;
}

export interface IStreamClientConstructor {
    new (options: IStreamClientOptions): IStreamClient;
}

export interface IStreamClient {
    init(): void;
    open(): void;
    close(): void;
    startListening(): void;
    stopListening(): void;
}

export interface IStreamClientOptions {
    server?: string;
    token?: string;
    sessionId?: string;
    lang?: ApiAiConstants.AVAILABLE_LANGUAGES;
    contentType?: string;
    readingInterval?: string;
    onOpen?: () => void;
    onClose?: () => void;
    onInit?: () => void;
    onStartListening?: () => void;
    onStopListening?: () => void;
    onResults?: (data: IServerResponse) => void;
    onEvent?: (eventCode: IStreamClient.EVENT, message: string) => void;
    onError?: (errorCode: IStreamClient.ERROR, message: string) => void;
}

export namespace IStreamClient {
    export enum ERROR {
        ERR_NETWORK,
        ERR_AUDIO,
        ERR_SERVER,
        ERR_CLIENT
    }
    export enum EVENT {
        MSG_WAITING_MICROPHONE,
        MSG_MEDIA_STREAM_CREATED,
        MSG_INIT_RECORDER,
        MSG_RECORDING,
        MSG_SEND,
        MSG_SEND_EMPTY,
        MSG_SEND_EOS_OR_JSON,
        MSG_WEB_SOCKET,
        MSG_WEB_SOCKET_OPEN,
        MSG_WEB_SOCKET_CLOSE,
        MSG_STOP,
        MSG_CONFIG_CHANGED
    }
}

The issue will be fixed after the merge.

Hi thanks @amalshehu that really help, after doing the modifications you suggested i also had to change the TTSRequests.ts file inside the Requests folder.
I removed these two lines:
  this.uri = ApiAiConstants.DEFAULT_TTS_HOST;     const AudioContext = window.AudioContext || webkitAudioContext;
Then everything worked!


Escape env var substitution for env vars passed with an extra $, eg: $$UFFIZZI_URL

Describe the bug
When passing ENDPOINT=$$UFFIZZI_URL node start as a value in the docker-compose command spec, $$UFFIZZI_URL is not escaped.
https://stackoverflow.com/questions/40447029/docker-compose-environment-variable-for-command
Expected behavior
$$UFFIZZI_URL is not set during parsing the docker-compose an d is escaped instead.
Instead $UFFIZZI_URL is then picked up from the container.
Additional context
This is a workaround for https://github.com/UffizziCloud/uffizzi_app/issues/251

docker-compose
command: "ENDPOINT=$$UFFIZZI_URL node start"

kubernetes manifest
container:
  command: "ENDPOINT=$UFFIZZI_URL node start"

Docker Docs reference:
https://docs.docker.com/compose/compose-file/#variable-substitution

@moklidia here you go
# This compose file is for demonstration only, do not use in prod.
version: "3.9"

x-uffizzi:
  ingress:
    service: app
    port: 3001

services:
  app:
    depends_on:
      - "postgres"
    image: "${APP_IMAGE}"
    ports:
      - 3001:3001
    environment:
      ALL_YES: 1
      NO_INQUIRY: 0
      TRUST_PROXY_HEADER: 1
      DB_URL_DEFAULT: postgres://postgres:p0stgr3s@localhost:5432
    deploy:
      resources:
        limits:
          memory: 2000M
   command:  "ENDPOINT=$$UFFIZZI_URL node start"

  postgres:
    image: postgres:14-alpine
    user: postgres
    environment:
      POSTGRES_USER: "postgres"
      POSTGRES_PASSWORD: "p0stgr3s"
    deploy:
      resources:
        limits:
          memory: 500M

@waveywaves  I try to reproduce this case and it works

version: '3'

services:
  app:
    build:
      context: https://github.com/zipofar/test_node
      dockerfile: Dockerfile
    entrypoint: /bin/bash
    command:
      - "-c"
      - "ENDPOINT=$$UFFIZZI_URL node /app/app/app.js"

x-uffizzi:
  ingress:
    service: app
    port: 80

  continuous_preview:
    delete_preview_after: 10h

I think this problem was because we should set entrypoint and set command like example above. It looks like the command prop does not user friendly at this moment.

This is helpful @zipofar. Glad to know its not really a bug then. I will test this out once. This helps reduce the configuration files for logto immediately. 🙂

Closing this as this already works and we have found a way to use this from the docker-compose file.


Vmec adjoint

This PR includes an implementation of an adjoint-based shape gradient for iota and the magnetic well from vmec equilibria.  The parameter derivatives are computed from the shape gradient using the parameter_derivatives function for any surface type. Included is an example of adjoint-based optimization for a target iota profile.

Looks great. Could you also merge in master and resolve the merge conflicts?
I'll mention one thing to be aware of. In the vmec_adjoint.py example now, since LeastSquaresProblem was removed, I'm pretty sure the fixed dofs are not actually held fixed. This is because set_dofs() and get_dofs() set and return all the dofs, even fixed ones. This means "max_modes" is not respected. To pick out just the non-fixed dofs, I think after each call to surf.fixed_range() in the loop you can create an object myfunc=simsopt._core.dofs.Dofs(obj), where obj is the IotaTargetMetric already defined. Then I think myfunc.f and myfunc.jac give handles to the objective function and gradient for only the non-fixed dofs. Since Dofs() works with vector-valued objectives, you probably need to pick out the first element of f and squash a dimension of jac.
(This will likely change when Bharat gets the new graph system working...)

I have modified the example as you suggest and merged in master.


Create FDC3 Kanban Board

Set up board on 2019.10.10. It's at https://github.com/orgs/FDC3/projects/1


[Jsontracer] Add level to render bar-graph

This will render level-container. The level container will contain several bars on the bar chart.
ONE-vscode-DCO-1.0-Signed-off-by: Jisu Park<EMAIL_ADDRESS>

from draft #126
from issue #94


Minify build

Add babel-preset-minify to shrink bundle.

Codecov Report

Merging #21 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff          @@
##           master    #21   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files           4      4
  Lines          34     34
  Branches        2      2
=====================================
  Hits           34     34

Continue to review full report at Codecov.

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


Add QuickNode to the list of JSON RPC providers in the Hedera ecosystem

Problem
it appears QuickNode is now supporting Hedera Testnet and Mainnet. We should add it to the list of providers on our docs pages.
https://x.com/hbar_foundation/status/1816863294247862775?s=46&t=11Y-sYadrUJfPVoGh6w7Aw
https://x.com/quicknode/status/1816855025660137866?s=46&t=11Y-sYadrUJfPVoGh6w7Aw
Solution
Update: https://docs.hedera.com/hedera/core-concepts/smart-contracts/deploying-smart-contracts/json-rpc-relay
and other places where JSON RPC providers are listed
Alternatives
No response

Resolved in 2f61a25


CC0 License

@KiritoDv
@Ryan-Myers
@petrie911
@inspectredc
Hi!
You are mentioned here because you previously contributed to the sonicdcer/sf64 repo, a decompilation of the game Starfox 64.
There is a move to license the source of that repo under CC0, and for that we need your permission, as past contributors.
Why?
The sf64 decomp source code is currently under no explicit license.
This means authors reserve all rights about the source being shared, modified, ... (see for example https://choosealicense.com/no-permission/) besides the basic rights granted by the GitHub TOS, mainly forking.
This makes many people feel uneasy about using the source, since it's not explicitly allowed to be used.
Note the unofficial stance though, is that people can do whatever they want with the code without having to ask or credit.
The goal is to make that stance official. However to do it properly we need to ask the authors if they are okay with it.
Which license?
CC0 is a license that seems to fit the unofficial stance.
It can be thought of as "public domain", or a more robust version of the Unlicense.
It also has the added benefit that it does not consist of a copyright affirmation, which is good given the murky waters decompilation is in.
Read about CC0:
https://creativecommons.org/publicdomain/zero/1.0/
https://choosealicense.com/licenses/cc0-1.0/
https://wiki.creativecommons.org/wiki/CC0_FAQ
If you agree, you can reply to this PR with some message like "I agree to share all my contributions to the sf64 decomp under CC0"

I agree to share all my contributions to the sf64 decomp under CC0

I agree to share all my contributions to the sf64 decomp under CC0

I agree to share all my contributions to the sf64 decomp under CC0

I agree to share all my contributions to the sf64 decomp under CC0


Exception does not contain spaces

Describe the bug
I'm using java to develop a webservice and when I throw an exception it returns the correct response code, however the message does not contain spaces.
To Reproduce
Steps to reproduce the behavior:

throw exception that contains spaces in its messages in the app

Expected behavior
The returned message should contain spaces.
Screenshots
Insomnia:

Postman:

Desktop (please complete the following information):

OS: Windows 10
Installation Method: Chocolatey
App Version: 2020.3.3

I am having the same issue as you do.
A temporary workaround is to switch from Visual Preview to Raw Data in the right panel, at the top.

Hi, I'd like to try do this, would I?

The problem isn't really about exception messages. It happens on success too:

This is happening because an incorrect header is set (application/json) by the server when the response isn't a valid JSON. The issue gets resolved if either the header is set properly (text/plain):

or if the response is sent as a valid JSON:

The spaces are removed by insomnia-prettify's json.js because it does not expect spaces outside a string.

A simple (and maybe naive) solution is to only prettify the response if it's valid json otherwise display the response as is. However, it seems like insomnia-prettify prettifies json with trailing commas (which is not valid json), see trailing-comma-input.json.


IdentityServer4 service-to-service communication Error UntrustedRoot

The script working fine in Chrome but when communicating service to service (calling an Identity service). Getting this error please suggest, I am using the script provided repository as self-signed certificates.
My system Ubuntu 20, ASPNET Core 5 and IdentityServcer4
System.InvalidOperationException: IDX20803: Unable to obtain configuration from: 'System.String'.
---> System.IO.IOException: IDX20804: Unable to retrieve document from: 'System.String'.
---> System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid because of errors in the certificate chain: UntrustedRoot
at System.Net.Security.SslStream.SendAuthResetSignal(ProtocolToken message, ExceptionDispatchInfo exception)
at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
at System.Net.Http.ConnectHelper.EstablishSslConnectionAsyncCore(Boolean async, Stream stream, SslClientAuthenticationOptions sslOptions, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at System.Net.Http.ConnectHelper.EstablishSslConnectionAsyncCore(Boolean async, Stream stream, SslClientAuthenticationOptions sslOptions, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.GetHttpConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.SendAsyncCore(HttpRequestMessage request, HttpCompletionOption completionOption, Boolean async, Boolean emitTelemetryStartStop, CancellationToken cancellationToken)
at Microsoft.IdentityModel.Protocols.HttpDocumentRetriever.GetDocumentAsync(String address, CancellationToken cancel)
--- End of inner exception stack trace ---
at Microsoft.IdentityModel.Protocols.HttpDocumentRetriever.GetDocumentAsync(String address, CancellationToken cancel)
at Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectConfigurationRetriever.GetAsync(String address, IDocumentRetriever retriever, CancellationToken cancel)
at Microsoft.IdentityModel.Protocols.ConfigurationManager1.GetConfigurationAsync(CancellationToken cancel)    --- End of inner exception stack trace ---    at Microsoft.IdentityModel.Protocols.ConfigurationManager1.GetConfigurationAsync(CancellationToken cancel)
at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync()
at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync()
at Microsoft.AspNetCore.Authentication.AuthenticationHandler`1.AuthenticateAsync()
at Microsoft.AspNetCore.Authentication.AuthenticationService.AuthenticateAsync(HttpContext context, String scheme)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)
HEADERS
Connection: keep-alive
Accept: /
Accept-Encoding: gzip, deflate, br
Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IkQ4ODA4MUYxQ0IzMDE5OTgzQUI1MUI2RTgzRTg2Qjc4IiwidHlwIjoiYXQrand0In0.eyJuYmYiOjE2MjQ3NzQzMzQsImV4cCI6MTYyNDc3NzkzNCwiaXNzIjoiaHR0cHM6Ly9sb2NhbGhvc3Q6NTAwMyIsImNsaWVudF9pZCI6InBvc3RtYW4iLCJzdWIiOiIwODQwNTJlNS0xMTE0LTQ1MDQtYTA3Ny1lNzBlOTM3ZDAyZDQiLCJhdXRoX3RpbWUiOjE2MjQ3NzQzMzIsImlkcCI6ImxvY2FsIiwianRpIjoiNUVGMjNGQzI1MzVEQzJDRDNGRkQwQkQ3NTBFMkQ3QjkiLCJzaWQiOiI1MjREQzk2MTA0M0VCM0JGMTg0QUE5NjI0RTc5NEMzRCIsImlhdCI6MTYyNDc3NDMzNCwic2NvcGUiOlsib3BlbmlkIiwicHJvZmlsZSJdLCJhbXIiOlsicHdkIl19.sT2dCuwzBrs2B42-WGeiF56e24HWtHe6OHsd9xvAJSZvL3MB06dqW-32R_HQmhOYLQOBv6XRuJbPYT7mxtr1OdsG8PSCygrwi-ZAtEHBX9AjBju6QpJXieHWaXaLKqJzfKFC8llxmlvIFu0vsw-bl7QL09GrssP5OWLHSd6GX-hS8CrOzCt1JJ9rmCS_52rs2E8sN6cQ69y-sGBPjBEs6GySQJ1FJCBRcyjHM1X4-mcH5vbpr2F7rFc2Jv9qNtdmHKEeqhy4jzSaJKi-CpizoLzM4pLoL-UonLJGghDlBuu_1lkPobxROHMs2yWMVngXmqLww-QjycePJgrBHP7C1w
Host: localhost:5001
User-Agent: PostmanRuntime/7.28.0
Postman-Token: 2be93479-50ab-4f5e-8e9b-1e6445ee96bf

I cannot reproduce this issue. Anyone else does have this issue?

I think you have to configure ID4 to accept self signed certs.

I think you have to configure ID4 to accept self signed certs.

If we can use self-signed certs in IdentityServer4, then I'll check and update here. I thought ID4 doesn't support self-signed certificate. Thanks for the reply.

Apologies, it is dotnet core you need to instruct to accept self-signed certificates for authentication.
See:
https://docs.microsoft.com/en-us/aspnet/core/security/authentication/certauth?view=aspnetcore-5.0#configure-certificate-validation
And:
https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.authentication.certificate.certificateauthenticationoptions.allowedcertificatetypes?view=aspnetcore-5.0
And:
https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.authentication.certificate.certificatetypes?view=aspnetcore-5.0

Well with .NET 5 and my script you should not need to configure "accept self-signed-certificates". At least not when everything runs in localhost/the same machine.

Oh, okay. Why is that not needed? The script does generate a certificate not signed by a trusted authority, no?

The script will create a self signed certificate and then trust this certificate in various places (e.g. browser and "system" store) in Linux. it should therefore work with service to service communication as long as everything runs on localhost.

I will close this issue, since I can not reproduce this with the script.

Thanks for the reply, there was certificates issue in my system. I have deleted all existing development certificates and executed the script provided and now it is working fine.
sudo rm -rf /etc/ssl/certs/ht
sudo rm -rf /usr/lib/ssl/certs/ht
sudo rm -rf /usr/local/share/ca-certificates/aspnet/ht
sudo apt-get install --reinstall ca-certificates
sudo update-ca-certificates


Supabase session is able to be overwritten

Bug report

[x] I confirm this is a bug with Supabase, not with my own application.
[x] I confirm I have searched the Docs, GitHub Discussions, and Discord.

Not 100% on this being a Supabase bug, but if not the documentation seems a tad lacking?
Describe the bug
Following along with a tutorial which makes use of Supabase for auth, as well as this auth-helpers dep.
Logging in works fine - I get an auth-token named sb-tbvswgcbrilqlaxdsxii-auth-token

it doesn't look like this cookie is Secure, or has a SameSite policy?

When interacting with stripe, e.g. creating a checkout session or a billingPortal session, it looks like stripe is overwriting this supabase session cookie.
When we return from stripe, the only supabase related cookie we have is sb-tbvswgcbrilqlaxdsxii-auth-token-code-verifier

I've tried searching through the docs and I can't find any specific docs describing how to deal with this cookie

To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:

Go to https://next13-spotify.vercel.app/ (https://github.dev/AntonioErdeljac/next13-spotify/)
Login
Click play on any video, it should initiate the stripe test checkout flow
Once you return to the main app, you're no longer logged in

Expected behavior
Supabase auth should be able to handle redirects from other websites that initiate some separate session flow?
System information

OS: Windows
Browser (if applies) Chrome
Version of supabase-js:

    "@supabase/auth-helpers-nextjs": "^0.7.0",
    "@supabase/auth-helpers-react": "^0.4.0",
    "@supabase/auth-ui-react": "^0.4.2",
    "@supabase/auth-ui-shared": "^0.1.6",
    "@supabase/supabase-js": "^2.23.0",

Version of Node.js: v18.16.0

it doesn't look like this cookie is Secure, or has a SameSite policy?

The clients have cookie options you can pass-in. You can find which parameter to pass them in, depending on what client you're using, here

That might actually be it, good spot @silentworks


[stable/traefik] Invalid TOML generated

Describe the bug
I have enabled TLS on my consul endpoint and would like traefik to connect to it over https rather than http.
However because I am using a self signed certificate traefik does not trust the consul endpoint. Whilst I would like to add the self-signed ca as trusted this does not seem to be possible/trivial.
Instead I am hoping that kvprovider.consul.tls.insecureSkipVerify will do what I need. When I attempt to use this flag with this terraform snippet:
  set {
    name  = "kvprovider.consul.tls.insecureSkipVerify"
    value = true
  }

I get the following error from the traefik pods:
Error reading TOML config file /config/traefik.toml : toml: cannot load TOML value of type string into a Go boolean

Which I assume means the TOML file has been saved with the value set to "true" rather than true. Looking at the template it seems like the problem might be here:
https://github.com/helm/charts/blob/b620b76d5ea772a4893b26edb12ea432b1a2564a/stable/traefik/templates/configmap.yaml#L224
I am not particularly familiar with helm but from googling it seems like this forces all values into strings, which matches the error.
Version of Helm and Kubernetes:
Helm
Client: &version.Version{SemVer:"v2.14.1", GitCommit:"5270352a09c7e8b6e8c9593002a73535276507c0", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.14.0", GitCommit:"05811b84a3f93603dd6c2fcfe57944dfa7ab7fd0", GitTreeState:"clean"}

Helm Provider
0.10.0
Terraform
0.12.2
Kubernetes
1.12.8-gke.10
Which chart:
stable/traefik
What happened:
I get the following error from the traefik pods:
Error reading TOML config file /config/traefik.toml : toml: cannot load TOML value of type string into a Go boolean

What you expected to happen:
The value to be set correctly
How to reproduce it (as minimally and precisely as possible):
Use the kvprovider.consul.tls.insecureSkipVerify field in a chart
Anything else we need to know:

A little off topic, I'm curious, why do you use Terraform to deploy Helm charts?

Could you post the Traefik config.toml in the ConfigMap?

A little off topic, I'm curious, why do you use Terraform to deploy Helm charts?

Hey, its a good question, in general we do not use Terraform for k8s deployments. However we find that there a few charts where it makes sense to do so, for a few reasons:

Logically they are closer to infrastructure resources than (our) application
They interact closely with other infrastructure resources
It is important that they are deployed and ready before other services start
They are common across all teams/clusters
We do not maintain the source code so a full CI pipeline of our own would not make sense for them

The list of services where this applies is quite small but includes:

Traefik
(Google Cloud SQL) SQL Proxy
Datadog/Grafana/Prometheus
Weave Flux

The toml config map looks like:
"traefik.toml": "# traefik.toml\nlogLevel = \"info\"\ndefaultEntryPoints = [\"http\",\"https\"]\n[entryPoints]\n  [entryPoints.http]\n  address = \":80\"\n  compress = true\n    [entryPoints.http.redirect]\n      regex = \"^http://(.*)\"\n      replacement = \"https://$1\"\n      permanent = true\n  [entryPoints.https]\n  address = \":443\"\n  compress = true\n    [entryPoints.https.tls]\n      minVersion = \"1.1\"\n      [[entryPoints.https.tls.certificates]]\n      CertFile = \"/ssl/tls.crt\"\n      KeyFile = \"/ssl/tls.key\"\n[ping]\nentryPoint = \"http\"\n[kubernetes]\n[traefikLog]\n  format = \"json\"\n[accessLog]\n  format = \"json\"\n[accessLog.fields]\n  defaultMode = \"keep\"\n[accessLog.fields.names]\n[accessLog.fields.headers]\n  defaultMode = \"keep\"\n[accessLog.fields.headers.names]\n[consul]\nendpoint = \"http://consul:8500\"\nwatch = true\nprefix = \"traefik\"\n  [consul.tls]\n  \n  insecureSkipVerify = \"true\"\n  \n[acme]\nemail =<EMAIL_ADDRESS>= \"traefik/acme/account\"\nOverrideCertificates = true\nentryPoint = \"https\"\nonHostRule = true\nacmeLogging = true\n  [acme.httpChallenge]\n  entryPoint = \"http\"\n[[acme.domains]]\n   main = \"k8stest.example.com\"\n"
With some very basic parsing:
# traefik.toml
logLevel = "info"
defaultEntryPoints = ["http","https"]
[entryPoints]
  [entryPoints.http]
  address = ":80"
  compress = true
    [entryPoints.http.redirect]
      regex = "^http://(.*)"
      replacement = "https://$1"
      permanent = true
  [entryPoints.https]
  address = ":443"
  compress = true
    [entryPoints.https.tls]
      minVersion = "1.1"
      [[entryPoints.https.tls.certificates]]
      CertFile = "/ssl/tls.crt"
      KeyFile = "/ssl/tls.key"
[ping]
entryPoint = "http"
[kubernetes]
[traefikLog]
  format = "json"
[accessLog]
  format = "json"
[accessLog.fields]
  defaultMode = "keep"
[accessLog.fields.names]
[accessLog.fields.headers]
  defaultMode = "keep"
[accessLog.fields.headers.names]
[consul]
endpoint = "http://consul:8500"
watch = true
prefix = "traefik"
  [consul.tls]

  insecureSkipVerify = "true"

[acme]
email =<EMAIL_ADDRESS>storage = "traefik/acme/account"
OverrideCertificates = true
entryPoint = "https"
onHostRule = true
acmeLogging = true
  [acme.httpChallenge]
  entryPoint = "http"
[[acme.domains]]
   main = "k8stest.example.com"

Yeah it seems like that function you referenced is causing the problem for sure. If you would like I could open the PR for fixing the error.

It would be useful if you could create a PR. I had a look at doing it but not sure how to only skip the function for that one flag.

Oh, I see what you mean

It would be useful if you could create a PR. I had a look at doing it but not sure how to only skip the function for that one flag.

Oh, I see what you mean. Yeah, I believe the only reasonable solution is just removing the | quote from all relevant kvprovider.tls definitions.

Yep, that was my fear. Not ideal, thanks for your input though.


new release soon?

Hey,
is there any ETA for the new release? I really love the application but cannot use it since brew not installing it :(
How could I use it on MacOS ? Build myself?

I've been waiting for a piece of hardware so i can add better cloudkey support. There is no easy way to fix homebrew without making a new release, unfortunately. For now, you can download a pre-built binary from the Releases page and copy it into place. Do the same with the new up.conf config file.


How to Read 2 GB file and Parse it

Hi Team,
Lxml in python is able to read only an element and we can remove it from memory after we parse it. This helps in parsing big file easily without affecting memory.  It has method called iterparse
https://www.ibm.com/developerworks/xml/library/x-hiperfparse/
Is it possible to have something similar , so that we dont need to create a huge string and parse it.
Thanks

Have you considered memmap?
roxmltree designed for small files in mind, so I'm not sure what exactly you want to change to support large files. Also, I have no idea how lxml handles large files.
The core idea of roxmltree is to reduce the number of allocations by reusing an input string as much as possible. So we still need a whole string.

Sorry to reopen an old issue, but I'm trying to handle a 1GB input. I'm running out of memory (16GB) trying to do this in the naive way.
For starters, I'm not sure I understand why -- a 1GB utf-8 string shouldn't take so much RAM, since the representation is just raw bytes.
I'm trying memmap:
let f = std::fs::File::open(path)?;
let mmap = unsafe { memmap2::Mmap::map(&f)? };
let x = std::str::from_utf8(&mmap)?;
let doc = roxmltree::Document::parse(x)?;

but still OOMing at str::from_utf8. This isn't an issue with roxmltree, but in case you have any ideas, it's much appreciated. As you've said here and in #62, this crate is meant for small inputs, so I maybe need to just switch to a streaming reader.

Can you send me the file?
I haven't measured roxmltree overhead, but it should be around 3-4x of the original file. Not good, but not 16GB either.
Ans since it crashes before roxmltree, I would assume something wrong with your file or hardware.

https://www.dropbox.com/s/2qqv3s5nxs8odi7/greater_london.osm?dl=0
I'm mistaken, reading to a string is fine. It is OOMing during Document::parse. This might just be a matter of #63.

Can confirm. It takes 12GB to parse in Release mode. Meaning a 12x overhead. I guess you should wait for #63


Use Little endian encoding in secret connection

Followup PR to #38. Let's wait for https://github.com/tendermint/tendermint/pull/2264 to get merged first.

Whoops just noticed:

Let's wait for tendermint/tendermint#2264 to get merged first.

I can revert if you'd like? Then we can revert the revert

Nah, now that it is merged, let's hope the same get's quickly merged to tendermint to :-)


how to support remote-debugger like electron?

I have a plan to refactor an old application. It is a code editor application that must integrate devtools and support remote debugging.
The Chromium command line provided by electron previously supported remote debugging, but currently no related functions and APIs have been found in Tauri.

Wry has with_devtools. Is this what you looking for?

Hi, @amrbashir how can I use this method in my TauriApplication ? In the main.rs I did not managed to get it work, can you please help me out with this ?

@zozobalogh0817 this is still not published on tauri side, it is planned to be released in the upcoming 1.3 version. See https://github.com/tauri-apps/tauri/pull/5815

@amrbashir Thanks for the quick reply, then I will take an eye on the releases 😄 and wait for the 1.3 excitedly
Till then, Happy engineering 🏗 🥳

The only thing you'd get from that is that you don't have to use target specific cfg flags (the #[cfg(target_os = "windows")]) stuff) as the function would not be actually operational on the other platforms since the respecitve webviews don't have a similar setting.
tldr: No


Turkish Letters

Turkish letters are not supported, can you fix this. thank you

Should be fixed in this commit.
If not:
Can you post the output/screenshot?

Thank you 👍

:)


Proposal: Eliminate magic insert or upsert tracking on Id

In current Marten, when you call DocumentSession.Store(document), it checks for the existence of an assigned identity, and if there is one, assumes in some cases that a document is being inserted rather than an "upsert".
I wrote this feature at some point from a git blame, and I vaguely remember thinking it was a mild improvement to efficiency, but it's magic.
Would anybody mind if we eliminated this behavior in v4? It's a little bit of magic that could easily spoof a user, and it's making some of the internals harder than it should. The upsert in Postgresql is very efficient, so it doesn't matter much IMO.

I'm fine with changing that for the Store method, if it won't decrease performance significantly.
What about Insert method? Currently, it's using Store with identity map internally? Will it also do always upserts? That might be conceptual conflict with what user expects to happen.

@jeremydmiller I ran through the current code and I am fine with removing that behavior. With the new proposed change, will it always be an upsert immaterial of assigned or not? Note that the storage store method still uses the identity map.
If the above changes are going to result in just upsert always then I would propose to rename the method also as Upsert so that it does not result in confusion between Store and Insert. I do understand that Store allows for adding heterogeneous document types. I am more thinking around standardizing the names of the methods.

Correct, if you use the Store() method, it's an upsert no matter what with this proposal.
As for renaming Store() to Upsert() or InsertOrUpdate() (?), do it now I suppose. I'd leave Store() in place and make that [Obsolete].
The Store() name was ripped off from Raven Db, and didn't really matter before we had separate Insert() or Update functions.

@jeremydmiller @mysticmind I'd personally prefer to keep Insert and Update method. I can imagine cases where user would like to get an explicit failure when record does not exist. Especially for the concurrency cases, it might be dangerous to just do upsert.
If we don't want to use identity then maybe we could provide a parameter to upsert function with expected behaviour (Store, InserOnly, UpdateOnly)?

Nobody is proposing eliminating Insert and Update, just renaming the Store() to something that makes clear it's an Upsert, right? You already have separate, distinct methods for whether or not it's an insert, update, or upsert. There's no need to add that extra parameter.
I'd rather leave the signatures alone, but I'm willing to entertain changing Store() to InsertOrUpdate() or CreateOrUpdate() or leave it alone.
I just wanted to get rid of the magic "I can tell it must be an insert by the missing id" logic if we can. But that's also not a huge deal if we decide we want to keep it.

If that change won't change the Insert logic then I’m fine (I was asking as it uses Store underneath).
Regarding the naming, I think that users are familiar with our naming. I understand that it’s not ideal as it’s not telling precisely what’s doing but that would require users to do a lot of changes. Maybe a better option would be adding an extension method as syntactic sugar?

Insert() is not the same functionality as Store() and does not use Store() at all. Store() had some magic logic that would opt to actually use the Insert() logic instead of the normal Store() if there was no prior identity. That very last part is all I want to get rid of for v4.


chore: enable hermetic builds and prefetched dependencies

Required for RHTAP Enterprise Contract

/test "Red Hat Trusted App Test / cosign / rhtas-cli-1-0-beta-enterprise-contract"
I don't think this will work, but let's try it

/retest


SIGSEGV on macOS AARCH64 during GLFW error callback setup

Environment

LWJGL version: 3.3.0
LWJGL build #: 7
Java version: 15
Platform: macOS
Module: core

Description
Consider this mavenized HelloWorld app, depending on native-macos-arm64 LWJGL3 natives. When ran on macOS Big Sur, on a MacBook Pro Apple Silicon, using Azul JDK 15 AARCH64 (so it runs natively), LWJGL3 crashes when setting up the GLFW binding, namely the error callback via libffi. See this crash log for the full stack trace and system info.
Notably, before the callbacks are setup, the jemalloc binding is initialized, printing the following info:
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size

I haven't looked into the sources yet, but I guess something in LWJGL or libffi makes assumption about the standard page size, usually assumed to be 4k. However, that is not true on macOS AARCH64. The page size needs to be polled from the OS.
Further more, if libffi or LWJGL setup trampolines via dynamically allocated executable memory on AARCH64, that memory has to be page aligned as well.
I'm unsure if you have the hardware to test things on. I'd be happy to help if instructed on how to do that.

I can run the HelloWorld sample natively on M1 with this binary. The fixed 16Kb page size is likely to work the next few M1 iterations :)

Thanks Mario!

Hey, I am having the exact same issue, but don't know where to add the -Dorg.lwjgl.system.jemalloc.libname= part, I tried just adding it as a CLI argument in IntelliJ Idea, but it is not working. I already downloaded the new jemalloc binary and tried pointing to it, I just don't know where to add the actual pointing argument

I tried just adding it as a CLI argument

It should be a VM argument. In Intellij, open the run configurations window and click 'modify options' and select 'add vm options.'


Fixs

Does this issue occur when all extensions are disabled?: Yes/No

VS Code Version:
OS Version:

Steps to Reproduce:

Yes


Add an annotation to start up a new cluster for a test case

Supersedes https://github.com/crate/crate/pull/14670 (which was too aggressive anyway because it tried to add new task submission after each test)
In order to keep OID-s deterministic per specific test without having to start up a new cluster for all tests (even where it's not needed)
Optimizes Some test suites which currently use new cluster for all tests and prepares a ground for deterministic assertions of select _raw once we have OID-s written to the source.

adding a cluster().closeNonSharedNodes(true); in the first line of the test?

I tried removing annotation and using cluster().closeNonSharedNodes(true) but tests fail on oid assertions - they became non-deterministic.
closeNonSharedNodes(true) internally calls reset(true) which clears indices data (and tables and their schemas) but not Metadata where OID is preserved.
Also, reset is already used in TestCluster.beforeTest which  is called in beforeInternal() - we already use it for different purpose and it's not enough.


LDAP Active Directory and BookStack in Docker

Specific to running BookStack inside a Docker container and populating the environment variables.
For Feature Requests
Update documentation to either include a clarifying note or include setting in example.
#use double $$ since we are using docker
- LDAP_USER_FILTER=(&(sAMAccountName=$${user}))

Expected Behavior
The PHP variable is expanded within BookStack and the LDAP query matches as expected.
Actual Behavior
With the single $ sign, the expression becomes a static string and the query will never return a result and no error message is thrown. Can be verified by replacing with a proper username.

Just a note. I had to map my .env file as a volume, and then manually edit this field to "LDAP_USER_FILTER=(&(sAMAccountName=${user}))". Even with this $$ trick that I found elsewhere it seems like the file was written with strange characters or just no $'s at all.

Thanks for the suggestion @mry.
A note has since been added for this option in the documentation.


New version: Soss v0.21.1

Registering package: Soss
Repository: https://github.com/cscherrer/Soss.jl
Created by: @cscherrer
Version: v0.21.1
Commit: 2c3685fd52891358c6f02cfffa40768c2b399558
Reviewed by: @cscherrer
Reference: https://github.com/cscherrer/Soss.jl/commit/2c3685fd52891358c6f02cfffa40768c2b399558#commitcomment-75480268
Description: Probabilistic programming via source rewriting

wait


Import other YAMLs into a template YAML

There is a command called merge this is used to merge multiple bookmark YAMLs but this can be a little restrictive for deep nesting multiple files.
For example I have my own personal bookmarks that are in their own repo but then I work with multiple companies who have their own bookmark YAMLs repos. You can merge these but it doesn't give you much control on the structure. I think a good solution might be a main YAML with place holders.
label: gullwing.io
description: Bookmarks for gullwing.io
folders:
  - label: personal
    description: Tools used by Collagerie
    {{ https://link-to-my-bookmarks }}
  - label: clients
    description: different companies I work with
  folders:
  {{ ./local-client-1 }}
  {{ https://link-to-remote-client-2 }}

These types of YAML files would then need to be interpolated fetching local or remote YAML files then merging them into the "template YAML". Once there is a complete YAML this can then be converted into the required file types.
This should be pretty straightforward but maybe the indentation will cause some issues.

This was fixed in the release: https://github.com/gullwing-io/bookworms/releases/tag/v2.0.0


Add alert on prometheus pod memory usage

What did you do?
Deployed prometheus using prometheus operator in kubernetes (using kops) and I'm impressed by the alerting rule provided out-of-the-box. While the alerts are great, the file at this path lacks any alerting when memory usage on the prometheus pod is at a critical mark.
What did you expect to see?
An alert with severity of warning/critical for when prometheus pods are running high on memory specified in prometheus operator CRD.
What did you see instead? Under which circumstances?
Environment

AWS EC2 instances in us-east-1 region

Kubernetes version information: kubernetes 1.8.5

Kubernetes cluster kind: kops 1.8.0

An alert with severity of warning/critical for when prometheus pods are running high on memory specified in prometheus operator CRD.

This is out of scope for the kube-prometheus manifests. Users are expected to do vendor the manifests into their own infrastructure repository and adapt to their needs.
In that sense I will close this, but feel free to contribute an alert if you put something together that works for you.

i have successfully configured alerts Related to Nodes for CPU,MEMORY , NODE DOWN , FILE SYSTEM . but i am struggling to do the same for PODs in our infra

@akshays244 Can you share more on what kubernetes version you're running? And what alerts are you looking to configure?

@audip  :hi aditya thanks for response : below is the version details :
root@umaster1:~# kubectl version
Client Version: version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.3", GitCommit:"f0efb3cb883751c5ffdbe6d515f3cb4fbe7b7acd", GitTreeState:"clean", BuildDate:"2017-11-08T18:39:33Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.3+icp+ee", GitCommit:"5bf8ff102c9cd883604f1902d01745c73b44fe6c", GitTreeState:"clean", BuildDate:"2017-12-12T23:16:45Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}

but my issue is not related to version of K8s . i want to configure prometheus alerts which implicitly uses alertmanager where we can customize our alerts according to our requirement .
----  as prometheus doesn't comes up with predefined POD metrices so we have tocustomize  alerts using the metrices provided i have tried to use below code but these seems not working good for my env .
**ALERT POD_CPU_HIGH_UTILIZATION
  IF (sum(rate(container_cpu_usage_seconds_total[5m]))by(pod_name)*100)>80
  FOR 1m
  LABELS { severity ="warning" }
  ANNOTATIONS {
     summary ="HIGH CPU USAGE WARNING for POD {{$labels.pod} on{{$labels.host}}",
     description = "pod {{$labels.pod}} is using high cpu",
   }**
**ALERT POD_MEMORY_HIGH_UTILIZATION
  IF (sum(rate(container_memory_usage_bytes[5m]))by(pod_name)*100) >80
  FOR 1m
  LABELS { severity ="warning" }
  ANNOTATIONS {
     summary ="HIGH Memory USAGE WARNING for{{$labels.pod}}",
     description = "pod {{$labels.pod}} is using high memory",
   }**

@brancz . please help

That is the Prometheus 1.x alert rule format, you need to adapt it to the new format. https://prometheus.io/docs/prometheus/latest/migration/#recording-rules-and-alerts

i was just wondering why does prometheus doesn't provide Kubernetes POD related  inbuild matrices

Prometheus is not opinionated about what it monitors, plus there would be endless opinions on the "correct" queries, alerts, dashboards, etc. That's the purpose of external projects like kube-prometheus.

Note that at this point kube-prometheus:

has been re-designed to use jsonnet
uses https://github.com/kubernetes-monitoring/kubernetes-mixin/blob/master/alerts/resource_alerts.libsonnet, which defines the following (KubeMemOvercommit meets the request this GH issue was originally opened for):

KubeCPUOvercommit
  message: Overcommited CPU resource request quota on Namespaces.
  message: Overcommited CPU resource requests on Pods, cannot tolerate node failure.
KubeMemOvercommit
  message: Overcommited Memory resource requests on Pods, cannot tolerate node failure.
  message: Overcommited Memory resource request quota on Namespaces.


More advanced templates

Upon request we have decided to come up with a bit more powerful templating, with support for if-blocks. This is because people might want different styling for blocks with and without a header.

Moved to liquid templates. See README


Line number not appers when open in split or new tab using peek_definition

Describe the bug
When I use peek_definition and open the file in a new tab or in split mode, the lines number disappers.
In the mode finders works fine.
Video:
https://user-images.githubusercontent.com/44141208/216477482-458e9cf7-d7b8-4893-9a65-0ea64eb4104a.mp4
Steps to reproduce

Open a file
Select a constant, function for example
Use :Lspsaga peek_definition
Use the combination to open in split or new tab, for exampe v
See the lines numbers disappers

Expected behavior

Open a file
Select a constant, function for example
Use :Lspsaga peek_definition
Use the combination to open in split or new tab, for exampe v
The lines numbers needs to show in boths files

Neovim version (nvim -v)
0.8.2
lspsaga commit
9c2111aeeabaee94e6e5c8c0af13e3b1ebbe174a
Terminal name/version
Kitty 0.26.5

fixed in #810 will merge today


AFProfile for monomers?

Hi Patrick,
I hope you are doing well. Is it possible to use AFProfile to predict the structures of monomers with greater accuracy than other existing methods due to gradient descent? Can I run AFProfile with only one sequence? Please let me know when you get the chance.
Thank you,
Franz

Hi Patrick,
Thank you so much for letting me know. I hope you have a nice weekend.
Best,
Franz


range-mix and range-max attribute in chart-axis doesnt work

range-mix and range-max attribute in chart-axis doesnt work
in example of axis-y-directive usage we have:
   <chart-axis>
     <chart-axis-y axis-id="y"
                 axis-position="outer-right"
                 axis-label="Higher numbers"
                 padding-top="100"
                 padding-bottom="0"
                 range-min="0"/>
     <chart-axis-y axis-id="y2"
                 axis-position="outer-right"
                 axis-label="Lower numbers"
                 padding-top="10"
                 padding-bottom="0"
                 range-max="100"
                 range-min="0"/>
  </chart-axis>

but in source code of directive:
  var axisMax = attrs.axisMax;
        var axisMin = attrs.axisMin;
        if (axisMax) {
            axis.max = parseInt(axisMax);
        }
        if (axisMin) {
            axis.min = parseInt(axisMin);
        }

To set proper max and min value of y axis we need to use axis-min and axis-max attribute.

I think the documentation is wrong and not the code.


Can we support language browser detection

Is there any way for me to include i18next detection plugin, its not available in the plugin options

should i open PR to add .use(LanguageDetector)?

There is language detection, just that it is implemented differently (check this line). If redirect option is true you'll get redirected to the page with your browser detected language.

nice, thank you


More Complete MVC Example

Your mvc example is rubbish has no purpose provide a better example of say loading a button and a action happen.

much better load a page from controller sitting in plugin, no need to do a db pull or something simply a plugin page would suffice, with service loading from plugin to main host application.


Get rid of most parts using java.awt.*

We can't use AWT and LWJGL3 on Mac.
That's why we have to get rid of calls to awt.

[ ] https://github.com/kotcrab/VisEditor/blob/b2ea63a045e805099ddd16778517d46d2419a637/Editor/src/com/kotcrab/vis/editor/module/editor/MouseLoopingModule.java

(Can maybe implemented using LWJGL3?)

[ ] https://github.com/kotcrab/VisEditor/blob/b2ea63a045e805099ddd16778517d46d2419a637/Editor/src/com/kotcrab/vis/editor/util/FileUtils.java

(Can be replaced by http://www.coderanch.com/how-to/javadoc/appledoc/api/com/apple/eio/FileManager.html#revealInFinder(java.io.File) )

[x] https://github.com/kotcrab/VisEditor/blob/6922453a3d96b8087540cccb352a3483c7676649/UI/src/com/kotcrab/vis/ui/widget/file/internal/FilePopupMenu.java

(Can be replaced by http://www.coderanch.com/how-to/javadoc/appledoc/api/com/apple/eio/FileManager.html#revealInFinder(java.io.File) )
Other parts that use java.awt.Color, java.awt.Graphics2D or java.awt.image.BufferedImagecan be safely used if we set awt to headless mode.
Libgdx includes AppleJavaExtensions this way https://github.com/libgdx/libgdx/blob/master/backends/gdx-backend-lwjgl3/pom.xml#L60-L67

Thanks for the summary.

MouseLoopingModule - I don't think it can be done using LWJGL3, if you are sure that AWT Robot doesn't work on Mac then this feature won't be supported on OSX.
I need confirmation that Desktop.getDesktop().edit(...) is not supported, looks like FileManager does not support this but this is possible workaround.
FilePopupMenu is fixed

Desktop.getDesktop().edit(...) is not supported and was replaced by Runtime.getRuntime().exec("open filename") on Mac.

Should be all, closing.


Expected 'none' value of an ident token, css rule: *

I'm getting an error of
Expected 'none' value of an ident token, css rule: * { color: oklch(from var(--xs74gcj) l c h / 0.5) } frontend:dev: [2] Location: crates\stylex-shared\src\shared\utils\css\common.rs:497
The original stylex is:
   import { grid, textColor, type GreaterThanIncSmallDesktop } from<EMAIL_ADDRESS>
   const greaterThanIncSmallDesktop: GreaterThanIncSmallDesktop = `@media (min-width: 1024px)`;
   const s=stylex.create({
    totalResults: {
      color: `oklch(from ${textColor.white} l c h / 0.5)`,
      // color: `#fff`,
      fontSize: {
        default: `calc(${grid.a} * 2.6)`,
        // eslint-disable-next-line @stylexjs/valid-styles
        [greaterThanIncSmallDesktop]: `calc(${grid.a} * 1.4)`,
      },
      lineHeight: '1em',
    },
   });

I'm not sure what is wrong here, i was using the babel compiler from the official stylexjs docs before, thought I'd try shifting to swc to see if it improved dev timings, but am coming up against this now. The project is a turborepo monorepo, with a separate ui package with stylexjs components, my next.config relating to this package is:
const rootDir = path.join(__dirname, '../../');
const stylexPlugin = require('@stylexswc/nextjs-plugin')({
  rootDir,
  // Stylex RS compiler options
  dev: process.env.NODE_ENV !== 'production',
  genConditionalClasses: true,
  treeshakeCompensation: true,
  aliases: {
    '@styles/*': [path.join(__dirname, 'styles/*')],
    '@ui/*': [path.join(rootDir, 'packages/ui/*')],
  },
  unstable_moduleResolution: {
    type: 'commonJS',
    rootDir,
  },
});

I am using the latest versions of styleX as well as this swc plugin copied from the nextjs example in the repo:
    "@stylexjs/babel-plugin": "^0.9.3",
    "@stylexjs/eslint-plugin": "^0.9.3",
    "@stylexjs/nextjs-plugin": "^0.9.3",
    "@stylexjs/open-props": "^0.9.3",
    "@stylexjs/stylex": "^0.9.3",
    "@stylexswc/nextjs-plugin": "0.4.1-dev.1",
    "@stylexswc/rs-compiler": "0.4.1-dev.1",

Hi @HQ92,
Thanks for finding the bug and showing interest in this plugin.
The issue was fixed in #85 and wiil be available for use in version 0.4.1-rc.1 soon.
As for the build speed, I haven't checked the difference when using turborepo, but when building with Webpack the demo builds almost 2 times faster than the original StyleX demo: 8-9 sec. with SWC vs 15-16 sec. with babel.
If you find any more bugs or have any suggestions, I'll be glad to help.


[Snyk] Security upgrade axios from 1.7.7 to 1.7.8

Snyk has created this PR to fix 1 vulnerabilities in the npm dependencies of this project.
Snyk changed the following file(s):

frontend/package.json
frontend/package-lock.json

Vulnerabilities that will be fixed with an upgrade:

Issue
Score

Cross-site Scripting (XSS) SNYK-JS-AXIOS-6671926
  551

[!IMPORTANT]

Check the changes in this PR to ensure they won't cause issues with your project.
Max score is 1000. Note that the real score may have changed since the PR was raised.
This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Cross-site Scripting (XSS)

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Please upload report for BASE (main@0467616). Learn more about missing BASE report.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #102   +/-   ##
=======================================
  Coverage        ?   97.71%
=======================================
  Files           ?       20
  Lines           ?      700
  Branches        ?        0
=======================================
  Hits            ?      684
  Misses          ?       16
  Partials        ?        0

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


Propose to add ability for team owners

closes https://github.com/MicrosoftDocs/OfficeDocs-SkypeForBusiness/issues/9195

Docs Build status updates of commit 10ad488:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

Teams/archive-or-delete-a-team.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

@scanum Please help me with the review and merge

@SerdarSoysal PR has been copyedited and is ready for final review, could you please check and merge? Thanks!

@tiburd Can you help me getting this reviewed and merged? Thanks

Docs Build status updates of commit 361a4bd:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

Teams/archive-or-delete-a-team.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Docs Build status updates of commit e850395:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

Teams/archive-or-delete-a-team.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


[Storage] Last version of an epoch to be mapped to the same epoch

Summary:
The last version of an epoch used to be mapped to the next epoch because of the "empty block" concerns
(in case the very first ledger info in the next epoch is an empty block the same version would belong to both epochs).
However, we do not allow empty blocks anymore, so this concern is not valid now.
Being able to map the last version of an epoch to the same epoch is important for Waypoints and client processing in general:

in case of waypoints a client should be able to retrieve the LedgerInfo the waypoint certifies
specifically we want a client to be able to retrieve the initial validator set given the genesis waypoint

In this commit we change the indexing of versions to the epochs: the index keeps the last version of the epoch.
One consequence is that a client with version 0 is always receiving the initial validator set back when updating to the latest ledger info.
Testing: updated the existing tests.
Issues: ref #1384

@bors-libra r=wqfish

:pushpin: Commit b4e6b42 has been approved by wqfish

:hourglass: Testing commit b4e6b42008cc20b290116ed183a1c24828dfb858 with merge 1832f416c0fac83ba560cc147581271965ad8db2...

:sunny: Test successful - checks-circle_commit_workflow
Approved by: wqfish
Pushing 1832f416c0fac83ba560cc147581271965ad8db2 to master...


[Java] I/O in Java: All you need to know

I/O in Java: All you need to know
Introduction
I/O is a short form for input and output in Java. The read and write functionalities are on a network, memory, or file. The Java programming language provides different APIs that the developer can use to realize these functionalities. These API's include the InputStream, OutputStream, Reader, Writer, BufferedReader, and BufferedWriter.
In this tutorial, the reader will learn how these I/O APIs work, when to use them, and how to differentiate between them by creating, reading, and writing to a file using the Files API.
key takeaways

Understanding InputStream and OutputStream
Understanding Reader and Writer
Understanding BufferedReader and BufferedWriter

Article quality
The Java I/O APIs can be very confusing even to experienced developers. This tutorial will make the concepts behind their implementations easier for novice and experienced developers to understand.

Thank you for your response and we thank you for submitting your topic. After some careful consideration it struck us that this topic may be a bit over saturated throughout other blog sites and official documentations as previously mentioned on your topic form by our content moderator.
We typically refrain from publishing content that is covered widely on the net or other blogs. As we're more interested in original, practitioner-focused content that takes a deeper dive into programming-centric concepts.