Custom theme not applied

I'm trying to add my custom theme, but it isn't applied. it seems that the problem is that the official material theme has a mixin with the same name @mixin mat-datepicker-theme($theme)
@import '~@angular/material/theming';
@import '~@coachcare/datepicker/theming';

@mixin theme($theme) {
  @include angular-material-theme($theme);
  @include mat-datepicker-theme($theme);
}

I have the same problem!
My theme.scss
// ...
@import '~@coachcare/datepicker/theming';

@include mat-core();
// ...

@mixin custom-components-theme($palette) {
  @include menu-theme($palette);
  @include user-menu-theme($palette);
  @include notification-snackbar($palette);
  @include mat-datepicker-theme($palette);
}

.default-theme {
  @include theme-color-grabber($default-theme);
  @include angular-material-theme($default-theme);
  @include custom-components-theme($default-theme);
}

.dark-theme {
  @include theme-color-grabber($dark-theme);
  @include angular-material-theme($dark-theme);
  @include custom-components-theme($dark-theme);
}

Theming got more aligned to Angular Material v11 in the latest version
https://github.com/matheo/angular/tree/master/libs/datepicker#theming


[BUG] Unable to configure KafkaAppender for audit logging with Log4J due to possible library loading race condition

What is the bug?
Unable to configure Auditlogging to use Log4J and the KafkaAppender therein.
How can one reproduce the bug?
Steps to reproduce the behavior:

Follow implementation example in the documentation
Configure a KafkaAppender in log4j.properties
Restart OpenSearch
See error (Audit logs end up on ConsoleAppender with no events being shipped to the KafkaAppender

What is the expected behavior?
OpenSearch audit logging being shipped to Kafka Topic
What is your host/environment?

OS: Ubuntu
Version 20.04
Plugins Aiven-Open/prometheus-exporter-plugin-for-opensearch
Using the tar-release from

Do you have any screenshots?
No
Do you have any additional context?
I'll start off by saying I'm not well versed in Java, so I might have taken some unorthodox steps in trying to debug this, and thus any conclusions or theory I might present might be way off basis and have no grounds in reality.
I had need of pushing the audit events from my OpenSearch nodes to a Kafka topic (namely RedPanda, but that shouldn't matter).
So I followed the instructions in documentation and set up audit to log to log4j
plugins.security.audit.config.log4j.logger_name: audit
plugins.security.audit.config.log4j.level: INFO

And then I configured a KafkaAppender in /etc/opensearch/log4j.properties
Restarting OpenSearch at this point results in NoClassDefFoundError due to kafka-clients being missing.
I thought this strange, as it seems by automated commit history that kafka-clients was being built as a dependency.
In opensearch-security, kafka-clients is present in the plugins lib-path. It is however missing from opensearch.
In an attempt to debug this, I decided to move the kafka-clients-3.5.1.jar from the $OPENSEARCH_HOME/plugins/opensearch-security/-directory to the libpath of opensearch: $OPENSEARCH_HOME/lib/
And did the same for the dependencies slf4j-api and log4j-slf4-impl
This resusltet in opensearch snagging on the bootstrapcheck for "JarHell". In yet another attempt to work around this I decided to remove all plugin libraries of the aforementioned JAR-files.
Doing this resultet in some JavaSecurityPolicy errors that I worked around using:
    permission javax.management.MBeanTrustPermission "register";
	permission javax.management.MBeanServerPermission "createMBeanServer";
	permission javax.management.MBeanPermission "*", "registerMBean";
	permission javax.management.MBeanPermission "*", "unregisterMBean";
	permission java.net.SocketPermission "<ip:port of kafka bootstrapserver>", "connect,resolve";

Applied under the grant {-statement in $OPENSEARCH_HOME/jdk/conf/security/java.policy
Doing all these steps, OpenSearch was successfully loading the right libraries in the right order to be able to start. And was thus posting my audit messages to my Kafka topic.
My theory is that the kafka-clients library being loaded by opensearch-security is creating a sort of racecondition, seems opensearch is loading up Log4J, parses the log4j.properties and tries loading classes for the KafkaAppender, though this class is being loaded at a later place during bootstrap, it returns at NoClassDefFoundError, thus preventing OpenSearch from starting up.

[Triage] Hi @fazir83 thank you for filing this issue. Looks like the security policy may be causing some issues here. Someone will need to take a look.

Yes, that seems to be part of it. Though there mainly seems to be a dependency issue from what I gather, as I had to apply some what seemed to me pretty unorthodox changes (from baseline tar-release, that is) in regards to dependencies to even get the security policy issues to exert themselves

This may be helpful in the meantime: https://github.com/opensearch-project/security/issues/820
Looks like at some this was possible.

#820 Doesn't indicate that this was possible at all. That issue is closed with an unhelpful reference to Log4J documentation. Following these steps (Like I have, above) You'd end up with the issues discussed above.
The Aiven connector you're refering to performs opposite function of what I'm after here. I am trying to get auditlogs generated by OpenSearch to be appended to a Kafka topic. The Aiven connector is a sink functionality in kafka to put events from a kafka topic into an opensearch cluster.

To clarify, I specified the prometheus plugin just to follow the issue template, it has nothing to do with the issue at hand, as far as I'm aware. I have been able to recreate this issue in a freshly built opensearch with opensearch-security from mainline as of right now.

@fazir83 Finally found the solution. You need to use:
plugins.security.audit.type: kafka so as result audit will start to sync in Kafka topic instead of index or log file.
here is the code:
https://github.com/opensearch-project/security/blob/20c524ad994a9cc7d8757999f92f6d2fec6cb8ca/src/main/java/org/opensearch/security/auditlog/sink/SinkProvider.java#L161
Additional properties same as for Kafka client settings:

bootstrap_servers
topic_name

@willyborankin Please take a look at the comment I posted in this issue I had to run through some extreme hoops to actually get that to work since opensearch-security doesn't announce those configuration directives to opensearch, preventing configuration.

@willyborankin Please take a look at the comment I posted in this issue I had to run through some extreme hoops to actually get that to work since opensearch-security doesn't announce those configuration directives to opensearch, preventing configuration.

@fazir83 Got it. I will re-open the issue you mentioned.

@fazir83, thank you for the investigation. It definitely does not work properly, given the fact that we have a test for it.


Updated docs of Compliance

Refs #231
Instructions to review the pull request
Make sure docs render correctly by building docs site
pip install -e .[dev]
cd docs
rm -rf _build apidocs
make html
google-chrome _build/html/apidocs/howfairis.compliance.html

Thanks for reviewing


Use stdbool.h when including utypes.h in C code.

Why this pull request is closed ? It's not fixed in master branch, and so clients using stdbool still cannot compile (see for example Transmission open bug https://trac.transmissionbt.com/ticket/4528).

This was closed due a Github bug. If the author deletes the fork and creates a new one all the old pull requests will be closed.


validation: Pull parameter names from QueryParam, FormParam, and PathParam

Currently jersey resource paramere validation returns arg0, arg1, etc... for parameter names.  This PR adds a ParameterNameProvider that attempts to pull parameter names from QueryParam, FormParam, and PathParam annotations before falling back to the old behavior.

What version of dropwizard are you using, as I believe that this was resolved in 1.0?
The implementation foundation is potentially better as it hooks into parameterNameProvider

I'm using 1.0 - without this change I was still seeing arg0, arg1, etc.

Can you post an example or add a test case?

Coverage increased (+0.05%) to 82.344% when pulling 7fccc79bfb01c1e6343a194f8a2777a67b31b64f on cmicali:master into 7295c5faf42840325c161cc82ad4ed1db2bf8419 on dropwizard:master.

@cmicali, there needs to be something that's reproducible or this PR may be closed.

@nickbabcock re-submitted as #1734


OTBR lost some frames when sending data to multiple end devices at the same time

Hi there, I find that the OTBR lost some frames when it transmits the data from the Cloud Platform to the multiple end devices at the same time.
I have 5 End devices whose Thread Roles are all MED, these End Devices communicate with the Cloud Platform via COAP protocol. I can send commands from the Cloud Platform to the end devices; I sent the same command to the 5 devices at the same time, but not all the devices can receive the command every time, so I caught the network frames in the OTBR wpan0 interface and caught the Thread frames via the sniffer, the result shows that the 5 frames which include the command have arrived the OTBR wpan0 interface, but only 4 of them sent to the end devices by the OTBR via the OpenThread RCP. (like the picture shows)
wpan0 frames:

sniffer frames:

The information as follow:

Git commit id: f0bd2166467464c3fac23b28f7669179ee9ba332
IEEE 802.15.4 hardware platform: NRF52833DK
Thread Version 1.1
RCP software: ncs1.8.0/nrf/samples/openthread/coprocessor (ncs1.8.0)
OpwnWrt Version: stable release 21.02
the Thread network key(Master key): 93864f17ccd7f13f1834a738907994f6
the .pcapng files: pcapng_files.zip

I am not sure what is causing the problem, so I come for help.
Thanks in advance

@jwhui
Thanks for your reply, I've tried again, and the output is as follows file.  I got the log only when the problem happened, and I noticed that the ”counters IP“ can directly show that the problem happened, the “Tx failed” of “counters IP” would increase by 1, sometimes, so did the "Rx failed" ethier.
OT_CLI_counters.log

Closing stale issue.


Server: switch to middleware-based stack

Related to #12, discussion continued from #21. I think there are three options here:

Build fusion server on top of an existing framework (i.e. hapi, koa, or express)
Split out core functionality of fusion and then provide middleware for various frameworks
Using one of the integrations from (2), additionally provide a standalone server product

Option 1:
I think the main advantage with this option is that we retain more control and potentially have a more rigid API surface for third-party plugins. The downside is that, as a standalone server, this would be difficult to integrate with existing Node apps. Furthermore, if the idea is to have users flesh out their API on top of fusion, everyone is probably going to wish we'd picked the framework they're already most familiar with.
However, we could potentially abstract away the differences between server middleware and fusion plugins into a single unified API.
Option 2:
This seems to be the most flexible option. Even if we only roll out official middleware for one of the frameworks, people could write middleware for their favorite framework based on fusion-core. It also integrates well with existing Node apps and doing so would look something like:
// express example
var fusion = require('express-fusion');
app.use(fusion());

The big question here is how to do plugins. Any non fusion-specific functionality like authentication would just be framework-specific middleware, which would also be true using option (1). The obvious answer is for the fusion middleware (in this case express-fusion) to accept plugin configuration that gets passed down to fusion-core.
Option 3:
Possibly bridges the gap a bit between (1) and (2). We get all the benefits of (2) in that you can still bring your own Node server, but we still basically provide solution (1) for people who don't want to deal with any of that.

This was brought up again in #511 with some additional discussion:

Well express is kinda big for this, since it's meant for dynamic serving. We just need to serve files from a directory, give 404s on missing, give 500 on errors, pick the right mime-type etc. All stuff we've got coded ourselves at the moment (and not particularly cleanly). Plus, this wouldn't be used if the user is integrating Horizon into an existing app, only in the config/backendless mode

@deontologician I've been talking to @dalanmiller recently and we've been trying to figure out at what point it makes sense to just adopt an existing server framework. With things like routing, static file serving, and authentication I've been feeling like we're right on the tipping point.

I don't think it matters how "big" it is. The important part is interoperability which is why I think express is probably the clear winner. Being able to attach arbitrary PassportJS strategies to your Horizon server is clearly a huge win over our existing solution. The same is true for this issue and things like CORS from #239. I think it would benefit everyone if we could push people towards existing middleware solutions rather than rolling our own.

Also note that just because we pick a framework, that doesn't mean we're giving up on attaching Horizon to your framework of choice. It's really straightforward to attach an express app to an existing http.Server instance.

Recently a user in slack ran into the issue of specifying validation rules in embedded horizon. We should make sure there's some way to get access to the validation/permissions in whatever middleware solution we end up going with

I for one would really appreciate the ability to use pieces of horizon in my existing product. It's unlikely that I would switch my entire product to use horizon as a backend at this point, however there are pieces of my stack that share functionality with horizon and I would love to sync up efforts if possible.
As an example, I've rolled my own sort of reql-over-websockets internally and frankly it pales in comparison to what horizon offers. It would be fantastic to be able to simply drop that functionality into my project and contribute back to you guys. The "middleware play" here seems to be very much a win-win for the community at large, in that horizon's existing functionality could essentially be maintained while providing the lower-level community a set of power tools with which to build their rethinkdb backed websites.
Is it possible to get an update from the team on where your head is at on this issue, and where we could potentially help with the effort?

I think the roadmap for this particular issue is to get the plugin system (#588) in place which will require some refactoring of the server code. At that point we'll be in a better position to design a middleware api

This might actually be co-requisite with plugins, since we'll likely want to pull out stuff that Express is doing as part of plugins. One of those things horizon-server is doing now is serving /auth_methods/, (see #641 )


JS and JSS in uppercase and lowercase works in different ways

OrientDB Version: v2.2.28
Java Version: 1.8.0_144
OS: Windows 7 x64
Expected behavior
Commands should be case-insensitive.
Resulf of  JS print('Hello World!') should be the same as  js print('Hello World!').
Actual behavior
orientdb {db=StarterHabr}> JS print('Hello World!')
Hello World!

Client side script executed in 0,002000 sec(s). Value returned is: null

orientdb {db=StarterHabr}> js print('Hello World!')
[Started multi-line command. Type just 'end' to finish and execute]
end
Hello World!

Client side script executed in 0,002000 sec(s). Value returned is: null

Uppercase command JS and  JSS run the command and not goes to interactive javascript mode.
Lowercase version js and jss goes to interactive javascript mode.
Steps to reproduce
Type and run in console:
 JS print('Hello World!')
 js print('Hello World!')

Hi @likemusic
Thank you very much for reporting, I just checked the docs and you are right, the console is not working as expected. I'm fixing it now
Thanks
Luigi

Hi @likemusic
I just pushed a fix on 2.2.x, it will be available in v 2.2.29
Thanks
Luigi


Highlight control flow keywords with a different color (3.x)

3.x version of #33577.
This makes them easier to distinguish from other keywords.

Maybe add a screenshot to your op?

I updated the control flow keyword color to match the master pull request.

I don't like too many colors, it will dazzle me. If you really want to add, you can provide different options of themes.

@244164401 Please keep discussion on the feature on the "main" pull request: https://github.com/godotengine/godot/pull/33577#issuecomment-826283524

Rebased and tested again, it works successfull. Script thumbnails in EditorFileDialog also use the new colors correctly, although you'll have to clear your Godot cache while the editor is closed to update thumbnails.

Thanks!


Use separate connection for read/write

@fabriziosestito we found a bizar bug again: with many concurrent (large) writes it seems like the HTTP2 window size fills up and the persistent subscription stops sending events for ~10 seconds. Using two connections fixes this issue.
I have a reproducible script for this if you want poke around yourself but for now I think this is an acceptable solution.

@dvic hey  yes could pleaase link me a gist with the script. I am curious to check it out!

@dvic hey yes could pleaase link me a gist with the script. I am curious to check it out!

Sure! https://gist.github.com/dvic/a2177efd0d95fc6ff755b2650928cbca

now that https://github.com/NFIBrokerage/spear/issues/87#issuecomment-1496430632 is fixed i think we can revert this one?


Glue Crawler configuration

Ability to configure glue crawler or a "click to" to the console to allow editing of crawler classification and crawler settings.
currently required to go find glue crawler in console and make updates before being able to crawl files that need specific classification, this would be useful for Line of business users that are just uploading a onetime csv dataset and are not familiar with AWS console.

Nice feature! Thanks for adding it @chamiles

We evaluated this issue, The requirements for this issue seems to be equivalent to recreating glue console in data.all and is not highly requested as of now. Feel free to reopen this if its still a requirement.


WIP - #1048: Better namespace

?
!

Type
improvement

BC Break
yes

Fixed issues
#1048

Summary
As mentioned in the opened issue/feature request this PR is aimed to align the project namespace to the actual project name for consistency.
I couldn't run the DB integration tests because I don't have a proper local setup but I noticed travisci will take are of that.
I hope it helps.

Hi @debo
Thanks for the PR. As mentioned in the issue, this is a huge BC break and all code examples in the issues that have the namespace in them will become invalid.
Also it would make sense to move the packagist namespace at the same time, to only have one big switch.
@akalongman @jacklul @php-telegram-bot/developers
What's your views on merging this change?

I think its ok, but it should be included in a major 1.x.x release.

Yes, I appreciate is a breaking one and it requires a major, I just wanted to help in the meantime. I’m going to update the examples and the docs where required because I didn’t think about those. Marking this as WIP in the meantime then.

I started updating the rest of the code to reflect this change.
https://github.com/php-telegram-bot/ansible-role-php-telegram-bot/pull/1
https://github.com/php-telegram-bot/example-bot/pull/38
https://github.com/php-telegram-bot/laravel/pull/22
https://github.com/php-telegram-bot/support-bot/pull/37
https://github.com/php-telegram-bot/telegram-bot-manager/pull/56
I already noticed that builds are now failing. I'll investigate why soon.

Thanks @debo
Basically, we "just" need to get the main changes in that are required to release v1.
To name a few:
#232 #817 #826 #831

No problem, I'll have a look at those in the next days maybe and try to help you out with those too.

@debo Looks like the tests are failing because the namespaces of the test files need to be updated too.

@noplanman which is already the case if you look at the PR... also, unless I'm overlooking something this
Class 'Longman\TelegramBot\Tests\Unit\TestCase' not found in /home/travis/build/php-telegram-bot/core/tests/unit/Entities/EntityTest.php:23

Doesn't even exists.

@debo Looks like your branch wasn't rebased / updated correctly, so I've merged develop in and fixed the problematic namespace declaration 👍

That's weird... it was freshly forked and rebase from upstream is one of the first thing I do as part of my workflow. Glad we sorted this out. I'm going to have a look at the build for the bot manager which is failing as well.

We're doing a partial rewrite for v1 and consider this during the development.


How to extend this lib to support swagger UI.

If it possible to extend this lib to support swagger UI then it will be more easy access data.

I don't know much about swagger internals. They use yaml spec to generate frontend (Im guessing) and backend. Is there a way to convert mysql schema to swagger/openapi spec easily ?

Closing this as currently swagger ui is not in scope.


Use ManuallyDrop instead of forget

Backports a fix suggested by @alexcrichton in #22  to *nix impl.

Nice!


Update sap-connector.adoc

report broken link; recommend directing developers to read about Maven profiles which simplify multi-platform (ie most orgs) environments

Do not merge this PR. There is another branch being used for updates to SAP Connector.


CVODE

Summary:
cvode support in CmdStan
Intended Effect:

Include cvode header files in the build process.
Build cvode libraries.
Link cvode libraries.

How to Verify:
Build a model using the new integrate_ode_cvode function.
Side Effects:
None.
Documentation:
May need some more.
Reviewer Suggestions:
@betanalpha

:+1:


21132 - Mbuti - Lat-lon corrections for songs 253-255

Lat-lons for songs songs 253-255 are incorrect but location listed (Mbau-Mbili, Beni, North Kivu, Democratic Republic of the Congo) is correct. Looks like a "-" was just applied to the latitude by mistake. Correct to 0.65, 29.5.

Suggestion implemented


FinalReviewCheckoutAction component

FinalReviewCheckoutAction component
Summary
This component just wraps the CartItems and CartSummary components, passing isReadOnly to CartItems.
Unlike the other actions, it does not have a "complete" state (does not need a renderComplete static method on it). It is expected that status will always be "incomplete" for this item in the actions list.
Props
It should have a cart prop with the whole cart. It should gather data off the cart to properly pass all necessary data down to CartItems and CartSummary components.

:tada: This issue has been resolved in version 0.33.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Missing (blog) announcement that CWA now informs about BMG recommended boosters

Where to find the issue

https://www.coronawarn.app/de/blog/2021-11-04-cwa-booster-notification/
https://www.coronawarn.app/en/blog/2021-11-04-cwa-booster-notification/
https://www.coronawarn.app/de/faq/#vac_cert_booster_info (also out of date as BMG recommendations are also send)
https://www.coronawarn.app/en/faq/#vac_cert_booster_info (also out of date as BMG recommendations are also send)

Describe the issue
CWA is also sending out booster notifications to everyone who is included in the recommendation from the BMG. This makes a lot of the stuff written in the FAQ entries linked from https://www.coronawarn.app/de/faq/#vac_cert_booster outdated.
Also, there was no announcement about this change.
Suggested change
Update the FAQ section and announce this change!

@dsarkar or/and @larswmh
Will you be able to take a look at this soon?

@Ein-Tim's comment that booster notifications from the Federal Ministry of Health are also being provided, in addition to ones from STIKO, is still true today. There has however been no update made to the FAQ which makes no mention of recommendations from BMG:
https://www.coronawarn.app/en/faq/#vac_cert_booster_info
"The Corona-Warn-App (CWA) will notify the user to consider a booster vaccination if certain conditions are met. These conditions are based on the recommendations of the Paul Ehrlich Institute and the Permanent Vaccination Commission (STIKO) of the Robert Koch Institute (RKI)."
BNR-DE-0300 from https://distribution.dcc-rules.de/bnrules
says:
"The Federal Ministry of Health recommends that all persons who have not had a proven case of the coronavirus (SARS-CoV-2) and who obtained their base vaccination more than six months ago arrange a vaccination appointment or discuss the benefits of getting a booster shot with their doctor. Scientific studies confirm that booster shots provide a higher level of protection against becoming infected with COVID-19. As your saved certificates indicate that you belong to this group of persons and have not yet received a booster shot, we would like to inform you of this recommendation. (Rule BNR-DE-0300) This notification is exclusively based on the certificates stored on your smartphone. The data was processed on your smartphone. No data was transferred to the RKI or third parties."
"Das Bundesministerium für Gesundheit (BMG) empfiehlt allen Personen, bei denen keine Infektion mit dem Coronavirus SARS-CoV-2 nachgewiesen wurde und deren Grundimmunisierung über 6 Monate her ist, einen Impftermin zu vereinbaren bzw. sich über den Nutzen einer Auffrischimpfung ärztlich aufklären zu lassen. Wissenschaftliche Studien belegen die höhere Schutzwirkung von Auffrischimpfungen vor einer COVID-19-Infektion. Da Sie laut Ihrer gespeicherten Zertifikate dieser Personengruppe angehören und noch keine Auffrischimpfung erhalten haben, möchten wir Sie auf diese Empfehlung hinweisen. (Regel BNR-DE-0300) Dieser Hinweis basiert ausschließlich auf den auf Ihrem Smartphone gespeicherten Zertifikaten. Die Verarbeitung der Daten erfolgte auf Ihrem Smartphone. Es wurden hierbei keine Daten an das RKI oder Dritte übermittelt."

This issue is also related to https://github.com/corona-warn-app/cwa-documentation/issues/754 regarding the technical implementation of the booster notification rules not being updated to the STIKO announcements.

Suggested change
Update

https://www.coronawarn.app/en/faq/#vac_cert_booster_info "How do I become aware of booster vaccinations in the context of Corona?"
https://www.coronawarn.app/de/faq/#vac_cert_booster_info "Wie erfahre ich von Auffrischimpfungen im Kontext von Corona?"

to add "Federal Ministry of Health" / "Bundesministerium für Gesundheit (BMG)" as source of booster recommendations to conform with the text transmitted in Rule BNR-DE-0300.

@dsarkar Will you address this issue soon? It's now open for more than 4 months, without any feedback from the team.

@Ein-Tim Would you like to provide a PR with your suggestion? Then I would get internal review and possibly approval for this change. Thanks.

After assessing the situation I think there are meanwhile no recommendations for booster vaccinations anymore from the BMG.
Everything is covered by the STIKO, but the rules which CWA sends at the moment are so out of date that they still talk about recommendations from the BMG.
I did not find any recommendations for boosters only from the BMG anymore.
Here's a link to the page "Aktuelle Informationen zur COVID-19-Impfung", specially to the paragraph "Auffrischungsimpfung": https://www.bundesgesundheitsministerium.de/coronavirus/faq-covid-19-impfung.html#c23765
@MikeMcC399 Maybe you could double check this when you have time but I did not found any boosters recommended by the BMG but not by the STIKO at the moment.
If this is actually the case I'd like to wait for the updated booster notification rules and see whether they still include a booster recommendation from the BMG.

@Ein-Tim

I don't really know what @dsarkar's expectation is, if he is encouraging you to submit a PR. He would have to say that himself and it was unclear whether you were suggesting to submit a PR for a blog post, FAQs or both.

Until there is some concrete news from RKI / Open Source Team about changes to the booster rules used in CWA I don't think it makes sense to have a new blog announcement. In any case the information needs to come from them as an official source, not from the community. I can't see any recent feedback in https://github.com/corona-warn-app/cwa-documentation/issues/754 about content or time frames for booster recommendation changes.

For the FAQs I don't know what could be changed in the FAQs if here the BMG booster recommendation used in the app is not aligned with BMG's web content.

CWA will (hopefully) soon not send any booster notification for BMG recommended boosters anymore, so this issue's obsolete and now closed.


Create glitter chat to the repository

Create glitter chat to the repository
Note: Also add the glitter badge to the readme file

Created a PR


issue #714

added: from django.utils.safestring import mark_safe
and: mark_safe
solve the issue
Description:
Description of your changes.
New imports / dependencies:

package

Unit Tests:

apps/volontulo/tests/views/test_auth.py

What tests do I need to run to validate this change:
Description of testing workflow and potential affected places.

Codecov Report

Merging #718 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #718      +/-   ##
==========================================
+ Coverage   91.78%   91.78%   +<.01%
==========================================
  Files          88       88
  Lines        2666     2667       +1
  Branches        4        4
==========================================
+ Hits         2447     2448       +1
  Misses        213      213
  Partials        6        6

Impacted Files
Coverage Δ

backend/apps/volontulo/views/offers.py
73.07% <100%> (+0.13%)
:arrow_up:

Continue to review full report at Codecov.

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


feat: add cdx:pipenv namespace

As discussed with @jkowalleck - add cdx:pipenv namespace taxonomy to implement https://github.com/CycloneDX/cyclonedx-python/issues/474

caused by https://github.com/CycloneDX/cyclonedx-python/pull/534
set it to "DRAFT" as long as the implementation is not final.


Renaming keys / removing keys

I have a component which i use for chunks to just store the last time it was ticked and I would like to rename the key. The problem is that when I rename it and start the game and load into a world I get a bunch of warnings saying "Failed to deserialize component: unregistered key (old key)". Everything works fine but the warnings are annoying. Is there any way to get rid of those warnings?

These warnings should only display once, but if you want to avoid them you can release an intermediary version with a key that serializes absolutely nothing (e.g. using TransientComponent), registered with the old component ID.

The warnings still display when I rejoin the world, but using TransientComponent worked for me. Thanks!

Here, added a wiki page that may be helpful : https://github.com/OnyxStudios/Cardinal-Components-API/wiki/Migrating-components-(removing-them-or-changing-their-ID)


Feature request: ignore non-exporting glyphs from Glyphs files

In Glyphs.app, you can set glyphs to non-exporting. If there are some issues with these glyphs, Glyphs doesn't care upon export. Fontmake, however, works on the entire file. Can we have an --ignore-nonexporting option for Glyphs input?

The ground work for this has been done, now glyphsLib needs to learn about the new public.skipExportGlyphs property. fontmake will then do the right thing without any switch.
https://github.com/googlei18n/glyphsLib/issues/515

Great, thanks @madig !

I think this is now the default behavior in fontmake 2.0.


Sprint5

Merging latest changes including new tilesets, map, images and code.

New tileset yaaasss #hype


[TE] rest-api - harleyjj/rca - add forecast as baseline option for me…

…tric/timeseries endpoint

Seems like one of the test failed. Could you take a look?

Seems like one of the test failed. Could you take a look?

@bryantachen This looks like a pinot test failure, which is probably unrelated to the PR

@jihaozh @bryantachen This one is passing tests after the rebase


3D perlin noise Terraingeneration

For now its just a 2D noise function generating a height map for which all blocks underneath get set to some solid blocks.
This doesn't allow for overhanging terrain or caves :/

^
|
Does not include any kind of fade, for higher / lower blocks, could be used for planet gen, not for 'heightmap' gen tho.


PDF Preview

Describe the feature you'd like
Hello everyone,
Is it possible to upload a PDF document and display it not only as a URL, but also as a preview so that the content of the PDF is displayed on the page?
Currently I can only display a PDF as a link on the page.
Best regards
Describe the benefits this would bring to existing BookStack users
You can see the content of the PDFs directly on the page instead of downloading all the PDFs, over and over again.
Can the goal of this request already be achieved via other means?
Unfortunately no
Have you searched for an existing open/closed issue?

[X] I have searched for existing issues and none cover my fundamental request

How long have you been using BookStack?
1 to 5 years
Additional context
I am very satisfied with Bookstack

I would like this also.  It is not very useful to have the pdf download every time.

Insert this code in Customize HTML
``

https://github.com/BookStackApp/BookStack/issues/3586

Greetings @247no2,
Have you tried specifying the ALLOWED_IFRAME_SOURCES variable in the .env file and setting the allowed sources from which you want previews? For example, I use this method to preview Google Forms or external PDFs inside my BookStack.
Kind regards, Kilian GOËTZ.

Thanks for the suggest @247no2, but I'd considered this already covered by existing issues #705 and/or #1270 so I'll therefore close this off.

With the code and your own URL, you are now running. Thank you

`

`


[1.12.2] Add Comforts compatibility

Hey Random, I'm the developer of the Comforts mod. I saw that your mod wasn't compatible with mine, so I tried to work out some sort of solution for that. Towards that effort, I've pushed out a new update of Comforts that has the IMC support that's integral to this pull request.
Basically, this PR will use IMC to communicate the additional filtering that RandomTweaks provides for mobs in the sleep check. Comforts will process this here and then here, and then use that in its sleep handler. That part is pretty straightforward.
The tricky part is that since this allows Comforts to do the correct filtering itself, we need to then make sure that the RandomTweaks sleep handler doesn't fire, but only for Comforts. The implementation in this PR exits the handler if the bed block is from Comforts (you could clean this up a little by using instanceof checks for the exact Comforts blocks, but that would require you to add Comforts as a library and I wasn't sure if you wanted to do that). This mostly works, but it does break the auto-sleep sleeping bag config option from Comforts. All things considered, I think that's an acceptable loss and I might be able to figure out a workaround eventually on my end. Until then, I can just disable that config option if RandomTweaks is loaded.
There's also one small fix that I wrote in the process of doing this. You were using AxisAlignedBB#expand, which is one-directional. The correct method is AxisAlignedBB#grow, which is omni-directional.
Please let me know if you'd like changes made, or if you know of a better method that we could implement. I'd like our mods to be as compatible as possible.

Thanks, this looks pretty good.

@TheIllusiveC4 This doesn't work for the Sleeping Bag as it is placed after the event is called. Any ideas?

I could make a check to see if the event is being called by Comforts and ignore it.


Wrong Cocoapods source url

pod install hangs at "Downloading specs".
This is because the Cocoapods team changed their hosting.
Check this out: LINK
TLRD:
Change the first line of "Podfile" to "source 'https://cdn.cocoapods.org/" instead of the Github thing.

Here's the new issue over at cordova-ios:
LINK


Escape terms

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

9 of 9 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
66

Relevant Lines:
66

💛  - Coveralls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

9 of 9 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
66

Relevant Lines:
66

💛  - Coveralls


Status Code 3000

Dear All,
where can I find an explanation what does Status Code 3000 mean?
e.g. 'Status': {'Code': 3000, 'Description': 'OK', 'Exception': None}
Thank you.
Best regards,
Alex

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

ID: 12d0e3ab-b65f-9910-6ef7-acdfa526cee7
Version Independent ID: c024e106-98ea-18fe-09dd-97ab1deb5bcf
Content: Text Moderation - Content Moderator
Content Source: articles/cognitive-services/Content-Moderator/text-moderation-api.md
Service: cognitive-services
Sub-service: content-moderator
GitHub Login: @sanjeev3
Microsoft Alias: sajagtap

@AlexanderTodorovic Thanks for the feedback. Status code 3000 means that the request response is good. More details about the codes can be found in this swagger document.

@AlexanderTodorovic We will now proceed to close this thread. If there are further questions regarding this matter, please tag @RohitMungi-MSFT in your reply. We will gladly continue the discussion and we will reopen the issue.

Thank you!


Update dependencies, null safety, and method signatures

This pull request includes several updates to dependencies, code refactoring, and improvements to null safety checks. The most important changes are updating package versions, improving null safety, and refactoring code to resolve Dalamud errors caused by object references and null states.
Dependency Updates:

Updated DalamudPackager package version from 2.1.13 to 11.0.0 in Avarice/Avarice.csproj.
Updated DalamudApiLevel from 10 to 11 in Avarice/Avarice.json.

Null Safety Improvements:

Added null checks for PositionalManager and currentProfile in ReceiveActionEffectDetour method in Avarice/Memory.cs to prevent potential null reference exceptions. [1] [2]

Code Refactoring:

Replaced ImGuiEx.ImGuiLineCentered with ImGuiEx.LineCentered in Draw method in Avarice/ConfigurationWindow/TabProfiles.cs as ImGuiLineCentered is obsolete.
Removed nullable types from ComboCache class in Avarice/Data/ComboCache.cs to simplify the code and ensure non-null values. [1] [2] [3]
Changed return type of GetPositionalParameters method in Avarice/Positional/PositionalManager.cs from nullable to non-nullable.

Thank you!


Model input shape vs score.py input shape

I was working through this repository about deploying models with Azure and noticed that the model input shape is (1,6). However, in both 06_Model_Deployment and 07_CICD_Pipelines, score.py expects an input of shape (1,7) and tries to pass that shape to the model.
When using https://github.com/PacktPublishing/EngineeringMLOps/blob/master/12_Model_Serving_Monitoring/inference.py,  I am giving an array of shape (1,7).
This throws the error that either I should change the input shape or the model.
Is there something wrong in how I am creating the model or in consuming it?

Hi rzvcs
I am facing the same issue. where you able to sort out?

@CliveRobson , I don't recall the full set of things that I did. I do recall the issue is from the model being built for a data shape of (1,6) while the score files try to push data of shape (1,7). That is, data is 1 array of 6 or 7 elements, respectively.
I would suggest either to review how the model is defined or to change these lines and push data of shape (1,6).

Schema for Model_Deployment score.py
Array reshape for Model_Deployment score.py
Schema for Model_Deployment score.py
Array reshape for Model_Deployment score.py

I am not expecting these to be the correct changes for these learning docs, but it would be something to have in mind when going through the docs - the model input is not uniform across the files and it's not fully explained why. Hope this helps.

@rzvcs Hi, Yes i noticed that in chapter 5 - (Model evaluation) we are passing the data shape as (1,6) but in the score.py it is (1,7).. and I am also facing an issue in inferencing the data after the ACI deployment, Anyway i am not able to find a clear explanation but i will check in the resources that you have shared...Thanks a lot


Bugs found in evaluation that may lead to failure

When conduct evaluation using suite at llm/src/evaluation,  code raise exception for reasons as following:
1 encode not indicated when loading json file:
with open(dir, 'r') as j:
    json.load(j)

default encode 'gbk' cannot load in our output, but we can only use 'utf8' to keep align with given database and description file.
Thus it would be better to explicitly indicate encode like this:
with open(dir, 'r', encoding='utf8') as j:
    json.load(j)

this problem can be found at:
# `llm/src/evaluation.py`
line 9, line 55, line 65

# `llm/src/evaluation_ves.py`
line 80, line 90, line 132

2 type error after loading json
output file is organized as following format:
[
  [
    "What is the highest eligible free rate for K-12 students in the schools in Alameda County?",
    "SELECT MAX(`Free Meal Count (K-12)` / `Enrollment (K-12)`) as HighestEligibleFreeRate  FROM frpm  WHERE `County Name` = 'Alameda'  AND `Free Meal Count (K-12)` IS NOT NULL  AND `Enrollment (K-12)` IS NOT NULL  AND `Enrollment (K-12)` > 0\t----- bird -----\tcalifornia_schools"
  ],
  [
    "Please list the lowest three eligible free rates for students aged 5-17 in continuation schools.",
    "SELECT T1.`Free Meal Count (Ages 5-17)` / T1.`Enrollment (Ages 5-17)` AS Eligible_Free_Rate  FROM frpm AS T1  INNER JOIN schools AS T2  ON T1.`CDSCode` = T2.`CDSCode`  WHERE T2.`EdOpsName` = 'Continuation School' AND T1.`Free Meal Count (Ages 5-17)` IS NOT NULL AND T1.`Enrollment (Ages 5-17)` IS NOT NULL ORDER BY Eligible_Free_Rate ASC  LIMIT 3\t----- bird -----\tcalifornia_schools"
  ],
  [
    "Please list the zip code of all the charter schools in Fresno County Office of Education.",
    "SELECT T2.`Zip`   FROM frpm AS T1   INNER JOIN schools AS T2   ON T1.`CDSCode` = T2.`CDSCode`   WHERE T1.`Charter School (Y/N)` = 1   AND T1.`District Name` = 'Fresno County Office of Education'\t----- bird -----\tcalifornia_schools"
  ],
...
]

after sql_data = json.load(fp), we found data type of 'sql_data' is 'list' but not 'dict', so 'sql_data.items()' may be not appropriate
    if mode == 'gpt':
        sql_data = json.load(open(sql_path + 'predict_' + data_mode + '.json', 'r', encoding='utf8'))
        for idx, sql_str in sql_data.items():
            ...

we can fix bug by just delete  '.items()' easily
this problem can be found at:
# `llm/src/evaluation.py`
line 56

# `llm/src/evaluation_ves.py`
line 81

3 evlauation params required
when calculating VES, we found param --diff_json_path is required, if not, it may cause error in evaluation_ves.
And we cannot see any execution result after a long running time, bacause result can only be printed after compute_ves_by_diff， which must need param --diff_json_path . so i recommend set it required at first, to remind user in the begining.
this problem can be found at:
# `llm/src/evaluation_ves.py`
line 163

@coding-fish Thank you for your interets in our work and great suggestions! We will consider this carefully and refine our code soon. For the second suggestion, I remembered I already convert the result list into json in line 227 of llm/src/gpt_request.py. And I re-run the code which seems it's normal. We will keep refining our code and sorry for inconvenience brought here.


Need a way to know what version of infer# is installed.

This makes discussion about problems / missing features much more meaningful.
Perhaps something like
run_infersharp.sh --version
?

Also --help -h -? that show the options.
and --verbose showing the progress information for aiding troubleshooting, but it should not be included by default. Unix tools have the convention that "no news is good news".


feat(sources): update resource-spec

⚠ This Pull Request updates daily and will overwrite all manual changes pushed to the branch

Updates the resource-spec source from upstream. See details in workflow run.

Automatically created by projen via the "update-source-resource-spec" workflow

To work on this PR, please create a new branch and PR. This prevents your work from being deleted by the automation.\nRun the following commands inside the repo:\nconsole\ngh co {{ steps.create-pr.outputs.pull-request-number }}\ngit switch -c fix-pr-{{ steps.create-pr.outputs.pull-request-number }} && git push -u origin HEAD\ngh pr create -t "fix: pr#{{ steps.create-pr.outputs.pull-request-number }}" --body "Fixes {{ steps.create-pr.outputs.pull-request-url }}"\n

To work on this PR, please create a new branch and PR. This prevents your work from being deleted by the automation.
Run the following commands inside the repo:
console
gh co {{ steps.create-pr.outputs.pull-request-number }}
git switch -c fix-pr-{{ steps.create-pr.outputs.pull-request-number }} && git push -u origin HEAD
gh pr create -t "fix: pr#{{ steps.create-pr.outputs.pull-request-number }}" --body "Fixes {{ steps.create-pr.outputs.pull-request-url }}"

To work on this PR, please create a new branch and PR. This prevents your work from being deleted by the automation.
Run the following commands inside the repo:
gh co {{ steps.create-pr.outputs.pull-request-number }}
git switch -c fix-pr-{{ steps.create-pr.outputs.pull-request-number }} && git push -u origin HEAD
gh pr create -t "fix: pr#{{ steps.create-pr.outputs.pull-request-number }}" --body "Fixes {{ steps.create-pr.outputs.pull-request-url }}"```

To work on this Pull Request, please create a new branch and PR. This prevents your work from being deleted by the automation.
Run the following commands inside the repo:
gh co 349
git switch -c fix-pr-349 && git push -u origin HEAD
gh pr create -t "fix: PR #349" --body "Fixed #349"


chore: upgrade jx3-gitops-repositories/jx3-terraform-azure to version 0.2.1

from: https://github.com/jenkins-x-terraform/terraform-jx-azure.git

Maybe don't merge this one as there seems to have an error with it: https://kubernetes.slack.com/archives/C9MBGQJRH/p1623197045403700?thread_ts=1623101112.351800&cid=C9MBGQJRH

/hold

we've not imported this repo into our cluster yet so PR wont get automatically merged


Feature request: polars-u64-idx (bigidx) build

Comment:
Just as pypi has a bigidx build, it'd be great if that were available on conda-forge as well.

+1

I would be happy to help get this setup if someone could point me in the right direction?

Hi @bgianfo, thank you for wanting to contribute to this feedstock. For additional builds with special features, you would add additional outputs to this feedstock that enable the bigidx feature for the build. This feedstock can then create a second package output polars-u64-idx. You can take a look at the tensorflow-feedstock https://github.com/conda-forge/tensorflow-feedstock/blob/main/recipe/meta.yaml as they do. (And probably use every conda-build feature you would ever need, but most of it is not required here)


Send MessageLoaded every time Option

I think it will be useful to manually choose how to track opens - on first open only or on every open.

Could be flawed though if you opt for "first" because some providers pre-load images via a proxy and that counts as "opened" before the message has even been seen.

To tell the truth I need the second variant. Cause the open webhook is posted only one time now.


[Update Request]: DuckStudio.ChineseGit version 2.9 not a Pre-release version

What type of update are you requesting?
A change to the package metadata
Current Package Identifier
DuckStudio.ChineseGit
Package Version
2.9
Please describe the changes you would like to see
Remove tag - pre-release

https://github.com/microsoft/winget-pkgs/pull/164755

Update manifest: DuckStudio.ChineseGit version 2.9 #164755


IDateTimeContent Does not deseralize from Redis property

Brief bug description
We are using redis caching, when serlizing and deserlizing a IDateTimeContent property it will not serlize the properties.
We beleive this is because the DateTimeContent is a sealed class
Other properties such as IRichTextContent are not sealed and work as expected
Repro steps
Using ToBSON() on an object using IDateTImeContent won't serlize the the IDateTImeContent property correctly
Expected behavior
Date and timezone properties are seralized correctly
Test environment

Platform/OS: .net core 7, windows

Hi @shgreig-mtm , thank you for bringing the defect to my attention. I will look into this use-case and let you know if I can fix it.

Hi @shgreig-mtm. I tried the further scenario on my personal small project and I didn't manage to reproduce your problem.
I have the project which contains the ContentType with DateTime element and a ContentItem of this ContentType:

I generated a strong-typed model from this project so that DateTime element should be converted to IDateTypeContent type using DateTimeContentConverter:
using Kontent.Ai.Delivery.Abstractions;
namespace Test_DateTimeContent.Model
{
    public partial class Type1
    {
        public const string Codename = "type1";
        public const string DatetimeCodename = "datetime";

        public IDateTimeContent Datetime { get; set; }
        public IContentItemSystemAttributes System { get; set; }
    }
}

Then I created the small application which gets this ContentItem using delivery-sdk-net, serializes an Item from the response to BSON and deserializes it back to the object of my local class. It's impossible to use DateTimeContent type from SDK as it's internal class. Also it's impossible to use model class (Type1) as Datetime and System properties are defined using interfaces.
It works fine for me.
You can find my code below
public class TestDateTimeContent
    {
        private readonly IDeliveryClient _deliveryClient;

        public TestDateTimeContent()
        {
            var customTypeProvider = new CustomTypeProvider();

            _deliveryClient = DeliveryClientBuilder
                .WithOptions(builder => builder
                    .WithProjectId("08256e53-a9ed-01af-880e-3407637e7a5f")
                    .UseProductionApi()
                    .Build())
                .WithTypeProvider(customTypeProvider)
                .Build();
        }

        public async Task Run()
        {
            var response = await _deliveryClient.GetItemAsync<Type1>("item1");
            var bsonString = ToBson(response.Item);
            var deserialized = FromBson<TypeWithDateTime>(bsonString);
        }

        public static string ToBson<T>(T value)
        {
            using (var ms = new MemoryStream())
            using (var datawriter = new BsonDataWriter(ms))
            {
                var serializer  = new JsonSerializer();
                serializer.Serialize(datawriter, value);
                return Convert.ToBase64String(ms.ToArray());
            }
        }

        public static T FromBson<T>(string base64data)
        {
            byte[] data = Convert.FromBase64String(base64data);

            using (MemoryStream ms = new MemoryStream(data))
            using (BsonDataReader reader = new BsonDataReader(ms))
            {
                JsonSerializer serializer = new JsonSerializer();
                return serializer.Deserialize<T>(reader);
            }
        }

        private class TypeWithDateTime
        {
            public DateTimeContent Datetime { get; set; }
            public ContentItemSystemAttributes System { get; set; }
        }

        private class DateTimeContent: IDateTimeContent
        {
            public DateTime? Value { get; set; }

            public string DisplayTimezone { get; set; }
        }

        private class ContentItemSystemAttributes : IContentItemSystemAttributes
        {
            public string Language { get; set; }

            [JsonProperty("sitemap_locations")]
            public IList<string> SitemapLocation { get; set; }

            public string Type { get; set; }

            public string Collection { get; set; }

            [JsonProperty("workflow_step")]
            public string WorkflowStep { get; set; }

            [JsonProperty("last_modified")]
            public DateTime LastModified { get; set; }

            public string Codename { get; set; }

            public string Id { get; set; }

            public string Name { get; set; }
        }
    }

So, it doesn't seem that sealed DateTimeContent class causes some problems when I serialize response to BSON format.
Probably, I missed something important from your use-case. Please, feel free to provide more information so I could help you.

Hi, Stuart is off today.  Just to correct the above issue, its not Serialising that is the issue, but De Serialising because DateTimeContent is a sealed class and as such cannot be used when deserialising.
Is there a reason what this class is sealed, unlike the others like IRichTextContent?
Looking at the code above, and I can see how you have it working. You are specifically telling it to deserialise into the object of your choice. This would not work in a dynamic environment, where the caching is abstracted away, the code would have to know that its a special date type, to be able to deserialise it into the non sealed class.
We are already using '.FromBson' where T is the content type, retreived from the delivery API.
I have pulled down the SDK and can see you are using converters for the Datetime and also the Richtext, however because DateTime is sealed it will never work outside of the SDK?
Is there a way to tell it not to use the Sealed class, dynamically?
Thoughts?
Thanks
John

Hi @johnhydemtm365 , thank you for the clarification of the problem. I guess, there wasn't any specific reason to have this class sealed other than we didn't expect this class to be inherited, as we considered it as internal class for SDK.
I think, it shouldn't be a problem to remove sealed modifier as it makes problem in your case.
I will discuss it with colleagues, just to be sure that I don't miss something important

Hi @dzmitryk-kontent-ai  awesome, if it could be set the same as RichTextContent then all should be good.
If not then, then we will need to look at other options as this is an issue in production at the moment. To get around the issue we have had to revert to memory caching and one instance of the server... which is not ideal for production workloads.

Hi @johnhydemtm365 , @shgreig-mtm . I believe I have resolved the issue with serialization and deserialization of IDateTimeContent to and from BSON. The problem did not lie in the class being sealed, but rather in the lack of knowledge on how to deserialize into the DateTimeContent object. After adding the necessary JsonProperty attributes, the deserialization process started functioning correctly. I have thoroughly tested this scenario, and I am confident that the problem has been successfully resolved.
Furthermore, I discovered that DateTime values were not being serialized and deserialized accurately. Even though the DateTime values initially had the property Kind=UTC, they were being deserialized with Kind=Local. However, I have rectified this issue, ensuring that DateTime values remain absolutely identical, including the Kind property, after serialization and deserialization.
If you wish, you can see the pull request. I'm currently awaiting feedback from my colleague during the code review process, and I anticipate releasing the new version of the SDK by the end of the week.

@dzmitryk-kontent-ai Thank you! I look forward to seeing it deployed soon

Hi @johnhydemtm365 , @shgreig-mtm . The fix is releases with v. 17.7.0. Please, let me know, whether it solved your problem

Hi!
This issue has gone quiet. 👻
It’s been a while since the last update here.
If we missed anything on this issue or if you want to keep it open, please reply here.
Thanks for being a part of the Kontent.ai community!


restart: parallelize reconcile()

The only shared variable m.client is thread-safe, so we can safely parallelize the loops.

LGTM


[Refactor]  refactor ddl executor go on

What type of PR is this：

[x] refactor

Which issues of this PR fixes ：
Fixes # followed https://github.com/StarRocks/starrocks/pull/7581 and  https://github.com/StarRocks/starrocks/pull/7601
Problem Summary(Required) ：
Refactor ddl

[FE PR Coverage check]
:disappointed: fail : 11 / 21 (52.38%)
file detail

path
covered line
new line
coverage

:large_blue_circle:
com/starrocks/execution/CreateFunctionExecutor.java
1
3
33.33%

:large_blue_circle:
com/starrocks/execution/CreateTableLikeExecutor.java
1
3
33.33%

:large_blue_circle:
com/starrocks/execution/CreateTableExecutor.java
1
3
33.33%

:large_blue_circle:
com/starrocks/execution/DropTableExecutor.java
1
3
33.33%

:large_blue_circle:
com/starrocks/execution/DropFunctionExecutor.java
1
3
33.33%

:large_blue_circle:
com/starrocks/qe/DdlExecutor.java
1
1
100.00%

:large_blue_circle:
com/starrocks/execution/DataDefinitionExecutorFactory.java
5
5
100.00%

[FE PR Coverage check]
:disappointed: fail : 11 / 21 (52.38%)
file detail

path
covered line
new line
coverage

:large_blue_circle:
com/starrocks/execution/CreateFunctionExecutor.java
1
3
33.33%

:large_blue_circle:
com/starrocks/execution/CreateTableLikeExecutor.java
1
3
33.33%

:large_blue_circle:
com/starrocks/execution/CreateTableExecutor.java
1
3
33.33%

:large_blue_circle:
com/starrocks/execution/DropTableExecutor.java
1
3
33.33%

:large_blue_circle:
com/starrocks/execution/DropFunctionExecutor.java
1
3
33.33%

:large_blue_circle:
com/starrocks/qe/DdlExecutor.java
1
1
100.00%

:large_blue_circle:
com/starrocks/execution/DataDefinitionExecutorFactory.java
5
5
100.00%


Can't pass an element as choice_label as stated in the docs

The docs  say, I can pass elements as parameters for choice_label.
But this:
import alfred3 as al

exp = al.Experiment()

exp += al.ForwardOnlySection(name="main")

@exp.member(of_section="main")
class DemographicsPage(al.Page):

    def on_exp_access(self):
        p = self
        p += al.NumberEntry(leftlab="Age", name="age")
        p += al.SingleChoiceList(
            al.Image(path="media/myimage.png"),
            leftlab="Job",
        )

...produces a TypeError:
TypeError: Choice label in SingleChoiceList must be string, not <class 'alfred3.element.display.Image'>.

The docs were too imprecise in this case. For most choice elements, the statement in the docs is correct - but not for the special case of a SingleChoiceList. As a dropdown list, the SingleChoiceList is most sensible for lots of different string options - but not for pictures or other elements.
The SingleChoiceList capitalizes on this string-choice-specialization by actually saving the input value as the selected string, which may make it easier to work with compared to other single choice elements (who save choice indexes as integers) in some cases. In order to avoid problems with this kind of input saving, the SingleChoiceList actually forces the labels to be strings.
In the next update, I improved the docs give less cause for confusion.


support for z-wave usb sticks

Controlling and reading z-wave devices via a z-wave USB stick (e.g. the Aeotec Z-Stick Series 2 -- but there are several others which appear to use the same serial-based protocol) would be great -- maybe it would be possible to integrate something like https://code.google.com/p/python-openzwave/ ?

It would be indeed really great to have. The library you linked would be a way to go. It just has one big blocker: it does not support Python 3. Since it is partly implemented as a C extension adding support for Python 3 wouldn't be straight forward.
If there was Python 3 support I would get myself a stick and add it to Home Assistant :-)

Are you sure it doesn't support Python 3?  The C interfacing appears to be done via Cython, which as far as I know supports python 3.2+.  I'll give it a try at some point (if you don't get to it before me! ;), and let you know.

Any progress on the z-wave python lib?

Not from my side.

Haven't done anything with it yet -- I guess it shouldn't be too much work if you want to try to see if it works with Python 3.  Might be a couple of weeks before I get to it, so if you are able to confirm that the python-zwave code runs with Python 3, that would probably be the first step to getting it integrated into home-assistant.

Ok, I found some time (needed an excuse to procrastinate) -- I've created a clone of python-openzwave that seems to be working with Python 3 and a Z-Stick Series 2 device.  Details on how to compile / install are in the PYTHON3.txt file.  Please feel free to submit patches/pull-requests (or I'd be happy to give those interested push access to the repo).
The repo is here:  https://bitbucket.org/edgimar/python3-openzwave

Awesome ! I just ordered a Z-Wave Series 2 stick and a Multi-Sensor so I can start playing with it.
The next step is going to be incorporating your instructions in the Dockerfile so people will be able to easily setup a dev environment. And then let's see how we can connect it to Home Assistant :sunglasses:

I've updated the Dockerfile and you can test it out in the branch feature-openzwave.
To test it:

adjust scripts/dev_docker to point at your Z-Wave usb stick
run scripts/dev_docker
This will open a bash shell inside the docker container
Go to /usr/src/python-openzwave/examples/, adjust hello_world.py to:

point at /usbstick
on line 80, 81: append .encode("UTF-8") to the strings

run python hello_world.py

It currently fails because in api/option.py on line 70 it is running os.join on the passed in path (which is in UTF-8 bytes) with a string. It seems like the files in the api folder need work to be made Python 3 compatible.

When I try running the docker script, I get the following:
Executing 3 build triggers
Step onbuild-0 : COPY requirements.txt /usr/src/app/
---> cf022d84cc69
Step onbuild-1 : RUN pip install -r requirements.txt
---> Running in f0bc99b547ff
2015/02/22 03:10:42 exec format error
2015/02/21 22:10:43 The command [/bin/sh -c pip install -r
requirements.txt] returned a non-zero code: 1
Unable to find image 'home-assistant-dev' locally
Pulling repository home-assistant-dev
2015/02/21 22:10:44 HTTP code: 404
On Sat, Feb 21, 2015 at 9:17 PM, Paulus Schoutsen<EMAIL_ADDRESS>wrote:

I've updated the Dockerfile and you can test it out in the branch
feature-openzwave
https://github.com/balloob/home-assistant/tree/feature-openzwave.
To test it:

adjust scripts/dev_docker to point at your Z-Wave usb stick
run scripts/dev_docker
This will open a bash shell inside the docker container
Go to /usr/src/python-openzwave/examples/, adjust hello_world.py to:

point at /usbstick
on line 80, 81: append .encode("UTF-8") to the strings

- run python hello_world.py

It currently fails because in api/option.py on line 70
https://bitbucket.org/edgimar/python3-openzwave/src/7833dbd8f088fc349652d5a98622f8a3c8861754/api/option.py?at=default#cl-70
it is running os.join on the passed in path (which is in UTF-8 bytes)
with a string. It seems like the files in the api folder need work to be
made Python 3 compatible.
—
Reply to this email directly or view it on GitHub
https://github.com/balloob/home-assistant/issues/20#issuecomment-75415425
.

Looks like building the local image fails:
2015/02/21 22:10:43 The command [/bin/sh -c pip install -r requirements.txt] returned a non-zero code: 1
Do you have access to any more logs ?

Do you mean logs from the container?  If so, the only contents of the
container log is: 2015/02/22 03:16:56 exec format error.
On Sat, Feb 21, 2015 at 10:17 PM, Paulus Schoutsen<EMAIL_ADDRESS>
wrote:

Looks like building the local image fails:
2015/02/21 22:10:43 The command [/bin/sh -c pip install -r
requirements.txt] returned a non-zero code: 1
Do you have access to any more logs ?
—
Reply to this email directly or view it on GitHub
https://github.com/balloob/home-assistant/issues/20#issuecomment-75417150
.

Hmm, weird. I am using OS X 10.10 with boot2docker v1.4.1.

I'm using 32-bit Ubuntu 14.04, with the docker.io package from the standard
Ubuntu repositories.  Perhaps you can reproduce what I'm seeing by
installing/running a 14.04 VM?
On Feb 21, 2015 10:47 PM, "Paulus Schoutsen"<EMAIL_ADDRESS>wrote:

Hmm, weird. I am using OS X 10.10 with boot2docker v1.4.1.
—
Reply to this email directly or view it on GitHub
https://github.com/balloob/home-assistant/issues/20#issuecomment-75418054
.

I'll try it right now.
The requirements.txt file did not change between this branch and the master or dev branch. And both seem to be building fine on the docker registry: master, dev

Can confirm, get same error running Ubuntu 14.04 32-bit in a VM :disappointed:

I have made some changes to get it working on Python 3. Keeping my changes on Google Code in a cloned repo: find it here

Please note, these changes will allow Python 3 to interface with python-openzwave cython code. I have not been able to interface with my USB stick yet.

apparently docker only officially supports 64-bit images, so that's where the "exec format error" was coming from.  There are unsupported 32-bit images available, so if you wanted home-assistant to support 32-bit architectures, you'd need to make a Dockerfile that depends on these 32-bit images -- see https://bugs.launchpad.net/ubuntu/+source/docker.io/+bug/1366509 .

I have just pushed changes to the feature-openzwave branch that will take your Z-Wave sensors and show them in Home Assistant. One card per sensor.
Since you can't use Docker, you can use the new script scripts/build_python_openzwave which should work on any Linux environment that has the build dependencies installed.
Outstanding issues:

not all values populated when Z-Wave fires the network ready event, sensors get setup with incomplete data.
Sensor values are not being updated yet.

Just pushed changes that will have the controller register for updates from the sensor and pushes them to Home Assistant.
Issue for not having the correct data on launch is still there. I might want to add in a refresh.
I am also having an issue with the temperature sensor:

it is not reliable in which unit it is reporting (I can set that, will try that)
when it is reporting in celsius the value is x1000 (ie 20132.72131) (might be some documentation I am missing).

So I found some resources online that stated that there is a firmware bug with my Aeon Labs multi sensor that will report the wrong values for temperature when it is polled. And indeed, when run in a mode where I do not poll but get updates whenever the sensor sees fit it works.
It works but since there are a lot of moving parts I don't feel confident yet to push it out to the dev branch just yet. @edgimar , would you be able to test it? It currently only supports sensors.

Can you provide a working config example that works with zwave devices?  The current example config doesn't contain any zwave specific content, from what I can tell.

[zwave]
usb_path=/dev/ttyUSB0

When I've done nothing but add the zwave section to the config file, the following are some of the debug messages that get printed when running home-assistant (and it doesn't find any devices):
INFO:homeassistant:Bus:Handling <Event service_registered[L]: service=turn_off, domain=homeassistant>
INFO:homeassistant:Bus:Handling <Event service_registered[L]: service=turn_on, domain=homeassistant>
INFO:homeassistant.bootstrap:Home Assistant core initialized
INFO:homeassistant.loader:Loaded group from homeassistant.components.group
INFO:homeassistant.loader:Loaded recorder from homeassistant.components.recorder
INFO:homeassistant.loader:Loaded zwave from homeassistant.components.zwave
INFO:homeassistant.loader:Loaded frontend from homeassistant.components.frontend
INFO:homeassistant.loader:Loaded api from homeassistant.components.api
INFO:homeassistant.loader:Loaded http from homeassistant.components.http
INFO:homeassistant.loader:Loaded history from homeassistant.components.history
ERROR:homeassistant.loader:Error loading homeassistant.components.discovery. Make sure all dependencies are installed
Traceback (most recent call last):
  File "/home/useruser/git_repositories/home-assistant/homeassistant/loader.py", line 116, in get_component
    module = importlib.import_module(path)
  File "/usr/lib/python3.4/importlib/__init__.py", line 109, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 2231, in _gcd_import
  File "<frozen importlib._bootstrap>", line 2214, in _find_and_load
  File "<frozen importlib._bootstrap>", line 2203, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1129, in _exec
  File "<frozen importlib._bootstrap>", line 1448, in exec_module
  File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed
  File "/home/user/git_repositories/home-assistant/homeassistant/components/discovery.py", line 14, in <module>
    from homeassistant.external.netdisco.netdisco import DiscoveryService
  File "/home/user/git_repositories/home-assistant/homeassistant/external/netdisco/netdisco/__init__.py", line 5, in <module>
    from .mdns import MDNS
  File "/home/user/git_repositories/home-assistant/homeassistant/external/netdisco/netdisco/mdns.py", line 2, in <module>
    import zeroconf
ImportError: No module named 'zeroconf'
ERROR:homeassistant.loader:Unable to find component discovery
INFO:homeassistant:Bus:Handling <Event component_loaded[L]: component=recorder>
ERROR:homeassistant.bootstrap:component zwave failed to initialize
INFO:homeassistant:Bus:Handling <Event component_loaded[L]: component=http>
INFO:homeassistant:Bus:Handling <Event component_loaded[L]: component=api>
INFO:homeassistant:Bus:Handling <Event component_loaded[L]: component=frontend>
INFO:homeassistant:Bus:Handling <Event component_loaded[L]: component=history>
INFO:homeassistant:Starting Home Assistant (7 threads)
INFO:homeassistant:Bus:Handling <Event homeassistant_start[L]>
INFO:homeassistant:Bus:Handling <Event service_registered[L]: service=stop, domain=homeassistant>
INFO:homeassistant:Timer:starting
INFO:homeassistant.components.http:Starting web interface at http://<IP_ADDRESS>:8123
INFO:homeassistant.components.recorder:Running query UPDATE recorder_runs SET end=?, closed_incorrect=1
                      WHERE end IS NULL
INFO:homeassistant.components.recorder:Running query INSERT INTO recorder_runs (start, created) VALUES (?, ?)
INFO:root:Driver ready using library b'Static Controller' version b'Z-Wave 2.78'
INFO:root:home_id 0x01850955, controller node id is 1
Exception ignored in: 'libopenzwave.notif_callback'
Traceback (most recent call last):
  File "/usr/local/lib/python3.4/dist-packages/python_openzwave_api-0.2.6-py3.4.egg/openzwave/network.py", line 777, in zwcallback
  File "/usr/local/lib/python3.4/dist-packages/python_openzwave_api-0.2.6-py3.4.egg/openzwave/network.py", line 1299, in _handle_value_added
  File "/usr/local/lib/python3.4/dist-packages/Louie-1.2a1dev-py3.4.egg/louie/dispatcher.py", line 351, in send
    **named
  File "/usr/local/lib/python3.4/dist-packages/Louie-1.2a1dev-py3.4.egg/louie/robustapply.py", line 36, in robust_apply
    signature, code_object, startIndex = function(signature)
  File "/usr/local/lib/python3.4/dist-packages/Louie-1.2a1dev-py3.4.egg/louie/robustapply.py", line 27, in function
    'unknown reciever type %s %s' % (receiver, type(receiver)))
ValueError: unknown reciever type <function setup.<locals>.value_added at 0xb633a26c> <class 'function'>

The last traceback is repeated 30 more times.
To reproduce:

run build_python_openzwave as root (necessary in order to install python packages -- this might be better to modify so things all get installed locally, not as root, when running this script, and used locally if they were installed there)

run python3 -m homeassistant --config ./config with the configuration specifying the correct usb_path.

Of course the usb stick is inserted, and there is at least one device added to its zwave network.  The stick is being communicated with (e.g. flashes sometimes when home-assistant is run to indicate this).

Ah yes, the problem with the build scripts is that they expect that python points at python3. Running python3 setup.py install in the louie directory should help with the error you're getting.
I'll fix the scripts later today.

I was already running setup with python3 -- the error is the same.  One other thing to improve with the script is to clone the external repositories to somewhere beneath the home-assistant tree -- currently they get cloned as siblings of the home-assistant directory, which can possibly conflict with other existing directories.

I have just pushed an update to the scripts so it will create and use a build directory inside the home assistant directory.
I am fairly sure that the error you are getting is related to not running my patched version of louie. As that is the exact error why I had to fork louie. I was under the impression that python3 setup.py install would overwrite any current installation but maybe I was wrong. Could you run python3 setup.py install --force from a clone of https://github.com/balloob/louie.git?

Here's a full (stdout) log, after using the --force flag for installing louie and running home-assistant.  Are discovered zwave devices supposed to be logged?
INFO:homeassistant:Bus:Handling <Event service_registered[L]: service=turn_off, domain=homeassistant>
INFO:homeassistant:Bus:Handling <Event service_registered[L]: service=turn_on, domain=homeassistant>
INFO:homeassistant.bootstrap:Home Assistant core initialized
INFO:homeassistant.loader:Loaded group from homeassistant.components.group
INFO:homeassistant.loader:Loaded recorder from homeassistant.components.recorder
ERROR:homeassistant.loader:Error loading homeassistant.components.discovery. Make sure all dependencies are installed
Traceback (most recent call last):
  File "/home/user/git_repositories/home-assistant/homeassistant/loader.py", line 116, in get_component
    module = importlib.import_module(path)
  File "/usr/lib/python3.4/importlib/__init__.py", line 109, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 2231, in _gcd_import
  File "<frozen importlib._bootstrap>", line 2214, in _find_and_load
  File "<frozen importlib._bootstrap>", line 2203, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1129, in _exec
  File "<frozen importlib._bootstrap>", line 1448, in exec_module
  File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed
  File "/home/user/git_repositories/home-assistant/homeassistant/components/discovery.py", line 14, in <module>
    from homeassistant.external.netdisco.netdisco import DiscoveryService
  File "/home/user/git_repositories/home-assistant/homeassistant/external/netdisco/netdisco/__init__.py", line 5, in <module>
    from .mdns import MDNS
  File "/home/user/git_repositories/home-assistant/homeassistant/external/netdisco/netdisco/mdns.py", line 2, in <module>
    import zeroconf
ImportError: No module named 'zeroconf'
ERROR:homeassistant.loader:Unable to find component discovery
INFO:homeassistant.loader:Loaded zwave from homeassistant.components.zwave
INFO:homeassistant.loader:Loaded history from homeassistant.components.history
INFO:homeassistant.loader:Loaded http from homeassistant.components.http
INFO:homeassistant.loader:Loaded frontend from homeassistant.components.frontend
INFO:homeassistant.loader:Loaded api from homeassistant.components.api
INFO:homeassistant:Bus:Handling <Event component_loaded[L]: component=recorder>
ERROR:homeassistant.bootstrap:component zwave failed to initialize
INFO:homeassistant:Bus:Handling <Event component_loaded[L]: component=http>
INFO:homeassistant:Bus:Handling <Event component_loaded[L]: component=history>
INFO:homeassistant:Bus:Handling <Event component_loaded[L]: component=api>
INFO:homeassistant:Bus:Handling <Event component_loaded[L]: component=frontend>
INFO:homeassistant:Starting Home Assistant (7 threads)
INFO:homeassistant:Bus:Handling <Event homeassistant_start[L]>
INFO:homeassistant:Bus:Handling <Event service_registered[L]: service=stop, domain=homeassistant>
INFO:homeassistant:Timer:starting
INFO:homeassistant.components.http:Starting web interface at http://<IP_ADDRESS>:8123
INFO:homeassistant.components.recorder:Running query UPDATE recorder_runs SET end=?, closed_incorrect=1
                      WHERE end IS NULL
INFO:homeassistant.components.recorder:Running query INSERT INTO recorder_runs (start, created) VALUES (?, ?)
INFO:root:Driver ready using library b'Static Controller' version b'Z-Wave 2.78'
INFO:root:home_id 0x01850955, controller node id is 1
ERROR:homeassistant.loader:Error loading homeassistant.components.sensor. Make sure all dependencies are installed
Traceback (most recent call last):
  File "/home/user/git_repositories/home-assistant/homeassistant/loader.py", line 116, in get_component
    module = importlib.import_module(path)
  File "/usr/lib/python3.4/importlib/__init__.py", line 109, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 2231, in _gcd_import
  File "<frozen importlib._bootstrap>", line 2214, in _find_and_load
  File "<frozen importlib._bootstrap>", line 2203, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1129, in _exec
  File "<frozen importlib._bootstrap>", line 1448, in exec_module
  File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed
  File "/home/user/git_repositories/home-assistant/homeassistant/components/sensor/__init__.py", line 13, in <module>
    from homeassistant.components import discovery, wink, zwave
  File "/home/user/git_repositories/home-assistant/homeassistant/components/discovery.py", line 14, in <module>
    from homeassistant.external.netdisco.netdisco import DiscoveryService
  File "/home/user/git_repositories/home-assistant/homeassistant/external/netdisco/netdisco/__init__.py", line 5, in <module>
    from .mdns import MDNS
  File "/home/user/git_repositories/home-assistant/homeassistant/external/netdisco/netdisco/mdns.py", line 2, in <module>
    import zeroconf
ImportError: No module named 'zeroconf'
ERROR:homeassistant.loader:Unable to find component sensor
ERROR:homeassistant.bootstrap:Error during setup of component sensor
Traceback (most recent call last):
  File "/home/user/git_repositories/home-assistant/homeassistant/bootstrap.py", line 42, in setup_component
    if component.setup(hass, config):
AttributeError: 'NoneType' object has no attribute 'setup'
INFO:homeassistant:Bus:Handling <Event platform_discovered[L]: discovered=value_id=72057594160349184, node_id=7, service=zwave.sensors>
ERROR:homeassistant.loader:Error loading homeassistant.components.sensor. Make sure all dependencies are installed
Traceback (most recent call last):
  File "/home/user/git_repositories/home-assistant/homeassistant/loader.py", line 116, in get_component
    module = importlib.import_module(path)
  File "/usr/lib/python3.4/importlib/__init__.py", line 109, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 2231, in _gcd_import
  File "<frozen importlib._bootstrap>", line 2214, in _find_and_load
  File "<frozen importlib._bootstrap>", line 2203, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1129, in _exec
  File "<frozen importlib._bootstrap>", line 1448, in exec_module
  File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed
  File "/home/user/git_repositories/home-assistant/homeassistant/components/sensor/__init__.py", line 13, in <module>
    from homeassistant.components import discovery, wink, zwave
  File "/home/user/git_repositories/home-assistant/homeassistant/components/discovery.py", line 14, in <module>
    from homeassistant.external.netdisco.netdisco import DiscoveryService
  File "/home/user/git_repositories/home-assistant/homeassistant/external/netdisco/netdisco/__init__.py", line 5, in <module>
    from .mdns import MDNS
  File "/home/user/git_repositories/home-assistant/homeassistant/external/netdisco/netdisco/mdns.py", line 2, in <module>
    import zeroconf
ImportError: No module named 'zeroconf'
ERROR:homeassistant.loader:Unable to find component sensor
ERROR:homeassistant.bootstrap:Error during setup of component sensor
Traceback (most recent call last):
  File "/home/user/git_repositories/home-assistant/homeassistant/bootstrap.py", line 42, in setup_component
    if component.setup(hass, config):
AttributeError: 'NoneType' object has no attribute 'setup'
INFO:homeassistant:Bus:Handling <Event platform_discovered[L]: discovered=value_id=72057594160365586, node_id=7, service=zwave.sensors>
ERROR:homeassistant.loader:Error loading homeassistant.components.sensor. Make sure all dependencies are installed
Traceback (most recent call last):
  File "/home/user/git_repositories/home-assistant/homeassistant/loader.py", line 116, in get_component
    module = importlib.import_module(path)
  File "/usr/lib/python3.4/importlib/__init__.py", line 109, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 2231, in _gcd_import
  File "<frozen importlib._bootstrap>", line 2214, in _find_and_load
  File "<frozen importlib._bootstrap>", line 2203, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1129, in _exec
  File "<frozen importlib._bootstrap>", line 1448, in exec_module
  File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed
  File "/home/user/git_repositories/home-assistant/homeassistant/components/sensor/__init__.py", line 13, in <module>
    from homeassistant.components import discovery, wink, zwave
  File "/home/user/git_repositories/home-assistant/homeassistant/components/discovery.py", line 14, in <module>
    from homeassistant.external.netdisco.netdisco import DiscoveryService
  File "/home/user/git_repositories/home-assistant/homeassistant/external/netdisco/netdisco/__init__.py", line 5, in <module>
    from .mdns import MDNS
  File "/home/user/git_repositories/home-assistant/homeassistant/external/netdisco/netdisco/mdns.py", line 2, in <module>
    import zeroconf
ImportError: No module named 'zeroconf'
ERROR:homeassistant.loader:Unable to find component sensor
ERROR:homeassistant.bootstrap:Error during setup of component sensor
Traceback (most recent call last):
  File "/home/user/git_repositories/home-assistant/homeassistant/bootstrap.py", line 42, in setup_component
    if component.setup(hass, config):
AttributeError: 'NoneType' object has no attribute 'setup'
INFO:homeassistant:Bus:Handling <Event platform_discovered[L]: discovered=value_id=72057594160365618, node_id=7, service=zwave.sensors>
INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created) VALUES (?, ?, ?, ?)
ERROR:homeassistant.loader:Error loading homeassistant.components.sensor. Make sure all dependencies are installed
Traceback (most recent call last):
  File "/home/user/git_repositories/home-assistant/homeassistant/loader.py", line 116, in get_component
    module = importlib.import_module(path)
  File "/usr/lib/python3.4/importlib/__init__.py", line 109, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 2231, in _gcd_import
  File "<frozen importlib._bootstrap>", line 2214, in _find_and_load
  File "<frozen importlib._bootstrap>", line 2203, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1129, in _exec
  File "<frozen importlib._bootstrap>", line 1448, in exec_module
  File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed
  File "/home/user/git_repositories/home-assistant/homeassistant/components/sensor/__init__.py", line 13, in <module>
    from homeassistant.components import discovery, wink, zwave
  File "/home/user/git_repositories/home-assistant/homeassistant/components/discovery.py", line 14, in <module>
    from homeassistant.external.netdisco.netdisco import DiscoveryService
  File "/home/user/git_repositories/home-assistant/homeassistant/external/netdisco/netdisco/__init__.py", line 5, in <module>
    from .mdns import MDNS
  File "/home/user/git_repositories/home-assistant/homeassistant/external/netdisco/netdisco/mdns.py", line 2, in <module>
    import zeroconf
ImportError: No module named 'zeroconf'
ERROR:homeassistant.loader:Unable to find component sensor
ERROR:homeassistant.bootstrap:Error during setup of component sensor
Traceback (most recent call last):
  File "/home/user/git_repositories/home-assistant/homeassistant/bootstrap.py", line 42, in setup_component
    if component.setup(hass, config):
AttributeError: 'NoneType' object has no attribute 'setup'
INFO:homeassistant:Bus:Handling <Event platform_discovered[L]: discovered=value_id=72057594160365650, node_id=7, service=zwave.sensors>
INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created) VALUES (?, ?, ?, ?)
INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created) VALUES (?, ?, ?, ?)
INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created) VALUES (?, ?, ?, ?)
INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created) VALUES (?, ?, ?, ?)
INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created) VALUES (?, ?, ?, ?)
INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created) VALUES (?, ?, ?, ?)
INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created) VALUES (?, ?, ?, ?)
INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created) VALUES (?, ?, ?, ?)
INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created) VALUES (?, ?, ?, ?)
  You can probably get it working now by running  pip3 install zeroconf. Or you can wait a bit, I'll put it on my to do to make sure that discovery will only import zeroconf when it is needed. As for this use case it is actually not needed.
Thanks for helping me test this btw !

I have rebased the zwave branch on the dev branch. Added the fix that the discovery component does not need zeroconf anymore unless it is being setup.

I have just merged it into the dev branch to allow more people to have a look at it.


Way to suppress this rule for Controller Action Result methods?

Is there a way to suppress this warning for Controller Action Result methods?
My action results methods look something like:
        [HttpGet("performance")]
        [ProducesResponseType(typeof(GetPerformanceFiltersApiResponse), StatusCodes.Status200OK)]
        public async Task<ActionResult<GetPerformanceFiltersApiResponse>> GetPerformanceFiltersAsync([FromQuery]StoreContext storeContext,
            [FromQuery]DateRangeContext dateRangeContext)
        {
            Models.PerformanceFilterLists filters =
                await filterService.GetPerformanceFiltersAsync(storeContext.StoreID, dateRangeContext.StartDate, dateRangeContext.EndDate);
            GetPerformanceFiltersApiResponse response = autoMapper.Map<GetPerformanceFiltersApiResponse>(filters);

            return Ok(response);
        }

which triggers this warning twice for the await line.  However, this is a false positive as both the Controller's Model Binding and FluentValidation ensures that the input parameters are non-null before reaching the method body.

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

ID: a80979f5-bdc4-f5c8-9adf-fea83bafaa7e
Version Independent ID: a28c47de-cf33-0aff-cff2-e3da9c709623
Content: CA1062: Validate arguments of public methods - Visual Studio
Content Source: docs/code-quality/ca1062-validate-arguments-of-public-methods.md
Product: visual-studio-windows
Technology: vs-ide-code-analysis
GitHub Login: @gewarren
Microsoft Alias: gewarren

@ideoclickVanessa -- Thanks for your question. It looks like you're having an issue with the product itself, rather than an issue with the documentation. Here are a few options where you might consider asking your question:
https://social.msdn.microsoft.com/Forums/vstudio
https://www.stackoverflow.com
https://www.reddit.com/r/VisualStudio/
As well, you might also consider using the Report a Problem tool to report the issue.


Update idiots.xml

russian translation

@SaloEater Thank you! I'll get this added shortly.
The next release adds MCM support so there is a bunch of new language strings. It's still a work in progress and the file is a mess or else I'd push it to share with you. But this is super helpful and I think I can reuse many parts on the new language strings too.

Changes incorporated into Beta 5. Thanks again!


groupby doesn't work well in v2.26.0

I'm using the groupby function in the new version (2.26.0):
`bedtools groupby -i file.bed -g 5 -c 6 -o mean,stdev -delim "\t"
But the final results contain only two values: the mean and stdev. Could you check this?

Please clone the main repository, as this has been fixed in Github, but it is not yet part of a formal release.


unexpected behavior with negative coordinate values in gdspy.Path.smooth()

It seems when I use negative coordinate values for the points in gdspy.Path.smooth(), the result is unexpected. I was expecting path1 and path2 to look the same, except for the (-10,-10) offset.
import gdspy
import numpy

gdspy.current_library = gdspy.GdsLibrary()

lib = gdspy.GdsLibrary()
cell = lib.new_cell('FIRST')
path1 = gdspy.Path(0.5, (0, 0))
path1.smooth([(0, 5), (5, 5), (5, 10)])
cell.add(path1)

path2 = gdspy.Path(0.5, (0-10, 0-10))
path2.smooth([(0-10, 5-10), (5-10, 5-10), (5-10, 10-10)])
cell.add(path2)

gdspy.LayoutViewer()

@zihegao By default, Path.smooth uses relative coordinates. You can fix your issue by using:
path2.smooth([(0-10, 5-10), (5-10, 5-10), (5-10, 10-10)], relative=False)

Or, even better: by using relative coordinates you can use the exact same list of points for both paths:
import gdspy
import numpy

gdspy.current_library = gdspy.GdsLibrary()

lib = gdspy.GdsLibrary()
cell = lib.new_cell('FIRST')

points = [(0, 5), (5, 5), (5, 10)]

path1 = gdspy.Path(0.5, (0, 0))
path1.smooth(points)
cell.add(path1)

path2 = gdspy.Path(0.5, (-10, -10))
path2.smooth(points)
cell.add(path2)

gdspy.LayoutViewer()

@heitzmann thank you for the swift reply! Somehow I didn't realize that relative=True was default.


Add tests

These would be simple tests that pump the widget and run simple async ops. Make sure to include ones that fail and that report the error correctly.

Closed via 4c230fa81077cda987cdd0df9dc4209355546df9

Closed via 4c230fa81077cda987cdd0df9dc4209355546df9


Add optional postcss peer dependency

Similar to https://github.com/stylelint-scss/stylelint-config-recommended-scss/pull/112, this package implicitly needs postcss and therefore should mark it as peer dependency.

Thanks!


Remove SPM dependency

Goes someway to resolve https://github.com/tuist/xcodeproj/issues/320
This removes the swift-package-manager package and replaces it with PathKit and SwiftShell.

PathKit replaces the uses of AbsolutePath and RelativePath
SwiftShell replaces the uses of Process.run. This could be done with another dependency, or perhaps no dependency at all

There seem to be some linting issues.

Fixed issues 👍