SSL Self signed cert

Hi I noticed a lot of chatter about SSL in the past month which reminded me that i had created a self_signed cert type for use internally.  I have uploaded it to github[1] and wondered if this is something that would be of use to have in nginx.  Its only tested on ubuntu at the moment so some of the paths would need some work for other systems.  Let me know what you think if its f use ill happily make some updates
[1]https://github.com/b4ldr/puppet-self_signed_cert

hi @b4ldr, thanks for the tip!
We haven't discussed this functionality, but personally I think if we were going to introduce something like that we'd probably look at integrating with the camptocamp openssl module, which covers the same ground but also has the benefit of being a Puppet Approved module so most likely to be supported going forward.
That said, I also don't think it's a great idea to have this module integrate the SSL key management. Everyone does it differently so it's best for individual sites to come up with their own solution IMHO.
@jfryman may have other ideas though.

Thanks for the pointer i hadn't seen 'camptocamp openssl module' when i wrote mine, i will probably switch to that myself.  I also had similar thoughts on ssl management been integrated into this module so i will gracefully pull back :)


Hoist Core Refactor

Reorganize core to a three decorator triad (HoistModel, HoistService, HoistComponent)
Add lifecycle for destruction, especially in models.  Cleanup auto runs and event handlers.
Add formal 'mixins' : 'Reactive'/'EventTarget'
Provide general class utils for mixing in functionality to components.
Cleanup ensureServiceReadyAsync() => initAsync()
Provide basic methods loadAsync() and loadData() on grids (that trampoline to underlying store)
Add new method XH.renderApp() to DRY app boot sequence,

Awesome - huge amount of work and I think really helps to clarify our core objects and get us to a much better place around lifecycle management, etc. etc.


Locked out of my freeOTP

Can someone please help me

MissMichell, what do you mean by "locked out"? Is it the same as described here: #258 ?
Or do you have other behaviour?

I resolved my issue
Thank you
On Thu, Dec 16, 2021 at 2:45 AM Norjek @.***> wrote:

MissMichell, what do you mean by "locked out"? Is it the same as described
here: #258 https://github.com/freeotp/freeotp-ios/issues/258 ?
Or do you have other behaviour?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/freeotp/freeotp-ios/issues/255#issuecomment-995519630,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AWY6332HKL4FCH5NYVZOKL3URGKH5ANCNFSM5JL5NSCQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.


Grpc web merge

Replacing Echo API with gRPC

Consider if this commit should be rolled back; these methods are used by cmd/scm, but not elsewhere. Are they still useful in cmd/scm?

Yes, they are useful.

I guess so. There is no use for separate scripts now that everything is in Makefile.

Coverage increased (+0.7%) to 49.029% when pulling 26a3894fd4ce94553b74a6dadabf859bd5d5ebe9 on grpc-web-merge into abd206c40e48469bd6d8c3d3588da24336779f2b on master.

Ok, the Enrolled field is actually being set by a gorm method, was a bit confusing as the value never comes to the database. Then the only thing we lose is enrollment ID, which does not seem to be used in UI anyway. Returning the old method.

Okay sounds good. But bear in mind that I may not have the complete picture of how this is being used on the frontend. I just thought it was a bit worrying to do multiple RPCs like that...


txn: Test 1PC prewrite request partially fail in unit tests

What is changed and how it works?
What's Changed: This PR tries to cover the case that in a 1PC prewrite request with multiple keys, if it fails on one of the keys, the previously succeeded keys should never be written. I didn't find if it's already covered by any other cases, so I added these case specifically for 1PC. I'm afraid if in the future someone wants to support writing down the successful part of a request and accidentally breaks 1PC.
Related changes
Check List
Tests

Unit test

Release note

No release note.

Oops, I always thought I wrote tests about this case but I cannot find it either.........

Oops, I always thought I wrote tests about this case but I cannot find it either.........

I have such impression too 😕

/test

/merge


Text Conditioning Dropout

Thank you for this repo. It has more training related stuff, so I can try it on my own.
Can you please point me where 10 % text conditioning dropout is happening?
I'm afraid I will dropout twice if I dropout it on my own.
Thank you again. LDM is really awesome.

Same question. Did you find it?

@XavierXiao I didn't find it. Probably it is not the latest code for the released stable diffusion. Anyway, we can do it on our own. If you want to do text drop out, one way may be, we can filter it in get_input method in ddpm.py. Text conditions are a list of captions, for example a batch size of 3, ['capiton one', 'caption two', 'caption three'].  I think it is easier to do it in numpy.
captions = ['caption one', 'caption two', 'caption three']
null_labels = [""] * len(captions)
prob = torch.rand((len(captions),))
filtered_captions = np.where(prob > 0.1, captions, null_labels).tolist()

I'm a newbie in diffusion. Sorry, I am not very friendly with the whole codebase. I might miss something.

If you're still looking it's here:
https://github.com/pesser/stable-diffusion/blob/57eea7dfc2cdd8cadae77ab1c391f956d46f69bd/ldm/models/diffusion/ddpm.py#L396-L403

@justinpinkney Thank you so much. I'm clear now. Let me close this issue.

Interesting. This block does not exist in the official CompVis release...

@XavierXiao I think official CompVis release is mainly for inference. Pesser is really kind to share development repo here.  Justin (@justinpinkney ) also share training details of image variation fork (https://github.com/justinpinkney/stable-diffusion), he shares all the training details. I am really grateful to both of them. I cannot understand things if I don't try. I can play around with this repo and makes me more understood about how stable diffusion works.


No working!

Script not working. Screenshot:

I fixed everything. The problem was with the image that was corrupted when downloading

I fixed everything. The problem was with the image that was corrupted when downloading


azdata CLI installed prompt should have a "Reload" button

Azure Data Studio Version: main

Steps to Reproduce:

Install azdata CLI using Azure Arc extension

Expected: If there is a prompt to restart Azure Data Studio, there is a button to do so, similar to the "Reload" button in extension manager.
Actual: Prompt to restart but no button to do so

The problem here is we need a full restart to pick up the env vars - not just a window reload.
We haven't really gotten any feedback on this either way - but we could look into doing what we did for deployment and just manually modify the env vars ourselves to remove this being necessary.


Vulnerability roundup 77: sudo-1.8.28: 1 advisory

search, files

[ ] CVE-2019-18684 (nixos-19.09, nixos-unstable)

Scanned versions: nixos-19.09: 5f506b95f9f; nixos-unstable: c1966522d7d. May contain false positives.

This is disputed and I can't really make sense of it except for some potential mis-configuration of permissions of the sudoers file; https://gist.github.com/oxagast/51171aa161074188a11d96cbef884bbd

Is this even exploitable without being root? Seems invalid.

I think we can ignore it.


CLI: Signing produces name from certificate without international characters

Describe the bug
Using simple addsign from example in documentation produces name texts without international characters
To Reproduce
A certificate with international characters in name fields is needed
Screenshots

Example from code:

Environment (please complete the following information):

OS:  Ubuntu
Version 22.04

Additional context
pdf_signer = PdfSigner(
            meta, signer=sgnr, stamp_style=stamp.QRStampStyle(
                # Let's include the URL in the stamp text as well
                stamp_text='Signed by: %(signer)s\nTime: %(ts)s\nURL: %(url)s',
                text_box_style=text.TextBoxStyle(
                    font=opentype.GlyphAccumulatorFactory('/usr/share/fonts/truetype/freefont/FreeMono.ttf')
                ),
            ),
        )

The fact that addsign on the CLI doesn't correctly render text without a font configured isn't really a bug, but more of a natural limitation in the file format. The rub is that unless you supply a font file that has the glyphs you need so that pyHanko can subset/embed the font properly, you're going to have to rely on one of the "default" fonts that is available in most/all viewers. These default fonts (a) have limited character sets to begin with, and (b) can differ from viewer to viewer, so the result is unpredictable no matter what.
So, long story short, you need a font file, otherwise this kind of thing doesn't work.
(This is in the FAQ, by the way ;)  https://pyhanko.readthedocs.io/en/latest/faq.html#i-want-to-put-unicode-text-in-my-signatures-but-i-m-only-seeing-blanks-what-gives )


Deprecated Dependency<EMAIL_ADDRESS>

Starting with Ember 3.27, ember-cli-babel versions prior to 7.26.6 will cause following deprecation warning:
"Prior to v7.26.6, ember-cli-babel sometimes transpiled imports into the equivalent Ember Global API, potentially triggering this deprecation message indirectly, even when you did not observe these deprecated usages in your code."

I see an update was merged almost a year prior to this issue being opened but was never released.
Regardless, and respectfully to @Kuzirashi, I don't believe strict reliance on specific patch releases of ember-cli-babel and ember-cli-htmlbars is the right approach here. It looks like you followed a suggestion from the Renovate bot to pin everything, that might be OK for devDependencies but the default range in the Ember-CLI blueprint is the caret range and most Ember app developers rely on this range support to be able to update other dependencies when issues like this come up.

Though, as noted on another issue, this add-on isn't really needed in the angle-bracket template era.

Is there any plan in the near future to release this update to<EMAIL_ADDRESS>


refactor(@angular-devkit/build-angular): remove __zone_symbol__DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION` code

This is now done by default in zone.js versions greater than  0.14.1

Blocked on https://github.com/angular/angular/pull/52492


Email OTP Does Not Redirects To The Authentication Page

Steps to Reproduce:

Configure basic auth as the first step and the Email OTP as the second step for a service provider, with OAuth2 as the inbound authentication protocol.
Try to log in to the application.
Once you are successfully authenticated with the basic auth, you will be redirected to the Email OTP authentication page with the redirected URL having the oauth2 path parameter appended.

Clearing this parameter manually resolves the issue.

(If the error does not reproduce, try using an adaptive authentication script in the flow)

Possible Cause:
The issue occurs when the servlet is trying to resolve the path to the login page[1], with the relative path provided in the application-authentication.xml for the Email OTP.
Workaround to avoid the Issue:
Change the relative path in <Parameter name="EMAILOTPAuthenticationEndpointURL">emailotpauthenticationendpoint/emailotp.jsp parameter under Email OTP configuration in the <IS_HOME>/repository/conf/identity/application-authentication.xml, to the absolute path <Parameter name="EMAILOTPAuthenticationEndpointURL">https://localhost:9443/emailotpauthenticationendpoint/emailotp.jsp
[1] https://github.com/wso2-extensions/identity-outbound-auth-email-otp/blob/7770196749780c9affcc6c9939281ec9922d36c4/component/authenticator/src/main/java/org/wso2/carbon/identity/authenticator/emailotp/EmailOTPAuthenticator.java#L808

Duplicate of https://github.com/wso2/product-is/issues/6451


CFFL

CFFL

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_639av7lc94/clone/recipe/meta.yaml:17: pip_install_args: pip install should be run with --no-deps.
ERROR: /tmp/abs_639av7lc94/clone/recipe/meta.yaml:22: missing_wheel: For pypi packages, wheel should be present in the host section
WARNING: /tmp/abs_639av7lc94/clone/recipe/meta.yaml:25: python_build_tool_in_run: The python build tool setuptools is in run depends
ERROR: /tmp/abs_639av7lc94/clone/recipe/meta.yaml:32: missing_pip_check: For pypi packages, pip check should be present in the test commands
ERROR: /tmp/abs_639av7lc94/clone/recipe/meta.yaml:40: missing_documentation: The recipe is missing a doc_url or doc_source_url
WARNING: /tmp/abs_639av7lc94/clone/recipe/meta.yaml:40: missing_description: The recipe is missing a description
Errors were found


Various updates along with some mailing list patches

various updates
pull in patches from the mailing list
use the rpi test image for CI build validation
drop deprecated images

@kraj Yup, I've dropped the deprecated image references from the docs too.


homeassistant.setup: Platform not found

What happened?
The integration does not start after boot.
Version
1.0.3 (Edge)
What browsers are you seeing the problem on?
Microsoft Edge
Relevant log output
Logger: homeassistant.setup
Source: setup.py:320
First occurred: 09:02:30 (2 occurrences)
Last logged: 09:02:30

Unable to prepare setup for platform clage_homeserver.sensor: Platform not found (Exception importing custom_components.clage_homeserver.sensor).

Code of Conduct

[X] klacol/clage_homeserver#51

Ok, fixed with https://github.com/klacol/homeassistant-clage_homeserver/commit/6d1fc4fb62565e6ff2b08afa86cb26596655466a and https://github.com/klacol/homeassistant-clage_homeserver/commit/6d1fc4fb62565e6ff2b08afa86cb26596655466a.


How to configure the windows edge driver in the selenium_grid_extras_config.json?

Hi ,
Anyone know how to configure the windows edge driver in the selenium_grid_extras_config.json?
Here is my selenium_grid_extras_config.json for node, it just has IE, chrome and firefox, but doesn't have any information for windows edge.
{
"WARNING": "THIS FILE IS AUTOMATICALLY GENERATED EVERY RESTART FROM http://<IP_ADDRESS>:3000/get_node_config?node=WindowsNode. TO PERMANENTLY CHANGE ANY CONFIGURATIONS, PLEASE MODIFY IT ON THE HUB SERVER IN THE configs\WindowsNode",
"theConfigMap": {
"auto_update_browser_versions": "0",
"hub_config_files": [],
"auto_start_hub": "0",
"iedriver": {
"bit": "x64",
"version": "3.12.0"
},
"default_role": "node",
"unregisterNodeDuringReboot": "true",
"chromedriver": {
"bit": "32",
"version": "2.38"
},
"auto_update_drivers": "0",
"video_recording_options": {
"videos_to_keep": "40"
},
"auto_start_node": "1",
"hub_config": {},
"geckodriver": {
"bit": "64",
"version": "0.20.1"
},
"log_maximum_age_ms": 864000000,
"reboot_after_sessions": "10",
"grid_extras_port": "3000",
"webdriver": {
"version": "3.9.0"
},
"node_config_files": [
"node_5555.json"
]
}
}

I think I have figured it out, there is no need to add the edge driver information in the selenium_grid_extras_config.json.
The solution for my problem is from here:
https://stackoverflow.com/questions/41461217/microsoftwebdriver-fails-when-constructing-while-running-under-teamcity-agents


Shuffle functionality

Add a switch to do_regression which shuffles the features.
It is enough to shuffle them within story.

resolved; it shuffles the y data though (functionally the same)


Upgrade to Dart 2.0

I have a package I need to upgrade to dart 2.0 that depends on this, is a Dart 2.0 upgrade in the works?

Hi @shamblett
I'm not working with Dart now. If you are able to create a PR, then its not a problem to merge it.

Ok thanks, I'll have  look at fixing the package up


DevToys crashed when startuped

Current behavior
After a few seconds of normal startup, devtoys crashes. I have tried uninstalling, reinstalling, and resetting the application data, but this issue still occurs. The version is V<IP_ADDRESS>, and my operating system is Windows 10 22H2. Can you please help me troubleshoot this issue?
What I can think of are some methods: ① Insufficient memory, program crashes, ② Antivirus software or certain software that terminates the normal startup of Devtoys, ③ Lack of necessary runtime libraries. If possible, please help me solve the problem. Thank you for your help
How to reproduce it (as minimally and precisely as possible)
① Use the installation package with the. msixbundle suffix of devtoys for the installation process
② Start DevToys normally
Expected behavior
DevToys startup without crashing
Screenshots
No response
Workaround
No response
Affected platforms
Windows
Affected DevToys kind
DevToys (app with GUI)
DevToys Version
<IP_ADDRESS>
Relevant Assets/Logs
No response

Hi,
We just released DevToys 2.0. Please try and tell us if the problem still happen. See https://devtoys.app

I have the same issue as well with the latest version v<IP_ADDRESS>. When I start it, an empty window appears for a second then it crashes silently. I didn't find any logs in the program directory or any information on how to enable logging, is it even possible?


Add pod restarts and reason to dashboard

Is your feature request related to a problem? Please describe.
Long time ago we had pod restarts in the "compute resource / Pods" dashboard but not any more.
We would like to have that back.
Describe the solution you'd like
Check if there's already new updates to the mixin-dashboards that already has this.
If not add the restarts and reason to the "compute resource / Pods"  and upstream.
If that's not possible or for some other reason not what we want, add a new dashboard that shows it.
Describe alternatives you've considered
Not adding it.
Additional context
Add any other context or screenshots about the feature request here.
Definition of done:
When could this feature be considered done.

There's some way of seeing pod restarts and the reason for it in grafana

I think we already have this added now

Yes, should've been fixed by https://github.com/elastisys/compliantkubernetes-apps/pull/1467
Closing this


SetFit fixes regarding not logging the data

Preparation for current customer issue

Codecov Report

Merging #656 (e1fd8c2) into main (32113a8) will decrease coverage by 0.04%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #656      +/-   ##
==========================================
- Coverage   84.37%   84.34%   -0.04%
==========================================
  Files         167      167
  Lines       13305    13305
==========================================
- Hits        11226    11222       -4
- Misses       2079     2083       +4

see 2 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Fix recursive rule detection

This PR is an alternative to #1398 which still uses the entire stack of visited rules, only it doesn't "remember" them for each element in a sequence.
When the same rule is used multiple times in a sentence, recursive detection returns a false positive result.
Here's an example:
expansion_rules:
  test_sentence: "<rule1> <rule2>"
  rule1: "test"
  rule2: "sentence"

The above example works. However, without the fix, the one below results in an error, although it shouldn't:
expansion_rules:
  test_sentence: "(<rule1> <rule2> | [<rule2>] <rule1>)"
  rule1: "test"
  rule2: "sentence"

@synesthesiam does this makes #1398 obsolete?

Yes it does. Get the latest version and test with your test sentences, you'll see that it doesn't fail anymore.


No module named 'magnet'

I've installed the conda environment as per the installation guidelines.
but not able to import magnet
(base)  λ conda activate magnet
(magnet)  λ python
Python 3.7.0 (default, Jun 28 2018, 13:15:42)
[GCC 7.2.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import magnet
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'magnet'
>>>

Is this inside Jupyter or on the command line?

Can you confirm the outputs for:

echo $PYTHONPATH and
echo $MAGNET_DATAPATH


Shortcut doesn't work on Mac

When I try to use this package on my Mac (pressing the shortcut command + ctrl + i) I get the character 1 instead of executing the package.

Same, can't find any settings to change the binding either...

:+1: Same here on OSX

This is an amazingly simple, but useful plugin. Well done!!!


Module "matplotlib"

Please, how to get the module "matplotlib"?
I tried to run gmsafir without success. It was requested this module.

Thanks,
Ricardo

please do type in your Windows command window:
python.exe -m pip install matplotlib
and retry

Thanks a lot!!
Regards,
Ricardo

Ricardo A.M. Silveira, D.Sc.
Full Professor
Dept. of Civil Engineering
School of Mines
Federal University of Ouro Preto
Ouro Preto, MG, Brazil
Em sex., 10 de fev. de 2023 às 03:57, gmsafir @.***>
escreveu:

please do type in your Windows command window:
python.exe -m pip install matplotlib
and retry
—
Reply to this email directly, view it on GitHub
https://github.com/gmsafir/gmsafir/issues/55#issuecomment-1425276500,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AP4J5B54WCFRZM5D3Q4QTEDWWXRE7ANCNFSM6AAAAAAUW3N7DY
.
You are receiving this because you authored the thread.Message ID:
@.***>

Hello,
I have some issues while trying to install the matplotlib module
Please see below.
Any comments will be much appreciated.
Thanks!
C:\Users\la>python.exe -m pip install matplotlib
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1122)'))': /simple/matplotlib/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1122)'))': /simple/matplotlib/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1122)'))': /simple/matplotlib/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1122)'))': /simple/matplotlib/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1122)'))': /simple/matplotlib/
Could not fetch URL https://pypi.org/simple/matplotlib/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/matplotlib/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1122)'))) - skipping
ERROR: Could not find a version that satisfies the requirement matplotlib (from versions: none)
ERROR: No matching distribution found for matplotlib
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1122)'))) - skipping
WARNING: There was an error checking the latest version of pip.

@Sapiens333 This is a problem linked to your version of python, not to the content of GmSAFIR. Please try to solve it via this kind of forum help:
https://stackoverflow.com/questions/49324802/pip-always-fails-ssl-verification/49991986#49991986
Or maybe trying with a different version of command:
pip.exe -install matplotlib

Hello!
I did not understand.
Could you be more explicit?
Regards,
Ricardo

Ricardo A.M. Silveira, D.Sc.
Full Professor
Dept. of Civil Engineering
School of Mines
Federal University of Ouro Preto
Ouro Preto, MG, Brazil
Em seg., 20 de mar. de 2023 às 10:28, Sapiens333 @.***>
escreveu:

Hello,
I have some issues while trying to install the matplotlib module
Please see below.
Any comments will be much appreciated.
Thanks!
C:\Users\la>python.exe -m pip install matplotlib
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None,
status=None)) after connection broken by
'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED]
certificate verify failed: self signed certificate in certificate chain
(_ssl.c:1122)'))': /simple/matplotlib/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None,
status=None)) after connection broken by
'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED]
certificate verify failed: self signed certificate in certificate chain
(_ssl.c:1122)'))': /simple/matplotlib/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None,
status=None)) after connection broken by
'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED]
certificate verify failed: self signed certificate in certificate chain
(_ssl.c:1122)'))': /simple/matplotlib/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None,
status=None)) after connection broken by
'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED]
certificate verify failed: self signed certificate in certificate chain
(_ssl.c:1122)'))': /simple/matplotlib/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None,
status=None)) after connection broken by
'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED]
certificate verify failed: self signed certificate in certificate chain
(_ssl.c:1122)'))': /simple/matplotlib/
Could not fetch URL https://pypi.org/simple/matplotlib/: There was a
problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org',
port=443): Max retries exceeded with url: /simple/matplotlib/ (Caused by
SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED]
certificate verify failed: self signed certificate in certificate chain
(_ssl.c:1122)'))) - skipping
ERROR: Could not find a version that satisfies the requirement matplotlib
(from versions: none)
ERROR: No matching distribution found for matplotlib
Could not fetch URL https://pypi.org/simple/pip/: There was a problem
confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org',
port=443): Max retries exceeded with url: /simple/pip/ (Caused by
SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED]
certificate verify failed: self signed certificate in certificate chain
(_ssl.c:1122)'))) - skipping
WARNING: There was an error checking the latest version of pip.
—
Reply to this email directly, view it on GitHub
https://github.com/gmsafir/gmsafir/issues/55#issuecomment-1476234165,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AP4J5B5DPBMDG3VR2VR73GDW5BLP7ANCNFSM6AAAAAAUW3N7DY
.
You are receiving this because you authored the thread.Message ID:
@.***>

@gmsafir
Thank you for your reply.
I am not a python user, therefore it is difficult to understand what is required.
The Forum was very useful.
If other ussers have the same issue the command is:
"pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org <package_name>"
Thanks again.
@ramsilveira apologies for commenting on your thread. However i thought it may be related to the same issue.

Thank you for your response.
I also have a problem with this lib, but I follow the same instructions of
the other lib installation.
Please, keep me updated...not a problem at all!!
Best regards,
Ricardo

Ricardo A.M. Silveira, D.Sc.
Full Professor
Dept. of Civil Engineering
School of Mines
Federal University of Ouro Preto
Ouro Preto, MG, Brazil
Em seg., 20 de mar. de 2023 às 10:50, Sapiens333 @.***>
escreveu:

@gmsafir https://github.com/gmsafir
Thank you for your reply.
I am not a python user, therefore it is difficult to understand what is
required.
The Forum was very useful.
If other ussers have the same issue the command is:
"pip install --trusted-host pypi.org --trusted-host pypi.python.org
--trusted-host files.pythonhosted.org <package_name>"
Thanks again.
@ramsilveira https://github.com/ramsilveira apologies for commenting on
your thread. However i thought it may be related to the same issue.
—
Reply to this email directly, view it on GitHub
https://github.com/gmsafir/gmsafir/issues/55#issuecomment-1476271527,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AP4J5BZ7H4F5BTSPT2I3GT3W5BOC7ANCNFSM6AAAAAAUW3N7DY
.
You are receiving this because you were mentioned.Message ID:
@.***>

I do not know if this solves your problem but I had problems with the combination Python 3.10 and Matplotlib. I had to switch either to 3.9 or 3.11 to get around the problem. I could not see any information on the Python version.

Thank you!
Regards,
Ricardo
Em qui., 6 de jul. de 2023 às 08:02, Kongzhu79 @.***>
escreveu:

I do not know if this solves your problem but I had problems with the
combination Python 3.10 and Matplotlib. I had to switch either to 3.9 or
3.11 to get around the problem. I could not see any information on the
Python version.
—
Reply to this email directly, view it on GitHub
https://github.com/gmsafir/gmsafir/issues/55#issuecomment-1623474276,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AP4J5B26TT235NZ7UVJINHLXO2LNVANCNFSM6AAAAAAUW3N7DY
.
You are receiving this because you were mentioned.Message ID:
@.***>

--

Ricardo A.M. Silveira, D.Sc.
Full Professor
Dept. of Civil Engineering
School of Mines
Federal University of Ouro Preto
Ouro Preto, MG, Brazil

Thanks!

Ricardo A.M. Silveira, D.Sc.
Full Professor
Dept. of Civil Engineering
School of Mines
Federal University of Ouro Preto
Ouro Preto, MG, Brazil
Em ter., 19 de set. de 2023 às 15:45, gmsafir @.***>
escreveu:

Closed #55 https://github.com/gmsafir/gmsafir/issues/55 as completed.
—
Reply to this email directly, view it on GitHub
https://github.com/gmsafir/gmsafir/issues/55#event-10414212143, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AP4J5BYLH3SOW3EMQXFQBBDX3HR47ANCNFSM6AAAAAAUW3N7DY
.
You are receiving this because you were mentioned.Message ID:
@.***>


Rename CHIP.framework to Matter.framework & all the APIs

Problem
Need to rename CHIP.framework to Matter.framework

Done


Clear console log

How can I clear all the messages in the console log?

Picture?

https://github.com/videojs/videojs-contrib-dash/issues/58

As chemoish linked you can turn off dash.js's logging with:
videojs.Html5DashJS.useVideoJSDebug = function (player) {
  player.getDebug().setLogToBrowserConsole(false);
};

I have attempted to turn off dash's logging using this and the latest code:
videojs.Html5DashJS.beforeInitialize = function(player, mediaPlayer) {
  // Log MediaPlayer messages through video.js
  if (videojs && videojs.log) {
    mediaPlayer.getDebug().setLogToBrowserConsole(false);
    mediaPlayer.on('log', function(event) {
      videojs.log(event.message);
    });
  }
};

However, it's still flooding my console. I run the latest version of videojs-contrib-dash and 2.3.0 of dash. Any ideas @chemoish? Thanks!

 mediaPlayer.on('log', function(event) {
      videojs.log(event.message);
 });

This will use video.js's logging system and will still flood your console.

Thanks @forbesjo. I actually just copied and pasted the code from the home page in this issue, but when I attempted to test I removed that. I went with was:
  videojs.Html5DashJS.beforeInitialize = function(player, mediaPlayer) {
    mediaPlayer.getDebug().setLogToBrowserConsole(false);
  };

I can verify that the code is being called and mediaPlayer.on('log') did in fact also log entries. But nothing I do is removing the flood from dash.

@forbesjo Any additional help here? Sorry to bug you, but it's still flooding on console no matter what code I use. I updated the latest version and tried the new hooks and same thing:
    videojs.Html5DashJS.hook('beforeinitialize', function(player, mediaPlayer) {
      mediaPlayer.getDebug().setLogToBrowserConsole(false);
    });

@ehoch one possibility is that you are not using the same videojs instance and could be attaching to the wrong one? which would mean the code would be called, but it would be a different instance than you are using in the browser.
other than that, i can't think of anything else. 🤔

Try this code to disable console log.
var player = videojs('my-player', config, function() {
  try {
    this.dash.mediaPlayer.getDebug().setLogToBrowserConsole(false);
  } catch (error) {
    console.log(error);
  }
});

@aungsitnaing I gave your suggestion a try but wasn't able to get it working until I put the try/catch in a setTimeout. It seems that player.dash is not available at the time that the player.ready callback is triggered.


[macOS] File->Open does nothing when there are no open Atom windows

Steps to reproduce:

Have macOS version.
Open Atom.
Close all its windows, but don't exit.
Click in menu File -> Open.
Expected behaviour: open file dialog should open.
What happens: nothing.

I'm preparing a pull request for this.

Should fix it: https://github.com/atom/atom/pull/17529

Thanks for taking the time to contribute!
We noticed that this is a duplicate of #12508. You may want to subscribe there for updates.
Because we treat our issues list as the Atom team's backlog, we close duplicates to focus our work and not have to touch the same chunk of code for the same reason multiple times. This is also why we may mark something as duplicate that isn't an exact duplicate but is closely related.
For information on how to use GitHub's search feature to find out if something is a duplicate before filing, see the How Can I Contribute? section of the Atom CONTRIBUTING guide.


Do not generate values.yaml in github actions CI

Right now github actions workflow is generating values.yaml. We need to stop doing that. May be add a static values.yaml in tool folder.
https://github.com/cloudfoundry-incubator/kubecf/pull/1217#discussion_r470658355

@prabalsharma @viovanov I am closing this one 'cause the #1231 contains more detailed information.


Suppress very common configure() type checker error

Since the default value was a str, passing a dict gave type errors. Since the codebase has very minimal static typing [of only return types], this approach is a clean and pythonic way of suppressing the [false-positive] errors without introducing strict static typing of the parameters.

Hi, thanks for the PR. I don't know why there was a test failure when running the change, but I don't think it's related. I may just need to increase a time out or something. But could I ask you to make a couple of easy changes and I think we'll be good to merge this?

Could you change the destination branch to raspberrypi/next? We always push new stuff onto the next branch first.
Could you squash to two commits together into one? The changes are sufficiently small that I think it will be easier for folks reviewing the history if there's just one. Please could you sign your commit as well (check here).

Thanks very much!

I am sorry that I didn't read the contributing guide.

I am sorry that I didn't read the contributing guide.

No need to apologise, always happy to receive contributions! :smiley:
Tests are all good, so just one thing to check. If wonder if we should add in
        if camera_config is None:
            camera_config = "preview"

just to 100% guarantee the same behaviour if someone passes in no config at all. Other than that, I'm happy to merge this. Thanks!

This is what I initially did but if you see L1047-L1048, there's already a check for camera_config=None which then get set to the preview configuration. So doing this is actually redundant.

Yes, thanks, I actually noticed that too, but a (very subtle) different thing will happen. In one case you'll get this, and in the other, the line you pointed out.
To be honest, the whole configuration thing is a bit too twisty these days, but OTOH I don't particularly have the enthusiasm to change  stuff, so it is what it is. If we add that line, then it really is for sure 100% equivalent to what was there before!!

Is this style okay or do you want a separate if clause?

Also what's the difference between these two? self.preview_configuration is same as self.create_preview_configuration() as per L273, does this have to do with L274?

I mixed up the self.*_configurations in the __init__ and the @property ones.
Here's the summary:

"preview" will get you a CameraConfiguration object
None will get you a dict object
The self.*_configurations in the __init__ (L273-278) are redundant because the @propertys are overwriting them
They are not only redundant but as they are a dict object and not a CameraConfiguration object, they are raising an AttributeError every time (caught by the generic except clause at L279) since a dict object doesn't have enable_raw method

(I don't have a pi right now, I'll test when I have it and put in a PR if required)


Update use-invalidpluginexecutionexception-plugin-workflow-activities.md

Adding the ability to add HTML to the solution.

@brandonsimons Do we support passing HTML in a workflow assembly InvalidPluginExceution error message?

I am not aware of the capability to add HTML into the error message.

@rbhaiya  We do not recommend including HTML in the contents of the error message.

@rbhaiya  - Understood. Appreciate your feedback. The docs have to document what we support. The other button next to the Documentation Feedback button is the Product Feedback button. If you use that perhaps you will find someone else has already recommended this and you can vote for it. If it isn't there, you can add the idea and allow others to vote for it.


Remove tripleslash references

#63

Does this close #63?

Partially, we also need to update the npm package.


Disable testing for a bit

Sparkjava has been flaky, disable testing, while I figure out why.

@tswast FYI

Merging - temporary.


Faster xml event reader and skeleton for new sdk API

Part of #388

I've found implementations of XMLEventReader/XMLEventWriter which work times faster than standard ones - 2 seconds against 4 minutes locally for 86 mb xml file. Tests and benchmarks will be added later.
Added skeleton for new sdk API - it will work with streams as our colleagues want. RpmMetadata has two classes, one for removing and second for adding info about provided RPM packages.

@genryxy thanks, corrected

@genryxy sorry, missed there lists


Potential issues with certain drivers hogging onto the CPU thread pool and starving others

We are seeing some operators have very long queuedWallNanos comparing to Java (5 min vs several seconds).    But in the current code it seems we do have yield logic in place (the logic is spread between Velox and presto_cpp though).  We need some more visibility to better under stand the problem.
Per @mbasmanova, there are some work to be done:

We should centralize the logic of yielding of task inside Velox
The mechanism of the yielding can be that each driver gets a certain amount of time to run, and operators in that driver need to check if the time is used up frequently enough, See https://github.com/prestodb/presto/blob/master/presto-main/src/main/java/com/facebook/presto/operator/DriverYieldSignal.java
We should report max time a driver runs uninterrupted as well as max time an operator runs uninterrupted as metrics

For reference:

yield mechanism in Velox: https://github.com/facebookincubator/velox/pull/4620
in Prestissimo - https://github.com/prestodb/presto/pull/19993

Some update on this, we discovered single operator getOutput/addInput call blocking for long time from table scan, table write and other places we do lazy loading.  We suspect this is due to long synchronous loading from aggregate storage.  We will add some mechanism to allow break out the long synchronous read in this case once confirmed this is an issue.

Driver::shouldYield(): #8083


nixos/docker: fix evaluation when NAT is enabled too

Motivation for this change
Both networking.nat.enable and virtualisation.docker.enable now want to
make sure that the IP forwarding sysctl is enabled, but the module
system dislikes that both modules contain this option.
Realistically this should be refactored a bit, so that the Docker module
automatically enables the NAT module instead, but this is a more obvious
fix.
Things done

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

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

[x] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)

Manually added  networking.nat.enable = true; to nixos/tests/docker.nix and observed a failure before and no failure after this change.

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] 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.

Should be fine from looking at it.
I also thought about enabling the nat module but I was afraid of unexpected side effects as it has lots of other options. So if somebody set some nat suboptions but didn't enable it they would be suddenly used.

Forwarding does not imply NAT'ing. Docker installs it's own NAT rules without you having to configure it.


added custom word for bubblewrap

Denied, self.bot.send() is there instead of ctx.send() for a reason.


Error: “Cannot read property 'style' of null” when going back from a page with the hardware back button where opening the keyboard has triggered the page to scroll

Ionic version:  (check one with "x")
[ ] 1.x
[x] 2.x
I'm submitting a ...  (check one with "x")
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:

If the page has to scroll to make the current form field visible when opening the keyboard, then when dismissing the keyboard and popping the page with the hardware back button, an error would be thrown that goes: “Cannot read property 'style' of null.”
Expected behavior:

No error would be thrown.

Having the same error after updating to Ionic RC-3

Hello all! Thanks for opening an issue with us. We are currently making alot of improvements around input scrolling which should fix this issue. I am testing these changes as we speak and will update this issue with my findings.

Related or same: #9310

@adamdbradley Thanks! I'm not sure if this fixes all cases of this error though. I've logged the following ones:
TypeError: null is not an object (evaluating 'this._scroll.scrollToBottom')
File ".../main.js" line 4 col 29595 in scrollToBottom

TypeError: null is not an object (evaluating 'this._scrollEle.style')
File ".../main.js" line 4 col 29911 in setScrollElementStyle

TypeError: null is not an object (evaluating 'this._scrollEle.style')
File ".../main.js" line 4 col 30395 in addScrollPadding

TypeError: Cannot read property 'style' of null
File ".../main.js" line 15025 col 28 in Content.addScrollPadding

TypeError: Cannot read property 'style' of null
File ".../main.js" line 4 col 20082 in e.setScrollElementStyle

TypeError: null is not an object (evaluating 'this._scroll.scrollToBottom')
File ".../main.js" line 4 col 19766 in scrollToBottom

I am getting this in latest versions  as for Feb 5 2017.
The code that produces it:
this.nav.setPages([MyPage])

It does go to that page, but after a few seconds error appears.
Error happens when I go to that page:
camera -> a form with picked image -> mypage
But it does not happend when:
gallery -> a form with picked image -> mypage
Related to #9310.

@AltRoot17  i'm experiencing this with ionic3 and Item reorder  TypeError: Cannot read property 'style' of undefined     at ItemReorder._reorderMove (http://localhost:8100/build/main.js:71606:33)     at ItemReorderGesture.onDragMove (http://localhost:8100/build/main.js:166579:38)

This is causing the app to hang when its loaded for this first time. Any fixes on this


Heads-up: unsupported_calling_conventions will become a hard error soon

This crate showed up in the crater run for https://github.com/rust-lang/rust/pull/129935 because it uses a calling convention that does not exist on x86-64-Linux. See the error log here:
https://crater-reports.s3.amazonaws.com/pr-129935/try%23498fce24f39c1ecbb0abe08824e72162da853341/reg/rustishka-0.1.0/log.txt
A warning has been shown for this issue for many years now, and this will be turned into a hard error fairly soon. Please update your crate to avoid it failing to build with a future version of Rust. :)

I don't know what people usually do there, sorry. Maybe ask on URLO.

The obvious route would be to blank out the crate on non-windows:
// file: lib.rs
// line: 1
#![cfg(any(windows, doc))]

The obvious route would be to blank out the crate on non-windows:
// file: lib.rs
// line: 1
#![cfg(any(windows, doc))]

Thanks!


update readme file in example branch

update readme file
I updated readme file , please accept changes

I probably shouln't but ok


fix: make schedule in catalog.providers.github required

Hey, I just made a Pull Request!
Seems the code expects this config to be set else it will error. So, making it required in the schema. Same has been done for githubOrg
:heavy_check_mark: Checklist

[x] A changeset describing the change and affected packages. (more info)
[ ] Added or updated documentation
[ ] Tests for new functionality and regression tests for bug fixes
[ ] Screenshots attached (for UI changes)
[x] All your commits have a Signed-off-by line in the message. (more info)

Hm. Is this true? https://github.com/backstage/backstage/blob/6a5de4df3b669f561875a4d6be5c9e1315b98ca7/plugins/catalog-backend-module-github/src/providers/GithubEntityProviderConfig.ts#L98

As long as you can call fromConfig as a user, you can pass in schedules from the outside and not have to give it in config, as far as i read things https://github.com/backstage/backstage/blob/6a5de4df3b669f561875a4d6be5c9e1315b98ca7/plugins/catalog-backend-module-github/src/providers/GithubEntityProvider.ts#L104

As long as you can call fromConfig as a user, you can pass in schedules from the outside and not have to give it in config, as far as i read things
https://github.com/backstage/backstage/blob/6a5de4df3b669f561875a4d6be5c9e1315b98ca7/plugins/catalog-backend-module-github/src/providers/GithubEntityProvider.ts#L104

But in the instance of the new Backend system it would mean that you would always have to provide a schedule as there is no fallback without having to destructure the module and call fromConfig on the provider.
To keep the schema optional but still support the new Backend system, wouldn't it be best to have a default schedule defined here?
https://github.com/backstage/backstage/blob/6a5de4df3b669f561875a4d6be5c9e1315b98ca7/plugins/catalog-backend-module-github/src/providers/GithubEntityProviderConfig.ts#L98C1-L102C17

Closing this in favor of https://github.com/backstage/backstage/pull/27753


[2.0a0] different names and initial values of variables with and without tf.function

System information

TensorFlow installed from (source or binary): binary
TensorFlow version (use command below): 2.0.0alpha0
Python version: 3.6.5

Code to reproduce the issue

# -*- coding: utf-8 -*-
# @Author  : Lin Lan<EMAIL_ADDRESS>
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function

import tensorflow as tf

tf.random.set_seed(123)

class Model(tf.keras.Model):
    def __init__(self):
        super(Model, self).__init__()
        self.dense1 = tf.keras.layers.Dense(100)
        self.dense2 = tf.keras.layers.Dense(100)
        self.dense3 = tf.keras.layers.Dense(100)

    # @tf.function
    def call(self, inputs):
        x = self.dense1(inputs)
        x = self.dense2(x)
        outputs = self.dense3(x)
        return outputs

model = Model()
model(tf.random.normal((1, 10), dtype=tf.float32))
for weight in model.trainable_weights:
    print(weight.name)

Other info / logs
Without tf.function, the output is

model/dense/kernel:0
model/dense/bias:0
model/dense_1/kernel:0
model/dense_1/bias:0
model/dense_2/kernel:0
model/dense_2/bias:0

With tf.function, the output is

dense/kernel:0
dense/bias:0
dense_1/kernel:0
dense_1/bias:0
dense_2/kernel:0
dense_2/bias:0

Also, the initial values also are different with and without tf.function.
I guess the difference is because the code generated by tf.function executes in a different graph. But I think most users would expect consistent behaviors between eager and graph modes.
A workaround is to first call model(inputs) to initialize weights in eager mode, and then replace the method with model.call = tf.function(model.call).

@fchollet @alextp Would it be possible for either tf.function to respect the outer name scopes, or for Keras to communicate the desired name scope to tf.function?

Names in tf2 are no longer load-bearing, so getting slightly different names for the same variables is fine. There is still checkpoint compatibility if you use tf.train.Chekpoint and tf.saved_model.save.
So I think this is not ideal but harmless.

@alextp

Regarding to variable names (actually, omitting parent name scope), it may make tensorboard graph display badly organized.
Except for names, the initial values of variables are also different with and without tf.function, which will result in that the eager and graph modes have inconsistent behaviors with the same random seed.

Re the initial values, they will be the same once initializers switch to the new tf random ops (the existing ones are ~impossible to make deterministic across eager and graphs).
Re the names, tensorboard will likely change to better display tf2 graphs. Stay tuned!


Unmarshalling an array of objects?

If I've got an array back as my Json body, and I want to unmarshal that into an array of structs, it appears, according to your docs, that I can't do this. Is this feature coming soon?

There is a way it's just not documented (yet). See https://github.com/google/jsonapi/pull/66 for the UnmarshalMany docs. There are examples in that pr that should set you down the right path.

@ChrisCooney here is some sample code taken from the Readme:
type Blog struct{}

func(w http.ResponseWriter, r *http.Request) {
	blogs, err := UnmarshalManyPayload(r.Body, reflect.TypeOf(new(Blog)))
	if err != nil {
		t.Fatal(err)
	}

	for _, blog := range blogs {
		b, ok := blog.(*Blog)
		// ...do something with each of your blogs
	}
}

Nice spot mate.


Cloud auto-joining feature

Hello!
According to the Consul documentation, auto-joining is possible on the cloud platforms (some of them). But current revision of templates/config.json.j2 not include this possibility.

You can use consul_config_custom var to archive your goals.
consul_config_custom:
  retry_join:
  - "provider=aws tag_key=consul-servers tag_value=auto-join"

Thank you for your answer!
Didn't notice this in documentation.


Invisible Epona (OoT)

Sometimes when playing Epona's Song in OoT, Epona shows up invisible, but you can still hear her galloping, but she's nowhere to be found!

Please stop making issues for things that are not actual issues. This is vanilla behavior, Epona sometimes does not spawn correctly depending on where you play the song. This is not a bug.


Hide 'View query' option from dashboard

Hi Team,
I need to hide 'View query' option from Dashboard when click on three dots.

Thanks in advance.
Regards,
Naren

Hi Naren, moving to Discussions as this isn't a bug or feature request!


Optimized bltriangle crest property

Discovered a bug in the process of this commit, please see issues.

So great to have you look at these things at such great depth.  Much appreciated!


Upgrade to the latest OPAM

The package manager OPAM has recently had a new release, from 1.2.2 to 2.0.0.
https://opam.ocaml.org/blog/opam-2-0-0/
In time packages might not be published under the older format, so to be able to continue to use the latest libraries, the newer OPAM should be used.

Fixed as of landing #310


Upgrade to Elixir 1.8 and Ecto 3.0

Issue/Task Number: #489
Closes #489
Overview
This PR upgrades the entire eWallet server to Elixir 1.8 and Ecto 3.0 plus a few more smaller dependencies.
Changes

Upgraded to Elixir 1.8 and Ecto 3.0
Upgraded to the latest versions of :quantum, :credo, :dialyxir, :ex_doc, :junit_formatter, :sentry
Bumped all sub-apps' minimum Elixir version to 1.8
Fix various breaking changes resulted from Ecto 2.2 & 3.0 changes.

Multi.run/3 now expects the passed callback to receive a repo
Query.join/5 functions no longer wrap fragments with parentheses
Ecto.DateTime removed
:ecto_autogenerate expecting a list of field name instead of a single field name
Contraint names are now passed into validation error metadata
Changeset.validate_number/3's errors now returning :kind, e.g. [validation: number, kind: :greater_than, number: 0]
Plural time units are removed, e.g. :seconds becomes :second
Repo.update_all/3 no longer supports returning: true
Repo.update/3 no longer return unrelated attributes
Changeset.validate_* now removes invalid fields from changeset.changes
Timestamps are operated without milli/microseconds by default (why Ecto whyyyy 😱)
Repo.preload/3 no longer re-preloads if the association has already been loaded before
Query.preload/3 in a stream query is no longer supported

Fix ActivityLogger saving records with no changes

Implementation Details
All the changes are pretty straightforward and only cover changes that resulted from the new versions.
One noteworthy change is the shifted default from microseconds to seconds. You'll see in this PR that existing migrations are edited from :naive_datetime to :naive_datetime_usec instead of creating a new migration.
I did this with assumption of these possible scenarios:

Instances setup after this PR: All migration files are now :naive_datetime_usec, which mean the schemas will be created exactly as in previous versions with datetime in microseconds.

Instances setup before this PR: The already-migrated datetime fields are already in microseconds. The :naive_datetime_usec ensures that rolling back and forward even across those migrations will still respect microseconds that used to be.

Hence I think it makes the most sense to edit existing migrations to reflect the actual semantics of the database rather than keeping the literal migration code.
Usage
Dev environment
Anyone who has taken code that contains this PR must do the following:

Upgrade your Elixir version to v1.8.x. Follow the instructions at Installing Elixir.
Make sure that the correct Elixir version is being used by running:$ elixir --version
Elixir 1.6.5 (compiled with OTP xx)

Clean the dev, test and dependency builds by running:mix clean && mix deps.clean -all && MIX_ENV=test mix clean

Retrieve the new dependencies as specified in mix.lock:mix deps.get

Just to be safe, compile the source code manually once:mix compile

Upgrade is complete! Continue saving the world!
Production environment
We'll need to wait for https://github.com/omisego-images/docker-ewallet to support Elixir 1.8 before proceeding with this PR.
Impact
For build to pass, https://github.com/omisego-images/docker-ewallet and the whole CI workflow must be running or somehow supporting Elixir 1.8.
Other than that, no changes to the DB schema or API specs.

@sirn This PR is now passing on my local machine. Now I'll need your help configuring Elixir 1.8 on the CI 🙇

I think we can have v1.1 branch uses omisegoimages/ewallet-builder:v1.1. That would be the easiest way, but we have to be careful when merging to not include that particular v1.1 change commit. Or include that, but make some change on top of it.

Forgot that we still need to fix the build error:
==> erlex
Compiling 2 files (.erl)
/usr/local/otp/lib/erlang/lib/parsetools-2.1.8/include/yeccpre.hrl:59: illegal pattern
/usr/local/otp/lib/erlang/lib/parsetools-2.1.8/include/yeccpre.hrl:60: variable 'Error' is unbound
/usr/local/otp/lib/erlang/lib/parsetools-2.1.8/include/yeccpre.hrl:60: variable 'Stacktrace' is unbound
/usr/local/otp/lib/erlang/lib/parsetools-2.1.8/include/yeccpre.hrl:63: variable 'Stacktrace' unsafe in 'try' (line 60)
/usr/local/otp/lib/erlang/lib/parsetools-2.1.8/include/yeccpre.hrl:64: variable 'Error' unsafe in 'try' (line 60)
/usr/local/otp/lib/erlang/lib/parsetools-2.1.8/include/yeccpre.hrl:64: variable 'Stacktrace' unsafe in 'try' (line 60)
could not compile dependency :erlex, "mix compile" failed. You can recompile this dependency with "mix deps.compile erlex", update it with "mix deps.update erlex" or clean it with "mix deps.clean erlex"
make: *** [Makefile:73: build-test] Error 1
Exited with code 2

Can you also update .tool-versions?

Merge instructions:

[ ] Merge https://github.com/omisego-images/docker-ewallet/pull/1 and wait for the build to succeed. ewallet-builder:latest image should be produced
[ ] Tag ewallet-builder:latest with ewallet-builder:v1.2
[ ] Update this PR to use omisegoimages/ewallet-builder:v1.2 (in ./circleci/config.yml, docker-gen.sh, Makefile)
[ ] Update all Mixfile's project.version to v1.2.0-dev
[ ] ~Update docker-compose.override.yml to omiseo/ewallet:stable~ (not until v1.1 is released and tagged stable)
[ ] ~Update docker-compose.yml to omiseo/ewallet:stable~ (not until v1.1 is released and tagged stable)
[ ] Merge!


Deno template errors on dynamic require()

What version of Remix are you using?
1.2.1
Steps to Reproduce
npx create-remix@latest and choose Deno as deploy target. Then npm run dev and you'll see the error.
Expected Behavior
The dev server boots.
Actual Behavior
error: Uncaught Error: Dynamic require of "https://deno.land/std/node/stream/mod.ts" is not supported
  throw new Error('Dynamic require of "' + x + '" is not supported');
        ^
    at file:///Users/michael/Projects/my-remix-app/build/index.js:30:9
    at file:///Users/michael/Projects/my-remix-app/build/index.js:2207:22
    at node_modules/react-dom/cjs/react-dom-server.node.development.js (file:///Users/michael/Projects/my-remix-app/build/index.js:5510:9)
    at __require2 (file:///Users/michael/Projects/my-remix-app/build/index.js:48:44)
    at node_modules/react-dom/server.node.js (file:///Users/michael/Projects/my-remix-app/build/index.js:5523:24)
    at __require2 (file:///Users/michael/Projects/my-remix-app/build/index.js:48:44)
    at node_modules/react-dom/server.js (file:///Users/michael/Projects/my-remix-app/build/index.js:5533:22)
    at __require2 (file:///Users/michael/Projects/my-remix-app/build/index.js:48:44)
    at file:///Users/michael/Projects/my-remix-app/build/index.js:7021:33

Fixed by #1997


Weight and shape different than the number of channels in input

I'm trying to fine-tunning the VAE of SD1.4
I'm in a multi gpu environment, and I'm using accelerate library for handling that.
This is my code summarized:
import os
import torch.nn.functional as F
import yaml
from PIL import Image
import torch
from torch.utils.data import Dataset, DataLoader
from torchvision.transforms import Compose, Resize, ToTensor, Normalize
from diffusers import AutoencoderKL
from torch.optim import Adam
from accelerate import Accelerator
from torch.utils.tensorboard import SummaryWriter

# Load configuration
with open('config.yaml', 'r') as file:
    config = yaml.safe_load(file)

def save_checkpoint(model, optimizer, epoch, step, filename="checkpoint.pth.tar"):
    checkpoint = {
        'model_state_dict': model.state_dict(),
        'optimizer_state_dict': optimizer.state_dict(),
        'epoch': epoch,
        'step': step
    }
    torch.save(checkpoint, filename)

class ImageDataset(Dataset):
    def __init__(self, root_dir, transform=None):
        self.root_dir = root_dir
        self.transform = transform
        self.images = [os.path.join(root_dir, f) for f in os.listdir(root_dir) if f.endswith('.png')]

    def __len__(self):
        return len(self.images)

    def __getitem__(self, idx):
        img_path = self.images[idx]
        image = Image.open(img_path).convert('RGB')
        if self.transform:
            image = self.transform(image)
        return image

# Setup dataset and dataloader based on config
transform = Compose([
    Resize((config['dataset']['image_size'], config['dataset']['image_size'])),
    ToTensor(),
    Normalize(mean=[0.5, 0.5, 0.5], std=[0.5, 0.5, 0.5])
])

dataset = ImageDataset(root_dir=config['dataset']['root_dir'], transform=transform)
dataloader = DataLoader(dataset, batch_size=config['training']['batch_size'], shuffle=True, num_workers=config['training']['num_workers'])

# Initialize model, accelerator, optimizer, and TensorBoard writer
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
model_path = config['model']['path']
vae = AutoencoderKL.from_pretrained(model_path).to(device)

optimizer = Adam(vae.parameters(), lr=config['training']['learning_rate'])
accelerator = Accelerator()
vae, dataloader = accelerator.prepare(vae, dataloader)

writer = SummaryWriter()

# Training loop
for epoch in range(config['training']['num_epochs']):
    vae.train()
    total_loss = 0
    for step, batch in enumerate(dataloader):
        with accelerator.accumulate(vae):
            # Assuming the first element of the batch is the image
            target = batch[0].to(next(vae.parameters()).dtype)

            # Access the original model for custom methods
            model = vae.module if hasattr(vae, "module") else vae

            posterior = model.encode(target).latent_dist
            z = posterior.mode()
            pred = model.decode(z).sample

            kl_loss = posterior.kl().mean()
            mse_loss = F.mse_loss(pred, target, reduction="mean")

            loss = mse_loss + config['training']["kl_scale"] * kl_loss

            optimizer.zero_grad()
            accelerator.backward(loss)
            optimizer.step()
            optimizer.zero_grad()  # Clear gradients after updating weights

            # Checkpointing every 10 steps
            if step % 10 == 0:
                checkpoint_path = f"checkpoint_epoch_{epoch}_step_{step}.pth"
                accelerator.save({
                    "epoch": epoch,
                    "model_state_dict": model.state_dict(),
                    "optimizer_state_dict": optimizer.state_dict(),
                    "loss": loss,
                }, checkpoint_path)
                print(f"Checkpoint saved to {checkpoint_path}")

writer.close()

print("Training complete.")

When running the code, I got the following error:
RuntimeError: Expected weight to be a vector of size equal to the number of channels in input, but got weight of shape [128] and input of shape [128, 1024, 1024]:

My input folder contains a set of png images with different sizes, and resized to 1024x1024 in the configuration file.
I do not know why this is happening and if someone knows, or if there is a easier way to fine-tunning the VAE weights using my images.
Thanks.
Edit:
My config.yaml file
model:
  path: 'vae1dot4'  # Path to your pre-trained model directory

dataset:
  root_dir: 'segmented'  # Directory containing your PNG images
  image_size: 1024  # Target size for image resizing

training:
  batch_size: 8  # Batch size for training
  num_epochs: 10  # Number of epochs to train
  learning_rate: 0.0005  # Learning rate for the optimizer
  num_workers: 4  # Number of worker processes for data loading
  kl_scale: 1
  gradient_accumulation_steps: 1
logging:
  tensorboard_dir: 'runs'  # Directory for TensorBoard logs

This type of question is better asked on the forums, as it's not directly related to accelerate :) https://discuss.huggingface.co/
My best advice to test it on a single GPU first, to make sure multi-gpu is the issue


Overloaded results. Dataset requirements?

I am try SGMS. I am create my dataset: 90GB, all clean and noisy audio normalized, SNR -20...-10db. I am train 17 epoch and get strange result:

If I am use you model - I am get result x_hat.abs().max()<1.0 1)

If I am use my models - I am get result 3.0<x_hat.abs().max()<4.5 i.e. highly overloaded signal

I am can do normalization but I am notice what you code do not expect x_hat.abs().max()>1.0 and this behaviour may indicate about something get wrong. Is something get wrong?

Hello,
Thank you for bringing up this issue. I assume that your dataset with an SNR range of -20 to -10 dB is too challenging for the model. The SNR range is too low, and as a result, it is unable to learn the score function well, which explains why you have poor metrics.
Typically, in our experiments, we use datasets with a more moderate SNR range, e.g., between 0 and 20 dB. This range allows the model to perform much better and produce more intelligible and higher-quality speech outputs.


Checking out over https fails

When trying to checkout https://gopkg.in/yaml.v2
I get the following error message:
pkt-line 3: invalid capabilities: arguments not allowed (symref=HEAD:refs/heads/v2 multi_ack thin-pack side-band side-band-64k ofs-delta shallow deepen-since deepen-not deepen-relative no-progress include-tag multi_ack_detailed no-done oldref=HEAD:refs/heads/v2 agent=git/github-g09a9ed6d3a)
The following code is used:
storer := memory.NewStorage()
repo, err := git.Clone(storer, nil, &git.CloneOptions{URL: "https://gopkg.in/yaml.v2"})
if err != nil {
    fmt.Println(err)
}

I suspect this is due to a bug in the validation code for capabilities (see (*capability.List).validate). Basically if an capability option isn't recognized, the code automatically assumes that it shouldn't allow arguments. I think in this case, go-git isn't familiar with the oldref option, and produces and error on the unexpected argument.
I'll work on a patch.


Mocha testing no longer working

Testing interface has not been adjusted since implementing channel configuration object in node-red.

Fixed with commit 20c283f


Unable to get externally-created subscriptions working

According to this issue:
https://github.com/influxdata/kapacitor/issues/349
... it's possible to create subscriptions with the name:
kapacitor-(cluster-id)
...configured however one likes (UDP, HTTP, etc) and kapacitor will use whatever is configured in the subscription configuration, rather than kapacitor itself creating a subscription & listener on a 'random' port.
In my case, I run a few prepared queries against influxdb to seed the needed subscriptions before kapacitor starts.
After my prepared queries run, if I "SHOW SUBSCRIPTIONS" in influxdb, I see this:
// My custom database
platform-metrics	"kapacitor-platform-monitoring"	"ALL"	udp://instance1:46661
// _Internal database
monitor	"kapacitor-platform-monitoring"	"ALL"	udp://instance1:46662
Soon after, Kapactor is launched:
'##:::'##::::'###::::'########:::::'###:::::'######::'####:'########::'#######::'########::
##::'##::::'## ##::: ##.... ##:::'## ##:::'##... ##:. ##::... ##..::'##.... ##: ##.... ##:
##:'##::::'##:. ##:: ##:::: ##::'##:. ##:: ##:::..::: ##::::: ##:::: ##:::: ##: ##:::: ##:
#####::::'##:::. ##: ########::'##:::. ##: ##:::::::: ##::::: ##:::: ##:::: ##: ########::
##. ##::: #########: ##.....::: #########: ##:::::::: ##::::: ##:::: ##:::: ##: ##.. ##:::
##:. ##:: ##.... ##: ##:::::::: ##.... ##: ##::: ##:: ##::::: ##:::: ##:::: ##: ##::. ##::
##::. ##: ##:::: ##: ##:::::::: ##:::: ##:. ######::'####:::: ##::::. #######:: ##:::. ##:
..::::..::..:::::..::..:::::::::..:::::..:::......:::....:::::..::::::.......:::..:::::..::
2016/08/03 22:01:58 Using configuration at: /opt/kapacitor/conf/kapacitor.conf
[run] 2016/08/03 22:01:58 I! Kapacitor starting, version 1.0.0~beta4, branch master, commit 1e00423551591862b11f70b5fc59a47300ef596c
[run] 2016/08/03 22:01:58 I! Go version go1.6.2
[srv] 2016/08/03 22:01:58 I! Kapacitor hostname: ...instance1...
[srv] 2016/08/03 22:01:58 I! ClusterID: platform-monitoring ServerID: 30-135
[task_master:main] 2016/08/03 22:01:58 I! opened
[srv] 2016/08/03 22:01:58 D! opening service: *udf.Service
[srv] 2016/08/03 22:01:58 D! opened service: *udf.Service
[srv] 2016/08/03 22:01:58 D! opening service: *deadman.Service
[srv] 2016/08/03 22:01:58 D! opened service: *deadman.Service
[srv] 2016/08/03 22:01:58 D! opening service: *storage.Service
[srv] 2016/08/03 22:01:58 D! opened service: *storage.Service
[srv] 2016/08/03 22:01:58 D! opening service: *noauth.Service
[srv] 2016/08/03 22:01:58 D! opened service: *noauth.Service
[srv] 2016/08/03 22:01:58 D! opening service: *influxdb.Service
[influxdb] 2016/08/03 22:01:58 D! linking subscriptions
[srv] 2016/08/03 22:01:59 D! opened service: *influxdb.Service
[srv] 2016/08/03 22:01:59 D! opening service: *task_store.Service
[task_store] 2016/08/03 22:01:59 W! could not open old boltd for task_store. Not performing migration.  Starting HTTP service
[httpd] 2016/08/03 22:01:59 I! Authentication enabled: false
[httpd] 2016/08/03 22:01:59 I! Listening on HTTP: [::]:9092
[srv] 2016/08/03 22:01:59 D! opened service: *httpd.Service
[run] 2016/08/03 22:01:59 I! Listening for signals
Kapacitor overwrites the two subscriptions leaving influxdb looking like this:
// My custom database
platform-metrics	"kapacitor-platform-monitoring"	"ANY"	http://instance1:9092
// _internal
retention_policy	name	mode	destinations
monitor	"kapacitor-platform-monitoring"	"ANY"	http://instance1:9092
How is this external seeding of kapacitor subscriptions supposed to work?
TIA

Change the subscription-protocol to udp so that Kapacitor doesn't think the udp based subscriptions are invalid. Then it will leave them alone.

Thanks. I didn't spot the subscription-protocol configuration option but now see it.
However, instead of changing to UDP, I tried to pre-create an HTTP subscription on a different port, i.e.:
platform-metrics	"kapacitor-platform-monitoring"	"ALL"	http://instance1:46661
... but once again, when kapacitord starts, this is what influxdb "show subscriptions" shows:
platform-metrics	"kapacitor-platform-monitoring"	"ANY"	http://ip-10-10-30-187.eu-west-1.compute.internal:9092
The debug output shows
...[httpd] 2016/08/03 23:45:34 I! Listening on HTTP: [::]:9092...
Am I missing some other configuration options to set the port explicitly or perhaps there is something else my config is missing that affects this?
Thanks again - I am sure it's a case of stupid user so appreciate the advice :)

Hmm, perhaps:
`
[http]
# HTTP API Server for Kapacitor
# This server is always on,
# it servers both as a write endpoint
# and as the API endpoint for all other
# Kapacitor calls.
bind-address = ":9092"
~

@mrwilby can this bind-address be provided at the time of running kapacitord from command line?

@mdamir Yes, all config options can be set via an env variable. In this case KAPACITOR_HTTP_BIND_ADDRESS=':9092'

@nathanielc lets say my kapacitor is running as a docker container, so that it runs on 9092 but externally, it has to be connected on some other port, say 8086 of the host. My system has a limitation that i can not provide a same port mapping between host and container (i.e. 9092:9092). In this case, if I set KAPACITOR_HTTP_BIND_ADDRESS to 9092, then influxdb will start communicating with this kapacitor on 9092, and hence will fail (it has to connect to port 8086). Do you think currently, there is a solution for this?
Ideally, there should be a configuration where kapacitor should specify the influx subscription destination.

@mdamir You are correct that if the external facing port is different than the locally bound port its not possible to use subscriptions in the current state.
I have created an issue to track fixing this #886

@nathanielc Where can I get list of all env variables defined in the kapacitor.conf file. I want to be able to override these config values through ENVs. Specifically, I am interested in the influx db endpoints.

@mdamir All configu options can be overridden using the env vars.
The env var name should be KAPACIOTR_{SECTION_NAME}_{OPTION_NAME}.
Here are the relevant docs for InfluxDB but the same pattern/logic holds for Kapacitor https://docs.influxdata.com/influxdb/v1.0/administration/config/#environment-variables
We don't have an enumeration of all ENV vars for Kapacitor at the moment.


Update to 1.21/1.20.5

Optifine and CIT Resewn updated to those versions so you could too if you have time.

Would love an update as well, just found out that CIT Resewn was finally updated! 🎉 Having different rocket textures is one of my favorite use cases. :)


net::ERR_CONNECTION_TIMED_OUT

Type: Bug
I can't use my copilot, everytime i start new chat is always show net::ERR_CONNECTION_TIMED_OUT message.

Should not be from my end.

Experiencing same issue here, It was very slow generating answers, then now net::ERR_CONNECTION_TIMED_OUT I use my office wi-fi & home wi-fi, both same. Should not be from my end.

The error doesn't come from the connection or network. I also googled for this error and found nothing.

Experiencing same issue here, It was very slow generating answers, then now net::ERR_CONNECTION_TIMED_OUT I use my office wi-fi & home wi-fi, both same. Should not be from my end.

The error doesn't come from the connection or network. I also googled for this error and found nothing.

after the update, it's fine now


Build Pyapp artifacts with GitHub Actions

This pull request brings in some new YAML files into .github/workflows. The idea is to have GitHub automatically create the release artifacts (using pyapp)  and upload them as release artifacts.

:crossed_fingers: these workflows are useful and obviate the need to create separate Pyapp executables, especially on Windows!


Improve pipeline

markdownlint
a11y tests
switch from gulp to something else—webpack? rollup? parcel? npm scripts?

Github Actions.


Interrupt wdt timeout on CPU0

When I compile a very trivial project with "FREERTOS_UNICORE=y", the esp32 console yields this message:
Guru Meditation Error: Core  0 panic'ed (Interrupt wdt timeout on CPU0).
This is the code that fails when setting "FREERTOS_UNICORE=y"
void test_task(void *pvParameter) {
    while (true) {
        printf("Hola Mundo\r\n");
        vTaskDelay(300 / portTICK_PERIOD_MS);
    }
}

void app_main(void)
{
    nvs_flash_init();
    xTaskCreate(&test_task, "test_task", 4096, NULL, 5, NULL);
}

This is a regression introduced in 45581db when we have started using software interrupt to trigger a yield from a critical section. Unfortunately initialization of the said interrupt is only done for the case of !FREERTOS_UNICORE.
This patch should help:
diff --git a/components/esp32/cpu_start.c b/components/esp32/cpu_start.c
index 495a178..7bc487b 100644
--- a/components/esp32/cpu_start.c
+++ b/components/esp32/cpu_start.c
@@ -206,9 +206,7 @@ void start_cpu0_default(void)
 #if CONFIG_TASK_WDT
     esp_task_wdt_init();
 #endif
-#if !CONFIG_FREERTOS_UNICORE
     esp_crosscore_int_init();
-#endif
     esp_ipc_init();
     spi_flash_init();
     /* init default OS-aware flash access critical section */

We'll do more tests here and fix this in master soon.

@igrr Yes, this patch helped also in my case...


Document new rule C26820

Existing PR: https://devdiv.visualstudio.com/DevDiv/_git/msvc/pullrequest/237948

@dmitrykobets : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Hi @corob-msft - Could you work with @dmitrykobets to move this commit to the private repo and ensure that it meets all PR review quality criteria? It should pass build validation, be added to a TOC, be viewed on staging, and be PR-reviewed before being merged in the private repo. Thanks.

@corob-msft : Thanks for your contribution! The author(s) have been notified to review your proposed change.

... and I'll move it to the private repo. I missed Kristine's comment before starting my edits.

Closing in favor of the private repo version Document new rule C26820 #2798.


Recipe details page

I added functionality to the foodcarcontainer so that onClick navigates to recipe details page. I also added functionality so the the recipe details page renders the correct information.

I added functionality to the foodcarcontainer so that onClick navigates to recipe details page. I also added functionality so the the recipe details page renders the correcyt information.


Add double type

This continues the PR from #1208. I've resolved the conflicts for merging with master.
This feature request has come up numerous times, from the following tickets: #498, #1025, #722, #668, and likely elsewhere.
This branch picks up from where @ntzm left off, it simply merges his existing branch into the current master.

Thank you, this looks great!

@lorenzo Do you have any idea when this update will make it into an official release here? :)


if debugger is off, onMessage does not trigger.

I have migrated from code Webview to react-native-webview.
followed the guide, now i need to communicate from webview to react-native. for that
<WebView  .......  onMessage={event => {                     alert("hiiiiii"+event)                     this._onMessage(event)                 }}
but i does not trigger.

Probably, I have same issue.
"react-native-webview": "^5.3.0"

const injectedJavaScript = `function onBridgeReady(cb) {
      if (window.postMessage.length !== 1) {
        setTimeout(function() {
          onBridgeReady(cb)
        }, 100);
      } else {
        cb();
      }
    }
    onBridgeReady(function() {
      window.postMessage('works!', '*');
      alert('works!');
    });
    true;
    `;

I see alert but onMessage not fired

I have resolved it. Please let me see you onMessage function @indapublic

        console.warn("onMessage");
      }```

for example

onMessage={event => { alert("calling onMessage"+event)                     //this._onMessage(event)                 }}
check if you are getting this alert

As I said before onMessage not fired

@imdadhussain004 how did you resolve it?
I'm having the same issue in my app. Works fine when in debug - but hangs and eventually crashes the app without debug.

@ifiokjr please share you onMessage() function.
I was checking if json I'm getting from webview is valid or not, i commented that section and it started working

Okay, I just figured it out.
The app seems to crash when you try to log the event.
private readonly onMessage = (event: NativeSyntheticEvent<WebViewMessage>) => {
    console.log('welcome to the jungle');
    const data = event.nativeEvent.data;
    console.log('native', event); // This line causes it to crash when not it debug mode
    this.setState({ message: 'message received ' + data }, () => {
      console.log('THIS IS AN EVENT', data);
      const num = parseInt(JSON.parse(data).message, 10);
      if (typeof num !== 'number' || num !== num || num === Infinity) {
        console.error('something went wrong with the number', num);

        return;
      }
      if (num >= MAX) {
        this.webView.current!.postMessage('STOP');
        return;
      }
      this.setState({ num, duration: Date.now() - this.state.started.getTime(), message: '' }, () =>
        this.webView.current!.postMessage(String(this.state.num + 1)),
      );
    });
  };

@indapublic Looking at your code I believe the reason it isn't working is that you're using window.postMessage instead of window.ReactNativeWebView.postMessage within the injectedJavascript prop.
If you change it you should at least see the onMessage handler fire.
Also, it seems that logging the event causes the app to freeze as my message above suggests.

@ifiokjr Yeah, i fixed it already. Thanks!

i had the same issue. 2 solutions:

use window.ReactNativeWebView.postMessage insteam of window.postMessage
add event.isDefaultPrevented(true) in the first line of your onMessage method


Prevent expensive mass eviction from EhCache

This change is inline with "In general, you need to ensure the cache is alive long enough to support the individual expiration policy of tickets, and let CAS clean the tickets as part of its own cleaner."
On some types of storage mass eviction causes faulty removal on another it is too expensive.

Sweet. Do the same sort of change for master please and we shall merge. Thank you.


How to setup workspace using Eclipse CDT

I am using ./build.sh demo gpio -- command to build the applications. After familiarising some of the samples, I am trying to write a custom application code. How can I set the eclipse environment using the samples and the SDK tools..

you can download the eclipse cdt version, and then import code as makefile project

right click the project->properties

create a target, app here for example as follow:

then build target

finally build complete


"Dendron: Show Note Graph" throws an error

Describe the bug
After I run the command Dendron: Show Note Graph, instead of seeing the graph, I get an error:

To Reproduce

Run Dendron: Show Note Graph or Dendron: Reload Graphs.
Observe the error (the same for both cases).

Expected behavior
To see the graph view in step 2, for Show Note Graph.
Screenshots
See above.
Desktop (please complete the following information):

OS: Microsoft Windows, Version 2004 (OS Build 19041.630)

Additional context
This is my root.md:
---
id: 9994522b-bf55-4583-bfb3-f9cb5949076b
title: Root
desc: ''
updated:<PHONE_NUMBER>428
created:<PHONE_NUMBER>703
---
# Welcome to Dendron

This is the root of your dendron vault.  You are free to customize any part of this page except the frontmatter on top.

This is my root.schema.yml:
version: 1
imports: []
schemas:
  - id: root
    children: []
    title: root
    parent: root

Dendron Log file
Please attach the output of >Dev:Dendron: Open Logs here
dendron.log
dendron.server.log

@konrad-jamrozik this is because of the recent changes we made to give root nodes unique ids instead of a hard coded default. will be fixed either today or tomorrow. also, kudos on all the bug finding this past week 😅 🐛 🔨

This is now fixed in dendron-markdown-links  v0.6.16. if you reload your vscode workspace, you should be automatically upgraded. will close this ticket after you confirm that its working :)

@kevinslin it works now! I reported another bug: #359. Thanks for the bug cather role! Glad to help :)

Awesome, just responded to the issue there. Also, you've now earned the Taxonomist role for correcting my typos 😅


Fix a typo

Fix a typo in /docs/core/packages.md
row 69 There antages => There are advantages

Hi @OshotOkill, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. Real humans will now evaluate your PR.

TTYL, DNFBOT;

Thank you @OshotOkill!


remove composer.lock

https://gist.github.com/basz/2575cdb5e6a0dd482ed19b2e4be02696

@basz travis is configured to test locked versions so composer.lock can't be removed

Could you add the filename to gitignore?

Remove all those locked entries if favor of latest from travis.yml

This file is intentionally kept to allow us to do a lowest/locked/latest test strategy.

@weierophinney What is the purpose of the locked strategy? When composer.lock should be updated then?

@Maks3w: When we discover issues against latest dependencies and want to implement fixes for them.

@weierophinney I still not understand. Why not develop against latest versions?

Sounds like sort of a backlog. If suddenly the tests fail, I think you can track which dependencies changed. And more importantly, check what changed inside those dependencies. Without the lock file you have no idea what you tested against last time.

Time ago we added composer -i in travis.yml for log what versions has been installed.

@Maks3w The point is to help contributors and maintainers know what is breaking: is it the code their patch is providing, or is something breaking due to changes in an upstream project? If we have the lockfile, that represents the known dependencies. If a later test run shows the "latest" target failing, but not the "locked", we know that a dependency has changes in more recent versions that affect our component, and we can either (a) fix our code to work against them, or (b) change our constraints for the upstream dependency.
We started doing this approach to understand if changes we were making were both backwards compatible with the earliest supported versions of components (v2 versions of event manager and service manager, specifically), and forwards compatible with latest versions. Adding the lock file helped uncover some cases where changes in the v3 versions were causing issues, and we could backtrack and see the ramifications, and whether we needed to fix the v3 versions, or if there were code changes we could make that would allow forwards compatibility.
The approach has already proved itself, and we'll be adopting it across most components soon. This component, in particular, required it due to its usage of the servicemanager and stdlib components, and wanting to ensure compatibility.

I understand. Just one more question. Is this the same as if lowest version works and latest does not works?
Lowest version is always fixed because we set the minimum version in composer.json.

Sorry 4 the noice

Lowest version is always fixed because we set the minimum version in composer.json

@Maks3w that's not true, what if one of dependancies with are deep in the tree updates their minimum version they can change for us.

@svycka Lowest dependencies are always the same no matter what deep they are in the tree.
a require b v1.0.0 require c v0.2.0 even if b v1.0.1 is released with c v0.2.1 the lowest version installed will be v1.0.0 which is conceptually immutable

@Maks3w, an example when lowest and latest failed but locked pass https://travis-ci.org/zendframework/zend-mvc-console/builds/121179985
also I am not a fan of composer.lock in git repository..

@svycka That is was because the lowver version of zend-mvc was targetting an unstable version.
https://github.com/zendframework/zend-mvc-console/blob/068b67b951e20a2fd502a8b6e409d8c727f826a2/composer.json#L17
This scenarios shouldn't be happen and the lower version should be always a known released version

I didn't said this is same situation but shit happens :D And for example in this situation we had working version.

That situation is forced by developer of the root package. We can to rid all those locked builds and composer.lock versions.

The reasons for having the lowest/locked/latest strategy are as follows:

We want to ensure that changes we make work on the lowest supported version of a dependency. If they do not, we need to make a decision as to whether we need to update that dependency (requires a minor release), or if the changeset needs modifications to work with it.
We want to make sure that the changes we make work with the latest supported dependencies. If they do not, that can indicate a situation where the dependency has a backwards compatibility break. We then have a few courses of action:

Tighten the dependency constraint to known good versions.
Make our own code forwards compatible.

These two only require a composer.json, as the former can be accomplished by using the --prefer-lowest flag when installing.
However, there are additional considerations.
When we consider the "latest", one issue that occurs is we have to try and understand when a break occurred. This is hard to do when no composer.lock is available, as the developer has to look through Travis CI jobs to see when the last passing test was, and then look at the composer info output for that job. With a composer.lock available, they have the information available in their checkout.
From a contributor's point of view, there's another issue: when no composer.lock file is present, if they do a composer install and run tests and they fail before they start working on their patch, what should they do? We get a number of issues regularly where this happens, and the result is:

Pull requests that include additional changes outside the scope of the proposed change, so that tests will run.
Review delay because "tests are not passing, so it must be incomplete" because the developer chose to do a patch with only their changes, and not address the new, unrelated failures.

Having the composer.lock available means that they can know that their changes pass against known good dependencies. Yes, their PRs will still fail  against Travis, but we, as maintainers, can identify that the issue is with the latest versions of dependencies, and we can then work on patches for those problems separately from the proposed patches in the pull request.
We started using this approach due to development on zend-mvc, where lack of a lock file meant that as dependencies went out-of-scope, developers were unsure of what changes they could confidently and safely make against the current develop branch. Yes, it's a somewhat unique situation — but as I and others were working on the various BC/FC patches, we realized that it wasn't as unique as we thought, and that the approach has general merit.
I understand that not everybody agrees with the approach. However, I've seen far more benefit from it in the few months since we've started introducing it than any possible detriments from doing so. As such, I'd appreciate it if we could focus on getting code patches in place instead of debating the merits of including a lockfile. They've already proven themselves.


Usability UI

Fixes 1. and 2. of Bug #53:

Checkbox for "Include suggested change" stays at its place, no matter how it is toggled
Reply Field now has a lable

Changes relevant for other parts of the code: The Reply field is no wrapped in a <lable> tag which is a minor change to the DOM.

n1 tnx


Doesn't center and it keeps restarting all the time

Describe the bug
Whenever the program starts it works fine. As soon as I open e.g. a game, Chrome or any application for that matter, TaskbarX runs automatically, but this time around it doesn't center. Instead it goes to the far right, clipping into the tray icons.
Furthermore, if I Alt + Tab into another application, this happens once again (the program reruns and goes all the way to the right of my screen). This is fixable by running TaskbarX Configurator, but doing this constantly (literally every time I do anything involving switching between applications or simply opening them) is really getting annoying.
It should be noted that due to some issues with the local account on my machine, I have to be logged into the administrator account. I am only mentioning this as TaskbarX Configurator mentions that running the program as an admin might cause issues.
To Reproduce
Steps to reproduce the behavior:

Press CTRL + R and type shell:startup.
Put a shortcut to TaskbarX inside that folder. This will cause the program to run at startup.
Restart PC.
If nothing happens, try Alt + Tab to another application.

Expected behavior
The Taskbar should center in the middle of the screen.
Screenshots
This is what it should look like and what it looks like after I manually reload TaskbarX using the configurator application
And this is what it looks like whenever I do what I just described at the top of this post
Desktop (please complete the following information):

OS: Windows 10 Pro N
Version: 10.0.19045 Build 19045

Additional context:
If I don't set the primary taskbar offset to be -500px it will never center, which makes no sense to me as it worked last week. I tried updating to the latest version of TaskbarX, but that did not resolve this issue.
NOTE IMPORTANT: A couple of days ago I enabled "Resize BAR". These issues started after I enabled this. I highly doubt this has anything to do with this issue and believe it to be a coincidence. Disabling BAR did not help with this issue.

Is this repository even being maintained anymore? No one gets replies on the issues posted and there has been no update for 3 months.

Same issue here brother, did you fix it?

Same issue here brother, did you fix it?

Don't bother. This project is dead.
I would recommend upgrading to Windows 11 as it has the feature built-in already and is a way better version than this one.


Enable Testerina tests for Java11

Description:
Enable Testerina tests for Java11
Steps to reproduce:
Affected Versions:
OS, DB, other environment details and versions:
Related Issues (optional):

Suggested Labels (optional):

Suggested Assignees (optional):

https://github.com/ballerina-platform/ballerina-lang/pull/26244

Enable TestReportTest handled in https://github.com/ballerina-platform/ballerina-lang/issues/26261


Xelatex/lualatex support?

Does this template support xelatex or lualatex to use cusom fonts?

I does! I in fact used it with lualatex and used Adobe fonts which I did not include in the repository though.


ludusavi: 0.25.0 -> 0.27.0

Why
Update  ludusave to 0.27.0.
Fix build and runtime dependencies.
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 358080

x86_64-linux

:white_check_mark: 1 package built:

ludusavi

LGTM

Can we merge this? This version has a couple of interesting features and fixed compared to existing one ...


Make BaseResolver.supports async and prefer regex matching

This PR extends the BaseResolver.supports method to be asynchronous and to take a Profile to support such use cases as retrieving resolver connections from storage and checking DIDs supported by those resolver connections. Additionally, this PR adds supported_did_regex as a value intended to be implemented by subclasses of BaseResolver and used in the default supports implementation. This changes the previous behavior of matching on the DID method alone to regex matching, granting more flexibility in how resolvers are selected to handle DID resolution.
supported_methods remains functional to prevent breaking resolver plugins already in the wild but is marked as deprecated.

Codecov Report

Merging #1176 (066fc85) into main (4c4b226) will decrease coverage by 0.01%.
The diff coverage is 91.42%.

@@            Coverage Diff             @@
##             main    #1176      +/-   ##
==========================================
- Coverage   98.53%   98.52%   -0.02%
==========================================
  Files         452      452
  Lines       24873    24892      +19
==========================================
+ Hits        24509    24525      +16
- Misses        364      367       +3

Out of date now, but it looks good to me.


rustc-colon-compilation-regexps: improve highlighting.

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


label:question label:enhancement How would I change the size/color of the + icon, or make a keybind for it?

I would like to alter the size and color of the + icon you click to bring up the chat interface, as well as possibly add a keybind to bring up the interface, Can this be done within user JSON settings in vscode, or will I need to modify the extension.ts file?

I have the same question, I tried adding "keybindings": [ 			{ 			  "command": "mywiki.askAI", 			  "key": "cmd+i cmd+o", 			  "when": "editorFocus && commentController == comment-scribeai" 			} 		  ], this does not work

I think adding keybindings is definitely doable but not sure about modifying the plus button UI since it's heavily controlled by vscode. I've been pretty busy with work and do not have much time to maintain this extension. Feel free to submit a PR if you manage to add keybindings to bring up the interface. If you like please consider sponsoring this project through donations.


When will "App Registrations" be out of public Preview and can be used in Production?

I'm trying to integrate a SAML App with AADB2C using App Registrations which is in preview as mentioned in the doc https://docs.microsoft.com/en-us/azure/active-directory-b2c/connect-with-saml-service-providers
Is it stable enough to use in Production? Will I get support If I face any Issue?

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

ID: 1376f79b-474f-4b83-2583-07acd2eeb2f4
Version Independent ID: 45d314dd-c9fa-50a5-cb39-d34db80c7874
Content: Configure Azure AD B2C as a SAML IdP to your applications
Content Source: articles/active-directory-b2c/connect-with-saml-service-providers.md
Service: active-directory
Sub-service: b2c
GitHub Login: @mmacy
Microsoft Alias: marsma

@yashwanth-yenugu Thanks for the feedback! We are currently investigating and will update you shortly.

@yashwanth-yenugu Unfortunately, we do not have any timelines to share with.  Also, it is not recommended for any production use until and unless it goes to production.