The postgresql peeble service went down and it wasn't restarted automatically

Please see the Matrix thread here in case the full message context helps in understanding this issue (link)
Steps to reproduce

Deploy/run a postgresql-k8s charm
Kill the pebble postgresql service in the k8s pod.
The service doesn't restart itself automatically after it is killed unless manually triggered

Expected behavior
We would expect that the service restarts itself automatically
Actual behavior

The postgresql pebble service is inactive and doesn't restart itself.
 I am (db-0), the leader with the lock
2024-06-29 11:02:30 UTC [82243]: INFO: no action. I am (db-0), the leader with the lock
2024-06-29 11:02:40 UTC [82243]: INFO: no action. I am (db-0), the leader with the lock
2024-06-29 11:02:50 UTC [82243]: INFO: no action. I am (db-0), the leader with the lock
2024-06-29 11:03:00 UTC [82243]: INFO: no action. I am (db-0), the leader with the lock
2024-06-29 11:03:10 UTC [82243]: INFO: Lock owner: db-0; I am db-0
2024-06-29 11:03:15 UTC [82243]: ERROR: Request to server https://10...:443 failed: ReadTimeoutError("HTTPSConnectionPool(host='10...', port=443): Read timed out. (read timeout=4.999667637050152)")
2024-06-29 11:03:18 UTC [82243]: ERROR: Request to server https://10...:443 failed: ReadTimeoutError("HTTPSConnectionPool(host='10...', port=443): Read timed out. (read timeout=2.214830946177244)")
2024-06-29 11:03:20 UTC [82243]: ERROR: Error communicating with DCS
2024-06-29 11:03:20 UTC [82243]: INFO: demoting self because DCS is not accessible and I was a leader
2024-06-29 11:03:20 UTC [82243]: WARNING: Loop time exceeded, rescheduling immediately.
2024-06-29 11:03:20 UTC [82243]: INFO: Demoting self (offline)
2024-06-29 11:03:20 UTC [82243]: INFO: Lock owner: db-0; I am db-0
2024-06-29 11:03:22 UTC [82243]: INFO: updated leader lock during demoting self because DCS is not accessible and I was a leader
2024-06-29 11:03:28 UTC [82243]: INFO: Lock owner: None; I am db-0
2024-06-29 11:03:28 UTC [82243]: INFO: Demoting primary during demoting self because DCS is not accessible and I was a leader
2024-06-29 11:03:28 UTC [82243]: INFO: Demoting self (immediate-nolock)
2024-06-29 11:03:49 UTC [82243]: INFO: closed patroni connection to the postgresql cluster
2024-06-29 11:03:51 UTC [82243]: INFO: postmaster pid=111648
2024-06-29 11:03:54 UTC [82243]: INFO: lost leader lock during demoting self because DCS is not accessible and I was a leader
2024-06-29 11:03:54 UTC [82243]: WARNING: Loop time exceeded, rescheduling immediately.
2024-06-29 11:03:54 UTC [82243]: INFO: Lock owner: None; I am db-0
2024-06-29 11:03:54 UTC [82243]: INFO: not healthy enough for leader race
2024-06-29 11:03:59 UTC [82243]: INFO: demoting self because DCS is not accessible and I was a leader in progress
2024-06-29 11:04:04 UTC [82243]: INFO: Lock owner: None; I am db-0
2024-06-29 11:04:04 UTC [82243]: INFO: not healthy enough for leader race
2024-06-29 11:04:04 UTC [82243]: INFO: demoting self because DCS is not accessible and I was a leader in progress
2024-06-29 11:04:14 UTC [82243]: INFO: Lock owner: None; I am db-0
2024-06-29 11:04:14 UTC [82243]: INFO: not healthy enough for leader race
2024-06-29 11:04:14 UTC [82243]: INFO: demoting self because DCS is not accessible and I was a leader in progress
2024-06-29 11:04:18 UTC [82243]: WARNING: Exception happened during processing of request from 10...:42438
2024-06-29 11:04:18 UTC [82243]: WARNING: Traceback (most recent call last):
  File "/usr/lib/python3.10/socketserver.py", line 683, in process_request_thread
    self.finish_request(request, client_address)
  File "/usr/lib/python3.10/socketserver.py", line 360, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python3/dist-packages/patroni/api.py", line 105, in __init__
    super(RestApiHandler, self).__init__(request, client_address, server)
  File "/usr/lib/python3.10/socketserver.py", line 747, in __init__
    self.handle()
  File "/usr/lib/python3.10/http/server.py", line 433, in handle
    self.handle_one_request()
  File "/usr/lib/python3/dist-packages/patroni/api.py", line 1325, in handle_one_request
    BaseHTTPRequestHandler.handle_one_request(self)
  File "/usr/lib/python3.10/http/server.py", line 421, in handle_one_request
    method()
  File "/usr/lib/python3/dist-packages/patroni/api.py", line 368, in do_GET
    self._write_status_response(status_code, response)
  File "/usr/lib/python3/dist-packages/patroni/api.py", line 214, in _write_status_response
    self._write_json_response(status_code, response)
  File "/usr/lib/python3/dist-packages/patroni/api.py", line 167, in _write_json_response
    self.write_response(status_code, json.dumps(response, default=str), content_type='application/json')
  File "/usr/lib/python3/dist-packages/patroni/api.py", line 157, in write_response
    self.wfile.write(body.encode('utf-8'))
  File "/usr/lib/python3.10/socketserver.py", line 826, in write
    self._sock.sendall(b)
BrokenPipeError: [Errno 32] Broken pipe
2024-06-29 11:04:24 UTC [82243]: INFO: Lock owner: None; I am db-0
2024-06-29 11:04:24 UTC [82243]: INFO: not healthy enough for leader race
2024-06-29 11:04:24 UTC [82243]: INFO: demoting self because DCS is not accessible and I was a leader in progress
2024-06-29 11:04:28 UTC [82243]: WARNING: Exception happened during processing of request from 10...:39822
<repeats the broken pipe python error>

The same issue happened again, just a week later.

Hi, @andrejvelichkovski! Thanks for the report.
We'll be working to fix this issue in the next two weeks.

Hello @andrejvelichkovski !
This issue was specifically addressed in #581 and (as far as our tests have shown) the issue is solved.
If you see it again, please let us know by reopening this issue or pinging us on matrix/mattermost!


Moved MSFT_xWebAppPool localization strings

xWebAppPool: Move localization strings to strings.psd1 file
This Pull Request (PR) fixes the following issues
- Fixes #469

Task list

[ ] Added an entry to the change log under the Unreleased section of the CHANGELOG.md.
Entry should say what was changed and how that affects users (if applicable), and
reference the issue being resolved (if applicable).
[ ] Resource documentation added/updated in README.md.
[ ] Resource parameter descriptions added/updated in README.md, schema.mof
and comment-based help.
[ ] Comment-based help added/updated.
[x ] Localization strings added/updated in all localization files as appropriate.
[ ] Examples appropriately added/updated.
[ ] Unit tests added/updated. See DSC Resource Testing Guidelines.
[ ] Integration tests added/updated (where possible). See DSC Resource Testing Guidelines.
[ ] New/changed code adheres to DSC Resource Style Guidelines and Best Practices.

This change is

Codecov Report

Merging #532 into dev will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##              dev     #532   +/-   ##
=======================================
  Coverage   91.72%   91.72%
=======================================
  Files          17       17
  Lines        2766     2766
=======================================
  Hits         2537     2537
  Misses        229      229

Impacted Files
Coverage Δ

...SCResources/MSFT_xWebAppPool/MSFT_xWebAppPool.psm1
95.9% <100%> (ø)
: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 e1d0fea...ede752c. Read the comment docs.


Program is nested too deep error

Description
When I query fields more than 200, it doesn't work and raise error like "Program is nested too deep error"， the info is following:
compilation failed: error @4:22-4:1706: Program is nested too deep error @4:1710-4:1737: Program is nested too deep error @4:1741-4:1749: Program is nested too deep error @4:1753-4:1768: Program is nested too deep error @4:1772-4:1773: Program is nested too deep error @4:1774-4:1780: Program is nested too deep
the influx sql only contains fileds which combined with "or",  like the following:
from (bucket: "my_bucket"
)|> range(start:<PHONE_NUMBER>)
|> filter(fn: (r) => r._measurement == "component")
|> filter(fn: (r) => r._field == "ds" or r._field == "fg")
|> sort(columns: ["_time"], desc: true)
|> limit(n:2)

This should be an issue rather than a PR. Feel free to file one using the Bug Report template, but I'm going to close this PR


Update popovers of selected PoIs

This PR adds support for updating popover contents of the selected PoI when an update comes through the wiring.

Coverage decreased (-0.2%) to 97.265% when pulling 545947be91fe0a6365227a31c621574fc224e729 on aarranz:feature/support-updating-popovers into 072ec2c1200ce24fb73d36abd58e4d10c71e50e4 on Wirecloud:develop.


Player's power state icon: colors ambiguous

The power state of a player seems to be indicated by a grey (off) and dark blue (on) icon. The two cannot (at least by me) be easily distinguished. It would help to indicate power state on by an e.g. green icon.

Same colour is used for other 'toggle' elements. If blue is not sufficient for you, choose another colour.

I just screened the manual but didn't get across how to customize colors if that's what you mean. Would you mind telling me how?

Manual is out of date - its for 1.2, Material is now at 1.5
Go to 'Settings' in main menu (top right three dotted button).

How cool - I thought this was the color setting for the main color, not the highlights. Well okay then, I'm very happy now. Would you also add white as a color?
Von: CraigD<EMAIL_ADDRESS>An: CDrummond/lms-material<EMAIL_ADDRESS>Kopie: schnillerman<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Empfangen: 03.05.2020 10:31:45
Betreff: Re: [CDrummond/lms-material] Player's power state icon: colors ambiguous (#274)

Manual is out of date - its for 1.2, Material is now at 1.5
Go to 'Settings' in main menu (top right three dotted button).
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub [https://github.com/CDrummond/lms-material/issues/274#issuecomment-623074585] , or unsubscribe [https://github.com/notifications/unsubscribe-auth/AEDUA6PJCO2FPNLZPCZOWGDRPUTXDANCNFSM4MX3CNGQ] . [https://github.com/notifications/beacon/AEDUA6MBES6MBAOHDF23H5LRPUTXDA5CNFSM4MX3CNG2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEURV2GI.gif]

No, sorry - too much hassle.


[Question] How to render email as text with ssr ?

hi,
this is in reference to this page https://www.vuemail.net/getting-started/ssr , the page shows how to render an email to html, how can we render it as plain text. i tried like this but i am still getting html?
const emailText = await vueEmail.render(
  emailTemplate,
  {
    props: data,
  },
  {
    plainText: true,
  },
)

we'll add that option soon

I would like this option too.


Rename --app-config-url to config-repo

I believe the term app-config-url is unintuitive, and can be problematic when used outside of a add app context, i.e. for install. The repo used contains the automation objects for clusters, infrastructure and applications. My proposal is to have a fairly generic term, config-repo which has at least some external references and is currently used in the web UI.
Alternatives considered

gitops-repo
management-repo

To me the confusion is between app-config-url and url flags as the description is very similar. I prefer config-repo as that's clearer to me that the repository is storing the configuration of the cluster. gitops-repo may still be a little confusing as it can mean the application repo that's being synced on.

@rokshana-b there will be a number of references to this in the docs which are outside of any auto-generation, i.e. the getting started guide and sock shop example. These will need updating as well before we could release.

given deadlines - i've raised https://github.com/weaveworks/weave-gitops-docs/pull/176


cant bypass cloudflare

I've installing chromium with snap, set cookies and user agent, but still got http error 403 when try npm run test:cf.
Can you please make details step by step to install chrome/chromium or firefox and set cookies.

OS: Ubuntu 20.04
Node version 18.17.0

Is the cookie correct from Request Headers, not the Response Headers?
Here the example https://github.com/sinkaroid/jandapress/blob/master/README.md#the-solution-1

You running firefox with remote gui on ubuntu or what

You running firefox with remote gui on ubuntu or what

i didnt use ubuntu gui. im installing chromium with snap (tutorial from google)
please make tutorial if you can

Is the cookie correct from Request Headers, not the Response Headers? Here the example https://github.com/sinkaroid/jandapress/blob/master/README.md#the-solution-1

yes i use cookie from request headers (default UA)

Inspect > Network Conditions > Uncheck browser default and set jandapress/1.0.6 Node.js/16.9.1 here

Also could u screenshot the .env too

Inspect > Network Conditions > Uncheck browser default and set jandapress/1.0.6 Node.js/16.9.1 here

Also could u screenshot the .env too

ive successfully deployed and nhentai api is working fine. but cookie can expired and need manually update it. can you make cookie updated automatically?


update package, fe verification refinement, other tiny stuff

Confirmed both Coinbase and WalletConnect signature flows worked! 🎉

LGTM, though I did see an unverified address show in the table with "false" as its date (WalletConnect). Maybe related to the switch to util.
Coinbase and WC still both work.

MM, CB, and WC all working. Table shows unverified accounts still, but I'm prepared to ship it as is.

MM, CB, and WC all working. Table shows unverified accounts still, but I'm prepared to ship it as is.

This is my fault. I keep undoing the filter to debug and forgetting to put it back.

Just tried with MM, all working well now


Optimize the bundle size of Next.js core

Some of the optimizations we did:

Remove the react-hot-loader from production
Remove the react-dom/dist as it's getting replicated in some bundles
Make sure common module are working when we've one or two pages.

#2421

@timneutkens here's the webpack analyze output after this fix:


Release/v2022.02.8

Description
Hotfix release to fix services deletion.

Link to integration tests of this branch: https://github.com/orchest/orchest/actions/runs/1847971960. Somehow the checks picked up the wrong Action.


Update singular.jsonld

Publishing Checklist
I confirm the following:

[ ] My open data feeds conform to one of the permissable combinations specified in https://developer.openactive.io/publishing-data/data-feeds/types-of-feed
[ ] My open data feeds all pass the OpenActive Validator's model validation (https://validator.openactive.io/)
[ ] My open data feeds all pass the OpenActive Validator's RPDE feed validation (https://validator.openactive.io/rpde)
[ ] My open data feeds include activity list references as specified in https://developer.openactive.io/publishing-data/activity-list-references
[ ] My dataset site(s) each reference a GitHub Issues Board

Maintenance Checklist
Our organisation is committed to:

[ ] Resolving issues that are raised on the GitHub Issues Board(s)
[ ] Ensuring activity providers are aware of the OpenActive opportunity on an ongoing basis

Closed as duplicate of https://github.com/openactive/data-catalogs/pull/12


More alignment issues

The distance of the 3-dot menu to the edge of the screen is 16px, while the distance of the search-field (and the segemented tabbar) to the edge of the screen is 20px/10pt. Can you decrease the margin on both sides of the latter so it matches the margin of the 3-dot menu?

The refresh icon in the search field should only be visible when there's actually a URL or query to refresh

Upon closer inspection I think we should have the labels in the segmented tabbar be the same text-size as the search-field placeholder. So that means decreasing the font-size by 2px/1pt to 28px/14pt

This should now be fixed (pending most recent build 596)

@sreilly 1 looks good, but I'm still spotting 2 and 3
How to reproduce 2:

Tap search field
Tap recent search and quickly tap home icon before the page loads
You're taken back to Favorites/Recents but the refresh icon remains

ok, both of these should now be fixed (really)


authentication issues

I find the whole integration setup confusing with regard to authentication. Is there no way it can be simplified? After an update to HA a month ago, my Alexa Media Player stopped working, I've tried dozens of times to reauthenticate, reinstall the Alexa Media Player integration and turn on and off Amazon 2FA etc, the whole authentication dialog during setup seems to go in circles - the information that shows at the top doesn't help, neither does the dozens of options, cookie import, tickboxes etc. Really haven't a clue about how to set it up properly as it keeps failing...
Might delete the integration. Why is this so damned difficult and complicated? Why can't it "just work" with my own devices  out of the box so to speak? Pun intended ;)

When I get to this stage -

I get the push message to my mobile, I "approve" it on the mobile,
Then I click submit on the bottom of the above - the integration configuration doesn't do anything... it just refreshes, doesn't go anywhere!

Enable 2FA or use the Login Proxy. 2FA is mandatory for support.

Tried that. It keeps showing "Unknown Error" in Red (see image)

Also notice the "second authenticator app" is shown here, that was just confirmed by this proceedure...

I'm in the UK. Something is clearly broken with the Authentication process and the integration now since its release.

Also when I close the authentication process window as it won't work to try again, I then see this when I click "configure" on the integration as I did before.

Ps. I'm using the Nabu Casa cloud service with Homeassistant, if that makes any difference.

After a restart of HomeAssistant... I click the configure button again... now it shows this:

I enter my 2FA code from the Google Authenticator app running on my phone, and the captcha code... and the dialog refreshes showing "There was a problem"
never works.

Please fill out the bug report template.

Figured it out. Basically after I cancelled my Nabu Casa subscription a while back before reinstating it, I had changed my browser Homeassistant link to my internal IP address. This is why every time I tried to setup the integration afterwards - its always failed.
This messed up the Amazon / Alexa Media Player Integration 2FA authorisation process. Changing it back to the Nabu Casa provided URL for access made the config and 2FA process work finally. All is well.


This repository should be archived?

@max-sixty @snth @aljazerzen I think that leaving this repository here is causing confusion for new users, so I recommend archiving this.
As of November 2023, the glaredb CLI covers most of what prql-query was intended to do, and is under active development.

I can see that perspective — @snth?

@snth Could you take a look at this?

I'll archive by default, and then we can unarchive if @snth would prefer to keep it open (hope that's reasonable, didn't want to have things waiting for you @snth, totally fine to say the word and we'll un-archive)

Hi, I agree with the archiving. I just think we should put up a note about the reasons behind this and a pointer to alternatives, eg. GlareDB.


About Anchor Generation

Maybe there is a small mistake?

This is base size not batch size. The anchor generation should be correct, otherwise it will not be trained normally.

Yes ,I know it
But in this case, BASE_ANCHOR_SIZE_LIST in config will be useless

I mean that maybe  "4" shouid be changed to "base_size" in the code

Sorry I misread it as batch size.

The anchor scale of this function is controlled by stride.

thanks ,I get  it


Restore factory Settings

Can the micromanipulator be restored to factory Settings? What are the risks

At a minimum, you will have to re-configure the TSC's "group" to match the rest of your Sensapex hardware. Any other configuration options you had customized will be reset. It will also reboot the TSC, during which it will be unresponsive.


Attribution for group, project, grant etc

Some contributors, especially bulk contributors are going to want to be able to advertise and give credit to their broader initiative (not just the individual submitter).
For example we had this feedback from an early user: "I have a large number of annotations that serve as knowledge base for precision medicine trial for the SU2C melanoma dream team. I need to do some checking, but would like to submit them to CIViC, and if they could be attributed to that grant and effort that would be great."
Any ideas how we could handle this?
In ORegAnno we had the concept of a "dataset" where each individual record could be linked to a dataset entry that was associated with some meta-data.

This seems fairly analogous to "sources" in DGIdb. I imagine we can handle something like this fairly easily.

I was thinking that provider of a major import could have its own user, with a profile page etc. Then we can just drop that in like a standard 'added by' attribution. More details can go on its user page regarding the institution, specific details about the import, etc.

Yeah, this is a good idea.  I think we should also consider allowing users to be part of groups (e.g. 'MGI', 'OHSU', etc.).  Or maybe this is simply an attribute of the user...  It would be good if we could attribute content to both individual users and institutes.  As Obi said we need some way of attributing content not just to users but to institutions, projects, grants, etc.
Maybe the simplest way to implement this now is to have an 'MGI' users that is assigned for our bulk import and an 'OHSU' user that is assigned for their bulk import, and a 'BCGSC' user assigned for bulk import of the POGS data, etc.

Organizations do this. I'll create a new issue to handle grants alone.


Fix index versions and urls; add tests

/Versioned looks like a leftover and this is definitely not the right version in any of the endpoints.
These changes were enough to fix paket install and update.
What does this PR do?

Changes versions of resources in index.json to 3.0.0.
Adds trailing / in PackageBaseAddress and RegistrationsBaseUrl which were causing issues in paket too.

Motivation
Currently running paket install or update would fail with
GetPackageDetails failed: System.Exception: Couldn't get package details for package baget-test1 1.0.0 on http://baget:9090/v3/index.json. ---> System.AggregateException: One or more errors occurred. ---> System.Exception: could not find an PackageIndex endpoint for http://baget:9090/v3/index.json

Which is caused by resource names in index.json being RegistrationsBaseUrl/Versioned rather than something like RegistrationsBaseUrl/3.4.0.
This is not passing all e2e tests yet.

Thanks for testing BaGet with Paket! I think that we should have an entry for all documented versions of a resource, otherwise, we'll have a hard time supporting all versions of NuGet/Visual Studio/.NET CLI/Paket.
This solution isn't strictly correct for the package metadata resource as v3.4.0 and v3.6.0 actually have different requirements (see this documentation). I think we can tackle that later when necessary.
Does that sound reasonable to you?

we should have an entry for all documented versions of a resource,

OK, so many entries to the same resource. I'll compare it with what api.nuget returns too.

This isn't strictly correct for the package metadata resource as different versions have different requirements

Would you say that current endpoint is compliant with RegistrationsBaseUrl, RegistrationsBaseUrl/3.0.0-beta, RegistrationsBaseUrl/3.0.0-rc ?

OK this is now ready. I did the research on accepted versions and this is the best I could implement.
It actually works with paket and dotnet nuget cli and mono nuget.exe. It is very close to what nuget.org returns. I just skipped 3.4.0 and 3.6.0 for RegistrationsBaseUrl.
I have also added some integration tests which use client from NuGet.Protocol to explore the index.
I had to include change by @WernerMairl  to fix issues with index controller being not used in tests.

Thanks! I'll review this when I'm back home.
I asked the team about the /Versioned service index types, and was pointed to this closed documentation PR:

When the @type is suffixed with the /Versioned string, an additional property is required on the resource: clientVersion.
This value is the minimum client version compatible with this resource. ... A client implementation knows its own version ... and compares it to the resource clientVersion value using standard SemVer 2.0.0 comparison rules. If the client's own version is greater than or equal to the resource clientVersion and if the {RESOURCE_NAME} is known, this resource should be considered consumable by the client implementation.
For this clientVersion model to work, there needs to be some agreement between the server and client implementors about what protocol each {RESOURCE_NAME} and clientVersion combination implies.
This feature allows server implementations to backport resources to clients that have already shipped. When no clientVersion is specified on the resource, there is no way for a client that is already shipped to discover the resource since the @type values that client knows about are hard coded.

The CI build failed, it looks like the Mirror configuration is missing from the test server. You should be able to fix that by adding a config here:
private readonly string MirrorEnabledKey = $"{nameof(BaGetOptions.Mirror)}:{nameof(MirrorOptions.Enabled)}";

...

Configuration.Add(MirrorEnabledKey , false.ToString());

The change looks good though! :)

The CI build failed, it looks like the Mirror configuration is missing from the test server. You should be able to fix that by adding a config here:

That's also fixed in #81 , so I cherry-picked another commit.

OK, I fixes the style issues and removed both /Versioned endpoints ( in push and baseurl resources ).

Thanks @tomzo :)


BACKUP RELATED ISSUE

Hey, this is raju . This morning I got a prompt saying that lnreader harmful from security manager in mobile. I thought maybe I could uninstall and reinstall.so I created a backup and saved in file manager then I uninstalled it and reinstalled, when I tried to restore data but I could not find any backup related file.. how can I find my saved data I have so many novels....can u resolve this issue...

Follow the issue template.

This morning I got a prompt saying that lnreader harmful from security manager in mobile.

It's a false positive.

how can I find my saved data I have so many novels....can u resolve this issue...

If there's no backup file then you can't restore them.


Azure SDK for Node link goes to outdated sdk

The current sdk is https://github.com/Azure/azure-sdk-for-js

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

ID: 87507e10-00e2-250a-2074-bb26bbea5a03
Version Independent ID: f21aee07-f75d-093e-cdae-cd97c52d34cf
Content: Quickstart: How to use Azure Service Bus topics and subscriptions with Node.js
Content Source: articles/service-bus-messaging/service-bus-nodejs-how-to-use-topics-subscriptions.md
Service: service-bus-messaging
GitHub Login: @axisc
Microsoft Alias: aschhab

@tony-gutierrez Thank you for your feedback! We will review and update as appropriate.

@tony-gutierrez This doc is aimed for the older version of the SDK. For the newer version, there is a separate doc you could refer to.

@tony-gutierrez Hope my previous comment clears things up.
We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.


Update to Parser name used in Workbook

Fixes #
Proposed Changes

Fixes #
Proposed Changes

Fixed the parser name that's used in the Metaparser

bump for @YaronFruchtmann

Bump now that the Cisco normalizer got approved
https://github.com/Azure/Azure-Sentinel/pull/1964


automatically signed problem

=== BUILD TARGET iforvert OF PROJECT iforvert WITH CONFIGURATION Debug ===
Check dependencies
Code Signing Error: iforvert has conflicting provisioning settings. iforvert is automatically signed, but code signing identity iPhone Developer: xuelin li (FH4LU34754) has been manually specified. Set the code signing identity value to "iPhone Developer" in the build settings editor, or switch to manual signing in the project editor.
大神, 能不能帮忙改下脚本, 在automatically signed状态下也能打包,万分感谢, 我对shell实在不熟

我自己修改了一下shell, 不过还是要谢谢你造的轮子☺


Focus trap - A11y

Introducs missing focus traps on "modal" components for making them correctly accessible.
Relevant components:

Dialog
Popover
*....other?

Notes

https://www.npmjs.com/package/react-focus-lock
https://www.npmjs.com/package/focus-trap-react

When work i starting, US will be added for relevant components.

Perhaps using the native  element can be of use, it has all the focus trapping and other a11y built in, also including ::backdrop and natively existing in a separate layer (so it doesnt need portal)

Additionally, floating-ui have a floatingFocusManager we can use with popover

No more US on this => closed


Flash of Unstyled Content for the Orbit plugin

http://foundation.zurb.com/docs/components/orbit.html
You can view the issue there and just keep refreshing the page and you should see it.

adion, that's awesome. Thanks!

Great fix Adion - works beautifully!

it doesn't work for me using flex grid, any idea?

This is what I'm doing (using flex grid)
div.orbit { 		opacity:0; 		-webkit-transition: opacity 0.2s ease-out; /* Safari */     	transition: opacity 0.2s ease-out; 	} 	div.orbit:not([data-orbit='']) 	{     	opacity:1; 	}


cloud-init fails in eu-west-3

Hello,
I first tried to overridre the default region with eu-west-3 and noticed the runner wan't registreing my gitlab instance.
The reason was that cloud-init failed. I tried with the default eu-west-1 region and everything worked fine.
My hypothesis is that the wrong ami is picked in eu-west-3.

@err0r500 I doubt that the AMI is the problem, we use an AMI filter to find the right AMI. So there is no map or hardcoded AMI. Can you share the error?

@err0r500 did you had time to have a look on my question?

Hi Niek,
I was working on something else these days and it was more a heads up than anything else (because eu-west-1 was actually fine too) .
I try again today and keep you updated

Thanks for the update, no hurries

@err0r500 I also tried eu-west-3, which was failing on creating a bucket. The problem was that I had used the bucket with the same name minutes before in eu-west-1. After enforcing a fresh bucket name by setting cache_bucket_prefix the problem was resolved. The module offers some variables to get more control of the bucket name.
Shall we close the issue?


Docs

First cut of the docs.
@Freyert - could you take a look and see what you think?

Thank you @Freyert - great feedback. I'll work on an update.

@Freyert - mind taking another look?
Hopefully I've improved things in the docs, and in some cases I've added in some more code as it seemed clear writing the docs to address your comments there were some gaps.


--check-only return code regression in 4.2.3+ / Add --enforce-whitespace option

In isort 4.2.3 and higher I no longer get a non-0 return code for formatting errors when I pass in --check-only.
Let's say I have a script called mylib.py, with the following contents:
import os
import six

Here's the behavior with different isort versions:
$ pip install isort==4.2.2
$ isort --diff mylib.py
...
@@ -1,2 +1,3 @@
 import os
+
 import six
$ isort --check-only mylib.py
ERROR: /Users/jacob/mylib.py Imports are incorrectly sorted.
$ echo $?
1

$ pip install isort=4.2.3
$ isort --diff mylib.py
...
@@ -1,2 +1,3 @@
 import os
+
 import six
$ isort --check-only mylib.py
$ echo $?
0

$ pip install isort=4.2.4
$ isort --diff mylib.py
...
@@ -1,2 +1,3 @@
 import os
+
 import six
$ isort --check-only mylib.py
$ echo $?
0

$ pip install isort=4.2.5
$ isort --diff mylib.py
...
@@ -1,2 +1,3 @@
 import os
+
 import six
$ isort --check-only mylib.py
$ echo $?
0

My CI tests are no longer failing because of this. Would be awesome if this could be fixed!

Hi @jmagnusson thanks for reporting! I'll see if I can get a hot fix release out soon that resolves this
Thanks!
~Timothy

Looks like check-only was changed to ignore whitespace (including new lines) here:
https://github.com/timothycrosley/isort/commit/5f6d4bd45e0fa8e3b6b2bea81d3eb7368ee312c3

@bootandy you are correct, so this is indeed an intended change and not a regression. I'll go ahead and mark as closed.
Thanks!
~Timothy

Okay... So how does one check for correctly formatted imports now exactly? It was a very useful feature IMO.

@jmagnusson it still should work for checking most formatting issues, just not things like an lines between imports. This is a tough thing to get right, as peoples definition of what signifies a failure is different from group to group. What would think about a --check-only --enforce-white-space style option?
Thanks!
~Timothy

That would work for me!

As I asked in #378 which is the PR for the original behavior change, what's the reasoning for it? I'd rather an --ignore-whitespace option to opt-in to the new behavior unless the new behavior is really more sensible.

I was recently bit by this as well.
Sometimes a contributor will unknowingly slip in whitespace changes. These used to be caught on the CI server, but that is no longer the case. The end result is that the next time someone runs isort --apply, they will see a lot of unrelated whitespace changes; often in files the developer didn't touch. These style changes could have been caught earlier by the automated tools.

@timothycrosley Can we have a release with the commit for --enforce-white-space? I'm missing this feature 😢

@timothycrosley can we have a release with the --enforce-white-space option and enforce_white_space configuration parameter please? It's been implemented like half a year already.


Build TTJ table in Javascript

Requires jquery, which it loads from a CDN. On a Noto Sans Arabic report, reduced the file size from 800k to 120k.

Cool! only gripe is jquery. Can we make it vanilla instead.

I could do, but it would be a lot more yucky. What problem are we trying to solve?

JQuery from CDN is fine with me. The only gripe I have is a table being constructed with div/span instead of real table elements ;)

I'll happily accept the jquery for now.
We have a slight issue, Python's json serialiser doesn't like tuples.
TypeError: keys must be str, int, float, bool or None, not tuple
ninja: build stopped: subcommand failed.

I can happily fix this. I'll chuck it on the queue.

Thank you Simon! a certain project is 90% smaller in size so this is a massive win.


Fix typo in docs/readme

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


vim9 colorscheme changes putty background but doesn't revert it after exit

Steps to reproduce
open putty ssh connection to raspberry bookworm with putty colours set to "use system colors" (this is black on white on my windows box)
Then run vim and set colorscheme to zellner.
This sets the background of the putty terminal to some grey.
After leaving vim, this background doesn't revert back to white.
Expected behaviour
After leaving vim the changed background should revert back to as it was before running vim.
With vim8 the background did not change to grey but stayed white and thus there wasn't such a problem as it is now.
Version of Vim
9.0.1499
Environment
Raspberry Pi with bookworm 64bit
Putty 0.80
Logs and stack traces
No response

Thanks, for putting me in the right direction.
I did move all .vim* files from the user directory to the side and then exiting vim did revert to the white background.
Thus, there was something in the .vim* files which caused the problem.
As I said, I did not have the problem with vim8 but vim9 is very much different especially with respect to colorschemes.
Most c olorschemes are too dark for me and the light schemes cause problems with the white background.
I mostly use vsCode and I did not find a colorscheme with vim yet which I find as ergonomic as vsCode syntax highlighting.


feat(select): new label behavior

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

5 of 5 (100.0%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.01%) to 79.712%

Totals

Change from base Build<PHONE_NUMBER>:
0.01%

Covered Lines:
8099

Relevant Lines:
9197

💛  - Coveralls


Use GoMobile to build swift framework

Did some try and manage to use GoMobile to build a swift framework from this package?
I tried to use:
gomobile bind -target=ios ../vehicle-command-main/pkg
But I get this error:
gomobile: /Users/urkman/go/bin/gobind -lang=go,objc -outdir=/var/folders/51/z1z8sk8j5p57kl3ntngcskrc0000gn/T/gomobile-work-927216769/iossimulator -tags=ios ../vehicle-command-main/pkg failed: exit status 1
no exported names in the package "../vehicle-command-main/pkg"
unable to import bind: no Go package in golang.org/x/mobile/bind
unable to import bind: no Go package in golang.org/x/mobile/bind
no exported names in the package "../vehicle-command-main/pkg"
no exported names in the package "../vehicle-command-main/pkg"
no exported names in the package "../vehicle-command-main/pkg"
unable to import bind/objc: no Go package in golang.org/x/mobile/bind/objc

Thank you @itsMeDavidV , I was successfully able to create frameworks for connector, account, proxy, vehicle. But I'm getting error while creating frameworks for cli and protocol package.
I tried to use the following command gomobile bind -target=ios github.com/teslamotors/vehicle-command/pkg/cli
But I'm getting an error:
gomobile: iossimulator/amd64: go build -buildmode=c-archive -o /var/folders/jx/80_jfqqx08n4ddrh7nvbgz040000gn/T/gomobile-work-2178387844/cli-iossimulator-amd64.a ./gobind failed: exit status 1
# github.com/raff/goble/xpc
In file included from /Users/sumit/go/pkg/mod/github.com/raff/goble@v0.0.0-20200327175727-d63360dcfd80/xpc/xpc.go:4:
./xpc_wrapper.h:6:10: fatal error: 'xpc/xpc.h' file not found
#include <xpc/xpc.h>
         ^~~~~~~~~~~
1 error generated.
# github.com/99designs/keyring
/Users/sumit/go/pkg/mod/github.com/99designs/keyring@v1.2.2/keychain.go:56:9: query.SetMatchSearchList undefined (type keychain.Item has no field or method SetMatchSearchList)
/Users/sumit/go/pkg/mod/github.com/99designs/keyring@v1.2.2/keychain.go:56:39: undefined: gokeychain.NewWithPath
/Users/sumit/go/pkg/mod/github.com/99designs/keyring@v1.2.2/keychain.go:116:45: undefined: gokeychain.Keychain
/Users/sumit/go/pkg/mod/github.com/99designs/keyring@v1.2.2/keychain.go:125:13: queryItem.SetMatchSearchList undefined (type keychain.Item has no field or method SetMatchSearchList)
/Users/sumit/go/pkg/mod/github.com/99designs/keyring@v1.2.2/keychain.go:137:9: kcItem.SetAccess undefined (type keychain.Item has no field or method SetAccess)
/Users/sumit/go/pkg/mod/github.com/99designs/keyring@v1.2.2/keychain.go:147:20: undefined: gokeychain.Keychain
/Users/sumit/go/pkg/mod/github.com/99designs/keyring@v1.2.2/keychain.go:167:10: kcItem.UseKeychain undefined (type keychain.Item has no field or method UseKeychain)
/Users/sumit/go/pkg/mod/github.com/99designs/keyring@v1.2.2/keychain.go:182:10: kcItem.SetAccess undefined (type keychain.Item has no field or method SetAccess)
/Users/sumit/go/pkg/mod/github.com/99designs/keyring@v1.2.2/keychain.go:182:32: undefined: gokeychain.Access
/Users/sumit/go/pkg/mod/github.com/99designs/keyring@v1.2.2/keychain.go:273:47: undefined: gokeychain.Keychain
/Users/sumit/go/pkg/mod/github.com/99designs/keyring@v1.2.2/keychain.go:182:32: too many errors

Same for gomobile bind -target=ios github.com/teslamotors/vehicle-command/pkg/protocol
gomobile: iossimulator/amd64: go build -buildmode=c-archive -o /var/folders/jx/80_jfqqx08n4ddrh7nvbgz040000gn/T/gomobile-work-1204220064/protocol-iossimulator-amd64.a ./gobind failed: exit status 1
# gobind/gobind
gobind/go_protocolmain.go:803:18: cannot use (*proxyprotocol_ECDHPrivateKey)(_param_skey_ref) (value of type *proxyprotocol_ECDHPrivateKey) as protocol.ECDHPrivateKey value in assignment: *proxyprotocol_ECDHPrivateKey does not implement protocol.ECDHPrivateKey (missing method Exchange)


Sketch V49 Compatibility?

Does this have Sketch v49 compatibility. Don't want to upgrade until it does. Also, maybe you can post somewhere on the GitHub what the latest version of sketch is that is supported by each release (like a note).

Duplicate with #400 fixed with update 2.7.2

Let's close this issue, plugin works fine on v49.1.

@utom It's likely that this issue can be safely closed now.


Fixing connected, insert, & remove stuff

The typings suggested that the insert & remove hooks were only called for elements, but they were also called for documents and document fragments. I limited them to elements.
I also saw that connectedCallback and disconnectedCallback weren't firing at the right time, and fixing this involved implementing isConnected.

I fixed connectedCallback so it was only called when it became connected to a document, but some of the code expected it to be called when being inserted into a disconnected tree. I think I've fixed that.


Unable to import :- from keras.preprocessing.image import ImageDataGenerator

from keras.preprocessing.image import ImageDataGenerator
Traceback (most recent call last):
File "", line 1, in
from keras.preprocessing.image import ImageDataGenerator
File "C:\Program Files\Anaconda3\lib\site-packages\keras\preprocessing\image.py", line 13, in
import scipy.ndimage as ndi
File "C:\Program Files\Anaconda3\lib\site-packages\scipy\ndimage_init_.py", line 161, in
from .filters import *
File "C:\Program Files\Anaconda3\lib\site-packages\scipy\ndimage\filters.py", line 37, in
from scipy.misc import doccer
File "C:\Program Files\Anaconda3\lib\site-packages\scipy\misc_init_.py", line 53, in
from scipy.interpolate._pade import pade
File "C:\Program Files\Anaconda3\lib\site-packages\scipy\interpolate_init_.py", line 176, in
from .interpolate import *
File "C:\Program Files\Anaconda3\lib\site-packages\scipy\interpolate\interpolate.py", line 21, in
import scipy.special as spec
File "C:\Program Files\Anaconda3\lib\site-packages\scipy\special_init_.py", line 640, in
from ._ufuncs import *
ImportError: DLL load failed: The specified module could not be found.

As the traceback says, this is likely an issue with your installation of scipy. So this isn't really a keras issue.


ITKS-17: Updates and improvements

Link to ticket
https://jira.itkdev.dk/browse/ITKS-17
Description
Cleans up OIDC by removing superfluous properties and aligning others with Service certificate.
Checklist

[ ] My code is covered by test cases.
[ ] My code passes our test (all our tests).
[x] My code passes our static analysis suite.
[x] My code passes our continuous integration process.

If your code does not pass all the requirements on the checklist you have to add a comment explaining why this change
should be exempt from the list.

Maybe consolidate the migrations in one file?

@turegjorup: https://github.com/itk-dev/devops_itksites/pull/34/commits/d9fa0129f2e1fdb5af6dbef5fcc542d37df82af1


Export to multiple JS files

Hi Martin,
thanks for your boilerplate, you did an awesome job! I have a question though. It’s not an issue, but would it be possible to get multiple folder/files compiled to multiple js files?
For the SCSS stuff it’s as easy as creating new folders for multiple CSS files. I'd like to have the same results for the JS, but I don’t know how to handle that since the input inside the config.js is declared as one file. I stumpled across following instructions, would it be a starting point?
https://macr.ae/article/splitting-gulpfile-multiple-files
I’m definitly not an expert to gulp and webpack and hope not to ask too silly questions..

I'll have a look and see what I can do for you!

@grommas Hey there, sorry for getting back at you this late (life and all):
Did you want to build multiple JS files or just have multiple JS files build one main JS in the end?
Because webpack can totally do the first for you, and the latter is just a matter of using import statements, really.
However, I've been thinking to implement a way to generate files out-of-the-box to be picked up by Kirby depending on the template being used. But since I myself never needed this (keep your code lean, build one file, load it early on and never look back), I didn't include something like that 😕

Ah, I see. I wanted to have different templates with different webpack builds at the end, just sharing some needed patterns. Probably it’s better to isolate each template with an own starter kit and make plugins out of it afterwards. Thanks for your response!

Feedback of any kind is always welcome - thanks for that!


Make cgroup tracking more robust

What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Testing with different runtimes reveled that we cannot skip the
"crio-conmon-" cgroup because it may be temporarily the target cgroup to
track. To still filter out conmon as a process, we now use a list of
filtered comms during syscall accumulation.
Which issue(s) this PR fixes:

None
Does this PR have test?
None

Special notes for your reviewer:
None
Does this PR introduce a user-facing change?

None

@pjbgf PTAL


HOTFIX: Remove extra header location from install call

resolves SWDEV-362068
Summary of proposed changes:

Remove source directory from rocm_install_targets call to prevent installation of rocfft.h in an unintended location

Hotfix approved by Makarand.

If there's going to be a new version of rocfft in ROCm 5.4.3, when do you plan to update the library version number and update the changelog?


Cannot use vector-wirepod-setup

Now this is possibly unrelated to this project, however I can't get past the installation process for the Vector itself. I either get the error 'GATT Server is disconnected. Cannot retrieve services. (Re)connect first with device.gatt.connect' or literally nothing happens. I've tried on several different PCs, and they all produce the same error.
https://github.com/kercre123/wire-pod/assets/86145902/455a289f-7921-45fe-9222-6e6506786954

Just to get basics out of the way: have you double-pressed his button while he is on the charger before pressing "PAIR WITH VECTOR", and is he showing a key with 6 #s on his face?


ci: multiple updates

See commits

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

v2.1.1
GitHub release

Your semantic-release bot :package::rocket:


Fix problems in focus mode and global pattern switching

:tada: This PR is included in version 1.8.0-alpha.3 :tada:
The release is available on npm package (@alpha dist-tag)
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.16.0-alpha.3 :tada:
The release is available on npm package (@alpha dist-tag)
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.12.0-alpha.3 :tada:
The release is available on npm package (@alpha dist-tag)
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.0.0 :tada:
The release is available on npm package (@latest dist-tag)
Your semantic-release bot :package::rocket:


openjdk8: replacing jre symlinking with copy

Motivation for this change
For space optimization reasons, the JRE was linked into the JDK from a
separate output. While this saves some space, it breaks certain
assumptions made in some software, expecting the JRE to reside within
the JDK tree and to be able to reach JDK libraries by traversing
up the folders and similar.
This approach should reduce the need for workarounds in jvm based
builds and other issues at the cost of some storage space.
JDK colosure size delta: +24%
JRE colosure size delta: +4% (this is likely for other reasons)
This addresses https://github.com/NixOS/nixpkgs/issues/37364
and might also supersede https://github.com/NixOS/nixpkgs/pull/68370
I tested this building jogl (removing the workaround) and hadoop.

Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Notify maintainers
cc @edwtjo
cc @NeQuissimus
cc @volth

Was this introduced by #65247? I changed from using lndir to ln -s without realizing the problems it would cause, so it seems like the solution should just be to go back to using lndir, which should fix the problem without increasing the package size.

@lopsided98: I did not bisect the error, so did missed this change. Just tried a state before the commit and it seems to compile fine. Closing then.


SimpleTimeLimiter exception

In some projects I got exception when use pactVerify method:
java.lang.IllegalAccessError: tried to access method com.google.common.util.concurrent.SimpleTimeLimiter.<init>(Ljava/util/concurrent/ExecutorService;)V from class pact4s.TimeLimiter$

version: 0.5.0

@chameleon82 this is most likely due to library incompatibility - pact-jvm brings in com.google.guava:failureaccess:1.0.1 for SimpleTimeLimiter - is your project also depending on a different version of that library?

I'm replacing the time limiter with a native scala one, so the next version of pact4s shouldn't have this issue

@chameleon82 could you try 0.5.1 and see if the issue is fixed

@jbwheatley Thank you. It works now.


Fix more format strings

Casting a wchar_t* (win32: short) to unichar* (always: short) is safe only on our platform.
This is the format change delta from #2628 to develop that caused #2629 to break.

:shipit:


fix: remove unsafe code in auto/manual heap dump

I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
This is the cause for all the weird panics we have been encountering recently.
Resolves #12582
Resolves #12580
Resolves #12578
Resolves #12560
Before the PR, the file_path_str was leaked as an str but then re-boxed as an u8 (not [u8]), which must be wrong. This PR simply removes the unsafe code because the dump.write() requires a 'static &CStr and we should just leak a str for it.
It's possible that memory leaks here, but I don't have any better ideas.
Checklist

[x] I have written necessary rustdoc comments
[x] I have added necessary unit tests and integration tests
[ ] I have added fuzzing tests or opened an issue to track them. (Optional, recommended for new SQL features #7934).
[ ] My PR contains breaking changes. (If it deprecates some features, please create a tracking issue to remove them in the future).
[ ] All checks passed in ./risedev check (or alias, ./risedev c)
[ ] My PR changes performance-critical code. (Please run macro/micro-benchmarks and show the results.)

[ ] My PR contains critical fixes that are necessary to be merged into the latest release. (Please check out the details)

Documentation

[ ] My PR needs documentation updates. (Please use the Release note section below to summarize the impact on users)

Release note
If this PR includes changes that directly affect users or other significant modifications relevant to the community, kindly draft a release note to provide a concise summary of these changes. Please prioritize highlighting the impact these changes will have on users.

Waiting for verifying

https://buildkite.com/risingwave-test/longevity-kubebench/builds/694
https://buildkite.com/risingwave-test/longevity-kubebench/builds/695

May I ask how is the bug located? 🥵

May I ask how is the bug located? 🥵

Binary search PRs.


VMProtect/Themida virtualization

it is supported?

No, they are not supported in the current release.

@fritzone maybe add bindings?

I'm afraid that won't be possible, due to the fact that Themida and VMProtect work at a different level of abstraction. From what I understood from their site and after doing a quick check-out of their applications their applications (you have to pay for) are designed to protect windows based software, which is already compiled into an executable format, and they do not expose any APIs or libraries to offer a meddling point into the internals of the functionality of the software. The obfy framework on the other end works at source level, ie. you have to write actual code using the provided macro framework, it's platform independent, it needs to be compiled and is open source. The only way I can see these two parties interact with each other is that you take the executable you have compiled using the obfy framework and run it through Themida/VMProtect.

@fritzone ur see macros?


Add Description class and DescriptionTest

Added Description class in Model to support description feature

Codecov Report

Merging #147 into master will decrease coverage by 0.61%.
The diff coverage is 17.64%.

@@             Coverage Diff              @@
##             master     #147      +/-   ##
============================================
- Coverage     64.48%   63.86%   -0.62%
- Complexity      401      403       +2
============================================
  Files            80       81       +1
  Lines          1281     1298      +17
  Branches        110      111       +1
============================================
+ Hits            826      829       +3
- Misses          417      431      +14
  Partials         38       38

Impacted Files
Coverage Δ
Complexity Δ

src/main/java/seedu/address/model/tag/Tag.java
79.16% <ø> (ø)
10.00 <0.00> (ø)

...a/seedu/address/model/description/Description.java
17.64% <17.64%> (ø)
2.00 <2.00> (?)

Continue to review full report at Codecov.

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


An error occurred after executing open_channel

warn  2019-01-10T02:13:36.501 thread-0  transaction.cpp:120           operator()           ] actions: ["dummy"]
error 2019-01-10T02:13:36.501 thread-0  transaction.cpp:124           operator()           ] 3090003 unsatisfied_authorization: Provided keys, permissions, and delays do not satisfy declared authorizations
transaction declares authority '{"actor":"twinklerelay","permission":"active"}', but does not have signatures for it under a provided delay of 0 ms, provided permissions [], provided keys ["EOS8H93TkrkxWiTReLUURpauvSo8BD6jC91WJL31jHapV6r73bFDY"], and a delay max limit of<PHONE_NUMBER> ms
{"auth":{"actor":"twinklerelay","permission":"active"},"provided_delay":0,"provided_permissions":[],"provided_keys":["EOS8H93TkrkxWiTReLUURpauvSo8BD6jC91WJL31jHapV6r73bFDY"],"delay_max_limit_ms":3888000000}
thread-0  authorization_manager.cpp:517 check_authorization
info  2019-01-10T02:13:36.501 thread-0  icp_relay.cpp:352             handle_message       ] received icp_notice_message
In the icp_plugin and session files are the following:
https://github.com/eocschain/eocs/blob/03773e962b7428235fdadbd1dd14461459deaaa2/plugins/icp_relay_plugin/transaction.cpp#L100
https://github.com/eocschain/eocs/blob/03773e962b7428235fdadbd1dd14461459deaaa2/plugins/icp_relay_plugin/session.cpp#L398

已修复


Cleanup

The website code has some seemingly useless and poorly formatted parts from people over multiple years editing on top of each other. I've tried my best to remove and clean up everything. Most importantly, there was incorrect information that should now be corrected.

PR reviewed and merged


I upgraded my ruby version but it still doesn't work

Description
hey guys ı got issue when install new react-native cli version about my ruby version then i removed watchman and ruby packages from my brew and reinstall now my ruby version is ruby 2.7.6p219 (2022-04-12 revision c9c2245c0a) [arm64-darwin22] everything it's okey when init any project but now i get issue when open my project on ios simulator my error like below
React Native Version
0.71.4
Output of npx react-native info
RVM used your Gemfile for selecting Ruby, it is all fine - Heroku does that too,
you can ignore these warnings with 'rvm rvmrc warning ignore /Users/egecanmac/Desktop/Documents/React Native Documents/demo/Gemfile'.
To ignore the warning for all files run 'rvm rvmrc warning ignore allGemfiles'.
Unknown ruby interpreter version (do not know how to handle): File.readFile.join__dir__,.ruby-version.strip.
egecanmac@egecan-mbp demo % npx react-native info
info Fetching system and libraries information...
System:
OS: macOS 13.2.1
CPU: (8) arm64 Apple M1
Memory: 124.73 MB / 8.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 16.13.0 - ~/.nvm/versions/node/v16.13.0/bin/node
Yarn: 1.22.19 - ~/.nvm/versions/node/v16.13.0/bin/yarn
npm: 8.19.2 - ~/.nvm/versions/node/v16.13.0/bin/npm
Watchman: 2<IP_ADDRESS> - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.12.0 - /Users/egecanmac/.rvm/gems/ruby-2.7.6/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
Android SDK: Not Found
IDEs:
Android Studio: 2021.3 AI-213.7172.25.2113.9123335
Xcode: 14.2/14C18 - /usr/bin/xcodebuild
Languages:
Java: Not Found
npmPackages:
@react-native-community/cli: Not Found
react: 18.2.0 => 18.2.0
react-native: 0.71.4 => 0.71.4
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
egecanmac@egecan-mbp demo %
Steps to reproduce
RVM used your Gemfile for selecting Ruby, it is all fine - Heroku does that too,
you can ignore these warnings with 'rvm rvmrc warning ignore /Users/egecanmac/Desktop/Documents/React Native Documents/demo/Gemfile'.
To ignore the warning for all files run 'rvm rvmrc warning ignore allGemfiles'.
Unknown ruby interpreter version (do not know how to handle): File.readFile.join__dir__,.ruby-version.strip.
egecanmac@egecan-mbp demo % yarn start
yarn run v1.22.19
warning ../../../../package.json: No license field
$ react-native start
                    ▒▒▓▓▓▓▒▒
                 ▒▓▓▓▒▒░░▒▒▓▓▓▒
              ▒▓▓▓▓░░░▒▒▒▒░░░▓▓▓▓▒
             ▓▓▒▒▒▓▓▓▓▓▓▓▓▓▓▓▓▒▒▒▓▓
             ▓▓░░░░░▒▓▓▓▓▓▓▒░░░░░▓▓
             ▓▓░░▓▓▒░░░▒▒░░░▒▓▒░░▓▓
             ▓▓░░▓▓▓▓▓▒▒▒▒▓▓▓▓▒░░▓▓
             ▓▓░░▓▓▓▓▓▓▓▓▓▓▓▓▓▒░░▓▓
             ▓▓▒░░▒▒▓▓▓▓▓▓▓▓▒░░░▒▓▓
              ▒▓▓▓▒░░░▒▓▓▒░░░▒▓▓▓▒
                 ▒▓▓▓▒░░░░▒▓▓▓▒
                    ▒▒▓▓▓▓▒▒

            Welcome to Metro v0.73.8
          Fast - Scalable - Integrated

r - reload the app
d - open developer menu
i - run on iOS
a - run on Android
warning: Watchman watch-project returned a warning: Recrawled this watch 1 times, most recently because:
MustScanSubDirs UserDroppedTo resolve, please review the information on
https://facebook.github.io/watchman/docs/troubleshooting.html#recrawl
To clear this warning, run:
watchman watch-del '/Users/egecanmac/Desktop/Documents/React Native Documents/demo' ; watchman watch-project '/Users/egecanmac/Desktop/Documents/React Native Documents/demo'
warning: Watchman query returned a warning: Recrawled this watch 1 times, most recently because:
MustScanSubDirs UserDroppedTo resolve, please review the information on
https://facebook.github.io/watchman/docs/troubleshooting.html#recrawl
To clear this warning, run:
watchman watch-del '/Users/egecanmac/Desktop/Documents/React Native Documents/demo' ; watchman watch-project '/Users/egecanmac/Desktop/Documents/React Native Documents/demo'
Recrawled this watch 1 times, most recently because:
MustScanSubDirs UserDroppedTo resolve, please review the information on
https://facebook.github.io/watchman/docs/troubleshooting.html#recrawl
To clear this warning, run:
watchman watch-del '/Users/egecanmac/Desktop/Documents/React Native Documents/demo' ; watchman watch-project '/Users/egecanmac/Desktop/Documents/React Native Documents/demo'
info Opening the app on iOS...
info Found Xcode workspace "demo.xcworkspace"
info Found booted iPhone 14 Plus
info Launching iPhone 14 Plus
info Building (using "xcodebuild -workspace demo.xcworkspace -configuration Debug -scheme demo -destination id=F66635AB-2918-4A57-9C8C-EC2C29401927")
Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace demo.xcworkspace -configuration Debug -scheme demo -destination id=F66635AB-2918-4A57-9C8C-EC2C29401927
User defaults from command line:
IDEPackageSupportUseBuiltinSCM = YES
Prepare packages
Computing target dependency graph and provisioning inputs
Create build description
Build description signature: cd5bd5ab189fd9cdbd95134ade41df00
Build description path: /Users/egecanmac/Library/Developer/Xcode/DerivedData/demo-bdabeyxesqofeeaadnqykvqzehbb/Build/Intermediates.noindex/XCBuildData/cd5bd5ab189fd9cdbd95134ade41df00-desc.xcbuild
note: Building targets in dependency order
PhaseScriptExecution [CP-User]\ Generate\ Specs /Users/egecanmac/Library/Developer/Xcode/DerivedData/demo-bdabeyxesqofeeaadnqykvqzehbb/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/Script-46EB2E00018F30.sh (in target 'FBReactNativeSpec' from project 'Pods')
cd /Users/egecanmac/Desktop/Documents/React\ Native\ Documents/demo/ios/Pods
export ACTION=build
export AD_HOC_CODE_SIGNING_ALLOWED=YES
export ALLOW_TARGET_PLATFORM_SPECIALIZATION=NO
export ALTERNATE_GROUP=staff
export ALTERNATE_MODE=u+w,go-w,a+rX
export ALTERNATE_OWNER=egecanmac
export ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES=NO
export ALWAYS_SEARCH_USER_PATHS=NO
export ALWAYS_USE_SEPARATE_HEADERMAPS=NO
export APPLE_INTERNAL_DEVELOPER_DIR=/AppleInternal/Developer
export APPLE_INTERNAL_DIR=/AppleInternal
export APPLE_INTERNAL_DOCUMENTATION_DIR=/AppleInternal/Documentation
export APPLE_INTERNAL_LIBRARY_DIR=/AppleInternal/Library
export APPLE_INTERNAL_TOOLS=/AppleInternal/Developer/Tools
export APPLICATION_EXTENSION_API_ONLY=NO
export APPLY_RULES_IN_COPY_FILES=NO
export APPLY_RULES_IN_COPY_HEADERS=NO
export ARCHS=arm64
export ARCHS_STANDARD=arm64\ x86_64
export ARCHS_STANDARD_32_64_BIT=arm64\ i386\ x86_64
export ARCHS_STANDARD_32_BIT=i386
export ARCHS_STANDARD_64_BIT=arm64\ x86_64
export ARCHS_STANDARD_INCLUDING_64_BIT=arm64\ x86_64
export ARCHS_UNIVERSAL_IPHONE_OS=arm64\ i386\ x86_64
export ASSETCATALOG_COMPILER_APPICON_NAME=AppIcon
export ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME=AccentColor
export ASSETCATALOG_FILTER_FOR_DEVICE_MODEL=iPhone14,8
export ASSETCATALOG_FILTER_FOR_DEVICE_OS_VERSION=16.2
export ASSETCATALOG_FILTER_FOR_THINNING_DEVICE_CONFIGURATION=iPhone14,8
export AVAILABLE_PLATFORMS=appletvos\ appletvsimulator\ driverkit\ iphoneos\ iphonesimulator\ macosx\ watchos\ watchsimulator
export BITCODE_GENERATION_MODE=marker
export BUILD_ACTIVE_RESOURCES_ONLY=YES
export BUILD_COMPONENTS=headers\ build
export BUILD_DIR=/Users/egecanmac/Library/Developer/Xcode/DerivedData/demo-bdabeyxesqofeeaadnqykvqzehbb/Build/Products
export BUILD_LIBRARY_FOR_DISTRIBUTION=NO
export BUILD_ROOT=/Users/egecanmac/Library/Developer/Xcode/DerivedData/demo-bdabeyxesqofeeaadnqykvqzehbb/Build/Products
export BUILD_STYLE=
export BUILD_VARIANTS=normal
export BUILT_PRODUCTS_DIR=/Users/egecanmac/Library/Developer/Xcode/DerivedData/demo-bdabeyxesqofeeaadnqykvqzehbb/Build/Products/Debug-iphonesimulator/FBReactNativeSpec
export BUNDLE_CONTENTS_FOLDER_PATH_deep=Contents/
export BUNDLE_EXECUTABLE_FOLDER_NAME_deep=MacOS
export BUNDLE_EXTENSIONS_FOLDER_PATH=Extensions
export BUNDLE_FORMAT=shallow
export BUNDLE_FRAMEWORKS_FOLDER_PATH=Frameworks
export BUNDLE_PLUGINS_FOLDER_PATH=PlugIns
export BUNDLE_PRIVATE_HEADERS_FOLDER_PATH=PrivateHeaders
export BUNDLE_PUBLIC_HEADERS_FOLDER_PATH=Headers
export CACHE_ROOT=/var/folders/92/wd03f3xs06g7ykt_fsv3yq9h0000gn/C/com.apple.DeveloperTools/14.2-14C18/Xcode
export CCHROOT=/var/folders/92/wd03f3xs06g7ykt_fsv3yq9h0000gn/C/com.apple.DeveloperTools/14.2-14C18/Xcode
export CHMOD=/bin/chmod
export CHOWN=/usr/sbin/chown
export CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED=YES
export CLANG_ANALYZER_NONNULL=YES
export CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION=YES_AGGRESSIVE
export CLANG_CXX_LANGUAGE_STANDARD=c++17
export CLANG_CXX_LIBRARY=libc++
export CLANG_ENABLE_MODULES=YES
export CLANG_ENABLE_OBJC_ARC=YES
export CLANG_ENABLE_OBJC_WEAK=NO
export CLANG_MODULES_BUILD_SESSION_FILE=/Users/egecanmac/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation
export CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING=YES
export CLANG_WARN_BOOL_CONVERSION=YES
export CLANG_WARN_COMMA=YES
export CLANG_WARN_CONSTANT_CONVERSION=YES
export CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS=YES
export CLANG_WARN_DIRECT_OBJC_ISA_USAGE=YES_ERROR
export CLANG_WARN_DOCUMENTATION_COMMENTS=YES
export CLANG_WARN_EMPTY_BODY=YES
export CLANG_WARN_ENUM_CONVERSION=YES
export CLANG_WARN_INFINITE_RECURSION=YES
export CLANG_WARN_INT_CONVERSION=YES
export CLANG_WARN_NON_LITERAL_NULL_CONVERSION=YES
export CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF=YES
export CLANG_WARN_OBJC_LITERAL_CONVERSION=YES
export CLANG_WARN_OBJC_ROOT_CLASS=YES_ERROR
export CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER=NO
export CLANG_WARN_RANGE_LOOP_ANALYSIS=YES
export CLANG_WARN_STRICT_PROTOTYPES=YES
export CLANG_WARN_SUSPICIOUS_MOVE=YES
export CLANG_WARN_UNGUARDED_AVAILABILITY=YES_AGGRESSIVE
export CLANG_WARN_UNREACHABLE_CODE=YES
export CLANG_WARN__DUPLICATE_METHOD_MATCH=YES
export CLASS_FILE_DIR=/Users/egecanmac/Library/Developer/Xcode/DerivedData/demo-bdabeyxesqofeeaadnqykvqzehbb/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/JavaClasses
export CLEAN_PRECOMPS=YES
export CLONE_HEADERS=NO
export CODESIGNING_FOLDER_PATH=/Users/egecanmac/Library/Developer/Xcode/DerivedData/demo-bdabeyxesqofeeaadnqykvqzehbb/Build/Products/Debug-iphonesimulator/FBReactNativeSpec/
export CODE_SIGNING_ALLOWED=NO
export CODE_SIGNING_REQUIRED=YES
export CODE_SIGN_CONTEXT_CLASS=XCiPhoneSimulatorCodeSignContext
export CODE_SIGN_IDENTITY=-
export CODE_SIGN_INJECT_BASE_ENTITLEMENTS=YES
export COLOR_DIAGNOSTICS=NO
export COMBINE_HIDPI_IMAGES=NO
export COMPILER_INDEX_STORE_ENABLE=Default
export COMPOSITE_SDK_DIRS=/Users/egecanmac/Library/Developer/Xcode/DerivedData/demo-bdabeyxesqofeeaadnqykvqzehbb/Build/Intermediates.noindex/CompositeSDKs
export COMPRESS_PNG_FILES=YES
export CONFIGURATION=Debug
export CONFIGURATION_BUILD_DIR=/Users/egecanmac/Library/Developer/Xcode/DerivedData/demo-bdabeyxesqofeeaadnqykvqzehbb/Build/Products/Debug-iphonesimulator/FBReactNativeSpec
export CONFIGURATION_TEMP_DIR=/Users/egecanmac/Library/Developer/Xcode/DerivedData/demo-bdabeyxesqofeeaadnqykvqzehbb/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator
export COPYING_PRESERVES_HFS_DATA=NO
export COPY_HEADERS_RUN_UNIFDEF=NO
export COPY_PHASE_STRIP=NO
export COPY_RESOURCES_FROM_STATIC_FRAMEWORKS=YES
export CORRESPONDING_DEVICE_PLATFORM_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform
export CORRESPONDING_DEVICE_PLATFORM_NAME=iphoneos
export CORRESPONDING_DEVICE_SDK_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.2.sdk
export CORRESPONDING_DEVICE_SDK_NAME=iphoneos16.2
export CP=/bin/cp
export CREATE_INFOPLIST_SECTION_IN_BINARY=NO
export CURRENT_ARCH=undefined_arch
export CURRENT_VARIANT=normal
export DEAD_CODE_STRIPPING=YES
export DEBUGGING_SYMBOLS=YES
export DEBUG_INFORMATION_FORMAT=dwarf
export DEFAULT_COMPILER=com.apple.compilers.llvm.clang.1_0
export DEFAULT_DEXT_INSTALL_PATH=/System/Library/DriverExtensions
export DEFAULT_KEXT_INSTALL_PATH=/System/Library/Extensions
export DEFINES_MODULE=NO
export DEPLOYMENT_LOCATION=NO
export DEPLOYMENT_POSTPROCESSING=NO
export DEPLOYMENT_TARGET_SETTING_NAME=IPHONEOS_DEPLOYMENT_TARGET
export DEPLOYMENT_TARGET_SUGGESTED_VALU
Snack, code example, screenshot, or link to a repository
idont have

You removed ruby from brew and installed RVM?
Either way - the error looks pretty self explanatory. You are somehow on a version of RN that removed a line that an error message says you have. See this commit for details and double check your Gemfile
https://github.com/facebook/react-native/commit/1d22e291462ac452f2bb6b1b6af11986944ec54a

Same problem here :(

What's the output from Step 2 yarn run ios?

You removed ruby from brew and installed RVM?
Either way - the error looks pretty self explanatory. You are somehow on a version of RN that removed a line that an error message says you have. See this commit for details and double check your Gemfile
1d22e29

yeah i just remove ruby from homebrew also i have rvm already but stil getting error like that

i wanna ask that am i need to any ruby managers for react native cli ? i removed ruby from homebrew and install rvm stil doesn't work after than i removed rvm and ran the command ruby --version it give me output at below i don't have any ruby package manager  :
~ % ruby --version
ruby 2.6.10p210 (2022-04-12 revision 67958) [universal.arm64e-darwin22]


Remove .idea folder from git

Solution for #22

The idea was not only to remove .idea from git.
Making .idea version controlled is not a bad idea generally: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839-How-to-manage-projects-under-Version-Control-Systems
In this project it contains info about code style: https://github.com/unterumarmung/fixed_string/blob/master/.idea/codeStyles/Project.xml
But it's not a very convenient way to define a code style for a C++ project, because we have a lot of tools and IDEs.
Instead of CLion-based code style checking we need to provide a clang-tidy config that defined code style.

Instead of CLion-based code style checking we need to provide a clang-tidy config that defined code style.

So this PR should be linked to #25 too. To be implemented...

Instead of CLion-based code style checking we need to provide a clang-tidy config that defined code style.

So this PR should be linked to #25 too. To be implemented...

Not necessarily. #25 is about CI. This one is about changing code style engine. But it can implemented here too.


Tm/tests

[x] Add github pages deployment
[x] Add github action for deployment to man
[x] Add github action for e2e tests on pull request to dev & main
[x] Add Cypress e2e test framework
[x] Update Readme with new run instructions

@maximillian47 @Terransky this is a large change; lets take some time to go over it prior to merging.


Iframe lazy loading

We have put some pym.js auto-initialized iframes on the homepage of our news website. This works well but we would like to lazy load them to avoid loading iframes that are not displayed.
Do you think this could be an option of pym? Or it could be done like an extension or a plugin?

@AlainVagner Check out my fork https://github.com/bhaskarvk/pym.js. I added option to lazy load the child using https://github.com/dinbror/blazy.
I added an option in Parent called lazyload which if true returns <iframe data-src='child.html...' class='b-lazy' ...> instead of the default <iframe src='child.html...' ...>. You will also need to include the bLzay javascript and initialize bLazy as described in the bLazy documentation.


No native build was found for platform=linux arch=x64

I can.. obviously see in the prebuild folder that it does exist.. i have added "uiohook-napi" to my build.mts too

fixed by moving prebuilds to dist folder...


charts/metabase add securityContext hooks

This will allow users to specify their own securityContext.
I created separate hooks for metabase and cloudsql so that they can be different if the user wants them to be. Let me know if you like these changes and I can add them to the documentation as a part of this PR.

@jhunterc15  For cleaner values.yaml, I would like to ask you to move cloudsqlSecurityContext to database.googleCloudSQL.securityContext and rename metabaseSecurityContext to just securityContext
Thanks for contributing !


Fix redis memory usage check when phpredis is used

This PR is a fix for Redis memory usage check introduced in #154
info() returns different array structure depending on the driver used.
Below is the output when this check was run with phpredis.

The check named RedisMemoryUsage did not complete. An exception was thrown with this message: ErrorException: Undefined array key "Memory"

Thanks!


feat: #812 - additional optional button at the bottom of the product page

Impacted files:

new_product_page.dart: added an optional button at the bottom of the product page
user_preferences_dev_mode.dart: added an "optional button switch" in dev mode

Screenshot

It's a very beautiful additional button 😀

Thank you @teolemon for your code review and your assessment of my artistic skills. In Florence they call me the Michelangelo of the ElevatedButton ;)


Handle incomplete messages at serial port

Related to #117, #119, #127

I think that should solve the issue for the Linux part. Any comments?

serial->nReceivedBytes should not be accessed outside the mutex.

Hm, serial->nReceivedBytes is only used in its own thread, except for function MDD_serialPortGetReceivedBytes(..) which reads it.
One could protect everything by a mutex, but using MDD_serialPortGetReceivedBytes(..), e.g., to check whether enough bytes have been received before doing something is not very robust anyway. There is no guarantee that the number of read bytes doesn't change immediately in the reading thread after the function has been called. This potentially invalidates any condition under which some action would be triggered in the Modelica code part. Maybe its best to just flag it as an unsafe function which might have some use for debugging, but shouldn't be used for anything else.

If serial->nReceivedBytes is only used in its own thread, then there is no need to have it in the serial struct. See also https://github.com/modelica/Modelica_DeviceDrivers/issues/127#issuecomment-255952934

Hm, MDD_serialPortGetReceivedBytes is called in the test module (test_MDDSerialPort.c). And this is not only the case for serial port I/O but basically for all other communication drivers. Thus deprecating one, which is fine for me, is not enough. I propose to deprecate all of them.

Okay, I came up with another solution which should be more useful. serial->nReceivedBytes will now contain the sum of all received bytes and its access is protected by a mutex (see commit).


🏛 Law-stone: Instantiate contract

This PR bring implementation of the instantiation of the cw-law-stone contract
⚙ Usage
okp4d tx wasm instantiate 1 --no-admin --chain-id okp4-localnet --home
  '{"program":"Zm9vKF8pIDotIHRydWUu", "storage_address": "okp41l592wurqjvcpvp5lcz3a2u673fa00a8q8xkpln395xqwy239kwashryf6f"}' \
  --label "programs" --gas-prices 0.025uknow --gas auto --gas-adjustment 1.5 --yes --broadcast-mode block \
  --from validator --keyring-backend test

Instantiate will first store the given program into a cw-storage at the given address.
Once the reply is receive, save object id into the law-stone state and ask query the logic module to return all dependencies used on the given program.
For each dependencies, a message is sent to the corresponding cw-storage dependency to pin the object.

:tada: This PR is included in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Add styles to Category and Date select inuputs under Add New Transaction Section

The  "Choose a Category" and "date" selection inputs under Add new Transaction section should be given the styles consistent to other select inputs.

And Even if the above design is part of the UI, there is a minor issue related to how different browsers style selection input.
The same input box is styled  with a greyish background color on Mozilla Firefox which does not look good.
No background color in Chrome

But
Greyish background color in Firefox

Solution:

Go to ExpenseTracker.js.
Find the required select inputs.
Change the styles.
Make Background as transparent so that the select inputs are displayed same on every browser.

Hey, can I work on this?

@chandiran-v yeah sure


Integrated terminal does not honour system $SHELL on macOS

Does this issue occur when all extensions are disabled?: Yes

VS Code Version: 1.65.2
OS Version: macOS 12.2.1 (Monterey)
Architecture: Apple M1 (arm64)

Overview:
The VSCode documentation (here) says:

The terminal's shell defaults to $SHELL on Linux and macOS and PowerShell on Windows. VS Code will automatically detect most standard shells that can then be configured as the default.

However on a Macbook M1 running macOS Monterey, the system's default shell (as reported by the SHELL env var) is not honoured, and instead VSCode's intergrated shell defaults to zsh and doesn't list the shell defined by SHELL in the "available shells" list at all.
Steps to Reproduce:

Install Homebrew on a new Apple M1 machine (which for M1 causes it to install into /opt/homebrew rather than /usr/local).
brew install bash (to install bash 5.x, since macOS system bash is still the older 3.x).
chsh -s /opt/homebrew/bin/bash (to set Homebrew's newer bash as the default system shell, rather than Apple's new default of /bin/zsh).
Log out/in for change to take effect.
Open terminal.app (or iterm.app), and echo $SHELL to confirm the default shell has successfully been changed.
Install VSCode.
Open the integrated terminal and run echo $SHELL.
Open command palette -> Terminal: Select Default Profile.
Scroll through available options to find the Homebrew bash shell.

Expected:

When opening the integrated terminal (at step 7) without having adjusted any VSCode setttings, VSCode by default uses the system shell defined by the SHELL environment variable.
In the shell list shown by Terminal: Select Default Profile (at step 9), the Homebrew bash shell (/opt/homebrew/bin/bash) should be listed, since:

(a) it's set by the SHELL env var,
(b) Homebrew is pretty popular, so it seems like scanning its default install locations (as well as the system locations) would be useful regardless of whether SHELL was set or not.

Actual:

When opening the integrated terminal (at step 7), the terminal defaults to zsh, with echo $SHELL reporting /bin/zsh even though that's no longer the system default shell.
In the shell list shown by Terminal: Select Default Profile (at step 9), the Homebrew bash shell (/opt/homebrew/bin/bash) is not listed.

/duplicate #142425

@meganrogge Hi!
Thank you taking a look at this, however it's not a duplicate.
Could you reopen it? :-)
Issue #142425 is about:

the 1st terminal opened (subsequent terminals work fine)
VSCode not honouring VSCode's own settings (whatever the user has configured them to be)

This issue is different, since it's about:

every terminal opened (not just the first)
VSCode not honour the default macOS system terminal (when the docs say it should use that, unless it's been overridden by the user)

Can you try running code . from the terminal in step 5 and see if it works then?

So typically I just tried to reproduce using the original STR (prior to trying your suggestion of launching from a terminal), and I can't reproduce now, after having been able to consistently reproduce previously. This morning I updated from macOS 12.2.1 to 12.3 - perhaps doing that resolved it? Either way, closing out for now.


Physics baseline

Added in Physics from the end of the game tech module. Collisions for capsules, AABB with every col volume and OBB with every coll vol is added. Can code review Capsules but the way it currently works should just work with any capsules you use as a collision.
Will explain if required but its just collision code.
:]

Changes made. Cheers


Feature request: use raw text to simplify pseudocode syntax

Lovelace is a unopinionated and flexible pseudocode package and i think it is great.
But I still think there's some points for improvement here, why don't we use a simpler raw text to identify Indent? Something like this:
#import "@preview/lovelace:0.1.0": *

#show: setup-lovelace

#let _typst2lovelace(typst-code, scope: (:)) = {
  let indent = 0
  let last-indent = 0
  let res = ()
  for line in typst-code.text.split("\n") {
    let whitespaces = line.find(regex("^\\s+"))
    let current-indent = if (whitespaces != none) { whitespaces.len() } else { 0 }
    if (indent == 0 and current-indent != 0) {
      indent = current-indent
    }
    if (current-indent > last-indent) {
      res = res + (ind,) * int((current-indent - last-indent) / indent)
    } else if (current-indent < last-indent) {
      res = res + (ded,) * int((last-indent - current-indent) / indent)
    }
    last-indent = current-indent
    let line-code = line.slice(current-indent)
    let match = line-code.match(regex("^<(.*)>\\s*$"))
    if (match != none) {
      res.push(label(match.captures.at(0)))
    } else {
      res.push(eval(line-code, mode: "markup", scope: (no-number: no-number, comment: comment) + scope))
    }
  }
  res
}

#pseudocode(.._typst2lovelace(
  ```typ
  *input:* integers $a$ and $b$
  *output:* greatest common divisor of $a$ and $b$
  *while* $a != b$ *do*
    *if* $a > b$ *then*
      $a <- a - b$
    *else*
      $b <- b - a$
    *end*
  *end*
  *return* $a$```
))

I think that might be better :-)

Interesting idea! I'm not sure about the name yet but I'd be happy to review a PR implementing this.

I have opened a pr: https://github.com/andreasKroepelin/lovelace/pull/3

Fixed by #3


Can't run under systemd under Ubuntu 20.04

Runs ok when executed directly using shell. When I try to start using systemd, I get this error:
● meilisearch.service - Meilisearch
     Loaded: loaded (/etc/systemd/system/meilisearch.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Tue 2022-12-13 20:51:40 CET; 4s ago
    Process: 2806323 ExecStart=/opt/meilisearch/meilisearch (code=exited, status=1/FAILURE)
   Main PID: 2806323 (code=exited, status=1/FAILURE)

Dec 13 20:51:40 modos-test systemd[1]: Started Meilisearch.
Dec 13 20:51:40 modos-test meilisearch[2806323]: Error: Permission denied (os error 13)
Dec 13 20:51:40 modos-test systemd[1]: meilisearch.service: Main process exited, code=exited, status=1/FAILURE
Dec 13 20:51:40 modos-test systemd[1]: meilisearch.service: Failed with result 'exit-code'.

Normal run when executed from shell
888b     d888          d8b 888 d8b                                            888
8888b   d8888          Y8P 888 Y8P                                            888
88888b.d88888              888                                                888
888Y88888P888  .d88b.  888 888 888 .d8888b   .d88b.   8888b.  888d888 .d8888b 88888b.
888 Y888P 888 d8P  Y8b 888 888 888 88K      d8P  Y8b     "88b 888P"  d88P"    888 "88b
888  Y8P<PHONE_NUMBER>8 888 888 888 "Y8888b. 88888888 .d888888 888    888      888  888
888   "   888 Y8b.     888 888 888      X88 Y8b.     888  888 888    Y88b.    888  888
888       888  "Y8888  888 888 888  88888P'  "Y8888  "Y888888 888     "Y8888P 888  888

Config file path:	"./config.toml"
Database path:		"./data.ms"
Server listening on:	"http://localhost:7700"
Environment:		"production"
Commit SHA:		"125f0b15228b342a0efd2877e77d69663b459077"
Commit date:		"2022-12-08T13:28:00Z"
Package version:	"0.30.2"
Anonymous telemetry:	"Disabled"

A Master Key has been set. Requests to Meilisearch won't be authorized unless you provide an authentication key.

Documentation:		https://docs.meilisearch.com
Source code:		https://github.com/meilisearch/meilisearch
Contact:		https://docs.meilisearch.com/resources/contact.html

[2022-12-13T19:54:41Z INFO  actix_server::builder] Starting 1 workers
[2022-12-13T19:54:41Z INFO  actix_server::server] Actix runtime found; starting in Actix runtime
[2022-12-13T19:54:41Z TRACE actix_server::worker] starting server worker 0
[2022-12-13T19:54:41Z TRACE mio::poll] registering event source with poller: token=Token(0), interests=READABLE
[2022-12-13T19:54:41Z TRACE actix_web::middleware::logger] Access log format: %a "%r" %s %b "%{Referer}i" "%{User-Agent}i" %T
[2022-12-13T19:54:41Z TRACE mio::poll] registering event source with poller: token=Token(0), interests=READABLE
[2022-12-13T19:54:41Z TRACE actix_server::worker] Service "actix-web-service-<IP_ADDRESS>:7700" is available

Folder permissons
-rw-r--r-- 1 meilisearch meilisearch 6.0K Dec 13 20:48 config.toml
drwxrwxr-x 6 meilisearch meilisearch 4.0K Dec 13 20:51 data.ms
drwxrwxr-x 2 meilisearch meilisearch 4.0K Dec 13 20:51 dumps
-rwxr-xr-x 1 meilisearch meilisearch 112M Dec  8 15:11 meilisearch

Config
env = "production"
http_addr = "localhost:7700"
master_key = "xxx-redacted"
no_analytics = true
log_level = "TRACE"

systemd service
[Unit]
Description=Meilisearch
After=systemd-user-sessions.service

[Service]
Type=simple
ExecStart=/opt/meilisearch/meilisearch
User=meilisearch
Group=meilisearch

[Install]
WantedBy=multi-user.target

OS
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04.5 LTS
Release:	20.04
Codename:	focal

Have you noticed the error message Dec 13 20:51:40 modos-test meilisearch[2806323]: Error: Permission denied (os error 13) ?
Are you sure user meilisearch has permissions to create files and directories in /opt/meilisearch/?

@Mcdostone Of course I noticed. I checked many times, tried different file locations before using common folder in /opt. Also excluded possibility of 1SELinux1 problem (which I don't have installed on this system).
You can see permissions in my original post. As you can see, database have been generated, so there must be problem somewhere else. Maybe meilisearch is accessing some system resource that systemd is protecting?

I had the same issue few months ago but it was due to SELinux.
I don't know if you're able to do that: would it be possible to run the systemd service with strace to know what causes the permission denied? I agree the error message is too generic.
[Service]
Type=simple
ExecStart=strace /opt/meilisearch/meilisearch
User=meilisearch
Group=meilisearch

@Mcdostone great tip, thanks. Solved my problem 🙂
strace
Dec 14 17:40:58 modos-test strace[2287134]: mkdir("./data.ms/auth", 0777)           = -1 ENOENT (No such file or directory)
Dec 14 17:40:58 modos-test strace[2287134]: mkdir("./data.ms", 0777)                = -1 EACCES (Permission denied)

Looks like systemd is running meilisearch from different directory. I needed to add WorkingDirectory to /etc/systemd/system/meilisearch.service and now everything works.
You should update your docs 🙂

Feel free to submit a PR: https://github.com/meilisearch/documentation/blob/main/learn/cookbooks/running_production.md#21-create-a-service-file

@Mcdostone Can you please tell me where I can download apt key for your packages so I can add that too?

I'm not sure to understand, what package?

@Mcdostone I meant signing key for your apt repository. You have this in docs:
sudo echo "deb [trusted=yes] https://apt.fury.io/meilisearch/ /" > /etc/apt/sources.list.d/fury.list

That repository should be signed, but I couldn't find information where to get signing key.


API Management - Strip Response Headers - more efficient way

The section here...
https://docs.microsoft.com/en-us/azure/api-management/transform-api#transform-an-api-to-strip-response-headers
The code statement...
<find-and-replace from="://conferenceapi.azurewebsites.net" to="://apiphany.azure-api.net/conference"/>
...is better served by this statement, which enables less versions of a policy that exactly match those of the API in question, especially for CI/CD pipeline injection...
<redirect-content-urls />

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

ID: f650a0b5-a147-ff23-533e-5a5481b3f02e
Version Independent ID: 5271aa75-8a47-62fd-1e35-d0a23c58a6e2
Content: Transform and protect your API with Azure API Management
Content Source: articles/api-management/transform-api.md
Service: api-management
GitHub Login: @vladvino
Microsoft Alias: apimpm

@mcalnd70 Thanks for the feedback! We will review and update accordingly.

@mcalnd70 We have worked up an update for this doc. This should reflect in a couple of hours.
We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.


Merge changes from release to master

This is a helper branch to resolve the merge conflicts when merging the release branch into the master branch

I trust you 😄


database to dev

Implemented a database resource for storing and grabbing crypts.

New directory: src/database/
crypt_keeper.rs houses all of the necessary code

Use enable_keeper to create the database if it doesn't already exist and establishes a connection
Use insert and pass a FileCrypt to store information to the database
Use query to be returned a vector of FileCrypts

Connection does not have to be manually closed thanks to Rust's ownership and scope system.

Updated other sections of code and cleaned up unused/deprecated areas

Resolves issue:
https://github.com/ExtremelyRyan/ByteCrypt/issues/7
From Project:
https://github.com/users/ExtremelyRyan/projects/1/views/1?pane=issue&itemId=45226993


[HHH_12838] AndNationalizedTests fails with DB2

https://hibernate.atlassian.net/browse/HHH-12838

Good catch, merged, thanks!


moduleForComponent implementation

Hi,
Trying to test components, missing the ember-cli moduleForComponent implementation though. Is there a way to test components with ember-cli-yadda or do I have to extend the plugin to add the module?
Cheers,
Michael

Weird I would have bet this was in there somewhere. It should be. :smile:. I have to think a bit about it though. Maybe we have to make it an option in the feature file with a decoration something like:
@moduleForComponent pretty-color

PR #14 adds support for component unit tests :)


Added bevy_editor_pls editor component to camera rig

Fixes #246
Though it might still need some work on the input side (Pressing esc) as to when to control the player vs the camera.
Works for both 3D (Free) orbit and (Pan/Orbit), see images below:

Gonna check tomorrow, thanks!

LGTM :)