Miniconda devcontainer

[ ] Closes #xxxx
[x] I am familiar with the contributing guidelines
[ ] Tests added
[x] Updates entries in docs/sphinx/source/reference for API changes.
[ ] Adds description and name entries in the appropriate "what's new" file in docs/sphinx/source/whatsnew for all changes. Includes link to the GitHub Issue with :issue:`num` or this Pull Request with :pull:`num`. Includes contributor name and/or GitHub username (link with :ghuser:`user`).
[x] New code is fully documented. Includes numpydoc compliant docstrings, examples, and comments where necessary.
[ ] Pull request is nearly complete and ready for detailed review.
[ ] Maintainer: Appropriate GitHub Labels (including remote-data) and Milestone are assigned to the Pull Request and linked Issue.

Adding devcontainer files to automate the development environment in VSCode and GitHub Codespaces.
I got a new computer and had to set up my pvlib development environment again.
I have been using these at work and find them very useful.
It is handy when working with tricky dependencies like Numba, Cython, etc.
Also, setting up Codespaces will allow less experienced developers to start contributing from the browser without all the boilerplate setup.
I am leaving this PR as a draft because I should add some docs before releasing it. But I wanted to get some feedback first.

Just a quick note on Python pinned version, isn't it a better idea to pin the minimum suppported version (3.7)?
So tests don't fail because newer features are being used.

@echedey-ls, that's a valid point. But it feels a little icky to use a Python version past its end-of-life support.
It seems like the tests are passing for other versions of Python in Ubuntu.
Should we pin somewhere in the middle 3.8, 3.9?

Regarding 3.7 being EOL, the main reason I see to keep it for now is that it's still the top version by downloads we get on PyPI: https://pypistats.org/packages/pvlib
So I think it makes sense to continue testing on it until it becomes a maintenance or development pain for us.
Back to this PR, I am generally not convinced it makes sense to include these types of files in the main pvlib repository.  My main objection is that everyone has their own favorite dev environment, and I don't want to see a proliferation of configuration files for spyder, pycharm, vim, sublime text et al in the repo.  A second point is that the environment.yml file is another thing to have to keep updated and is mostly redundant with the dependencies listed in setup.py.
However, I am interested in learning about what this could enable with codespaces.  @nicomt could you say a bit more about that?

Hi @kandersolar,  here is some extra info
environment.yml
I agree about redundancy in the packages. The intention for environment.yml was to add missing packages like flake8 or any package you wouldn't want in the setup.py. I included the standard pip install -e . startup command, which should pull all the other dependencies.
I made it confusing because I was using pip install -e . instead of pip install -e .[all] to speed up the initial build and startup. But if we release it, we could change it to install all and trim redundancies in the environment.yml.
IDE Vendor Files
Yes, it goes against standard practices to include VSCode specific configuration, which is a significant consideration before merging this. One difference is that Microsoft is trying to make the devcontainer an open standard that works with other vendors. It recently got adopted by IntelliJ, and others may join. But that might not pan out, and it still can be a deal breaker.
Codespaces
Codespaces is enabled by default for any user logged in on the GitHub website. You get 60 hours free each month, and it's $0.18 for any additional hour if you use their smallest 2-core VMs.
You can start the codespace from the repo.

You can start a codespace even if the repo doesn't have a devcontainer definition. It will start a generic devconainter that you can configure yourself.
To try the config, open a codespace on the PR branch. It takes a while to build, but I think that can be solved by caching with GitHub Actions.

FYI the devcontainer is failing to build after switching to Python 3.7.
I will report back once is fixed

Okay, is working again.
I had to change to bare Python because Conda dropped support for Python 3.7. https://github.com/conda/conda/issues/12436
I also enabled codespaces pre-build so it should start faster now.
Let me know what you think and if is worth configuring further.


SuperSplat UX - Controls

I think the current supersplat controls are a good start and something you mostly find in small software-products. Here is a table, that shows how other software with 3D-Viewport is handling that.

My suggestion would be to look at the more complex tools like blender and copy their controls. For that I'd see the following changes:

Left-click-drag always selects splats with either Rectangle-Select or Lasso-Select
(Polygon-select will lock the view during selection and thus has to be enabled again for every selection)
Middle-click-drag (optional with Shift): The one with or without shift will pan the view, the other orbit it
Right-click opens a context menu. This could also do the shift-middle-click thing when dragging.
No default Arrow-Key flying

To keep a nice flying experience, there should be new fetures:

The top mode-thingy should not only show "Centers Mode" but also allow to switch between "Viewing Mode" and "Edit Mode"
In Viewing mode:

Flying is possible with WASD or Arrow-Keys. Q is up and E is down
Left-click-drag is rotating the camera (not orbit)
Left-Double-Click will select a point for orbiting. However, when using flying-keys, the orbiting will stop and fly again

SuperSplat 2.0 will come up soon. This could be a major change to make the version more meaningful


Adding a control statement field to be in line with a policy

Feature Request
Currently we have the concept of a control_requirement that consists of control-id, name and description.
When we think of controls these are usually backed by a control statement, a control statement being the reason for a control in the first place.
Lets take the OAuth2 spec there are various control statements in the RFC e.g.

the authorization server MUST NOT rely on public client authentication for the purpose of identifying the client.
The authorization server MUST require the use of TLS as described in Section 1.6 when sending requests using password authentication

The name of these are the description are different.
e.g.
{
    "control-id": "TLS-001",
    "name": "Mandatory TLS Support",
    "description": "The Authorization server must support TLS version 1.2 or newer",
    "statement": "The authorization server MUST require the use of TLS as described in Section 1.6 when sending requests using password authentication"
}

Potential Solutions:

The first solution I'd like to propose is to add the statement as a mandatory field in control_requirement, if we believe that all control requirements have a control statement then it should be placed here
The second solutions I believe is to extend control_requirement within the security domain to add a new policy type that includes all of the control_requirement as well as adding in the statement field. I have created a draft PR of what I think it would like to help with the discussion: https://github.com/finos/architecture-as-code/pull/688

It would be great to hear what others think on this subject
TAG: @aldwins-ms @jpgough-ms @yt-ms @rocketstack-matt

I'm personally of the view that yourself and @aldwin-ms are our security experts. We can discuss on office hours, but I think if this is your proposal we should adopt it, certainly this is not yet in active use so we're not going to break anyone.
A couple of questions I would have though are:

Should it be control-statement to be explicit? I know it is in a control so is implicit but in the same way we use control-id rather than unique-id may be stronger?
If we add this, does is sufficiently replace description that it's just duplicative?


Pre release cnf docs

Pre-release version of b4f07e4fda81391e539ece03e5505558f80ac9ed

Thank you for your contribution! We will review the pull request and get back to you soon.

Wrong branches targeted


Highlighting inconsistencies for some of the types.

duckdb_uhugeint, duckdb_decimal and duckdb_string are not highlighted:
https://duckdb.org/docs/api/c/api#safe-fetch-functions

Hi @Giorgi, indeed these are off. I'll update the syntax highlighter part of the generation script.


Split out aec_chain to use as interface module for chain info

Remove external state from aec_chain_state
Redirect calls from aec_conductor to aec_chain
https://www.pivotaltracker.com/n/projects/2124891/stories/154878029

@lucafavatella This is correct. No format of persistent data is changed.


[TFLite] Align register_ref.cc TRANSPOSE_CONV max version to the register.cc one

Hi,
Commit https://github.com/tensorflow/tensorflow/commit/1eb92f086261f37605986c521e5a14fd610568c6 added support for fused activation in the TRANSPOSE_CONV and updated both the optimized and reference kernels. It forgot though to update the register_ref for the operator.
This PR fixes that so that we can use the reference kernels OpResolverType.BUILTIN_REF on models with TRANSPOSE_CONV having a fused activation.

Hi @alankelly Can you please review this PR ? Thank you!

Hi @alankelly Can you please review this PR ? Thank you!

This was indirectly fixed by https://github.com/tensorflow/tensorflow/commit/56edb7fc3b9b5e6f1eee637ac17b7fdce395503e#diff-9fc5de52478bebd19cc4b48121d9a65dc396a9f59e15968d27d4c29379021c2a
Closing the PR.


added in the ability to use a profile for aws

Added in the option to use a profile that is in your aws credentials file, using -p or --profile
Renamed the option for period to interval and the flags to -i & --interval

@josephpaulmckenzie looks good so far, but you seem to have reverted most your work in your last commit, was this intentional?

Thanks for creating this pull request! This feature has been added now with a lot of resued work from your commits!


(FFM-1855) Don't start persistCron when enableStore false

Changes
Currently when enableStore is set to false we still start the persistCron job that saves to the store every minute. I've changed it to skip starting this cron when this flag is false.
Also made some small logging changes

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


i am interest your project "parking_spots_detector",how can i download all your picture in the train Folder？

How can I download your photos?

git clone the entire deep learning repo
On Thu, Oct 18, 2018 at 5:40 AM LYTXJY<EMAIL_ADDRESS>wrote:

How can I download your photos?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/priya-dwivedi/Deep-Learning/issues/43, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AUHGOIv5OpC9xX4r5V3hJ74J16mwmDKUks5umExzgaJpZM4XtDMo
.

oh,thank you.Another problem,identify_parking_spots.ipynb,i can't open it,can you Re - Upload？

git clone the entire deep learning repo
…
On Thu, Oct 18, 2018 at 5:40 AM LYTXJY @.***> wrote: How can I download your photos? — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#43>, or mute the thread https://github.com/notifications/unsubscribe-auth/AUHGOIv5OpC9xX4r5V3hJ74J16mwmDKUks5umExzgaJpZM4XtDMo .

git clone the entire deep learning repo
…
On Thu, Oct 18, 2018 at 5:40 AM LYTXJY @.***> wrote: How can I download your photos? — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#43>, or mute the thread https://github.com/notifications/unsubscribe-auth/AUHGOIv5OpC9xX4r5V3hJ74J16mwmDKUks5umExzgaJpZM4XtDMo .

I have solved the problem，thanks a lot


Cleans up node ids reported in task messages

Closes #137. Cleans up node ids reported in task messages to use abbreviated combo of node_id or node_path more consistently.
Fixes bug related to nested criteria node dependency checking where it still expected a flattened graph stored in state.
Now no errant blank node ids should show up in task result messages. Errors should have node_id or node_path properties as relevant, and messages should abbreviate these identifiers appropriately.

LGTM


Engine may crash if ids contain invalid characters for file names

Protect engine from trying to save files with invalid characters from ids.

will be contemplated by https://github.com/arthurpaulino/miraiml/issues/6


'Extensions' object has no attribute 'get_extension_for_class'

This occurred after I upgraded form 2.11.1 to 2.12.1. The error occurs arbitrarily for the URLs I tried.

requests.get('http://google.com') # works
requests.get('http://www.google.com') # works
requests.get('https://google.com') # does not work
requests.get('https://www.google.com') # does not work
requests.get('http://amazon.com') # sometimes works
requests.get('http://www.amazon.com') # does not work
requests.get('https://amazon.com') # does not work
requests.get('https://www.amazon.com') # does not work

Below is the error:
/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/connectionpool.pyc in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
    348         # Trigger any extra validation we need to do.
    349         try:
--> 350             self._validate_conn(conn)
    351         except (SocketTimeout, BaseSSLError) as e:
    352             # Py2 raises this as a BaseSSLError, Py3 raises it as socket timeout.

/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/connectionpool.pyc in _validate_conn(self, conn)
    833         # Force connect early to allow us to validate the connection.
    834         if not getattr(conn, 'sock', None):  # AppEngine might not have  `.sock`
--> 835             conn.connect()
    836
    837         if not conn.is_verified:

/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/connection.pyc in connect(self)
    328         elif context.verify_mode != ssl.CERT_NONE \
    329                 and self.assert_hostname is not False:
--> 330             cert = self.sock.getpeercert()
    331             if not cert.get('subjectAltName', ()):
    332                 warnings.warn((

/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/contrib/pyopenssl.pyc in getpeercert(self, binary_form)
    322                 (('commonName', x509.get_subject().CN),),
    323             ),
--> 324             'subjectAltName': get_subj_alt_name(x509)
    325         }
    326

/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/contrib/pyopenssl.pyc in get_subj_alt_name(peer_cert)
    169     # faster than looping in Python)
    170     try:
--> 171         ext = cert.extensions.get_extension_for_class(
    172             x509.SubjectAlternativeName
    173         ).value

AttributeError: 'Extensions' object has no attribute 'get_extension_for_class'

Tried it on Ubuntu/Python 2.7.10 and macOS/Python 2.7.11. I have OpenSSL 1.0.2 for both. Same error on both.

What version of cryptography do you have installed please?

I have cryptography 1.0.2. Upgrading to the latest 1.5.3 solved the problem. Thanks!

No problem! For anyone looking at this issue in future, our minimum cryptography version is currently 1.3.4, and that is expressed in the 'security' extra for requests at this time.

May the gods bless you for this post

@andreleotorres 🙏🏼


Players can only have 1 active quest regardless of max-quests value

What is your Quests version / build number (do not say "latest")?
4.8.1
Describe the problem and how to replicate it.
Players can only have 1 active quest regardless of max-quests value. Tried with default value and with the value set to 3. Message in chat is "Requirements" and nothing else. Running Paper server with Geyser.
Any console errors to share?
N/A

If applicable, can you provide an example quest from quests.yml?
No response

Sounds like a duplicate of #2091


DBZ-3115 Add support for JSON column to Vitess 9.0.0

https://issues.redhat.com/browse/DBZ-3115

This PR is ready to be reviewed

Applied; thx, @keweishang!


docs: 补充表头单元格条件格式文档demo

👀 PR includes

TODO:

[ ] 明细表兼容
[ ] 行列头icon位置变化兼容

🔧 Chore

[ ] Test case
[x] Docs / demos update
[ ] CI / workflow
[ ] Release version
[ ] Other ()

🖼 Screenshot

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


Can't open the mod

Describe your bug here.
iam opening Hymns of Hallownest and getting: Uncaught error [file_open,modsList.txt]
Command Prompt/Terminal logs (if existing)
C:HaxeToolkit\haxe\std/cpp\_std/sys/io/File.hx (line 59)
C:HaxeToolkit\haxe\std/cpp\_std/sys/io/File.hx (line 39)
backend/native/File.hx (line 34)
backend/Mods.hx (line 198)
states/MainMenuState.hx (line 42)
flixel/FlxGame.hx (line 642)
flixel/FlxGame.hx (line 729)
flixel/FlxGame.hx (line 682)
flixel/FlxGame.hx (line 556)
openfl/events/EventDispatcher.hx (line 444)
openfl/display/DisplayObject.hx (1400)

Are you modding a build from source or with Lua?
Lua
What is your build target?
Windows
Did you edit anything in this build? If so, mention or summarize your changes.
No

This mod seems to be wrongly configured, but you should be able to workaround this issue by creating a modsList.txt file in the same folder as the executable file


1.0.0-RC6 unable to download the pom file from maven repos

trying to install the latest 1.0.0-RC6, got the following error.
sudo curl -L -o /usr/local/bin/amm https://git.io/vHr1V && sudo chmod +x /usr/local/bin/amm && amm
Unable to find and download the pom file from the maven repos.
Compiling /Users/myself/.ammonite/predef.sc
Error loading Predef:
java.lang.Exception: Failed to resolve ivy dependencies:
  com.lihaoyi:ammonite-shell_2.12:1.0.0-RC6
    not found: /Users/myself/.ivy2/local/com.lihaoyi/ammonite-shell_2.12/1.0.0-RC6/ivys/ivy.xml
    not found: https://repo1.maven.org/maven2/com/lihaoyi/ammonite-shell_2.12/1.0.0-RC6/ammonite-shell_2.12-1.0.0-RC6.pom
  ammonite.interp.Interpreter$DefaultLoadJar.ivy(Interpreter.scala:590)
  ammonite.predef.predef$.<init>(predef.sc:1)
  ammonite.predef.predef$.<clinit>(predef.sc)

You need to re-download the ammonite-shell; follow the instructions to curl it down again and it should work for 1.0.0-RC6


No completion between if statement and await

void f(int v01) async {
  if (false) {}
  v0^
  await 0;
}

I hit it regularly while working on the analyzer.

https://dart-review.googlesource.com/c/sdk/+/357780


add rotation feature

It is working well until I add a function to rotate a single vue-draggable-resizable item. When it is rotated, the resize function is acting unnaturally.
Attached below is the reproduction steps:

this is the code for rotating the item
var center_x = offset.left + elem.offsetWidth  / 2;         var center_y = offset.top + elem.offsetHeight / 2;         var mouse_x = evt.clientX;         var mouse_y = evt.clientY;         var radians = Math.atan2(mouse_x - center_x, mouse_y - center_y);         var degree = radians * (180 / Math.PI) * -1 + 180;         console.log('degree', degree);         elem.style.cssText += "-moz-transform: rotate(" + degree + "deg)"; // firefox         elem.style.cssText += "-webkit-transform: rotate(" + degree + "deg)"; // chome         elem.style.cssText += "-o-transform: rotate(" + degree + "deg)"; // safari         elem.style.cssText += "-ms-transform: rotate(" + degree + "deg)"; // edge/ie

Hey @ejlungay , how did you manage to do that ?
Thanks

Have you solved it?  I have the same question ~!

This project will unlikely support rotation in the future. For anyone looking for an awesome alternative check out the Movable package.


Add support for a collection export format to support the NAMA Vouchering Project

To test, go to a project like the NEMF project (project id = 352), click "Observations", then in admin mode go to "Download Observations".  This PR adds a new option called "North American Mycological Association (NAMA)".
Known issues at the moment:

Has N+1 issues relative to Field Slip data since I didn't take the time to add that to the AR query supporting reports, so the report takes a while to generate.
There are a variety of questions related to some of the specific fields that are outlined in an email I sent out on Dec 15, 2024.  This questions need to be resolved before this can go live.
Needs tests once the implementation is solid.

coverage: 93.508% (-0.02%) from 93.526%
when pulling 10147e8633d05122de43cae37ec9367e301cec77 on njw-nama-download
into 303a3a192b95a2c1cd9dc96a01e0a7d7d35da9af on main.


🐛 Zen mode: Some text disappears

Describe the bug
A clear and concise description of what the bug is.
Text between a Gallery and normal image disappears while in Zen mode.
To Reproduce
Steps to reproduce the behavior:

Add a gallery with a figcaption underneath
Add text
Add image with caption
Enter Zen mode

Expected behavior
A clear and concise description of what you expected to happen.
The text is not hidden.
Screenshots
If applicable, add screenshots to help explain your problem.
https://github.com/nunocoracao/blowfish/assets/83875983/cc8f8fe9-a2d8-4f4d-9a2e-28831c9d4f83

Code of section
{{< gallery >}}

{{< /gallery >}}

Pavlov VR (AKS) & I Expect You to Die (Schell Games)

I was also enticed by a program called Immersed offering a full work solution in VR with virtual monitors.

![Visor promo photo](visorpromo.png "Visor promo photo (Immersed)")

Desktop (please complete the following information):

OS: EndeavourOS Linux
Browser Firefox
Version 127.0.1

Hugo & Blowfish versions
Hugo: 0.127.0+extended
Blowfish: 2.71.0
Additional context
Add any other context about the problem here.

@Ast3risk-ops do you have a link I can use to see the behavior live?

@Ast3risk-ops do you have a link I can use to see the behavior live?

This is an unreleased draft, so I really don't want to share it.

Before:

After:

Even the figcaption disappears.


Add ability to run a custom hook when UI closes

Bit of a weird request, but in my Fish shell config, I run tput cup $LINES to move the prompt to the bottom of the screen. I prefer the prompt at the bottom because then it is always at the bottom, instead of slowly moving from the top to the bottom as you run commands, and jumping back to the top if you run clear.
This has one side effect where if I run atuin with the inline UI, my prompt jumps up to where the top of the Atuin UI was.
This could be fixed by allowing the user to possibly define something like _atuin_post_ui_hook, a shell function from which I could then re-run tput cup $LINES.

One thing you could do for keybindings is: at the end of the keybinding put it there. This wont run if you do atuin search -i though

One workaround would be to manually bind the keys. In zsh, it would look something like this:
	eval "$(atuin init zsh --disable-up-arrow --disable-ctrl-r)"

	bindkey '^r' atuin_search_widget_wrapped
	# Up arrow (depends on terminal mode)
	bindkey '^[[A' atuin_search_widget_wrapped
	bindkey '^[OA' atuin_search_widget_wrapped
	function atuin_search_widget_wrapped() {
		zle _atuin_up_search_widget
		zle my_other_thing
	}
	zle -N atuin_search_widget_wrapped


Communicty extension links are broken

Hi Community!
I'm following the Flogo Enterprise training and have a problem for integrating community components as described.
The link for Uploading components like https://github.com/retgits/flogo-components/activity/randomstring or https://github.com/retgits/flogo-components/activity/writetofile are broken. Either browser nor Flogo Enterprise Builder can access the repo to get the components. Perhaps something has changed on Github since the artefacts were last build?
Can you please double check and let me know what the right reference URI for those extensions are?
Thanks a lot!

Hi @rkiesi I unfortunately don't have access to the Flogo Enterprise training so I'm not able to help you with that. I'd recommend asking TIBCO support for help there.

The point is just the links are not correct anymore. -> The material is referencing http://github.com/retgits/flogo-components/activity/writetofile which is not available on Github anymore (http 404). If I download the whole repo as ZIP, extract the subdirectory for one of the activities, create a new zip archive out of this and import the activity via archive instead of the direct github URI it works.
So the links used are not correct anymore. Also, the links within the activity / module description is wrong. I think thats the root cause of the import problem. I already have tried to import via the current repo structure as well with not luck -> https://github.com/retgits/flogo-components/**tree/master/**activity/writetofile
If I understood it correctly, the file "activity.json" is the description. Here the "ref" property uses the broken link to. My guess was, that's the issue the importer is failing on.
Could you please verify this? I don't think Tibco support will be of help here.

The material is referencing http://github.com/retgits/flogo-components/activity/writetofile

Which material is that are you referring to? I'd love to help you out, but I don't have access to Flogo Enterprise or the Flogo Enterprise training so I can't check.

Also, the links within the activity / module description is wrong. I think thats the root cause of the import problem. Here the "ref" property uses the broken link to. My guess was, that's the issue the importer is failing on.

The ref field (like github.com/retgits/flogo-components/activity/writetofile) is a Go import path to let the Flogo engine know which go module it needs to download in order to make it work. The Go language specification follows a specific path structure so that's why you see the 404 error (there's no associated web page, Go itself adds the required pieces to the path to download the code). I just verified that go get github.com/retgits/flogo-components/activity/writetofile works as expected.

Could you please verify this? I don't think Tibco support will be of help here.

The Go code seems to work, so there could be changes in how Flogo Enterprise imports activities that are causing this behavior but unfortunately I'm not able to help as I don't have access to any of that material

Thanks! The §material" is a training available at Tibco Academy TIBCO Flogo Enterprise - Foundation, chapter 4. One of the lab exercises show how to import community provided extensions to Flogo Enterprise (docker container running locally - not Tibco Cloud Integration).
I have just tried to import the "writetofile" into Flogo community. Also running as docker container on my dev system. Here it works if I point to the repo link I see in the browser -> https://github.com/retgits/flogo-components/tree/master/activity/writetofile (the new parts are "../tree/master/..".
Seems you are right. There might be more differences between community and enterprise edition in the meantime. That's a bit sad.
Thanks anyway! I'll try engaging support!


light: support brightness control keys

Motivation for this change
light is a great program for managing display brightness. This pull request maps the brightness control keys in keyboards to commands for light. There are a few reasons:

Minimalistic desktop environments (e.g., i3) don't have built-in configuration for the keys. This configuration works for those without any need for configuration on the desktop/window manager side.

As far as I understand, KDE/GNOME/etc do handle the brightness keys, but then the brightness keys don't work in non-X ttys. This configuration makes the buttons work also in non-X ttys.

At least KDE has a "bug" that the brightness can be put to zero which causes the display to go totally black. In my opinion, the screen brightness shouldn't be allowed to go that low, because there are separate buttons/actions to turn on/off the display. So, this configuration uses a minimum brightness of 0.1 to avoid this issue.

This configuration is similar to sound.mediaKeys.
Things done

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

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

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

Actually, this configuration should perhaps be moved elsewhere because it's independent of light program because:

light app doesn't need to be in system packages for this configuration to work.
actkbd runs as root(?) so the udev rule isn't needed (if I understand correctly).

So, perhaps move this configuration option outside programs.light because it's totally orthogonal?

See #59742 and #58609 for comments on previous implementations of the same idea, in case there is anything to address.
Though yours has the advantage of being simpler.

Still important to me.
There's the following comment on one of the other similar PRs: "I'm not sure we actually want to include these sorts of options in NixOS as they increase evaluation time for each user, and are not very complicated. I would prefer we add documentation to the wiki on how to do this."
Personally, disagree with that comment. I think it's great that NixOS adds even this kind of small and simple options. First, the solution I'm providing isn't trivial (e.g., which package to use for brightness control, how to prevent screen from going blank, how to make it work in non-graphical ttys, what are the key codes in the first place, etc etc). Each user would need to spend time figuring these out. If there exists a very good solution that is probably suitable for almost all users that are interested in the feature, I think it's worth making this kind of simple interface for enabling the feature. At least that's been one of the big things I've been loving about NixOS: high-level but powerful options and well-thought implementations. I wouldn't want to put this to wiki. I'd like to see this in NixOS. But I have it now in my own configuration.nix, so I can live without it being in NixOS. So, close this PR if you think it doesn't belong to nixpkgs. But I'd really like to see this kind of options being part of nixpkgs in general.

I would like to see something sensible like this merged.

I too would like to see something like this merged.
I have also tested and can confirm working, on a very minimal i3 setup.
Test was carried out by cherry picking on an oldish nixos-22.05 commit I have been running sha 52527082ea267fe486f0648582d57c85486b2031 cherry pick can be seen here https://github.com/seam345/nixpkgs/tree/laptop-branch

I started thinking about a minor improvement(?): Sending D-Bus events when these keys are pressed, so one can set up a desktop environment to show brightness notifications when the brightness is adjusted with these keys. I'll test whether I can make it work and perhaps add to this PR, unless it's not considered good. Otherwise, I don't know how a desktop environment could be configured to show something like this when actkbd captures the key presses:

And of course users don't need to care about the D-Bus events, so it shouldn't make anything worse. It would just make a nice notification feature possible.

Ok, I can then make those small suggested changes today.

I rebased on nixos-unstable and resolved all the comments - thanks for your input!

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-already-reviewed/2617/1412


Segfault on player connect

The server crashes when someone tries to connect to it.

stdout
Auto-restarting the server on crash

Console initialized.
Using breakpad crash handler
Setting breakpad minidump AppID = 10
Forcing breakpad minidump interfaces to load
dlopen failed trying to load:
/home/steam/.steam/sdk32/steamclient.so
with error:
/home/steam/.steam/sdk32/steamclient.so: cannot open shared object file: No such file or directory
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Protocol version 48
Exe version <IP_ADDRESS>/Stdio (cstrike)
Exe build: 15:16:04 Jul 24 2019 (8308)
STEAM Auth Server
Server IP address <IP_ADDRESS>:27015

   Metamod version 1.21.1-am  Copyright (c) 2001-2013 Will Day<EMAIL_ADDRESS>   Metamod comes with ABSOLUTELY NO WARRANTY; for details type `meta gpl'.
   This is free software, and you are welcome to redistribute it
   under certain conditions; type `meta gpl' for details.

   AMX Mod X version 1.8.2 Copyright (c) 2004-2006 AMX Mod X Development Team
   AMX Mod X comes with ABSOLUTELY NO WARRANTY; for details type `amxx gpl'.
   This is free software and you are welcome to redistribute it under
   certain conditions; type 'amxx gpl' for details.

couldn't exec listip.cfg
couldn't exec banned.cfg
Segmentation fault (core dumped)
72	../engine/sv_steam3.h: No such file or directory.
email debug.log to<EMAIL_ADDRESS>Sat Apr 25 20:09:18 UTC 2020: Server restart in 10 seconds

debug.log
----------------------------------------------
CRASH: Sat Apr 25 20:09:18 UTC 2020
Start Line: ./hlds_linux -game cstrike
[New LWP 9]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
Core was generated by `./hlds_linux -game cstrike'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0xf76f8078 in CSteam3Server::BSecure (this=<optimized out>) at ../engine/sv_steam3.h:72
#0  0xf76f8078 in CSteam3Server::BSecure (this=<optimized out>) at ../engine/sv_steam3.h:72
#1  Steam_GSBSecure () at ../engine/sv_steam3.cpp:1039
#2  0xf76c7d75 in SVC_GetChallenge () at ../engine/sv_main.c:3366
#3  0xf76d1a05 in SV_HandleRconPacket () at ../engine/sv_main.c:9178
#4  SV_CheckForRcon () at ../engine/sv_main.c:9269
#5  0xf769d1b2 in _Host_Frame (time=0.00113391504) at ../engine/host.c:1434
#6  0xf769d562 in Host_Frame (time=0.00113391504, iState=1, stateInfo=0xffc49a3c) at ../engine/host.c:1548
#7  0xf76c26ec in CEngine::Frame (this=0xf775a6e0 <g_Engine>) at ../engine/sys_engine.cpp:245
#8  0xf76bf9f3 in CDedicatedServerAPI::RunFrame (this=<optimized out>) at ../engine/sys_dll2.cpp:1244
#9  CDedicatedServerAPI::RunFrame (this=0xf7755d40 <__g_CDedicatedServerAPI_singleton>) at ../engine/sys_dll2.cpp:1235
#10 0x08049c65 in RunServer () at ../dedicated/sys_ded.cpp:766
#11 0x08049472 in main (argc=3, argv=0xffc49c74) at ../dedicated/sys_ded.cpp:1146
No locals.
From        To          Syms Read   Shared Object Library
0xf7f00914  0xf7f46c78  Yes         ./libstdc++.so.6
0xf7eb2ad0  0xf7eb3a84  Yes         /lib/i386-linux-gnu/libdl.so.2
0xf7e979d0  0xf7ea720f  Yes         /lib/i386-linux-gnu/libpthread.so.0
0xf7ccf610  0xf7e1c386  Yes         /lib/i386-linux-gnu/libc.so.6
0xf7bbe590  0xf7c7e8f5  Yes         /lib/i386-linux-gnu/libm.so.6
0xf7f93ab0  0xf7fae7fb  Yes         /lib/ld-linux.so.2
0xf7ba1e04  0xf7bb1490  Yes         ./libgcc_s.so.1
0xf7682630  0xf77087dc  Yes         /opt/hlds/engine_i486.so
0xf76275c0  0xf7631d74  Yes (*)     ./libsteam_api.so
0xf761c910  0xf76203a4  Yes         /lib/i386-linux-gnu/librt.so.1
0xf7603aa0  0xf7610428  Yes         /opt/hlds/filesystem_stdio.so
0xf5d9a0c0  0xf6f45d64  Yes (*)     ./steamclient.so
0xf5c13670  0xf5c89020  Yes (*)     ./crashhandler.so
0xf33f8bb0  0xf33ff554  Yes         /lib/i386-linux-gnu/libnss_files.so.2
0xf3301d00  0xf33a6ebc  Yes (*)     /opt/hlds/./cstrike/addons/metamod/dlls/metamod.so
0xf30a2750  0xf31c6ea0  Yes         /opt/hlds/cstrike/dlls/cs.so
0xf2f63a00  0xf2fc3768  Yes (*)     /opt/hlds/cstrike/addons/amxmodx/dlls/amxmodx_mm_i386.so
0xf2f44c10  0xf2f47c98  Yes (*)     cstrike/addons/amxmodx/modules/fun_amxx_i386.so
0xf2f38220  0xf2f3e9d8  Yes (*)     cstrike/addons/amxmodx/modules/cstrike_amxx_i386.so
0xf2ec3d50  0xf2eca658  Yes (*)     cstrike/addons/amxmodx/modules/csx_amxx_i386.so
(*): Shared library is missing debugging information.
Stack level 0, frame at 0xffc49490:
 eip = 0xf76f8078 in CSteam3Server::BSecure (../engine/sv_steam3.h:72); saved eip = 0xf76c7d75
 inlined into frame 1
 source language c++.
 Arglist at unknown address.
 Locals at unknown address, Previous frame's sp in esp
End of crash report
----------------------------------------------

Tested on a local Ubuntu 18.04 machine (5.3.0-46-generic) with Docker 19.03.8 installed.

Seems like the reason for this segfault was that no map was specified when starting the server.
When ran as docker run cstrike-server:latest +map de_dust2, the server crashes for just one time. Afterwards it restarts itself and works perfectly.
The first crash should be fixed in 1e2df767d55e00c1f83a0a81ca733c8596b5f245. With the default map specified, the server runs perfectly fine and doesn't crash anymore.


Update requirements.txt

This PR add the following:

Adds InsightIDR and closes #1
Update some pipelines and backends to their latest version

hey @nasbench can you update https://github.com/magicsword-io/sigconverter.io/blob/main/pyproject.toml as well keep them insyc.

@nasbench @MHaggis
I think we should revert this pull request because the updated backends/pipelines each depend on different pysigma versions. therefore we can not simply update all backends at the same time because with the current implementation we can have only one pysigma version installed.
when you try to install the dependencies with pip or poetry both will return an error:
pip output:
ERROR: Cannot install -r requirements.txt (line 2), -r requirements.txt (line 4), -r requirements.txt (line 5), -r requirements.txt (line 6) and pysigma==0.9.11 because these package versions have conflicting dependencies.

The conflict is caused by:
    The user requested pysigma==0.9.11
    sigma-cli 0.7.6 depends on pysigma<0.10.0 and >=0.9.9
    pysigma-backend-carbonblack 0.1.4 depends on pysigma<0.10.0 and >=0.9.6
    pysigma-backend-cortexxdr 0.1.1 depends on pysigma<0.10.0 and >=0.9.8
    pysigma-backend-elasticsearch 1.0.6 depends on pysigma<0.11.0 and >=0.10.2

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

poetry output:
$> poetry install
Updating dependencies
Resolving dependencies... (4.7s)

Because pysigma-pipeline-windows (1.1.1) depends on pysigma (>=0.10.2,<0.11.0)
 and sigconverter-io depends on pysigma (0.9.11), pysigma-pipeline-windows is forbidden.
So, because sigconverter-io depends on pysigma-pipeline-windows (1.1.1), version solving failed.

Yeah that's a known issue with the Pysigma plugin system. Was making a test for it. We'll deploy a fix.


Implement status bar displaying active zenml stack

I implemented a feature that displays the currently active ZenML stack in the status bar. This enhancement aims to improve the user experience by providing quick visibility into the active stack configuration directly within the VS Code environment.
Changes:

Added a new class ZenMLStatusBar within views/statusBar.ts to manage the status bar item. This class encapsulates all functionality related to displaying and updating the active stack.
Created a utility module shell.ts in the utils folder to handle the execution of CLI commands.
Implemented the getActiveStack function in commands/stackCommands.ts that utilizes the execCLICommand utility to fetch the currently active stack.

Demo:
Users can refresh the active ZenML stack by clicking on the status bar. An auto-refresh feature, set to 30 seconds but disabled for now, is also integrated.

@coderabbitai review


Bug in Microsoft.Azure.Functions.Worker.Sdk 1.17.0

Description
Try to do the publish of function which is using  Microsoft.Azure.Functions.Worker.Sdk 1.17.0 you will get an error: error MSB3030: Could not copy the file "**obj\Release\net8.0\extensions.json"
If you downgrade to previous version it will work.
Also if you do build and publish as separate steps you will not get this error, you will get it only if you are doing publish.
Please fix.
Thank you.
Steps to reproduce
Try to do the publish of function which is using  Microsoft.Azure.Functions.Worker.Sdk <IP_ADDRESS> without running build before.

@Anakinn Have you been consistently experiencing this issue? It might be helpful to try running 'dotnet clean' and deleting the obj and bin folders to see if that makes a difference.
I also wanted to share that when I tested the scenario using worker.sdk version 1.17.0 in a minimal function app, I couldn't reproduce the problem. If you have the time, could you please check it out yourself in my minimal repro app?

@kshyju Yes constantly reproducible in our build pipeline. obj and bin folders are not existing before the publish and we are doing clean, so every time all folders and everything is deleted and code is pulled, so we are doing clean every time. You need solution to reproduce this, I did not try csproj. As soon as we downgrade from 1.17.0 everything works fine.

Might be the same as here: https://github.com/Azure/azure-functions-dotnet-worker/issues/2284
when we build a solution, that contains a function proj and test proj, with dotnet build --no-incremental it fails with the above error

@kshyju 1.17.2 is working as expected no error during publish.

Fixed with 1.17.2

In my case, when I use the version Microsoft.Azure.Functions.Worker.Sdk, version 1.17.x, I get the error could not copy the file "[My project filepath]\obj\Debug\net8.0\extensions.json" because it was not found. Only the downgrade to 1.16.4 solves this problem. It is interesting to note that this file actually exists when I build it via VisualStudio. However, I get this error with the following instruction:
C:\Program Files\dotnet\dotnet.exe" build [MySolutionFile].sln --configuration Debug --no-incremental --verbosity minimal --ignore-failed-sources /property:AssemblyVersion=[MyAssemblyVersion] /property:FileVersion=[MyFileVersion] /property:InformationalVersion=[MyInformationalVersion] /property:GenerateDocumentationFile=True /property:AppendTargetFrameworkToOutputPath=True

I am using V 1.17.4 and getting the same error \dotnet\sdk\8.0.303\Microsoft.Common.CurrentVersion.targets(5270,5): error MSB3030: Could not copy the file ...\obj\Release\net8.0\extensions.json" because it was not found.

Getting this on 1.18.1 as well!

Getting this as well with 1.18.1.

Getting it on  "Microsoft.Azure.Functions.Worker.Sdk" Version="2.0.0" ,  dotnet\sdk\8.0.403

Is there a workaround, please?
This only happens with dotnet9. (sdk 9.0.100)
Restored /home/vsts/work/1/s/src/XXX/obj/Release/net9.0/WorkerExtensions/WorkerExtensions.csproj (in 406 ms).   WorkerExtensions -> /home/vsts/work/1/s/src/XXX/obj/Release/net9.0/WorkerExtensions/buildout/Microsoft.Azure.Functions.Worker.Extensions.dll ##[error]/opt/hostedtoolcache/dotnet/sdk/9.0.100/Microsoft.Common.CurrentVersion.targets(5322,5): Error MSB3030: Could not copy the file "/home/vsts/work/1/s/src/XXX/obj/Release/net9.0/extensions.json" because it was not found.

What is -m:1? A version downgrade?

Had this happen again today:

Microsoft.Azure.Functions.Worker.Sdk 2.0.0
VS Code 1.96.0

Tried the rather cryptic -m:1 suggestion and it did fix the problem!
So I now have this in my tasks.json:
{
  "label": "publish (functions)",
  "command": "dotnet",
  "args": [
    "publish",
    "--configuration",
    "Release",
    "/property:GenerateFullPaths=true",
    "/consoleloggerparameters:NoSummary",
    "-m:1"
  ],
  "type": "process",
  "dependsOn": "clean release (functions)",
  "problemMatcher": "$msCompile"
},

A bit of googling revealed this about the parameter:

Any parameters passed to dotnet publish are passed to MSBuild.
https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-publish#msbuild

Specifies the maximum number of concurrent processes to use when building. If you don't include this switch, the default value is 1. If you include this switch without specifying a value, MSBuild uses up to the number of processors in the computer.
https://learn.microsoft.com/en-us/visualstudio/msbuild/msbuild-command-line-reference?view=vs-2022#switches

But since the default value is 1, specifying it explicitly should not change any behaviour...
Long story short workaround seems to work, but it all feels very finnicky and buggy.


Update commands docs

@SaddyHadjigi  There were few typos and grammatical mistakes. Use Grammarly extension in your browser to spot typo and grammatical mistakes in your browsers text areas. There is apparently even an extension for vs code. Please use that or find a similar spell checker extension. https://marketplace.visualstudio.com/items?itemName=znck.grammarly


Grid: Refactor + CSS-in-JS

Grid: Refactor + CSS-in-JS

This update refactors the various Grid components with the latest Blue
conventions, such as namespacing, propConnect, and type support.
It also uses CSS-in-JS for styling, powered by Fancy. This allow us to remove @seedcss/seed-grid, which shaves about 9kb in the compiled CSS file size (minified).
For context, the Grid system is one of the larger seed packages.
Performance has also been improved as these components are now
PureComponent classes, rather than SFC.
The tests have also been adjusted to favour mount over shallow rendering.

Coverage remained the same at 100.0% when pulling 30b21a05025c8d09187ce0a43a4a5a24e0277d31 on grid-css-in-js into e8708836678196862caed293fd1bc855ba5732d5 on master.


Bug 171 ndk fixes

Changes to address Android fixes in bug #171

+1

I cherry-picked and pushed these commits.


tailscale: 1.0.5 -> 1.2.1

Motivation for this change
Upstream stable release.
Things done

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

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

[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

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

1 package built:

tailscale


layer deletion: Improve a comment and fix TOCTOU

The comment referenced an issue that was already closed. Remove that reference and replace it with an explanation why we already don't print an error.
See discussion in https://github.com/neondatabase/neon/issues/2934#issuecomment-1626505916

Marking as draft as I might use this PR to also fix a race condition in <LocalFs as RemoteStorage>::delete here, need to have more discussion on that with @koivunej.

Ah yes agreed https://github.com/neondatabase/neon/blob/08bfe1c8264465ba99e97815fc62f2fcd78afc58/libs/remote_storage/src/local_fs.rs#L355-L357 is a TOCTOU, should just ... I never remember the combinator, I would use a match to accept ErrorKind::NotFound as ok.

Hmm so originally I was thinking that just adding a match arm to check for ErrorKind::NotFound was enough... but now I realized the is_file check can also race, as it executes another call to metadata internally. So the code now keeps the metadata around to run a is_file check on it (exists is just sugar around metadata(...).is_ok()). The bonus is that we save a stat call. Sadly there is no ErrorKind::NotAFile which you could use to return the custom error (which is probably why it exists in the first place?).

which is probably why it exists in the first place?

Assuming this note is about why we had the check that it's a file. I think it's just a sanity check. Now you've changed it to be a stat + tokio::fs::remove with NotFound accepted. I think that's already quite good, since we no longer have any expectance of stat works => remove works.
I would still however prefer the any other than ErrorKind::NotFound to be propagated.


[8.x] Fixed return type of Grammar::getValue

this return type should be consistent with Expression class getValue method return type

I would suggest that we revert this change.
The actual return type of this method depends on the return type of Expression::getValue().
While this method returns mixed, this is something that was added in the first commit of Laravel!
See: https://github.com/laravel/framework/blame/599e7851988ce88aae745847389dcefd3c4cc6f6/src/Illuminate/Database/Query/Expression.php#L26
The Expression also has a __toString() method that casts the result of getValue() to string, which is risky, because if the value cannot be casted to string, that would raise an error.
Also the result of Grammar::getValue() is used in many methods that return string, like wrapTable(), wrap, parameter.
The most sane thing to do is to change all the references of mixed types to \Stringable|scalar in the Expression class in 9.x as it is a breaking change.


Update metrics.md

There were incorrect required fields that I updated. Expression is required but time_grains is optional.

looking at this now for you @callum-mcdata !

shipping this for you @callum-mcdata !


Create Final Roadmap Mural

Description of issue
Create mural board that represents our final roadmap
Definition of done
Mural is completed.

See https://app.mural.co/t/platformservices5977/r/1686327946343 for completed Murals


Closed system, without losing velocity

I'm creating the same system as it is described here, however I need to have many objects (balls) instead of one. At first they move and hit each other (I want this to continued forever), but then they are getting slow and are losing the force.  inertia: Infinity   is helpful but there is still something that make balls to lose velocity.
Do you have any suggestions how to make this kind of world 'ideal' ?
Thank you.

See #256 which discusses the same problem and leave a comment with a jsfiddle example if you can. This will help me when I investigate. For now make sure that body.friction and body.airFriction are both set to 0 and see if it helps. Thanks!

Left a comment there with jsfiddle example, thanks.


Edit: IndiKids

Channel ID (required)
IndiKids.id
Channel Name
No response
Alternative Names
No response
Network
No response
Owners
No response
Country
No response
Subdivision
No response
City
No response
Broadcast Area
No response
Languages
No response
Categories
No response
NSFW
None
Launched
No response
Closed
2023-10-10
Replaced By
FunPlanet.id
Website
No response
Logo
No response
Notes
No response

@BellezaEmporium please approve this


Error due to wrong version number on homebridge user

Expected Behavior

Homebridge should start without error.
Current Behavior

Error: Plugin /usr/local/lib/node_modules/homebridge-hue requires a HomeBridge version of ^0.4.42 which does not satisfy the current HomeBridge version of 0.4.38. You may need to upgrade your installation of HomeBridge.

Note that Version 0.4.42 is installed.
Steps to Reproduce (for bugs)

Homebridge works normally when startet on "pi" user. The error message only appears on the "homebridge" user that was created for automated startup. (https://timleland.com/setup-homebridge-to-start-on-bootup/comment-page-1/)
Versions

Homebridge: 0.4.42
Node:  9.4.0
OS:  Raspbian GNU/Linux 9 (stretch)

Configuration

Homebridge Log / Command Output

Most likely, you installed homebridge twice.
Under user homebridge, what's the output of which homebridge?  Is that the same as under user pi?  And what did you specify for ExecStart in /etc/systemd/system/homebridge.service?

Ok I see. Changed what I specified under ExecStart and now it works. Thank you.


Investigation needed: Why we redirect to /learn/welcome/introduction

We redirect 3 times when we head to docs.balena.io, we need to figure why don't we just directly land to the docs homepage which is /learn/welcome/introduction. Need to dig into this if it is either the structure of the docs that could be improved or redirects of docs or the resin-site or even something else.
Another performance improvement @iamsolankiamit mapped out was if were to remove excess unused fonts that we are downloading on each page load. We clearly don't use Vietnamese fonts atm so why download them and those need to be taken care off.
Something that was discussed briefly was page loads by generating content through /v6/device-type endpoints which are a bit sluggish since:

We make a request to the endpoint to download data for the page and create an HTML table using JS
We then ask metalsmith to render it onto a page which takes time

What if all these pages are pre-rendered on build time, but the docs are being constantly refreshed (redeployed) if they are any changes through a corn job that runs periodically as suggestions are placed in #1525
Lighthouse report: https://lighthouse-dot-webdotdevsite.appspot.com//lh/html?url=https%3A%2F%2Fbalena.io%2Fdocs

The docs have since moved into a more static file hosting with Cloudflare Pages rather than the issues I pointed out above when we were running our server on Heroku. The implementation has become exponentially simpler with even the DNS extracted from Netlify which caused multiple redirects to now being all managed by Cloudflare.
With this migration, we shaved off half a second in overall performance using CF pages and docs.balena.io directly redirect to the page.


Add mementjs dependency

I got error by adding following to application.js
//= require moment
//= require tempusdominus-bootstrap-4.js

Error: couldn't find file 'moment' with type 'application/javascript'
I got this error because I don't have momentjs installed. Fixed once I install momentjs myself.
I think it's good to add a cached momentjs file into this gem or add momentjs-rails dependency. I personal prefer adding a cached version.
Or at least we can add some instruction into README to remind users to install momentjs themselves.
How do you think?

momentjs-rails is already a dependency of this gem. See gemspec: https://github.com/Bialogs/bootstrap4-datetime-picker-rails/blob/master/bootstrap4_datetime_picker_rails.gemspec#L16


Performance issue on virtual cards "without receipt" filter

https://oficonsortium.slack.com/archives/GFH4N961L/p1730203645992519

Platform is throwing a tantrum every time i wanna see virtual card charges with no receipts

The code responsible of filtering likely present a few issues:
https://github.com/opencollective/opencollective-api/blob/499f15d44dff4565a880d53fb9f75c186eced338/server/graphql/v2/query/collection/ExpensesCollectionQuery.ts#L295-L307

{ type: { [Op.ne]: ExpenseType.CHARGE } } it is unclear why we would filter out charges here? Should it rather be enforcing that the type is a charge? In all case, a small comment would be nice.
The subquery is likely the root cause for the performance issue. I suggest rather using the include mechanism to rely on SQL joins to apply the same condition.

cc @kewitz

* `{ type: { [Op.ne]: ExpenseType.CHARGE } }` it is unclear why we would filter out charges here? Should it rather be enforcing that the type **is** a charge? In all case, a small comment would be nice.

Can confirm that this is likely buggy, I get https://opencollective.com/ofitech/expenses/223494 and other expense types returned on https://opencollective.com/dashboard/ofitech/host-expenses?sort[field]=CREATED_AT&sort[direction]=ASC&status=ALL&chargeHasReceipts=true


Clang-format 11

as the title says.
I'm using another GH Action because this one doesn't support v11.

Hey, thanks for submitting an issue! It's been a while since I've worked on this but I'll try to add support for this (or even version choice) in the coming days. Of course, you're always free to submit a PR 😁 .

okay, I'll create a PR :)

okay, I'll create a PR :)

Sure, take a crack at it, I've updated my comment with some subtasks that will be needed 😄. Let me know if you get stuck and I can try to help you as well.

What do you think of supporting C++ as well?

What do you think of supporting C++ as well?

That would be cool! I'm not well-versed with C++ - would that just involve adding .cpp here?

well, I'm a C++ n00b, but I'm pretty sure that it would work just fine:)

well, I'm a C++ n00b, but I'm pretty sure that it would work just fine:)

Awesome, I'll cut a new ticket for it.

@bartekpacia this feature is added in v3.1.0 if you'd like to give it a try 😄

@bartekpacia this feature is added in v3.1.0 if you'd like to give it a try 😄


Why am I seeing a pop-up dialog box asking for my "Secure Shell passphrase:"?

I am using the ziaste vimified framework. When I add the the vim-virtualenv bundle and run:
vim +BundleInstall +qall
It opens, starts installing all the bundles but when it gets to vim-virtualenv, I get a popup box with the title:
"Enter your Secure Shell passphrase:" then "Username for 'https://github.com" then a text box with the label: Password:
In the status line, I see "Processing 'vim-virtualenv" but it just is stuck there.
I can cancel out of the dialog box but then it tells me "Error processing vim-virtualenv.
If I remove this bundle, the same command processes all the other bundles without a problem.
Why am I getting a prompt to enter this information?

I will answer my own question:
In vimrc, the repo was listed as "vim-virtualenv" not jmcantrell/vim-virtualenv"
Adjusted the entry and it properly worked.


GNOME - Make welcome screen more compact

Closes #114

This is what Cavalier looks like for me when I first open it. The text seems a little crowded.
Could we maybe add 6 px padding all the way around the label?

does this look better? I added margins. This is the minimum size to show icon, if the window gets smaller the icon disappear.

does this look better?

yes, I think this is a lot better!

Ah wait, I got what's wrong so you have the icon even tho the window is small

Now ready


Ban list app

We have decided that this is something that we want for Boston Lindy Hop, so that all our instructors and people who run registration have an easier way to check for any individuals who are banned from our classes for Code of Conduct issues.  This will be a separate app, though it will be installed by default.  Here are the main planned features:

A table with one record per person in which one can add first and last names as well as one or more email addresses, an optional photograph, and a basic notes field that can be used for internal purposes
If the app is enabled, when a person with the first and last name of a record (or with one of the email addresses listed in one of the records) tries to register, they are prevented from continuing and they see a generic error message indicating that there is an issue with their registration and to contact the school at an email address.
A second table that logs instances in which the ban flag is triggered and the IP address from which the flag was triggered.
An option to automatically send an email to an email address whenever a flagged name/email is registered.

The prerequisites app already has features to prevent students from continuing registration if they don't meet class requirements, so this should be a pretty simple thing to implement I think by copying some of the logic from there.

I'll also add an expiration date field and a disable flag so it's easier to set up temporary bans or to temporarily disable ban functionality without losing the information in the records.

All set and pushed to master!


Automatically identify language for code from clipboard

It seems codesnap does not highlight code when copied form the clipboard. E.g. I tried with json and rust snippets from the codesnap readme.
It would be nice to automatically identify the languages and highlight the code block accordingly. That would allow using codesnap via keyboard shortcuts from copied codeblocks.
Examples (via codesnap --from-clipboard --output ./tmp/blub.png && open ./tmp/blub.png)

vs this which was generated via a --from-file blub.json call:

Hi @jankatins, thx for your advice, but detecting language only dependent on the code content is not safe. Let's say we have a code snippet:
val a = 1;

If there is no more useful information, should it be Kotlin or Scala? because both kt and scala have the same syntax to define a constant.
If you want to generate a snapshot from the clipboard, we recommend you use -l to specify language explicitly:
codesnap --from-clipboard -l json -o ./tmp/blub.png && open ./tmp/blub.png

To be honest, I don't really care about accuracy for such small snippets (or if it would refuse to do it for such small snippets), but having some kind heuristics for detecting languages would be nice.
I searched around and it seems that syntect can only do it via extensions :-(. And in general that seems to be a pretty interesting problem, given the few examples I could find for this problem. The nearest I could find was https://github.com/monkslc/hyperpolyglot/ which seems to be able to detect a language from a snippet alone: https://github.com/monkslc/hyperpolyglot/issues/10#issuecomment-2014280679. No idea how good it is, though.
So I guess I have to add some kind of "chose language" dialog inbetween if I want my "copy text, pres key combo, and spit out nicely formatted screenshot to clipboard" workflow :-(


Could you help upgrade the vulnerble dependency in mmedit?

Hi, @Yshuo-Li , @hejm37 , I'd like to report a vulnerability issue in mmedit_0.14.0.
Issue Description
I noticed that mmedit_0.14.0 directly depends on opencv-python_<IP_ADDRESS>.
However, opencv-python_<IP_ADDRESS> sufferes from the vulnerabilites which the C libraries exposed as following dependency graph shows. Refer to issue.
Dependency Graph between Python and Shared Libraries

Suggested Vulnerability Patch Versions
opencv-python has upgraded these vulnerable C libraries to patch versions in its release <IP_ADDRESS>.
Python build tools cannot report vulnerable C libraries, which may induce potential security issues to many downstream Python projects.
As a popular python package (mmedit has 3,342 downloads per month), could you please upgrade this vulnerable dependency?
Thanks for your help~
Best regards,
MikeWazowski

Hello, we will investigate soon.
But may I know if you are using mmediting in some security-critical environment?

Did you mean <IP_ADDRESS> ?

Did you mean <IP_ADDRESS> ?

Oh, My mistake. Thanks @wangruohui .
I have revised the issue report.

We limited its version because of another bug. OpenCV with newer version will introduce segfault. You can check the log of CI in #833. It seems this problem is still not solved in <IP_ADDRESS>.
Moreover, may I know where did you get the number of downloads per-month of this repo?


DPR-437 Combined JobParameters with Job Arguments

Do we need this? If you're just using this to log out the parameters glue already does this at the point the jar is launched.

Do we need this? If you're just using this to log out the parameters glue already does this at the point the jar is launched.

Discussed with Dom and realised I'd missed that instead of using the client we're now taking the args direct from main which is an improvement.


Move log_signer/Dockerfile and log_server/Dockerfile to root

When the ./redhat/release/update-to-head.sh script runs, we should move the two Dockerfiles to the root of the repository and commit that. The RHTAP build system will not work with them in these paths. They need to be at the root or in one of several pre-defined directories. Root seems simplest. Simply git mv redhat/overlays/log_signer/Dockerfile Dockerfile.log_signer and the same for the log server in the script just after this if block: https://github.com/securesign/trillian/blob/fd0b9bb3dec783f1c2012fb036364d5ca68b48c3/redhat/release/update-to-head.sh#L59-L62
I think this will work. The change needs to be made both on the master branch, as well as on the midstream-v1.5.2 branches - so two separate PRs.

Makes Perfect Sense I'll make sure to make the necessary adjustments in the Image Factory too.

Fixed in #11


Day 445

Good morning! Here's your coding interview problem for today.
This question was asked by BufferBox.
Given a binary tree where all nodes are either 0 or 1, prune the tree so that subtrees containing all 0s are removed.
For example, given the following tree:
   0
  / \
 1   0
    / \
   1   0
  / \
 0   0

should be pruned to:
   0
  / \
 1   0
    /
   1

We do not remove the tree at the root or its left child because it still has a 1 as a descendant.

Identical to Day 146: https://github.com/vaskoz/dailycodingproblem-go/issues/303


166 | Fraction to Recurring Decimal | C++

Title - C++ code for 166. Fraction to Recurring Decimal
What will change - Adding C++ code for leetcode problem 166
Type of Issue -

[x] Adding New Code

Programming Language

[x] C++

Please assign this to me.


python37Packages.ueberzug: 18.1.6 -> 18.1.7

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python37Packages.ueberzug is: "An alternative for w3mimgdisplay"
meta.homepage for python37Packages.ueberzug is: "https://github.com/seebye/ueberzug"
meta.changelog for python37Packages.ueberzug is: ""
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS

Warning: a test defined in passthru.tests did not pass

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 18.1.7 with grep in /nix/store/1cgv06xc3q213nda1k2sm3frnp5rbbk1-python3.7-ueberzug-18.1.7

directory tree listing: https://gist.github.com/8ad3441548e18c70dfc8e1a2157e9fa4

du listing: https://gist.github.com/26b060eb6145e9c8f76b4e0827236642

Rebuild report (if merged into master) (click to expand)

16 total rebuild path(s)

4 package rebuild(s)

4 x86_64-linux rebuild(s)
4 i686-linux rebuild(s)
4 x86_64-darwin rebuild(s)
4 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
python37Packages.ueberzug
python38Packages.ueberzug
python39Packages.ueberzug
ueberzug

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/1cgv06xc3q213nda1k2sm3frnp5rbbk1-python3.7-ueberzug-18.1.7 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A python37Packages.ueberzug https://github.com/r-ryantm/nixpkgs/archive/3edcd5e7223b01c3e10e837003ffda75b9978eb0.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/1cgv06xc3q213nda1k2sm3frnp5rbbk1-python3.7-ueberzug-18.1.7
ls -la /nix/store/1cgv06xc3q213nda1k2sm3frnp5rbbk1-python3.7-ueberzug-18.1.7/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review 1

3 packages built:

python37Packages.ueberzug
ueberzug (python38Packages.ueberzug)
python39Packages.ueberzug

Maintainer pings
cc @Br1ght0ne for testing.

Result of nixpkgs-review pr 106146 run on x86_64-darwin 1

3 packages built:

python37Packages.ueberzug
ueberzug (python38Packages.ueberzug)
python39Packages.ueberzug

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

3 packages built:

python37Packages.ueberzug
ueberzug (python38Packages.ueberzug)
python39Packages.ueberzug


Critical bugs

Hello!
There are a few critical bugs that I found when using the FrostedGlass library.
Let's look at a simple code example below:
from kivy.app import App
from kivy.lang import Builder
from kivy.metrics import dp
from kivy.uix.button import Button

from kivy_garden.frostedglass import FrostedGlass  # NOQA

KV = '''
ScreenManager:

    Screen:

        ScrollView:
            id: background_box

            GridLayout:
                id: box
                cols: 1
                size_hint_y: None
                height: self.minimum_height

        FrostedGlass:
            background: background_box
            size_hint: 1, None
            height: "56dp"
            blur_size: 15
            saturation: 1.3
            luminosity: 1.1
            noise_opacity: 0.0
            outline_color: "#388E3C00"
'''

class Example(App):
    def build(self):
        return Builder.load_string(KV)

    def on_start(self):
        for i in range(20):
            self.root.ids.box.add_widget(
                Button(
                    text=f"Item {i}",
                    size_hint_y=None,
                    height=dp(56),
                    on_release=lambda x, y=i: print(y),
                )
            )

Example().run()

First critical bug
If we try to press any of the buttons from the list on the screen, we will find that the buttons do not have the usual graphical response. Although button event bindings like on_press and on_release work.
No graphical response from buttons:
https://user-images.githubusercontent.com/16930280/226088599-9d230796-6631-4e1a-8916-9e5ae5dba438.mov
This problem is solved very simply. We need to update the canvas values every frame.
class FrostedGlass(FloatLayout):
    [...]

    def __init__(self, **kwargs):
        [...]
        Clock.schedule_interval(self.update_effect, 0)

This does not affect performance and FPS does not drop.
FPS with updating shader values every frame
https://user-images.githubusercontent.com/16930280/226089169-2fc8f88a-c4cc-4ed9-b0c0-45734b6f9ab2.mov
FPS without updating shader values every frame:
https://user-images.githubusercontent.com/16930280/226090302-508aa3f4-7f1f-466f-94ea-d1753460b76f.mov
Also updating the shader values every frame solves the above problem:
https://user-images.githubusercontent.com/16930280/226089274-d497e2de-9a46-4fc0-9bef-6145664a93bc.mov
Second critical bug
In the following methods, we use the isInstance method to determine the type of the object
    def on_parent(self, *args):
        [...]
        for p in self.parents_list:
            if isinstance(p, ModalView):
                [...]
            if isinstance(p, Screen):
                [...]
            if isinstance(p, ScrollView):
                [...]
        [...]

    def _bind_children_properties(self, children_list):
        [...]
        for widget in children_list:
            for property in properties_to_bind:
                try:
                    if property == "texture":
                        if isinstance(widget, Image):
                            [...]
                        if isinstance(widget, Video):
                            [...]
                    elif hasattr(widget, property):
                        [...]
                except Exception as e:
                    [...]

    def _bind_parent_properties(self, parents_list):
        for widget in parents_list:

            if isinstance(widget, ScrollView):
                [...]
            if isinstance(widget, ModalView):
                [...]
            elif isinstance(widget, Screen):
                [...]
            else:
                [...]
                except Exception:
                    [...]

It is not right. Because in this case, if the user will use custom classes, such as, for example:
class CustomScreen(Screen):
    [...]

Or:
class CustomScrollView(ScrollView):
    [...]

...expression in the above methods won't work. So instead of isinstance method we should use issubclass method. There are a number of other bugs that I found, but so far I have not had time to tell you how to fix them.
Thanks, I hope it was helpful!

@HeaTTheatR  Thanks for the issue!
I'll still need to do some research before considering using the frame-by-frame update approach. I already have an idea of the reasons why this behavior is occurring.
I hope to be able to look into it soon.
In the meantime, feel free to share any other bugs you find. A minimal reproducible code and a description of the bug will be enough to help understand the cause of the bug.
Thank you again!

I came across the same issue mentioned by @HeaTTheatR I had the same idea as him but in my case, I used refresh_effect to update the canvas on every frame using clock. Yes, it does not affect the FPS but it uses more CPU. my kivy app jumps from 2% CPU usage to 25% CPU usage when I update or refresh the frosted glass effect on every frame. To me, I think it is an issue.
Another way I tried solving this problem was to update or refresh the effect when a button is touched down (or starts rippling KivyMD) on every frame and then stop the effect update a second after the button has been touched up. This really worked but another issue rises when there is an infinite animation of a widget on a screen (ex: a button meant to be bouncing constantly). This means your clock has to run continuously to update the effect, which means more CPU usage.
suggestions I can offer are: 1) add on_touch_down and on_touch_up events to the list of properties_to_bind and handle them accordingly. maybe taking ideas from what I stated above. 2) watch out for animations. Detect if a widget is animating and run a refresh or update and then stop once the animation is stopped or the screen containing the animation is changed.
Thanks.

Hi @kengoon and @HeaTTheatR! Thank you for your feedback!
I just opened a PR to solve this issue, could you test it?

Second critical bug
In the following methods, we use the isInstance method to determine the type of the object
    def on_parent(self, *args):
        [...]
        for p in self.parents_list:
            if isinstance(p, ModalView):
                [...]
            if isinstance(p, Screen):
                [...]
            if isinstance(p, ScrollView):
                [...]
        [...]

    def _bind_children_properties(self, children_list):
        [...]
        for widget in children_list:
            for property in properties_to_bind:
                try:
                    if property == "texture":
                        if isinstance(widget, Image):
                            [...]
                        if isinstance(widget, Video):
                            [...]
                    elif hasattr(widget, property):
                        [...]
                except Exception as e:
                    [...]

    def _bind_parent_properties(self, parents_list):
        for widget in parents_list:

            if isinstance(widget, ScrollView):
                [...]
            if isinstance(widget, ModalView):
                [...]
            elif isinstance(widget, Screen):
                [...]
            else:
                [...]
                except Exception:
                    [...]

It is not right. Because in this case, if the user will use custom classes, such as, for example:
class CustomScreen(Screen):
    [...]

Or:
class CustomScrollView(ScrollView):
    [...]

...expression in the above methods won't work. So instead of isinstance method we should use issubclass method. There are a number of other bugs that I found, but so far I have not had time to tell you how to fix them.

@HeaTTheatR I'm not sure if the second problem is really a problem, automatic binding will parse object instances, so isinstance should work.
Note the example below:
class A:
    pass

class B:
    pass

class CustomA(A):
    pass

class CustomB(B):
    pass

class CustomAB(A, B):
    pass

custom_A = CustomA()
custom_AB = CustomAB()

print(
    isinstance(custom_A, A),
    isinstance(custom_AB, A),
    isinstance(custom_AB, B)
)

Output:
> True True True

Hi @kengoon and @HeaTTheatR! Thank you for your feedback!
I just opened a PR to solve this issue, could you test it?

Yes, it works, thank you!

Fixed via #10


Confusing (for Noobs) error message when used to analyse Single File which is not committed into Git Repo

https://github.com/github-linguist/linguist#single-file says you can do e.g. github-linguist README.md.
This works, of course - but only if the file is actually committed into a Git repository, and otherwise fails with a (to me) obscure internal error.
This confused the hell out of me, and it took me a fair bit of trial and error to narrow this down to being root cause related to the file is actually committed into a Git repository.
In an ideal world, it might be cool if Linguist also just worked for uncommitted files?
Unless this is a deliberate design decision, and not just an oversight, or regression? If that's the case, a clear error message would be neat.
Here are the fully reproducible technical details of what actually currently happens:
$ bin/github-linguist README.md
README.md: 228 lines (167 sloc)
  type:      Text
  mime type: text/markdown
  language:  Markdown

$ cp README.md README2.md

$ bin/github-linguist README2.md
/home/vorburger/git/github.com/github-linguist/linguist/lib/linguist/source/rugged.rb:65:in `to_buffer': wrong argument type nil (expected String) (TypeError)

        Rugged::Blob.to_buffer(@rugged, blob_id, max_size)
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^
        from /home/vorburger/git/github.com/github-linguist/linguist/lib/linguist/source/rugged.rb:65:in `load_blob'
        from /home/vorburger/git/github.com/github-linguist/linguist/lib/linguist/lazy_blob.rb:117:in `load_blob!'
        from /home/vorburger/git/github.com/github-linguist/linguist/lib/linguist/lazy_blob.rb:91:in `data'
        from /home/vorburger/git/github.com/github-linguist/linguist/lib/linguist/blob_helper.rb:127:in `binary?'
        from /home/vorburger/git/github.com/github-linguist/linguist/lib/linguist/blob_helper.rb:155:in `text?'
        from bin/github-linguist:112:in `github_linguist'
        from bin/github-linguist:155:in `<main>'

Unless this is a deliberate design decision, and not just an oversight, or regression?

It is deliberate. Linguist runs on GitHub's servers against bare repos which means there are no individual files to analyse. We have a point about this in the troubleshooting doc.
That said, this used to work. I suspect https://github.com/github-linguist/linguist/pull/7094 may have inadvertently broken this.

FYI my "use case" which made me raise this was simply trying to contribute to Linguist (for #7161) and trying to verify a fix on file which was not (yet) committed in the repo. Understanding the cause of this error, through trial and error, is where I spent the majority of the time 🤣 when I put together #7163.

Confused nord


'geos/geos_c.h' file not found

Checked out the code from master, then built from CocoaPods and tried compiling the framework and I'm getting 'geos/geos_c.h' file not found build errors in GEOSwiftCallback.h at Line 9.
I originally had trouble running pod install but followed the instructions in the README and after installing autoconf, automake and glibtool I was able to get pod install working.
I am trying to compile from the .xcworkspace

Hi,
just try cloning the project and execute pod install again from scratch, you seem to experience this same issue: https://github.com/andreacremaschi/SpatialDBKit/issues/24


#1848 Manage open remediation actions in materialized view

Closes #1848
As described in the Issue, the following endpoints have been added:
POST /project/{projectName}/stage/{stageName}/service/{serviceName}/remediation/

Example payload:
{
	"eventId":"test-id",
	"keptnContext":"test-context2",
	"type":"remediation.triggered",
	"time":"1"
}

GET /project/{projectName}/stage/{stageName}/service/{serviceName}/remediation/

Example response:
{
    "nextPageKey": "0",
    "remediations": [
        {
            "eventId": "test-id",
            "keptnContext": "test-context",
            "time": "1",
            "type": "remediation.triggered"
        }
    ],
    "totalCount": 1
}

GET /project/{projectName}/stage/{stageName}/service/{serviceName}/remediation/{keptnContext}

Example response:
{
    "nextPageKey": "0",
    "remediations": [
        {
            "eventId": "test-id",
            "keptnContext": "test-context",
            "time": "1",
            "type": "remediation.triggered"
        }
    ],
    "totalCount": 1
}

DELETE /project/{projectName}/stage/{stageName}/service/{serviceName}/remediation/{keptnContext}

The open remediations are now also included in the service objects. Example:
GET /project/{projectName}/stage/{stageName}/service/{serviceName}

{
    "creationDate": "1591089310417673629",
    "deployedImage": "docker.io/keptnexamples/carts:0.10.1",
    "lastEventTypes": {
        "sh.keptn.event.configuration.change": {
            "eventId": "a55da5e5-f60f-4cbd-90ac-8f877adcf853",
            "keptnContext": "f78cc62d-49fd-4441-b862-180c67b78ab4",
            "time": "1591100615219815471"
        },
        "sh.keptn.events.deployment-finished": {
            "eventId": "ad33682c-a931-4027-bb9d-df5811946791",
            "keptnContext": "f78cc62d-49fd-4441-b862-180c67b78ab4",
            "time": "1591100602857191108"
        },
        "sh.keptn.events.evaluation-done": {
            "eventId": "a4bb4e3b-11b1-4e0f-8ed4-65ea8fd80cf5",
            "keptnContext": "f78cc62d-49fd-4441-b862-180c67b78ab4",
            "time": "1591100614734584493"
        },
        "sh.keptn.events.tests-finished": {
            "eventId": "4e0ef580-f676-42da-8dd1-db3f41b5e434",
            "keptnContext": "f78cc62d-49fd-4441-b862-180c67b78ab4",
            "time": "1591100614332057044"
        }
    },
    "openApprovals": null,
    "openRemediations": [
        {
            "eventId": "test-id",
            "keptnContext": "test-context",
            "time": "1",
            "type": "remediation.triggered"
        }
    ],
    "serviceName": "carts"
}

Codecov Report

Merging #1883 into master will decrease coverage by 0.07%.
The diff coverage is 58.82%.

@@            Coverage Diff             @@
##           master    #1883      +/-   ##
==========================================
- Coverage   32.25%   32.17%   -0.08%
==========================================
  Files          99       99
  Lines        7665     7857     +192
==========================================
+ Hits         2472     2528      +56
- Misses       4875     5004     +129
- Partials      318      325       +7

Impacted Files
Coverage Δ

...ation-service/common/projects_materialized_view.go
78.90% <58.82%> (-3.37%)
:arrow_down:

api/ws/hub.go
62.50% <0.00%> (-14.29%)
:arrow_down:

cli/cmd/configure_domain.go
16.91% <0.00%> (+2.40%)
:arrow_up:

helm-service/controller/configuration_changer.go
15.27% <0.00%> (+4.40%)
:arrow_up:

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 81d2b94...ac3fdfd. Read the comment docs.


Enable multiple IP logic

Failures are unrelated. Theyre the type where we timeout waiting for a new_context

LGTM


Release fixes

Description
Release beta
Breaking Changes

JIRA Link

Checklist

[ ] Updated the Readme.md (if required) ?

:tada: This PR is included in version 27.0.0-beta.1 :tada:
The release is available on:

npm package (@beta dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

/fast-forward


Opioid "Triple Threat" Detection

Concurrent use of three types of medications – opioids, benzodiazepines and muscle relaxants – called the “Triple Threat,” puts patients at a significant risk for overdose and death. This is probably out of scope right now for this hook, but its an important use case to consider for the future.
There is currently Rx data on http://<IP_ADDRESS>:8080 for patient Terry Zavala (Patient-6497) for  Xanax and Flexeril and we will use it in the upcoming hackathon.

This is actually related to the opioid-cds project.


Update AWSSDK packages

Update AWSSDK nuget packages.
With the new tree-structured package model, the AWSSDK.* nuget packages will be implicit dependencies of the app consuming JustSaying meaning that they are often consumed at the lowest version specified here, and never updated.
So update them here in order to get a current version to consumers of JustSaying.

Would referencing it by floating version fix this going forwards?
https://docs.microsoft.com/en-us/nuget/consume-packages/dependency-resolution#floating-wildcard-versions

Floating version could help! So would we float these to minor or patch? e.g. 3.* or 3.3..* ?

I was thinking 3.3.*


Longer pause

I'd like to be able to manually add a 2-second pause between different paragraphs of text. Is there a way to do this?

You're in luck! The next version of Larynx will support a subset of SSML, so you will be able to use the <break> tag to do this :slightly_smiling_face:


Use stack script instead of stack runghc

Latest stack release brought a very convenient option for scripts stack script. See docs for why it was needed.

One caveat to consider: no way to provide --ghc-options that I could find to add -threaded


Error when trying to visualise mesh files

I was trying to visualise meshes saved by Trixi. I was able to do it for TreeMesh
using Trixi, Trixi2Vtk
coordinates_min = (-1.0, -1.0) # minimum coordinates (min(x), min(y))
coordinates_max = ( 1.0,  1.0) # maximum coordinates (max(x), max(y))

# Create a uniformly refined mesh with periodic boundaries
mesh = TreeMesh(coordinates_min, coordinates_max,
                initial_refinement_level=4,
                n_cells_max=30_000) # set maximum capacity of tree data structure
Trixi.save_mesh_file(mesh, ".")
trixi2vtk("mesh.h5")

and I am able to visualise it, but I can't do the same for StructuredMesh or P4estMesh.
using Trixi, Trixi2Vtk
coordinates_min = (-1.0, -1.0) # minimum coordinates (min(x), min(y))
coordinates_max = ( 1.0,  1.0) # maximum coordinates (max(x), max(y))

cells_per_dimension = (16, 16)

# Create a uniformly refined mesh with periodic boundaries
mesh = StructuredMesh(cells_per_dimension, coordinates_min, coordinates_max)
Trixi.save_mesh_file(mesh, ".")
trixi2vtk("mesh.h5")

I get the error pointing to
https://github.com/trixi-framework/Trixi2Vtk.jl/blob/3a78c57ba7e196c9997c359a1cb616ec8c9b41eb/src/vtktools.jl#L136
which is occurring because visnodes=1, giving the error
ERROR: ArgumentError: range(-1.0, stop=1.0, length=1): endpoints differ.
Is this expected? I realise that the equivalent visualisation can be obtained with a solution plot (again using trixi2vtk) so this definitely causes no direct issues.
I was just trying to visualise a mesh before solving an equation on it, so I wished to know if this is expected to work.

Could you please try running
trixi2vtk("mesh.h5", nvisnodes=2)

to see whether that works? If it does, we should update our defaults in
https://github.com/trixi-framework/Trixi2Vtk.jl/blob/3a78c57ba7e196c9997c359a1cb616ec8c9b41eb/src/convert.jl#L117-L118

If it does, we should update our defaults in
https://github.com/trixi-framework/Trixi2Vtk.jl/blob/3a78c57ba7e196c9997c359a1cb616ec8c9b41eb/src/convert.jl#L117-L118
for (possibly) curved meshes.

Yes, changing to n_visnodes = 2 seems to work well. Giving the keyword argument doesn't work because n_visnodes = get_default_nvisnodes(nvisnodes, n_nodes, mesh) is executed for mesh files.

Oh, crap, that should really be revised... Thanks for checking!


Added i386-linux, and x86_64-lunux support.

This looks good to me. Sorry it took me so long, I wasn't notified of a pending pull request so this is the first I'm seeing of it.
I'd prefer to wait for https://github.com/ffi/ffi/pull/458 to be merged so we don't depend on a fork, but it seems like that might take a while. Are those changes required for these to work or could we work around them and leave TODOs to change to the proper types when it is merged?
Thanks for working on this!


Detect redundant aliases

It'd be great if Hugo flagged when the same alias is used by multiple markdown file.
Folks have been cutting & pasting files in our site and accidentally copy over aliases. Hugo processes these in some order and one of the definition wins. I'd rather get a build time error.
Thanks.

This is a duplicate of #3113 -- they must at least be fixed by the same patch.


download nltk things

Not sure where 'punkt' is needed so I put it everywhere ¯_(ツ)_/¯

OH NO THE BACKSLASH NEEDS TO BE ESCAPED


Fix kics and moved deps to package requirements

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


SSL_PROTOCOL_ERROR when accessed by IP

Caddy may be having issues provisioning self-signed certs based on IP addresses.

The issue is due to Caddy not issuing certs for the container IP:
firezone-caddy-1  | {"level":"debug","ts":1666983155.2894518,"logger":"tls.handshake","msg":"no certificate matching TLS ClientHello","remote_ip":"<IP_ADDRESS>","remote_port":"65376","server_name":"","remote":"<IP_ADDRESS>:65376","identifier":"<IP_ADDRESS>","cipher_suites":[4865,4867,4866,49195,49199,52393,52392,49196,49200,49162,49161,49171,49172,156,157,47,53],"cert_cache_fill":0,"load_if_necessary":true,"obtain_if_necessary":true,"on_demand":false}
firezone-caddy-1  | {"level":"debug","ts":1666983155.2895417,"logger":"http.stdlib","msg":"http: TLS handshake error from <IP_ADDRESS>:65376: no certificate available for '<IP_ADDRESS>'"}

Still not working, SSL_ERROR_INTERNAL_ERROR_ALERT when trying to access by IP

@HenrysCat thanks for the report. Just merged a fix. Give that a shot.
Getting this working for all Docker platforms with ACME enabled and disabled was non-trivial.

Not sure what the JSON error is about, but it seems to be working for me:
[ec2-user@ip-172-31-15-163 ~]$ bash <(curl -fsSL https://raw.githubusercontent.com/firezone/firezone/master/scripts/install.sh)
Enter the administrator email you'd like to use for logging into this Firezone instance<EMAIL_ADDRESS>Enter the desired installation directory (/home/ec2-user/.firezone):
Enter the external URL that will be used to access this instance. (https://ip-172-31-15-163.us-west-1.compute.internal): https://<IP_ADDRESS>
Would you like to enable automatic SSL cert provisioning? Requires a valid DNS record and port 80 to be reachable. (Y/n): n
Could we email you to ask for product feedback? Firezone depends heavily on input from users like you to steer development. (Y/n): n
Firezone collects crash and performance logs to help us improve the product. Would you like to disable this? (N/y): y
Press <ENTER> to install or Ctrl-C to abort.
[+] Running 3/3
 ⠿ Network firezone_firezone-network  Created                                                                                0.0s
 ⠿ Volume "firezone_postgres-data"    Created                                                                                0.0s
 ⠿ Container firezone-postgres-1      Started                                                                                0.4s
Waiting for DB to boot...
firezone-postgres-1  | The files belonging to this database system will be owned by user "postgres".
firezone-postgres-1  | This user must also own the server process.
firezone-postgres-1  |
firezone-postgres-1  | The database cluster will be initialized with locale "en_US.utf8".
firezone-postgres-1  | The default database encoding has accordingly been set to "UTF8".
firezone-postgres-1  | The default text search configuration will be set to "english".
firezone-postgres-1  |
firezone-postgres-1  | Data page checksums are disabled.
firezone-postgres-1  |
firezone-postgres-1  | fixing permissions on existing directory /var/lib/postgresql/data ... ok
firezone-postgres-1  | creating subdirectories ... ok
firezone-postgres-1  | selecting dynamic shared memory implementation ... posix
firezone-postgres-1  | selecting default max_connections ... 100
firezone-postgres-1  | selecting default shared_buffers ... 128MB
firezone-postgres-1  | selecting default time zone ... Etc/UTC
firezone-postgres-1  | creating configuration files ... ok
firezone-postgres-1  | running bootstrap script ... ok
firezone-postgres-1  | performing post-bootstrap initialization ... ok
firezone-postgres-1  | syncing data to disk ... ok
firezone-postgres-1  |
firezone-postgres-1  | initdb: warning: enabling "trust" authentication for local connections
firezone-postgres-1  | initdb: hint: You can change this by editing pg_hba.conf or using the option -A, or --auth-local and --auth-host, the next time you run initdb.
firezone-postgres-1  |
firezone-postgres-1  | Success. You can now start the database server using:
firezone-postgres-1  |
firezone-postgres-1  |     pg_ctl -D /var/lib/postgresql/data -l logfile start
firezone-postgres-1  |
firezone-postgres-1  | waiting for server to start....2022-11-05 22:02:06.589 UTC [46] LOG:  starting PostgreSQL 15.0 (Debian 15.0-1.pgdg110+1) on aarch64-unknown-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
firezone-postgres-1  | 2022-11-05 22:02:06.594 UTC [46] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
firezone-postgres-1  | 2022-11-05 22:02:06.599 UTC [49] LOG:  database system was shut down at 2022-11-05 22:02:06 UTC
firezone-postgres-1  | 2022-11-05 22:02:06.603 UTC [46] LOG:  database system is ready to accept connections
firezone-postgres-1  |  done
firezone-postgres-1  | server started
firezone-postgres-1  | CREATE DATABASE
firezone-postgres-1  |
firezone-postgres-1  |
firezone-postgres-1  | /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
firezone-postgres-1  |
firezone-postgres-1  | 2022-11-05 22:02:06.787 UTC [46] LOG:  received fast shutdown request
firezone-postgres-1  | waiting for server to shut down....2022-11-05 22:02:06.790 UTC [46] LOG:  aborting any active transactions
firezone-postgres-1  | 2022-11-05 22:02:06.794 UTC [46] LOG:  background worker "logical replication launcher" (PID 52) exited with exit code 1
firezone-postgres-1  | 2022-11-05 22:02:06.794 UTC [47] LOG:  shutting down
firezone-postgres-1  | 2022-11-05 22:02:06.795 UTC [47] LOG:  checkpoint starting: shutdown immediate
firezone-postgres-1  | 2022-11-05 22:02:06.833 UTC [47] LOG:  checkpoint complete: wrote 918 buffers (5.6%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.030 s, sync=0.006 s, total=0.039 s; sync files=250, longest=0.004 s, average=0.001 s; distance=4217 kB, estimate=4217 kB
firezone-postgres-1  | 2022-11-05 22:02:06.840 UTC [46] LOG:  database system is shut down
firezone-postgres-1  |  done
firezone-postgres-1  | server stopped
firezone-postgres-1  |
firezone-postgres-1  | PostgreSQL init process complete; ready for start up.
firezone-postgres-1  |
firezone-postgres-1  | 2022-11-05 22:02:06.905 UTC [1] LOG:  starting PostgreSQL 15.0 (Debian 15.0-1.pgdg110+1) on aarch64-unknown-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
firezone-postgres-1  | 2022-11-05 22:02:06.905 UTC [1] LOG:  listening on IPv4 address "<IP_ADDRESS>", port 5432
firezone-postgres-1  | 2022-11-05 22:02:06.906 UTC [1] LOG:  listening on IPv6 address "::", port 5432
firezone-postgres-1  | 2022-11-05 22:02:06.908 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
firezone-postgres-1  | 2022-11-05 22:02:06.912 UTC [61] LOG:  database system was shut down at 2022-11-05 22:02:06 UTC
firezone-postgres-1  | 2022-11-05 22:02:06.916 UTC [1] LOG:  database system is ready to accept connections
Resetting DB password...
ALTER ROLE
[+] Running 3/3
 ⠿ Container firezone-postgres-1  Running                                                                                0.0s
 ⠿ Container firezone-firezone-1  Started                                                                                0.6s
 ⠿ Container firezone-caddy-1     Started                                                                                0.4s
Waiting for app to boot before creating admin...

                                      ::
                                       !!:
                                       .??^
                                        ~J?^
                                        :???.
                                        .??J^
                                        .??J!
                                        .??J!
                                        ^J?J~
                                        !???:
                                       .???? ::
                                       ^J?J! :~:
                                       7???: :~~
                                      .???7  ~~~.
                                      :??J^ :~~^
                                      :???..~~~:
    .............                     .?J7 ^~~~        ....
 ..        ......::....                ~J!.~~~^       ::..
                  ...:::....            !7^~~~^     .^: .
                      ...:::....         ~~~~~~:. .:~^ .
                         ....:::....      .~~~~~~~~~:..
                             ...::::....   .::^^^^:...
                                .....:::.............
                                    .......:::.....

Installation complete!

You should now be able to log into the Web UI at https://<IP_ADDRESS> with the
following credentials:

<EMAIL_ADDRESS>DEFAULT_ADMIN_PASSWORD=[redacted]

If you follow the above and it's still not working for you, please post the contents of your $HOME/.firezone/.env and $HOME/.firezone/docker-compose.yml as I'm unable to reproduce.

I tried again and made a little progress, this time just get a blank page when trying to access by IP and it always redirects to https
Tried different browsers, clearing cache etc, Mac and Windows, Firefox, Edge, Safari
https://url.privatepastebin.com/17s