Shapes truncate long names

https://jsfiddle.net/7b5h2oxa/

Fixed in latest d3plus-text release, discussion here: https://github.com/d3plus/d3plus-text/issues/76


fix(resourceDelegations): parse object if passed as string for cli

This PR fixes a problem encountered when running the cli to create resourceDelegations, where the arguments would not be passed correctly. I changed the method to handle the delegation object as a string and provided instructions for this as well.
I tested this out for both node and cli.
Unrelated to this, when the cli encounters an error it does not return with the error, it just times out. This is something we need to fix, but in a separate PR.

Build failing, since the process has not landed yet. It will start passing when this PR merges: https://github.com/Paperspace/paperspace-node/pull/38


Remove function specifiers for defaulted functions

Up to now, only __host__ __device__ specifiers were
added with the gsl_api macro. nvcc also warns about
these function specifiers.
See also the discussion here:
https://stackoverflow.com/questions/46469062/warning-host-annotation-on-a-defaulted-function-is-ignored-why
Maybe you prefer to create an additional macro for defaulted functions.

Let's wait with additional macro for defaulted functions until the need arises.


Dart enum

@mannprerak2 @dcharkes can you add the generation of dart enums instead of abstract classes where possible?

For future reference, this has been implemented in #1202


Unable to load the weights from path-152x2-remedis-m

Hello,
Congratulations for this amazing work, which is super useful to the computational pathology community !
I'm trying to load the weights via the instructions you gave, however I encounter the following error which I don't (for now) manage to solve:
FileNotFoundError: Op type not registered 'DisableCopyOnRead' in binary running on <name_of_my_machine>. Make sure the Op and Kernel are registered in the binary running in this process. Note that if you are loading a saved graph which used ops from tf.contrib, accessing (e.g.) `tf.contrib.resampler` should be done before importing the graph, as contrib ops are lazily registered when the module is first accessed.
 You may be trying to load on a different device from the computational device. Consider setting the `experimental_io_device` option in `tf.saved_model.LoadOptions` to the io_device such as '/job:localhost'.

Do you have any idea how to solve it ? I tried with different tf.saved_model.LoadOptions but nothing's working.
Thank you very much for your answer !

Solved by installing tensorflow 2.12, not further due to this current install bug.


Allow a comma-separated value to the vector argument in GET search

Pull Request
For request:
 curl \
  -X GET 'http://localhost:7700/indexes/movies/search?vector=0.123,1.124,244'

Before PR:
{"message":"Invalid value type for parameter `vector`: expected a string, but found a string: `0,1,2`","code":"invalid_search_vector","type":"invalid_request","link":"https://docs.meilisearch.com/errors#invalid_search_vector"}%

After PR:
{"hits":[],"query":"","vector":[0.123,1.124,244.0],"processingTimeMs":0,"limit":20,"offset":0,"estimatedTotalHits":1000}%

cc @gmourier @bidoubiwa

I am just pretty sure that this limit can be reached quite easily 🙈

yay, makes me wonder if we want to provide the get parameter at all ...


async_handle_web_rtc_offer

Logger: custom_components.frigate.camera
Source: helpers/deprecation.py:236
integration: Frigate (documentation, issues)
First occurred: December 25, 2024 at 11:55:44 PM (63 occurrences)

More information is needed


ProfileCard: OGP image to share

Spec
Generate a image bellow when you share

https://www.figma.com/design/XUk8WMbKCeIdWD5cz9P9JC/DroidKaigi-2024-App-UI?node-id=58136-36586&t=T9cdyGXsD7ZwFCN8-4
Blocking Issue

#422

Can you explain more on what is required to be done?


belinda's-closet_4_70_refactored-delete-updated-unit-test

Resolves #70
This PR updates the unit test for the delete function in the product service, references #56 and #64.
There is a small refactor to the function, as it was first validating the id, which we need, but when it passed that check we were creating a new Id Object to be passed. This is unnecessary.
To test:

In your .env file make sure to set the following variables as detailed in the installation instructions for this repo.
You must have a valid MongoDB URI string for a database connection and set it as MONGODB_URI=<your database connection string> in your .env.
You must set JWT_SECRET=jwt in your.env.
You must set an expiry for your JWT Secret, I did JWT_EXPIRES = 90d in your .env.
Using the available API calls in the ProductController, use Postman to test.
Without an Authorization token in the header you should not be able to create(POST), update(PUT), or delete(DELETE) a product making calls to the ProductController.
Sign-up a new user or login an existing user with 'user' as their role and copy the JWT token.
Set this token as a Header for Authorization, as seen in the first picture below.
As a user you still should not be able to create(POST), update(PUT), or delete(DELETE) a product making calls to the ProductController.
Sign-up a new user or login an existing user with 'admin' as their role and copy the JWT token.
Set this token as a Header for Authorization, as seen in the first picture below.
As an admin you should be able to create(POST), update(PUT), or delete(DELETE) a product making calls to the ProductController.

To test the unit tests:

Pull this branch and open a terminal in the project
Run the tests for the service by using the command npm run test products.service.spec.ts

'Deleting' a product with a valid id found in the database, success:

'Deleting' a product with a valid id not found in the database:

'Deleting' a product with an invalid id, bad request:

Tests:

Just need some conflicts resolved and then we are ready to merge. Go ahead and merge this yourself after resolving. @CourtneyHoppus


blur event

Hi and thanks for the plugin!
I noticed that blur event is not being attached to the div which is created with the plugin.
Do you know a way to walk around it?
<template>                 <contenteditable                   tag="div"                   v-model="value"                   v-on:blur="saveData(value)"                   v-on:returned="saveData(value)"                 />  </template>

Note : you can use @blur.native

This only works with single element. I have this component inside a table's rows. the blur event only works on single row

Hi, could you send an example ? Have you tested on version 3.x ?

anyway, I'm using v1.0.2

https://codesandbox.io/s/awesome-lederberg-5ftgx
it works if it the data contains text only. if it contains any html string, @blur.native doesn't work

I don't really see what you expect and what you is not as you expect on this snippet. Anyway, I did some modification to see what happens :
https://codesandbox.io/s/busy-river-g645c
It looks like your quotes for the class is wrong. HTML uses double quotes, and you wrote single quotes. Thus, when mounting on the dom, the content of the contenteditable (remember, the content of a contenteditable is parsed and converted to DOM node by the JS engine. Thus, the original string content is lost, and only a canonical representation remain) is changed.
But I don't think this is a bug. Just, you need to know that when using with noHTML=false


OdfTableCellRange() is unusably slow for spreadsheets with whole-sheet formatting

This issue is very closely related to #64. A fix for that issue would most likely also fix this one. The root problem is how LibreOffice handles setting formatting for an entire spreadsheet and how this library interacts with such spreadsheets.
Steps to reproduce:

Create a new spreadsheet document in LibreOffice Calc
Select all cells (Ctrl-A, or click to the left of the column letter list)
Set any kind of formatting (e.g. change the font)
Save

This creates a content.xml with the following inner content:
<table:table-column table:style-name="co1" table:number-columns-repeated="16384" table:default-cell-style-name="ce1" />
<table:table-row table:style-name="ro1" table:number-rows-repeated="1048575">
    <table:table-cell table:number-columns-repeated="16384" />
</table:table-row>
<table:table-row table:style-name="ro1">
    <table:table-cell table:number-columns-repeated="16384" />
</table:table-row>

getColumnCount() and getRowCount() then respectively return 16384 and 1048576. This is a problem for functions like getCellRangeByName(...) and getCellRangeByPosition(...) that eventually call getCellCoverInfos(), which will then attempt to iterate over every cell in the table multiple times.
It might be possible to fix this by patching getOwnerCellByPosition() without having to deal with the spreadsheet size issue. I'll try to do so and submit a pull request if I can figure out what a covered cell is.

@Nnnes A pull request is very much welcome. Thanks in advance!
Regarding your question:
A covered cell is a cell that is "below" a spanned cell, see https://docs.oasis-open.org/office/OpenDocument/v1.3/os/part3-schema/OpenDocument-v1.3-os-part3-schema.html#element-table_covered-table-cell

I'm making progress. Laying out some of my thought process here, mostly for me to use as a reference for myself.
According to the spec, table:number-columns-repeated may only be used for <table:table-cell>/<table:covered-table-cell> if "[t]he cells are not merged horizontally or vertically" ("merged" I think means table:number-rows-spanned/table:number-columns-spanned is greater than 1, which excludes the covered cells - didn't see this clearly defined in v1.2 or v1.3 of the spec, but v1.1 mentioned it).
Similarly, table:number-rows-repeated may only be used if the rows "do not contain vertically merged cells". The spec doesn't mention horizontal merges, but if I try to collapse 6 identical rows with horizontally merged cells into a single <table:table-row table:number-rows-repeated="6"> by manually editing content.xml, LibreOffice seems to completely ignore the table:number-rows-repeated when I reopen the file, and only one row appears. So to avoid causing any breakage, I should not write anything that creates a horizontal merge in a repeated row.
As far as I can tell, all of this means I can handle repeated rows all at once in getCellCoverInfos() without affecting the result, similarly to how it's already being done here.
There are a few other places with patterns like for (int i = 0; i < table.getRowCount(); i++) (example 1, example 2) that I suspect could be improved in the same way. It might be worthwhile to write some kind of utility methods for iterating over rows/columns efficiently, but I'll save that work for a different pull request.

There are usually existing test documents available, I took a quick look and found three promising ones:

https://github.com/tdf/odftoolkit/blob/master/odfdom/src/test/resources/test-input/MergedCells.ods
https://github.com/tdf/odftoolkit/blob/master/odfdom/src/test/resources/test-input/mergedCells.odt
https://github.com/tdf/odftoolkit/blob/master/odfdom/src/test/resources/test-input/mergeScenarios.ods

Or https://github.com/tdf/odftoolkit/blob/master/odfdom/src/test/resources/test-input/_tableRepeated.ods
You may run a query (some bash that peeks into the XML within the ZIP looking for certain tags) or query/search the JSON of office operations within
https://github.com/tdf/odftoolkit/tree/master/odfdom/src/test/resources/test-reference/operations
to identify some functionality you require.
The allowed/possible operations (or document changes) are defined:
https://tdf.github.io/odftoolkit/odfdom/operations/operations.html
Godspeed!

Cool! @Nnnes Thanks for the patch!
@mistmist Thanks for the review!


Template data

This makes it possible to supply additional template data to the mustache template file.
We needed this for cachebusting the sprites file, but there might be other uses for it too.

+1

Any update here? While waiting for this to be merged I've created a fork and published it as @mariusgundersen/gulp-svg-spritesheet. Hopefully this pull request can be accepted soon so I can continue to use this version

+1

Any update? It would be nice if this was merged. If you need help maintaining this project, let me know and I'd be happy to help you out


riot only seems to update when in focus, or connected to wifi. it does not background sync on mobile reliably. I can't find any setting to fix this.

reported by @Bronson:matrix.org
https://github.com/matrix-org/riot-android-rageshakes/issues/1397

it is weird because the GCM registration succeeded.

10-27 06:06:11.708Z 1 D/RestAdapterCallback: ## failure(): [syncFromToken] with error Unable to resolve host "matrix.org": No address associated with hostname
10-27 06:06:11.708Z 1 D/EventsThread: Got an error while polling events Unable to resolve host "matrix.org": No address associated with hostname
10-27 06:06:11.709Z 373 D/EventsThread: Event stream is paused because there is no available network.
10-27 06:06:11.709Z 373 D/EventsThread: startSync : wait ...

it seems the requests failed to be sent when the app is background on LTE network.
It is not a Riot issue : it might a powersave setting or so.


Reduce cached accessory logspam

Line 122 of WyzeSmartHome.js is logging all accessories at every refresh interval.
The logging could be moved to
this.log.info(`Loading accessory from cache ${homeKitAccessory.context.nickname} (MAC: ${homeKitAccessory.context.mac})`)

in configureAccessory at line 184 of WyzeSmartHome.js. This would log cached accessories once at plug-in startup.

I will include this in the next major release with a lot of other changes.

Hello. I recently updated the Wyze plugin and am getting: [Wyze] Loading accessory from cache... every few seconds. Is there any way to reduce these logs or disable them? When I revert back to the old version plugin, these logs stop.

As stated above this will be addressed in the next release

As stated above this will be addressed in the next release

I'm sorry. I somehow missed that response. Thank you for working on this.

Can we close this?

This is currently in the dev branch. After we have thermostat support I will create a new beta release. I was going to push this a few weeks ago but didn't have time.

any progress on this?

Updated Master to version 5.25.1


name and behavior mismatch in pct_change

Hi all,
I've enjoyed using pandas for a little while now. Thanks for developing such a useful and convenient tool!
A little nit has been nagging at me about pct_change function (and the .pct_change method of Series, DataFrame, etc.).  If I run a sequence of numbers that increase by 100% (python 0.16.2):
import pandas as pd

series = pd.Series([0.5,1,2,4])
print series.pct_change()

the output is:
0   NaN
1     1
2     1
3     1
dtype: float64

Based on the name pct_change, I'd expect the result should the percentage change (i.e., scaled by 100):
0   NaN
1     100
2     100
3     100
dtype: float64

In general it looks to me like in general pct_change is really a fractional change. Perhaps the name would suggest the behavior more closely if the function and method were called frac_change? I've become familiar with pandas enough now to know the expected behavior, but this could be a confusing turn-off for newer users.

usually it is left to the user to determine whether things are 0-100 or 0-1. This is the convention numpy/pandas have taken for quite a while.

Hmm, I'm confused, obviously users can scale by whatever constant they would like, but seems like a different issue.  The name percentage implies 0-100, which is not what the function returns.
From https://en.wikipedia.org/wiki/Percentage - "In mathematics, a percentage is a number or ratio expressed as a fraction of 100."
All examples I can find in numpy/scipy behave with 0-100 scaling:
http://docs.scipy.org/doc/numpy-dev/reference/generated/numpy.percentile.html
http://docs.scipy.org/doc/scipy-0.13.0/reference/generated/scipy.stats.percentileofscore.html
https://docs.scipy.org/doc/scipy-0.14.1/reference/generated/scipy.misc.imresize.html
http://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.scoreatpercentile.html
http://docs.scipy.org/doc/scipy/reference/generated/scipy.ndimage.filters.percentile_filter.html
While obviously like you say, the user can scale the output by whatever number they'd like, bugs crop up if the scale isn't what they expect, no?  Why not make the function the same as what the user should expect, so that it is easiest to get the scaling to where it should be?

maybe
but would be impossible to actually change this
as the function has been around for many years
and you cannot deprecate something like this


Update KeyboardObserver

This updates the KeyboardObserver to match the more recent implementation we use elsewhere.
Changes include:

Support for the iOS 16.1+ changes related to the screen coordinate space. This can impact reported values when the app isn't full screen in Split View, Slide Over, and Stage Manager.
The delegate has been changed to report the UIView.AnimationCurve instead of UIView.AnimationOptions
Various formatting changes to match other implementations.
ListView changes:

We now use a UIViewPropertyAnimator instead of UIView.animate when responding to keyboard notifications.
The KeyboardFrameWillChangeCallback now receives the UIView.AnimationCurve instead of UIView.AnimationOptions

Note: This implementation
Checklist
Please do the following before merging:

[x] Ensure any public-facing changes are reflected in the changelog. Include them in the Main section.

@kyleve The notification screen handling was updated in https://github.com/square/Listable/pull/499/commits/27d578d368f8e02eed3f04a68ea2a923a3f5707e to match the revised Market implementation (https://github.com/squareup/market/pull/6826).


170-static-footer-rename

Please always provide the GitHub issue(s) your PR is for, as well as test URLs where your change can be observed (before and after):
Fix #170
Test URLs:

Before: https://main--danaher-ls-aem--hlxsites.hlx.page/
After: https://170-static-footer-rename--danaher-ls-aem--hlxsites.hlx.page/

Closing as we don't need it any more.


Wrong label when running command outside of angular-cli project directory

OS?

Windows 7

Versions.

1.0.0-beta.24:

Repro steps.

run ng serve outside of angular-cli project directory

The log given by the failure.

You have to be inside an ember-cli project in order to use the serve command

Mention any other details that might be useful.
Replace ember-cli by angular-cli

Duplicate of https://github.com/angular/angular-cli/issues/3675 https://github.com/angular/angular-cli/issues/3697 , fixed in #3688


How to open an audio file?

Hello and thank you for this very useful tool!
It would be possible to use it for opening an audio file that is stored on s3?
I can't find the proper script for this. Thanks a lot.

You can open an audio file the same way you open any other file on S3. For examples, please see the README.rst file.

Sorry I did not include any code or errors. I am indeed trying something like:
with open('s3://mybucket/myprefix/audio.mp3', 'rb') as fin:
    print(fin)
    print(type(fin))
    y, sr = librosa.load(fin)
    print(sr)
    print(y)

<smart_open.s3.SeekableBufferedInputBase object at 0x1218c2b70>
<class 'smart_open.s3.SeekableBufferedInputBase'>
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-8-f436b8820887> in <module>
      3     print(fin)
      4     print(type(fin))
----> 5     y, sr = librosa.load(fin)
      6     print(sr)
      7     print(y)

/anaconda2/envs/audio36/lib/python3.6/site-packages/librosa/core/audio.py in load(path, sr, mono, offset, duration, dtype, res_type)
    110
    111     y = []
--> 112     with audioread.audio_open(os.path.realpath(path)) as input_file:
    113         sr_native = input_file.samplerate
    114         n_channels = input_file.channels

/anaconda2/envs/audio36/lib/python3.6/posixpath.py in realpath(filename)
    385     """Return the canonical path of the specified filename, eliminating any
    386 symbolic links encountered in the path."""
--> 387     filename = os.fspath(filename)
    388     path, ok = _joinrealpath(filename[:0], filename, {})
    389     return abspath(path)

TypeError: expected str, bytes or os.PathLike object, not SeekableBufferedInputBase

And of course Librosa does not work as it expects a path-like object.
Do you have any advice on how to actually read that smart_open.s3.SeekableBufferedInputBase object as an audio?
Thanks a lot

This sound system like a question for the librosa devs.

@mpenkov Is it possible to convert a SeekableBufferedInputBase to bytes?

Yes, just do buffer.read() from it.

@mpenkov okay, thank you, so it seems that audioread does not support reading the bytes directly - https://github.com/beetbox/audioread/issues/92

This worked for me with an audio file:
with smart_open.open(stream_url, 'rb',buffering=0) as f:


New version: Webroot.SecureAnywhere version <IP_ADDRESS>

[X] Have you signed the Contributor License Agreement?
[X] Have you checked that there aren't other open pull requests for the same manifest update/change?

[X] Does your manifest conform to the 1.0 schema?

Resolves #29459

Microsoft Reviewers: Open in CodeFlow

Ahh one of these:
****************************************************************************************
Manifest Content Validation
****************************************************************************************
Status: InProgress

10/12/2021 11:11:46 AM
##[warning] Validation concluded that this task needs to go to manual review.

10/12/2021 11:11:47 AM

****************************************************************************************
Manifest Content Validation
****************************************************************************************

-----------------------------------------------------
Warning
-----------------------------------------------------
Status: Completed

****************************************************************************************
Installation Verification
****************************************************************************************

-----------------------------------------------------
Failed
-----------------------------------------------------
Status: Completed


Introduced the outbox event versioning

I've made some changes related to a new feature Christian G. has build. It's also used in the release notes.
I hope you're fine with that.


ARTEMIS-1499 ArtemisExecutor and ProcessorBase needs support of recursive blocking executions

Submitting a CountDownLatch::countDown task and CountDownLatch::await right after in the event loop will block ArtemisExecutor.
This fix provide:

a way to validate blocking actions (ie failing flushes on event loop)
thread local sequential execution for task submissions while on event loop (ie execute).

@gemmellr @clebertsuconic I'm not very used to "even loop" patterns hence I call for help :)
I've found that our ArtemisExecutor deadlock with the (fresh new) test shouldSubmitBlockingTasksFromEventLoopMaintainingOrder TL;DR if a CountDownLatch::await is blocking the event loop while waiting a submitted CoundDownLatch::countDown.
Enforcing any code rule to avoid these patterns to be used it not simple, hence I've provided a fix to it.
Just as a note, the same pattern (verified) blocks the Netty's EventLoop too.
This fix come at the cost of a potential bigger calls stack, but providing a good boost for "in event loop" executions too, but I'm not 100% to have messed up with others things.
Wdyt?

@clebertsuconic Re ArtemisExecutor::flush I've provided the most defensive/conservative way to manage it, but I'm sure that it can be solved (like execute) in a more permissive and simpler way if called inside the event loop.

throwing an executor call, and waiting for a .wait is clearly a bug...
Adding this complex code on such a hot path has more risks in itself than eventually fixing issues.
I wouldn't merge this PR

@franz1981  shouldSubmitBlockingTasksFromEventLoopMaintainingOrder is a buggy code... it's an anti-pattern we shouldn't have in our code.
Sometimes we must do such thing, but then we must make sure we are using proper executions.. or proper callbacks (even better)

i understand it and I agree, but please reconsider it with tests and a longer review: as I've said we can't prohibit that kind of behaviours with ease and if it works (as I've tested/expected) it could make everything more stable/solid.

@franz1981 I disagree.. it would hide bugs.. which could end up in being more dangerous.

Clebert is correct, lets fix rather than re engineer

@andytaylor @clebertsuconic Got it :+1:
I will refactor the current PR handling only the fix on flush while leaving the improvement for recursive executions to be proposed in a different PR :)

@clebertsuconic Just a couple questions (so I can add some doc/tests):

it is allowed/legal to submit new tasks` from the event loop thread?
it is allowed call flush from the event loop thread? What is the expected behaviour while doing it?

@franz1981 what fix on flush? where do you see it being used.

it is legal to submit tasks...
you shouldn't call flush within a thread runnable. That's broken behaviour.

Instead of fixing what's not broken... just remove any calls to flush within executors.. I don't think there's any now.

@franz1981 changing flush is still re-engineering..
if there's any code calling flush within the OrderedExecutor, that's a classical starvation problem.. it's a bug that needs to be removed.
Instead of changing the semantic of flush, lets just avoid the bug... this PR should be closed IMO.

@clebertsuconic

Instead of changing the semantic of flush, lets just avoid the bug... this PR should be closed IMO.

I'm not sure about it TBH: help to understand why we can't check if flush is being called for within the event loop?
It is a wrong use of it as you said and we can check/validate it with ease (or at least we could log it as a warning/error) and without any perf impact.

@franz1981 ProcessorBase has no knowledge of Netty. just make the fix simple.. flush is only called in 3 places.. fix those places instead of rewriting the whole thing.

@clebertsuconic I've mentioned Netty just as an example of a event loop framework that doesn't handle well recursive submits into the event loop/blocking call issued from without the event loop.
The fix (if i'll remove the other changes) is simple: i'm just checking if the call will happen inside the event loop: let me push it and you can see it by yourself :+1:

I don't think we should have any thread locals on these executors... they are quite hot on the path.. I would leave it alone.. if there's anything broken.. just change the caller.

@clebertsuconic Why a thread local is not ok? It is not allocating nothing and it costs about like a MOV assembly instruction as it is implemented on the last JDK: having such logs (in debug mode at least)  could be really of some help for a developer if some weird execution paths could happen...

@franz1981  is there actually an issue? an actual deadlock?
My problem is adding complexity to the code for no reason.

@clebertsuconic You're right, but I will run some tests with the broker to see if the warning will be printed...just in case.
I've added a lil improvement on task submission but for the reasons you've said I can remove it and let it being pushed as an improvement in another PR (in the future).

@clebertsuconic after several tests I haven't found any call to 'flush' from within the event loop thread: I can close this if isn't needed :)
Thanks for the reviews guys

@franz1981 yeah.. I think we should close this... because:
It's not actually even loop. A ProcessorBase is just the context of a fake executor. Each OrderedExecutor will have its own instance.. This thing may confuse things a bit.
Say you have 10 running sessions doing deliveries. .you will end up with 10 threads.. each an instance of the OrderedExecutor.. the only difference is that this will take a thread from the pool and it may schedule tasks on that.


Evaluation metrics - Regression / Generative models

Is your feature request related to a problem? Please describe.
A list of the metrics to be implemented to be applied in the case of a regression/generative task with possible links for implementation / reference

Mean absolute error https://pytorch.org/docs/master/generated/torch.nn.L1Loss.html#torch.nn.L1Loss
Mean squared error https://pytorch.org/docs/master/generated/torch.nn.MSELoss.html#torch.nn.MSELoss
Smooth L1 Loss https://pytorch.org/docs/master/generated/torch.nn.SmoothL1Loss.html#torch.nn.SmoothL1Loss
Root MSE
Peak Signal to Noise Ratio https://github.com/tensorflow/tensorflow/blob/v2.2.0/tensorflow/python/ops/image_ops_impl.py#L3358
Structural Similarity Index Measure https://github.com/tensorflow/tensorflow/blob/v2.2.0/tensorflow/python/ops/image_ops_impl.py#L3569
Multi-scale SSIM [https://github.com/tensorflow/tensorflow/blob/v2.2.0/tensorflow/python/ops/image_ops_impl.py#L3648](url
Negative Guassian Log Likelihood https://pytorch.org/docs/stable/nn.html#torch.nn.NLLLoss
Maximum Mean Discrepancy https://github.com/ZongxianLee/MMD_Loss.Pytorch/blob/master/mmd_loss.py#L5
Inception Score https://github.com/sbarratt/inception-score-pytorch
Frechet Inception Distance https://github.com/xuqiantong/GAN-Metrics

Additional context
This comes from the work on metrics by task type done by the Metrics Task Force

This issue is not currently covered by the Metrics Reloaded guidelines - this is for future work


[W12H02] Fixed issues

Changes:
-MultiStackSyncTest: use TimeoutChecker to automatically stop the test after Timeout is reached
-RingbufferMultithreadTest: Fixed issue, when test ran forever instead of terminating after timeout threshold
-MultistackMultithreadTest: Remove useless println in Singlethreadtest

can be closed

Closing this PR because the deadline is over


[backports/1.2/ci] backported ci updates

I am seeing issues with creating clusters on AKS, added the on-hold label until this is resolved


Update the bot list on community/irc.html

Add a description and link to the source of all bots available in #perl6.
In perl6/doc#711 @zoffixznet mentioned that it would be nice to also include contact information on who's running the bot in #perl6, which to me seems like a good idea. If there are no objections, I will add those as well once I have sane descriptions of all available bots.
If you have a nice description of your own bot, feel free to post it on this PR so I can include it immediately.
This PR intends to fix #80.

In #711 @zoffixznet mentioned

In #711 of what? You're missing the repo information.

Woops, sorry. Added the perl6/doc part.

👍 Thanks!


How to read environment variables on the JS file?

Environment
How to read environment variables on the JS file?
Reproduction
How to read environment variables on the JS file?
Describe the bug
There is no problem on the Vue page, but an error was reported on the JS file.How to read environment variables on the JS file?

Additional context
No response
Logs
No response

You can read a bit more about this here: https://nuxt.com/docs/guide/concepts/auto-imports#using-vue-and-nuxt-composables


Android Java: 02.23 Toolbar - Custom Action Bar

Description

How to add a custom toolbar.
How to add an icon in the toolbar.

Domain
Android Dev (Java)
Type of Contribution
Documentation
Code of Conduct

[X] I follow Contributing Guidelines & Code of conduct of this project.

/assign


Is there a way I can detect Key press and hold with MASShortcut?

I want to perform some actions when the user presses and holds Fn key. Can I detect Key press and hold with this library? If yes, a simple code snippet would be great.

The answer is going to be different on whether your keypress is an ansi key-code (like A or ]) or a modifier flag (like Ctrl or Cmd).
AFAIK the underlying system API used by MASShortcut does not allow you to detect keycode-less shortcuts (like Fn). You may take a look at SRShortcutRecorder and specifically its SRAXGlobalShortcutMonitor. Note that this API requires Accessibility Permission.
As of ability to detect holds: neither MASShortcut nor SRShortcutRecorder supports it. That's an interesting feature though, please create an issue and detail your use-case.

The answer is going to be different on whether your keypress is an ansi key-code (like A or ]) or a modifier flag (like Ctrl or Cmd).

What if I say I am okay with using key having ansi key-code (like A or ])?

AFAIK the underlying system API used by MASShortcut does not allow you to detect keycode-less shortcuts (like Fn). You may take a look at SRShortcutRecorder and specifically its SRAXGlobalShortcutMonitor. Note that this API requires Accessibility Permission.

I have installed one app on my machine and one of its features works with long press Fn key and doesn't ask for accessibility permission. Not sure how are they doing it. Need to investigate more on this.

As of ability to detect holds: neither MASShortcut nor SRShortcutRecorder supports it. That's an interesting feature though, please create an issue and detail your use-case.

Can you pl tell me what more details you need? My use-case is that I want to toggle a feature of my app when a user presses and holds a key instead of just pressing once. That's all.

Not sure how are they doing it. Need to investigate more on this.

If you only need to know when Fn is pressed and not prevent / alter how other apps see it, I think NSEvent. addGlobalMonitorForEvents should be sufficient to get notified when modifier flags change and act accordingly.

My use-case is that I want to toggle a feature of my app when a user presses and holds a key instead of just pressing once.

Whether you need to toggle a keycode+modifier or modifier-only combination
Whether you need run loop (as in RunLoop) to be blocked for the duration of the hold
Whether you need to prevent other apps from seeing the event

If you answers are "modifier-only", "not blocking" and "no" then I'd use the API I mentioned above to set up a Timer or DispatchSourceTimer.

@Kentzo Thanks for help!
@rampatra Don’t forget about System Preferences which may intercept fn:


configurable baseDir, and different directory for bastion versus node

Allow the baseDir setting to be changed through the .conf file, and allow the baseDir on the bastion to be different from the baseDir on the nodes...

@mieslep +1 on this future request, even i require to change baseDir due to some permission on customer machine so let's make it configurable via .conf file if possible.


Migrated to null safety version

approved but not yet merged?

approved but not yet merged?

Waiting on maintainer!


Write a Python program to find area of a rectangle

Description
Write a Python program to find area of a rectangle
Area of rectangle = Length × Width
Length : 2
Width  : 3

Area : 6

How to contribute

Save the solution in program/find-area-of-a-rectangle.py file
Add find-area-of-a-rectangle.py file in find-area-of-a-rectangle folder

!assign

!unassign

Hey @Shambu-K
There is no command !unassign right now, but you can remove your assignment manually

!assign

Hey @Shambu-K, this issue is already assigned to @Shambu-K !!!
Please choose another issue.
Thanks for your interest in contributing to this project.


Implement search by content

Using the textbox, we should be able to search the content of each applicant document for specified text.
Items to Research

[x] How search by text works in MongoDB. My understanding is you can index which fields should be searchable (look up Mongo's docs on indexing) and you can use the special "$text" key to find matching fields.
[x] The risk of a performance hit indexing too many things for search. If there is a problem, we should prioritize searching by history fields and address.

Action Items

[x] Add necessary indexing to allow search by text in the database. This requires using the mongo shell in the terminal and connecting to the db.
[x] Create an Express endpoint that

Accepts a search phrase as a param
Queries mongo with a try / catch block to search for that phrase on all fields indexed for searching
Returns a list of matching applicants in userData

[x] Fire a call to the endpoint using axios whenever text is entered (or whenever a "submit" button is clicked to make the UI easier to implement). This query should be added to AdminDash/queries.js and be called from AdminDash/ApplicantList.jsx.
[x] Update the state in AdminDash/index.js with the users passed back from the API call.

Items for the future

Global search is nice, but what is the applicants returned include some matches you didn't want to see? Like searching for a name and receiving some address matches? It would be nice to add a dropdown where the user can select which fields they want to search by.

All done.


TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.
If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.
If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/89129

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/89730

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/105212

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/114791

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/121724


Vertical alignment distribution of data fix

Changelog Description
Adjusted vertical alignment and distribution of data in the code to ensure proper handling and organization of clip metadata.
Testing notes:

Set your testing project timeline to have multiple tracks
rename those track to be P01, P02, P02
add some clip to P01
add other shorter clips to other tracks above and make sure their duration is not longer than clip in P01 and its full framerange is between IN and OUT of P01
select all clips and open Creator,
Set vertical alignment to active
Set hero track to P01
Create and notice all clips were renamed to the same name and all instances are having the same clip name.

Just to be sure, is this one fixing #12 or is it something else ?

Just to be sure, is this one related to #12 or is it something else ?

yes, only partly.


Update chainguard-dev/actions to latest commit

One of the commit shas referenced a 2 year old commit, which caused CI to fail since it used a deprecated action.

Summary

Release Note

Documentation

@cpanato Do you think you could add release tags for this repo so dependabot can pick up updates?

I will review that and see what we can do


Repository contains redundant sample_setup.yml

In ansible_collections/ibm/ibmmq, we have the file

sample_setup.yml

which is completely redundant, as the MQ install and setup is performed by

ibmmq.yml

Worse, this seems to have become confused in #71, since the "getconfig" role is essential to run the dev-config.mqsc file successfully. (It must be copied to the target machine before running).
However, the sample_setup contains the role "setupenvironment", which implements additional settings for AIX installation.

[ ] sample_setup.yml should be removed
[ ] The setupenvironment role should be merged into the mqinstall.yml playbook as appropriate to allow AIX installation.

Its an easy change, but I need to know and do the following:

[ ] How to set up an AIX, RedHat or Windows VM for testing the adjusted "mq-install.yml"
[ ] Whether mq-winstall.yml is required. This appears to be another superfluous file at first glance.
[ ] Ensure that all playbook tests pass - we must do this when merging any changes


Adapt to renamings

@Groebehavn, @VX792 I will merge this, as the current master is not compatible with the other repos
Feel free to comment issues afterwards, which I will fix in a later PR


One change to match the Stack profile

Updating the profile that was generated for "2017-03-09" to match the versions as enumerated by the CLI defintion, which can be found here:
https://github.com/Azure/azure-cli/blob/3abcc80788f3e21d00d40c60fda43c3ff6754e5c/src/azure-cli-core/azure/cli/core/profiles/_shared.py#L67

Thanks you for your contribution to the Azure-SDK-for-Go! We will triage and review it as quickly as we can.
As part of your submission, please make sure that you can make the following assertions:

[x] I'm not making changes to Auto-Generated files which will just get erased next time there's a release.

If that's what you want to do, consider making a contribution here: https://github.com/Azure/autorest.go

[x] I've tested my changes, adding unit tests where applicable.
[x] I've added Apache 2.0 Headers to the top of any new source files.
[x] I'm submitting this PR to the dev branch, or I'm fixing a bug that warrants its own release and I'm targeting the master branch.
[x] If I'm targeting the master branch, I've also added a note to CHANGELOG.md.
[x] I've mentioned any relevant open issues in this PR, making clear the context for the contribution.

There's a lot of noise in this PR due to #843, but the change itself is really just a different API Version of storage being targeted.


Cpanel redirect /cgi-sys/defaultwebpage.cgi mean website is DOWN, but uptime-kuma is UP

⚠ Please verify that this feature request has NOT been suggested before.

[X] I checked and didn't find similar feature request

🏷 Feature Request Type
UI Feature
🔖 Feature description
When website redirect to /cgi-sys/defaultwebpage.cgi mean website is DOWN, but uptime-kuma is UP

is had been from cpanel hosting when stop or something happen.
I had edit max-redirect to 0 but still up

✔ Solution
I want have any way to check if website redirect to cgi-sys/defaultwebpage.cgi  and alert DOWN,
We can contact to hosting provider and fix it
❓ Alternatives
No response
📝 Additional Context
No response

Cannot reproduce this.
The site https://nav.tum.sexy (redirecting to https://nav.tum.de with a permanent redirect) is displayed like this.

Could you share further details on what kind of status code is delivered if the website is down?

if the down status code falls in the 200 range, I would recomend using the HTTP - Keyword monitor instead:

@CommanderStorm thank you so much for reply,
my website is https://giavihuyentrang.com/
is redirect to https://giavihuyentrang.com/cgi-sys/defaultwebpage.cgi

The site answers with a

=> given that this is a 200 exit code, there is nothing we can do.
HTML parsing and finding this meta-tag is something that should be out of scope for an uptime monitor...
Do you agree?
I would suggest to monitor for this via the Keyword uptime monitor as described above.

@CommanderStorm thank you so much, I very surprise when you care my case.
Can you help me setup keyword for this case?
I want both normal and this case in all my domain, because I using cpanel in almost website

@CommanderStorm thank you so much,
I think website using wordpress and Cpanel is very large.
Can you consider an feature like Cpanel checkbox, when checkbox is true, it will check

and return DOWN

wordpress and Cpanel is very large

I dont believe that this meta tag is widely used.
Wordpress does deliver 301/309 redirects.
Cpanel also does support these redirects.
I have looked into if adding a regex to support http-equiv="refresh" would be possible.
I have come to the conclusion that this would be very messy.
A Regex would need to handle:

whitespace anywere
case-indifference, except in the url
supporting ' and "
supporting both orderings of http-equiv="refresh" and content

=> Adding such a feature would also be breaking for other users.
=> Adding such a feature would add much more complexity around here https://github.com/louislam/uptime-kuma/blob/f2633a5d0163b898b8214bb1308e76e359a425c6/server/model/monitor.js#L287
=> given that axios (the http library) does not support this legacy feature from the netscape days, I don't think we should add an extra component to address this.

@CommanderStorm thank you so much for your research.
But please find a way, if have 50 site on cpanel, if do not have any option, I must re add 50 website duplicate,
it mean, every website cpanel, we must add twice per address

if have 50 site on cpanel, if do not have any option, I must re add 50 website duplicate, it mean, every website cpanel, we must add twice per address

I don't fully understand what you mean. Editing the monitor type does not require recreation, nor duplicates

if we using keyword
When uptimekuma read my site it will find keyword ""
if not have it will return up it is ok.
but if my site down for other reason, keyword "meta refresh"  will not found and uptimekuma will return UP
May I misunderstood?

I don't understand what you are trying to communicate.
You said that http-equiv="refresh" being in the requst is how the site indicates it is down.
=> What other states are there?
=> One healthcheck should monitor for exactly one failiour case.
Otherwise, you won't know what you need to debug.

sorry, I will send example, it will be easy.
here is my website but I had point to other server down and result still UP
https://giavihuyentrang.com/

It mean, keyword only work if server is working, it server not working, It will be wrong

Your host not responding should be checked via a different health check.

I think you should not check <meta http-equiv="refresh" in the first place, let me suggest a simpler way.
You should specific positive words which are existing on your homepage. Since your website is inaccessible right now, I assume that there are words - Hello! This is my website!.
Monitor Config:
URL: https://giavihuyentrang.com
Monitor Type: HTTPS(s) - Keyword
Keyword: Hello! This is my website!
In this way:
UP = Found the keyword
DOWN = Other possibilities (Include Cloudflare error and cpanel error)

@CommanderStorm
Yes, I think we using uptime for health check and if user using Cpanel, user must using 2 type http normal and  http keyword, it mean every website we have duplicate, and it so take time :(, I wish have option for health check and Cpanel in my case.
@louislam thank you hero, I think your way is a good way, But with 50 site it will be more complex :(, and hard to check website we not owner.
I understand that only way to do now.
thank both :)
Can I contribute a feature, a checkbox below advance option name is "Cpanel support" and it will check body, I don't know how to do, but I will try

@CommanderStorm hello, If I using keyword, result do not have ping response :( so sad

I do not understand what you are trying to telling me.
I have already send a working screenshot.
Louis has also said that monitoring for positive keywords is probably better approach than negative keywords, which I agree.
Btw: You might want to use deepl.com to make your points clearer.


Update left nav bar of living whitepaper

Items under Rates and amounts in https://developer.thenewboston.com/whitepaper/principal-events are either events, nor processes. The left-nav bar becomes too long for only a few lines of text per section.
I believe it does not have design implications as a fix -- it's more a conceptual issue and can be an easy fix for FE.  So can we get rid of the left-nav bar items in the rectangle?

Rates & Amounts are not processes either, but it's ok to place them there I believe. If we keep the existing design the left-nav bar feels too long for just 1-2 lines of text under most of these items.

cc: @manishram


build error on windows

Brief description of your issue
After pulling the latest code, now it doesn't compile.
Steps to reproduce (optional)

Clone this repo
Pull the latest code
Run .\build\build_release.cmd,
The following error occurs(C2220):

This issue was introduced by commit 2b38069d3de587bbc49285396cd7d90bcef3ae10, line 725
https://github.com/winsiderss/systeminformer/commit/2b38069d3de587bbc49285396cd7d90bcef3ae10?diff=split#diff-7ac1cdaada00d2d50932f4417c6c64a6827599da29cd46ab24fa856ef3b71a4dR725
Expected behavior (optional)
Compile normally
Actual behavior (optional)
Compilation failed
Environment (optional)
Latest code on master branch
Windows 11 x64 22H2 (22623.746)
Visual studio 2022 17.3.6

+1
indows: 10.0.22621.674 (WinBuild.160101.0800)
WindowsSDK: 10.0.22000.0 (17.3.32708.82)
VisualStudio: VisualStudio/17.3.6+32929.385
Building... 3.0.9908.5381 (48a2e28) [master]
[00:00] Building SystemInformer (x32)...
[ERROR] (1) C:\source\processhacker\phlib\kphcomms.c(726): error C2220: the following warning is treated as an error [C:\source\processhacker\SystemInformer\SystemInformer.vcxproj]C:\source\processhacker\phlib\kphcomms.c(726): warning C4789: buffer 'reply' of size 4 bytes will be overrun; 3280 bytes will be written starting at offset 0 [C:\source\processhacker\SystemInformer\SystemInformer.vcxproj]C:\source\processhacker\phlib\kphcomms.c(726): error C4789: buffer 'reply' of size 4 bytes will be overrun; 3280 bytes will be written starting at offset 0 [C:\source\processhacker\SystemInformer\SystemInformer.vcxproj]LINK : fatal error LNK1257: code generation failed [C:\source\processhacker\SystemInformer\SystemInformer.vcxproj]
Compiling in Debug mode works, in release it fails.

The branch was out of sync. Thanks, fixed 👍


NR-30287: --frozen-lockfile in all workflows

https://issues.newrelic.com/browse/NR-30287

Looks good, just noticed one missed spot in the release workflow

Good catch, I missed saving that file.  Added it in


Update DashBoardHttpClientBase GetDashboardsAsync

Per comments in Feedback 1629291, the project and team name must be specified when creating the TeamContext. Failure to specify both will result in empty results.

Docs Build status updates of commit 45d3b7c:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

azure-devops-dotnet/xml/Microsoft.TeamFoundation.Dashboards.WebApi/DashboardHttpClientBase.xml
:white_check_mark:Succeeded

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.


[NEW] App shows a register button on servers with "new user registration" option disabled

Your Rocket.Chat.Android version: 1.0.16
Some RC servers doesn't allow the new user registration on their systems (on the login screen), but the RC Android app always shows a register button.
The app should display the register button only accordingly with the server configuration.

Any updates on this? Really confusing for users.

@antgel We are working in a new Android app version (v2). In that version we'll honor that settings. I'd just ask you for a little more patience.

Starting from v2  this issue is already solved.


Add flag --confirm to lokoctl component delete

Right now when deleting the component it always asks for permission and there is no way to suppress it. So add flag similar as lokoctl cluster apply/destroy.

On it.


Consider simplifying Google instructions

The readme says to Setup Google sign-in.
Perhaps consider writing what to do, something brief, in simple terms, to get the users up-and-running quickly?
(And keep the link referencing Google sign-in.)

Done.  Commit 19d60df.


Is that possible to optimize structure from numerical graidents?

Hi,
I tried to optimize a molecule from NEVPT2 level
from pyscf import gto, scf, mcscf, mrpt
from pyscf.geomopt.geometric_solver import optimize

mf = gto.M(atom='N 0 0 0; N 0 0 1.4', basis='6-31g').apply(scf.RHF).run()
mc = mcscf.CASSCF(mf, 6, 6).run()
mrpt.NEVPT(mc).kernel()

mol_eq = optimize(mrpt, maxsteps=100)
print(mol_eq.atom_coords())

and got nuclear gradient not available information. Is that possible to optimize molecule based on numerical gradient?

@AssoliLan, as far as I know, we don't support numerical gradients out of the box. But having said that it shouldn't be too hard to implement (not necessarily efficiently, but still).
I'd take a look at this example, where you can define a custom function to calculate the energy and gradients at each step https://github.com/pyscf/pyscf/blob/1660abef6dd1e544bd7df42095db706d6d3ec755/examples/geomopt/02-as_pyscf_method.py#L16-L25
For your 1-D example you could even implement something like a stencil method to calculate the gradient. For 3-D structures, I think you could use something like scipy.optimize.approx_fprime, see the docs here. You could likely use scipy.optimize.approx_fprime for 1D too, but since I haven't used it before I wanted to mention the stencils which will definitely work.

Adding a few points to @jamesETsmith 's response:

You passed the mrpt module to the optimize() function, rather than an instance of a certain method (such as mf or mc).

Not all methods provide "analytic" gradients that can be used to perform geometry optimization. For example, DFT does, but NEVPT2 does not. So if you need NEVPT2 gradients, one option is to calculate the gradients numerically, along the lines @jamesETsmith suggested.


Don't set image.base.name if base is specified by digest

Based on conversation in https://github.com/google/go-containerregistry/pull/1098

Instead of doing this in two places, you could capture the resulting build.Result from this block (as a separate function): https://github.com/google/ko/blob/4ff83080866f8acd0aba662c628eb69b8f9b940d/pkg/build/gobuild.go#L866-L881
And then just mutate.Annotations it in one place.
This is possible because build.Result: https://github.com/google/ko/blob/a85cfeb2041e2635735bf35eca59ab82eed8ad14/pkg/build/build.go#L47-L53
Is compatible with mutate.Annotatable: https://github.com/google/go-containerregistry/blob/a65a0a616b77e0460c5b4b999d3afc346e2d21af/pkg/v1/mutate/mutate.go#L119-L121
And publishers will have to do the casting themselves downstream.

Man that's nice. Good call 👍


UIINREACH-134: INN-Reach In-app Report: Borrowing Site Stale Requests Report (Requested too Long)

… Report (Requested too Long)

yarn run v1.22.17
$ eslint ./ && stylelint "src/**/*.css"
/home/jenkins/workspace/folio-org_ui-inn-reach_PR-168/project/src/routes/transaction/TransactionListRoute.test.js
13:8    error  Strings must use singlequote  quotes
127:2    error  Missing semicolon             semi
265:122  error  Missing semicolon             semi
273:131  error  Missing semicolon             semi
279:5    error  Missing semicolon             semi
✖ 5 problems (5 errors, 0 warnings)
5 errors and 0 warnings potentially fixable with the --fix option.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.


ng-mocks with Jest - coverage report

Great tool! Works very well.
We use ng-mocks with Jest. Jest provides a lot of great possibilities: snapshot testing, many additional matchers etc.
But there is maybe one small imperfection. Mocked components show up in the coverage report. Is there any way to stop this?
That would be great!
Thanks a lot!
Carsten

Hi,
thanks for the report. Might you provide a simple repo with the issue?
Also might you explain the idea to hide them a bit deeper?
I would assume that this behavior is expected. If there are 2 components in an app, and tests have been written only for one of them, then the second one has 0 coverage because of zero own tests. In the same time, because there is the dependency between components - both of them should be imported in tests and both of them will be present in the coverage report.
If you want to exclude these components on a purpose, I would go for something like https://jestjs.io/docs/configuration#coveragepathignorepatterns-arraystring

Test:
@Component({   selector: 'my-panel-container',   template: Content `
})
class MyTestComponent {}
describe('The LayoutPanel,', () => {
let component: MyTestComponent;
let fixture: ComponentFixture;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [
LayoutPanel,
MyTestComponent,
...MockComponents(QdTabComponent)
]
}).compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(MyTestComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
test('matched the snapshot.', () => {
expect(fixture.nativeElement).toMatchSnapshot();
});
});
`

Works for me correctly. When I run all tests I get 100%, when I run partially - I get partial coverage.

> jest -w 1 --config jest.es5ivy.js "--collect-coverage"

 PASS  src/app/to-mock.component.spec.ts
 PASS  src/app/layout-panel.component.spec.ts
---------------------------|---------|----------|---------|---------|-------------------
File                       | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
---------------------------|---------|----------|---------|---------|-------------------
All files                  |     100 |      100 |     100 |     100 |
 layout-panel.component.ts |     100 |      100 |     100 |     100 |
 to-mock.component.ts      |     100 |      100 |     100 |     100 |
---------------------------|---------|----------|---------|---------|-------------------

Test Suites: 2 passed, 2 total
Tests:       2 passed, 2 total
Snapshots:   0 total
Time:        3.223 s
Ran all test suites.

Hi @Carsten750,
any update on this?

Hi @Carsten750,
I'm going to close the issue. I think, the case you need is covered in my previous comment.
Feel free, to drop a comment if we should discuss it further.
Happy coding!


add minimal rspamd setup for DKIM signing and validating SPF, DKIM, and DMARC

[x] Disable rate limiting again
[x] Get cmdeploy dns to print out the DKIM output without opendkim-genzone
[x] Get DKIM signing working again
[x] Reject emails which don't have a valid DKIM signature, SPF record, or don't pass a DMARC check.

Currently it already applies greylisting to emails with missing DKIM signatures, but if you retry the test after a while, it suddenly comes through again. I think we need to raise the weight of R_DKIM_REJECT, R_DKIM_TEMPFAIL, and R_DKIM_NA to reach the threshold where mails are simply rejected.

We might want to completely disable BAYES statistical analysis; right now it seems that it's skipped anyway:
2023-12-27 12:42:29 #1789021(normal) <bb5d02>; task; rspamd_redis_connected: skip obtaining bayes tokens for BAYES_HAM of classifier bayes: not enough learns 0; 200 required
2023-12-27 12:42:29 #1789021(normal) <bb5d02>; task; rspamd_redis_connected: skip obtaining bayes tokens for BAYES_SPAM of classifier bayes: not enough learns 0; 200 required
2023-12-27 12:42:29 #1789021(normal) <bb5d02>; task; rspamd_stat_classifiers_process: skip statistics as SPAM class is missing

And this PR might break mailing lists, I didn't take a proper look at that yet. ARC might help with that, maybe automatically.

If I understand it correctly, requiring valid DKIM also protects us against SMTP smuggling.

We might want to completely disable BAYES statistical analysis; right now it seems that it's skipped anyway:

Do we even need redis then?

not sure what it has to do with disabled BAYES; but with disabled rspamd rate limit, actually I think we don't need it. I'll remove it.


KAFKA-9984 Should fail the subscription when pattern is empty

Ticket: KAFKA-9984
It indicates a configuration error when consumer subscribes an empty pattern:

[Consumer ...  ] Subscribed to pattern:  ''

The consumer.subscribe(pattern) call should fail with illegal argument for this case.

Retest this please.

Thanks for the fix @zhaohaidao! Merged to trunk.


keypress example doesn't work in firefox

The keypress example just prints 0 for every keypress. Not quite sure if there is a way to fix this (in the 5 minutes I have right now I couldn't find out which js function it was calling). If there is it has to be in ghcjs-dom, but until this is fixed there should be a notice that this does not work in firefox.

Looks like keyPress is deprecated (maybe it got completely removed in firefox nightly) and key should be used instead which is unimplemented …

Hi @cocreature,
You're right that keypress has been deprecated by W3C, but it is still supported by all major browsers (including their bleeding edge versions). I don't think any browser has dropped support for it yet.
I just tried this out on the latest Firefox nightly build and it appears to be working as expected:
import Reflex
import Reflex.Dom

main = mainWidget $ el "div" $ do
  t <- textInput def
  text "Last key pressed: "
  let keypressEvent = fmap show $ _textInput_keypress t
  keypressDyn <- holdDyn "None" keypressEvent
  dynText keypressDyn

You can try it out here.

Sorry I completely forgot about this one, your example works perfectly thanks


Add AnthropicGenerator

Is your feature request related to a problem? Please describe.
Anthropic models are widely used. We should support them in 2.0.
Describe the solution you'd like
Generator similar to the Anthropic support in 1.x
### Tasks
- [ ] The code is documented with docstrings and was merged in the `main` branch
- [ ] Docs are published at https://docs.haystack.deepset.ai/
- [ ] There is a Github workflow running the tests for the integration nightly and at every PR
- [ ] A label named like `integration:<your integration name>` has been added to this repo
- [ ] The [labeler.yml](https://github.com/deepset-ai/haystack-core-integrations/blob/main/.github/labeler.yml) file has been updated
- [ ] The package has been released on PyPI
- [ ] An integration tile has been added to https://github.com/deepset-ai/haystack-integrations
- [ ] The integration has been listed in the [Inventory section](https://github.com/deepset-ai/haystack-core-integrations#inventory) of this repo README
- [ ] There is an example available to demonstrate the feature
- [ ] The feature was announced through social media

@mathislucka can you provide me with some kind of starting point, about the minimal interface that is required for this?

@sahusiddharth I can have a look later today and point to the right resources/examples.
It is necessary that you have access to Anthropic to do local experiments. Do you have access to Anthropic?

Hi @anakin87, currently I don't have access. Would you mind sharing an API key for experimentation in the meantime? Thanks!

Anthropic is only available for some countries, so I can't share with you a usable API key.
I would advise you to focus on some other contribution. :heart_decoration:

The issue was a bit prematurely closed. The only two remaining tasks (as of 18.3.24) are publishing the docs and social media announcement


Fix for IP backdoor to DEFENDER_LOCK_OUT_BY_IP_AND_USERNAME

patching https://github.com/jazzband/django-defender/issues/188, first committing changes to test that should fail, then will squash with fixing changes

looks like test workflow requires approval. I can't easily get these tests to run locally despite guidance provided in readme. First issue was adding django contrib message middleware to test settings to get it to run in the first place. Then nearly 2/3 of the tests failed, and I gave up, relying on workflows here. I would really like to see the change to the test fail before committing the fix, but I'm not sure how long it'll take for a maintainer to approve.

modification to tests failed where expected, squashed changes with fix to resolve updated test


can you explain this to me, is this dangerous for my wallet

This means that you will sign a message to login to their platform, normally this type of authentication is used in systems that need to create a user for you to use the platform but do not want to have access to your personal data.
It works just like Metamask when you log into games on the blockchain, basically it doesn't leave your wallet vulnerable since for any type of transaction or utility of the kind you need to confirm it using your password first!
Basically, it is used so that you can "login" with your wallet and maintain extra security in the process, ensuring that you will always be the owner of the wallet that is accessing the system.
Sorry, I don't know if this answer helped you, but at least that's how I use message signing in my system!


NSNotification observing on specific queue implemented.

NSNotification observing on specific queue implemented.

@swift-ci please test


[#release] prepare for 2.0.4-SNAPSHOT

2.0.3 -> 2.0.4-SNAPSHOT

Codecov Report

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

@@            Coverage Diff             @@
##           master    #6912      +/-   ##
==========================================
- Coverage   39.26%   39.24%   -0.02%
==========================================
  Files        3223     3223
  Lines       95319    95319
  Branches    11884    11884
==========================================
- Hits        37426    37411      -15
- Misses      54905    54919      +14
- Partials     2988     2989       +1

Impacted Files
Coverage Δ

...rp/pinpoint/rpc/control/ControlMessageDecoder.java
64.28% <0.00%> (-14.29%)
:arrow_down:

.../pinpoint/rpc/client/PinpointClientHandshaker.java
60.00% <0.00%> (-6.43%)
:arrow_down:

...rc/main/java/com/navercorp/pinpoint/test/Item.java
70.00% <0.00%> (-3.34%)
:arrow_down:

...tor/metric/datasource/DefaultDataSourceMetric.java
75.00% <0.00%> (-3.13%)
:arrow_down:

...java/com/navercorp/pinpoint/rpc/DefaultFuture.java
72.50% <0.00%> (-1.67%)
:arrow_down:

...navercorp/pinpoint/rpc/common/SocketStateCode.java
85.36% <0.00%> (+2.43%)
:arrow_up:

...pc/server/LoggingServerMessageListenerFactory.java
100.00% <0.00%> (+10.00%)
:arrow_up:

...p/pinpoint/rpc/client/WriteFailFutureListener.java
75.00% <0.00%> (+18.75%)
:arrow_up:

Continue to review full report at Codecov.

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


ActionView::Template::Error: undefined method `article_follows_path' for #<#Class:0x007f7f6a8b3710:0x007f7f6514b860>
Did you mean?  case_follows_path

View details in Rollbar: https://rollbar.com/trystant/BOW/items/649/

NoMethodError: undefined method `article_follows_path' for #<#<Class:0x007f7f6a8b3710>:0x007f7f6514b860>
Did you mean?  case_follows_path
  File<EMAIL_ADDRESS>line 30, in method_missing
  File "/Users/marnyon/code/EBWiki/app/views/cases/_button_group.html.erb", line 10, in _app_views_cases__button_group_html_erb___1589433300251427197_70092659906140
  File<EMAIL_ADDRESS>line 145, in block in render
  File<EMAIL_ADDRESS>line 164, in block in instrument
  File<EMAIL_ADDRESS>line 20, in instrument
  File<EMAIL_ADDRESS>line 164, in instrument
  File<EMAIL_ADDRESS>line 333, in instrument
  File<EMAIL_ADDRESS>line 143, in render
  File<EMAIL_ADDRESS>line 339, in render_partial
  File<EMAIL_ADDRESS>line 310, in block in render
  File<EMAIL_ADDRESS>line 39, in block in instrument
  File<EMAIL_ADDRESS>line 164, in block in instrument
  File<EMAIL_ADDRESS>line 20, in instrument
  File<EMAIL_ADDRESS>line 164, in instrument
  File<EMAIL_ADDRESS>line 39, in instrument
  File<EMAIL_ADDRESS>line 309, in render
  File<EMAIL_ADDRESS>line 51, in render_partial
  File<EMAIL_ADDRESS>line 35, in render
  File<EMAIL_ADDRESS>line 12, in render_with_haml
  File "/Users/marnyon/code/EBWiki/app/views/cases/show.html.erb", line 31, in _app_views_cases_show_html_erb__195944393774353218_70092566712120
  File<EMAIL_ADDRESS>line 145, in block in render
  File<EMAIL_ADDRESS>line 164, in block in instrument
  File<EMAIL_ADDRESS>line 20, in instrument
  File<EMAIL_ADDRESS>line 164, in instrument
  File<EMAIL_ADDRESS>line 333, in instrument
  File<EMAIL_ADDRESS>line 143, in render
  File<EMAIL_ADDRESS>line 54, in block (2 levels) in render_template
  File<EMAIL_ADDRESS>line 39, in block in instrument
  File<EMAIL_ADDRESS>line 164, in block in instrument
  File<EMAIL_ADDRESS>line 20, in instrument
  File<EMAIL_ADDRESS>line 164, in instrument
  File<EMAIL_ADDRESS>line 39, in instrument
  File<EMAIL_ADDRESS>line 53, in block in render_template
  File<EMAIL_ADDRESS>line 61, in render_with_layout
  File<EMAIL_ADDRESS>line 52, in render_template
  File<EMAIL_ADDRESS>line 14, in render
  File<EMAIL_ADDRESS>line 46, in render_template
  File<EMAIL_ADDRESS>line 27, in render
  File<EMAIL_ADDRESS>line 100, in _render_template
  File<EMAIL_ADDRESS>line 217, in _render_template
  File<EMAIL_ADDRESS>line 83, in render_to_body
  File<EMAIL_ADDRESS>line 32, in render_to_body
  File<EMAIL_ADDRESS>line 37, in render_to_body
  File<EMAIL_ADDRESS>line 25, in render
  File<EMAIL_ADDRESS>line 16, in render
  File<EMAIL_ADDRESS>line 44, in block (2 levels) in render
  File<EMAIL_ADDRESS>

This is due to development and can be closed.


NaN values for several points & normals during preprocessing of mesh

Greetings, some of the vertice coords and normal coords fetched after the virtual rendering of the mesh preprocessing executable have the value of (NaN, NaN, NaN).
Is this expected due to not enough 'watertightness' of mesh?
I am starting to think that my #version 120 implementation of the shaders are faulty:
@start vertex
#version 120

attribute vec3 vertex;
varying vec4 position_world;
varying vec4 position_camera;
varying vec3 viewDirection_camera;

uniform mat4 MVP;
uniform mat4 V;

void main(){

    // Projected image coordinate
    gl_Position =  MVP * vec4(vertex,1.0);

    // world coordinate location of the vertex
    position_world = vec4(vertex,1.0);
    position_camera = V * vec4(vertex, 1.0);

    viewDirection_camera = normalize(vec3(0.0,0.0,0.0) - position_camera.xyz);
}

@start geometry
#version 120
#extension GL_EXT_geometry_shader4 : enable

varying vec4 position_world[];
varying vec3 viewDirection_camera[];

varying vec3 normal_camera;
varying vec3 normal_world;
varying vec4 xyz_world;
varying vec3 viewDirection_cam;
varying vec4 xyz_camera;
varying float primitiveID;

uniform mat4 V;

void main() {
    vec3 A = position_world[1].xyz - position_world[0].xyz;
    vec3 B = position_world[2].xyz - position_world[0].xyz;
    vec3 normal = normalize(cross(A,B));
    vec3 normal_cam = (V * vec4(normal,0.0)).xyz;

    gl_Position = gl_PositionIn[0];
    normal_camera = normal_cam;
    normal_world = normal;
    xyz_world = position_world[0];
    xyz_camera = V * xyz_world;
    viewDirection_cam = viewDirection_camera[0];
    primitiveID = gl_PrimitiveIDIn;
    EmitVertex();

    gl_Position = gl_PositionIn[1];
    normal_camera = normal_cam;
    normal_world = normal;
    xyz_world = position_world[1];
    xyz_camera = V * xyz_world;
    viewDirection_cam = viewDirection_camera[1];
    primitiveID = gl_PrimitiveIDIn;

    EmitVertex();

    gl_Position = gl_PositionIn[2];
    normal_camera = normal_cam;
    normal_world = normal;
    xyz_world = position_world[2];
    xyz_camera = V * xyz_world;
    viewDirection_cam = viewDirection_camera[2];
    primitiveID = gl_PrimitiveIDIn;

    EmitVertex();
    EndPrimitive();
}

@start fragment
#version 120

varying vec3 viewDirection_cam;
varying vec3 normal_world;
varying vec3 normal_camera;
varying vec4 xyz_world;
varying vec4 xyz_camera;
varying float primitiveID;

uniform vec2 slant_thr;
varying vec4 ttt;
uniform mat4 V;
uniform mat4 ToWorld;

bool isnan( float val )
{
  return ( val < 0.0 || 0.0 < val || val == 0.0 ) ? false : true;
  // important: some nVidias failed to cope with version below.
  // Probably wrong optimization.
  /*return ( val <= 0.0 || 0.0 <= val ) ? false : true;*/
}

void main(){
    vec3 view_vector = vec3(0.0,0.0,1.0);
//    vec3 view_vector = normalize(vec3(0.0,0.0,1.0) - xyz_camera.xyz);
    vec4 test = vec4(0.0,0.0,0.0,1.0);

    // Check if we need to flip the normal.
    vec3 normal_world_cor;// = normal_world;
    float d = dot(normalize(normal_camera), normalize(view_vector));

    if (abs(d) < 0.001) {
        gl_FragData[0] = vec4(0.0,0.0,0.0,0.0);
        gl_FragData[1] = vec4(0.0,0.0,0.0,0.0);
        gl_FragData[2] = vec4(0.0,0.0,0.0,0.0);
        return;
    } else {
        if (d < 0) {
            test = vec4(0,1,0,1);
            normal_world_cor = -normal_world;
        } else {
            normal_world_cor = normal_world;
        }

        gl_FragData[0] = xyz_world;
        gl_FragData[0].w = primitiveID + 1.0f;

        gl_FragData[1] = vec4(normalize(normal_world_cor),1);
        gl_FragData[1].w = primitiveID + 1.0f;

    }

}

Any help would be appreciated.

I re-implemented the preprocessMesh application integrating glfw & glew in order to be able to use #version 330 core for my shaders. Works as expected.


Detached Fork

FYI.  A common way to find an active version of a library is to look at the "fork" tree.  This package isn't attached so even I sometimes have trouble finding it.  I imagine you detached it intentionally, but I'd like to at least draw attention to one big disadvantage.

The problem was that the original drf-hal-json is built on top of https://github.com/seebass/drf-nested-fields which we did not need for our purposes here. It's unnecessary to couple both together. So we stripped it out, essentially creating this fork without any intention of merging it back.

I guess I never missed the features in that package to notice.  Then can we rename the package (to completely detach) and get a build by the same name on PyPi?


SSL Error when accessing certain sites

SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert internal error:s23_clnt.c:734
Investigate why that error is being returned for some sites.

Haven't been able to reproduce, closing.


AWS pod-to-pod connectivity issue when using Jumbo packets

Bug
Environment

Platform: aws
OS: container-linux, flatcar-linux

Problem
The CoreOS and Flatcar Container Linux stable image 1745.4.0 has an issue where interfaces on AWS instances supporting Jumbo packets come up with an MTU 1500 instead of 9001. See https://github.com/coreos/bugs/issues/2443
Impact
Anyone opting to use the network_mtu = 8991 optimization for higher pod to pod bandwidth (on EC2 instances that support it) will notice pod to pod connectivity issues. Prometheus will alert that the controller manager and scheduler or other components appear down because they can't be reached. Grafana may be unable to reach Prometheus. Any workloads that required intra-cluster connectivity may be impacted.
In my tests, a few packets can still make it through sometimes, so you may kinda see some traffic. But even then, its a trickle and connectivity is severely degraded.
Mitigation
In the immediate term, create AWS cluster without the network_mtu = 8991 optimization (i.e. just use the Typhoon default 1500). You won't get the performance optimization or be using Jumbo packets, but this is a safe default across all EC2 instance types.
If you don't have workloads relying on intra-cluster connectivity, you could maybe leave your cluster to hobble along until an auto-update to Container Linux 1745.x.y is available.
Besides that, we await an upstream fix to the image.

This should be fixed in alpha 1786.2.0, beta 1772.2.0, and stable 1745.5.0, due shortly

CoreOS folks found its a regression in the kernel. They're carrying a revert and Container Linux will get updated shortly. Flatcar folks will likely pick that up as well cc @dongsupark
Discussions:

https://github.com/coreos/bugs/issues/2443
https://github.com/systemd/systemd/issues/9102

@dghubble Thanks for the info! :+1:

New Container Linux images are out :raised_hands:


[feature request] i18n

Hello. Please provide an ability to pass an object with translation to another language. I see that we can customize the search placeholder now, but i don't see how i can translate categories properly. Thank you.

Hello, Thank you for contributing request for features!  I intend to bring this in the next version!

There is no show/hide prop? Thanks


V3 rolemenu

This is here for visibility. The issue resides here

Forgot to close this. Fixed in 52024623


Every time i open this song (no source code)

Describe your bug here.
I have no clue, every time i play this song it does this error
Command Prompt/Terminal logs (if existing)
Song.hx (line 141)
Song.hx (line 132)
PlayState.hx (line 3864)
PlayState.hx (line 3736)
flixel/util/FlxTimer.hx (line 195)
flixel/util/FlxTimer.hx (line 285)
flixel/FlxGame.hx (line 745)
flixel/FlxGame.hx (line 677)
flixel/FlxGame.hx (line 551)
openfl/events/EventDispatcher.hx (line 402)
openfl/display/DisplayObject.hx (line 1399)

Uncaught Error: Null Object Reference
Please report this error to the GitHub page: https://github.com/ShadowMario/FNF-PsychEngine

> Crash Handler written by: sqirra-rng

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.

provide files, something seems to be wrong with your week or chart

imagine using pico-speaker

imagine using pico-speaker

not a pico-speaker problem


Cache testdata download

Caching test data now to speed up repeated bootstrap

LGTM, note that this won't expire the cache if testdata is updated.
In that regard we're at the level of functionality the old scripting provided.


Chore: form table

Beginning of a refactor to consolidate data for each form into a single form_change record.

A note on the Happo diffs--this PR fixed some inconsistencies and bugs in the tasklist statuses but there are still some outstanding. I've recorded them here: https://github.com/bcgov/cas-cif/issues/1032


generate_net() issue

Hi,
I cannot generate the model for both the deeplab3+ and seam experiments. For the seam's deeplabv1-ResNet38d, it always shows the following error message: The mxnet keeps raising the "get_last_ffi_error()" and then it goes to the "/home1/wangyude/project/SEAM/models/ilsvrc-cls_rna-a1_cls1000_ep-0001.params" for parameters, although, I have defined my own path for model parameters in the config. Can you please help me with this?
/students/u6617221/Models/semantic-segmentation-codebase/ilsvrc-cls_rna-a1_cls1000_ep-0001.params       False
Traceback (most recent call last):
File "train.py", line 162, in
train_net()
File "train.py", line 53, in train_net
net = generate_net(cfg, batchnorm=nn.BatchNorm2d)
File "/students/u6617221/Models/semantic-segmentation-codebase/lib/net/generateNet.py", line 15, in generate_net
net = NETS.get(cfg.MODEL_NAME)(cfg, **kwargs)
File "/students/u6617221/Models/semantic-segmentation-codebase/lib/net/deeplabv1.py", line 20, in init
self.backbone = build_backbone(self.cfg.MODEL_BACKBONE, pretrained=cfg.MODEL_BACKBONE_PRETRAIN, norm_layer=self.batchnorm, **kwargs)
File "/students/u6617221/Models/semantic-segmentation-codebase/lib/net/backbone/builder.py", line 8, in build_backbone
net = BACKBONES.get(backbone_name)(pretrained=pretrained, **kwargs)
File "/students/u6617221/Models/semantic-segmentation-codebase/lib/net/backbone/resnet38d.py", line 270, in resnet38
weight_dict = convert_mxnet_to_torch(model_url)
File "/students/u6617221/Models/semantic-segmentation-codebase/lib/net/backbone/resnet38d.py", line 219, in convert_mxnet_to_torch
save_dict = mxnet.nd.load(filename)
File "/students/u6617221/.local/lib/python3.6/site-packages/mxnet/ndarray/utils.py", line 175, in load
ctypes.byref(names)))
File "/students/u6617221/.local/lib/python3.6/site-packages/mxnet/base.py", line 246, in check_call
raise get_last_ffi_error()
mxnet.base.MXNetError: Traceback (most recent call last):
[bt] (2) /students/u6617221/.local/lib/python3.6/site-packages/mxnet/libmxnet.so(MXNDArrayLoad+0x222) [0x7f46b0114282]
[bt] (1) /students/u6617221/.local/lib/python3.6/site-packages/mxnet/libmxnet.so(+0x78dd01a) [0x7f46b13fa01a]
[bt] (0) /students/u6617221/.local/lib/python3.6/site-packages/mxnet/libmxnet.so(+0x78e5521) [0x7f46b1402521]
File "src/io/local_filesys.cc", line 209
LocalFileSystem: Check failed: allow_null: :Open "/home1/wangyude/project/SEAM/models/ilsvrc-cls_rna-a1_cls1000_ep-0001.params": No such file or directory

@Carlisle-Liu
Replace the pretrain model address here
https://github.com/YudeWang/semantic-segmentation-codebase/blob/995b8fa9d6b08e3ff1f15a7aef2ce5445deaa834/lib/net/backbone/resnet38d.py#L7

@Carlisle-Liu
Replace the pretrain model address here
https://github.com/YudeWang/semantic-segmentation-codebase/blob/995b8fa9d6b08e3ff1f15a7aef2ce5445deaa834/lib/net/backbone/resnet38d.py#L7

@YudeWang
Thank you for the reply.
After changing the weight path, it raises "_pickle.UnpicklingError: invalid load key, '\x12'." as shown below. I downloaded the weight "ilsvrc-cls_rna-a1_cls1000_ep-0001.params" from your SEAM repository (https://github.com/YudeWang/SEAM). Does it mean the model and the weight do not match?
Traceback (most recent call last):
File "train.py", line 162, in
train_net()
File "train.py", line 55, in train_net
net.load_state_dict(torch.load(cfg.TRAIN_CKPT),strict=True)
File "/students/u6617221/.local/lib/python3.6/site-packages/torch/serialization.py", line 595, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File "/students/u6617221/.local/lib/python3.6/site-packages/torch/serialization.py", line 764, in _legacy_load
magic_number = pickle_module.load(f, **pickle_load_args)
_pickle.UnpicklingError: invalid load key, '\x12'.

@YudeWang
Thank you for the reply.
After changing the weight path, it raises "_pickle.UnpicklingError: invalid load key, '\x12'." as shown below. I downloaded the weight "ilsvrc-cls_rna-a1_cls1000_ep-0001.params" from your SEAM repository (https://github.com/YudeWang/SEAM). Does it mean the model and the weight do not match?
Traceback (most recent call last):
File "train.py", line 162, in
train_net()
File "train.py", line 55, in train_net
net.load_state_dict(torch.load(cfg.TRAIN_CKPT),strict=True)
File "/students/u6617221/.local/lib/python3.6/site-packages/torch/serialization.py", line 595, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File "/students/u6617221/.local/lib/python3.6/site-packages/torch/serialization.py", line 764, in _legacy_load
magic_number = pickle_module.load(f, **pickle_load_args)
_pickle.UnpicklingError: invalid load key, '\x12'.

@Carlisle-Liu
Load pretrain model
https://github.com/YudeWang/semantic-segmentation-codebase/blob/995b8fa9d6b08e3ff1f15a7aef2ce5445deaa834/experiment/deeplabv3%2Bvoc/config.py#L33
And left TRAIN_CKPT=None. TRAIN_CKPT is used for finetuning or recovering from unexpected interruption.
https://github.com/YudeWang/semantic-segmentation-codebase/blob/995b8fa9d6b08e3ff1f15a7aef2ce5445deaa834/experiment/deeplabv3%2Bvoc/config.py#L63

@Carlisle-Liu
Load pretrain model
https://github.com/YudeWang/semantic-segmentation-codebase/blob/995b8fa9d6b08e3ff1f15a7aef2ce5445deaa834/experiment/deeplabv3%2Bvoc/config.py#L33
And left TRAIN_CKPT=None. TRAIN_CKPT is used for finetuning or recovering from unexpected interruption.
https://github.com/YudeWang/semantic-segmentation-codebase/blob/995b8fa9d6b08e3ff1f15a7aef2ce5445deaa834/experiment/deeplabv3%2Bvoc/config.py#L63

For the test, the "config.py" file in the "seamv1-pseudovoc" has no following attributes, should I copy them from the "config.py" file in the "deeplabv3+voc"?
	'MODEL_BACKBONE_DILATED': True
	'MODEL_BACKBONE_MULTIGRID': False,
	'MODEL_BACKBONE_DEEPBASE': True,

Besides, it also does not have 'DATA_FEATURE_DIR' attribute which is required in the "BaseDataset.py" as shown below. This attribute is also absent in the "config.py" file in the "deeplabv3+voc"? How should I define this attribute?
net initialize
start loading model /students/u6617221/Models/semantic-segmentation-codebase/model/seamv1-pseudovoc/deeplabv1_resnet38_VOCDataset_itr20000_all.pth
Use 4 GPU
0%|                                                                                | 0/1449 [00:00<?, ?it/s]
Traceback (most recent call last):
File "test.py", line 109, in
test_net()
File "test.py", line 103, in test_net
result_list = single_gpu_test(net, dataloader, prepare_func=prepare_func, inference_func=inference_func, collect_func=collect_func, save_step_func=save_step_func)
File "/students/u6617221/Models/semantic-segmentation-codebase/lib/utils/test_utils.py", line 13, in single_gpu_test
for i_batch, sample in enumerate(dataloader):
File "/students/u6617221/.local/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 435, in next
data = self._next_data()
File "/students/u6617221/.local/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 1085, in _next_data
return self._process_data(data)
File "/students/u6617221/.local/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 1111, in _process_data
data.reraise()
File "/students/u6617221/.local/lib/python3.6/site-packages/torch/_utils.py", line 428, in reraise
raise self.exc_type(msg)
AttributeError: Caught AttributeError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/students/u6617221/.local/lib/python3.6/site-packages/torch/utils/data/_utils/worker.py", line 198, in _worker_loop
data = fetcher.fetch(index)
File "/students/u6617221/.local/lib/python3.6/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/students/u6617221/.local/lib/python3.6/site-packages/torch/utils/data/_utils/fetch.py", line 44, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/students/u6617221/Models/semantic-segmentation-codebase/lib/datasets/BaseDataset.py", line 46, in getitem
sample = self.sample_generate(idx)
File "/students/u6617221/Models/semantic-segmentation-codebase/lib/datasets/BaseDataset.py", line 73, in sample_generate
if self.transform == 'none' and self.cfg.DATA_FEATURE_DIR:
AttributeError: 'Configuration' object has no attribute 'DATA_FEATURE_DIR'

For the test, the "config.py" file in the "seamv1-pseudovoc" has no following attributes, should I copy them from the "config.py" file in the "deeplabv3+voc"?
	'MODEL_BACKBONE_DILATED': True
	'MODEL_BACKBONE_MULTIGRID': False,
	'MODEL_BACKBONE_DEEPBASE': True,

Besides, it also does not have 'DATA_FEATURE_DIR' attribute which is required in the "BaseDataset.py" as shown below. This attribute is also absent in the "config.py" file in the "deeplabv3+voc"? How should I define this attribute?
net initialize
start loading model /students/u6617221/Models/semantic-segmentation-codebase/model/seamv1-pseudovoc/deeplabv1_resnet38_VOCDataset_itr20000_all.pth
Use 4 GPU
0%|                                                                                | 0/1449 [00:00<?, ?it/s]
Traceback (most recent call last):
File "test.py", line 109, in
test_net()
File "test.py", line 103, in test_net
result_list = single_gpu_test(net, dataloader, prepare_func=prepare_func, inference_func=inference_func, collect_func=collect_func, save_step_func=save_step_func)
File "/students/u6617221/Models/semantic-segmentation-codebase/lib/utils/test_utils.py", line 13, in single_gpu_test
for i_batch, sample in enumerate(dataloader):
File "/students/u6617221/.local/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 435, in next
data = self._next_data()
File "/students/u6617221/.local/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 1085, in _next_data
return self._process_data(data)
File "/students/u6617221/.local/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 1111, in _process_data
data.reraise()
File "/students/u6617221/.local/lib/python3.6/site-packages/torch/_utils.py", line 428, in reraise
raise self.exc_type(msg)
AttributeError: Caught AttributeError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/students/u6617221/.local/lib/python3.6/site-packages/torch/utils/data/_utils/worker.py", line 198, in _worker_loop
data = fetcher.fetch(index)
File "/students/u6617221/.local/lib/python3.6/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/students/u6617221/.local/lib/python3.6/site-packages/torch/utils/data/_utils/fetch.py", line 44, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/students/u6617221/Models/semantic-segmentation-codebase/lib/datasets/BaseDataset.py", line 46, in getitem
sample = self.sample_generate(idx)
File "/students/u6617221/Models/semantic-segmentation-codebase/lib/datasets/BaseDataset.py", line 73, in sample_generate
if self.transform == 'none' and self.cfg.DATA_FEATURE_DIR:
AttributeError: 'Configuration' object has no attribute 'DATA_FEATURE_DIR'

@Carlisle-Liu
'MODEL_BACKBONE_DILATED': True
'MODEL_BACKBONE_MULTIGRID': False,
'MODEL_BACKBONE_DEEPBASE': True,

These configs are not used in ResNet38 backbone.
And set 'DATA_FEATURE_DIR: None,' in config.py

@Carlisle-Liu
'MODEL_BACKBONE_DILATED': True
'MODEL_BACKBONE_MULTIGRID': False,
'MODEL_BACKBONE_DEEPBASE': True,

These configs are not used in ResNet38 backbone.
And set 'DATA_FEATURE_DIR: None,' in config.py

DATA_FEATURE_DIR

Then should we copy the above three attributes from config.py in  deeplabv3+voc and then set all to 'False'?
Also, we we trained segmentation model using train.py in seamv1-pseudovoc, it saved the model as the name 'deeplabv1_resnet38_VOCDataset_itr20000_all.pth'. However, as we can see config_dict['TEST_CKPT'] from in test.py, it tries to load model using the name 'model/seamv1-pseudovoc/deeplabv1_resnet38_VOCDataset_itr20000_all_64.754.pth'. So it throws a non-match name.   Should we change also this name to 'deeplabv1_resnet38_VOCDataset_itr20000_all.pth' that is the saved name after training?
Thanks


Change ReplicationController to ReplicaSets

ReplicaSets is more recommended for manipulating pods than ReplicationController.

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Please delete this note before submitting the pull request.
For 1.13 Features: set Milestone to 1.13 and Base Branch to dev-1.13
Help editing and submitting pull requests:
https://kubernetes.io/docs/contribute/start/#improve-existing-content.
Help choosing which branch to use:
https://kubernetes.io/docs/contribute/start#choose-which-git-branch-to-use.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

lgtm, but could you fix other places which have ReplicationController?

/lgtm

/approve


Policies

Description
Created a policies folder that contains a OPA policy to verify the correct creation (or update) of a new instance.
In particular it checks if the instance referres to an existing template in the correct namespace.
Fixes # (issue)
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Please also note any relevant details for your test configuration.

[ ] Test A
[ ] Test B

/merge


Improve documentation - add warning in section Option: purge_statistics for users that use Energy dashobard

First Thanks for your work, had to replace sd card every year before this add-on.
Please consider adding additional warning in section Option: purge_statistics for users that use Energy dashboard.
There is weird behavior in Energy Dashboard when statistic have been purged. Energy usage graph pads values for the first month it has data for.
In attached screenshot:

earliest available statistics are from march  ( purge_statistics,  period: monthly,  keep_periods: 6)
yearly energy consumption values are correct
value for march is padded - should be around 200
values for later months are correct

Modification of purging code, to delete from 00:00h local time is a great idea but it's not the source of the problem.
Statistics for march have correct values in the database so the padding is "UI only".  It is worth mentioning that energy used statistic (at least in my case) is stored as increasing value

I found the code responsible for calculating data for the chart hui-energy-devices-graph-card.ts. From a quick glance it looks like values returned, for the chart, are returned as change between statistic records. So the data look like this:

Month
energy statistic value
change to previous value

Jan
0 (purged)
0

Feb
0 (purged)
0

Mar
800
800

Apr
1000
200

May
1200
200

That's why the first month that has statistic gets padded. It's not an error per se but just a quirky behavior of energy usage graph.
As for the restoring of statistic, I had a backup from April that contained the statistic before purge, so I just extracted the data  and imported it to HA database. After restoring everything looks good.
Suggested warning:

Warning

Purging of statistic impacts Energy dashboard - Energy usage graph in a weird way. Reported usage for the first period after purge gets padded.

Values for the bar plot of Energy dashboard - Energy used graph are calculated as change between statistic values. If you purge statistics, the first reported value on energy used graph will be padded.
Example - values before March were purged:

Month
energy statistic value  (before purge)
change to previous value  (before purge)
energy statistic value  (after purge)
change to previous value  (after purge)

Jan
400
-
0
0

Feb
600
200
0
0

Mar
800
200
800
800

Apr
1000
200
1000
200

May
1200
200
1200
200

Raw markdown:
> ---
>
> **Warning**
>
> ---
>
> Purging of statistic impacts `Energy dashboard - Energy usage graph` in a weird way. Reported usage for the first period after purge gets padded.
>
>
> Values for the bar plot of `Energy dashboard - Energy used graph` are calculated as change between statistic values. If you purge statistics, the first reported value on energy used graph will be padded.
>
> Example - values before March were purged:
>
> | Month | energy statistic value
 (before purge) | change to previous value
 (before purge) | energy statistic value
 (after purge) | change to previous value
 (after purge) |
> |:---:|:-----:|:---:|:----:|:---:|
> | Jan | 400   | -   | 0    | 0   |
> | Feb | 600   | 200 | 0    | 0   |
> | Mar | 800   | 200 | 800  | 800 |
> | Apr | 1000  | 200 | 1000 | 200 |
> | May | 1200  | 200 | 1200 | 200 |
>

Thank you for your investigation! Without energy data in my systems, I wouldn't be able to figure it out!
I've added a bit shorter version of the warning to the documentation and referenced this issue for your images. After HA refreshes the repository/update information of the add-ons, it will be available without releasing a new version.

I've tried to figure out the exact UTC time for local midnight X month ago even if it is through a daylight saving change, it requires coreutils' date and some black magic, I won't add it to the code, it won't solve any problem currently, just document it here.
date -d "$(date -d '5 months ago' '+%Y-%m-%d 00:00:00 %z')" -u '+%Y-%m-%d %H:%M:%S'
2023-04-21 22:00:00

date -d "$(date -d '6 months ago' '+%Y-%m-%d 00:00:00 %z')" -u '+%Y-%m-%d %H:%M:%S'
2023-03-21 23:00:00


:sparkles: Allow complex regexp with Naming Convention

Close #770

:tada: This PR is included in version 3.2.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


[SDBM-842] Postgres integration performance improvement: Report metrics only when query call count has changed since last check.

What does this PR do?

Motivation
https://ddstaging.datadoghq.com/notebook/7670006/postgres-statement-query-optimization
Walkme-engine
Additional Notes

Review checklist (to be filled by reviewers)

[ ] Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
[ ] Changelog entries must be created for modifications to shipped code
[ ] Add the qa/skip-qa label if the PR doesn't need to be tested during QA.

Do we know where the query is spending time: on transport or the database? This optimization will work under the condition that the most time is spent on transport but might make the situation worse if the most time is spent on querying the database.
An alternative approach would be to regularly truncate the statements table, so that it would only contain recently executed statements. A truncate running, say a couple of times per hour, is a reasonable trade off for making the statements query more efficient.


add envFrom to kustomize-controller to get configMap and/or secret

Signed-off-by: Daniel Werdermann<EMAIL_ADDRESS>
What this PR does / why we need it:

Allow for the ability to specify envFrom values for the kustomize controller

Which issue this PR fixes

fixes #35
it implements the code of the closed PR #36

Special notes for your reviewer:
Checklist

[x] DCO signed
[x] Chart Version bumped
[x] helm-docs are updated
[x] Helm chart is tested

FYI: @MxNxPx

FYI: @MxNxPx

Thanks @dwerder, I wasn't sure if you were going to have time to do this, so I opened up another one almost at the same time as you!   Looks like this one you opened addresses some other stuff as well.  Shall I close my PR and let this one get merged?

We keep yours.