An unknown error occurred. Please contact your Superset administrator

Hello, I have installed superset using SupersetOffcDoc And successfully ran superset using command gunicorn superset:app but when i try to import a dashboard getting An unknown error occurred. Please contact your Superset administrator. My logged in user is ADMIN and also i found no errors in logs

Hi @liya2664,
It's hard to help without logs or more info, please check again your server logs and browser console log. It would help fill out github's bug issue template.
Thanks

Hello @dpgaspar
I checked browser console log and found nothing, In browser network i checked import_dashboards call and found below response
Request URL: http://<IP_ADDRESS>:8000/superset/import_dashboards
Request Method: POST
Status Code: 302 FOUND
Remote Address: <IP_ADDRESS>:8000
Referrer Policy: no-referrer-when-downgrade

Got same issue while using docker as well, I was trying to import a dashboard from version superset=0.27.0

hi Liya2664 were you able to over come this issue.  I am experiencing same issue with superset .30 and python3.6.9.  need help with this,  this is blocking me.

It looks like similar error message "An unknown error occurred. Please contact your Superset administrator" while exporting dashboard from superset version 0.28.1  to import superset version 0.30.0, Any clue yet ?
 Masked URL: postgresql://postgres:XXXXXXXXXX@<IP_ADDRESS>:5432/cdp
2019-12-05 17:21:12,966:INFO:root:Database.get_sqla_engine(). Masked URL: postgresql://postgres:XXXXXXXXXX@<IP_ADDRESS>:5432/cdp
[2019-12-05 17:21:13 +0000] [12492] [DEBUG] GET /superset/favstar/Dashboard/8/count
[2019-12-05 17:21:13 +0000] [12496] [DEBUG] GET /csstemplateasyncmodelview/api/read
[2019-12-05 17:21:13 +0000] [12492] [DEBUG] GET /superset/favstar/Dashboard/8/count/
[2019-12-05 17:21:13 +0000] [12491] [DEBUG] POST /superset/explore_json/
2019-12-05 17:21:13,839:DEBUG:root:[stats_logger] (incr) explore_json
2019-12-05 17:21:13,849:DEBUG:parsedatetime:eval - with context - False, False
2019-12-05 17:21:13,853:INFO:root:Cache key: 84d28b9a84f889fe7f7712633fd1b29d
2019-12-05 17:21:13,854:INFO:root:Database.get_sqla_engine(). Masked URL: postgresql://postgres:XXXXXXXXXX@<IP_ADDRESS>:5432/cdp
2019-12-05 17:21:13,855:INFO:root:SELECT COUNT(*) AS count, count(DISTINCT top_deter) AS "COUNT_DISTINCT(top_deter)"
FROM wellcare_clm_new.chd_at_risk_patient_top_deter ORDER BY count DESC
LIMIT 10000
2019-12-05 17:21:13,859:INFO:root:Database.get_sqla_engine().  HTTP/1.1" 200 4906 "http://<IP_ADDRESS>:8088/dashboard/list/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36"
<IP_ADDRESS> - - [05/Dec/2019:17:18:09 +0000] "GET /superset/csrf_token/ HTTP/1.1" 200 115 "http://<IP_ADDRESS>:8088/dashboard/list/?" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36"
<IP_ADDRESS> - - [05/Dec/2019:17:18:26 +0000] "GET /dashboard/list/? HTTP/1.1" 200 4904 "http://<IP_ADDRESS>:8088/dashboard/list/?" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36"
<IP_ADDRESS> - - [05/Dec/2019:17:18:26 +0000] "GET /superset/csrf_token/ HTTP/1.1" 200 115 "http://<IP_ADDRESS>:8088/dashboard/list/?"  HTTP/1.1" 200 4903 "http://<IP_ADDRESS>:8088/dashboard/list/?" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36"
<IP_ADDRESS> - - [05/Dec/2019:17:23:20 +0000] "GET /dashboard/list/? HTTP/1.1" 200 4903 "http://<IP_ADDRESS>:8088/dashboard/list/?" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36"
<IP_ADDRESS> - - [05/Dec/2019:17:23:20 +0000] "GET /superset/csrf_token/ HTTP/1.1" 200 115 "http://<IP_ADDRESS>:8088/dashboard/list/?" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36"
<IP_ADDRESS> - - [05/Dec/2019:17:23:21 +0000] "GET /dashboard/list/? HTTP/1.1" 200 4906 "http://<IP_ADDRESS>:8088/dashboard/list/?" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36"
<IP_ADDRESS> - - [05/Dec/2019:17:23:21 +0000] "GET /dashboard/list/? HTTP/1.1" 200 4906 "http://<IP_ADDRESS>:8088/dashboard/list/?" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36"
<IP_ADDRESS> - - [05/Dec/2019:17:23:21 +0000] "GET /superset/csrf_token/ HTTP/1.1" 200 115 "http://<IP_ADDRESS>:8088/dashboard/list/?" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36"
<IP_ADDRESS> - - [05/Dec/2019:17:23:24 +0000] "GET /superset/import_dashboards HTTP/1.1" 200 2911 "http://<IP_ADDRESS>:8088/dashboard/list/?"  Could you please suggest solution or reopen this ticket ?

@snehil1001 We have created our own docker image with our requirement version, I cannot reopen the issue as repo collaborator closed it

Same issue here. It has likely todo with the json format being changes when switching versions. I exported dashboards from 0.30.0 and tried to import into a new instance of 0.36. The specific error in the console was (use --debuger) on import
TypeError: 'is_restricted' is an invalid keyword argument for SqlMetric

So I opened the exported json file and deleted all rows with "is_restricted" keys. An example is shown below.
"d3format": null,
                            "description": null,
                            "expression": "count(*)",
                            "id": 2,
                            "is_restricted": false,
                            "metric_name": "",
                            "metric_type": null,
                            "table_id": 1,
                            "verbose_name": "count(*)",
                            "warning_text": null

This resolved the issue for me and the dashboard file imported successfully.

@dpgaspar This issue still seems to persist in v1.1.0
Logs
It does a series of
INFO:superset.datasets.commands.importers.v0:Importing col successfully
Then throws AttributeError: 'NoneType' object has no attribute 'id'
'NoneType' object has no attribute 'id'
Traceback (most recent call last):
  File "superset-venv/lib/python3.9/site-packages/superset/views/core.py", line 629, in import_dashboards
    ImportDashboardsCommand(
  File "superset-venv/lib/python3.9/site-packages/superset/dashboards/commands/importers/v0.py", line 329, in run
    import_dashboards(db.session, content, self.database_id)
  File "superset-venv/lib/python3.9/site-packages/superset/dashboards/commands/importers/v0.py", line 308, in import_dashboards
    import_dashboard(dashboard, import_time=import_time)
  File "superset-venv/lib/python3.9/site-packages/superset/dashboards/commands/importers/v0.py", line 171, in import_dashboard
    new_slc_id = import_chart(slc, remote_slc, import_time=import_time)
  File "superset-venv/lib/python3.9/site-packages/superset/dashboards/commands/importers/v0.py", line 73, in import_chart
    slc_to_import.datasource_id = datasource.id  # type: ignore
AttributeError: 'NoneType' object has no attribute 'id'
ERROR:superset.views.core:'NoneType' object has no attribute 'id'
Traceback (most recent call last):
  File "superset-venv/lib/python3.9/site-packages/superset/views/core.py", line 629, in import_dashboards
    ImportDashboardsCommand(
  File "superset-venv/lib/python3.9/site-packages/superset/dashboards/commands/importers/v0.py", line 329, in run
    import_dashboards(db.session, content, self.database_id)
  File "superset-venv/lib/python3.9/site-packages/superset/dashboards/commands/importers/v0.py", line 308, in import_dashboards
    import_dashboard(dashboard, import_time=import_time)
  File "superset-venv/lib/python3.9/site-packages/superset/dashboards/commands/importers/v0.py", line 171, in import_dashboard
    new_slc_id = import_chart(slc, remote_slc, import_time=import_time)
  File "superset-venv/lib/python3.9/site-packages/superset/dashboards/commands/importers/v0.py", line 73, in import_chart
    slc_to_import.datasource_id = datasource.id  # type: ignore
AttributeError: 'NoneType' object has no attribute 'id'

I had the same issue. Renaming the database to the old one, did the job.
If you are unsure of what was the old database. You can find it at the end of the export file itself with the database_name key.

Yup, @prashant-shahi. The issue in my case was also because the datasource name in the export file did not exist on the superset instance I was importing it on.

I had the same issue. Renaming the database to the old one, did the job.
If you are unsure of what was the old database. You can find it at the end of the export file itself with the database_name key.

Thanks Man!
the database name in json file (dashboard to be imported) should match the destination database_name.

Please check the database name, it should be same to import dashboard or can rename to existing database name in json (database_name) before importing json


[Feature Request] QR Codes on invoices

Is your feature request related to a problem? Please describe.
People often pay bills late because it is a hassle.
Describe the solution you'd like
There is a standard for QR Codes on invoices, which makes payment a lot easier.
See for example https://www.scripturaengage.com/blog/heres-why-you-should-integrate-a-qr-code-in-your-invoice/
(Haven't found really good articles/specs of it so far)

Great idea.

This would actually be a really nice feature and not too difficult to implement.
Nice idea

The docs for the swiss implementation of QR invoices can be found here
I'll see if we can do something standardized for everyone, but for my part I'll implement the swiss variant at some point.


adding a data section

Following the suggestion by @jkikstra, I removed the introduction overview of the two dataframes and added a proper section on the data table, including the custom-columns feature. And I rewrote a lot of the descriptions (sorry, I couldn't help myself) and formatted the as warnings and notes for a more colourful and structured docs page.
I also tried to consistently use the :class: tag for pyam (it was mixed with :code:).

thanks for the corrections! I can't merge in your fork...


Update completes, but doesn't actually upgrade

Trying to update from v1.1.4 to v1.1.5. When running theme update, it shows that it was updated, but it's no. Any ideas?

Happens to me as well. Tried multiple times

Happens to me as well. Tried multiple times

Should be fixed now, It seems like the deploy only partially finished

Should be fixed now, It seems like the deploy only partially finished

Should be fixed now, It seems like the deploy only partially finished

Can confirm it works for me now. Thanks!

Should be fixed now, It seems like the deploy only partially finished

Can confirm it works for me now. Thanks!


requst please :)

hey guys. don't know if you will be implanting this. but will there be any chance of adding a web-ui. so we can set of a manual scan. and would it be possible for us to make changes on the web-ui. e.g adding other Tdrive etc. and it auto generates and add's it to the config file. sorry if i am asking for too much.

This will not be worked on.


2.0 release

Ready when all other issues forming part of the release are Done.

[x] ensure patches have been merged from master to dev
[x] run code analysis in VS in Release mode and address violations (send a regular PR which must be merged before continuing)

[x] RC smoke tests (passes, various types of faliures, skips)

[x] console - console output + html
[x] VS runner
[x] msbuild
[x] testdriven.net
[x] R#
[x] ncrunch

[x] RC test update in projects

scriptcs blocked by AutoFixture.Xunit
[x] ConfigR
Bau Bau.Xunit does not yet support xunit 2.0

[x] prepare wiki

[x] refresh current pages
[x] add pages for new features

[x] prepare blog post
[x] prepare website

[x] create and merge PR from upstream dev to master
[x] smoke test NuGet package
[x] create release in GitHub UI including releaseNotes, mentioning non-owner contributors, if any
[x] push nuget package
[x] copy release notes from GitHub to NuGet
[x] de-list buggy nuget packages if present
[x] publish blog post
[x] publish website
[ ] tweet, mentioning contributors and post link as comment here for easy retweeting ;-)
[ ] post tweet in JabbR (xbehavenet and general-chat)
[ ] post links to the NuGet and GitHub release in each issue in this milestone, with thanks to contributors
[ ] increment minor version
[ ] create and merge PR to upstream dev
[ ] update samples/raise issue to do so
[ ] create a new milestone for the next release
[ ] create new issue based on this one for next release, adding it to the new milestone
[ ] close all issues on this milestone
[ ] close this milestone

There is some feedback on 2.0 RC1 over at #51

https://twitter.com/adamralph/status/629330749251055616


[stable/minecraft] enable deployment annotations, bump chart version

Deployment annotations used for things like backup. istio, etc.
Signed-off-by: Ryan Holt<EMAIL_ADDRESS>
Is this a new chart

NOTE: We're experiencing a high volume of PRs to this repo and reviews will be delayed. Please host your own chart repository and submit your repository to the Helm Hub instead of this repo to make them discoverable to the community. Here is how to submit new chart repositories to the Helm Hub.

What this PR does / why we need it:
Which issue this PR fixes
(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

fixes #

Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[ ] DCO signed
[X] Chart Version bumped
[X] Variables are documented in the README.md
[X] Title of the PR starts with chart name (e.g. [stable/mychartname])

@billimek, would love a review if you've got a second.

/ok-to-test

/lgtm


Remove redundant browser stuffs

Coverage increased (+0.03%) to 92.738% when pulling 22ee8e243db9f04d9c29418d5fa0e93c1094ba7d on Lenaldnwj:remove_browser_test into 792c6efab28d7b6d9cf3d5a90fd381b32d954d20 on CS2103AUG2017-T16-B2:master.

Coverage increased (+0.03%) to 92.854% when pulling ec02c194d1fa3410a8f951eda65ecbdbb1cc372d on Lenaldnwj:remove_browser_test into 8e995e74f383693763d0f61739cf49c08688346a on CS2103AUG2017-T16-B2:master.


Windows build fails on GitHub Actions

This is not a new topic but I want to start a thread on it so we can get closer to a complete solution.
We always had trouble building our Windows platforms with extensions mkl, gpu or mkl-gpu on GitHub Actions because the operation takes too long (i.e. beyond the 6 hours limit).
Adding this new option to the Visual Studio compiler reduces drastically the compilation time of MKL functions, as I've tested locally. Still, all platforms with GPU support do not complete in time, as you can see in this workflow.
Strangely, we can observe that the preparation of the environment of these builds took 20 minutes (i.e. x2) the time of the non-GPU builds. But we install the same software, regardless if we are building for GPU or not. Can we investigate what is the cause of that delay?
Also, I have been told by SIG Build that disabling Eigen inlining helps reducing the compilation time even more, but this time at the price of some performance loss. Still, should we give it a try?

Strangely, we can observe that the preparation of the environment of these builds took 20 minutes (i.e. x2) the time of the non-GPU builds. But we install the same software, regardless if we are building for GPU or not. Can we investigate what is the cause of that delay?

We would need to create and use custom images to avoid the installation time. Unfortunately, GitHub Actions doesn't support custom images, but it does support custom runners, which is the next best thing. We just need someone to sponsor the machines somewhere on the cloud (and take responsibility for potential security risks too), but it doesn't look like that's going to be Google...

Also, I have been told by SIG Build that disabling Eigen inlining helps reducing the compilation time even more, but this time at the price of some performance loss. Still, should we give it a try?

That's --define=override_eigen_strong_inline=true and it's already there in build.sh. Removing it roughly doubles the build time, see https://github.com/bytedeco/javacpp-presets/issues/568.


Classic Crafting doesn't include Stonecutter UI

Simply put, in the latest version of Legacy4J attempting to use the Stonecutter regarding of whether Classic Crafting is enabled will display the Legacy design for the UI instead of the other more mouse/keyboard friendly variant.
https://github.com/Wilyicaro/Legacy-Minecraft/assets/158768860/2c6d8e2d-1138-4322-9a93-aaa535fbc368

Do you know what the Stonecutter looks like with Classic Crafting enabled in LE? I don't have access to the PS4 Edition, so I left it like that.

I think the way they're wording this is.. they want classic crafting to affect the stonecutter screen by having the vanilla stonecutter screen in the legacy style through that option

I think the way they're wording this is.. they want classic crafting to affect the stonecutter screen by having the vanilla stonecutter screen in the legacy style through that option

Yeah that's what I mean, but if we want this to be as consistent with Legacy Edition, I'll have a picture of what the UI looks like tomorrow

If you're just having difficulty using Stone Cutter's interface with mouse/keyboard, you can press the X key and it will only show craftable recipes

Do you know what the Stonecutter looks like with Classic Crafting enabled in LE? I don't have access to the PS4 Edition, so I left it like that.

i have the ps4 legacy edition and its the same as legacy crafting gui even with classic crafting

Added in version 1.6, thanks for suggesting.


New Daily Aggregate chart type

So here's the deal:
There are a TON of code changes flying every which way from the bus endeavor: (lots of new backend code, minor refactors everywhere, there might be an overhaul to configuration coming up shudders). I'm slowly learning my way around Reactjs, but I'm still very much a novice.
So with all that in mind, I'm creating a bus_staging branch that I will gradually PR stuff into before it is ready for a deployment to main. (This way beta can keep the existing bus code without me having to ask for a review of everything at once.)
Since this is an an independent piece from everything else, so I figure now's a good time to ask for feedback before I take it any further.

As @friendchris and @ofsevit have requested, we are aggregating data not over time, but by time of day to generate a chart like the above.
Some technical notes:

There is a new endpoint traveltimes2 that returns aggregate both over time and daily (hourly?). I have left the existing backend endpoint as is, since slowzones is consuming it and I don't want to thinking about having too many things in flight.
I have pulled the long list of charts to render out of App.js and into ChartSet.js just to help improve readability. However, I'm not sure it helps right now, but it will help separate logic when buses get different chartsets.
Our Aggregation chart now has 2 types: AggregationOverTime and AggregationDaily. Both of these include a RadioField selector and their AggregationOverTimeLine/AggregationDailyLine chart component, respectively. Hopefully this isn't tremendously confusing, I'm having trouble naming things.
I've done my best with the css, but it's not perfect. Particularly, the colorful legend for single-day mode in mobile could still use some work, but maybe it's good enough for now.

I know this is a lot... Thanks so much for your time!!

Bit of an update to how things are looking.
Again, not asking for this to go straight into main, just that it's ready for more bus changes to be built on top of it.


Ranged ammunition types

Is your feature request related to a problem? Please describe.
We don't yet know what mechanics haze killer rounds or anti storm/void light ammunition will have, however I think we need to consider an ammunition system at least.
Describe the solution you'd like
At least the existing weapons with ammunition, i.e. the bow, crossbow, sling and shortbow should have associated ammunition types and require that ammunition to be associated in the inventory to be used.
Describe alternatives you've considered
Not implementing ammunition, however when we get alternative ammunition types, we will need this system setup anyway
Version
0.1.1
Additional context
n/a
Checklist:

[X] I have searched the existing issues to ensure this feature has not already been requested.

Ammunition will be supported through the item resource consume config on weapons/other items.
See the ActivatableItemMixin for context.


[Bug]: Connection error when using OctoAIEmbedding with llama-index

Bug Description
Using OctoAIEmbedding from llama-index-embeddings-octoai (llama-index==0.10.59) results in the following issues:
Error message about missing OpenAI API key, even when using OctoAI.
Setting a fake OpenAI key leads to an APIConnectionError.
Final error: openai.APIConnectionError: Connection error.
Version
0.10.59
Steps to Reproduce
Use OctoAIEmbedding with llama-index==0.10.59
Attempt to create a VectorStoreIndex
Relevant Logs/Tracbacks
Initial error :

Could not load OpenAI model. If you intended to use OpenAI, please check your OPENAI_API_KEY.
Original error:
No API key found for OpenAI.
Please set either the OPENAI_API_KEY environment variable or openai.api_key prior to initialization.
API keys can be found or created at https://platform.openai.com/account/api-keys

To disable the LLM entirely, set llm=None.

Subsequent error after setting a fake OpenAI key:
Retrying llama_index.embeddings.openai.base.get_embeddings in 0.3866544700197091 seconds as it raised APIConnectionError: Connection error..

Final error and traceback:

Traceback (most recent call last):
  ...
  File "C:\Users\adel\AppData\Local\pypoetry\Cache\virtualenvs\fast-api-branch-P5O1GFhU-py3.11\Lib\site-packages\openai\_base_client.py", line 1007, in _request
    raise APIConnectionError(request=request) from err
openai.APIConnectionError: Connection error.

Key intermediate error:
httpx.LocalProtocolError: Illegal header value b'Bearer '

Code sample? Probably just missing a spot to pass the embed model

it worked few days a go , and pushed to a branch , but tried testing it now , and got that error , here is how i am doing it
(sample):
from llama_index.embeddings.octoai import OctoAIEmbedding
from llama_index.llms.octoai import OctoAI
octoai_api_key = os.environ.get('OCTOAI_TOKEN')
octoai = OctoAI(model="meta-llama-3.1-70b-instruct", token=octoai_api_key, max_tokens=4096)
Settings.llm = octoai
embed_model = OctoAIEmbedding(api_key=octoai_api_key)
Settings.embed_model = embed_model

As long as thats at the start of your code (before you do anything else), I don't see why that would cause issues.


2023 SAG-AFTRA strike

Addresses https://github.com/instructlab/taxonomy/issues/809
Describe the contribution to the taxonomy

...
...
...

Input given at the prompt

   ...

Response from the original model

  ...

Response from the fine-tuned model

  ...

Contribution checklist

[ ] The contribution was tested with ilab generate
[ ] No errors or warnings were produced by ilab generate
[x] All commits are signed off (DCO)
[x] The qna.yaml file contains at least 5 seed_examples
[x] The qna.yaml file was linted and prettified (yaml-validator can do both)
[x] An attribution.txt file in the same folder as the qna.yaml file
[x] Content does not include PII or otherwise sensitive or confidential information
[x] Content does not include anything documented in the project's Avoid these Topics guidelines

Please fix the created_by and the linting errors.

Thanks @jjasghar. These errors should be resolved.

@instructlab-bot precheck

Hi! 👋
It’s been a while since you’ve seen any movement on this PR. We haven’t forgotten about you!  We’ve run into some logistical issues, hence this delay. We absolutely want your PR, and being marketed as e2e-ready is still the last stop before we get it into the upstream model.
We are thankful for your patience and ask that you please keep this PR open. As soon as we finish all our behind-the-scenes work, we’ll test the full model against your submissions and, ideally, accept your amazing contribution(s)!
Your Community Maintainer Team.
P.S. if you have any specific questions or thoughts, don’t hesitate to comment on pull request this or email<EMAIL_ADDRESS>and<EMAIL_ADDRESS>and we’ll get back to you as soon as possible.

Hi! :wave:
With the new update and release of 0.18.0, our base knowledge submissions have drastically changed. This has given us an opportunity to significantly improve the accuracy of our fine-tuned models, which is a major win for our community!
But alas, that has caused some changes that this PR isn't able to continue forward. We greatly appreciate the work you've put into this, and wish we could accept it but the amount of work to get it to be version: 3 is unrealistic for us to ask.
If you do want to do this, please don't hesitate to take the qna.yaml update it, and build it out. Otherwise, we hope you come back to our community with a new submission and help build out our Open Source community-driven LLM.
If you have any questions directly, please don't hesitate to comment on the PR or email me at awesomeATinstructlab.ai (yes, really), and I'll do my best to answer your questions.


positive regulation of actin filament annealing

possible new term, if parentage can be sorted satisfactorily:
id: GO:new
name: positive regulation of actin filament annealing
def: Any process that activates or increases the frequency, rate or extent of actin filament annealing, i.e. the end-to-end joining of existing actin filaments. [PMID:10585915, PMID:11575927, PMID:19244341]
[usual positive regulation synonyms]
is_a: GO:1902903 ! regulation of supramolecular fiber organization ??
is_a: GO:0032956 ! regulation of actin cytoskeleton organization ??
If I understand correctly, actin filaments can anneal (i.e. join end-to-end) spontaneously, but some actin-binding proteins can increase or decrease the frequency or rate of annealing. So there doesn't seem to be a need for an "actin filament annealing" term, at least for gene product annotation. But I've got a gene product that could reasonably be annotated to a positive regulation term, and the general and negative regulation terms may prove useful as well, if there's a way to fit them into the ontology without a term for the regulated event. I'd welcome improvements on the suggestions in the stanza above!
Background in PMID:10585915 and PMID:11575927 (among others); I would annotate S. pombe cdc8 to the new regulation term based on figure 7 from PMID:19244341.

I don't see why not. thanks :)

I can also use the negative regulation term for PMID:15743909


fit() and transform() methods from separate classes

When two classes have the same function names and only one of those classes is provided in the list of files, it seems to map inaccurately to the other class. For example, MinMaxScaler() from sklearn which has fit() and transform() methods, and then a user-defined function for a different class, also with fit() and transform() methods. I'm guessing that it might resolve it OK if I were to supply the file for MinMaxScaler(), but this throws an error https://github.com/scottrogowski/code2flow/issues/29.
Is this behavior for classes with the same function names a known limitation?

Ah, I forgot about this part from the README: https://github.com/scottrogowski/code2flow#known-limitations

All functions without definitions are skipped. This most often happens when a file is not included.
Functions with identical names in different namespaces are (loudly) skipped. E.g. If you have two classes with identically named methods, code2flow cannot distinguish between these and skips them.
Imported functions from outside of your project directory (including from standard libraries) which share names with your defined functions may not be handled correctly. Instead when you call the imported function, code2flow will link to your local functions. E.g. if you have a function "search()" and call, "import searcher; searcher.search()", code2flow may link (incorrectly) to your defined function.
Anonymous or generated functions are skipped. This includes lambdas and factories.
If a function is renamed, either explicitly or by being passed around as a parameter, it will be skipped.


prepareAndroid

To simplify things, prepareAndroid should be called and ignored, with and then run the promise for ios devices. Currently, on ios, prepareAndroid does nothing, and crashes on attempted promise.
// crash on ios
RNIap.prepareAndroid().then(message=>{
    // call get items function
}).catch(error=>{
    // handle error
})

Instead, I had to write conditional code
// works, but extra unneeded code
if (Platform.OS == 'ios') {
    // call get items function
    return
}

RNIap.prepareAndroid().then(message=>{
    // call get items function
}).catch(error=>{
    // handle error
})

Could you make it so ios still handles the promise?

I tested module in iOS, but never crashed at that part.
I guess we used await instead of promise handling.
Please refer to the line 43 in example. https://github.com/dooboolab/react-native-iap/blob/master/RNIapExample/src/components/pages/First.js
We will change that part, not to crash.
Thank you for your help.

I guess you can use await everywhere in RN project.
But, you define the function which use await as async. Just like the above componentDidMount in  First.js. I hope this will help.

@KjellConnelly @JJMoon
Is this solved?

@JJMoon Thanks for letting me know about adding async in front of the function. I didn't know, and just assumed it wasn't a feature that worked. After testing it, it works - sort of... But there is still a problem on ios:
prepareAndroid() should either return a message, or an errorCode. Before, when we were using prepare(), I would do it like this:
RNIap.prepareAndroid().then(message=>{
 // Ready to call RNIap.getItems()
}).catch(errorCode=>{

})

The equivalent using await looks like:
async function myFunction() {
   try {
      const message = await RNIap.prepareAndroid()
   } catch(errorCode) {

   }
}

Unfortunately, it looks like when using try/catch, it always runs the catch function. This is probably because for ios, the function doesn't return the promise properly. Of course, if I don't use try/catch, and just run const message = await RNIap.prepareAndroid() by itself, then ios basically ignores it.

@KjellConnelly I tested with the Example in our repository. It's fine on iOS simulator. And it didn't catch the error. The only difference in our codes are
async function myFunction() // in your code

instead of member function.
So, I suggest you to test with our example, edit the bundle ID, and product ids.
I hope you have fine result.

@JJMoon I believe the example code does not use a try/catch. It just awaits a response. If in componentDidMount, you add the try/catch statement, it’ll always catch on my iOS real device.
Try/catch should be used since catch will catch android error codes

@KjellConnelly
Can you share what version you are using? Because this should not happen in later version of ‘0.2.*’

@dooboolab I just updated to the current github version, and it looks like it is working now :) Sorry about that. I didn't update since you made the fixes. Didn't realize that you made them.


apiary_metadata_events SNS topic should be optional

As a SysOps
I want to make sure apiary_metadata_events SNS topic optional
So that it can be turned ON or OFF as per use-case
Current Setup throws following error when enable_metadata_events is set to BLANK (default value)
1 error(s) occurred:

* module.apiary-metastore.aws_sns_topic.apiary_metadata_events: 1 error(s) occurred:

* aws_sns_topic.apiary_metadata_events: InvalidParameter: Invalid parameter: Policy Error: PrincipalNotFound
	status code: 400, request id: a43c4e59-c3e2-5289-b09c-1dae9ad1d7fc

This happens when apiary_customer_accounts is BLANK which does not return valid value for "AWS": [ "${join("\",\"", formatlist("arn:aws:iam::%s:root",var.apiary_customer_accounts))}" ]


Any reason we're not using the normal Dart BSD license?

Just curious...for consistency

At the time I created these, the plan was to migrate these to the bazelbuild organisation with all the other language rule sets, in which case the current licensing is the correct licensing.


ci: update workflows

This will allow CI to fail faster if an error occured and rename some part to improve readibility
fix #93

As I do not understand completely how to contribute and make a release, maybe it is time to fill in the HOW-TO-CONTRINUTE ?


docs: Added that you might need to use the pip2 command instead of pip to install Cryptdome

you have multiple python version installed.
"pip" autoselect the appriopriate version, no need pip2


chore(deps): upgrade dev dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-dev-dependencies-1.x" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 1377

Questions ?
Please refer to the Backport tool documentation


How do I retrieve file history after clone? All I see is branch comments.

I am new to git-tfs and am trying to find file history from TFS after cloning to a local git repo.
Some background - our TFS never properly used branches. For the most part, our code base is a Project and FOLDER under it called "dev" and the team's developers have checked into that folder for a decade plus and there are approximately 17,000 files in there.
I noticed that all of the git-tfs guides suggest using the "Convert to Branch" method for folders. Since our dev folder is currently in use, I tried using the Branch command in TFS to create a duplicate of the dev folder as a true TFS Branch. This completed and I checked in the branch to TFS along with a comment (my "branch comment" if you will).
To migrate this new test branch to git, I executed the following command:
git tfs clone --branches=none --export --debug http://<tfs server url> "$/<project name>/<dev test branch I just created>"
I watched the debug statements in the powershell window and it appears to have performed a "get" on everything and it did not appear to have any errors.
I have tried different combinations of "git log" commands but I only ever see the commit comment (my "branch comment") I entered for the BRANCH when I created the TFS branch. I cannot figure out how to see the history of the files themselves. I assume I'm either not using the git log command correctly or my clone did not actually retrieve the full history from the files.
In my new branch in TFS, I can view the history of the files by right-clicking and selecting View History. It shows the individual check-in comments (file history) in addition to my branch comment when I created the branch. The file history is nested under the branch comment.
Did my clone not retrieve the file history? Git-tfs does support getting the full file history right? If it can only get branch comments I don't think this will work for our situation - but I find it hard to believe we are the only ones using TFS incorrectly (folders instead of branches).

I am not sure that duplicating the folder and then making it a branch will allow git-tfs to import correctly.
I would suggest to try to git tfs clone --branches=none with the old location of your dev folder if your are only interested
of importing the dev folder including its history.

I tried running the command you suggested on the original and noticed that when it finished it did not have all of the subfolders under our Dev folder. In looking at the log file, I see thousands of lines of "get" logs, then at some point about half way through, the "get" changed to "D" in the log statement. The first statement after this change reads:
2023-06-19 10:47:46.9016 [Debug] 	D	Dirs_Release.props
Then every line after that includes the "D" and a file path to files in the Dev folder. I noticed in the local repo, it appears that the files with "D" in the log were not pulled into my repo. Again, approximately half the files had "D" in the log output so I presume that approximately half my files were not cloned.
I'm quite confused as to what's causing this.

I assume (but I am not sure) that the  D stand for deleted. You should see the changeset which is imported. Maybe look at the history and try to figure out what is done there in TFS?

The files are not deleted. They are still in TFS and they are part of our Dev folder. It just acts like Git TFS skips all of those files but I don't know why. I'm not convinced the "D" means anything is deleted - to me it is just not "getting" anything more from TFS.
I was able to clone my entire Dev folder ("get" for all files) with the command mentioned in my original post - but the issue there is that it does not include the comments for all TFS changeset check-ins - and that is the one thing we are after in migrating to Git. The only history it would show in git was comments related to the branching changeset - which we don't use - so we have no meaningful history.
To me, my question is simple: Does Git TFS support getting the check-in comment from ALL changesets in TFS and showing that somewhere in Git history?
If yes, what are issues with TFS that might prevent Git TFS from reading / processing them?

To me, my question is simple: Does Git TFS support getting the check-in comment from ALL changesets in TFS and showing that somewhere in Git history?

It should to able to support getting all changesets from the TFS history of that folder.
But only if the changeset was created on the Branch.
Assume the following
$/SomeProject/Main with Changsets 1,2,3,4 and a Branch $/SomeProject/Dev is created based on Changeset 4 from $/SomeProject/Main (as Changset 5). Furthermore, in Dev, Changeset 6 and 7 are created
If you are cloning with git tfs clone --branches=none only on $/SomeProject/Dev, then you would only receive
Changesets 6 and 7 in addtion to Changeset 5 which is creating the branch. But you would not get Changeset 1-4, as they
are not on the folder you are cloning.
Does this answer your question?

Thanks for the detailed explanation (and for previous replies).
To use your example, I'm basically doing...
git tfs clone --branches=none $/SomeProject/Main
This gives me a warning before running:
warning: you are going to clone the whole repository or too high in the repository path !
   => If you want to manage branches with git-tfs, clone one of this branch instead :

After the warning, it lists out some branches that are under "SomeProject" - but they are not what I want to migrate to Git.
What I want to clone actually is "Main" where "Main" is the equivalent of our "Dev" folder. It is a folder in TFS and not a branch.
The problem here is that while running, it seems to stop using the "get" command in the debug output and changes to "D" as mentioned earlier. The thousands of debug output lines look something like this:
get [C128384] $/<project name>/Dev/<folder path and filename>
C128384 is the original check-in/changeset for this Dev folder so it makes me think git tfs is in the right place, but I can't explain why it's having trouble completing - OR, what it means when it switches from "get" to "D" in the log. I attempted this clone again yesterday and the same thing happens. Also of note, when the get/D change happens, the changeset number is no longer in the log statement. Additionally, there is a significant delay (1.5 hours) in time when this happens as well.

I understand your explanation and it sounds like an answer to my question, but the execution isn't matching the expectation I guess.

The message is coming from here: https://github.com/git-tfs/git-tfs/blob/36be5582a611dcb708fe1b88f16b0399e05a352c/src/GitTfs/Commands/Clone.cs#L184
What you could do is building git-tfs yourself and the try to debug the clone of the problematic changeset.
I know that this is probably not what you want to hear, but I guess without further analysis of history it is impossible
analyze this remotely :-(


crashes an launch

Already reported ? *

[x] I have searched the existing open and closed issues.

Regression?
No
System Info and Version
 System/Version info
Linux archvm 6.11.3-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 10 Oct 2024 20:11:06 +0000 x86_64 GNU/Linux

Description
Hyprland crashes on start, "failling on Hyprland", crashes in terminal emulator (kitty on gnome) and in clear arch terminal with just text mode
How to reproduce
Nope, I have just installed and that's all
Crash reports, logs, images, videos
Here you have folder with what I found:
link

[LOG] [AQ] Connected to a wayland compositor: GNOME
[LOG] [AQ] Got registry at 0x5e7d4586fef0
[LOG] [AQ] Output WAYLAND-1: initialized
[CRITICAL] m_pAqBackend couldn't start! This usually means aquamarine could not find a GPU or encountered some issues. Make sure you're running either on a tty or on a Wayland session, NOT an X11 one.

GNOME doesn't support necessary protocols for a nested session. Why are you running it on gnome anyways? Please confront the wiki's master tutorial.


DOC: Add docstring to Instrument.extra_repr

Codecov Report

Merging #325 (3ad8022) into develop (0207be5) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop     #325   +/-   ##
========================================
  Coverage    99.87%   99.87%
========================================
  Files           46       46
  Lines         1582     1582
========================================
  Hits          1580     1580
  Misses           2        2

Impacted Files
Coverage Δ

pfhedge/instruments/base.py
100.00% <ø> (ø)

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 0207be5...3ad8022. Read the comment docs.


[cjson/libzen] [vcpkg_cmake_config_fixup] It doesn't fix up the ${_IMPORT_PREFIX}

We found vcpkg_cmake_config_fixup doesn't work for the following ports, It doesn't fix up the ${_IMPORT_PREFIX} in cmake config and targets file. cc @strega-nil

[ ] cjson
[ ] libzen

eg:
cjson-debug.cmake:
#----------------------------------------------------------------
# Generated CMake target import file for configuration "Debug".
#----------------------------------------------------------------

# Commands may need to know the format version.
set(CMAKE_IMPORT_FILE_VERSION 1)

# Import target "cjson" for configuration "Debug"
set_property(TARGET cjson APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG)
set_target_properties(cjson PROPERTIES
  IMPORTED_IMPLIB_DEBUG "E:/vcpkg/src/vcpkg/packages/cjson_x86-windows/debug/lib/cjson.lib"
  IMPORTED_LOCATION_DEBUG "E:/vcpkg/src/vcpkg/packages/cjson_x86-windows/debug/bin/cjson.dll"
  )

list(APPEND _IMPORT_CHECK_TARGETS cjson )
list(APPEND _IMPORT_CHECK_FILES_FOR_cjson "E:/vcpkg/src/vcpkg/packages/cjson_x86-windows/debug/lib/cjson.lib" "E:/vcpkg/src/vcpkg/packages/cjson_x86-windows/debug/bin/cjson.dll" )

# Commands beyond this point should not need to know the version.
set(CMAKE_IMPORT_FILE_VERSION)
  )

Unfortunately this isn't a bug in vcpkg that we should fix, this is a bug in these ports' build systems; we need to fix the build systems instead (and probably add a check to vcpkg-tool)

oh, apparently I misunderstood! thanks @BillyONeal


fallbackViewCreator bug

When I use ViewPump in my project, I found that some views like RadioGroup could not been created by fallbackViewCreator when the layout was first inflated. That's because AppCompatViewInflater.createViewFromTag does not call and  ViewPumpAppCompatDelegate.createViewCompat does not give prefix for creating view.

I am unsure about this, what do you mean by it does not give a prefix?
In my project there does not seem to be any issues with RadioGroups, everything works as expected.
If you can please fork this repository and modify the sample app so it recreates the problem, and post a link to it in this issue. If you want you can also just create a PR that fixes the issue.

Android 7.0 will has this problem, android 9.0 fix it.

I tried it on android 7 in the emulator and on a real device running android 8.1, and could not reproduce the issue. Can you check if this is maybe device specific?

Closing due to inactivity.


how to add a row if Retrieving data asynchronously

I have a CRUD setup, I am loading table from ajax, now when I add a new item I want to push some data into a table but it's not working. I need to call this.$refs.table.refresh(); which hits the server.
How can I data.push(item) into the array show it in the table?
here is my method which fetches data
loadTableData(param) {
    let params  = $.param(param);

    this.tableLoading = true;
    return axios.get(this.url + '?' + params).then((res) => {

        this.tableLoading = false;
        this.result = res.data.data;

        return {
            data: this.result,
            pagination: {
                currentPage: res.data.meta.current_page,
                totalPages: res.data.meta.last_page,
                count: res.data.meta.total
            }
        }
    })
}

Please help, I have used this table in many places,  don't want to try some other data table 😦

@saqueib : Wouldn't you update the object that the table is already using? Therefore allowing Vue to manage that?
So on your requests response you can push the new row of data to the data variable that Vue is already holding for the table.
In my opinion you do not need to do this.$refs.table.refresh();
new Vue({
  el: '#app',
  data: {
    tableData: [] || dataFromPageLoad
  },
  methods:{
    updateTableData: function(){
      // in your ajax response you can do
      this.tableData.push(ajaxResponseData);
    }
  }
});

Gonna close this issue since it looks inactive for now. Feel free to reopen if there's still a problem!


Omit the Global allocator when showing collection types

Now that collections like Vec have gotten allocator support, their representation in IDEs has inflated. For example, I have a function that returns (Vec<Sender<Vec<T>>>, Vec<Receiver<Vec<T>>>). Admittedly, the type is complex, but it's something an experienced Rust programmer parses easily. However, after the allocator support, I now see it as (Vec<Sender<Vec<T, Global>>, Global>, Vec<Receiver<Vec<T, Global>>, Global>) which is significantly more verbose and harder to follow.
Could the analyzer simply omit the allocator if it's the default one, i.e. Global?

We could omit the default types.

Don't we already do that? :thinking:

We do in inlay hints, but not in hover.

Ah, yeah. Was there a reason for that?

I vaguely recall someone saying they want to see the full type, but I'm not sure.
@hniksic can you please post a screenshot?

@hniksic can you please post a screenshot?

Sure, here is an example:

I definitely don't find the full type useful here.

I've been surprised by this too, as I'm expecting to see Vec<Foo> when that's what I've written in my function signature. Seeing this issue, it does make sense, but I initially thought rust-analyzer was wrong.


Add missing Saleor versions to bug report template

<3.1 is no longer supported >3.0 were missing
I want to merge this change because...

Impact

[ ] New migrations
[ ] New/Updated API fields or mutations
[ ] Deprecated API fields or mutations
[ ] Removed API types, fields, or mutations
[ ] Documentation needs to be updated

Pull Request Checklist

[ ] Privileged queries and mutations are guarded by proper permission checks
[ ] Database queries are optimized and the number of queries is constant
[ ] Database migration files are up to date
[ ] The changes are tested
[ ] GraphQL schema and type definitions are up to date
[ ] Changes are mentioned in the changelog

Duplicate of https://github.com/saleor/saleor/pull/10435


Failed to create resource with CF template.

Hello there,
For some reason when I try to load the cloudformation template, it's failing at "DeployingUI" "Custom::LoadLambda".
Here is the stack creation log I have below.  Am I missing some permissions problem?  If anyone can shed me some light I'd be very appreciated.  Thank you!
01:42:49 UTC+0800 | DELETE_IN_PROGRESS | AWS::Logs::LogGroup | ImageHandlerLogGroup |
-- | -- | -- | -- | --
  | 01:42:49 UTC+0800 | DELETE_IN_PROGRESS | AWS::Lambda::Permission | ImageHandlerPermission |
  | 01:42:49 UTC+0800 | DELETE_IN_PROGRESS | Custom::LoadLambda | DeployingUI |
  | 01:42:46 UTC+0800 | ROLLBACK_IN_PROGRESS | AWS::CloudFormation::Stack | test-image | The following resource(s) failed to create: [DeployingUI]. . Rollback requested by user.
  | Physical ID:arn:aws:cloudformation:ap-southeast-1:334446083852:stack/test-image/b1847d30-b455-11e8-a483-500c336e0c1e
  | Client Request Token:Console-CreateStack-049dd5e4-b261-4dd5-bcd7-27f1932efb1b
  | 01:42:45 UTC+0800 | CREATE_FAILED | Custom::LoadLambda | DeployingUI | Failed to create resource. Failed to deploy Image Handler UI
  | Physical ID:original-images-bucket-name/serverless-image-handler-ui/
  | Client Request Token:Console-CreateStack-049dd5e4-b261-4dd5-bcd7-27f1932efb1b
  | 01:42:45 UTC+0800 | CREATE_IN_PROGRESS | Custom::LoadLambda | DeployingUI | Resource creation Initiated
  | 01:42:40 UTC+0800 | CREATE_IN_PROGRESS | Custom::LoadLambda | DeployingUI

The reason was the bucket I specified does not exist (or not a part of my account).  Sorry, closing this issue.


Is there an implementation in Tensorflow?

Thanks for sharing your awesome work!
As title says, I wonder if there's an implementation written in tensorflow
Thanks

Hi, unfortunately yes and no. I wrote one during a project at the university after my Master's, however it was paid by a private company so I could not release it. Anyway, sorry!

Ah.. that's very sad to hear that for me.
I am only an entry-level student in AI and I've been wandering around to find a great reference to learn from. Your materials have got all I really need to easily follow up with nice codes and well-written thesis paper.
I'm also very new to programming, just starting with tensorflow framework, and I don't think I can learn programming in a new framework at the moment..
Sir, then is there any other reference you could recommend? I would very very appreciate it!!

Hi, thanks for the compliments!
Regarding the recommendations, I very much like the online book from Michael Nielsen http://neuralnetworksanddeeplearning.com, which guides very nicely through basics and some advanced techniques in neural networks and also gives nice examples! If you want directly basics on which my thesis builds, probably the best to start with is the paper Long, Jonathan, Evan Shelhamer, and Trevor Darrell. "Fully convolutional networks for semantic segmentation."
As for the framework, I would probably not choose Tensorflow to start with as it might be a bit harder to grasp, but that depends on your programming skills ;) The easiest framework from my POV is PyTorch, which kind of works in the intuitive way (compared to Tensorflow, where building the graph and running the computation in some session might sound a bit scary). Both are in Python, which simplifies a lot of things like quick try/debug iterations and data manipulation etc.
That said, for my Master thesis I chose Caffe because there it forces you to program backpropagation for your custom layers on your own, which means you can learn a lot. Also C++ was probably the language I was the most familiar with.
I hope you have fun!


[Suggestion] Use type="password" for password input field

Some browsers automatically save and fill in the form field contents when it's not a type="password", showing the password in plain text when navigating to a previously-used secrets page.
Plain text could be a toggleable opt-in.

This PR also addresses this issue: https://github.com/mprimi/portable-secret/pull/31


multiply scalar with a nested BlockDataContainer

@epapoutsellis from email:

Ok it works, but now I am getting the following (which I think is sum problem)

  File "/Users/evangelos/Desktop/Projects/CCPi/block_function/CCPi-Framework/Wrappers/Python/ccpi/optimisation/algorithms/PDHG.py", line 58, in PDHG
    y = f.proximal_conjugate(y_tmp, sigma)

  File "/Users/evangelos/Desktop/Projects/CCPi/block_function/CCPi-Framework/Wrappers/Python/ccpi/optimisation/functions/BlockFunction.py", line 56, in proximal_conjugate
    out[i] = self.functions[i].proximal_conjugate(x.get_item(i), tau)

  File "/Users/evangelos/Desktop/Projects/CCPi/block_function/CCPi-Framework/Wrappers/Python/ccpi/optimisation/functions/mixed_L12Norm.py", line 54, in proximal_conjugate
    res = x.divide((ImageData(x.power(2).sum(axis=0)).sqrt()/self.alpha).maximum(1.0))

  File "/anaconda3/envs/blockframework/lib/python3.6/site-packages/ccpi/framework/framework.py", line 807, in sqrt
    return self.pixel_wise_unary(numpy.sqrt, *args,  **kwargs)

  File "/anaconda3/envs/blockframework/lib/python3.6/site-packages/ccpi/framework/framework.py", line 782, in pixel_wise_unary
    out = pwop(self.as_array() , *args, **kwargs )

  File "/anaconda3/envs/blockframework/lib/python3.6/site-packages/ccpi/framework/framework.py", line 340, in as_array
    return self.array

AttributeError: 'ImageData' object has no attribute ‘array'

Briefly, let’s say we have  a = [  [a1,a2], a3 ] where a is BDC,  [a1,a2] is another BDC.  We need somehow to compute

c = np.sqrt( a1^2 + a2^2) which will be now an ImageData
divide [a1,a2] component wise with c, which will give a BDC, i.e., [a1/c, a2/c]

Currently sum gives a number but we want sometimes to add elements of BDC and return ImageData

I'm not sure I understand point 1.
sum is a reduction and returns the grand total.
Please notice that we do not make any assumption regarding the actual geometry of the containers in the BlockDataContainer. So it's not possible to say that c is an ImageData of the size of a1 or a2 as there is no assurance that they will have the same geometry.

The error you get is more worrysome.
AttributeError: 'ImageData' object has no attribute ‘array'

Can attach here what you are doing?

Have a look here
c5 = d.get_item(0).power(2).sum()
in
https://github.com/vais-ral/CCPi-Framework/blob/block_function/Wrappers/Python/ccpi/optimisation/test_nestedblock.py
this should return an ImageData

No, sum returns a number.
## reductions
    def sum(self, *args, **kwargs):
        return self.as_array().sum(*args, **kwargs)

if you want to get

c = np.sqrt( a1^2 + a2^2)
you should do it properly

c = ((a1*a1) + (a2*a2)).sqrt()

which will only work if the geometries of a1 and a2 are compatible.

up to  d.get_item(0).power(2), is a BlockDataContainer that we need to add the two components.
The same effect is when we have multi dim arrays with numpy and we are doing sum(axis=0)
z = np.random.randint(10, size = (2,2,3))
z.sum(axis=0)

Can they be added with +?
On Mon, 18 Mar 2019 at 15:59, Vaggelis Papoutsellis <
<EMAIL_ADDRESS>wrote:

up to d.get_item(0).power(2), is a BlockDataContainer that we need to add
the two components.
The same effect is when we have multi dim arrays with numpy and we are
doing sum(axis=0)
z = np.random.randint(10, size = (2,2,3))
z.sum(axis=0)
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/vais-ral/CCPi-Framework/issues/225#issuecomment-473975551,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJg5CF9ja55iG9bdqKvgHNS1NylW39h5ks5vX7fwgaJpZM4b6DoS
.

I think that this line should fail if you don't have a DataContainer as as_array doesn't exist for BlockDataContainer but only for DataContainer
As i said the two components can be added as c = ((a1*a1) + (a2*a2)).sqrt(), provided that the DataContainers are compatible.

OK, you are right @epapoutsellis ,
d.get_item(0) is BlockDataContainer
d.get_item(1) is DataContainer

I think @epapoutsellis  found the solution of this as

tmp = [ el**2 for el in x.containers ]
res = sum(tmp).sqrt().sum()

This will calculate the square of each element, then sum it as DataContainer of some type, as sum of a list will just call __sum__ on its elements, so as long as they have a __sum__ method that works it'll return something (joys of Python).

Currently a nested BlockDataContainer divided with a DataContainer fails with the following error

x.divide(res, out=out)
# this leads to error
#   File "ccpi\framework\BlockDataContainer.py", line 142, in divide
#     return type(self)(*[ el.divide(other, *args, **kwargs) for el in self.containers], shape=self.shape)
#   File "ccpi\framework\BlockDataContainer.py", line 142, in <listcomp>
#     return type(self)(*[ el.divide(other, *args, **kwargs) for el in self.containers], shape=self.shape)
#   File "ccpi\framework\framework.py", line 814, in divide
#     return self.pixel_wise_binary(numpy.divide, other, *args, **kwargs)
#   File "ccpi\framework\framework.py", line 802, in pixel_wise_binary
#     raise ValueError (message(type(self),  "incompatible class:" , pwop.__name__, type(out)))
# ValueError: ImageData: incompatible class: true_divide <class 'ccpi.framework.BlockDataContainer.BlockDataContainer'>

this would be equivalent, but working

for i,el in enumerate(x.containers):
    el.divide(res, out=out.get_item(i))

I'm not sure that the bug pointed out by @epapoutsellis is really a bug or a missing feature. I believe my previous comment might be more of a bug.

Think I have fixed it in the BlockDataContainer.py
ig = ImageGeometry(3,4)
u =  ig.allocate('random_int')
U = BlockDataContainer(BlockDataContainer(u, u), u)
U/u

self = self.containers[i] is VERY destructive. Don't fix it like that.
I've got it not crashing, but still not correct by adding this here

        elif issubclass(other.__class__, DataContainer):
            # try to do algebra with one DataContainer. Will raise error if not compatible
            if out is not None:
                kw = kwargs.copy()
                for i,el in enumerate(self.containers):
                    kw['out'] = out.get_item(i)
                    el.divide(other, *args, **kw)
                    return
            else:
                return type(self)(*[ el.divide(other, *args, **kwargs) for el in self.containers], shape=self.shape)
        ```

Does not work with divide
res = (sum(x**2).sqrt()).maximum(1.0)
out.fill(x/res)
#x.divide(res, out=x)

I think the current implementation does not work correctly with nested BlockDataContainer.

yes, we need to fix all algebra for DataContainer and BlockDataContainer
and in fact we have to be Commutative
if name == 'main':
M, N, K = 2,3,5
from ccpi.framework import ImageGeometry, BlockGeometry, BlockDataContainer

ig = ImageGeometry(N, M)
u = ig.allocate('random_int')

BG = BlockGeometry(ig, ig)
U = BG.allocate('random_int')

U_nested = BlockDataContainer(BlockDataContainer(u, u), u)

res1 = U + u
res2 = u + U

this code allows is_compatible at this line to run on nested BlockDataContainer
       elif issubclass(other.__class__, DataContainer):
            ret = True
            for i, el in enumerate(self.containers):
                if isinstance(el, BlockDataContainer):
                    a = el.is_compatible(other)
                else:
                    a = el.shape == other.shape
                print ("current element" , el.shape, "other ", other.shape, "same shape" , a)
                ret = ret and a
            return ret
            #return self.get_item(0).shape == other.shape
        ```

ok it works!!! (dont know if it is efficient) but let's focus on algbera of BDC and memopt of it

Actually is not

OK, I partially fixed the divide method with a DataContainer. I guess the same should be valid for the algebra with numbers.
If you pass a list it should do what it does currently + memopt

    def divide(self, other, *args, **kwargs):
        if not self.is_compatible(other):
            raise ValueError('Incompatible for divide')
        out = kwargs.get('out', None)
        if isinstance(other, Number):
            return type(self)(*[ el.divide(other, *args, **kwargs) for el in self.containers], shape=self.shape)
        elif isinstance(other, list) or isinstance(other, numpy.ndarray):
            return type(self)(*[ el.divide(ot, *args, **kwargs) for el,ot in zip(self.containers,other)], shape=self.shape)
        elif issubclass(other.__class__, DataContainer):
            # try to do algebra with one DataContainer. Will raise error if not compatible
            if out is not None:
                kw = kwargs.copy()
                for i,el in enumerate(self.containers):
                    kw['out'] = out.get_item(i)
                    el.divide(other, *args, **kw)
                return
            else:
                return type(self)(*[ el.divide(other, *args, **kwargs) for el in self.containers], shape=self.shape)
        return type(self)(*[ el.divide(ot, *args, **kwargs) for el,ot in zip(self.containers,other.containers)],
                          shape=self.shape)

With #242 I guess this can be closed @epapoutsellis ?


modules: segger: move Kconfig to modules/segger

Move the Segger RTT module Kconfig to modules/segger/kconfig. The Segger debug library is not a driver and should not reside under drivers/debug.

Ping

Updated west.yml with SHA after merge of https://github.com/zephyrproject-rtos/segger/pull/18


Added GMS2 version

Not much to say... just imported the project and stuff.

T'was suprisingly smooth, thank you!


Add config option to make secure container items FiR regardless of raid outcome

Originally written by chomp

Added with: https://dev.sp-tarkov.com/SPT-AKI/Server/commit/0c0b2e773d8ce3e32cf467a5fba32f64c522a5dc

Originally written by chomp


BUG: Prevent File Descriptor Leak

Summary
This PR fixes a file descriptor leak related bug in your codebase. This IS NOT a security bug.
Details
In file openblas_support.py of your project, there's an statement that goes-
_, tmp = mkstemp()

Here, the mkstemp method is being called to create a temporary file. According to Python Documentation, the first argument of the mkstemp method returns the file descriptor associated with the file. It's mandatory that you close the file descriptor after using it. Keeping multiple open file descriptors can eventually lead to file descriptor exhaustion.
Here's How It Works
In Linux/Unix systems, the maximum number of allowed file descriptors is 1024. Among them, file descriptor 0, 1, and 2 are assigned to stdin, stdout, and stderr. Which means only 1021 more file descriptors are allowed to be opened. However, in Windows/NT systems, the maximum number of allowed file descriptors is 8192.
Related Links:

https://docs.oracle.com/cd/E19476-01/821-0505/file-descriptor-requirements.html
https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/setmaxstdio?view=msvc-170#remarks

Proof of Concept
For example, running the following piece of code in Linux or Windows machine will output 1021 and 8189 respectively- which denotes the number of possible open file descriptors before throwing an error.
from tempfile import mkstemp

count = 999_999_999
for i in range(count):
    try:
        _, name = mkstemp()
    except Exception as e:
        print(i)
        print(e)
        break

gh-20074 is actually going to remove this file, although I'm not sure how soon that will land. Maybe it is worth it to pull this in, not sure.

In case you are interested in looking into more file descriptor leaks @fazledyn , gh-19844 claimed to find some potential sources using a pytest fixture given in that PR description


Add autocomplete

:dancer:

Woohoo!
On Sat, Jun 13, 2015 at 21:51 Guillermo López-Anglada <
<EMAIL_ADDRESS>wrote:

Merged #528 https://github.com/guillermooo/dart-sublime-bundle/pull/528.
—
Reply to this email directly or view it on GitHub
https://github.com/guillermooo/dart-sublime-bundle/pull/528#event-330263735
.


Bratseth/typecheck all 2

It turns out we were missing quite a bit of machinery for full type validation in Java. This PR adds it.

@geirst please review as Lester is out.


Publish NPM package each merge

This publishes a package each time we hit merge, so it's easier to try out unreleased frontend changes. It's pushed to a
-main package name to distinguish it from the regular repo.

To spell it out rather than keep it in my head: part of the reason I created a separate package is that there is a max limit of releases in one github npm repo (~300 I think?), and when that happens, I expect we can just delete all old releases in this package. If it was in the main package I would not want to delete stable releases.


Api Guard contructor error

When i make a request to my contoller:
i get this:
Argument 1 passed to Chrisbjr\ApiGuard\ApiGuardAuth::__construct() must be an instance of Chrisbjr\ApiGuard\Contracts\Providers\Auth, null given, called in E:\xampp\xampp\htdocs\2016\api\vendor\chrisbjr\api-guard\src\Providers\ApiGuardServiceProvider.php on line 49 and defined
P.S. I am using laravel 5.2

I just got the same problem and solved it by the following steps.

update your project config/apiguard.php according to the same file in api-guard
add new alias to app.php

'ApiGuardAuth' => Chrisbjr\ApiGuard\Facades\ApiGuardAuth::class

Hi, @astritzeqiri instructions for this can now be found in the README of v3.1.x


Add support for quiet output

This adds an argument -q / --quiet for the ability to add snapraid --quiet argument to scrub and sync commands. this should also make it easier for others to add additional arguments to snapraid_command, such as those without values like the --quiet arg. This feature improves log output for scripted/cron execution.
I welcome feedback.

Thanks for the PR. I don't think this needs to be an option. Progress output was never meant to appear in the log. I filtered it out early on (3699e080102ca21f657cb510044c788b1d3091b0). But it was added again by mistake by setting universal_newlines when python3 support was added.
The --quiet option is of course a way better way get rid of the progress bar. I think it just wasn't implemented yet when I first wrote this script. I am now setting it, see 8acd9315dd0827cd48415d80302900f42c0af667.

Great, thank you! :slightly_smiling_face:

Is there an argument to see the progress output, this is handy in my case, thank you :)


Various problems with volume size option with SolidFire backend

CentOS 7.2
Trident 19.1
Docker CE 18.06.0-ce
Element OS <IP_ADDRESS>1 (SF-Demo VM, but as far as I can tell, its release notes don't indicate it should behave differently to physical clusters)

With -o size=500M we are told to use<PHONE_NUMBER> or larger.
Error response from daemon: create sfBronze: VolumeDriver.Create: encountered error(s) in creating the volume: [Failed to create volume sfBronze on storage pool Bronze from backend solidfire_<IP_ADDRESS>: requested volume size (524288000 bytes) is too small; the minimum volume size is<PHONE_NUMBER> bytes], [Failed to create volume sfBronze on storage pool Gold from backend solidfire_<IP_ADDRESS>: requested volume size (524288000 bytes) is too small; the minimum volume size is<PHONE_NUMBER> bytes], [Failed to create volume sfBronze on storage pool Silver from backend solidfire_<IP_ADDRESS>: requested volume size (524288000 bytes) is too small; the minimum volume size is<PHONE_NUMBER> bytes]

But that is incorrect and should be fixed - neither<PHONE_NUMBER> nor<PHONE_NUMBER> + 1) work (note the error message is now different).
[root@centos72 ~]# docker volume create -d netapp --name sfBronze1 -o type=Bronze -o size=1000000001
Error response from daemon: create sfBronze1: VolumeDriver.Create: encountered error(s) in creating the volume: [Failed to create volume sfBronze1 on storage pool Bronze from backend solidfire_<IP_ADDRESS>: device API error], [Failed to create volume sfBronze1 on storage pool Gold from backend solidfire_<IP_ADDRESS>: device API error], [Failed to create volume sfBronze1 on storage pool Silver from backend solidfire_<IP_ADDRESS>: device API error]

While<PHONE_NUMBER> doesn't work, -o size=999M does which means "1GiB or larger" is not correct either:
[root@centos72 ~]# docker volume create -d netapp --name sfBronze1 -o type=Bronze -o size=999M
sfBronze1

1GiB =<PHONE_NUMBER> bytes, so<PHONE_NUMBER> should work, but it doesn't.
[root@centos72 ~]# docker volume create -d netapp --name sfBronze15 -o type=Bronze -o size=1073741825
Error response from daemon: create sfBronze15: VolumeDriver.Create: encountered error(s) in creating the volume: [Failed to create volume sfBronze15 on storage pool Bronze from backend solidfire_<IP_ADDRESS>: device API error], [Failed to create volume sfBronze15 on storage pool Silver from backend solidfire_<IP_ADDRESS>: device API error], [Failed to create volume sfBronze15 on storage pool Gold from backend solidfire_<IP_ADDRESS>: device API error]

Last but not least there's an undocumented (as far as I can tell) limit of (around) 8TiB.
[root@centos72 ~]# docker volume create -d netapp --name sfBronze15 -o type=Bronze -o size=8700G
Error response from daemon: create sfBronze15: VolumeDriver.Create: encountered error(s) in creating the volume: [Failed to create volume sfBronze15 on storage pool Gold from backend solidfire_<IP_ADDRESS>: device API error], [Failed to create volume sfBronze15 on storage pool Bronze from backend solidfire_<IP_ADDRESS>: device API error], [Failed to create volume sfBronze15 on storage pool Silver from backend solidfire_<IP_ADDRESS>: device API error]

[root@centos72 ~]# docker volume create -d netapp --name sfBronze15 -o type=Bronze -o size=7950G
sfBronze15

Do you have the trident debug logs with api tracing enabled for these commands? Almost all of them failed with a device api error.

I've seen messages like these.
{
  "context": {
    "ip": "<IP_ADDRESS>",
    "user": "admin"
  },
  "error": {
    "code": 500,
    "message": "Not enough free provisionable space on a single metadata drive.",
    "name": "xSliceServiceSelectionFailed"
  },
  "method": "CreateVolume",
  "params": {
    "accountID": 3,
    "attributes": {
      "docker-name": "sfBronze7",
      "fstype": "ext4",
      "trident": "{\"version\":\"19.01.0\",\"platform\":\"docker\",\"platformVersion\":\"18.06.0-ce\",\"plugin\":\"solidfire-san\"}"
    },
    "enable512e": true,
    "name": "sfBronze7",
    "qos": {
      "burstIOPS": 400,
      "maxIOPS": 200,
      "minIOPS": 100
    },
    "requestAPIVersion": "10.0",
    "totalSize":<PHONE_NUMBER>0000
  },
  "success": false
}

Successfully created volumes were logged like this:
{
  "context": {
    "ip": "<IP_ADDRESS>",
    "user": "admin"
  },
  "method": "CreateVolume",
  "params": {
    "accountID": 3,
    "attributes": {
      "docker-name": "sfBronze15",
      "fstype": "ext4",
      "trident": "{\"version\":\"19.01.0\",\"platform\":\"docker\",\"platformVersion\":\"18.06.0-ce\",\"plugin\":\"solidfire-san\"}"
    },
    "enable512e": true,
    "name": "sfBronze15",
    "qos": {
      "burstIOPS": 400,
      "maxIOPS": 200,
      "minIOPS": 100
    },
    "requestAPIVersion": "10.0",
    "totalSize":<PHONE_NUMBER>
  },
  "success": true
}

Element Demo Node Release Notes do not mention any discrepancy between the max volume size on Demo VM vs. physical appliances (if that proves to be the case I'll file another bug for it): (https://mysupport.netapp.com/tools/info/ECMLP2848232I.html?productID=62139&pcfContentID=ECMLP2848232).
I just noticed requestAPIVersion was 10.0. This invalidates the last point from my issue (above) - I should have set it to 11.0 to be able to specify size >8T and apart from that I should duplicate other issues on a physical appliance.
Questions:
a) Is it acceptable to specify volume size in bytes?
b) Can actual minimum and maximum sizes for Element OS 11 API be documented, or should we refer the user to Element OS API documentation?

I tried to create 8TB volume on Element Demo VM  <IP_ADDRESS>1 and although it should either report the same error (not enough MD capacity) or create the volume, instead it reports CreateVolume Failed: totalSize must be less than<PHONE_NUMBER>00 cVolumeSizeMaxLimit=107374182400. I created an Element Demo VM issue for that.

@scaleoutsean I'm working on reproducing this with a real SF system. It looks like this is a issue with how Trident is interpreting ambiguous size units vs your expectation. When no unit is given, -o size=10, the size will be interpreted as GiB. This is why your<PHONE_NUMBER> and<PHONE_NUMBER> failed, that size is far too large as GiB. To use bytes, append b to end. A similar issue is happening with M. Trident sees that as MiB. The minimum size of a SolidFire volume is 1GB, not 1GiB, so 999MiB is still large enough. If you try 999MB you will see it fail
root@ubuntu:~# docker volume create -d netapp --name sfBronze3 -o type=Bronze -o size=999Mb
Error response from daemon: create sfBronze3: VolumeDriver.Create: encountered error(s) in creating the volume: [Failed to create volume sfBronze3 on storage pool Bronze from backend solidfire_<IP_ADDRESS>: requested volume size (999000000 bytes) is too small; the minimum volume size is<PHONE_NUMBER> bytes], [Failed to create volume sfBronze3 on storage pool Gold from backend solidfire_<IP_ADDRESS>: requested volume size (999000000 bytes) is too small; the minimum volume size is<PHONE_NUMBER> bytes], [Failed to create volume sfBronze3 on storage pool Silver from backend solidfire_<IP_ADDRESS>: requested volume size (999000000 bytes) is too small; the minimum volume size is<PHONE_NUMBER> bytes]

Oh, another Tebibytes Shmebibytes situation...
The SolidFire API specifies the size in bytes:
http://solidfire.github.io/sdk-dotnet/help/html/T_SolidFire_Element_Api_CreateVolumeRequest.htm
Here the default is G but that doesn't mean GB but GiB. Maybe this is not confusing for both ONTAP and E-Series users. Personally I see this as unnecessarily ambiguous (to assume that G stands for GiB rather than GB)
The SolidFire UI also defaults to G, but the other G (GB), because while the volume size is expressed in bytes, it's rounded to nearest 1MB). GiB is the next choice in drop-down list.

The b appendix isn't documented, so maybe that could be added to the Trident docs.
Because the minimum volume size in G(i) is well over the minimum volume size in bytes, to me it'd make sense to read any integer as the size in bytes (e.g.<PHONE_NUMBER>0), as bytes is the default (and although in some cases (ONTAP?) both byte and MiB/MB might work, I think most people would consider for storage capacity no unit = byte unit.
(I didn't have time to check to the source code when I was submitting the bug, but I imagine most users don't).
Do you want to add the b thing to Trident docs so that I can close this?
For the remaining issue (unable to create 8TB volume in SF-Demo VM), I'd follow up on it internally.

@scaleoutsean The behavior is clearly documented in the link you provided, including the B suffix:

Volume sizes are expressed as strings containing an integer value with optional units (e.g. “10G”, “20GB”, “3TiB”). If no units are specified, the default is ‘G’. Size units may be expressed either as powers of 2 (B, KiB, MiB, GiB, TiB) or powers of 10 (B, KB, MB, GB, TB). Shorthand units use powers of 2 (G = GiB, T = TiB, …).

True. Sorry about this - I looked at the page in a case-sensitive way...
The other issue (unable to create large volumes) turned out to be an undocumented limitation (bug in release notes) of SF-Demo 11.0 (and earlier), so now I can close this issue.


Consider alternate licensing

The current AGPL-3.0 license makes this a non-starter for many workplaces. Considering this is a helper app for the main Nautik app, I would kindly ask that you consider a more permissive license that would be more amenable to use in corporations with legal departments.

Thanks for bringing this up! There's no good reason for AGPL here to begin with, so we've just released 1.0.5, now relicensed to Apache-2.0.


Class providers using class name doesn't support custom classloaders

A lot of frameworks and applications can use custom classloaders for loading of classes. Actual annotations TargetClassForName and RandomClassForName doesn't support the possibility for set the classloader which will load the class.

Adjusted annotations for class providers.


Use of requireChild schema attribute

During the HED Working Group meeting, it was made clear that the library must be open to non-professionals who wish to annotate findings since we are solely adopting the vocabulary and are not providing any application with the essential subtypes of findings and properties.
Therefore, the requireChild schema attribute was removed from any tag that does not takes a value (a # leaf node) as requireChild should ONLY be used when essential. Note that “Other-” tags should remain with requireChild schema attribute.
See the CHANGES file for full details.
The schema had no validation issues and was successfully converted.

@dorahermes can you review and okay --- then we can merge.....


Update html espace with django safe

🍰 🍰 🍰 🍰 🍰 🍰 🍰 🍰 🍰 🍰 🍰 🍰 🍰 🍰 🍰 🍰 🍰 🍰 🍰 🍰 🍰 🍰 🍰 🍰 🍰 🍰 🍰 🍰 🍰 🍰 🍰 🍰 🍰 🍰 🍰 🍰 🍰 🍰 🍰 🍰 🍰


Issue/147 upgrade notice

After the merge of Free and Pro are completed displaying an upgrade notice doesn't make any sense no more.

Hey Thomas,
thank you for the pull request. I tested it and will merge it right away.


fix assets release

The assets release workflow was breaking, see https://github.com/lf-edge/eve/actions/runs/4840159952
The cause was that the checkout action was happening after some of the assets were created. checkout can wipe out the contents of the current directory.
This does several things:

Moves checkout to the first step
Removes the rm -rf assets && mkdir -p assets  to its own step, so it is very clear when and where it is happening
Adds assets/ to .gitignore, so we do not have any issues with an apparently dirty git repo after checkout and then creating things in assets.
Uses the existing checkout in the step Pull the EVE release from DockerHUB or build it  rather than trying to check out again
Ensures that the one step that did a cd assets (Pull the EVE release from DockerHUB or build it) works out of root and explicitly paths things to assets/

Nope. I've wanted that for a long time. I've even asked contacts at GitHub over the years. No such luck.


SMTP without TLS doesn't work

Hi Matt,
Thank you for developing such application! It fills a gap which allows you to avoid having to run a mqtt broker!
I'm trying to use the SMTP alerts but I think there is a problem.
My SMTP relay is in my LAN, and does not need to authenticate or the use of TLS/SSL to send emails.
So, when  frigate-notify is about to sends the alert, it gives me this error even if I specified the TLS option in the Yaml:
2023/11/29 19:24:46 Checking for new events...
2023/11/29 19:24:46 Found 1 new events.
2023/11/29 19:24:46 Event ID<PHONE_NUMBER>.839471-y31jy3 detected person in zone(s): []
2023/11/29 19:24:46 Event Start time:  2023-11-29 19:24:33 +0100 CET
2023/11/29 19:24:51 Failed to send SMTP message: dial failed: STARTTLS mode set to: "TLSMandatory", but target host does not support STARTTLS
2023/11/29 19:24:51 SMTP alert sent
2023/11/29 19:25:21 Checking for new events...

Here is the alert section of my config file:
alerts:
  general:
    title: "Frigate_Alert"

  smtp:
    enabled: true
    server: <IP_ADDRESS>
    port: 25
    tls: false
    user:
    password:
    recipient: xxx<EMAIL_ADDRESS>
Do you have any idea where the problem could come from?
I saw the import of the variable in smtp.go#L17, but I'm not sure it is reused in the SendSMTP function.
Many thanks for your help!

Hi there! Thanks so much for using this app!
I took a quick look & can replicate your issue. I must never have tested this, since I have my instance set to use Gmail's SMTP relay. I do have a local unauthenticated relay on my LAN - where I can see the same issue occuring
As it turns out, the module I'm using for SMTP has mandatory TLS enabled by default. So it must have just slipped by that I wasn't using the SMTPTLS variable.
Should be a quick fix though & I can push out a new version once it's resolved!

Hi there - Just a quick update. I released a new version that contains fixes for your issue. There is an updated docker image here. I am running into an issue at the moment getting the binaries built - but I hope to look at that some more tomorrow.


🐞 - TuiPdfViewerService does not support long label

Which @taiga-ui/* package(s) are the source of the bug?
kit
Please provide a link to a minimal reproduction of the bug
https://taiga-ui.dev/stackblitz
Is this issue blocking you?
Non-Blocking
Description
When TuiPdfViewerService#open called with long label and viewport width is not enough to display it, then it wraps to the next line, but header height does not increase, which leads to overlay of the label on viewer content
Angular version
12.2.17
Taiga UI version
2.64.0
Which browsers have you used?

[X] Chrome
[ ] Firefox
[ ] Safari
[ ] Edge

Which operating systems have you used?

[X] macOS
[ ] Windows
[ ] Linux
[ ] iOS
[ ] Android

Needs white-space: nowrap + ellipsis.


Add more compatibility tests for BatchedArray

Codecov Report
Patch and project coverage have no change.

Comparison is base (9f63476) 100.00% compared to head (49d722b) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #356   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           14        14
  Lines         1586      1586
  Branches       171       171
=========================================
  Hits          1586      1586

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


Will you support multiple levels for IncludeOptimized and IncludeFilter?

Hi
Have you have plane add support multiple levels for IncludeOptimized and IncludeFilter? How in standart inslude

include("Property.SubProperty")

We already support somehow this feature.
You simply have to specify every level to make sure it included.
ctx.IncludeFilter(x => x.Property)
   .IncludeFilter(x => x.Property.SubProperty);

Let me know if that answer correctly to your question.

It's working it if property is class but not for collections

Here is the code for collection
ctx.IncludeFilter(x => x.Property)
   .IncludeFilter(x => x.Property.Select(y => y.SubProperty));

Let me know if that example is working for your question.

Thank you for quickly answer and help. That help me.


Ecovacs IqTimeout Exception

Home Assistant release with the issue:
0.77.1
Last working Home Assistant release (if known):
Operating environment (Hass.io/Docker/Windows/etc.):
Raspbian
Component/platform:
Ecovacs
Description of problem:
After this error (below in traceback) the Ecovacs component seems to shut down.  Commands don't work and status isn't updated.
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
ecovacs:
  username: 'xxx'
  password: 'xxx'
  country: 'us'
  continent: 'na'

Traceback (if applicable):
2018-08-31 11:07:01 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=vacuum, service=turn_on, service_data=entity_id=vacuum.downstairsvacuum>
2018-08-31 11:07:01 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/home/homeassistant/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/service.py", line 224, in _handle_service_platform_call
    await getattr(entity, func)(**data)
  File "/home/homeassistant/homeassistant/lib/python3.6/site-packages/homeassistant/components/vacuum/__init__.py", line 387, in async_turn_on
    partial(self.turn_on, **kwargs))
  File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/homeassistant/homeassistant/lib/python3.6/site-packages/homeassistant/components/vacuum/ecovacs.py", line 151, in turn_on
    self.device.run(Clean())
  File "/home/homeassistant/homeassistant/lib/python3.6/site-packages/sucks/__init__.py", line 414, in run
    self.send_command(action.to_xml())
  File "/home/homeassistant/homeassistant/lib/python3.6/site-packages/sucks/__init__.py", line 411, in send_command
    self.xmpp.send_command(xml, self._vacuum_address())
  File "/home/homeassistant/homeassistant/lib/python3.6/site-packages/sucks/__init__.py", line 480, in send_command
    c.send()
  File "/home/homeassistant/homeassistant/lib/python3.6/site-packages/sleekxmpp/stanza/iq.py", line 233, in send
    raise IqTimeout(self)
sleekxmpp.exceptions.IqTimeout: <iq id="xxx"<EMAIL_ADDRESS><EMAIL_ADDRESS>type="set"><query xmlns="com:ctl"><ctl td="Clean"><clean type="auto" speed="standard" /></ctl></query></iq>

Additional information:
This appears to be where it's failing.
@OverloadUT we need to handle IqTimeout (and probably IqError) exceptions, probably by just ignoring them for now.  Not sure if that should happen in the sucks library or in the Ecovacs component.

Thanks for this report. Currently, the sucks library does not handle the connection being interrupted, which is something that I need to add for sure.

@OverloadUT any progress on this?  I can work on it if you don't have time.  I think all we need to do is wrap the send() in send_command and send_ping with a try / except and ignore IqTimeout and IqError exceptions?

Hi @joe248 - unfortunately no progress yet. There are a couple other issues that I plan to fix as a higher priority now that I've got some time to write some code.
If you'd like to take this on, you are certainly welcome to. If you don't have the time, you can also rest assured that I will get to it myself eventually :)

@OverloadUT - any word on this?  I had this component working in 0.79 but then when I moved to 0.80 and now 0.81 it doesn't seem to load; I get the following message:
Setup of platform ecovacs is taking longer than 60 seconds. Startup will proceed without waiting any longer.


Fix autolamella example

I tried to run the the autolamella example today and ran into several issues, feel free to merge individual commits if you don't agree with my solution for any of the others:

321dd4c93ef473701a91631df5dc7a32cebcbcb3 solves two issues with the examples/autolamella.py, namely that os.path.join expects str or bytes not int and that sample can't be unpacked (looking at the rest of the code I assumed an enumerate was missing here.
cb26082cd386bc7a4a65c6401a861d19e6d2f9e3 deals with the fact that the script does not give the required positional argument reduced_area to beam_shift_alignment. Looking at the code it is only used for acquire.new_image(microscope, settings=image_settings, reduced_area=reduced_area), where None is an acceptable default, so I also added that as a default to this function.
220507a93052eac310c5ee2953b9bc33dda5eb84 deals with the fact that the log_current_figure requires the (optional) package liftout. This was not installed on the machine I ran, so I rewrote the code so liftout is not required for that function.
7293f357fb7536ccbcf3035a355dba3f4e8495f3 cleaning_cross_section is now a required keyword for a milling protocol so I added it to example/protocol_autolamella.yaml

These look good, thanks @sroet. I will merge once I get back on the hardware to test (~1week)

Hmm, it seems like you started requiring signed commits, let me rebase and squash with with signing turned on

@patrickcleeve2 All set, this should be ready for a merge! thanks for the review


Document that vertex displacement isn't visible in overdraw debug mode

See #24232.
Should be remade separately for the 3.2 branch.

Thanks!

@clayjohn I suppose it's mostly useful if you work with depth prepass disabled or the GLES2 renderer. That said, debug draw modes aren't reimplemented in GLES2 yet.


steps for traccar setup

hi all,
I need help
I installed the traccar server on windows server2008 with public IP address
and I had login by browser with this IP:Port  " <IP_ADDRESS>:8082   " with admin/admin.
My GPS device name AVL05 or 06 and the messages that I sent to SIM card are:
*000000,011,net.asiacell.com,,#
*000000,018,300,999#
*000000,015,0,<IP_ADDRESS>,5005#
*000000,016,1#

After that I add the IMEI for GPS in traccar server.
The problem I cloud not see my GPS .
Is all those steps right ?
Please I need help

When I installed the Traccar software in windows 10, which host number should I use instead of 8082 to synch up with traccar client? and how to configure firewall with this?
Regards

@raliam, have you looked at the dates on this thread? Please never comment on an old closed thread.
As for your question, port for Traccar Client is always 5055 by default.

Okay dear;
Regards!


Question: Token acceptance

Problem:
We are running this script on an FME server (FME Flow), and therefore not explicitly logged into the portal via ArcPro
We confirmed that within the FME PythonCaller we can SignInToPortal / get a token, but this is not persisting to the NetworkAnalysis.
Below traceback is run locally (FME Form) when I am not logged in to the portal via arcpro, and reproducible on FME Flow
The LargeNetworkAnalysis tool only accepts the url, and in the parallel processing the login is not recognized with the SignInToPortal (I hypothesize this is because of an env to env issue)
Context: our credentials expire every 12 hours so logging in the portal via the server manually is not feasible. The ideal would be to pass a token or client id to the function as we have the credentials, but no way to pass them to the parallel processes. We tried passing the output from arcgis.gis.GIS to the network analysis the Network_Data_Source kwarg, but this was rejected
Is there a way to pass a token to the network analysis?
Validating OD Cost Matrix settings...
Getting tool limits from the portal...
Inputs successfully validated.
Copying input origins and destinations to outputs...
Using ExportFeatures
Spatially sorting input dataset OutOrigins
Spatially sorting input dataset OutDestinations
Intermediate outputs will be written to C:\Users\WYMcCuneE\AppData\Local\Temp\2\wbrun_1718904936427_10396\fmetmp_6\scratch\ODCM_73939de13d924bdc9f61b71810d5a08e.
Error initializing OD Cost Matrix analysis.
ERROR: Traceback (most recent call last):
ERROR:   File "\\servername\FME_Flow_Share\resources\engine\Plugins\Python\python39\large-network-analysis-tools\parallel_odcm.py", line 763, in _validate_od_settings
ERROR:     odcm.initialize_od_solver()
ERROR:   File "\\servername\FME_Flow_Share\resources\engine\Plugins\Python\python39\large-network-analysis-tools\parallel_odcm.py", line 154, in initialize_od_solver
ERROR:     self.od_solver = arcpy.nax.OriginDestinationCostMatrix(self.network_data_source)
ERROR:   File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\_na\_odcms.py", line 82, in __init__
ERROR:     super().__init__(in_network)
ERROR: ValueError: Not signed into Portal '<portal_url>'.
Error in parallelization subprocess.
ERROR: Traceback (most recent call last):
ERROR:   File "\\servername\FME_Flow_Share\resources\engine\Plugins\Python\python39\large-network-analysis-tools\parallel_odcm.py", line 1108, in launch_parallel_od
ERROR:     od_calculator.solve_od_in_parallel()
ERROR:   File "\\servername\FME_Flow_Share\resources\engine\Plugins\Python\python39\large-network-analysis-tools\parallel_odcm.py", line 790, in solve_od_in_parallel
ERROR:     self.optimized_cost_field = self._validate_od_settings()
ERROR:   File "\\servername\FME_Flow_Share\resources\engine\Plugins\Python\python39\large-network-analysis-tools\parallel_odcm.py", line 763, in _validate_od_settings
ERROR:     odcm.initialize_od_solver()
ERROR:   File "\\servername\FME_Flow_Share\resources\engine\Plugins\Python\python39\large-network-analysis-tools\parallel_odcm.py", line 154, in initialize_od_solver
ERROR:     self.od_solver = arcpy.nax.OriginDestinationCostMatrix(self.network_data_source)
ERROR:   File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\_na\_odcms.py", line 82, in __init__
ERROR:     super().__init__(in_network)
ERROR: ValueError: Not signed into Portal '<portal_url>'.
ERROR: Parallelization using parallel_odcm.py failed.

This is a really interesting question.  I have no idea what the solution is off the top of my head, but I'll consult with some colleagues and get back to you.

Sorry for the lack of response here.  We're still trying to make sense of what's going on.
Here are some thoughts and ideas based on what I think I understand so far:
The tool itself doesn't do anything to sign in to the portal being used.  It inherits the state from the caller (in your case, FME).  This seems to be a problem if running the tool takes a very long time because your login expires, and the tool doesn't do anything to refresh it.
A simple/hacky solution would be to just add a call to arcpy.SignInToPortal() somewhere within the part of the tool code that does the OD cost matrix analyses in parallel.  I suggest adding an else statement here: https://github.com/Esri/large-network-analysis-tools/blob/master/parallel_odcm.py#L122-L124
        if not self.is_service:
            self._make_nds_layer()
        else:
            arcpy.SignInToPortal(username, password)

I had thought that SignInToPortal requires you to put in your username and password in plain text, but it looks like they have enhanced it to also work with tokens.  So maybe depending on how you're doing this, you could check the current token's expiry time, and generate a new one if needed, all in that area of code.
Note that SignInToPortal only works with certain types of authentication for Enterprise portals.  But if you're using ArcGIS Online, that probably won't matter.
Does this help you at all?

Hi @mmorang thanks for looking into this;
We did modify the code starting at line 703 in helpers.py in a similar fashion; with your suggestion, we don't have a way to pass username and password to the tool from FME, or a token. So, we are storing the creds in the server itself for access, and this is working so far.
It is preferential to not reference username/password in code whatsoever, to reduce the chances of a password ever appearing in a log or traceback.
I could not get SignInToPortal to accept a token ; it would raise a "Token is not a valid kwarg" ; we are using Esri Python 3.9.
If we implemented the signintoportal where you suggest, where should the token exist / be passed? We noticed that in the FME Python caller environment could be signed in to the portal, but this access wouldn't persist to the parallel jobs environments.
I will DM you the snippet of our workaround


x/tools/cmd/gomvpkg: fails on build problems elsewhere in the GOPATH

Was calling
gomvpkg -from github.com/jmhodges/foobar/baz -to github.com/jmhodges/foobar/quux
and gomvpkg errored out with
While scanning Go workspace:
Package "github.com/jmhodges/serve": /Users/jmhodges/src/github.com/jmhodges/serve/serve.go:1:1: expected 'package', found 'IDENT' ypackage.
Package "github.com/dominikh/go-mode.el/indentation_tests": found packages dangling_operator.go (main) and gh-10.go (gh10) in /Users/jmhodges/src/github.com/dominikh/go-mode.el/indentation_tests.
gomvpkg: failed to construct import graph.

These packages are unrelated and it would be nice for gomvpkg to be able to build errors in unrelated areas. This might have to be an additional feature of buildutil.

What if the package in error uses the old import of the
package being moved?
I think gomvpkg is working as intended here. If you
don't care about that package, then it shouldn't be
in the GOPATH when invoking gomvpkg.

Well, the short answer is to emit a log message, and move on because if they care about it, they'll run into the build issue and run gofmt -r or sed to fix it.
I understand your point. However, it seems likely that most folks will have dirty GOPATHs.  Even popular projects like bmizerany/pat had multiple packages in an example directory, breaking these tools when they hit it, for a very long time. We all accumulate checkouts of projects either aren't up to our standards or depend on other things.
Expecting each engineer to track every dependency of things that they, say, only use a simple binary of, and then expect them to know how to fix them to run a refactoring tool on their own code is is a lot to ask of them. Not all of us are senior engineers who can just dive in and know how to fix the problem and do so quickly. And those senior engineers that do are often the ones most strapped for time.
On top of that, it's often recommended that $GOPATH be set to $HOME (I even recommend it!) and I think the users could be forgiven for trying to reuse a directory named ~/src.  This is going to become a worse problem, not a better one, over time.
Finally, Lots of the same tools that use buildutil are also going to have to learn about partially compiling projects in order to perform useful refactors just like IDEs can do. These errors from gomvpkg/buildutil are just a part of that same use case. Engineers are often performing changes in multiple files at once, but know that they can get it back to a resolvable form. Nice refactoring tools accommodate that.
We can't get every open source project and its dependencies to be perfect in their repositories, and we can't stop folks from putting things in $GOPATH that don't build, and we can't fix up the code for them if they're too strapped for time or experience, but we can make the tools do nicer things when they do.

actually, i don't think it's recommended to run gomvpkg with a huge GOPATH
because it could potentially touch a lot of packages, some of which might
not be intended.
A better way is to synthesize a temporary GOPATH, with just the packages
you care about, and run gomvpkg there.