Unresolved reference from tensorflow.python

System information

Have I written custom code:No
OS Platform and Distribution:Ubuntu 18.04.2
TensorFlow installed from:binary
TensorFlow version:tf-nightly-gpu 1.14.1.dev20190617
Python version:3.7
CUDA/cuDNN version:10.0
GPU model and memory:rtx 2070 8gb

Describe the current behavior
cannot import anything from tensorflow.python.
Describe the expected behavior
In tensorflow version 1.13 it works
Code to reproduce the issue
from tensorflow.python import tf2 and i get Unresolved reference

Can you please post a code sample and an error message you get?

Can't reproduce:
mihaimaruseac@ankh:/tmp/github/2$ source bin/activate
(2) mihaimaruseac@ankh:/tmp/github/2$ pip install tf-nightly-gpu
Collecting tf-nightly-gpu
  Downloading https://files.pythonhosted.org/packages/71/e3/f4452d768f2fdc742da9eede23ae65791ba63d52d36f7c98e90b8b8b6c4e/tf_nightly_gpu-1.14.1.dev20190619-cp37-cp37m-manylinux1_x86_64.whl (370.7MB)
     |████████████████████████████████| 370.7MB 140kB/s
Requirement already satisfied: wheel>=0.26 in ./lib/python3.7/site-packages (from tf-nightly-gpu) (0.33.4)
Collecting termcolor>=1.1.0 (from tf-nightly-gpu)
Collecting absl-py>=0.7.0 (from tf-nightly-gpu)
Collecting astor>=0.6.0 (from tf-nightly-gpu)
  Using cached https://files.pythonhosted.org/packages/d1/4f/950dfae467b384fc96bc6469de25d832534f6b4441033c39f914efd13418/astor-0.8.0-py2.py3-none-any.whl
Collecting numpy<2.0,>=1.14.5 (from tf-nightly-gpu)
  Using cached https://files.pythonhosted.org/packages/fc/d1/45be1144b03b6b1e24f9a924f23f66b4ad030d834ad31fb9e5581bd328af/numpy-1.16.4-cp37-cp37m-manylinux1_x86_64.whl
Collecting tf-estimator-nightly (from tf-nightly-gpu)
  Using cached https://files.pythonhosted.org/packages/ff/35/ca8675a841a561ce410b95d17202e7baaa38a8ae29977600c06bad1efb48/tf_estimator_nightly-1.14.0.dev2019061901-py2.py3-none-any.whl
Collecting grpcio>=1.8.6 (from tf-nightly-gpu)
  Using cached https://files.pythonhosted.org/packages/a2/66/a44fc7eb9bd3a9c480a70c30306f175521ca0531e2cf1ca54b74a450fdb9/grpcio-1.21.1-cp37-cp37m-manylinux1_x86_64.whl
Collecting protobuf>=3.6.1 (from tf-nightly-gpu)
  Using cached https://files.pythonhosted.org/packages/ce/86/9f6123c4c6f481862f286dbe13aa2e97bdedd7662f5fc3033c1a41f32f88/protobuf-3.8.0-cp37-cp37m-manylinux1_x86_64.whl
Collecting wrapt>=1.11.1 (from tf-nightly-gpu)
Collecting tb-nightly<1.15.0a0,>=1.14.0a0 (from tf-nightly-gpu)
  Using cached https://files.pythonhosted.org/packages/3a/60/afa129c3621d62c885599076f8e89737d66e5dfffad1a08842b1c11b4540/tb_nightly-1.14.0a20190614-py3-none-any.whl
Collecting keras-preprocessing>=1.0.5 (from tf-nightly-gpu)
  Using cached https://files.pythonhosted.org/packages/28/6a/8c1f62c37212d9fc441a7e26736df51ce6f0e38455816445471f10da4f0a/Keras_Preprocessing-1.1.0-py2.py3-none-any.whl
Collecting google-pasta>=0.1.6 (from tf-nightly-gpu)
  Using cached https://files.pythonhosted.org/packages/d0/33/376510eb8d6246f3c30545f416b2263eee461e40940c2a4413c711bdf62d/google_pasta-0.1.7-py3-none-any.whl
Collecting keras-applications>=1.0.8 (from tf-nightly-gpu)
  Using cached https://files.pythonhosted.org/packages/71/e3/19762fdfc62877ae9102edf6342d71b28fbfd9dea3d2f96a882ce099b03f/Keras_Applications-1.0.8-py3-none-any.whl
Collecting gast>=0.2.0 (from tf-nightly-gpu)
Collecting six>=1.10.0 (from tf-nightly-gpu)
  Using cached https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
Requirement already satisfied: setuptools in ./lib/python3.7/site-packages (from protobuf>=3.6.1->tf-nightly-gpu) (41.0.1)
Collecting markdown>=2.6.8 (from tb-nightly<1.15.0a0,>=1.14.0a0->tf-nightly-gpu)
  Using cached https://files.pythonhosted.org/packages/c0/4e/fd492e91abdc2d2fcb70ef453064d980688762079397f779758e055f6575/Markdown-3.1.1-py2.py3-none-any.whl
Collecting werkzeug>=0.11.15 (from tb-nightly<1.15.0a0,>=1.14.0a0->tf-nightly-gpu)
  Using cached https://files.pythonhosted.org/packages/9f/57/92a497e38161ce40606c27a86759c6b92dd34fcdb33f64171ec559257c02/Werkzeug-0.15.4-py2.py3-none-any.whl
Collecting h5py (from keras-applications>=1.0.8->tf-nightly-gpu)
  Using cached https://files.pythonhosted.org/packages/8e/fd/2ca5c4f4ed33ac4178f9c4d551e3946ab480866e3cd67a65a67a4bb35367/h5py-2.9.0-cp37-cp37m-manylinux1_x86_64.whl
Installing collected packages: termcolor, six, absl-py, astor, numpy, tf-estimator-nightly, grpcio, protobuf, wrapt, markdown, werkzeug, tb-nightly, keras-preprocessing, google-pasta, h5py, keras-applications, gast, tf-nightly-gpu
Successfully installed absl-py-0.7.1 astor-0.8.0 gast-0.2.2 google-pasta-0.1.7 grpcio-1.21.1 h5py-2.9.0 keras-applications-1.0.8 keras-preprocessing-1.1.0 markdown-3.1.1 numpy-1.16.4 protobuf-3.8.0 six-1.12.0 tb-nightly-1.14.0a20190614 termcolor-1.1.0 tf-estimator-nightly-1.14.0.dev2019061901 tf-nightly-gpu-1.14.1.dev20190619 werkzeug-0.15.4 wrapt-1.11.2
(2) mihaimaruseac@ankh:/tmp/github/2$ python

Python 3.7.3rc1 (default, Mar 13 2019, 11:01:15)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from tensorflow.python import tf2
>>> import tensorflow as tf
>>> tf.VERSION
'1.14.1-dev20190619'

Also, if IDE complains and not Python interpreter, you should also specify which IDE it is. Python doesn't have Undefined reference errors on imports.
Probably related: #25602 and follow-up in #29144

from tensorflow.python import tf2

if tf2.enabled():
    print("ok")
else:
    print("not enabled")

i tried this and it works but the problem is with pycharm

Then I guess we can close this as a duplicate of #29144. Please reopen if you think it is not a duplicate


Create prospero-metadata module

@jfdenise will that do for WFMP-177?

@spyrkob , let me setup a wildfly-maven-plugin with wildfly-channels and this PR. Will reply here.

@spyrkob , that is all goo as yo ucan see in this WIP branch: https://github.com/jfdenise/wildfly-maven-plugin/pull/new/WFMP-177


Update readme based on encountered issues

These are very small changes to the README based on using the library on the truffle testing framework. I believe it would be the same for mainnet as well.

@ghbutton thank you!


Filter connector options for non-custodial accounts

Feature description
Currently all connectors are listed on the same screen.
To make people aware which ones are non-custodial we want to give them a filter option.
Describe the solution
This can be a simple filter check-box in the text here.
which then hides the custodial ones.

should be hidden:
BlueWallet, LNDHub, LNBits, Bitcoin Jungle, Bitcoin Beach, Kollider
Describe alternatives
maybe the word "custodial" is not perfect there and a better word is "full lightning nodes"
Additional context
No response
Are you working on this?
None

I think wording is very important. I would like a more detailed explanation like this: https://feedback.getalby.com/-feature-request/posts/improve-add-account-window

I think instead of filters, when user click Connect button, on next window should ask what type of wallet/account he would like to connect, and with detail explanations, so the user choose the type and then the wallets/accounts are listed.

Today we have even wallets that support fiat USD, like Kollider, so maybe even give the knowledge that these wallets exist. The way works now, users that don't know that Kollider exist, will never know that they can have an account denominated in USD.

@bumi I would like to work on this, can you please assign me?
Thanks!

I think we first need to clarify what we want to achieve here before we start coding.
Wording is very important here, I agree. And also it's not quite clear how to categorize them clearly: You can also use LNBits or LNDHub (via BTCPay Server LNBank plugin or self-hosted) non-custodially for instance.
I am wondering what problem we are trying to solve here, really? Is it really a problem that users looking for non-custodial options don't know which connector to choose? Is it then really helpful to filter by this option? The process setting up & run your own node is not something that you will do while setting up your Alby extension I guess.
One category that could be separated quite clearly is the "home nodes" though. (so specific connectors for umbrel, citadel, start9, etc).

Thinking better, I like the idea of Filters. Could have filter like: Custodial, Non custodial, Fiat support like USD, EUR...
Filters like this:

And I think on each card should show tags of what kind of account is what supports, Like the Kollider card could have: USD, EUR, SATS, Custodial

We can do such filters, but is there really a need for this? I second Rene thoughts - people using connectors will rather know which one they have and I doubt there's a need for us to distinguish it here. It's not like they are installing those because of Alby. Also I think LNbits can be both custodial and non-custodial?


[GDPR] More profile data fields

https://github.com/CartoDB/cartodb-central/issues/2184

Working as expected. Will deploy tomorrow. Can you please split migrations into their own PR?


SP2-270 review comments

I think there's still a few issues with headings being too big. Also it looks like you've managed to set the 3 character popup enforcement on the autocomplete component, but I'm wondering how you've achieved this? I don't see it added on in the JS

assets/js/accessible-autocomplete.min.js its updated here

I think there's still a few issues with headings being too big. Also it looks like you've managed to set the 3 character popup enforcement on the autocomplete component, but I'm wondering how you've achieved this? I don't see it added on in the JS

assets/js/accessible-autocomplete.min.js its updated here

I don't think we should be modifying this file - we should be using the minLength parameter (https://github.com/alphagov/accessible-autocomplete?tab=readme-ov-file#minlength-default-0) when creating the component in steps.js


PytorchStreamReader failed reading zip archive: failed finding central directory

Hey! i am facing the same issue. Did u find a solution?

Apologies for missing this! Can you delete the Grounding DINO / Grounded SAM folder in the ~/.cache/autodistill directory and try again? This error occurs when the installation process was interrupted. If the model weights download does not succeed, Grounding DINO tries to open the incomplete archive, which causes the error.


[api-v2-bug] The V2 API requires OAuth2 CB-2FA-Token even with OAuth2 is not used

The /v2/accounts/:account_id/transactions "Send Money" endpoint requires CB-2FA-Token headers when CDP (v3) API keys are used.  The documentation implies that these fields are only required for OAuth2 not for API Key authorizations.
This is a serious problem since it requires users to downgrade account security to Authy in order to use the API.  It would be reasonable if account security could remain at "Security Key" levels and allow Authy codes to work in parallel on the API calls alone.  But this is not the case.  Perhaps this is because the API is mis-identifying the authentication method.  If this is not a design error, but rather the intended use, there is a coinbase-python-py PR that adds this functionality.

Should be fixed now pending retest

[ ] Retest this issue with the claimed fix

Fixed via CB Support


ImportError: cannot import name 'Document' from 'llama_index' (unknown location)

https://github.com/bclavie/RAGatouille/blob/main/ragatouille/data/preprocessors.py

Hey, what version of llama-index are you using? It seems like they've updated some things on their end, will work on a fix! Also related https://github.com/bclavie/RAGatouille/issues/147

@bclavie LlamaIndex maintainer here -- v0.10.x is a bit of a breaking change in terms of imports. Let me know if you need a hand with handling any migration :)

Hey @logan-markewich, I think all we're really using right now is the document splitter & the Document object.  I could dig but I assume you're a lot more familiar than I am -- any recommendations in keeping the overall behaviour here with imports compatible with both the new version and older ones?

Probably just need a try except
try:
  from llama_index import Document
  from llama_index.text_splitter import SentenceSplitter
except ImportError:
  from llama_index.core import Document
  from llama_index.core.text_splitter import SentenceSplitter

That should work for both v0.10.x and older versions

Thanks! Fixed in https://github.com/bclavie/RAGatouille/pull/155 (0.0.7post5)

Hi, I'm encountering the same issue with the error: ImportError: cannot import name 'Document' from 'llama_index.core' (unknown location)
Ragatouille version: 0.0.7.post5
llama-index version: 0.9.48.

Hi @RibinMTC , I too faced similar issue. Here's how i fixed it

uninstall ragatouille
reinstall with pip install git+https://github.com/bclavie/RAGatouille/
modify the file /path/to/venv/lib/python3.10/site-packages/ragatouille/data/preprocessors.py line 5 to from llama_index.core.schema import Document

Yea, either that or starting with a fresh venv is probably the ideal solution here

For me I just had to make sure setuptools is also required.
ragatouille: 0.0.7.post11
llama-index: 0.9.48

Now the error looks like this -
Plain typing.TypeAlias is not valid as type argument
Just adding it so people searching it will be able to find this thread.
Also i changed ( in the package ) i.e RAGatouille/blob/main/ragatouille/data/preprocessors.py -
From :
from llama_index.core import Document
from llama_index.core.text_splitter import SentenceSplitter
To:
from llama_index.legacy import Document
from llama_index.legacy.text_splitter import SentenceSplitter

Still running into the ImportError with ragatouille==0.0.8post2. Why don't we narrow down the version of llama-index to reduce the risk of pulling breaking changes? ">=0.7, <=0.10" worked great for me so far.
See https://github.com/bclavie/RAGatouille/pull/227


Demonstrate use of multi-level ipf with Scottish data

Scotland doesn't publish housing stock ages for small areas. This means we cannot take the same approach we have done in England and Wales.
Scotland does however provide some estimates for housing stock from the Scottish housing condition survey at the local authority level.
As housing age is a significant predictor of energy efficiency and EPCs are biased towards newer properties we want to retain some control over this factor.
A potential solution is to use multi-level iterative proportional fitting, which would constrain the weighting solution to the lsoa-level margins where available and a set of lsoas to their respective la-level housing stock age margin.
The algorithm for doing this multi-level adjustment is only (to our knowledge) publicly implemented in R (package: mlfit), therefore this issue will explore the possibility of using this appraoch via an interface with python (rpy2).

demonstrate rpy2 interface.
demonstrate reweighting with mlfit.

An alternative would be to redevelop the functionality in python. However, this would take some time as the existing R package is quite mature. Although the algorithm is reasonably straightforward to reproduce, the data reshaping required is quite involved and would likely take time to get right.

Looks like mlfit won't actually deliver the reweighting required.
However, I have come across popgen 2.0 which appears to do exactly what I want (as per).

I'm going to look into applying popgen to our problem.


AlphV stats

I think there is an issue with the AlphV counting.
In the ransomware Live site, under July statistics it show that AlphV has hundreds of victims...

Thank to notice it.
I've just corrected.


Adding UMBC to swot

The University of Maryland, Baltimore County, was not in the swot repository.
Uses @umbc.edu email address.
Official Website: https://umbc.edu/

@KylerUMBC I have to close this request without merging, because you requested to add a non-existent domain to this repository: Host umbc.edu.domains.lib.edu not found: 3(NXDOMAIN) Please ensure that you are familiar with this repository rules located at the bottom of this page and submit a new request with the correct information. Thank you for your understanding!

@KylerUMBC The request reopened and corrected.

@KylerUMBC I am sorry, the domain umbc.edu is removed from our trusted domains list because it was abused in the past. If you are the student of this school, please enroll to GitHub Student Developer Program. Then apply for JetBrains educational subscription with your GitHub account (GitHub tab at https://www.jetbrains.com/shop/eform/students).


Invalid KYC file dump

It would be helpful if the wallet did not dump invalid KYC files - e.g. if the wallet wasn't connected to the server at time of file dump, and therefore no KYC pub keys were available.

Solved in commit bcb60f19d659f12e211ae370491f367bcd8eac43


Merge pull request #1 from MicrosoftDocs/master

sync to docs

OPS Build status updates of commit 635eec0:
:clock10: Preparing: average preparing time is 42 sec(s)

OPS Build status updates of commit 635eec0:
:clock10: Incremental building: average incremental building time is 18 sec(s)

OPS Build status updates of commit 635eec0:
:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Title/description for nested focus

Hi @basharmsen ,
I just pulled the latest commit (and published on the public dev server), and as far as I can see the title and description of nested focus concepts are not available in the json output of the template parser.
Ie. :
UI: https://postco.test-nictiz.nl/#/template/nictiz_beeldvormendeVerrichtingAanZijde_1605716520
Template: https://postco.test-nictiz.nl/templates/nictiz_beeldvormendeVerrichtingAanZijde_1605716520
XML: https://github.com/mertenssander/postco/blob/c74a113be26a774afb50617e1e196f62001abbec/SnomedTemplateService/SnomedTemplateService.Web/SnomedTemplates/nictiz/beeldvormendeVerrichtingAanZijde_1605716520.xml#L24
Do you know why this is happening, or was this one of the things we forgot to put on the to-do list?
Thanks! Sander

In the user interface space has been left for the titles and descriptions of both the focus concepts and the nested expressions. However, in the web service results model, title and description fields do not exist for focus concepts, only for nested expressions.

@basharmsen Could you add those in the relevant space?

I have changed the method to specify the description and title for a focus concept or attribute. The key in the slots dictionary now points to its target using an information slot.
For example the template expression for Beeldvormende verrichting van locatie aan zijde contains 4 information slots.

The name Methode is used to refer to the 'methode' attribute (name-value-pair),
Location is used for 'directe locatie van verrichting'. The value of this attribute is a nested expression.
LocatieFocus is used for the focus concept of this nested expression.
Laterality is used for the 'Laterality' attribute of the nested expression.

An information slot for an attribute in the expression should be placed just before the attribute name-value pair and for a focus concept it should be placed just before the focus concept.
Currently, for both the attribute and the focus concept of a nested expression, the UI uses the title/description of the attribute. Because of this, an attribute with a complex value currently uses the same title/description for the attribute and the focus concept.

@basharmsen I have just pulled and deployed this version to the server. Can you check if everything is functioning as intended? Do we need to change the templates? Does @hielkema need to know about this?

It seems to me that everything is functioning as intended. To also use the title/description of the focus concept instead of just the title/description of the attribute the UI should also be modified.
@hielkema At this moment the title and description of constant attributes are not used. Using the method described above it is also possible to specify title/description for constant attributes. And when the UI would be modified such that it also uses the title/description of the focus concepts then those should also be added.

Fixed with commit https://github.com/mertenssander/postco/commit/391c8531d9163fbf846440727a68310353e6fe61


API Event Mapping

Are there any dependencies (software or human) that need to be addressed before this PR is merged?
What ticket(s) or other PRs does this relate to?
What was the problem or feature?
@jedschneider and @Oxalisviolacea came up with some pretty cool stuff, but it was gonna make me copy and paste.
What was the solution?
Extract all the goods from https://github.com/highwingio/enrichment-component/pull/15 and make it fit in our event mapping world.

[x] Security Impact has been considered (if yes please describe)
[x] Network Impacts have been considered (if yes please describe)

Where does this work fall on the Good - Fast spectrum?
Better than sliced bread. And look at all the fancy tests!!
Any additional work needed as a result of merging this PR (deploy steps, other PRs, etc.)?
🌟 We can migrate https://github.com/highwingio/enrichment-component/pull/15 to use this module once we cut a new 0.4.1 release. It will also allow us to expand the scope of events sub'd and alerted on significantly.

I'm normally not a fan of a before all shared example set

The only reason to do that is because otherwise it has to run a terraform init/plan/show before each example which is mega slow. This is the only way I know to "memoize" between examples in a situation where we are guaranteed not to have state change between examples.


Use peerDependencies for jQuery

Would it make sense to specify jquery as a peerDependency to make sure it matches the version of jQuery the main project installs?

Hi, this is a dup of #129. Feels like a big-ish change that might break things for some people and, clearly, is not a huge issue. In all the years of existence of this plugin this was brought up just 2 times.
Since I'm not updating this too often, I'd rather leave that as it is. What do you think?

I stumbled across this because I was debugging a project where the version of jQuery used (the asset build pipeline referenced node_modules/jquery/...) did not match what plugins were expecting.
Plugins with version requirements that did not match the "main" jQuery version used had "their" jQuery in a node_modules subfolder, but no one noticed/cared.
In the particular case of this plugin here, jQuery version requirements are so liberal that it hardly makes a difference which version exactly is used.
But in general, I thought it would help to prevent such issues in the future and help raise awareness and understanding for the difference between dependencies and peerDependencies.
If people using this plugin do not declare jQuery as a direct dependency, IMHO they're doing something wrong. If their build pipeline includes node_modules/jquery/..., it's just by coincidence or due to how their package manager does hoisting that it works in the first place.
If they declare jQuery as a dependency, switching to a peerDependency here should not make a difference AFAIK.
Does that make sense?

Of course it makes sense. I didn't imply it didn't, it's just that the con in one scenario is a bigger node_modules, in the other a broken pipeline out of the blue.
Since this plugin has been around for so long and changes little, didn't seem like a worthy trade-off to me.
I'l leave this opened and maybe do it if I do a major version release.

Thanks!


Disable extensions and settings when opening browser

for example when i run sinco in non-headless, the chrome browser uses my default search engine, and signed in as my acc, it shouldn't and should be naked when starting

can be aided by setting default args:
// chrome
// Default arguments
    "--disable-background-networking",
    "--enable-features=NetworkService,NetworkServiceInProcess",
    "--disable-background-timer-throttling",
    "--disable-backgrounding-occluded-windows",
    "--disable-breakpad",
    "--disable-client-side-phishing-detection",
    "--disable-component-extensions-with-background-pages",
    "--disable-default-apps",
    "--disable-dev-shm-usage",
    "--disable-extensions",
    "--disable-features=TranslateUI",
    "--disable-hang-monitor",
    "--disable-ipc-flooding-protection",
    "--disable-popup-blocking",
    "--disable-prompt-on-repost",
    "--disable-renderer-backgrounding",
    "--disable-sync",
    "--force-color-profile=srgb",
    "--metrics-recording-only",
    "--no-first-run",
    "--enable-automation",
    "--password-store=basic",
    "--use-mock-keychain",

Actually headless doesn't use extensions, and thats we use, so switching this issue up
It would be good to add the above list only


bf skins not working

Describe your bug here.
when i enter a bf skin from gamebanana say for instance: erect bf reskin it dosent load and puts in normal bf. this is also with a bunch of others. what am i doing wrong??
Command Prompt/Terminal logs (if existing)
it dosent work :(

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

please hhelp

delete the asset folder in the export and then rebuild the game

delete the asset folder in export and then rebuild the game

i delete assets then download the version then put it back???

im on 0.5.2h btw

didnt work

ill just use 0.5.2 for now until a update happens

i delete assets then download the version then put it back???

man

its closed because you just put them in: mods-images-characters then go to character editor and reload it.


v2.0.0 --version is throwing an error.

When running the --version below error is thrown:
./efc: line 100: CHANGELOG.md: No such file or directory

after deployment in linux still have the version issue.

bash_utils/v3/efc: line 100: efc: No such file or directory

tested working on 2.1.2 release.


API for accessing data from the server

Since the Pastebin API only allows for one IP to be entered there should be an pastepwn API which allows for searching through pastes or getting statistics. Also it would be great if the application can be controlled via the API (e.g. adding new analyzers on the fly).

The API will be developed in an extra package.


Suggestion: better documentation for custom Components

I think that the getting started guide should provide information about the use of a custom Component. Similar to what I have already suggested in #9 but, beside being available in a sample code that can be downloaded via git, a simplified versions should be available also on the official documentation.

Are you referring to manually implementing the Component trait?

I'm talking about this:
impl<M: Module + HasComponent<dyn Logger>> Component<M> for DateLoggerImpl {
    type Interface = dyn DateLogger;
    type Parameters = ();

    fn build(context: &mut ModuleBuildContext<M>, parameters: ()) -> Box<dyn DateLogger> {
        Box::new(Self::new(context.build_component()))
    }
}

Is it already documented? I quickly looked for it but I was not able to find it.

There is some documentation available on the trait: https://docs.rs/shaku/0.5.0/shaku/trait.Component.html
And it's referenced once in the main guide: https://docs.rs/shaku/0.5.0/shaku/guide/index.html#express-dependencies
Note: the 0.5.0 docs for Component::build incorrectly say to use M::resolve to inject dependencies. The guide correctly says to use M::build_component (note: this is different from context.build_component).
You can also look at simple_no_macros.rs and simple_with_macros.rs in the examples folder to see how the derive macro and trait implementations work.


Add a config fill-template command to output data from datastore or configuration

Hello,
At the end of a solution deployment, we maintain a main README that contains all the information related to the deployment. We want to automate the generation and update of this Markdown file. Do you think that it should be a Babylon command or not?

Deployment output
This repository is {{ integrator }} manifest for  {{ project name }} . All documentation belonging to this repo is about {{ project name }}  configuration and  {{ project name }}  deployments.
Useful link

Description
Value
Comment

Web app url

Swagger url

ADT url

ADX cluster

ADX database

Container registry

Data integration function App

Data integration storage

Event Hub name space

Event Hub

Web app repository

Static web app

Power Bi Workspace

App registration

Description
App registration name
Application ID
Comment

Swagger App registration

Platform App registration

Web app App registration

ADT network App registration

Workspace identification

Description
Value
Comment

Organization id

Solution id

Workspace Key

Workspace Id

Terraform Workspace name

PowerBi Workspace id

Solution identification

Description
Value
Comment

Engine name

Engine version

Environnement identification

Description
Value
Comment

Platform version

API Version

AKS Version

ARM Version

Web app Version

will be released in 2.1.0


Implement rvsdg

Implement a graph that supports the next blocks according to the RVSDG paper:

gamma nodes
theta nodes
delta nodes
lambda nodes
phi nodes
omega nodes

optionally: implement CNE on the rvsdg as a proof of concept.
optionally: according to the paper liveness analysis should be much easier with RVSDG, explore this option and implement it

add the fucking use node
add comments that explains the role of each node
add a link to the paper
profit


records: add filesize exceeded error code

Add http error code to FileSizeExceededError. This should lead to except block in inspire-next getting triggered for better error handling instead of running into the keyError.
ref: https://github.com/cern-sis/issues-inspire/issues/399

could you please add a test (actually assertion to already existing test)?

Added a assertion for the HTTP error code and removed some unused variables from the tests (because black will complain otherwise)


[KOGITO-5313][KOGITO-5315] Upgrade Kogito operator and BDD tests to Infinispan 12

Many thanks for submitting your Pull Request :heart:!
https://issues.redhat.com/browse/KOGITO-5313
https://issues.redhat.com/browse/KOGITO-5315
Please make sure your PR meets the following requirements:

[x] You have read the contributors' guide
[x] Pull Request title is properly formatted: [KOGITO-XYZ] Subject
[x] Pull Request contains a link to the JIRA issue
[x] Pull Request contains a description of the issue
[x] Pull Request does not include fixes for issues other than the main ticket
[ ] Your feature/bug fix has a unit test that verifies it
[x] You've tested the new feature/bug fix in an actual OpenShift cluster
[ ] You've added a RELEASE_NOTES.md entry regarding this change

/jenkins test

/jenkins test


Error parsing YAML encountered (already read FAQ)

Hi,
First of all, thanks for developing this tool!
I have some frontmatter fields on my tasks page to track time, like:
start_time: 15:10:42
end_time: 15:18:45
duration: 0:08:03

Then I am trying to get these data via tracker, then I constantly get Error parsing YAML problem:
searchType: dvField
searchTarget: 'duration'
folder: "04 Log/04_Task/Test"
endDate: 2021-01-06
xDataset: 0
summary:
	template: 'Total hours spent: {{sum()}} hours'

I could not figure out what's going on, could you help me?
Many thanks!

@ztlee042 this problem in obisdian yamp parser.  Replacing all the tabs in the code block with single spaces fixed everything.
more about problem - https://forum.obsidian.md/t/bug-tracker-plugin-yaml-errors-on-ipados/27793/3

@tamvodopad
Thanks for the help! The YAML parser problem was solved!


Weird table behavior with Lua 5.4.3

I'm not sure exactly what's going on here, but I'm noticing some weird behavior with adding entries to a table in Lua 5.4.3. This issue is specific to 5.4.3 and I cannot reproduce it with other versions of lua. It also doesn't appear to have been introduced with a recent commit of sol (I went a year back and I could still repro), so I'm not entirely sure if this is an issue with sol or lua.
After creating a table and doing .add() to it, an item at index 3 is added with the value 0. This seems to happen with tables both created using sol and ones created using the raw lua api. Example attached below:
sol::state lua;
lua.open_libraries(sol::lib::base);

// Create and add using sol.
sol::table table = lua.create_table();
table.add("item");
lua["table"] = table;

// Create and add using C API.
lua_createtable(lua.lua_state(), 0, 0);
lua_pushstring(lua.lua_state(), "item");
lua_rawseti(lua.lua_state(), -2, 1);
lua_setglobal(lua.lua_state(), "table2");

// Create using C API and add using sol.
lua_createtable(lua.lua_state(), 0, 0);
lua_setglobal(lua.lua_state(), "table3");
sol::table table3 = lua["table3"];
table3.add("item");

lua.script("for k, v in pairs(table) do print(tostring(k) .. ' => ' .. tostring(v)) end");
lua.script("for k, v in pairs(table2) do print(tostring(k) .. ' => ' .. tostring(v)) end");
lua.script("for k, v in pairs(table3) do print(tostring(k) .. ' => ' .. tostring(v)) end");

Here I would expect the following output:
1 => item
1 => item
1 => item

But instead I get this:
1 => item
3 => 0
1 => item
1 => item
3 => 0

A quick notice (without even digging any further), try to push the table with a different name as plain table, because table is lua specific and sol may be using its functionality internally, so you may be overriding default behavior.

You're right, but in this case it doesn't actually make a difference. Issue still persists with different variable names.

Ok, then there is an even minimal test:
sol::state lua;
lua.open_libraries(sol::lib::base);

sol::table table = lua.create_named_table("table1");
table.add("item");

lua.script("for k, v in pairs(table1) do print(tostring(k) .. ' => ' .. tostring(v)) end");

Expected:
1 => item

Actual:
1 => item
3 => 0

Hope it makes it easier on @ThePhD to debug.

Getting the same issue :(

table.add actually uses Luas reference system http://www.lua.org/manual/5.4/manual.html#luaL_ref .
In 5.4 the implementation changed to https://www.lua.org/source/5.4/lauxlib.c.html#luaL_ref .
The key 3 in the table is actually the freelist of the reference system which now always gets initialized by luaL_ref.

Getting the same issue.

Same issue here

A workaround for
table.add("item");

not working is
table[table.size() + 1] = "item";

Yes, that's + 1, it's a Lua idiom :tm:

Sorry for the long wait: fixed in latest.

Thank you!!!! Absolutely love the work you're doing!!


Wallet SDK installation problem

Pod is not installing.

could you please try:

pod 'WalletConnect', git: 'https://github.com/TrustWallet/wallet-connect-swift', branch: 'master'
update your cocoapods

I have done it.

Opened podfile in Atom.
Copied pod
It gave me same error mentioned in the attached screenshots.

Did you run pod install inside wallet-connect-swift/Example? in this case you don't need to edit the Podfile

I have done it sir.
You can see that my directory is Example in screenshot

it works for me:
1. download zip
2. cd Example
3. pod install

successfully installed .
In xcode , it gave an error

please run gem install cocoapods to update cocoapods to 1.6.1


Bug: If something wrong happens when updating a meeting, the date from that meeting gets deleted from the Dataverse

Bug found when working on:

https://github.com/Azure/azure-sdk-tools/issues/4189

It seems that the Update section of the code is hitting the IfError catch intended for scheduling new meetings, which reverts the DB state in case something goes wrong when creating a new meeting.

Fixed, if something failed in the process, it was changing the date of the record to Blank(), however, this is only true for new meetings, for existing meetings we should be resetting the date back to the original date, not Blank().
So, I changed { crf3c_date: Blank()} to { crf3c_date: If(mode = "new",  Blank(), _eventRecord.Date)} in the patch operation.


Lighter init and buffered channels for signals

What is the purpose of this change? What does it change?
It makes restic's startup lighter by not postponing restic.Progress initialization. It also makes all channels passed to signal.Notify buffered.
The number of commits in this PR is large because it includes part of #2630, which I deemed uncontroversial, and which already fixed part of the problem. The reason that lighter initialization is part of it at all is that I first tried getting right of init functions, then figured out that signal handling is the actual problem.
Was the change discussed in an issue or in the forum before?
The segfault reported at #2618 is very likely the result of improper signal.Notify use. This does not fix the issue entirely, but reduces it to the well-known "restic uses much memory" problem.
Checklist

[x] I have read the Contribution Guidelines
[x] I have enabled maintainer edits for this PR
[ ] I have added tests for all changes in this PR
[ ] I have added documentation for the changes (in the manual)
[ ] There's a new file in changelog/unreleased/ that describes the changes for our users (template here)
[x] I have run gofmt on the code in all commits
[x] All commit messages are formatted in the same style as the other commits in the repo
[x] I'm done, this Pull Request is ready for review

Sorry, wrong branch. See #2644.


Add CLI flag for process exit 0

The default process exit code with the total number of errors should probably be optional.
Here's our use case that caused issues recently:

When I added knip in our stack I had to add a knip ... || true in our CI command that runs this tool, to not block the CI workflow
We use automatic dependency upgrades with Renovate
When v0.13.1 was released, which has a bug preventing it to run #25, the CI command executed successfully due to the || true there, but in reality it errored out.

Proposal: Add an optional CLI flag to always use process exit code 0.

to not block the CI workflow

Sometimes that exactly what you want. Sometimes the opposite.
The idea of Knip is that you can also use e.g. knip --include files (or whatever report interests you) to block CI (but not for issues you're not interested in).
But, there should definitely be an option to disable whatever the default is.

Ohh, I just noticed the --max-issues flag, which may be used to circumvent the behavior we're seeing. So I don't there's a need for another flag.

That's an escape hatch for now, I'll leave this ticket open for a better solution.

Feel free to install and try knip@alpha that has a --no-exit-code flag.
Not that there might be breaking errors depending on configuration, also see https://github.com/webpro/knip/blob/feature/workspaces-and-plugins/README.md

v1 is out, so this is in :)


Update lastUpdateTime for appsub on reconcile

https://github.com/stolostron/backlog/issues/20332
Signed-off-by: Philip Wu<EMAIL_ADDRESS>

/test test-unit

/lgtm


Small bug fix of storage_graph, save plot into desired folder

Before you submit this PR: make sure to put all operations-related information in a wiki-note, a PR should be about code and is publicly accessible
What does the code in this PR do / what does it improve?
Just a small fix. Before the PR, to_dir does not do anything.
Can you briefly describe how it works?
Can you give a minimal working example (or illustrate with a figure)?
Please include the following if applicable:

[ ] Update the docstring(s)
[ ] Update the documentation
[ ] Tests to check the (new) code is working as desired.
[ ] Does it solve one of the open issues on github?

Notes on testing

Until the automated tests pass, please mark the PR as a draft.
On the XENONnT fork we test with database access, on private forks there is no database access for security considerations.

All italic comments can be removed from this template.

coverage: 91.298% (-0.007%) from 91.305%
when pulling 88ee532e1ef0210ad25f1c2498aca2501b2640ad on fix_storage_graph
into 92bcf54cc236d3de1c86544fa0fd720cb8daf088 on master.


Stack & Queue Implementation in Python

Stack & Queue Implementation in Python @Hacktoberfest-2020 always open to open source contribution...
pls accept my PR

pls review my PR

so will my PR will be merged??

Do I have to give another PR with greetings onto it???

Issuing another PR with greeting onto it...

so will my PR will be merged??

There some steps to complete before the merging of a PR. And those stapes take some time.
According to the guideline we've to perform those steps.
@vighneshdeepweb After the successful checks, your PR will be merged

so i guess after the review my PR will be accepted and then only it will be merged...

And approx how much time it takes??

Your welcome buddy!!!


🐛Bug: The aload function, contrary to its name, is not an asynchronous function, so it cannot work concurrently with other asynchronous functions.

Checked other resources

[X] I added a very descriptive title to this issue.
[X] I searched the LangChain documentation with the integrated search.
[X] I used the GitHub search to find a similar question and didn't find it.
[X] I am sure that this is a bug in LangChain rather than my code.
[X] The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).

Example Code
from langchain_community import document_loaders as dl

async def do_something():
    await asyncio.sleep(1)

async def main():
    loader1 = dl.WebBaseLoader("https://www.fntimes.com/html/view.php?ud=202411242104045546dd55077bc2_18")

    results = await asyncio.gather(loader1.aload(), do_something())

    print(results)

if __name__ == "__main__":
    import asyncio
    asyncio.run(main())

Error Message and Stack Trace (if applicable)
python bug_langchain.py
USER_AGENT environment variable not set, consider setting it to identify your requests.
Traceback (most recent call last):
  File "/home/dnsgkr23/bug_langchain.py", line 15, in <module>
    asyncio.run(main())
  File "/usr/lib/python3.11/asyncio/runners.py", line 190, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/home/dnsgkr23/bug_langchain.py", line 9, in main
    results = await asyncio.gather(loader1.aload(), do_something())
                                   ^^^^^^^^^^^^^^^
  File "/home/dnsgkr23/langchain/libs/community/langchain_community/document_loaders/web_base.py", line 337, in aload
    results = self.scrape_all(self.web_paths)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/dnsgkr23/langchain/libs/community/langchain_community/document_loaders/web_base.py", line 278, in scrape_all
    results = asyncio.run(self.fetch_all(urls))
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/asyncio/runners.py", line 186, in run
    raise RuntimeError(
RuntimeError: asyncio.run() cannot be called from a running event loop
sys:1: RuntimeWarning: coroutine 'WebBaseLoader.fetch_all' was never awaited

Description
The aload function, contrary to its name, is not an asynchronous function,
so it cannot work concurrently with other asynchronous functions.
System Info
python -m langchain_core.sys_info

System Information
------------------
> OS:  Linux
> OS Version:  #1 SMP PREEMPT_DYNAMIC Debian 6.1.115-1 (2024-11-01)
> Python Version:  3.11.2 (main, Sep 14 2024, 03:00:30) [GCC 12.2.0]

Package Information
-------------------
> langchain_core: 0.3.19
> langchain: 0.3.7
> langchain_community: 0.3.7
> langsmith: 0.1.142
> langchain_tests: 0.3.4
> langchain_text_splitters: 0.3.2

Optional packages not installed
-------------------------------
> langserve

Other Dependencies
------------------
> aiohttp: 3.10.10
> async-timeout: Installed. No version info available.
> dataclasses-json: 0.6.7
> httpx: 0.27.2
> httpx-sse: 0.4.0
> jsonpatch: 1.33
> numpy: 1.26.4
> orjson: 3.10.11
> packaging: 24.2
> pydantic: 2.9.2
> pydantic-settings: 2.6.1
> pytest: 7.4.4
> PyYAML: 6.0.2
> requests: 2.32.3
> requests-toolbelt: 1.0.0
> SQLAlchemy: 2.0.35
> syrupy: 4.7.2
> tenacity: 9.0.0
> typing-extensions: 4.12.2

In the document_loaders folder, there are 9 files that implement aload or alazy_load, but only web_base.py is not defined as an async def. This causes inconvenience for users, who need to check the code to determine whether to use await aload() or aload().
A bigger problem is that users cannot use web_base.py's aload concurrently with other async functions. The root cause is that web_base.py overrides the aload function from langchain_core's base.py as a synchronous function in here.
Therefore, I submitted a pull request to fix this issue in #28337.
The 9 files that use the aload function, which I found in the document_loaders folder, are:

async_html.py
astradb.py
cassandra.py
chromium.py
merge.py
mongodb.py
surrealdb.py
url_playwright.py
web_base.py

@baskaryan @efriis @eyurtsev @ccurme @vbarda @hwchase17


nixos/invidious: use system user

Motivation for this change
Using a dynamic user created by systemd does not work reliably.
Fixes #157361.
Things done

Built on platform(s)

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

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

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[X] Fits CONTRIBUTING.md.

Confirmed this fixes my reported problem in #157361.  Thanks!

This is no longer needed, since nscd is started automatically now, which fixes local database access for invidious not working with a dynamic user.


introduce message controller

I have added the 'show message' popup functionality by Ctrl+1 in addition to Ctrl+F1 because I found out that on Mac OS X there is a system shortcut bound to Ctrl+F1 by default.

Here's my list of required improvements:

Rename CellWithMessageStyler to a better name. I think MessageStyler will work. Please, use shorter names when possible.
Consider renaming DecorationTrait to MessageTrait. It's nice to have uniform naming in the framework.
StyleController names is strange. It doesn't controls anything nor it's a controller in UI sense. Need a better name.
Consider replacing custom stylers list with a callback or abstract method.
TextEditing.errorStyler() shouldn't be available in TextEditing. TextEditing should be responsible only
for text editing. Remember Single Responsibility Principle (https://en.wikipedia.org/wiki/Single_responsibility_principle)
BaseCellMapper shouldn't know about messages. Again SRP.
Again RootController should have just one method. I wrote about this in my previous review, and you didn't fix it which is bad.

Until you fix these issues, I can't merge it into the repo.

Thank you! For something like this I asked you to review me carefully.
6. I didn't like it either and I asked you to look at it closer.
But the alternatives I see are:

modify Cell.BACKGROUND to hold not just the color but some extra String that will stand for CSS underline;
turn CSS underline into some other thing, red bottom dashed border for example.

I thought you meant not to add various install methods for messages support to RootController. OK, sorry.

I fixed all except 6.

Considering 6. It's actually very easy. Do the following:

Introduce error_underline and warning_underline attributes to the Cell.
Synchronize them.

The main concern is referencing the MessageController class.

I did it, thank you.

Ready for review.

I merge it in but could you please RootController install both CellNavController and MessagesController.


Half of the FX refuse to function.

RT/3D effects do not function on GTX1070.
2D effects function properly though
Latest driver 561, GTX 1070 has ansel support, NV app.
(yes the 1070 has RT support)

Fix was DDU > NVCleanstall > Reinstall roblox > Apply bloxstrap to Direct3D 11 > Reinstall bloxshade.


Clean up of error logging in regex_remap.cc

Provide clearer message when $n used in substitution string in remap configuration file, and n is too large.  Don't output bogus line offset.  Clean up changes to conform better to RAII.

Seems pretty reasonable, but please squash the commits. At a minimum, don't have a separate clang-format commit, that should be squashed into the other commit(s).

OK squashed and braces added.

[approve ci]

[approve ci]


Beneficiary storage and query

Introduce storage for beneficiary information. For the moment this should be ID, orgID and tags.
Add query to access beneficiary information given an ben ID.

 Beneficiary Tags


Need information setting up two factor ID for phone.

How to set up two factor ID for phone?

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

ID: 0fb2d20b-cfbf-58e8-f593-ac8dff076cd9
Version Independent ID: d613df0f-bbb7-b1ae-1b76-6c1355009ebe
Content: Configure two-factor authentication in Skype for Business Server 2015
Content Source: Skype/SfbServer/manage/authentication/configure.md
Product: skype-for-business-itpro
GitHub Login: @MicrosoftHeidi
Microsoft Alias: heidip

Thank you for this feedback and for contributing to the wellness of the content! This is a good idea and we have added it into our backlog for triage and prioritization.

@tseward Is investigating this.

Hi  @nsshommo thanks for your comments.
Referenced document doesn't exists anymore. Here is another document that specifies which clients are supported for MFA https://docs.microsoft.com/en-us/skypeforbusiness/manage/authentication/two-factor-authentication
hope this information has helped you.
Thanks


🚀 Feature: Use pnpm as a Node.js environment manager

Bug Report Checklist

[X] I have tried restarting my IDE and the issue persists.
[X] I have pulled the latest main branch of the repository.
[X] I have searched for related issues and found none that matched my issue.

Overview
Since the project uses pnpn for installing packages, why not streamline it for Node.js environment installs? This will allow you to built-in a check whether the current environment on the machine matches the recommended version. Along with removing the .nvmrc file.

Check if recommended version exists:

$ pnpm env list

16.20.2
20.6.0

Install and use if not found:

$ pnpm env use 18.17.1

Fetching Node.js 18.17.1 ...
Node.js 18.17.1 is activated

Profit 💵

Additional Info
Official docs: https://pnpm.io/cli/env

It's an interesting idea, thanks for bringing it up @conrmahr! (for context, we'd briefly chatted about this on a Twitch stream today)
Putting as in discussion - I haven't used pnpm env much. One nice thing about .nvmrc is that if you're using nvm then the .nvmrc should have it auto-set your package for you. Is there an equivalent for pnpm?

Good question. It looks like it can use the .npmrc file per-project configuration file with the parameter use-node-version=x.x.x.
📖 https://pnpm.io/npmrc#nodejs-settings


Create Unit tests for Pyodide

Hello, as I mentioned in #687 I am creating unit tests for Pyodide, however, I am creating as a draft because I am going to actually need some assistance as I don't know very well this code base.
Currently I am going trough the route of pybind11 with a pyproject.toml, did some changes in the Cmake file of nanobind in the tests, but for some reason, every time I try to build the tests, I get this error:
FAILED: test_ndarray_ext.pyi /tmp/tmpnfzv8k08/build/test_ndarray_ext.pyi
cd /tmp/tmpnfzv8k08/build && /tmp/build-env-1tz5s2os/bin/python /home/leandrobg/Builds/nanobind/src/stubgen.py -q -i /tmp/tmpnfzv8k08/build -m test_ndarray_ext -o test_ndarray_ext.pyi
Traceback (most recent call last):
  File "/home/leandrobg/Builds/nanobind/src/stubgen.py", line 1411, in <module>
    main()
  File "/home/leandrobg/Builds/nanobind/src/stubgen.py", line 1344, in main
    mod_imported = importlib.import_module(mod)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'test_ndarray_ext'
[47/83] Generating test_classes_ext.pyi
FAILED: test_classes_ext.pyi /tmp/tmpnfzv8k08/build/test_classes_ext.pyi
cd /tmp/tmpnfzv8k08/build && /tmp/build-env-1tz5s2os/bin/python /home/leandrobg/Builds/nanobind/src/stubgen.py -q -i /tmp/tmpnfzv8k08/build -m test_classes_ext -o test_classes_ext.pyi
Traceback (most recent call last):
  File "/home/leandrobg/Builds/nanobind/src/stubgen.py", line 1411, in <module>
    main()
  File "/home/leandrobg/Builds/nanobind/src/stubgen.py", line 1344, in main
    mod_imported = importlib.import_module(mod)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'test_classes_ext'
[48/83] Generating test_functions_ext.pyi
FAILED: test_functions_ext.pyi /tmp/tmpnfzv8k08/build/test_functions_ext.pyi
cd /tmp/tmpnfzv8k08/build && /tmp/build-env-1tz5s2os/bin/python /home/leandrobg/Builds/nanobind/src/stubgen.py -q -i /tmp/tmpnfzv8k08/build -m test_functions_ext -o test_functions_ext.pyi
Traceback (most recent call last):
  File "/home/leandrobg/Builds/nanobind/src/stubgen.py", line 1411, in <module>
    main()
  File "/home/leandrobg/Builds/nanobind/src/stubgen.py", line 1344, in main
    mod_imported = importlib.import_module(mod)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'test_functions_ext'

Which, I don't know if I am doing something wrong, or a bug, because I don't see anything special related to Pyodide/Emscripten in the Cmake test in pybind11

@leandro-benedet-garcia Could you give me access to push to your fork? I've got this approach working, at least locally. Or you can just pull the changes yourself from https://github.com/henryiii/nanobind @ henryiii/fix/standalonetests.

@henryiii I added you to the fork, I tried with just pull request but in the CI it showed the same error.

Ahhh, good point, I can just run the CI on my fork first. The problem you are seeing is that you can't import the modules you are building during the compilation phase when cross-compiling. Only later via WASM. So we need to be able to disable the subgen tests. (Well, easily, anyway. There are ways to set the cross-compiling emulator in CMake)

Actually it seems to work now.

Allrighty, since it seems to be working now I will put it for review, thank you @henryiii

Let me know if you have questions about any of the changes! Very high level, I made the find_package(Python) GLOBAL, since it was not usable outside the directory it's triggered from, but the nanobind_* functions are. I changed Python_INCLUDE_DIRS into using Python::Module's INTERFACE_INCLUDE_DIRS entirely to get an error if it's not visible in that scope; before it would just leave it empty. Making a FATAL_ERROR if Python_INCLUDE_DIRS is undefined would do the same thing. All path variables in CMake should be surrounded by quotes, I noticed them missing in various places, but didn't fix them all for now. I added -fexceptions if compiling for Emscripten, since it's required (and pybind11 does that now too). Tests support being built directly standalone. The stubs are not generated if cross-compiling. I've disabled the stub tests on the emscripten platform. And the stub tests now look up the stubs relative to the compiled modules, rather than the tests.
If you want to try out out locally, you can do something like this:
pipx run build --wheel
uv venv
uv pip install dist/nanobind_tests-0.0.1-cp312-cp312-macosx_14_0_x86_64.whl
py -m pytest

What's the status of this PR? Anything left to do, should I review?

What's the status of this PR? Anything left to do, should I review?

it is ready for review.

For emscripten, you have to build the test module as a wheel and then test it. There are two ways to do that. In pybind11, we make the test module buildable. The other option would be to have a way to enable tests to be build as the wheel in the outer pyproject.toml. Names can't be changed, so you couldn't have both at the same time, but I think you could use the tests/pyproject.toml but the main CMakeLists.txt - would have to investigate. This would require fewer changes, but I was just updating this PR, which stared with the test module buildable (and that does mimic pybind11. But in pybind11 we haven't moved to scikit-build-core yet for the outer build).

Any progress on restructuring the PR? Should I close it for now?

Any progress on restructuring the PR? Should I close it for now?
I will try my hand at it this weekend.

I will close this PR for now, though I remain open to shipping such a CI target if the integration is done less intrusively.


Implement status/healthcheck endpoint

Description

Allow status/healthcheck endpoint
Use case or motivation behind the feature request

Currently ANY http request will cause an event so implementing a status/healthcheck endpoint will allow us to monitor health and status
Related issues

Additional context

It might be preferable to allow specifying a path into config that returns 200 but no event will be generated from such a path. Path is available in:
formattedHeaders.put("request_path", req.uri());

#30 has configurable healthcheck support and some structural support for other internal endpoints. Decided to not include token checks for healthcheck endpoint for now as the path itself can act as a token like /healthcheck?token=somesecrethere


Don't apply filters to node endpoints & update details panel logic

Such that node which disappear from the topology (eg when they are stopped) don't disappear from the details panel.
Fixes #693

We're still sending the topology options as a request parameter:
https://github.com/weaveworks/scope/blob/693-no-filter-details/client/app/scripts/utils/web-api-utils.js#L104
Should that be removed too?

Yes it can be now.  Do you mind doing that?

Test failures are fixed on master.  Can I merge this now?

LGTM, then.

Looks like I came too late: 40f5040 (removes options query from node details request)


chore: update deps to github.com/zitadel/oidc/v3

What type of PR is this?

Which issue does this PR fix:
What does this PR do / Why do we need it:
If an issue # is not available please add repro steps and logs showing the issue:
Testing done on this change:

Automation added to e2e:

Will this break upgrades or downgrades?
Does this PR introduce any user-facing change?:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@rchincha https://github.com/project-zot/zot/pull/2585


Add version 3 of Ikea Frytur Blinds firmware 0x24040011

Proposed change

Since with firmware 0x24040011, IKEA introduced a new output cluster 3. (see https://github.com/zigpy/zha-device-handlers/issues/2418). This quirk adds the additional output clusters. I have tested and thanks to https://github.com/zigpy/zha-device-handlers/pull/2948, battery issues appear to also be resolved. Revised from https://github.com/zigpy/zha-device-handlers/pull/2984
Additional information

I haven't tested a new factory blind getting gets this or a later firmware update, getting this quirk and reports 2x the battery, but see https://github.com/zigpy/zha-device-handlers/issues/2418 for possible resolutions. My testing on devices with the firmware show correct battery and restore a minor annoyance where the shade being fully open will "drift" every so often leaving the shade slightly open.
Checklist

[X] The changes are tested and work correctly
[X] pre-commit checks pass / the code has been formatted using Black
[ ] Tests have been added to verify that the new code works

So, this firmware doesn't need battery percentage doubling, right? Since if this signature appears, it's always guaranteed to be a new firmware version.
The battery cluster will detect that too and just "do nothing", but if we can avoid using that cluster at all, we should.
If that cluster is removed, the quirk just doesn't do anything from what I can see. Like, no other clusters are patched.
So, what's the reason this is needed?

My testing on devices with the firmware show correct battery and restore a minor annoyance where the shade being fully open will "drift" every so often leaving the shade slightly open.

But the quirk does nothing to change this?

So I wondered about that as well and please forgive me if I am new and trying my first time at contributing.  Let me see if I can explain better.  What I found is that AFTER the firmware 0x24040011, none of the two original class quirks would apply.
class IkeaTradfriRollerBlinds (original)
    # input_clusters=[0, 1, 3, 4, 5, 32, 258, 4096, 64636]
    # output_clusters=[25, 4096]>

class IkeaTradfriRollerBlinds2 (original)
    # input_clusters=[0, 1, 3, 4, 5, 32, 258, 4096]
    # output_clusters=[25, 4096]>

class IkeaTradfriRollerBlinds3 (my contribution)
    # input_clusters=[0, 1, 3, 4, 5, 32, 258, 4096, 64636]
    # output_clusters=[3, 25, 4096]>

Having no quirk applied resulted in two problems (see https://github.com/zigpy/zha-device-handlers/issues/2418).

Battery would double which was immediately apparent.
Shade 100% open position would "drift" and not open completely.  Then when shade would close it would be off by the same drift difference.  This wouldn't happen immediately but over time.  I'd say the course of one or three weeks, there would be anywhere from 1" to 2.5" difference when the shade was supposed to be 100% open. I have 20 of these shades so I definitely have a lot of data points.  I would have to go around, pull the battery, wait, put it back in and the shade would reset to 100% closed, but over time, it would begin to drift again.

What I found is that when I wrote my custom quirk and tested with it, no longer get either the battery or the drift issue. When it set to open 100%, it does so perfectly and has for several months (testing since Nov 2023 see https://github.com/zigpy/zha-device-handlers/discussions/2754).  But you are correct, I don't see anything in the quirk itself which remedies this, I assumed (perhaps wrongly) that simply having a quirk was somehow fixing this since it always worked prior to firmware 0x24040011 when a quirk was applied and started working again once I wrote my custom quirk. Since both of my two problems appear fixed, I wanted to contribute it.    Hope that makes more sense and answers your questions.
I believe the firmware still needs the same battery doubling, or at least in my testing, since battery doubling went in with PR 2948, it appears to still be working correctly.  I know this because when I put in a fresh battery, it would show 200% if still a problem and it hasn't been doing so.


[BACKPORT][v1.2.x][BUG] Error/warning during uninstallation of Longhorn v1.2.x-head via manifest

ref: https://github.com/longhorn/longhorn/issues/4405

Verified on v1.2.x-head 20220817

longhorn v1.2.x-head (70cacf0)
longhorn-manager v1.2.x-head ( b894827)

The test steps

Install Longhorn v1.2.x Ref.(install-with-kubectl)
Create some volume and attach to pod. Ref.(create-volumes & attach to pod)

kubectl create -f https://raw.githubusercontent.com/longhorn/longhorn/v1.2.x/examples/storageclass.yaml
kubectl create -f https://raw.githubusercontent.com/longhorn/longhorn/v1.2.x/examples/pod_with_pvc.yaml

Uninstall Longhorn. Ref.(uninstall-with-kubectl)
Check whether or not the error is printed in the longhorn-uninstall logs

Result Pass

The issue can be reproduced on v1.3.1, but can’t be reproduced on v1.2.4.
Follow the test steps in the comment and use longhorn:v1.2.x-head longhorn-manager:v1.2.x-head in https://raw.githubusercontent.com/longhorn/longhorn/v1.2.x/deploy/longhorn.yaml
After uninstalled Longhorn, we didn’t find out the error log in the uninstaller logs


move generic Buffer parameter to fn

Solves #93
The idea is that the quic abstraction does not need the send_data method with its protections. h3::quic::SendStream only has poll_write() and we use that in the higher levels to implement send_data() as an async fn.
The user can not accidentally have two running send_data() calls, because the async fn takes a mutable borrow of the RequestStream.

I still think this is the right way to do it, making both the code and the api cleaner.
But please let me know your opinion so that I can either close or rebase this.


Add strtonum to OpenBSD

OpenBSD provides strtonum but it is not in libc, yet.

r? @alexcrichton
(rust_highfive has picked a reviewer for you, use r? to override)

@bors: r+

:pushpin: Commit 8744ca1 has been approved by alexcrichton

:hourglass: Testing commit 8744ca11ae5e37168e43d528dfa0d84e91802503 with merge 9d6556c9fa61da9a70d6bb747a137c6703cdc3ef...

:sunny: Test successful - status-appveyor, status-travis
Approved by: alexcrichton
Pushing 9d6556c9fa61da9a70d6bb747a137c6703cdc3ef to master...


Hybrid app not working on iOS

Hi,
When I create an empty MBB hybrid app on VS 2022, it shows blank content in BlazorWebView. The part of XAML appears as it should be, but the web content is blank
Edit:
If I started with debug, it throws an error

Here's a repo solution using the same code from Hybrid Message App showing blank pages:
https://github.com/aherrick/HybridMessageApp

I have the same issue


fix: remove unsupported platforms

Removes unsupported platforms. Fixes build issues on macOS

Looks like this has been fixed in version 1.6.1


Fix beta feature document

- Summary
Fix beta feature document
The init() method requires an object with a property name config and the value to be the configuration
- A picture of a cute animal (not mandatory but encouraged)
🐧

Deploy preview for netlify-cms-www ready!
Built with commit 78337dcbea7f81540d5afd4a3fc66a725031088c
https://deploy-preview-1172--netlify-cms-www.netlify.com

Deploy preview for cms-demo ready!
Built with commit 78337dcbea7f81540d5afd4a3fc66a725031088c
https://deploy-preview-1172--cms-demo.netlify.com


Error: gather_port_vars: Failed to read rdep for www/www

Hi there,
i get on poudriere v<IP_ADDRESS>70721 with this command
poudriere bulk -f /usr/local/etc/poudriere-list -j 111_i386
this error message:
Error: gather_port_vars: Failed to read rdep for www/www
any help here ?
thx
Stefan

I get this error when there is a preceding / in front of a port origin:
~/git/poudriere # /usr/bin/time -l src/bin/poudriere -e /usr/local/etc bulk -j exp-10amd64 -p commit -z test -N /www/nginx
[00:00:00] Creating the reference jail... done
[00:00:01] Mounting system devices for exp-10amd64-commit-test
[00:00:01] Mounting ports/packages/distfiles
[00:00:01] Using packages from previously failed build
[00:00:01] Mounting ccache from: /usr/ccache
[00:00:01] Mounting packages from: /poudriere/data/packages/exp-10amd64-commit-test
[00:00:01] Copying /var/db/ports from: /usr/local/etc/poudriere.d/test-options
[00:00:01] Appending to make.conf: /usr/local/etc/poudriere.d/make.conf
[00:00:01] Appending to make.conf: /usr/local/etc/poudriere.d/test-make.conf
[00:00:01] Appending to make.conf: /usr/local/etc/poudriere.d/exp-10amd64-make.conf
/etc/resolv.conf -> /poudriere/data/.m/exp-10amd64-commit-test/ref/etc/resolv.conf
[00:00:01] Starting jail exp-10amd64-commit-test
[00:00:02] Logs: /poudriere/data/logs/bulk/exp-10amd64-commit-test/2017-08-08_19h28m58s
[00:00:02] WWW: http://poudriere-dev.shatow.net/build.html?mastername=exp-10amd64-commit-test&build=2017-08-08_19h28m58s
[00:00:02] Loading MOVED
[00:00:02] Ports supports: DEPENDS_ARGS SELECTED_OPTIONS
[00:00:02] Gathering ports metadata
[00:00:02] Error: gather_port_vars: Failed to read rdep for www/www
[00:00:02] Cleaning up
[00:00:02] Unmounting file systems

This could happen with a 3-level ports tree. Did you make such a modification? It would help to see your /usr/local/etc/poudriere-list file.

a preceding / in front was the problem to.
thanks for your help and bug fixing here.


Update the AKS deployment guide

The AKS deployment guide (docs/deployment/aks.md) became old as AKS service went GA since then and now has RBAC and AAD support.
We need to update the doc to reflect the changes in the AKS.

I'll try to create a PR for this.


District-Based City Generation

Determine district count per size and per type
Port K-Means method to determine districts
Create a district type assigning chain to assure to stay in range of determined district type count
Reassign the type to parcels based on district
Define the city boundary as the farthest parcel away from the center.

The district facet is completely created at city spawn. The assignment is based on a probability system: ProbabilityDistribution.class.
The probabilities are determined based on the reciprocal value of the difference between the  current zone-area percentage and the "theoretical" cultural need percentage for that zone. If there is more than one zone in one district, the area of the district is distributed evenly between the zones.
Also the assignment happens from the city center outward to assure that every district type is at least somewhat to find near the center.
In detail it can be found in the DistrictFacetComponent.class
`private void mapDistrictTypes(DistrictManager districtManager, Culture culture) {
Map<String, Float> zoneArea = new HashMap<>();
ProbabilityDistribution probabilityDistribution = new ProbabilityDistribution<>(districtManager.hashCode() | 413357);
Map<String, Float> culturalNeedsPercentage = culture.getProcentualsForZone();
int totalAssignedArea = 0;
    for (int i = 0; i < districtCount; i++) {
        float min = 99999;
        Vector2i minCenter = null;
        for (Vector2i districtCenter : districtCenters) {
            String key = Integer.toString(districtCenters.indexOf(districtCenter));
            if (districtTypeMap.containsKey(key)) {
                continue;
            }
            float temp = (float) districtCenter.distance(center);
            if (temp < min) {
                min = temp;
                minCenter = districtCenter;
            }
        }
        if (minCenter != null) {
            totalAssignedArea += districtSize.get(i);

            //Calculate probabilities
            Map<DistrictType, Float> probabilites = new HashMap<>(districtManager.getDistrictTypes().size());
            float totalDiff = 0;

            for (DistrictType districtType : districtManager.getDistrictTypes()) {
                float diff = 0;
                Map<String, Float> tempZoneArea = new HashMap<>(zoneArea);
                for (String zone : districtType.zones) {
                    float area = districtSize.get(i) / districtType.zones.size();
                    tempZoneArea.put(zone, tempZoneArea.getOrDefault(zone, 0f) + area);
                    if (tempZoneArea.get(zone) / totalAssignedArea > culturalNeedsPercentage.get(zone)) {
                        diff = 9999999f;
                    } else {
                        diff += TeraMath.fastAbs(tempZoneArea.get(zone) / totalAssignedArea - culturalNeedsPercentage.get(zone));
                    }
                }
                diff = 1 / diff;
                probabilites.put(districtType, diff);
                totalDiff += diff;
            }
            for (DistrictType districtType : districtManager.getDistrictTypes()) {
                probabilites.put(districtType, probabilites.getOrDefault(districtType, 0f) / totalDiff);
            }

            //Assign District
            probabilityDistribution.initialise(probabilites);
            DistrictType nextDistrict = probabilityDistribution.get();
            for (String zone : nextDistrict.zones) {
                float area = districtSize.get(i) / nextDistrict.zones.size();
                zoneArea.put(zone, zoneArea.getOrDefault(zone, 0f) + area);
            }
            districtTypeMap.put(Integer.toString(districtCenters.indexOf(minCenter)), nextDistrict);
        }

}
}`


skycontrol 5500.824 template

Added SkyControl 5500.824 Monitoring System Template for Zabbix 5.4

Hello!
Zabbix 5.4 version is unsupported.
Please, add the templates for the supported versions (6.0/7.0)
Also, please add your GitHub user in  README's Author block for  easy contribution and maintenance in the future

Hello!
Thanks.

I'll update it sometime


Fix mimetype for JSON response

Motivation
Make sure the API client works with other CL clients.
Description
Fix the mimetype for JSON response.
Closes #4990
Steps to test or reproduce
Run all tests.

For reference:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept
https://www.iana.org/assignments/media-types/media-types.xhtml
https://www.iana.org/assignments/media-types/application/json


minor fixes

making version compatible and typo fixes

Hi @NikitaGrunskyHolm,
I am seeing no major changes in this request, you have only removed the releasenotes reference from createui, which we need in this file. Can you please let us know what changes you have made in this request?
Also, you removed the 3.0.0 zip file from the solution, usually we maintain all older versions, so please revert that change.

Thanks

Hi @NikitaGrunskyHolm, I am seeing no major changes in this request, you have only removed the releasenotes reference from createui, which we need in this file. Can you please let us know what changes you have made in this request? Also, you removed the 3.0.0 zip file from the solution, usually we maintain all older versions, so please revert that change.  Thanks

Hi @v-atulyadav, I wanted to change "tier": "developer" => "tier": "PArtner". BUt looks like rebuilding package with V3 tool revert that and release notes link as well. Could you please say when we need to rebuild package?


fix: update graphql pagination label cop

Description
In Datasource, Graphql pagination settings copy is changed as:

Paginate via limit and offset ----> Paginate using limit and offset
Paginate via cursor based ----> Paginate using cursor

PR fixes following issue(s)
Fixes # #24469
Media

A video or a GIF is preferred. when using Loom, don’t embed because it looks like it’s a GIF. instead, just link to the video

Type of change

Please delete options that are not relevant.

Bug fix (non-breaking change which fixes an issue)

Testing

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Also list any relevant details for your test configuration.
Delete anything that is not relevant

[ ] Manual
[ ] Jest
[ ] Cypress

Test Plan

Add Testsmith test cases links that relate to this PR

Issues raised during DP testing

Link issues raised during DP testing for better visiblity and tracking (copy link from comments dropped on this PR)

Checklist:
Dev activity

[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] PR is being merged under a feature flag

QA activity:

[ ] Speedbreak features have been covered
[ ] Test plan covers all impacted features and areas of interest
[ ] Test plan has been peer reviewed by project stakeholders and other QA members
[ ] Manually tested functionality on DP
[ ] We had an implementation alignment call with stakeholders post QA Round 2
[ ] Cypress test cases have been added and approved by SDET/manual QA
[ ] Added Test Plan Approved label after Cypress tests were reviewed
[ ] Added Test Plan Approved label after JUnit tests were reviewed

/ok-to-test

/build-deploy-preview skip-tests=true


Ignore Front Matter

Hugo will add Front Matter at top of the markdown.
mark map don't need to show this Front Matter in the mindmap

Closing in favor of #71


Fix bad requireNonNull checks

Embarassing, my fault. Seems that my regex was wrong and I did not double check.


Logging exceptions in case of exceptions.

Type: Question
NLog version: 4.3.4
Platform: Silverlight
Hello all,
Please, let me know if there is a way to catch an exception inside a custom target and push it up in the hierarchy so I could get a notification in my main application and log it.
The case is simple, I have a webclient making requests to my service. The webclient target is a custom target wrapped in async wrapper which is wrapped in retrying wrapper.
In case of an exception I call
logEvent.Continuation.Invoke(ex);
To let the retrying wrapper know that it needs to retry, but, when I for some reason fail to reach the service I'm calling, I want to log in a file the reason (response code from the server, for example).
Is it something that can be done?
The code inside the target is very simple:
`protected override void Write(Common.AsyncLogEventInfo logEvent)
{
WebClient wc = new WebClient();
wc.UploadStringAsync(Url, "POST", Layout.Render(logEvent.LogEvent));
wc.UploadStringCompleted += (o, e) =>
{
    try
    {
        var result = e.Result;

        // Do something with result.
    }
    catch (Exception ex)
    {
        if (ex.InnerException is WebException)
        {
            // Get status
        }

        // Let other wrappers know that there was an exception here so they could do their job like retry, for example.
        logEvent.Continuation.Invoke(ex);
    }
};

}`
Thank you.

I want to log in a file the reason

Do you need to log it to a file or thrown an exception?

Anything will do. If the _logger.Log() will throw an exception that I ca throw inside my custom target - great. If I can use some internal logger inside the target which I can first configure to write in a specific file with a specific layout (or even use the logger of the main application which I use to log main app events and errors) - will also work.

I'm not sure if I fully understand your case, but the error patern in our targets is:
 catch (Exception ex)
 {
  //error/warn. Optional, if skipped, written as error to the InternalLogger
     InternalLogger.Warn(ex, "reading 'From' from .config failed.");

     if (ex.MustBeRethrown())
     {
         throw;
     }

 }

Thank you for that. The use case is simple. I have my app in which I setup two loggers - one logs data into the file. Another logs different events using remote API. For the first one I use file target. For the second one I needed to create customer target because I needed to send custom headers to the API.
What I want to be able to do is log exceptions in a file using file logger in case API logger failed for some reason (API responded with 404 or some other HTTP code, for example). So, the question is - is it possible to log exception which happens in my custom API logger and log it using my file logger?
Thank you.

o, the question is - is it possible to log exception which happens in my custom API logger and log it using my file logger?

In you custom API logger:
var logger = LogManager.GetLogger("myCustomApiLogger").

and in your config
  <rules>
    <logger name="myCustomApiLogger" minlevel="Trace" writeTo="myOtherTarget" />

?

I will give it a try with rules. Thank you.

Worked perfectly. Thank you very much!

:+1:


Daemon v0.4.5 doesn't seem to want to start my custom servers

I'm currently running v0.6.3 of the panel and v0.4.1 of the daemon. Everything seems to be fine. All of my custom services (simple Call of Duty games) work fine.
After upgrading to v0.4.5, creating new servers using the existing Call of Duty service doesn't work anymore. In the daemon logs is the following:
{"name":"wings","hostname":"35fb4785cd1b","pid":17,"server":"5aa1b842-14b0-46f2-87a9-28bc3d209d8a","level":40,"msg":"Container was not found. Attempting to recreate it.","time":"2017-10-30T17:29:13.997Z","v":0}
{"name":"wings","hostname":"35fb4785cd1b","pid":17,"server":"5aa1b842-14b0-46f2-87a9-28bc3d209d8a","level":30,"msg":"Completed rebuild process for server container.","time":"2017-10-30T17:29:14.021Z","v":0}
{"name":"wings","hostname":"35fb4785cd1b","pid":17,"server":"5aa1b842-14b0-46f2-87a9-28bc3d209d8a","level":40,"msg":"Server booting is now BLOCKED.","time":"2017-10-30T17:29:14.021Z","v":0}
{"name":"wings","hostname":"35fb4785cd1b","pid":17,"server":"5aa1b842-14b0-46f2-87a9-28bc3d209d8a","level":30,"msg":"Blocking server boot until option installation process is completed.","time":"2017-10-30T17:29:14.022Z","v":0}

Any servers that were created with the v0.4.1 daemon can still start/stop normally with v0.4.5. It just appears as if new servers cannot be deployed. I'm not sure if this Blocking server boot until option installation process is completed. message is new past v0.4.1, but is there some sort of workaround or solution for this?
I did verify that the service option folders exist on the server (/src/services/). Not sure if there's something else I should be looking for.

What does your service configuration look like? Are there any install logs in /srv/daemon/config/servers/<uuid>/install.log?

I can post any specific service configuration information if you'd like, just let me know specifically what you would like to see and I can either copy/paste or grab a screenshot.
Before I move forward any further though, I want to let you know that if I create one of my servers using the 0.4.1 daemon and then switch to the 0.4.5 daemon, the server still starts and stops normally.
However, if I create a server with the 0.4.5 daemon and try to switch to back to 0.4.1, the server remains in the "Installing" state. But, if I toggle the state of the server and try to start it (with the 0.4.1 daemon), it actually does start up (only on the 0.4.1 daemon) albeit the disk space shows that it's using 0MB (instead of the 3500MB or so that it usually shows when you start it for the first time). After the server starts, if I stop and then start it again, then the disk space shows properly. I mention this in case it's relevant to you (since I'm not sure when it would actually populate the disk space and might show you what part of the process is causing an issue). The server never starts if I create it with the 0.4.5 daemon, toggle the state while using the 0.4.5 daemon, and then click the Start button. It simply does nothing. The only time the server starts with the 0.4.5 daemon is after I toggle the state with the 0.4.1 daemon and then switch back to 0.4.5.
In regards to the install logs, the only thing I could find was the server.json files in the respective servers' UUID folders. To test, I just deployed a brand new Call of Duty server with the 0.4.5 daemon. After comparing this to an existing, known good Call of Duty server, the only difference between the two files are that the good version has the following at the bottom:
"suspended": 0
The version that isn't working simply doesn't show anything. The version that wasn't working and then starts working again by changing from 0.4.5 to 0.4.1 and toggling also does not have this in the server.json, and it still works fine.

Can you change log.level to debug in the core.json and then reboot the daemon in the foreground and attempt installation. It should output a ton of information, as well as installation stdout to the screen so we can better see what is going on.

Here is what happens when deploying a brand new server using daemon 0.4.5:
{"name":"wings","hostname":"35fb4785cd1b","pid":17,"server":"4ffe6911-bdbc-4d24-a855-9166bea1c532","level":20,"msg":"Creating SFTP user on the system...","time":"2017-10-31T18:58:38.874Z","v":0}
{"name":"wings","hostname":"35fb4785cd1b","pid":17,"server":"4ffe6911-bdbc-4d24-a855-9166bea1c532","level":20,"msg":"Retrieving the user's ID...","time":"2017-10-31T18:58:38.943Z","v":0}
{"name":"wings","hostname":"35fb4785cd1b","pid":17,"server":"4ffe6911-bdbc-4d24-a855-9166bea1c532","level":20,"msg":"User ID is: 15003","time":"2017-10-31T18:58:38.977Z","v":0}
{"name":"wings","hostname":"35fb4785cd1b","pid":17,"server":"4ffe6911-bdbc-4d24-a855-9166bea1c532","level":40,"msg":"Container was not found. Attempting to recreate it.","time":"2017-10-31T18:58:38.978Z","v":0}
{"name":"wings","hostname":"35fb4785cd1b","pid":17,"server":"4ffe6911-bdbc-4d24-a855-9166bea1c532","level":20,"msg":"Removing old server container.","time":"2017-10-31T18:58:38.978Z","v":0}
{"name":"wings","hostname":"35fb4785cd1b","pid":17,"server":"4ffe6911-bdbc-4d24-a855-9166bea1c532","level":20,"msg":"Rebuilding server container...","time":"2017-10-31T18:58:38.979Z","v":0}
{"name":"wings","hostname":"35fb4785cd1b","pid":17,"server":"4ffe6911-bdbc-4d24-a855-9166bea1c532","level":20,"msg":"Creating new container...","time":"2017-10-31T18:58:38.980Z","v":0}
{"name":"wings","hostname":"35fb4785cd1b","pid":17,"server":"4ffe6911-bdbc-4d24-a855-9166bea1c532","level":20,"msg":"New container successfully created with ID b8e571198dc4","time":"2017-10-31T18:58:38.999Z","v":0}
{"name":"wings","hostname":"35fb4785cd1b","pid":17,"server":"4ffe6911-bdbc-4d24-a855-9166bea1c532","level":20,"msg":"Containers successfully rotated, updating stored configuration.","time":"2017-10-31T18:58:38.999Z","v":0}
{"name":"wings","hostname":"35fb4785cd1b","pid":17,"server":"4ffe6911-bdbc-4d24-a855-9166bea1c532","level":30,"msg":"Completed rebuild process for server container.","time":"2017-10-31T18:58:39.002Z","v":0}
{"name":"wings","hostname":"35fb4785cd1b","pid":17,"level":20,"server":"4ffe6911-bdbc-4d24-a855-9166bea1c532","msg":"Loaded configuration and initalized server.","time":"2017-10-31T18:58:39.002Z","v":0}
{"name":"wings","hostname":"35fb4785cd1b","pid":17,"server":"4ffe6911-bdbc-4d24-a855-9166bea1c532","level":40,"msg":"Server booting is now BLOCKED.","time":"2017-10-31T18:58:39.002Z","v":0}
{"name":"wings","hostname":"35fb4785cd1b","pid":17,"server":"4ffe6911-bdbc-4d24-a855-9166bea1c532","level":30,"msg":"Blocking server boot until option installation process is completed.","time":"2017-10-31T18:58:39.003Z","v":0}
{"name":"wings","hostname":"35fb4785cd1b","pid":17,"server":"4ffe6911-bdbc-4d24-a855-9166bea1c532","level":20,"msg":"Contacting remote server to pull scripts to be used.","time":"2017-10-31T18:58:39.003Z","v":0}
{"name":"wings","hostname":"35fb4785cd1b","pid":17,"server":"4ffe6911-bdbc-4d24-a855-9166bea1c532","level":20,"msg":"Contacting panel to determine scripts to run for option processes.","time":"2017-10-31T18:58:39.003Z","v":0}

Here is what happens when deploying a brand new server using daemon 0.4.1:
{"name":"wings","hostname":"63f97fcc0c59","pid":17,"server":"3fad5871-bca1-4019-a019-894282bd56cd","level":20,"msg":"Updating passed JSON to route correct interfaces.","time":"2017-10-31T19:02:17.616Z","v":0}
{"name":"wings","hostname":"63f97fcc0c59","pid":17,"server":"3fad5871-bca1-4019-a019-894282bd56cd","level":20,"msg":"Creating SFTP user on the system...","time":"2017-10-31T19:02:17.616Z","v":0}
{"name":"wings","hostname":"63f97fcc0c59","pid":17,"server":"3fad5871-bca1-4019-a019-894282bd56cd","level":20,"msg":"Retrieving the user's ID...","time":"2017-10-31T19:02:17.747Z","v":0}
{"name":"wings","hostname":"63f97fcc0c59","pid":17,"server":"3fad5871-bca1-4019-a019-894282bd56cd","level":20,"msg":"User ID is: 15003","time":"2017-10-31T19:02:17.782Z","v":0}
{"name":"wings","hostname":"63f97fcc0c59","pid":17,"server":"3fad5871-bca1-4019-a019-894282bd56cd","level":40,"msg":"Container was not found. Attempting to recreate it.","time":"2017-10-31T19:02:17.782Z","v":0}
{"name":"wings","hostname":"63f97fcc0c59","pid":17,"server":"3fad5871-bca1-4019-a019-894282bd56cd","level":20,"msg":"Removing old server container.","time":"2017-10-31T19:02:17.782Z","v":0}
{"name":"wings","hostname":"63f97fcc0c59","pid":17,"server":"3fad5871-bca1-4019-a019-894282bd56cd","level":20,"msg":"Rebuilding server container...","time":"2017-10-31T19:02:17.783Z","v":0}
{"name":"wings","hostname":"63f97fcc0c59","pid":17,"server":"3fad5871-bca1-4019-a019-894282bd56cd","level":20,"msg":"Creating new container...","time":"2017-10-31T19:02:17.784Z","v":0}
{"name":"wings","hostname":"63f97fcc0c59","pid":17,"server":"3fad5871-bca1-4019-a019-894282bd56cd","level":20,"msg":"New container successfully created with ID 5cb1a4399130","time":"2017-10-31T19:02:17.802Z","v":0}
{"name":"wings","hostname":"63f97fcc0c59","pid":17,"server":"3fad5871-bca1-4019-a019-894282bd56cd","level":20,"msg":"Containers successfully rotated, updating stored configuration.","time":"2017-10-31T19:02:17.802Z","v":0}
{"name":"wings","hostname":"63f97fcc0c59","pid":17,"server":"3fad5871-bca1-4019-a019-894282bd56cd","level":30,"msg":"Completed rebuild process for server container.","time":"2017-10-31T19:02:17.805Z","v":0}
{"name":"wings","hostname":"63f97fcc0c59","pid":17,"level":20,"server":"3fad5871-bca1-4019-a019-894282bd56cd","msg":"Loaded configuration and initalized server.","time":"2017-10-31T19:02:17.806Z","v":0}
{"name":"wings","hostname":"63f97fcc0c59","pid":17,"server":"3fad5871-bca1-4019-a019-894282bd56cd","level":40,"msg":"Server booting is now BLOCKED.","time":"2017-10-31T19:02:17.806Z","v":0}
{"name":"wings","hostname":"63f97fcc0c59","pid":17,"server":"3fad5871-bca1-4019-a019-894282bd56cd","level":30,"msg":"Blocking server boot until option installation process is completed.","time":"2017-10-31T19:02:17.806Z","v":0}
{"name":"wings","hostname":"63f97fcc0c59","pid":17,"server":"3fad5871-bca1-4019-a019-894282bd56cd","level":20,"msg":"Contacting remote server to pull scripts to be used.","time":"2017-10-31T19:02:17.807Z","v":0}
{"name":"wings","hostname":"63f97fcc0c59","pid":17,"server":"3fad5871-bca1-4019-a019-894282bd56cd","level":20,"msg":"Contacting panel to determine scripts to run for option processes.","time":"2017-10-31T19:02:17.807Z","v":0}
{"name":"wings","hostname":"63f97fcc0c59","pid":17,"server":"3fad5871-bca1-4019-a019-894282bd56cd","level":30,"msg":"E_NOSCRIPT: No installation script was defined for this service, skipping rest of process","time":"2017-10-31T19:02:17.971Z","v":0}
{"name":"wings","hostname":"63f97fcc0c59","pid":17,"server":"3fad5871-bca1-4019-a019-894282bd56cd","level":30,"msg":"Server booting is now UNBLOCKED.","time":"2017-10-31T19:02:17.971Z","v":0}
{"name":"wings","hostname":"63f97fcc0c59","pid":17,"server":"3fad5871-bca1-4019-a019-894282bd56cd","level":20,"msg":"Server is has been marked as requiring a rebuild on next boot cycle.","time":"2017-10-31T19:02:17.980Z","v":0}
{"name":"wings","hostname":"63f97fcc0c59","pid":17,"server":"3fad5871-bca1-4019-a019-894282bd56cd","level":30,"msg":"Server has been unsuspended.","time":"2017-10-31T19:02:18.083Z","v":0}
{"name":"wings","hostname":"63f97fcc0c59","pid":17,"level":30,"msg":"Notified remote panel of server install status.","time":"2017-10-31T19:02:18.095Z","v":0}
{"name":"wings","hostname":"63f97fcc0c59","pid":17,"server":"3fad5871-bca1-4019-a019-894282bd56cd","level":30,"msg":"Server status has been changed to STARTING","time":"2017-10-31T19:02:18.095Z","v":0}
{"name":"wings","hostname":"63f97fcc0c59","pid":17,"server":"3fad5871-bca1-4019-a019-894282bd56cd","level":30,"msg":"Server status has been changed to OFF","time":"2017-10-31T19:02:18.095Z","v":0}
{"name":"wings","hostname":"63f97fcc0c59","pid":17,"server":"3fad5871-bca1-4019-a019-894282bd56cd","level":20,"msg":"Removing old server container.","time":"2017-10-31T19:02:18.095Z","v":0}
{"name":"wings","hostname":"63f97fcc0c59","pid":17,"server":"3fad5871-bca1-4019-a019-894282bd56cd","level":20,"msg":"Rebuilding server container...","time":"2017-10-31T19:02:18.100Z","v":0}
{"name":"wings","hostname":"63f97fcc0c59","pid":17,"server":"3fad5871-bca1-4019-a019-894282bd56cd","level":20,"msg":"Creating new container...","time":"2017-10-31T19:02:18.101Z","v":0}
{"name":"wings","hostname":"63f97fcc0c59","pid":17,"server":"3fad5871-bca1-4019-a019-894282bd56cd","level":20,"msg":"New container successfully created with ID 09f6057c8abd","time":"2017-10-31T19:02:18.125Z","v":0}
{"name":"wings","hostname":"63f97fcc0c59","pid":17,"server":"3fad5871-bca1-4019-a019-894282bd56cd","level":20,"msg":"Containers successfully rotated, updating stored configuration.","time":"2017-10-31T19:02:18.125Z","v":0}
{"name":"wings","hostname":"63f97fcc0c59","pid":17,"server":"3fad5871-bca1-4019-a019-894282bd56cd","level":30,"msg":"Completed rebuild process for server container.","time":"2017-10-31T19:02:18.128Z","v":0}
{"name":"wings","hostname":"63f97fcc0c59","pid":17,"server":"3fad5871-bca1-4019-a019-894282bd56cd","level":30,"msg":"Server status has been changed to STARTING","time":"2017-10-31T19:02:18.128Z","v":0}
{"name":"wings","hostname":"63f97fcc0c59","pid":17,"server":"3fad5871-bca1-4019-a019-894282bd56cd","level":20,"msg":"Checking size of server folder before booting.","time":"2017-10-31T19:02:18.128Z","v":0}
{"name":"wings","hostname":"63f97fcc0c59","pid":17,"server":"3fad5871-bca1-4019-a019-894282bd56cd","level":20,"msg":"Initializing for boot sequence, running preflight checks.","time":"2017-10-31T19:02:18.132Z","v":0}
{"name":"wings","hostname":"63f97fcc0c59","pid":17,"server":"3fad5871-bca1-4019-a019-894282bd56cd","level":30,"msg":"Server status has been changed to ON","time":"2017-10-31T19:02:28.394Z","v":0}

Can you please provide all of the information I will need in order to reproduce this locally? There is no service/option configuration information I can use here.

As this is using the old daemon/panel, I'm not going to troubleshoot this any further until I migrate to the new version and experience the same issue.
I'll close this for now, and if it occurs using 0.7 with 0.5, I will post the relevant information and source image/files for testing.

Sounds good, sorry we couldn’t sort this out yet


Custom Weeks in Guides

I renamed the branch and it broke LOL

oh btw https://prokube.github.io/Funkin/guides/weeks is where it is lol

Reverted. This was not ready to merge. Please fix formatting and add a link in the guides index.

(replace ===== with --- to create HRs)

(week7.png should be inline code)


[FEATURE] AI Assist for Segmentation Annotation

It would be useful to have additional tools for AI assist during scene segmentation annotation. CVAT has
Video using CVAT with running locally via docker using Dextr
These are the instructions to get CVAT to run locally with AI Tools

Interesting, @mattbrown11. In the current issue, are you specifically looking for Dextr support inside of DIVE?

Doesn't need to specifically be Dextr. I investigated another state of the art tool that seemed to also work well: https://github.com/saic-vul/ritm_interactive_segmentation


drawtext filter: using text expansion with pts

I'm working on a filter graph where (among other things) I'm using drawtext to write a timer onto a stream.  I'm just building up a dictionary of the different drawtext parameters/values and then **passing that dict into the actual ().drawtext function call.  Example:
timer1Params['text'] = '%%{pts}'           #### here be dragons ####
timer1Params['fontsize'] = relativeSize(md, 'h', 12)
timer1Params['x'] = roundUpToBase( (md['crop_w']  * .50), 20)
timer1Params['y'] = roundUpToBase( (md['crop_h'] * .03), 20)
timer1Params['enable'] = 'between(t,0,5)'

# and so on to build up the drawtext parameters...  then...

    (
        ffmpeg
        .input(infile, ss=leadInFromFileStart, t=outputDuration)
        .drawtext(**timer1Params)
        .output(outfile)
        .run(capture_stdout=False, capture_stderr=False)
    )

The problem is that I cannot for the life of me figure out how to properly encode/escape the "text" part, specifically when using the pts function.
For the dictionary value assigned to ['text'] I've tried all of the following and none behave the way I want ... help?!??  I have to imagine this is "just" my not knowing how to properly escape this, but I can't figure it out....
timer1Params['text'] = '"%"{pts}'    # prints as literal
timer1Params['text'] = '%{pts}'   # also prints as literal
timer1Params['text'] = '\\%{pts}'  # prints only the first slash
timer1Params['text'] = '%\{pts\}'   # prints \%{pts}

So I was able to get this to work by using escape_test=False, but found in other issues that there was preference not to use this and instead fix the underlying issue (if we can find it).
The output of the compile() method ended up being:
text=%{eif\\\\:trunc(abs(150-n)/30)\\\\:d\\\\:2}.%{eif\\\\:mod(abs(150-n) \\,30) * 100 / 30\\\\:d\\\\:2}

Hi @ljwobker,
I'm superlate to the party, but for the life of me I cannot get it working. Do you happen to have a working example?
Thanks in advance.

the closest I got is what's implemented here:
https://github.com/ljwobker/jumpstamper/blob/master/jumpstamper.py

That's an excellent source of information, thank you very much. It looks like we both do very similar thing. Mine are personalized videos from running competitions stitched from different sources, overlayed with images, text and other media, all created dynamically based on CSV data.


[NWPS-1234] [WIP] Listing and collection template tidy-up integration

Includes Category-based (Bulletin, Blog and News) listing/collection tidy-up integration.
TODO: /content/documents/administration/labels/listing resource bundle needs to be updated to include new labels introduced as part of the tidy-up design change.

Closing this PR as it has been replaced by #426.