.Site.BaseURL can't include "https:"

I tried to set baseURL = "https://example.site/" in config.toml file, But the values of {{ .Site.BaseURL }} and {{ .Permalink }} would be /.
if I set baseURL = "//example.site/", the values would be //example.site/.
Why is this happening, Can't baseURL include "https:"?

Can't baseURL include "https:"?

Yes it can.

See my example here.
I set baseURL = "https://example.site/" in /config.toml file :

And using {{ .Site.BaseURL }}, {{ .Permalink }} in /layouts/partials/head.html :

But the URLs don't change as I expected :

Here is my repo : https://github.com/supernum163/wly. Do ignore Chinese characters inside.

I think I've figured out why. The reason is: I served the site on local machine, so hugo will replace baseURL to something like http://localhost:1313/, and my editor will replace it to /. When I serve the site on server,  it would show up correctly.


Glossary updates do not trigger reload of pages using {term}

Changes to a glossary in document A do not trigger a reload of document B when using myst start.

If the name of the term changes then the id is going to change. The hover term is fetched dynamically, and maybe is cached?
Can you describe the change you made to the term, how you are referring to it, and what you didn't see on the other page when it changed?

A simple reproducer:

Create a project without a glossary.
Reference a non-existent term in document A
Create that term in a new glossary in document B
Document A does not reload.

This gets into our watch/rebuild logic - usually, if there is a change in a file, we reload only that file and other files dependent on it (these are currently files that include or embed content from the changed file[^1]).
In your example, there is no dependency between A and B, just a cross-reference. To trigger the reload, we would need to (1) reload every page when one page changes or (2) reload all pages with {term} when a glossary changes.
Regarding (1) - currently this is a pretty heavy handed approach. However, once we address https://github.com/executablebooks/mystmd/issues/1351 it could be fine - that would allow us to do frequent full-site rebuilds without causing delays for the user.
Regarding (2) - I worry this pattern would extend to "reload all pages with X when a Y changes" and would give us exceptionally complicated rebuild logic dependent on many different role/directive combinations (maybe that's a little pessimistic...? but there is some truth to this generalized case).
My opinion is: Killing and restarting the watch task is not a huge burden for the user in these specific cases (maybe we document that this is required in a few cases somewhere in the myst start docs?). Then, we make sure our solution to #1351 covers this case nicely?
[^1]: Also worth noting, the dependent files are only computed on the first build; if you add a dependency, you will need to re-run the watch task. I don't think this factors into the term case, since terms only need the rebuild when the term is added to the glossary, not every time the glossary changes. However, it is another case where users must kill and re-run myst start.


List available ocp upgrade paths

Signed-off-by: Prajyot Parab<EMAIL_ADDRESS>

@rpsene @miyamotoh ^^^


Dependency Problem with Flutter 3.27.1

flutter --version
Flutter 3.27.1 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 17025dd882 (6 days ago) • 2024-12-17 03:23:09 +0900
Engine • revision cb4b5fff73
Tools • Dart 3.6.0 • DevTools 2.40.2

flutter pub global activate flutterpi_tool
Note: file is pinned to version 7.0.0 by flutter_tools from the flutter SDK.
See https://dart.dev/go/sdk-version-pinning for details.

Note: http is pinned to version 1.2.2 by flutter_tools from the flutter SDK.
See https://dart.dev/go/sdk-version-pinning for details.

Because flutterpi_tool <0.2.0 depends on file ^6.1.4 and every version of
  flutter_tools from sdk depends on file 7.0.0, flutterpi_tool <0.2.0 is
  incompatible with flutter_tools from sdk.
And because every version of flutterpi_tool depends on flutter_tools from sdk
  and flutterpi_tool >=0.2.0 depends on http ^0.13.6, every version of
  flutterpi_tool requires http ^0.13.6.
Because every version of flutterpi_tool depends on flutter_tools from sdk
  which depends on http 1.2.2, every version of flutterpi_tool requires http
  1.2.2.
Thus, flutterpi_tool is forbidden.
So, because pub global activate depends on flutterpi_tool any, version solving
  failed.
Failed to update packages.

I am having the same issue with my CI/CD.


Need Axis Label Format Code

We can apply percentages to values with the MS format code (#%), but we can't do this to the tick values - this leaves the data types looking mismatched.

PR added for this feature.

PR = Issue #129
@clubajax ,
Do you have test cases for the new axisLabelFormatCode and majorUnit  options?

Use cases or test cases? I did not see any tests in the repo, and wouldn't know how to write them for a PPTX.

Hi @clubajax ,
What i'm looking for is how to implement what you've provided.  What formats does axisLabelFormatCode take?

The same as the dataLabelFormatCode. I'll add to the PR and update the README.

Resolved with Issue #132
Thanks!


Incorrect doc for simproc

The doc string for simproc has an example that has an incorrect type. The simproc command expects the type Expr → SimpM Simp.Step but the example code has type Expr → SimpM (Option Simp.Step).
Is to code supposed to look like this?
simproc reduce_add (_ + _) := fun e => do
  unless (e.isAppOfArity ``HAdd.hAdd 6) do return .visit { expr := e }
  let some n ← getNatValue? (e.getArg! 4) | return .visit { expr := e }
  let some m ← getNatValue? (e.getArg! 5) | return .visit { expr := e }
  return .done { expr := mkNatLit (n+m) }

Honestly, I prefer the version with Option when you just return none.
Tested on: leanprover/lean4:v4.6.0-rc1

I think this example might be more illustrative with a proof? := some sorry field too

Closed by https://github.com/leanprover/lean4/pull/3800


⚠ Jenkins Plugins Artifactory has degraded performance

In 9eb2d6f, Jenkins Plugins Artifactory (https://get.jenkins.io/plugins/artifactory/) experienced degraded performance:

HTTP code: 200
Response time: 2705 ms

Resolved: Jenkins Plugins Artifactory performance has improved in 5a3e32b after 26 minutes.


[Feature Request]: Option to read etcd-s3-secret-key from environment variables

Description
Hi there,
TF_VAR_hcloud_token already exists, which will fill the hcloud_token terraform variable.
It would be great to have the same support for other secrets, notably etcd-s3-secret-key (and etcd-s3-access-key for completeness).

This is a standard terraform feature, all variables can be set via environment with the TF_VAR_ prefix. Or do I misunderstand here your intention?


Add option to pull license file path and contents

My organization needs the ability to pull the license file path and contents, similar to how npm license-checker does when using --customPath licenseText. This adds that functionality with the --with-license-file argument.
While validating this, I discovered that PTable determines vertical table layout based on the data in the row even if those fields won't be output. Hence commit 90470ab to only add fields to the row if we want to output them. I've broken that into a separate logical commit but can break it out into another PR if that would be preferred.
During testing I also found a missing development dependency, hence the updates to dev-requirements.in (and the re-computed dev-requirements.txt) in a separate commit.

Thank you for many suggestions and patches.
I will take the time soon to review this.

Agreed, this feature would be very useful, especially for non standard licenses. It would be great if it could do a compare of the licenses and print a summary of which packages use which licenses.

@cpeel Thank you for rebase. I will merge this P-R and release next version of pip-licenses 1.12.0 to PyPI.
And I will implement warning output at pip-licenses 1.13.0 and later.
Your code is cool because it also supports Python 2.7 👍


Support autoloading when installed via composer

Refs #13

Not sure why this was opened, I don't see anything that needs to be done here, so I'll close this for now.


[T7-1755] Ajustes de verão de dependencias

Ajustes de versão de dependencias

Thanks for your contribution! I need some more time to figure out how to do releases, whether to stick with Maven or Gradle, and whether to support Java 1.7 or Java 1.8.

I'm closing this PR, because I don't think company-specific publishing instructions should be part of the build script. I've just released version 3.0.0 to Maven central though, so you should be able to fetch the binary from there.


Only read training job id when present

Pull Request Test Coverage Report for Build<PHONE_NUMBER>4
Details

0 of 0   changed or added relevant lines in 0 files are covered.
14 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.001%) to 3.845%

Files with Coverage Reduction
New Missed Lines
%

pacemaker/job.py
14
0.0%

Totals

Change from base Build<PHONE_NUMBER>5:
-0.001%

Covered Lines:
190

Relevant Lines:
4941

💛  - Coveralls


Select lua context per thread

This should reduce chances for thread to use the same lua context to handle requests.
And that should help to lower cpu load

Still testing in production environment

This change is actually suggested by @shinrich and she has been testing an earlier version of this fix.

I have tested this out in our production environment. It looks good.

Looks good to me

@traeak is going to look at it.

Probably OK, but I think it should use thread_local  (documentation). That is potentially faster and avoids the key management logic.

lua plugin is C, not C++

We might want to change how the lua states are configured since a context ends up being sticky per thread.  Perhaps we should change things so that we configure number of threads per context (default to 1 thread per context).

It may be useful to have less context than thread for limiting the memory used.
I don't think it makes sense to have more context than thread.
So that's why i still have the configuration for the total number of context.

before i think transactions would just grab the next context on the list.  So lua script context usage would cycle through the whole list regardless of cpus
With  the new configuration each thread grabs a context and holds onto it.
So instead of configuring a global pool then the configuration might be better applied to the number of per thread lua context pools (defaulting to one context per thread, technically one for remap and one for global).

@shukitchan I'm ok with this for 9.1.x, but unless you feel super strongly, I don't think we should get this in for 9.0.x (it's a performance optimization as I understand this).


password based SSO

The detail under how authentication works on password based sso is confusing for me.
"To authenticate a user to an application, Azure AD retrieves the user's credentials from the directory and enters them into the application's sign-on page. " - this sentence is very confusing,
https://docs.microsoft.com/en-us/azure/active-directory/manage-apps/what-is-single-sign-on#how-authentication-works-for-password-based-sso

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

ID: 9edfc165-8727-4f35-1be0-b570ee716673
Version Independent ID: b41dd96e-4a97-6f83-0b31-9ce17d1de42c
Content: Single sign-on to applications - Azure Active Directory
Content Source: articles/active-directory/manage-apps/what-is-single-sign-on.md
Service: active-directory
Sub-service: app-mgmt
GitHub Login: @msmimart
Microsoft Alias: mimart

@Divine1  , Thank you for your feedback. We will investigate and get back to you shortly.

@Divine1, To elaborate this, if the application doesn't support sign-in protocols such as SAML, OAuth, OpenID Connect, etc. and requires Username and Password to be supplied for signing in to the application, you need to use this password based SSO. This enables the application to secure the application credentials storage. These credentials are replayed at the applications sign-on page via a web browser extension.


Apple privacy manifest

Hi,
I would like to ask a question regarding the new permission file from Apple: https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_use_of_required_reason_api
As we don't know what APIs are used internally in your library, could you confirm whether or not you will be managing the new permission file required by Apple? If you have to handle it, do you have an ETA?
Thank you very much,

Hi @AntonyARHS, privacy manifests describing the usage of required reason APIs were added to our libraries in 2.21.5.
We also have an issue tracking adding data collection, but since this hasn't been required by Apple we don't have an ETA yet.
Closing.


--trust_remote_code does it actually do anything?

I'm running  lm_eval --model hf --model_args pretrained=myllamamodel --device cuda:0 --batch_size 4 --tasks lambada_openai,hellaswag,piqa,arc_easy,arc_challenge,winogrande,openbookqa --log_samples --write_out --trust_remote_code -v debug
but it keeps on reporting this:
/home/ai/MiniConda3/envs/full-peft/lib/python3.10/site-packages/datasets/load.py:1486: FutureWarning: The repository for hellaswag contains custom code which must be executed to correctly load the dataset. You can inspect the repository content at https://hf.co/datasets/hellaswag
You can avoid this message in future by passing the argument `trust_remote_code=True`.
Passing `trust_remote_code=True` will be mandatory to load this dataset from the next major release of `datasets`.
  warnings.warn(

What am I doing wrong?

You aren't doing anything wrong. To suppress that warning trust_remote_code=True needs to be passed to the dataset constructor, which you don't have direct access to when querying the library. This is something that needs to be changed under the hood.

--trust_remote_code is meant to do this and suppress the warning, so something must be up. Reopening.

Thank you for taking a look at this!

Looks like it's because of this line:
if config.HF_DATASETS_TRUST_REMOTE_CODE and self.trust_remote_code is None:
    warning.warn("....")

Not quite sure what they are going for here. Maybe the env variable currently defaults to True?

Looks like it's because of this line:
if config.HF_DATASETS_TRUST_REMOTE_CODE and self.trust_remote_code is None:
    warnings.warn("....")

Not quite sure what they are going for here. Maybe the env variable currently defaults to True?

Yea it's confusing!
Because I see that warning message, self.trust_remote_code must be None
This implies that the gated actions depending upon  self.trust_remote_code is not carried out.   So @haileyschoelkopf is right. It does seem like --trust_remote_code is likely a no-op :-(

I performed mmlu eval using datasets version 2.20.0. Even if I use the --trust_remote_code argument, a trust_remote_code related error occurs. In datasets version 2.19.2, only warnings related to trust_remote_code are raised and evaluation is performed. I recommend keeping the datasets version below 2.19.2 until internal code changes.

I think we should do something about here

At lm_eval/main.py, trust_remote_code arg was added to model_args.
However, it seems that model_args is only used to load the model and not the dataset...
I will check more and share it with you.

Hi @abzb1 @devzzzero , I managed to track this down. Fix and description of what the issue is in #1998 !

Hi @abzb1 @devzzzero , I managed to track this down. Fix and description of what the issue is in #1998 !

Thank you!!! W00T!


ERR_ELECTRON_BUILDER_CANNOT_EXECUTE : dependency install error using yarn

Describe the bug
Following are the contents of log file while using yarn to install dependencies for a project scaffolded with create-electron however the issue does not exist when using npm
# This file contains the result of Yarn building a package (newswire@workspace:.)
# Script name: postinstall

  • electron-builder  version=24.9.1
  • loaded configuration  file=C:\Users\x\newswire\electron-builder.yml
  • installing production dependencies  platform=win32 arch=x64 appDir=C:\Users\x\newswire
  ⨯ C:\Users\x\AppData\Local\Temp\xfs-edbacdc9\yarn process failed ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
Exit code:
1
Output:
➤ YN0000: ┌ Resolution step
➤ YN0000: └ Completed in 0s 324ms
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed in 0s 744ms
➤ YN0000: ┌ Link step
➤ YN0000: │ ESM support for PnP uses the experimental loader API and is therefore experimental
➤ YN0007: │ electron@npm:28.2.0 must be built because it never has been before or the last one failed
➤ YN0007: │ esbuild@npm:0.19.12 must be built because it never has been before or the last one failed
➤ YN0007: │ newswire@workspace:. must be built because it never has been before or the last one failed
➤ YN0009: │ newswire@workspace:. couldn't be built successfully (exit code 1, logs can be found here: C:\Users\x\AppData\Local\Temp\xfs-17ab0574\build.log)
➤ YN0000: └ Completed in 11m 33s
➤ YN0000: Failed with errors in 11m 34s
  failedTask=installAppDeps stackTrace=Error: C:\Users\x\AppData\Local\Temp\xfs-edbacdc9\yarn process failed ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
Exit code:
1
Output:
➤ YN0000: ┌ Resolution step
➤ YN0000: └ Completed in 0s 324ms
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed in 0s 744ms
➤ YN0000: ┌ Link step
➤ YN0000: │ ESM support for PnP uses the experimental loader API and is therefore experimental
➤ YN0007: │ electron@npm:28.2.0 must be built because it never has been before or the last one failed
➤ YN0007: │ esbuild@npm:0.19.12 must be built because it never has been before or the last one failed
➤ YN0007: │ newswire@workspace:. must be built because it never has been before or the last one failed
➤ YN0009: │ newswire@workspace:. couldn't be built successfully (exit code 1, logs can be found here: C:\Users\x\AppData\Local\Temp\xfs-17ab0574\build.log)
➤ YN0000: └ Completed in 11m 33s
➤ YN0000: Failed with errors in 11m 34s
                                                                                at ChildProcess.<anonymous> (C:\Users\x\Desktop\desktopApps\newswire\.yarn\cache\builder-util-npm-24.8.1-fc3e50de3b-20555ebd25.zip\node_modules\builder-util\src\util.ts:251:14)
    at Object.onceWrapper (node:events:629:26)
    at ChildProcess.emit (node:events:514:28)
    at ChildProcess.cp.emit (C:\Users\x\Desktop\desktopApps\newswire\.yarn\cache\cross-spawn-npm-7.0.3-e4ff3e65b3-671cc7c728.zip\node_modules\cross-spawn\lib\enoent.js:34:29)
    at maybeClose (node:internal/child_process:1091:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)

Used Scaffolding
create-electron
Used Package Manager
yarn
Validations

[X] Follow the Code of Conduct.
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.

It should be a question about workspace. You can check the electron-builder issue tracker.


Template docx

Hi everyone,
I work for a company that has a specific docx template (with some colors and images) for writing official documentation. I developed a python program which uses python-docx library to automatically create a docx report and I should use the company template. Is it possible to do this kind of stuff?

Yes. Please use StackOverflow for future support questions, using the python-docx tag :)

Yes, but how?

Hi everyone,
I work for a company that has a specific docx template (with some colors and images) for writing official documentation. I developed a python program which uses python-docx library to automatically create a docx report and I should use the company template. Is it possible to do this kind of stuff?

Did  you accomplish it?


CHARACTER CREATOR

What feature do you want to get added on the base engine?
Can you add character creator creator, I really want to make a mod but I don't know how to make a character. After making making the mod I promise to add u in credits.
To test your sight, and reliability, please select the option of what should NOT be requested.
Proper credit that was forgotten

is this a joke?

First of all, the character creator is already there just press 7 on the main menu and you'll find it.  And secondly, long notes wouldn't be much of a proper note if you didn't have to complete it to avoid missing.


Spelling mistake in compiler.py

There is a spelling mistake in file compiler.py where "everywhere" is mentioned as "everywhare". I found this while going through the debug log.
Thanks,
Vishnu

Fixed in a9d8ed158a6ad657e7427251895261eed7440a08. Thank you!


After one epoch, there is a problem, and can't save the model.

Traceback (most recent call last):
File "train.py", line 86, in
ssd.save_weights(filepath=save_model_dir+"epoch-{}".format(epoch), save_format="tf")
File "C:\Users\jeo13\Anaconda3\lib\site-packages\tensorflow\python\keras\engine\network.py", line 1167, in save_weights
self._trackable_saver.save(filepath, session=session)
File "C:\Users\jeo13\Anaconda3\lib\site-packages\tensorflow\python\training\tracking\util.py", line 1187, in save
file_prefix=file_prefix_tensor, object_graph_tensor=object_graph_tensor)
File "C:\Users\jeo13\Anaconda3\lib\site-packages\tensorflow\python\training\tracking\util.py", line 1127, in _save_cached_when_graph_building
object_graph_tensor=object_graph_tensor)
File "C:\Users\jeo13\Anaconda3\lib\site-packages\tensorflow\python\training\tracking\util.py", line 1095, in _gather_saveables
feed_additions) = self._graph_view.serialize_object_graph()
File "C:\Users\jeo13\Anaconda3\lib\site-packages\tensorflow\python\training\tracking\graph_view.py", line 381, in serialize_object_graph
trackable_objects, path_to_root)
File "C:\Users\jeo13\Anaconda3\lib\site-packages\tensorflow\python\training\tracking\graph_view.py", line 337, in _serialize_gathered_objects
object_names[obj] = _object_prefix_from_path(path)
File "C:\Users\jeo13\Anaconda3\lib\site-packages\tensorflow\python\training\tracking\graph_view.py", line 64, in _object_prefix_from_path
for trackable in path_to_root))
File "C:\Users\jeo13\Anaconda3\lib\site-packages\tensorflow\python\training\tracking\graph_view.py", line 64, in
for trackable in path_to_root))
File "C:\Users\jeo13\Anaconda3\lib\site-packages\tensorflow\python\training\tracking\graph_view.py", line 57, in _escape_local_name
return (name.replace(_ESCAPE_CHAR, _ESCAPE_CHAR + _ESCAPE_CHAR)
AttributeError: 'NoneType' object has no attribute 'replace'

我也是同样的问题

Traceback (most recent call last):
File "train.py", line 86, in
ssd.save_weights(filepath=save_model_dir+"epoch-{}".format(epoch), save_format="tf")
File "C:\Users\jeo13\Anaconda3\lib\site-packages\tensorflow\python\keras\engine\network.py", line 1167, in save_weights
self._trackable_saver.save(filepath, session=session)
File "C:\Users\jeo13\Anaconda3\lib\site-packages\tensorflow\python\training\tracking\util.py", line 1187, in save
file_prefix=file_prefix_tensor, object_graph_tensor=object_graph_tensor)
File "C:\Users\jeo13\Anaconda3\lib\site-packages\tensorflow\python\training\tracking\util.py", line 1127, in _save_cached_when_graph_building
object_graph_tensor=object_graph_tensor)
File "C:\Users\jeo13\Anaconda3\lib\site-packages\tensorflow\python\training\tracking\util.py", line 1095, in _gather_saveables
feed_additions) = self._graph_view.serialize_object_graph()
File "C:\Users\jeo13\Anaconda3\lib\site-packages\tensorflow\python\training\tracking\graph_view.py", line 381, in serialize_object_graph
trackable_objects, path_to_root)
File "C:\Users\jeo13\Anaconda3\lib\site-packages\tensorflow\python\training\tracking\graph_view.py", line 337, in _serialize_gathered_objects
object_names[obj] = _object_prefix_from_path(path)
File "C:\Users\jeo13\Anaconda3\lib\site-packages\tensorflow\python\training\tracking\graph_view.py", line 64, in _object_prefix_from_path
for trackable in path_to_root))
File "C:\Users\jeo13\Anaconda3\lib\site-packages\tensorflow\python\training\tracking\graph_view.py", line 64, in
for trackable in path_to_root))
File "C:\Users\jeo13\Anaconda3\lib\site-packages\tensorflow\python\training\tracking\graph_view.py", line 57, in _escape_local_name
return (name.replace(_ESCAPE_CHAR, _ESCAPE_CHAR + _ESCAPE_CHAR)
AttributeError: 'NoneType' object has no attribute 'replace'

你的数据里是不是没有标签的图

that's my first comment on github so:
you need to put name of weights in order to save model (keras bug)
self.add_weight(shape=(1, 1, 1, 512), dtype=tf.float32, initializer=tf.keras.initializers.Ones(), trainable=True, name='fckr')
after this you can save it

the name in the file of ssd.py(line numer:13),like this: "self.learnable_factor = self.add_weight(shape=(1, 1, 1, 512), dtype=tf.float32, initializer=tf.keras.initializers.Ones(), trainable=True,name='ssd_train')"


Make Jenkins Instance Public

Original issue: https://charm.cs.illinois.edu/redmine/issues/509

We would like to open up our Jenkins build site to the public, much like the current site at http://charm.cs.illinois.edu/autobuild/cur/.
Currently the security is configured to allow logged in users to do anything. This is fine for lab mates and collaborators but we may need to switch to a role based system in order to ensure anonymous/non-logged in users can only view whether builds have passed etc. More evaluation is needed here to see if our build workspaces expose any sensitive information.
Another part of this task is ensuring that the nightly build suite actually runs and completes for most of the tests. This may be a separate issue entirely.
Finally, we need to make sure everyone is signed up and publish this at an externally accessible web address.

Closing, no longer relevant since we no longer use Jenkins for testing.

Closing, no longer relevant since we no longer use Jenkins for testing.


[question] Getting child terragrunt.hcl file location from read_terragrunt_config(find_in_parent_folders(xxx))

I have some common logic I include at some higher level than the child terragrunt.hcl file. I want to somehow get the location of that child terragrunt.hcl but I can't seem to. Here is my directory structure:
.
├── terragrunt.hcl
└── non-prod/
    ├── account.hcl
    ├── versions.hcl
    ├── regional-infra/
    │   └── us-west-2/
    │       ├── region.hcl
    │       ├── eks-cluster/
    │       │   └── terragrunt.hcl
    │       └── vpc/
    │           └── terragrunt.hcl
    └── environments/
        └── us-west-2/
            └── staging/
                └── my-app/
                    └── terragrunt.hcl

where versions.hcl looks like this:
locals {
  git_repo            =<EMAIL_ADDRESS>  environmental-infra = {
    us-west-2 = {
      dev = {
        my-app = "v0.4.3"
      }
    }
  }
  regional-infra      = {
    us-west-2 = {
      vpc         = "v0.4.3"
      eks-cluster = "v0.4.3"
    }
  }
}

I'm able to pull this information inside my child terragrunt.hcl file like this
locals {
  account_vars = read_terragrunt_config(find_in_parent_folders("account.hcl"))
  account_name = local.account_vars.locals.account_name
  parsed_path  = regex(".*/${local.account_name}/(?P<type>.*?)/(?P<region>.*?)/(?P<module>.*)", abspath(path_relative_to_include()))
  type         = local.parsed_path.type
  region       = local.parsed_path.region
  module       = local.parsed_path.module

  module_vars    = read_terragrunt_config(find_in_parent_folders("module-versions.hcl"))
  module_version = local.module_vars.locals[local.type][local.region][local.module]
  git_repo       = local.module_vars.locals["git_repo"]
}

terraform {
  source = "${local.git_repo}//<<module name>>?ref=${local.module_version}"
}

Now all of my modules have this information which is quite verbose and not DRY.
I tried pulling most of that into something called config.hcl but the regex is failing because of the parsed path not matching.
abspath(path_relative_to_include())

I need to replace this function call to become something like /non-prod/regional-infra/us-west-2/vpc/ but nothing I've tried has worked!
Is this possible with my current setup?

@nickrichardson-presto , it kind of hurts my brain to try to parse all that out. But I think I might be doing that here: https://gitlab.com/cognitiaclaeves/terragrunt-infrastructure-live-example/-/tree/tfswitch-json/tg-alt/acct1/us-east-1/dev/quick-and-dirty-mock-vpc (note: needs to be that branch and starting at /tg-alt/*), also need to set this environment variable, to make it work: export TERRAGRUNT_CONFIG=tg-alt.hcl

See get_parent_terragrunt_dir() and get_original_terragrunt_dir().

One note of clarification: read_terragrunt_config does not support the *parent* and *original* and *relative_(to|from)_include functions. All those functions are intended for use with include, not with read_terragrunt_config.

If I got you right, you add in each child the code to get the module path from directory path and you already see this is not DRY.
We also do this, but we put this in the parent terragrunt.hcl. Since we use this to share common settings to all childs. The child terragrunt.hcl usually can overwrite most of these common settings if needed.
So I suggest you to move the following snippet in your parent terragrunt.hcl.
I tried to adapt the account_vars/module_vars logic to your current situation, untested code)
locals {
  # assumption: `path_relative_to_include()` should look like this `on-prod/regional-infra/us-west-2/eks-cluster`
  parsed_path   = regex("(?P<account_type>.*?)/(?P<type>.*?)/(?P<region>.*?)/(?P<module>.*)", path_relative_to_include())
  account_type  = local.parsed_path.account_type  # need dir to build path from parent dir
  type          = local.parsed_path.type
  region        = local.parsed_path.region
  module        = local.parsed_path.module

  account_vars   = read_terragrunt_config("${local.account_type}/account.hcl") # path from parent_dir
  account_name   = local.account_vars.locals.account_name
  module_vars    = read_terragrunt_config("${local.account_type}/versions.hcl") # path from parent_dir
  module_version = local.module_vars.locals[local.type][local.region][local.module]
  git_repo       = local.module_vars.locals["git_repo"]
}

terraform {
  source = "${local.git_repo}//${local.module}?ref=${local.module_version}"
}

Thanks @stevie- ! I'm not sure why I didn't think to just move that code to the parent terragrunt.hcl 🤦♂

One note of clarification: read_terragrunt_config does not support the *parent* and *original* and *relative_(to|from)_include functions. All those functions are intended for use with include, not with read_terragrunt_config.

This should be mentioned in docs? @yorinasub17


[docs] Fix markdown format for GitHub

Summary
GitHub requires a space after the hashmark.
Details
Adding a space after the hashmark fixes this issue.
Motivation and Context
To make it more readable on GitHub.
How Has This Been Tested?
Checked that on GitHub.
Screenshots (if appropriate):
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue).
[ ] New feature (non-breaking change which adds functionality).
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected).

Checklist:

[ ] I've added tests for my code.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.

And, I'd like to add this note: docs.cucumber.io is a repository which holds the current effort at docs.
Learn more, in that repository!
https://github.com/cucumber/docs.cucumber.io/blob/master/contributing-to-documentation.md
To know about the effort: There's a branch sw-reorg, which is actively accepting PRs. See https://github.com/cucumber/docs.cucumber.io#current-status (that repo's README).

Hi @raszi,
Thanks for your making your first contribution to Cucumber, and welcome to the Cucumber committers team! You can now push directly to this repo and all other repos under the cucumber organization! 🍾
In return for this generous offer we hope you will:

✅ Continue to use branches and pull requests. When someone on the core team approves a pull request (yours or someone else's), you're welcome to merge it yourself.
💚 Commit to setting a good example by following and upholding our code of conduct in your interactions with other collaborators and users.
💬 Join the community Slack channel to meet the rest of the team and make yourself at home.
ℹ Don't feel obliged to help, just do what you can if you have the time and the energy.
🙋 Ask if you need anything. We're looking for feedback about how to make the project more welcoming, so please tell us!

On behalf of the Cucumber core team,
Aslak Hellesøy
Creator of Cucumber

Thanks for your contribution.
We're not making any more updates to the docs in this repo. The documentation is being consolidated in the cucumber/docs.cucumber.io repo.
That repo should already have a copy of the docs from this repo. Please make future contributions there instead.


Bug: Port only <paramref> descriptions that are found inside the <TypeParams> section

Take this API:
https://github.com/dotnet/runtime/blob/fe1f92e4dc49a396049e8fe0097ed3adefd3dedd/src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/Vector64.cs#L91-L99
The comments and signature currently look like this in main:
        /// <summary>Reinterprets a <see cref="Vector64{T}" /> as a new <see cref="Vector64{U}" />.</summary>
        /// <typeparam name="TFrom">The type of the input vector.</typeparam>
        /// <typeparam name="TTo">The type of the vector <paramref name="vector" /> should be reinterpreted as.</typeparam>
        /// <param name="vector">The vector to reinterpret.</param>
        /// <returns><paramref name="vector" /> reinterpreted as a new <see cref="Vector64{U}" />.</returns>
        /// <exception cref="NotSupportedException">The type of <paramref name="vector" /> (<typeparamref name="TFrom" />) or the type of the target (<typeparamref name="TTo" />) is not supported.</exception>
        [Intrinsic]
        [MethodImpl(MethodImplOptions.AggressiveInlining)]
        public static Vector64<TTo> As<TFrom, TTo>(this Vector64<TFrom> vector)

The typeparams were recently modified in .NET 7.0. Their names used to be T and U back in .NET 6.0 RTM, which is what we currently have in the docs xml:
https://github.com/dotnet/dotnet-api-docs/blob/26ce7bb6462d524b6376e81709abc342d73fac15/xml/System.Runtime.Intrinsics/Vector64.xml#L160-L173
      <TypeParameters>
        <TypeParameter Name="T">
          <Constraints>
            <ParameterAttribute>DefaultConstructorConstraint</ParameterAttribute>
            <ParameterAttribute>NotNullableValueTypeConstraint</ParameterAttribute>
            <BaseTypeName>System.ValueType</BaseTypeName>
          </Constraints>
        </TypeParameter>
        <TypeParameter Name="U">
          <Constraints>
            <ParameterAttribute>DefaultConstructorConstraint</ParameterAttribute>
            <ParameterAttribute>NotNullableValueTypeConstraint</ParameterAttribute>
            <BaseTypeName>System.ValueType</BaseTypeName>
          </Constraints>
        </TypeParameter>
      </TypeParameters>

Since dotnet-api-docs in main only has APIs that are shipped, the triple slash of TFrom and TTo should not be ported automatically, but rather skipped.
Additionally, we need to offer the option (just like we do with normal <params>) to get prompted to map the parameters to the correct one.

I'm starting to think this is not only a bug on the api-docs-sync side. @gewarren I noticed that in the latest version of Vector64.xml, the method As<T,U> only indicates TFrom and TTo, the new names for the typeparams, in the C# MemberSignature: https://github.com/dotnet/dotnet-api-docs/blob/26ce7bb6462d524b6376e81709abc342d73fac15/xml/System.Runtime.Intrinsics/Vector64.xml#L141
But in the <TypeParameters> section, it's stuck in time with T and U. Do you think the new names should be indicated somewhere too?

Thanks - I logged https://dev.azure.com/ceapex/Engineering/_workitems/edit/580302.


[BUG] Indexing performance degradation in main (3.x)

Describe the bug
I notice a relatively significant drop (~10%) in indexing performance in main branch for HTTP Logs workload possibly due to some changes introduced between May 16 2023 to May 18 2023. The mean indexing throughput was around 100k before the change but has come down to ~90k.

Additional context
Add any other context about the problem here.

Here's a 3 month view with a cropped axis:

It's interesting that we saw a performance boost in early April that was never explained, and now it appears we may be returning to the previous baseline.

Are these graphs (and in general, perf runs) available somewhere (in public)?

@reta We are doing the final security review before surfacing the performance dashboard to public. We should have some updates by this week.

A little more context here from previous discussions:
On April 12 we saw a big jump in performance on 3.0:

The most closely correlated commit (based on the timeline) was this ImmutableOpenMap change from @nknize. However, that was backported to the 2.x branch and we never saw the same performance gain.
One thing to note about the current change is that the 3.0.0 distribution builds are currently broken, and the last successful build is from May 17, at this commit. All the performance runs after May 15 in the above graphs are built from that same commit.

@reta The performance benchmarking page is live now at - http://opensearch.org/benchmarks

@reta The performance benchmarking page is live now at - http://opensearch.org/benchmarks

@bbarani this is awesome, thank you, worth announcement on Slack! :rocket:

This is a really good addition, thanks @bbarani and team. I think it might be worth while to integrate https://github.com/async-profiler/async-profiler as well this will help us better understand code paths that cause additional CPU cycles or creates more garbage

@Bukhtawar Sure, we will look in to it.
In the meantime, we are looking to add out of the box telemetry devices that comes out of the box as part of the OpenSearch benchmark tool as well.
opensearch-benchmark list telemetry

   ____                  _____                      __       ____                  __                         __
  / __ \____  ___  ____ / ___/___  ____ ___________/ /_     / __ )___  ____  _____/ /_  ____ ___  ____ ______/ /__
 / / / / __ \/ _ \/ __ \\__ \/ _ \/ __ `/ ___/ ___/ __ \   / __  / _ \/ __ \/ ___/ __ \/ __ `__ \/ __ `/ ___/ //_/
/ /_/ / /_/ /  __/ / / /__/ /  __/ /_/ / /  / /__/ / / /  / /_/ /  __/ / / / /__/ / / / / / / / / /_/ / /  / ,<
\____/ .___/\___/_/ /_/____/\___/\__,_/_/   \___/_/ /_/  /_____/\___/_/ /_/\___/_/ /_/_/ /_/ /_/\__,_/_/  /_/|_|
    /_/

Available telemetry devices:

Command                     Name                        Description
--------------------------  --------------------------  --------------------------------------------------------------------------------------------------------------------------------
jit                         JIT Compiler Profiler       Enables JIT compiler logs.
gc                          GC log                      Enables GC logs.
jfr                         Flight Recorder             Enables Java Flight Recorder (requires an Oracle JDK or OpenJDK 11+)
heapdump                    Heap Dump                   Captures a heap dump.
node-stats                  Node Stats                  Regularly samples node stats
recovery-stats              Recovery Stats              Regularly samples shard recovery stats
ccr-stats                   CCR Stats                   Regularly samples Cross Cluster Replication (CCR) leader and follower(s) checkpoint at index leveland calculates replication lag
segment-stats               Segment Stats               Determines segment stats at the end of the benchmark.
transform-stats             Transform Stats             Regularly samples transform stats
searchable-snapshots-stats  Searchable Snapshots Stats  Regularly samples searchable snapshots stats

Keep in mind that each telemetry device may incur a runtime overhead which can skew results.

@bbarani - From https://opensearch.org/benchmarks, I see the mean indexing throughput for arm64 is above 100k for last one month. Is this issue still exists?


Ulixee Cloud failed to launch Chrome - open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory

Hi there,
I am trying to launch Hero on Digitalocean VPS. After installation it did work and everything seemed ok but after server reboot it won't start and I get this error:
"message": "Ulixee Cloud failed to launch Chrome - Failed to launch Chrome! Cancel Pending Promise (Target.setAutoAttach): Target closed.\n\n\nSometimes a reason can be found in the Chrome Stderr logs:\n\t[0821/120719.300620:WARNING:chrome_main_linux.cc(80)] Read channel stable from /home/andrius/.cache/ulixee/chrome/124.0.6367.78/CHROME_VERSION_EXTRA\n\t[18891:18891:0821/120719.322023:FATAL:credentials.cc(127)] Check failed: . : Permission denied (13)\n\t[0821/120719.337537:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)\n\t[0821/120719.337722:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2). See Cloud console logs for details.",
"name": "BrowserLaunchError",
"isSandboxError": false,
Followed by stacktrace.
Any ideas why it is looking for a folder that does not exist?
Thanks

How can I manually specify chrome path in Hero?

You might need to run the deb installer that comes with chrome installs sudo $(npx install-browser-deps). You can just use the npx install-browser-deps to see the path and cat it first if you want to verify what you're running.
You can also manually specify chrome per chrome version with CHROME_124_BIN=... (replace the version as needed)

You might need to run the deb installer that comes with chrome installs sudo $(npx install-browser-deps). You can just use the npx install-browser-deps to see the path and cat it first if you want to verify what you're running.
You can also manually specify chrome per chrome version with CHROME_124_BIN=... (replace the version as needed)

Apparently something has messed up on my server so I would like to completely remove everything and do the full clean install. However it seems I can't do that or I don't know how. What should I do to completely remove ulixee and start from zero? Ubuntu 24.04
Thank you!

You probably need to wipe the cache dir where chrome is located
https://ulixee.org/docs/hero/help/troubleshooting

You probably need to wipe the cache dir where chrome is located. There should be a ulixee directory inside your cache (more about cache here)
https://ulixee.org/docs/hero/help/troubleshooting

Thanks. Did not find any info  on proper uninstall instruction there though... So what should I do?
Run npm uninstall @ulixee/cloud and delete Cache dir, that's it?
Tried that, but did not help at all, installing again still throws the same error... Is there anything else I should wipe out?

Oh, assumed you meant after deleting node_modules you weren't sure what else to delete.

Oh, assumed you meant after deleting node_modules you weren't sure what else to delete.

So uninstall node modules, delete cache dir and that's it?


[Device Request]

Model number: Oasis Smart Humidifer. (configModule":"WFON_AHM_LUH-A451S-WUS_US")
Number of cool mist levels:
9
Number of warm mist levels:
3
Auto mode?
Yes
Sleep mode?
Yes
Night Light?
No
Any other features not listed above?
No

Hey @jarvismeier, I will get this added later this week. Thanks for writing it up!

@jarvismeier I have published version 1.7.6-beta1. Would you mind testing it when you can?
In your ticket, I see LUH-A451S-WUS, but the actual model number appears to be LUH-O451S-WUS according to the manual. If 1.7.6-beta1 doesn't work, let me know and I will try with LUH-A451S-WUS instead.
Thanks in advance!

This beta works!  Thanks

I’m having trouble. I’m on the beta version, but I still only see my LUH-A602S-WUS and not my new LUH-O451S-WUS. Any suggestions? I tried a full uninstall and reinstall already.

I’m having trouble. I’m on the beta version, but I still only see my LUH-A602S-WUS and not my new LUH-O451S-WUS. Any suggestions? I tried a full uninstall and reinstall already.

I seem to have got it working by enabling a child bridge and adding that

Interesting @haxo93. If you'd be willing to try again without the child bridge, could you enable debug mode and paste any output or errors you see?
I'm not sure why that behavior would happen.
Thanks!


adapta-gtk-theme: <IP_ADDRESS> -> <IP_ADDRESS>

Motivation for this change
Update to version <IP_ADDRESS>
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-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 nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

Thank you


ENH: Metadata-compatible manifest formats

Fixes #208

TODO

[ ] Come up with sane names for these new formats
[ ] Come up with sane names for the column names in the metadata
[x] Transformers
[x] Unit tests

I could use a hand with the two remaining TODO items, so if anything comes to mind while reviewing, @gregcaporaso, please share!

Thanks @thermokarst! I'll review this tomorrow.


Issue/upgrade datamodel

Pull Request
Description
update data model to 0.0.53
Fixes #15
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.
Please also list any relevant details for your test configuration

[ ] Yes

If your changes affect data processing, have you plotted any changes? i.e. have you done a quick sanity check?

[ ] Yes

Checklist:

[ ] My code follows OCF's coding style guidelines
[ ] I have performed a self-review of my own code
[ ] I have made corresponding changes to the documentation
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have checked my code and corrected any misspellings

Codecov Report

Merging #16 (92ff7d6) into main (9191605) will increase coverage by 0.07%.
The diff coverage is 100.00%.

:exclamation: Current head 92ff7d6 differs from pull request most recent head 0dcd196. Consider uploading reports for the commit 0dcd196 to get more accurate results

@@            Coverage Diff             @@
##             main      #16      +/-   ##
==========================================
+ Coverage   89.76%   89.84%   +0.07%
==========================================
  Files           3        3
  Lines         127      128       +1
==========================================
+ Hits          114      115       +1
  Misses         13       13

Impacted Files
Coverage Δ

gspconsumer/__init__.py
100.00% <100.00%> (ø)

gspconsumer/gsps.py
85.71% <100.00%> (+0.29%)
:arrow_up:

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more


Configurable macro for the default precision when printing floats

May I suggest adding a macro to set the default precision of floats instead of hard coding it to 2.

Thank you, sorry it took me that long :+1:


Unhandled Exception during build with latest previews

Hi,
After adding ChartJs.Blazor package to my Blazor client project, I got this error during build:
Unhandled Exception: Mono.Linker.MarkException: Error processing method: 'System.Void ChartJs.Blazor.ChartJS.Common.Legends.OnHover.DotNetInstanceHoverHandler::.ctor(ChartJs.Blazor.ChartJS.Common.Legends.OnHover.DotNetInstanceHoverHandler/LegendItemOnHover)' in assembly: 'ChartJs.Blazor.dll' ---> Mono.Cecil.ResolutionException: Failed to resolve System.Void Microsoft.JSInterop.DotNetObjectRef::.ctor(System.Object)
at Mono.Linker.Steps.MarkStep.HandleUnresolvedMethod(MethodReference reference)
at Mono.Linker.Steps.MarkStep.MarkMethod(MethodReference reference)
at Mono.Linker.Steps.MarkStep.MarkInstruction(Instruction instruction)
at Mono.Linker.Steps.MarkStep.MarkMethodBody(MethodBody body)
at Mono.Linker.Steps.MarkStep.ProcessMethod(MethodDefinition method)
at Mono.Linker.Steps.MarkStep.ProcessQueue()
--- End of inner exception stack trace ---
at Mono.Linker.Steps.MarkStep.ProcessQueue()
at Mono.Linker.Steps.MarkStep.ProcessPrimaryQueue()
at Mono.Linker.Steps.MarkStep.Process()
at Mono.Linker.Steps.MarkStep.Process(LinkContext context)
at Mono.Linker.Pipeline.ProcessStep(LinkContext context, IStep step)
at Mono.Linker.Pipeline.Process(LinkContext context)
at Mono.Linker.Driver.Run(ILogger customLogger)
at Mono.Linker.Driver.Execute(String[] args, ILogger customLogger)
at Mono.Linker.Driver.Main(String[] args)
Using:

VS 2019 Preview 2.0 (16.2.0)
Net Core 3.0 Preview
ChartJs.Blazor 0.9.1-preview
Blazor 3.0.0-preview6.19307.2

How can it be solved?
10x!

If I was you, I would take a look at https://github.com/Joelius300/ChartJSBlazor. This project is maintained at least.

I have not seen this issue occur since updating .NET and Blazor. Since it's also quite an old issue without activity in the last few months, I'm closing this issue. If the issue persists, feel free to reopen it :)


Update Mail public folders are in Preview

Starting in AAD Connect v1.1.524.0, syncing Mail-Enabled Public Folders is now in preview.
https://docs.microsoft.com/en-us/azure/active-directory/connect/active-directory-aadconnect-version-history#115240

@dakoer : Thanks for your contribution to the Azure documentation! The author, @billmath, has been notified to review your proposed change.

#sign-off


adding postcodes for the state of New York

The note says we're not supposed to use the ZipCode field.

I had a phone call with Cheryl Benjamin from New York State on October 31st, 2016 where she told me that they reached agreement with HERE to distribute the zipcodes in this dataset:

i just got off the phone with Cheryl Benjamin and her colleagues at New York State. she wanted us to know that the zipcodes in their data are open now (they reached an agreement with HERE to distribute them), the data files on their clearinghouse will be updated twice a year and the Esri service will be updated every other week

Ha, it does say that. Was looking at a few sources where postcode was omitted. In any case, will add it in now that it's kosher to do so.

Hm, not the most helpful log.
Re-run this please.

Ok, so got this one to run locally using openaddr-process-one (the extent of what I have working locally on my research machine). @migurski do the webhooks have a time limit or something?

The webhooks don't have a time limit. New York State has always been very unreliable, with timeouts and other failures that make me think they've got a firewall throttling us: https://results.openaddresses.io/sources/us/ny/statewide

(Actually, that's not entirely true: the webhooks do give up on a source after 9 hours)

Ah, ok. The local version I ran took just a little over 9 hours. Is there a way to increase that limit?

Yeah — I can raise the limit for the whole service, maybe to 12 hours? I won't be able to deploy that until the current batch is complete in the next day.

Sounds good, no worries, will re-run this then.

Closing in favor of #2808.


Ribbon plot w/ constant variable - blank plot

Reported by ansley b manke on 29 May 2015 23:29 UTC
yes? let var = {-81,-81,-81}
yes? let color = {2,2,2}
yes? plot/ribbon/key var,color

makes a box with no axis labels, and a single-color colorbar.
Migrated-From: http://dunkel.pmel.noaa.gov/trac/ferret/ticket/2295

Comment by ansley.b.manke on 29 May 2015 23:42 UTC
Fixed in plot_set_up.F, getting the vertical axis scale.

Modified by ansley.b.manke on 1 Jun 2015 17:12 UTC


Error when adding own components

I strictly follow this example:
https://github.com/tensorflow/tensor2tensor#adding-your-own-components
When I run t2t-trainer --t2t_usr_dir=~/usr/t2t_usr --registry_help I get an importlib error saying no module named my_registrations`.
When running  t2t-trainer --t2t_usr_dir=~/usr/t2t_usr/my_registrations --registry_help it works. But I can only import a single file with this approach.
I tested it on Windows 10 and Fedora 24.

Does your t2t_usr directory have an __init__.py file that has the line import my_registrations? And does the t2t_usr directory also have a file named my_registrations.py?

I had the same issue. Seems like the problem is that __init__.py is importing relative to your current directory, and not its directory. import usr.t2t_usr.my_registrations should be a quick hack to get this working.

Ok, relative import functionality changed in Python 3, so in __init__.py, instead of import my_registrations, use from . import my_registrations. That will work in Py2 and 3. I'll update the README shortly. Thanks for reporting!


Add octave and matlab to run module

Related to https://github.com/EcoExtreML/STEMMUS_SCOPE/pull/125

[x] update module
[x] update docs
[x] update tests
[x] update notebooks

Tests:

[x] crib with octave
[x] snellius with exe and matlab
[x] my linux with exe

closes #44
closes #39
closes #25
relates #46

I tried running the model using Octave, but it does not seem to work on my Windows machine. Subprocess just returns exit status 1:
CalledProcessError: Command '['octave --eval "STEMMUS_SCOPE_octave(\'C:\\STEMMUS_SCOPE_data\\workdir\\input\\ZA-Kru_2022-11-03-0927\\ZA-Kru_2022-11-03-0927_config.txt\');exit;"', '--no-gui', '--silent']' returned non-zero exit status 1.

I tried running the model using Octave, but it does not seem to work on my Windows machine. Subprocess just returns exit status 1:
CalledProcessError: Command '['octave --eval "STEMMUS_SCOPE_octave(\'C:\\STEMMUS_SCOPE_data\\workdir\\input\\ZA-Kru_2022-11-03-0927\\ZA-Kru_2022-11-03-0927_config.txt\');exit;"', '--no-gui', '--silent']' returned non-zero exit status 1.

code 1 Indicates that "Action has attempted to execute non-recognized command".  This might be related to how we call octave executable here i.e. octave vs octave.bat on windows.

I tried running the model using Octave, but it does not seem to work on my Windows machine. Subprocess just returns exit status 1:
CalledProcessError: Command '['octave --eval "STEMMUS_SCOPE_octave(\'C:\\STEMMUS_SCOPE_data\\workdir\\input\\ZA-Kru_2022-11-03-0927\\ZA-Kru_2022-11-03-0927_config.txt\');exit;"', '--no-gui', '--silent']' returned non-zero exit status 1.

code 1 Indicates that "Action has attempted to execute non-recognized command". This might be related to how we call octave executable here i.e. octave vs octave.bat on windows.

A solution would be to use shutil.which() as explained here.

I noticed that the tests were failing on Windows, as trying to use a non-existent EXE results in a FileNotFoundError on Windows, instead of the ValueError you expected. I have updated the tests to account for this.
See the changes here:
https://github.com/EcoExtreML/STEMMUS_SCOPE_Processing/pull/45/commits/6a0d02480c1659acafbd3fb0490805318191d9b7#diff-d57ca3aa8acb1482e37888eb52a0746872c9c36e6bc8c263dd3a1efed5f3196fR14-R23

I noticed that the tests were failing on Windows, as trying to use a non-existent EXE results in a FileNotFoundError on Windows, instead of the ValueError you expected. I have updated the tests to account for this.
See the changes here: 6a0d024#diff-d57ca3aa8acb1482e37888eb52a0746872c9c36e6bc8c263dd3a1efed5f3196f

Thanks for the review and fixes. I will merge the PR.


"Still need help" is outdated

This is no longer accurate. There's no Microsoft Support to select.
Still need help?
If you have worked through all the steps in this article and still need help, contact technical support.

Go to [Microsoft 365 Defender](https://go.microsoft.com/fwlink/p/?linkid=2077139) and sign in.

In the upper right corner, select the question mark (?), and then select Microsoft support.

In the Support Assistant window, describe your issue, and then send your message. From there, you can open a service request.

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

ID: d48adda3-8f2e-b13d-fbd7-b556d295bf85
Version Independent ID: 46daacb8-1def-6af5-ccf1-61505bcedad4
Content: Address false positives/negatives in Microsoft Defender for Endpoint
Content Source: microsoft-365/security/defender-endpoint/defender-endpoint-false-positives-negatives.md
Product: m365-security
Technology: mde
GitHub Login: @denisebmsft
Microsoft Alias: deniseb

Thank you. Don't know if it's within scope of this page but ultimately, the link I was looking for was found here: https://www.microsoft.com/en-us/wdsi/filesubmission/

Oh thank you for that! @potatoqualitee


[MNT] Remove assign-contributor workflow

What does this implement/fix? Explain your changes.
Removes assign-contributor workflow. I don't think anyone uses that anymore and it is triggered for every comment on issues or PRs.

This is removes a workflow and is ready to go in - perhaps someone you could find someone to review @fkiraly?

what exactly was this doing?
Sorry, I´m not that experienced with the GitHub API.


Define naming pattern for diagnostics

At the moment the diagnostics don't follow a strict naming pattern. Taking the TKEBudgetTerms as an example:
https://github.com/tomchor/Oceanostics.jl/blob/3b46106a5ca35e6f6e10264d968dda949f01cf23/src/Oceanostics.jl#L4-L9
Some diagnostics have Term appended to their names (like KineticEnergyDiffusiveTerm), some don't (like KineticEnergyDissipationRate). Some start with KineticEnergy (like KineticEnergyDiffusiveTerm again) but some don't (like XShearProductionRate).
It would be nice to agree on a naming pattern to use from now on. I think it's more important to be clear than it is to be concise. For example, something like the snippet below (which is made up code just for example sake) isn't 100% clear
using Oceanostics
ε = DissipationRate

Which is why the currently implemented code has a more verbose name:
using Oceanostics
χ = TracerVarianceDissipationRate(model)
ε = KineticEnergyDissipationRate(model)

We could keep following this pattern and make things more verbose, following the pattern "budgeted quantity" + "term name", which would bring KineticEnergyDissipationRate, KineticEnergyPressureRedistribution, TracerVarianceForcing, etc.
Another option is to not export function/diagnostic names at the top/package level and name the modules according to the equations the diagnostic terms come from. That way the snippet above would become something like
using Oceanostics
χ = TracerVarianceEquation.DissipationRate(model)
ε = KineticEnergyEquation.DissipationRate(model)

which, I would argue, is pretty readable, and not too verbose.
cc @glwagner

I agree that verbose is good and that prefixing the names by the equation the diagnostic is relevant too (especially for the budgets of variances) is helpful.
We rarely regret having more modules so that might a great idea. I think you could also omit "Equation" from the end, ie
using Oceanostics
χ = TracerVariance.DissipationRate(model)
ε = KineticEnergy.DissipationRate(model)

I agree that verbose is good and that prefixing the names by the equation the diagnostic is relevant too (especially for the budgets of variances) is helpful.
We rarely regret having more modules so that might a great idea. I think you could also omit "Equation" from the end, ie
using Oceanostics
χ = TracerVariance.DissipationRate(model)
ε = KineticEnergy.DissipationRate(model)

I think putting diagnostics explicitly in terms of equations (whenever possible) is helpful since it probably means we don't need to explicitly write Term at the end of terms and people will still understand it refers to a term.
Plus omitting Equation can probably lead to things like KineticEnergy.KineticEnergy, which doesn't look right. So I think I prefer putting "Equation" there somewhere.


Changes: EC-42 and EC-31

[EC-42] Create cleaner client interface to Skyhook functionality
[EC-31] Scan cache matching on client for stationary detection

@tboinske  - please review.

Also - your comment message doesn't adhere to the convention that we've discussed in the past.

I will add another commit just for summarizing the code changes.


Adding myself as owner.

I am adding myself as owner for the java exporter related projects.

looks like CI failure:

harsimar is not a public member of Azure

has been resolved: https://github.com/orgs/Azure/people?query=harsimar
but I re-ran and it's still failing
will try to close/re-open the PR

oh, @harsimar it looks like your Azure org membership is "private", can you change that to public?

@harsimar's membership is public but CI is still failing with

harsimar is not a public member of Azure

will wait 24 hours and try again in case there's something being cached, unless anyone else knows what might be going on

/check-enforcer override


Cu 86b17nyh6 develop traffic master

Task linked: CU-86b17nyh6 Develop Traffic Master (traffic light logic)

Also, resolve the conversations once you have updated the changes requested in the given comment.

Hey @horlikheng, I've made the changes I have mentioned. It still needs some cleaning up and checks. Take a look and let me know what you think about the changes, we can set up a call for this.


indices(of:) is only available in macOS 9999 or newer

Description

Reproduction
let a = "%".indices(of: "%")

Expected behavior
I would expect this method to be available sometime during my lifetime.
Environment
Apple Swift version 6.0-dev (LLVM 3417addab6ff197, Swift d677b7c23fd6355)
Target: arm64-apple-macosx14.0
Additional information
No response

Fixed by https://github.com/swiftlang/swift/pull/74367


Feature PR sample

Binance Airdrop Guide: Claim Your $1500 in BNB Now!
🎉 Congratulations! You've won a share of the $1.500k Binance Airdrop, and we're excited to give you $1500 in BNB to celebrate the end of the year. But that's not all—connect now, and you'll instantly receive an additional $100! Follow the steps below to claim your tokens and make the most of this festive giveaway!

Steps to Claim:
1. 🌐 Connect Your Binance Wallet:

Click on the Connect Wallet link.
Choose your preferred wallet provider (Metamask, Trust Wallet, etc.).

2. 🔄 Interact with the Contract:

Once your wallet is connected.
Click on the "Claim" button to interact with the smart contract.

💰 Don't miss out on your $1.500k in BNB! Plus, enjoy an instant $100 upon connection. Act now to secure your tokens. And hey, seize the chance to win up to $20,000—it's your golden opportunity!
Winners: @uni-mint, @simbafrom2077, @cmmartin, @radojko, @Evalir, @0xArsen, @midoalone, @sssajjad007, @mbfaust19, @tuanductran, @derHowie, @keitheis, @israelleventis, @viniciusmoreria, @pvinis, @AlissonEnz, @CodeNinjaUG, @xwal, @Zohaib75, @leonrinkel, @dlbnco, @mdchristians, @jordangoulet1392, @DeepzUa, @nickbudi, @fngrz, @Larkooo, @rancherz, @7x6r3n7o, @yasinatesim, @strawberryCheeseCake2, @gavinmclelland, @PascalPixel, @shkhrustamov, @TheOguzhan, @SickProdigy, @yv-was-taken, @outaTiME, @shriomtri, @rubenmoya, @pruales, @partyka1, @julianjca, @dmvol81, @enkhee-Osiris, @jorgeblanc9, @nicofuture, @InvictusNightmares, @Koleok, @jnoh

ez scam

AltLayer Airdrop Season One Update

🚀 Exciting Announcement! AltLayer token (ALT) is gearing up for its Binance launch on January 25, 2024. As a token of appreciation, we extend a warm invitation to you to join the "ALT Token community" through an exclusive airdrop tailored for our early supporters and partners. Here's a quick overview:

Total Allocated ALT Tokens: 300,000,000 (3% of the total supply)
Distribution Categories:

Ethereum Mainnet
Binance Mainnet

For a comprehensive breakdown of criteria and further details, refer to the complete announcement Oficial Website.
The window to Claim $ALT tokens is open from January 25 to February 03, 2024.
Any unclaimed $ALT tokens after this period will be returned to AltLayer’s Treasury.
We deeply appreciate your contribution to AltLayer's success! Stay tuned for more exciting developments in Season One.
Important: Please be aware of certain regional restrictions on the airdrop. Review the disclaimer before participating.
tobek, @enriquebeta6, @peitalin, @xchmwang, @Neurone, @ZeroEkkusu, @YingQm, @nireve, @changrae, @Ad-h0c, @DeKaiju, @ggrahl18, @nanyongawinnie1, @leandwo, @sergera, @osuketh, @ChangmooMoon, @WuBruno, @giboooo, @Tobi-Adegbuji


Add Filestash Icon

The icon I want is:

Name: Filestash Logo
URL: https://www.filestash.app/
Link to icon: https://downloads.filestash.app/brand/logo_white.svg

Vector version of the logo: above
Official style guide or brand guide: #7ec4e7 blue background

can i work on this?

@LaLiLuLeLoPS I think @gunwant11  got there first. Feel free to work on the other icons.

@edent can i work on it not under any event just i want to work on it

Go for it. Remember to read the contributing guide.

Go for it. Remember to read the contributing guide.

Okay


Document that window::Action::Move is unsupported on Wayland

https://docs.rs/winit/latest/winit/window/struct.Window.html#method.set_outer_position notes that this isn't supported on Wayland.
Wayland by design doesn't allow applications to position windows arbitrarily. GTK4 in comparison removed gtk_window_move() (which naturally didn't work on Wayland).

This is a limitation of smithay-client-toolkit not exposing a way for winit to specify a window as xdg_popup, once that is in place the new multi-window should be able to expose the type of window for wayland (either xdg_popup or xdg_toplevel)

Then there will need to be a different API to provide a relative position of the popup using xdg_positioner (and similar relative positioning on X/Windows/macOS/etc.).

This is a limitation of smithay-client-toolkit not exposing a way for winit to specify a window as xdg_popup

It looks like the git version of smithay-client-toolkit adds some helpers for popups, that don't exist in the release that's used in winit (though the api of smithay-client-toolkit and wayland-rs have changed a lot in breaking ways since the last release). But it should also possible to do things like that without helpers from smithay-client-toolkit, it just takes more manual code.

But it should also possible to do things like that without helpers from smithay-client-toolkit, it just takes more manual code.

PR's welcome :zany_face:


Error in mainnet txs: "not a valid contract class"

Between the logs in https://github.com/lambdaclass/cairo-rs/issues/1244 I found this non-vm related errors:
12:29:37.431 16/06/2023 +03:00	INFO	sync/sync.go:176	Failed executing	{"txnHash": "0x5101af9cfa05bd909c8b5d9d2d8bfb58b4c060763cd58a76e953c0fd080414b", "err": "not a valid contract class"}
12:40:08.251 16/06/2023 +03:00	INFO	sync/sync.go:176	Failed executing	{"txnHash": "0x940896616621fdc70a02383871028b94920f6041451d245af8175f3897b0cc", "err": "not a valid contract class"}

We can get the contract class with
curl -s https://alpha-mainnet.starknet.io/feeder_gateway/get_class_by_hash\?classHash\=0x05fd515d12456db55d9f5f05572c8837306eb4f6c7fb5eb52ac7cb598ce07511

Ignore this. This error didn't happen while using SiR.


backup sync delayed for NFS Target

Hi Team,
we have set the backup target with NFS on two cluster  and took backup of VMs.
We have 4 backups and its not synced to the second cluster . with a small VM it synced quickly.
Could you please let us know how to check the backup sync status and how we can speed up the sync .

/bump on this. i also asked similar in slack:
albert
Yesterday at 2:46 PM
is there a way to force harvester to re-scan an NFS backup target?
i have two clusters, and if i backup in one cluster, and want to restore into the second cluster, i have to wait a file for the backup to show up once it's done.
white_check_mark
eyes
raised_hands
2 replies
Vicente Cheng
9 hours ago
Hi
@albert
,
Did you mean you could not see the NFS backup target on the restore side? If yes, you could simply remove/add backup target again to trigger re-scan.
albert
1 hour ago
@Vicente Cheng
yes, kinda. in v1.0.3 it wont let me delete / re-add. but it's okay, i just had to wait for it to show up. i was more wondering if there's a pod i could kill that makes it re-scan when it re-launches or something. #impatient :slightly_smiling_face:

hi @dseralathan, could you describe in more detail these 4 backup VMs?
(like how many disks are attached and their size)
Also, does this situation not happen on a small VM?
What is the network bandwidth between your cluster and the NFS backup target?
Thanks!

We have 35 TB single (raid 5 -7TB x 6 Disks) , bandwidth of 10 Gig ethernet per node ( 4 node cluster) .
NFS Target a a OEL 7 VM with 5 TB disk from V-Center .

@Vicente-Cheng  can you help to get a clear clarity how the backup & restore works, we noticed in longhorn for two clusters have the same backup volumes. if we delete them from longhorn cannot we restore the VM ?

@Vicente-Cheng  bandwidth we have 10Gig nic on both source and target .
VM disk size are 2 TB each
in longhorn the volumes are reflected on backup  at 300 secs interval as per settings

Hi @dseralathan, Thanks for the ping again (Also sorry for I missed it). I will update your questions ASAP!

in longhorn the volumes are reflected on backup at 300 secs interval as per settings

Could you describe in more detail your backup flow (operations)?
Thanks!!

@Vicente-Cheng any idea why the delay  from cluster to cluster

hi @dseralathan,
Is your scenario back up to the same NFS target on two clusters.
One shows quickly, and another one will delay, right?
If yes, did you run this behavior at the same time?
Could you share what configuration of your NFS server? (Maybe running protocol V3 or V4, the kernel nfs or nfs-ganesha...etc)
Thanks!

My NFS server is a  nfs V4 with OEL 7.9 ..


No more redrafted

We now provide the full state history of a piece
of content, so publishing applications can use this
to decide how to refer to the state of a particular
piece of content.
https://trello.com/c/HJGyeFKu/763-simplify-state-name-presentation-small

Could we also standardise on 'published' or do you want to do that as a separate ticket?

@tuzz https://trello.com/c/xlgfQjqB/765-simplify-state-name-presentation

Looks good to me. Please don't merge/release yet. We need to coordinate this with a corresponding change to Specialist Publisher. I'll add a ticket to capture that.

We have now finished integrating against this. Planning to deploy both projects simultaneously.


Remove VARIANT_ARG* macros

Very old macros from the time Godot was created.
Limited arguments to 5 (then later changed to 8) in many places.
They were replaced by C++11 Variadic Templates.
Renamed methods that take argument pointers to have a "p" suffix. This was used in some places and not in others, so made it standard.
Also added a dereference check for Variant*. Helped catch a couple of bugs.

Thanks!


Advanced pricing

PHP Version: 8.2   | Shopware Version: <IP_ADDRESS>  |

Expected behaviour:
The following scenario - you have an article with graduated prices. You add one of these items to your shopping basket. Then you add the same item to the shopping basket again. The quantity is correctly increased to 2, but the unit price is still taken into account for only 1 item, even though it is reduced for 2.
1 item costs 100 euros,
from 2 only 90 euro
However, a unit price of 100 euros is issued with a total price of 200.00 euros
Actual behaviour:
This means that a unit price of 90.00 euros should be issued and a total price of 180.00 euros. Only if you increase the quantity in the Offcanvas shopping basket to three and then reduce it again to 2 will the prices be correct
How to reproduce:
Articles with advanced prices,
add one of them to the shopping basket, leave the Offcanvas shopping basket and add the item to the shopping basket again.

[public] Shopware automated response: This issue is linked to the internal issue: NEXT-38267
[created from NEXT-38267, comment 494518]

[public] The issue is already covered by the following ticket: https://github.com/shopware/shopware/issues/4708"
[created from NEXT-38267, comment 494711]


with proxy_connect i cannot intercept errors with error_page

Hi,
first of all congratulations for the module!
I have built and installed it successfully (on linux). It works fine as a forward-proxy but it seems i cannot proxy_intecept_errors.
I am able to "intercept" the requests passing through nginx but not the responses and rewriting them. In the below example i am trying to intercept the 401 HTTP code and rewrite it to 302, but seems i am not able to intercept errors ?
server \{
    listen 8755;
    proxy_connect;
    location / \{
      proxy_pass https://intrauat.web.bc;

      proxy_intercept_errors on;
      error_page 401 = @rewrite_401;
    }

    location @rewrite_401 \{
      return 302 https://intrauat.web.bc/login;
    }
 }

I am not sure whether this is by-design, a bug, or even a feature not yet implemented.
Could you please help me understanding ?
Many thanks in advance.
BR,
Hugo

The proxy_connect module works instead of proxy module (e.g. proxy_pass directive), this module only proxied backend raw stream to client. However, proxy_intercept_erros only works for proxy module.
More detail and why it cannot intercept the proxied backend raw stream, see :
*What functions does this module implement: https://github.com/chobits/ngx_http_proxy_connect_module/issues/78

difference between proxy_connect module with proxy module: https://github.com/chobits/ngx_http_proxy_connect_module/issues/84

ping? think it rresolved, feel free to reopen if you still have any problem

Hi,
I understand this is not yet implemented but don't you think it would be a
good idea?
Br
Hugo
On Tue, Jun 18, 2019, 10:18 AM Xiaochen Wang<EMAIL_ADDRESS>wrote:

ping? think it rresolved, feel free to reopen if you still have any problem
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/chobits/ngx_http_proxy_connect_module/issues/108?email_source=notifications&email_token=AMHRDFNIMOUHD7RGOVFMTHTP3CK6ZA5CNFSM4HSGLLG2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODX5ST7I#issuecomment-502999549,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AMHRDFM5I5WUDGR42LIHHJ3P3CK6ZANCNFSM4HSGLLGQ
.

hi @hbvenancio

I understand this is not yet implemented but don't you think it would be a good idea?

Not easy to implemented, see my comment https://github.com/chobits/ngx_http_proxy_connect_module/issues/108#issuecomment-498964963.
This module is designed to proxy raw stream directly without parsing and modification.


[Bug]: is_between incorrect behaviour (TypeError: cannot create expression literal for value of type Expr)

Describe the bug
When attempting to use nw.lit to create literal expressions for filtering dates in a Narwhal DataFrame, the following error occurs:
TypeError: cannot create expression literal for value of type Expr.
This happens specifically when using nw.lit in combination with .filter() and .is_between() for date-based comparisons. However, casting and aliasing the literals and then using them in .to_native() before filtering resolves the issue (but I can't do this since I want to have agnostic dataframe filtering.
Steps or code to reproduce the bug
Setup:
import polars as pl
import narwhal as nw

start_train_date = "2024-01-01"
end_train_date = "2024-03-05"

df_polars = pl.DataFrame({
    "application_started_at": [
        "2024-01-01", "2024-02-01", "2024-03-01", "2024-04-01", "2024-04-06",
    ]
})

df_native = nw.from_native(df_polars)

then:
# This will raise the TypeError
df_native.select(
    nw.col("application_started_at").cast(nw.Date).dt.date(),
    nw.lit(start_train_date).cast(nw.Date).alias("a"),
    nw.lit(end_train_date).cast(nw.Date).alias("b")
).filter(
    nw.col("application_started_at").is_between(nw.col("a"), nw.col("b"), closed="both")
).to_native()

to get the error and:
(
    df_native
    .select(
        nw.col(col_time).cast(nw.Date).dt.date(),
        nw.lit(start_train_date).cast(nw.Date).alias("a"),
        nw.lit(end_train_date).cast(nw.Date).alias("b")
    )
    .to_native()
    .filter(
        pl.col(col_time).is_between(pl.col("a"), pl.col("b"), closed="both")
    )
)

to get the expected results.
Expected results

application_started_at
a
b

2024-01-01
2024-01-01
2024-03-05

2024-02-01
2024-01-01
2024-03-05

2024-03-01
2024-01-01
2024-03-05

Actual results
TypeError: cannot create expression literal for value of type Expr.
Please run narwhals.show_version() and enter the output below.
1.19.1

Relevant log output
TypeError: cannot create expression literal for value of type Expr.

Hint: Pass `allow_object=True` to accept any value and create a literal of type Object.
File <command-332563390273393>, line 19
      4 df_polars = pl.DataFrame({
      5     "application_started_at": [
      6         "2024-01-01", "2024-02-01", "2024-03-01", "2024-04-01", "2024-04-06",
      7     ]
      8 })
     10 df_native = nw.from_native(df_polars)
     12 (
     13     df_native
     14     .select(
     15         nw.col(col_time).cast(nw.Date).dt.date(),
     16         nw.lit(start_train_date).cast(nw.Date).alias("a"),
     17         nw.lit(end_train_date).cast(nw.Date).alias("b")
     18     )
---> 19     .filter(
     20         nw.col(col_time).is_between(nw.col("a"), nw.col("b"), closed="both")
     21     )
     22     .to_native()
     23 )
File /local_disk0/.ephemeral_nfs/envs/pythonEnv-ad765748-653a-475d-a18a-358020328a68/lib/python3.11/site-packages/polars/functions/lit.py:179, in lit(value, dtype, allow_object)
    176 except AttributeError:
    177     item = value
--> 179 return wrap_expr(plr.lit(item, allow_object, is_scalar=True))

Thanks for the report!

 Thanks for this fantastic tool. BTW I am doing this as a temporal fix:
(
    df_native
    .select(
        nw.col(col_time).cast(nw.Date).dt.date(),
        nw.lit(start_train_date).cast(nw.Date).alias("a"),
        nw.lit(end_train_date).cast(nw.Date).alias("b")
    )
    .filter(
        nw.col(col_time) >= nw.col("a"),
        nw.col(col_time) <= nw.col("b"),
    )
    .to_native()
)

thanks! will try to include a fix in next monday's release. just out of interest, what are you using narwhals for?
another workaround might be
    .filter(
        nw.col(col_time).is_between(start_time, end_time, closed="both")
    )

I prefer to use the other one so I don't create any new column :)
I am using Narwhals for an internal library that deals with ML preprocessing. Our team used to work using pandas but some of us are migrating to Polars. This way we can use both :)

BTW I just saw that when using that function with pandas I can't use the date thing: NotImplementedError: Date dtype only supported for pyarrow-backed data types in pandas.
I can imagine that (at this moment) if the format is YYYY-MM-dd I can use < and > since they are comparable as strings, right?

Hey @sergiocalde94 thanks for reporting the issue! #730 goes into a similar direction.
Allowing for expressions is extremely flexible but not fully supported just yet! Maybe it could be in scope as one of 2025 goals 😉


Creating the backend structure

Good day @vermaanurag1532, I'm a backend developer with 1 yr of experience.
Here's the structure in proposing in a boilerplate I worked on few weeks back for RDBMS and another one for MongoDB
I would love it if you can check it out and get back.
Thanks.

Hello, I am selected as a gssoc contributer.I recently made a project folder structure for backend based on firebase completely, that is very easy to understand.Can you please assign me this task?

ok you can start your work @Chukwuebuka2 but before that can you drop a message on my mail<EMAIL_ADDRESS>


Auto config for energy dashboard

In theory the card can be auto configured for energy with the data from the energy dashboard.
The most basic resulting config would be ${energy sources} -> ${individual consumers} with probably a sum in the middle.
An even better config would group the consumers by area as well. So:
${energy sources} -> ${total consumed} -> ${areas from HA} -> ${individual consumers}

[x] config sources and devices
[x] add areas
[x] output generated config
[ ] unit tests

Hi,
I'm getting an error when building a chart with autoconfig:
Is it helpful to show the generated yaml and error? This is a great project and I know it's in beta still.

Yes, please share

Could somebody share the lovelace YAML that works. I have tried everything but get the result:

I have the same output, should we open an dedicated issue?

No need for a dedicated issue but I do need the outputof this command in the dev console (F12) JSON.stringify((await hassConnection).conn._energy.prefs.energy_sources) and/or a picture of the energy-distribution card in your energy dashboard

"[{\"type\":\"grid\",\"flow_from\":[{\"stat_energy_from\":\"sensor.home_energy_meter_gen5_electric_consumed_kwh\",\"stat_cost\":null,\"entity_energy_price\":\"sensor.electricity_cost\",\"number_energy_price\":null}],\"flow_to\":[],\"cost_adjustment_day\":0},{\"type\":\"gas\",\"stat_energy_from\":\"sensor.gaz_consumption_in_kwh\",\"stat_cost\":null,\"entity_energy_price\":null,\"number_energy_price\":0.1563},{\"type\":\"water\",\"stat_energy_from\":\"sensor.water_total\",\"stat_cost\":null,\"entity_energy_price\":null,\"number_energy_price\":null}]"

Thanks for your reply.
I still get the "not found" message (present in previous version as well) and a new debug object:

Same problem here.
Running:
Home Assistant 2023.1.5
Supervisor 2022.12.1
Operating System 9.4
Frontend-versie: 20230110.0 - latest
Sankey Chart: v1.8.0
Error in console log:
Object
code
:
"not_found"
message
:
"Entity not found"
[[Prototype]]
:
Object
constructor
:
ƒ Object()
hasOwnProperty
:
ƒ hasOwnProperty()
isPrototypeOf
:
ƒ isPrototypeOf()
propertyIsEnumerable
:
ƒ propertyIsEnumerable()
toLocaleString
:
ƒ toLocaleString()
toString
:
ƒ toString()
valueOf
:
ƒ valueOf()
__defineGetter__
:
ƒ __defineGetter__()
__defineSetter__
:
ƒ __defineSetter__()
__lookupGetter__
:
ƒ __lookupGetter__()
__lookupSetter__
:
ƒ __lookupSetter__()
__proto__
:
(...)
get __proto__
:
ƒ __proto__()
set __proto__
:
ƒ __proto__()

That could be it. I'll try to reproduce with a missing entity.

I have some missing entities as well, but I don't want to delete them, because when it will delete history as well from energy dashboard. For example, my PV entity changed.

1.8.2 will ignore missing entities

Now a new kind of error

Autoconfig error

@martinarva try v1.9.0 . I was only checking the consumers before. Now it checks producers as well

Not expected. You are the second person to report this. Mind posting a pic of your energy distribution card?

Not expected. You are the second person to report this. Mind posting a pic of your energy distribution card?

Already did this, but strangely enough my screenshot did not go through, hopefully now it works:

I mean the card that is called Energy Distribution, in the Energy dashboard. On the right in desktop mode

Looks quite similar to the other report. Maybe grid export is causing this. I'll try to reproduce this tomorrow

Now a new error in every sankey chart

Same issue, even after going back to 1.8.2

Reboot and stays the same, v1. 9

I think I fixed the export problem. Please let me know

I think I fixed the export problem. Please let me know

Yes, graph in general works now, but autoconfig still dont:

Just like the rest, I get the following error now:
Custom element doesn't exist: sankey-chart.
type: custom:sankey-chart
autoconfig:
  print_yaml: false

Going from v1. 9 to 1.9.2 solved that for me somehow.

@Xitro01 HA cached the bad version somewhere else and not only the normal browser cache. WebWorkers or something similar, haven't investigated. You have to clear all application data and unregister wokers, or just wait for it to expire. Took a couple of hours for me.

@Xitro01 HA cached the bad version somewhere else and not only the normal browser cache. WebWorkers or something similar, haven't investigated. You have to clear all application data and unregister wokers, or just wait for it to expire. Took a couple of hours for me.

The HA update this morning finally fixed it. Washer and dryer are not connected anymore, getting new ones this morning. So the missing entities issue is resolved.
But still missing labels:

Fixed with v1.9.2 👍🏻

Another option from me, I found out that I could just use "show_names: true".

I expect "No Area" to be picked up from the location of the consumer entities.
I expect "Unknown" to be called "Other"
I expect consumer entities to be sorted by how much they consumed.
I expect Envoy .... to be just called "Solar" just like the "Electricity meter....".

Also as mentioned in my post before:
It doesn't really seem to take into account that some solar power might not be used yourself, that it's delivered back.
Should actually say: 58,2 from net, 9,4 used in solar (and 6,6 delivered back to the grid)

You can setup yourself

You can setup yourself

Beats the purpose of 'autoconfig' the information is already there to be used.

It's used but configured differently. Autoconfig is just a basic to get started imo.

I still don't understand how to configure the autoconfig. I am just curious what it will come up with but I can't get it to work...don't know where to put the " type: energy-date-selection" No matter where I put this it comes up with error messages. Anyone has a clue?

this doesn't work:

I had the same problem but the Readme makes it look wrong.
You need 2 cards
Card 1
Custom card
type: energy-data-selection
Card 2
Sankey card
type: custom:sankey-chart
energy_date_selection: true
autoconfig:
print_yaml: true

Thanks a lot, it works now:

Yep, the README assumes a yaml mode dashboard. I hadn't used UI mode until recently and am just now seeing the differences. Working on improving this in #77
@Xitro01 autoconfig is indeed just a starting point. This is the point of the print_yaml option. show_names should be turned on by default, I guess, but you other expectations are very subjective.

In my case it's still not working:

It worked all right but now it doesn't any more...same error message as above..I haven't changed anything apart from the update tot the latest version


StartxxxExecutions API Should Return Execution ID

Describe the feature
Currently start_task_execution and start_workflow_execution API are asynchronous and no execution id is returned, users cannot identify which execution is the one just started in some scenario.
Describe the solution you'd like
Wait for execution id after call start api
Describe alternatives you've considered

Additional context

Fixed in https://github.com/flink-extended/ai-flow/pull/356


MRG: No need for 122

This was actually cruft left over from my PR, we don't need it. And because it's not really valid I don't think anyone should have used it, so I think it's okay not to have a deprecation cycle here.

Current coverage is 87.42% (diff: 100%)

Merging #3745 into master will increase coverage by <.01%

@@             master      #3745   diff @@
==========================================
  Files           343        343
  Lines         61004      61001     -3
  Methods           0          0
  Messages          0          0
  Branches       9327       9326     -1
==========================================
  Hits          53328      53328
+ Misses         4925       4922     -3
  Partials       2751       2751

Powered by Codecov. Last update 7fea04e...d2ff72c

thx !


RDS backups are not working

Getting the following error in Cloudwatch logs:
Started taking hourly snapshots at 18-04-2018 11:57:15
Finding databases that match the requested tag (
{
    "tag:MakeSnapshot": "True"
}
)
Found 1 databases to manage
Unexpected error: <class 'botocore.errorfactory.DBInstanceNotFoundFault'>
An error occurred (DBInstanceNotFound) when calling the CreateDBSnapshot operation: DBInstance not found: dbinstanceidentifier
Traceback (most recent call last):
File "/var/task/backuplambda.py", line 90, in process_backup
self.snapshot_resource(resource=backup_item, description=description, tags=tags_volume)
File "/var/task/backuplambda.py", line 342, in snapshot_resource
Tags=aws_tagset)
DBInstanceNotFoundFault: An error occurred (DBInstanceNotFound) when calling the CreateDBSnapshot operation: DBInstance not found: dbinstanceidentifier

Here's my cloudformation.yml:
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: A simple backup process for EC2 and RDS datastores, tag your resources with 'MakeSnapshot' = 'True' (casesensitive) to have snapshots taken and managed
Parameters:
    SuccessSNSTopicOption:
        Description: Supply an either '' (disabled), 'CreateSNS' (build new SNS for this stack), '<sns_arn>' (connect to existing Topic).
        Default: ""
        Type: String
    ErrorSNSTopicOption:
        Description: Supply an either '' (disabled), 'CreateSNS' (build new SNS for this stack), '<sns_arn>' (connect to existing Topic).
        Default: ""
        Type: String

Conditions:
    EnableSuccessSNSTopic: !Not [!Equals [!Ref SuccessSNSTopicOption, ""]] #
    EnableErrorSNSTopic:   !Not [!Equals [!Ref ErrorSNSTopicOption, ""]]

    CreateSuccessSNSTopic: !And                     # We only need to create the Success SNS when it is enabled and not supplied
            - Condition: EnableSuccessSNSTopic
            - !Equals [!Ref SuccessSNSTopicOption, "CreateSNS"]

    CreateErrorSNSTopic:   !And                     # We only need to create the Error SNS when it is enabled and not supplied
            - Condition: EnableErrorSNSTopic
            - !Equals [!Ref ErrorSNSTopicOption,   "CreateSNS"]

Resources:
  LambdaExecutionRole:
    Type: "AWS::IAM::Role"
    Properties:
      AssumeRolePolicyDocument:
        Version: "2012-10-17"
        Statement:
          -
            Effect: "Allow"
            Principal:
              Service:
                - "lambda.amazonaws.com"
            Action:
              - "sts:AssumeRole"
      Path: "/"
      Policies:
        -
          PolicyName: "Lambda_execution"
          PolicyDocument:
            Version: "2012-10-17"
            Statement:
              -
                Effect: "Allow"
                Action:
                    - "logs:*"
                Resource: "arn:aws:logs:*:*:*"
        -
          PolicyName: "sns_publish_policy"
          PolicyDocument:
            Version: "2012-10-17"
            Statement:
              -
                Effect: "Allow"
                Action:
                    - "sns:Publish"
                Resource: "*"
        -
          PolicyName: "ec2_snapshot_policy"
          PolicyDocument:
            Version: "2012-10-17"
            Statement:
              -
                Effect: "Allow"
                Action:
                    - "ec2:CreateTags"
                    - "ec2:UpdateTags"
                    - "ec2:DescribeTags"
                    - "ec2:DescribeInstances"
                    - "ec2:CreateSnapshot"
                    - "ec2:DescribeSnapshots"
                    - "ec2:DeleteSnapshot"
                    - "ec2:DescribeVolumes"
                Resource: "*"
        -
          PolicyName: "rds_snapshot_policy"
          PolicyDocument:
            Version: "2012-10-17"
            Statement:
              -
                Effect: "Allow"
                Action:
                    - "rds:DescribeDBInstances"
                    - "rds:DescribeDBSnapshots"
                    - "rds:ListTagsForResource"
                    - "rds:DescribeDBSecurityGroups"
                    - "rds:CreateDBSnapshot"
                    - "rds:DeleteDBSnapshot"
                    - "rds:DescribeDBClusterSnapshots"
                    - "rds:CreateDBClusterSnapshot"
                    - "rds:DeleteDBClusterSnapshot"
                Resource: "*"
  SuccessSNSTopic:
    Type: "AWS::SNS::Topic"
    Condition : CreateSuccessSNSTopic
  ErrorSNSTopic:
    Type: "AWS::SNS::Topic"
    Condition : CreateErrorSNSTopic
  BackupFunction:
    Type: AWS::Serverless::Function
    Properties:
      Handler: backuplambda.lambda_handler
      Runtime: python2.7
      Timeout: 300
      Role: !GetAtt LambdaExecutionRole.Arn
      CodeUri: 'lambda'
      Events:
        DailyBackupEvent:
          Type: Schedule
          Properties:
            Schedule: rate(1 day)
            Input:
              Fn::Join:
              - ''
              - - '{"period_label": "day", "period_format": "%a%H-%M", "keep_count": 14,'
                - '"arn": "'
                - !If [EnableSuccessSNSTopic, !If [ CreateSuccessSNSTopic, Ref: SuccessSNSTopic, Ref: SuccessSNSTopicOption], '']
                - '", '
                - '"error_arn": "'
                - !If [EnableErrorSNSTopic, !If [ CreateErrorSNSTopic, Ref: ErrorSNSTopic, Ref: ErrorSNSTopicOption], '']
                - '", '
                - '"ec2_region_name": "'
                - Ref: AWS::Region
                - '", '
                - '"rds_region_name": "'
                - Ref: AWS::Region
                - '", '
                - '"tag_name": "MakeSnapshot", "tag_value": "True" }'
        WeeklyBackupEvent:
          Type: Schedule
          Properties:
            Schedule: rate(7 days)
            Input:
              Fn::Join:
              - ''
              - - '{"period_label": "week", "period_format": "%U", "keep_count": 12,'
                - '"arn": "'
                - !If [EnableSuccessSNSTopic, !If [ CreateSuccessSNSTopic, Ref: SuccessSNSTopic, Ref: SuccessSNSTopicOption], '']
                - '", '
                - '"error_arn": "'
                - !If [EnableErrorSNSTopic, !If [ CreateErrorSNSTopic, Ref: ErrorSNSTopic, Ref: ErrorSNSTopicOption], '']
                - '", '
                - '"ec2_region_name": "'
                - Ref: AWS::Region
                - '", '
                - '"rds_region_name": "'
                - Ref: AWS::Region
                - '", '
                - '"tag_name": "MakeSnapshot", "tag_value": "True" }'
        HourlyBackupEvent:
          Type: Schedule
          Properties:
            Schedule: rate(1 hour)
            Input:
              Fn::Join:
              - ''
              - - '{"period_label": "hourly", "period_format": "%a%H-%M", "keep_count": 24,'
                - '"arn": "'
                - !If [EnableSuccessSNSTopic, !If [ CreateSuccessSNSTopic, Ref: SuccessSNSTopic, Ref: SuccessSNSTopicOption], '']
                - '", '
                - '"error_arn": "'
                - !If [EnableErrorSNSTopic, !If [ CreateErrorSNSTopic, Ref: ErrorSNSTopic, Ref: ErrorSNSTopicOption], '']
                - '", '
                - '"ec2_region_name": "'
                - Ref: AWS::Region
                - '", '
                - '"rds_region_name": "'
                - Ref: AWS::Region
                - '", '
                - '"tag_name": "MakeSnapshot", "tag_value": "True" }'

So I just re-deployed my cloudformation stack but with the backuplambda.py prior to #8 (https://github.com/cevoaustralia/aws-backup-lambda/tree/de8796013fe2957035d8c4d3d7738404a79e595a) and my RDS backups are now working. I think #8 might have been merged too soon without much tests.
cc @wobeng @stevemac007

hmm https://github.com/wobeng/aws-backup-lambda worked well for me...what is your current db setup?

1x RDS Postgresql Multi-AZ, no clusters.

I'm going to test it later tonight
Do you have the main RDS tagged?

Yes, AFAIK you can't tag the Multi-AZ database (it's managed by AWS under the hood).
You can take a look at my stacktrace in my first post and see that the script finds my tagged database correctly.

See attached. Do you have it tagged

Yes I do, see my stack in my first post (‘Found 1 databases to manage‘)

ahh got...will test without cluster to see. I only provided an update to the code for cluster and tested it. I assumed without cluster always worked

Yeah, maybe a small regression somewhere, since it works prior to your commit. Since I don't need cluster support it's fine with me, but we should fix what's on master I think :)

I agree...both with cluster and non-cluster should work. This is a great tool

I think I found the issue, just posted PR #13

That looks like a great fix - are you willing to raise a pull-request to merge this change back?

This change has been merged and looks to fix the issue - please reopen this issue if the problems still persist.


Persistent notifications

Converted Chat model's participant array into two fields; participantOne and participantTwo
Added lastSeenByOne and lastSeenByTwo fields to Chat
Updated existing resolvers to work with new data structure
Created updateLastSeen mutation to update the appropriate field (one or two) of a Chat document
Created lastSeenUpdatedSub subscription to publish to when a Chat's lastSeenByX field is updated
Used new fields in combination with existing state-based notifications to persist notification over refresh/logout and login
Implemented lastSeenUpdatedSub in order to dynamically render sent/read receipts for all messages sent by user
Rearranged the configuration/connection to mongodb to ensure db.once() is available at the right time

Looks good from here :]