How to configure log level for different modules?

Hello colleagues,
as of now, we use two of your modules (@sap-cloud-sdk/http-client and @sap-cloud-sdk/connectivity).
If we want to set the log level for the modules, we need to require a third package @sap-cloud-sdk/util.
Is it possible to set the log level for a package without requiring the util package?

Hello @johannes-vogel,
since the createLogger method is also in the util package I think that the util package is already a dependency from the mentioned modules. So if you ad the util package as explicit dependency should not create extra overhead, if the packages are hoisted correctly by npm. In general we use the same version modifier e.g. ^2.0.1 in all places so this should work.
Let me know if this answers your questions or if you have problems with multiple util dependencies in your node_modules.
Best
Frank

Hi @FrankEssenberger,
yes, I am aware that this is a dependency of the mentioned modules.
However, I don't like the approach of using a module without adding it to the dependencies.
With that, we'd rely on your package structure and that this doesn't change.
I'm also afraid of your point. If we upgrade the version of the SDK within @sap/cds and a stakeholder still uses version 1 of the SDK, we are in trouble.
Best regards,
Johannes

Please don't downrate this. it is really very strange API design. I'd expect an API design like that:

we should only have to use http-client.
which should provide a way to set log levels → passing through to your util internally
which should handle destinations behind the scene

I think we should not mix the two problems:

API design
Rely on package structure
NPM dependency management

Regarding the first point @danjoa , I do not find this a "strange" API design. The logger is a separate entity located in util. It is used by the http client, generators, OData clients.... So it makes sense to have it in a separate module. The actual question is does it make sense to re-export the logger API from the util to the http-client so that you can invoke it from this package? I think this is not a good idea, because we would add a lot of boiler plate code of re-exports to all other modules.
Regarding package structure. Unfortunately the situation in node is not so clear as in Java, where there is a logging interface and the consumer needs to provide an implementation.  If a sdk module creates logs, you can be sure that the sdk logger is used to create the logs. In the end, you must rely on this either way. If we would stop using the sdk logger, the setLogLevel would not do anything. If you include it as an explicit dependency your code will still work but silently do nothing. If you do not include it, it will fail because the methods are not there anymore. Both situations are bad, but as I said this should not happen because we will use the sdk logger to create logs.
Regarding the point of having two incompatible versions (1.X and 2.X) in the same project, I think there is not much you can do. Since the version modifiers are not compatible hoisting will not work and the two versions will stay. Which is fine in principle. However, for a thing like a logger where there is some global mapping logger<->level in memory having to implementation having this mapping will lead to undefined behavior. So this should be avoided but I honestly do not know how you can do this in npm.
Best
Frank

Hi @johannes-vogel ,
I would like to point out that the package @sap-cloud-sdk/http-client has direct dependencies:

@sap-cloud-sdk/connectivity
@sap-cloud-sdk/util

Therefore, adding the other 2 dependencies will not require any disc space for installation, if you have the @sap-cloud-sdk/http-client already.
Best,
Junjie

Since we have not heard back for a while I will close this issue for now.  We also adjusted the default log level in some places  so this could perhaps mitigated the issue already. If not feel free to reopen.
Best
Frank


As a user I need to accept the exchange terms when I sign up for the exchange so that I can use the services.

The user needs to accept the terms and conditions for the exchange when they sign up.
Created by Paul
DOD

Users must click on and accept the terms.

Connect with Peter and David H.

Does "user" refer to a BPS entity?

In the abstract I would say yes. That said the story should perhaps say "As a public sector entity..."
Thoughts?
David
On Dec 4, 2015, at 7:46 AM, leslieanderson <notifications<EMAIL_ADDRESS>wrote:
Does "user" refer to a BPS entity?

Reply to this email directly or view it on GitHubhttps://github.com/BCDevExchange/BCDevExchange-app/issues/202#issuecomment-162000514.


[PHP]: Create Symfony Flex recipe

Is your feature request related to a problem? Please describe.
Symfony allows installing all required configs, environment variables,  dependencies,and so on using Flex package manger recipes
Describe the solution you'd like
Create a recipe to setup the console UI out of the box with the default config and environment variables.

Paused until resolve https://github.com/drinksandco/symfony-console-ui/discussions/34


[WIP] feat: Add first pass at ExcludeAttributes option (#232)

I think this is generally working, but I'm looking for a better way to automate the test for the MSBUILD task and CLI tool to make sure I didn't miss something.
If someone else can pull this and test it for their usage, I'll feel better about it and remove the [WIP] and say it's ready to merge.
Otherwise, there's also a whole bunch of random style and whitespace changes I'd like to make but don't want to mess up this PR for that and will do it in a later one. I tried to keep everything in the same pattern as the existing things, but it's not exactly how I would normally do it.

I think I addressed the items in your comments @tonerdo

@amweiss This is ready to go, modulo one more comment

@tonerdo Change made.

This is ready to go. Will merge once I'm ready to make a new release


Characteristic.MotionDetected always on true

Hi @homespun,
thanks for your homebridge-plugin! 👍
you have a little bug in your programming. Ok, what is called bug, it is a singularity of HomeKit.
When the inofficel Ring API reports a motion, you sets the Characteristic.MotionDetected to true in HomeKit - but you never changes that state to false.
That's why all users of your plugin will only get a notification when a move is detected - see #59. In any case, if Apple Home App has not killed or the room is changed and the status is queried again - so the status always stays on MotionDetected.
After X seconds, you should also set a Characteristic.MotionDetected to false.
Thank you und best regards
Nico

I’m having this same issue

Yeah me too. Kind of annoying haha

I have a pull request that resolves this issue. You can find the updated code in: https://github.com/isalkind/homebridge-platform-ring-video-doorbell

Thanks isalkind!
How can I update to your pull request?

Easiest would be to wait for the PR to be accepted and simply update to the latest. Alternatively, you should be able to do npm install https://github.com/isalkind/homebridge-platform-ring-video-doorbell.git using any additional npm flags appropriate to your installation.

This plugin is now DEPRECATED... you will find a vastly superior plugin here!


Interactive style editor for mapbox-gl-draw

https://github.com/acteng/atip/blob/main/style.js is annoying to tune. But we're in magic JS land.
Idea 1: just have an in-browser modal with this source code. Edit it, instantly redraw stuff.
Idea 2: expose the line/circle/polygon properties and add basic sliders, color pickers, etc.
https://github.com/maputnik/editor is in the inspiration, but it seems more suited for styling the basemap. I can add a GeoJSON file and mess with color and outline, but not even outline thickness.

Not really useful or likely to happen. Could be one for acteng/overview backlog


Preserve file path in latest version

Hello,
File uploaded in foo/bar/image.png then it would be best if the resized images were added to /resized/small/foo/bar/image.png instead of the current behavior of putting it in foo/bar/resized/image.png
Hello @ysugimoto  I was trying to replicate this in latest build. But couldn't get it to work.
Any help would be great.
Earlier issue #59

Hi @tusharvikky , I'll investigate that.
BTW, can I see your configuration, please?

Hey,
I was using the sample config. But my path of file upload is images/<someid>/<someid2>/timestamp.jpg
I have a S3 event handler in place on images folder.
I'm expecting:
reduced/images/<someid>/<someid2>/timestamp.jpg -> Reduction block, I have added an absolute path of reduced.
resized/500-jpeg/images/<someid>/<someid2>/timestamp.jpg -> resized/500-jpeg added as absolute.
{
  "bucket": "bucketprod1-s01",
  "reduce": {
      "directory": "reduced",
      "quality": 70,
      "acl": "public-read",
      "cacheControl": "public, max-age=31536000"
  },
  "resizes": [
    {
      "size": 500,
      "directory": "resized/500-jpeg",
      "format": "jpg",
      "background": "white",
      "changeExtension": true
    }
  ]
}

@ysugimoto Did you got the time to look into this?

@tusharvikky Hi, I'm late.
I tested with the following config:
{
  "bucket": "testing-bucket",
  "reduce": {
      "directory": "./reduced",
      "quality": 90,
      "acl": "public-read",
      "cacheControl": "public, max-age=31536000"
  },
  "resizes": [
    {
      "size": 600,
      "directory": "./resized/600-jpeg",
      "format": "jpg",
      "background": "white",
      "changeExtension": true
    },
    {
      "size": 600,
      "directory": "/root/resized/600-jpeg",
      "format": "jpg",
      "background": "white",
      "changeExtension": true
    },
    {
      "size": 500,
      "directory": "resized/500-jpeg",
      "format": "jpg",
      "background": "white",
      "changeExtension": true
    }
  ]
}

And uploaded to original/example.png which is set S3 event. Then Lambda logs are:
Downloading: original/example.png
Reducing to: ./reduced
Uploading to: original/reduced/example.png (77141 bytes)
Resizing to: ./resized/600-jpeg
Reducing to: ./resized/600-jpeg
Uploading to: original/resized/600-jpeg/example.jpg (16881 bytes)
Resizing to: /root/resized/600-jpeg
Reducing to: /root/resized/600-jpeg
Uploading to: /root/resized/600-jpeg/example.jpg (16881 bytes)
Resizing to: resized/500-jpeg
Reducing to: resized/500-jpeg
Uploading to: resized/500-jpeg/example.jpg (12297 bytes)

It works as expected, I think. Because this package deals with image the only filename, not dealing directory of a filename. So if you want to consider about uploaded directory like <someId>, probably this pakcage should improve for dealing it.

@ysugimoto I'm a beginner in nodeJS, if you can point me out on how I can get it done, I can raise a pull request.

@tusharvikky Sorry for the late reply.
Well, now processed image path is generated at here, so you can deal with image directory someways.
I think it's better to add more option like keepDirectoryPath or something and treat file path by that option value is true or not for backward compatibility.
@kdybicz If you have any suggestions, plz tell us.

if we don't have any progress, close temporarily.


EE-1121: Put bonding delay into chainspec

Ref: https://casperlabs.atlassian.net/browse/EE-1121

Adds unbonding_delay into chainspec
Supports optional upgrading with additional tests a) for upgrading the value only b) for checking that unbonding pays out after updated unbonding_delay but not earlier

From CI failure:
Run generate_validation.sh in /drone/src/resources/production to update validation.md5 and commit.

bors r+


Recover cluster after multiple pod failures

This PR implements a potential solution for cluster recovery (issue #289).
The idea is to detect that more than one pod is missing (thus quorum potentially being broken) by checking if there are more PVCs than pods. If so the operator temporarily recreates the affected STS with podManagementPolicy = Parallel so that all pods are started again.
@idanl21 @prudhvigodithi  I'm not yet sure if this is a good solution, please provide your opinion on this (also if there are cases not covered) or alternative ideas you have. If you are ok with this approach I will add some tests.
I've tested two scenarios:

All master pods down -> pods get recreated in parallel and can form a quorum
OpenSearchCluster object is freshly created but PVCs exist (from old run) -> pods get created in parallel and can form a quorum, bootstrap pod is ignored and deleted after recovery

Any plans to merge this PR? We're stuck with failed cluster for the second time in a month. This time it was caused by node upgrade on AKS.

Hey @swoehrl-mw, Just passed on the implementation, I didnt know the podManagementPolicy = Parallel but looks like it can help us to solve the problem.
did we also tested the the scenario that 2 nodes are failed an only 1 left ?
@grzeg1, Thanks for using the operator, Please -  contact me in person, i can help you with your problem (and also you can help us to test that fix).
you are welcome to ping me in mail<EMAIL_ADDRESS>Thank !

@idanl21 @prudhvigodithi I tried to add some unittests for this PR but in the end had to give up as I could not get envtest to behave like I wanted to. We'll have to cover this with functional tests in the future.
I added an option to disable the recovery so if we didn't cover an edge case the users can prevent it from doing stupid stuff.
Please review and also test in your environments.
Tests I did:

Delete all pods -> pods get recreated in parallel
Delete 3 of 4 pods -> pods get recreated in parallel
Delete 2 of 3 pods -> normal one-by-one recovery works (2 can form a quorum)
Delete cluster, keep PVCs, recreate cluster -> pods get created in parallel

Hey @swoehrl-mw, Just passed on the implementation, I didnt know the podManagementPolicy = Parallel but looks like it can help us to solve the problem. did we also tested the the scenario that 2 nodes are failed an only 1 left ? @grzeg1, Thanks for using the operator, Please - contact me in person, i can help you with your problem (and also you can help us to test that fix). you are welcome to ping me in mail<EMAIL_ADDRESS>Thank !

@idanl21 we had to back from using the operator and return to manually-provisioned cluster. But we're ready to go back to testing.

Hey @grzeg1, Im glad that you guys wanna keep work and progress with the Operator, i believe that fix will be merged to main in few days :)
If you have additional questions, please let me know send me an email<EMAIL_ADDRESS>

Hey @grzeg1, Im glad that you guys wanna keep work and progress with the Operator, i believe that fix will be merged to main in few days :) If you have additional questions, please let me know send me an email<EMAIL_ADDRESS>
Just to let you know: we've been using the merged fix for a few days and tried to make the cluster break. We did not succeed - the cluster always recovered. Thumbs up!


Improve docs around constructing DateTime objects

This provides examples for most of the constructor-like methods on
TimeZone, examples on the various Offset impls, and links
NaiveDateTime to TimeZone so that it's more obvious how you're
supposed to do things.
This is related to #88, which is something that I ran into when I
started using rust-chrono.

I had a very minor adjustment in the mind, but changed my mind later. (My initial thought was that the documentation in chrono::offset is primarily intended for TimeZone implementers, but after some more thought I figured out that the suggested wording is less confusing for everyone.) Thank you so much!


Tuya V2 Integration still missing Tuya Dimmers

The problem
Added Tuya V2 integration. Everything shows up but my dimmer.
https://www.costco.ca/feit-electric-wi-fi-smart-dimmer-3-pack.product.100681394.html
What version of Home Assistant Core has the issue?
core-2021.11.5
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Supervised
Integration causing the issue
Tuya V2
Link to integration documentation on our website
https://www.home-assistant.io/integrations/tuya/
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
Core
core-2021.11.5
Supervisor
supervisor-2021.10.8
Basic Information
Device Information
Product Name = Dimmer Switch
Product Category = tgq
Device Status = Online
Activated At 2021-11-29 15:15:45
JSON_EDITOR
[
{
"code": "switch_led_1",
"value": false
},
{
"code": "bright_value_1",
"value": 10
},
{
"code": "brightness_min_1",
"value": 10
},
{
"code": "led_type_1"
},
{
"code": "work_mode"
}
]
##https://github.com/home-assistant/core/issues/60747

My two channel dimmer shows up in the integration but only a single channel of the two. Quite irritating and both frenk and Tuya devs said it was meant to be working. Not even sure how to get them more information as my request was closed.

My two channel dimmer shows up in the integration but only a single channel of the two. Quite irritating and both frenk and Tuya devs said it was meant to be working. Not even sure how to get them more information as my request was closed.

Agreed, very frustrating. I would also like to help if needed.


{Core} Make _prepare_client_kwargs_track2 public

Description
Make _prepare_client_kwargs_track2 public so that it can be used by Track 2 data-plane SDKs, like azure-storage.

Core

/azp run


Add class if "slidesToShow" is more/less than slide count

I think it would be helpful to add a class to the .slick-slider div to indicate when the slide functionality is activated -- as dictated by the number of slides versus the slidesToShow number.
For example, if I've set the carousel to show 3 slides at a time, but I only have 2 slides, then I want to style the overall carousel differently than when it's got more than 3 slides and thus showing the prev/next buttons. Unfortunately, there is no class change on the main carousel div to indicate any difference between the two states.
I tried adding a class on the "init" event by determining if the prev/next buttons exist, but that didn't work because the prev/next buttons are created after init, I guess. So I got it to work by editing slick.js here (see where I added the class 'foo' below).
Would you consider adding something like this in a future update? Or tell me if there's a better way for me to get this class on the .slick-slider div? Thank you!
if( _.slideCount > _.options.slidesToShow ) {

          $('.slick-slider').addClass('foo');

            _.$prevArrow.removeClass('slick-hidden').removeAttr('aria-hidden tabindex');
            _.$nextArrow.removeClass('slick-hidden').removeAttr('aria-hidden tabindex');

            /* other code removed for brevity */
            }

        } else {

	      $('.slick-slider').removeClass('foo');

            _.$prevArrow.add( _.$nextArrow )

                .addClass('slick-hidden')
                .attr({
                    'aria-disabled': 'true',
                    'tabindex': '-1'
                });

        }

As I think about, I think it would be more helpful to do the reverse of what I did. That is, to add the "foo" class when prev/next are disabled, and remove it when they're enabled. I would imagine the main use-case for this would be when the slider is not functioning, and you want to style it differently to account for that.

http://jsfiddle.net/jhkcyzz1/2/
I appreciate that you were a little confused if this was possible or not, but better to ask in the correct support forum first before raising an issue. Please read the contribution guidelines for help.
Best, Simon.

@simeydotme your fiddle helped me! Thanks man

The way it works is it gets the option of SlideToShow. Which is cool. But what if the slideToShow equals 3 but the content editor just has 2 'slides' - the counter will say something like 3 of 2 slides - which makes no sense. How can we get the actual value of the total "visible slides" rather than getting the option? @simeydotme


Speeded up setBoolean 10x times

Following pipeline:
1.) String value = bool ? "1" : "0"
2.) Create new parameter holder for value
Replaced with:
bool ? trueParameter : falseParameter.
Got performance increase 10x times for setBoolean() sequential call.
@enqueue , FYI.

@alex-krash yes, good to see such performance gains by simple "tricks" :+1:
However, the PR highlights for me the need for some very basic coding rules: Changes in import order, and the use of the wildcard import "litter" this diff. Can we make an attempt to get #304 on the way?


$animateCss not working correctly webkit browsers.

I followed the $animateCss documentation to build an accordion-style component with dynamic height.  The animation works fine in Chrome, but displays oddly in webkit-based desktop/mobile browsers.
The issue seems to be caused by removing the height property after the animation completes: parent[0].style.removeProperty('height').  With this line omitted, the animation works correctly.
Animated gif of the glitch as seen in iOS
Codepen Example
.animation('.itin-item-open', ['$animateCss', function($animateCss) {
        return {

            enter: function(element, doneFn) {
                var parent = element.parent();
                openHeight = element[0].offsetHeight + 20 + 'px';

                var animateParent = $animateCss(parent, {
                    from: {height: closedHeight},
                    to: {height: openHeight },
                    addClass: 'md-whiteframe-z5 open'
                });
                if (!animateParent) {
                    return doneFn();
                }
                animateParent.start().done(function(){
                    parent[0].style.removeProperty('height');
                    doneFn();
                });
            },

            leave: function(element, doneFn) {
                var parent = element.parent();
                openHeight = element[0].offsetHeight + 'px';
                element.css('opacity', '0');

                var animateParent = $animateCss(element.parent(), {
                    from: {height: openHeight},
                    to: {height: closedHeight},
                    removeClass: 'md-whiteframe-z5 open'
                });
                if (!animateParent) {
                    return doneFn();
                }

                animateParent.start().done(function(){
                    parent[0].style.removeProperty('height');
                    doneFn();
                });

            }
        };
    }])

This is not only an iOS issue but rather a webkit issue.

@posixpascal You're correct.  I've updated the post accordingly.

@BirdInTheCity I'm looking into it.
Note that:
                if (!animateParent) {
                    return doneFn();
                }

Is not needed anymore with 1.4.0 final. You can also do this to avoid using the doneFn.
                var animator = $animateCss(element.parent(), {
                    from: {height: openHeight},
                    to: {height: closedHeight},
                    removeClass: 'md-whiteframe-z5 open'
                }).start();
                animator.done(function(){
                    parent[0].style.removeProperty('height');
                });
                return animator;

I'll also work on making done() chainable once the webkit issue is fixed.

So the problem here is that you have a CSS class called .animated which sits on the element being animated. This in turn causes the element to always animate any style changes so long as the transition property is present on the element. That being said, managing the .animated CSS class and the removal of the height property are out of context in terms of $animateCss so there's nothing it can do here.
The solution for you is to apply the .animated CSS class as the event of the animation:
                var animator = $animateCss(element.parent(), {
                    event: 'animated',
                    from: {height: openHeight},
                    to: {height: closedHeight},
                    removeClass: 'md-whiteframe-z5 open'
                }).start();

And remove it from the element all together. This way the CSS class will be temporarily applied to the element for the duration of the animation.


use dynamic linking instead of dlopen on all Linux distros

why does this help / why would the .so lookup be different compared to dlopen?

why I'm asking is because there's generally no difference in lookup between .so being linked natively or through dlopen, as far as lookup paths go - unless you also sprinkle with rpath's - thus I'm curious to hear why this approach solves that problem.
one thing I've been considering more and more lately is that we suspend rocksdb support for now and go with sqlite or whatever, then revisit rocksdb when we're closer to a working product and we start feeling that sqlite is limiting. this way, we can move faster with fewer distractions while we develop the core logic, across the board. sqlite is incredibly more easy to build, and we can link it statically.
@zah @yglukhov thoughts?
finally, just to be clear, I'm not a fan of Nim's dlopen approach - it's a ticking bomb to dll hell in general.

why does this help / why would the .so lookup be different compared to dlopen?

In this particular case, it's an incompatibility between new versions of jemalloc (RocksDB links to it) and dlopen: https://github.com/jemalloc/jemalloc/issues/1237

AFAIK the way to avoid dlopen is to remove all dynlib pragma and place a {.link: "path/to/.so".} somewhere.

Here it's handled with a custom pragma:
when shouldUseNativeLinking():
  {.pragma: importrocks, importc, cdecl.}
  {.passL: "-lrocksdb".}
else:
  {.pragma: importrocks, importc, cdecl, dynlib: librocksdb.}

oh, ok, I thought this solved some other issue - and that only arch was affected due to how it links jemalloc..

let's also update the readme to say that you need the -dev package as well to link

Done.

@arnetheduck, according to @yglukhov, using Sqlite is not an option right now, because the blockchain sync becomes slow enough to become practically unusable. There is a slight chance that the problem is caused by our inappropriate usage of the library somehow as the issue haven't been investigated very thoroughly yet.


Scoped Slots section uses

Here as a Vue beginner, I instantly got confused as to what I might have skipped... we used <template> earlier in List Rendering but it was as a replacement for wrapping multiple items. So how come the example in the link I included has no v-for ?

<template/> is not Vue-specific, but part of HTML5 spec, where it defines a reusable content fragment.
In Vue, it's often combined with structural directives like v-if (here) and v-for (here), or special attributes like slot (here) or scope-slot (here).

We definitely do need to clarify <template/> earlier because it's extremely commonly used and we don't introduce it until late. Sorry about that! We'll be working on that for the Vue 3 release, as well as updated slots documentation


Requirejs / AMD support?

Using angular-ladda with requirejs leads to an issue:
ReferenceError: Ladda is not defined

...since Ladda is no longer defined on the global scope. Any way to resolve this? Thanks!

Do you include ladda.js? And can you show me sample code for this issue?

Yes, ladda.js is included on the page.
In app.js I have listed angular-ladda as a module dependency. In app.js I do a console.log("Ladda is", Ladda) and it's there:

angular-ladda just isn't able to find it because it's no longer part of the global scope, since requirejs doesn't expose things globally.

OK. This is requirejs issue, right?
I don't know about requirejs very well. But I'll check this soon!

Yes, this is using angular-ladda in conjunction with requirejs
On Thu, Jan 8, 2015 at 4:38 PM, Chungsub Kim<EMAIL_ADDRESS>wrote:

OK. This is requirejs issue, right?
I don't know about requirejs very well. But I'll check this soon!
—
Reply to this email directly or view it on GitHub
https://github.com/remotty/angular-ladda/issues/10#issuecomment-69276239
.

Require js follows AMD pattern to load modules. Check this pull request i have fixed it , waiting for the guy to review
https://github.com/remotty/angular-ladda/pull/18

@thetutlage Thanks :)

This is still a problem. After loading angular-ladda the global Ladda object is destroyed/reassigned to undefined. This causes any other JavaScript which uses Ladda to break.
A simple example: include angular-ladda on a page and then use vanilla JS to bind/stop Ladda instances. See: http://jsfiddle.net/saaq6qqr/


ESP32 PSRAM behaves erratically if flashed using 80Mhz flash mode

I've been experiencing some erratic behaviour in my ESP32 trying to enable PSRAM on my WROOM-E module (confirmed to have an 8MB PSRAM module).
Attempting to synthesize this down to a broken test case, I generated a new esp-template project, and replaced the heap section with:
fn init_heap(p: PSRAM) {
    esp_hal::psram::init_psram(p);
    unsafe {
        ALLOCATOR.init(
            esp_hal::psram::psram_vaddr_start() as *mut u8,
            esp_hal::psram::PSRAM_BYTES,
        );
    }
}

And changed the init_heap call to be:
    init_heap(peripherals.PSRAM);

This actually works as expected when you espflash with the default settings. However, if you bump up the flash speed to 80mhz with -f 80mhz then I've seen it either:

Hang during PSRAM init
Throw a LoadProhibited during PSRAM init
Throw a IllegalInstruction during PSRAM init.

I think this is because the esp32 HAL PSRAM code assumes that you're running in 40mhz Flash/40mhz PSRAM mode:
 345⋮    │        let mode = PsramCacheSpeed::PsramCacheF40mS40m; // How to make this configurable

I think this is because the esp32 HAL PSRAM code assumes that you're running in 40mhz Flash/40mhz PSRAM mode:

Could you try changing this locally in esp-hal and seeing if with the correct mode it works?

Yes is does. I've been running with it set (unconditionally) to PsramCacheF80S80 since yesterday and it seems to work reliably.

I think the comment // How to make this configurable is the key thing - we could use (another) cargo-feature for it but ideally, we should have  #1111

I poked around at this a little bit. I think that the features can be removed completely, and instead we can pass this to psram::init as a configuration.

I poked around at this a little bit. I think that the features can be removed completely, and instead we can pass this to psram::init as a configuration.

Oh!
https://github.com/esp-rs/esp-hal/blob/45806dfba02056a14dd11775a8fdd23879c06212/esp-hal/build.rs#L215-L235 makes completely removing the features not a great option - we could always reserve the full amount of cache like we do on S3 but especially on S2 8k less RAM (when not having access to PSRAM) is not ideal
We can of course make the RAM size and the flash-frequency a run-time config - but I think we should keep a psram and a octal-psram feature

I think that should be fine, we will probably need at least one feature because at some point we'll need to resolve https://github.com/esp-rs/esp-hal/issues/2027 by adding or changing the way we compile some things. Funnily enough that issue doesn't actually affect the s2 :D.
I think we just need a single psram feature though, right? S2 doesn't support octal, and we already use all the available cache for s3 - I did a quick look and I don't think the opsram features are used anywhere else (other than where we will replace them).

I guess we need to keep both features - also ESP-IDF does this
    if(CONFIG_SPIRAM_MODE_QUAD)
        list(APPEND srcs "${target}/esp_psram_impl_quad.c")
    elseif(CONFIG_SPIRAM_MODE_OCT)
        list(APPEND srcs "${target}/esp_psram_impl_octal.c")
    endif()

We could just include both implementations and decide at runtime but a lot of that code needs to live in IRAM so I'm not sure that is the best option

Closed via #2178

Hello, I've been trying out the example psram_octal in the latest master on a ESP32-S3.
The example works perfectly, but if I change the speed of the PSRAM to 80 mhz in the following way, the execution gets past the PSRAM initialization but gets stuck inside init_psram_heap
`
let peripherals = esp_hal::init(esp_hal::Config::default());
let (start, size) = psram::init_psram(
peripherals.PSRAM,
psram::PsramConfig {
ram_frequency: esp_hal::psram::SpiRamFreq::Freq80m,
..Default::default()
},
);
// gets here
init_psram_heap(start, size);
// but not here
`
Should I change anything else and/or is this feature supported on all S3 or it also requires some support in the chip/board?
I'm using a ESP32-S3-WROOM-1-N16R8 if that matters


Reviewed and modified Credential Access Technique, Brute Force, and Brute Force subclasses

Edits will  indicate more precisely the main digital artifacts being accessed (here the passwords are tested by some means of trial and error.)  Result with defense-to-offense query from D3-SPP now results in new matches the the password-specific classes under Brute Force.

I believe this relates to #1 .


Add checksums to releases

I need it to verify the integrity of the libraries in sherpa-rs
https://github.com/wangzuo/action-release-checksums

Any thoughts regarding this issue? I can try contribute it.

Do you prefer dedicated action file for that, which will fetch all assets and upload final checksum

It is great if you can contribute.
Yes, we prefer this option. We can let GitHub Actions run it periodically, e.g., at 1:00 AM daily.
Also, we can enable it to run manually.

It is great if you can contribute.
Yes, we prefer this option. We can let GitHub Actions run it periodically, e.g., at 1:00 AM daily.
Also, we can enable it to run manually.

I created https://github.com/thewh1teagle/checksum
Any thoughts? we can easily add it

Is it possible to specify a tag to compute checksum for?
For instance, our current ASR models are saved in
https://github.com/k2-fsa/sherpa-onnx/releases/tag/asr-models
Also, is the resulting checksum.txt uploaded to the specified tag?

Also, can you remove the assets from the disk after computing the checksum?
There are many model files and I am afraid if they are not deleted after download, the disk would be full.

Also, can you remove the assets from the disk after computing the checksum?

I already did
https://github.com/thewh1teagle/checksum/blob/main/index.ts#L109

Is it possible to specify a tag to compute checksum for?

I'll add optional tag input

Also, is the resulting checksum.txt uploaded to the specified tag?

Yes


Actually publish macOS releases

A previous PR attempted to build macOS releases from an Ubuntu runner, which cannot possibly work.
I then attempted to do the whole build in a macOS runner, which also didn't work, as running Docker on macOS requires Docker Desktop.
This commit follows the agent's approach, using a build matrix to build macOS builds on a macOS runner and Linux builds on an Ubuntu runner, then publishing it from an Ubuntu runner in a separate job.

Merging this so I can try it out, but I would nonetheless appreciate any feedback on how it's done.


⚠ Bofrost.be has degraded performance

In bc69aef, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 2507 ms

Resolved: Bofrost.be performance has improved in 399ebc2.


Console hangs when lots of data is logged

Have a workaround in place, not ideal but ok for now

Going to close this for now


[Snyk] Security upgrade org.apache.jena:jena-core from 4.9.0-SNAPSHOT to 4.10.0

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to fix one or more vulnerable packages in the `maven` dependencies of this project.
Changes included in this PR

Changes to the following files to upgrade the vulnerable dependencies to a fixed version:

jena-arq/pom.xml

Vulnerabilities that will be fixed
With an upgrade:

Severity
Priority Score (*)
Issue
Upgrade
Breaking Change
Exploit Maturity

509/1000  Why? Has a fix available, CVSS 5.9
Improper Input Validation SNYK-JAVA-ORGAPACHECOMMONS-5901530
org.apache.jena:jena-core:  4.9.0-SNAPSHOT -> 4.10.0
No
No Known Exploit

(*) Note that the real score may have changed since the PR was raised.
Check the changes in this PR to ensure they won't cause issues with your project.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
🛠 Adjust project settings
📚 Read more about Snyk's upgrade and patch logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Improper Input Validation

Checkmarx One – Scan Summary & Details – e5fbf1ae-9542-4dd1-95ae-307984a56299
New Issues

Severity
Issue
Source File / Package
Checkmarx Insight

CVE-2023-36478
Maven-org.eclipse.jetty:jetty-http-10.0.15
Vulnerable Package

CVE-2023-43646
Npm-get-func-name-2.0.0
Vulnerable Package

CVE-2023-45133
<EMAIL_ADDRESS>Vulnerable Package

CVE-2023-36479
Maven-org.eclipse.jetty:jetty-servlets-10.0.15
Vulnerable Package

CVE-2023-40167
Maven-org.eclipse.jetty:jetty-http-10.0.15
Vulnerable Package

CVE-2023-42503
Maven-org.apache.commons:commons-compress-1.23.0
Vulnerable Package

CVE-2023-44270
Npm-postcss-8.4.21
Vulnerable Package


"newline" segment

This works only for POWERLEVEL9K_LEFT_PROMPT_ELEMENTS.
It can't work for the right-hand prompt (RPROMPT) because multi-line is handled
via terminal trickery (moving the cursor and restoring it).
This is against the next branch as requested by @bhilburn on #518
@bhilburn asked:

What happens if the user turns this on and also turns on PROMPT_ON_NEWLINE?
Can you file against next? ;)
We should be sure to add a bit about this to the Wiki once it is merged.
Is there any limit to the number of times you can use this segment in a prompt?

It works, but it doesn't have the appropriate ansi art in first two characters... Let me see if I can fix that.
Done!
👍 😃
Nope.  It works all you want, though it it can look silly. :smiley:

The newline segment will now show ├─ when using
POWERLEVEL9K_PROMPT_ON_NEWLINE
This can be overridden via POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX.

This is quite interesting. Thanks for that Idea!
I always thought about having an easy way to align segments not only horizontally, but also vertically. This is a way to do this on the left side. 👍
Btw. I suggest renaming MULTILINE_SECOND_PROMPT_PREFIX to MULTILINE_LAST_PROMPT_PREFIX (or similar). "Second" is not quite right in this context.

Thanks for another great PR, @docwhat! I appreciate the answers to my questions, and the updates / changes. I also liked @dritter's comment on the variable naming, so I made that change prior to merging.
This has been merged into next =)


[1.10.2] [Bug] Elytra can not be pulled from storage scanner

I made repairer from another mod, and then i linked it to storage scanner so I could repair items any where, but when repairing the I notice a bug I could not get it back though, storage scanner tablet, in Video 1, demonstrate this, but at this point though it mod incompatibly, so I tried taking using my storage system and that did work from the storage scanner tablet or storage scanner itself, Video 2

If helps same problem with the industrial craft MFSU.

I cannot reproduce this problem. Do you still have it with latest versions?

I will test it again when i get a chance, but Minecraft has not high on my priorities lately, and do not see my self doing so for at least a few week weeks.

I actually have been able to reproduce this with deep resonance crystals

I have noticed, other mod items it happening to, like I said above it may not be a bad idea to test on a server as that is what I had the original issue on, I find a lot of the bugs that I find may caused by me any a server, but do not think to mention and it seems most modders do not think to try and reproduce on a server.

Well I had it on my LP single player world so not server related

Well apparently the bug for the crystals was in Deep Resonance. It is fixed now. So that means I still cannot reproduce this. However, the bug with DR was related to DR removing some NBT client side only which means that RFTools could not find it in the scanner. I wonder if you have some kind of mod that also messes with client side NBT for items to add information or anything

Well i am using the pack All the mods, I have added The Earth Mod,  Translocators (this before they added to the pack), Better builders wands and mod of my own for alpha testing (does not do anything with NBT, only client side rendering at the moment), as which mod I think it is down, I can not say if i had the time I would look into seeing if any of the added something to the Elytra, in a few I will update the pack and see if I still happens, I guess if happen to item from another mod, I will have to open an issue with get them to remove client side NBT.


Fix README.md with correct versions

For some reason, the README.md file does not contain our current 8.x version number.

Wow - you can tell I've been out for a few days. We don't even use this repo anymore. Closing with prejudice.


Initial delivery of the org.oasis.spec.pdf plugin for dita-ot2.5.1

Here is the initial work for spec PDF.

Merged pull request that contains the spec PDF plugin.


Problems with reset task "cni0 IP alloction issue"

When I ran the playbooks, I got the following error:
TASK [cni0 IP alloction issue] *****************************************************************************************************************************************
 [WARNING]: Consider using file module with state=absent rather than running rm

fatal: [<IP_ADDRESS>]: FAILED! => {"changed": true, "cmd": "rm -rf /var/lib/cni/ /var/lib/kubelet/* /etc/cni/ ; ifconfig cni0 down; ifconfig flannel.1 down;", "delta": "0:00:00.013043", "end": "2017-05-10 17:28:35.196659", "failed": true, "rc": 255, "start": "2017-05-10 17:28:35.183616", "stderr": "cni0: ERROR while getting interface flags: No such device\nflannel.1: ERROR while getting interface flags: No such device", "stderr_lines": ["cni0: ERROR while getting interface flags: No such device", "flannel.1: ERROR while getting interface flags: No such device"], "stdout": "", "stdout_lines": []}
fatal: [<IP_ADDRESS>]: FAILED! => {"changed": true, "cmd": "rm -rf /var/lib/cni/ /var/lib/kubelet/* /etc/cni/ ; ifconfig cni0 down; ifconfig flannel.1 down;", "delta": "0:00:00.013907", "end": "2017-05-10 17:28:35.250606", "failed": true, "rc": 255, "start": "2017-05-10 17:28:35.236699", "stderr": "cni0: ERROR while getting interface flags: No such device\nflannel.1: ERROR while getting interface flags: No such device", "stderr_lines": ["cni0: ERROR while getting interface flags: No such device", "flannel.1: ERROR while getting interface flags: No such device"], "stdout": "", "stdout_lines": []}
fatal: [<IP_ADDRESS>]: FAILED! => {"changed": true, "cmd": "rm -rf /var/lib/cni/ /var/lib/kubelet/* /etc/cni/ ; ifconfig cni0 down; ifconfig flannel.1 down;", "delta": "0:00:00.018647", "end": "2017-05-10 17:28:35.273014", "failed": true, "rc": 255, "start": "2017-05-10 17:28:35.254367", "stderr": "cni0: ERROR while getting interface flags: No such device\nflannel.1: ERROR while getting interface flags: No such device", "stderr_lines": ["cni0: ERROR while getting interface flags: No such device", "flannel.1: ERROR while getting interface flags: No such device"], "stdout": "", "stdout_lines": []}
        to retry, use: --limit @/root/kubeadm-playbook/site.retry

I solved it by putting "ignore_errors: yes" to the task.

Thanks for raising. Fixed by commit 1aff09afa74f6b950fa6bc44ed1112c202adbd89


Don't autofocus the npm version dropdown

The npm version dropdown:

is focused when the page loads:
https://github.com/npm/documentation/blob/f8069dd5343aafd12550259f6c6ead0234141473/theme/src/components/variant-select.js#L66
This is user-hostile and prevents scrolling with spacebar when the page loads. If the intent was to make it easy to change the selected npm version with the keyboard (which seems a bizarre choice, frankly, I'm not sure I ever remember doing that, and other popular projects (e.g. the Python documentation) don't autofocus their version selector elements), it's misguided – whilst pressing space opens the dropdown, it's not then possible to navigate the dropdown with standard keyboard controls like the arrow keys (or, as far as I can tell, with any keyboard controls at all: pressing tab just moves focus to the ToC).
This was added in 4505fceab910de6aa3cb1346e05d229f564efcea, as part of #303.

          Thanks for all the hard work and patience on seeing this through!


Reformat docs

reformat markdown files
replace md2vim with panvimdoc

@kristijanhusak On my fork the document action does  not work because of wrong access token. To test the pipeline, it would be helpful if you could just push this branch to the nvim-orgmode repo (I don't have the permissions to do so).

Thanks @seflue ! I'm merging this in to see if it works fine. What are you using for formatting markdown?

Thanks @seflue ! I'm merging this in to see if it works fine. What are you using for formatting markdown?

Honestly, I'm not sure, which one kicks in, when I hit safe, but I guess it's prettier, which I am using via none-ls.

TBH I'm not really liking the output of the new docs. Table of content is messed up, there are no tags on each heading. I'll if I can do something to make it better.

I reverted doc generating back to md2vim until the doc file is migrated to org format.

TBH I'm not really liking the output of the new docs. Table of content is messed up, there are no tags on each heading. I'll see if I can do something to make it better.

I agree. To get it clean it would need some hand work on the Markdown. How the syntax is interpreted and tags are generated is documented, so there are good options but it would need work. Because you're aiming to migrate the Docs to Orgmode anyway, it makes absolute sense to defer the manual work to get the Orgmode right.
If you won't mind to give me permissions to push feature branches in nvim-orgmode, I would be happy to experiment a little bit. I would actually do it on my fork, but there are issues with GitHub tokens and GH Actions on forked repositories.

If you won't mind to give me permissions to push feature branches in nvim-orgmode

I'm not sure how to do that. You should be able to add your own GH token on your fork to make it work.
You can also use panvimdoc directly by cloning it and using an .sh file. That's how I tested it.


GRIP 2.3.1

Data available here https://gcdocs.gc.ca/statcan/llisapi.dll?func=ll&objId=31160476&objAction=browse&viewType=1

[ ] Contact SME to confirm the numbers and methodology

Remove source from French


Localisation/Translation

Hi ,
How does one get hold of the XLIFF file for the core app  , should I want to translate the app to my language?
tx,
gabor

See: https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-work-with-translation-files#translation-and-localization-apps


rsonpath: init at 0.3.2

Description of changes
https://github.com/v0ldek/rsonpath

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] 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/)
23.05 Release Notes (or backporting 22.11 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.

Result of nixpkgs-review pr 223333 run on x86_64-linux 1

1 package built:

rsonpath


Include owned Lockup accounts in balance breakdown

Overview
All NEAR Wallet users will have tokens in a lockup contract prior to Phase 2. We should include these tokens in Total Balance, and display the lockup amount as a line item on /profile.
The lockup contract will deployed with a predictable account name (e.g. users_account_name.lockup.near), and we can query that account to get the balance.
Acceptance Criteria
If a user's account owns a lockup account/contract

[ ] Lockup account's total balance is included in Total Balance
[ ] Lockup account's total balance is displayed on /profile as "Lockup Balance"
[ ] Lockup account's delegated balance is displayed on /profile as "Delegated Balance"
[ ] Mobile ok
[ ] Tested

e.g. users_account_name.lockup

it's going to be lockup.users_account_name given how our subaccounts work

it's going to be lockup.users_account_name given how our subaccounts work

Right, I was operating under the assumption we would deploy the contracts manually, as opposed to during the linkdrop and account creation process (which allows for subaccounts)

@kcole16 prototyped a little bit here:
https://github.com/near/near-wallet/pull/735 (tested only on betanet with hardcoded account name, will fix once testnet is ok)
However looks like we have far more balances to deal with:
/// The amount of tokens that were deposited to the staking pool.
/// NOTE: The actual balance can be larger than this known deposit balance due to staking
/// rewards acquired on the staking pool.
/// To refresh the amount the owner can call `refresh_staking_pool_balance`.
pub fn get_known_deposited_balance(&self) -> WrappedBalance;

/// The amount of tokens that are not going to be vested, because the vesting schedule was
/// terminated earlier.
pub fn get_terminated_unvested_balance(&self) -> WrappedBalance;

/// The amount of tokens missing from the account balance that are required to cover
/// the unvested balance from the early-terminated vesting schedule.
pub fn get_terminated_unvested_balance_deficit(&self) -> WrappedBalance;

/// Get the amount of tokens that are locked in this account due to lockup or vesting.
pub fn get_locked_amount(&self) -> WrappedBalance;

/// Get the amount of tokens that are already vested, but still locked due to lockup.
pub fn get_locked_vested_amount(&self) -> WrappedBalance;

/// Get the amount of tokens that are locked in this account due to vesting.
pub fn get_unvested_amount(&self) -> WrappedBalance;

/// The balance of the account owner. It includes vested and extra tokens that may have been
/// deposited to this account.
/// NOTE: Some of this tokens may be deposited to the staking pool.
/// This method also doesn't account for tokens locked for the contract storage.
pub fn get_owners_balance(&self) -> WrappedBalance;

/// The amount of tokens the owner can transfer now from the account.
pub fn get_liquid_owners_balance(&self) -> WrappedBalance;

Wonder which ones you think we should include in breakdown + what do we include in total balance? Like e.g. should unvested tokens be part of total balance?

@evgenykuzyakov is there any reason why every balance is returned as a separate view call? Seems like there is more sense to return contact status with single JSON object with all fields (saves significantly on number of RPC requests and so latency).

View calls are free right now, so it doesn't matter the way contract is written. From node perspective it's probably cheaper to do one more expensive call than multiple cheap ones, but if RPCs are parallelized towards different nodes, then you get the answer faster with parallel RPCs.
Still it's better to aggregate it into a single view call to avoid race conditions, but it will increase the size of the contract to have a separate serializable JSON structure for the output.

View calls are free

Network queries aren't free though. I guess if RPC can handle multiple requests in parallel then it's not a big issue as long as  endpoint supports HTTP2.

Wonder which ones you think we should include in breakdown + what do we include in total balance? Like e.g. should unvested tokens be part of total balance?

from Kendall:

Locked = total lockup balance - unvested balance - liquid owners balance
Unvested = unvested balance
Unlocked (can be withdrawn) = liquid owners balance

@evgenykuzyakov a second thought on this is – we don't really need actual JSON serde to implement this. Like you can just format a string substituting values into corresponding places.

@vgrichina Right. But it's a hack, and the increased size is not a big concern.


Float values loosing decimals on save when PDO::ATTR_EMULATE_PREPARES = true

Laravel Version: >= 5.3
PHP Version: 7.2
Database: mysql
This pull request contains a failing test which will showcase that when PDO::ATTR_EMULATE_PREPARES = true, float values are not saved correctly.
'mysql' => [
    //
    'options' => array(
        PDO::ATTR_EMULATE_PREPARES => true,
    ),
],

$product = new Product;
$product->price = 1.234; // this is saved as 1.000
$product->save()

All started with #16069. This change didn't cause much trouble back then, because php 7.2 were not released, and this behaviour only happens on these versions. On php 7.0 / 7.1 seems to work ok.
The code which is reposible for this behaviour is in MysqlConnection@bindValues. If the value is a float it is casted as PDO::PARAM_INT.
is_int($value) || is_float($value) ? PDO::PARAM_INT : PDO::PARAM_STR
At first glance the fix is simple, remove the || is_float($value), but I am sure Mohamed had strong reasons why it did that. He wanted to fix #16063, but there are no tests in that pull request #16069. so I don't know how big the impact will be if this is going to be reverted.
I don't have enough knowledge about the inner things in the framework and I let someone with enough expertise to review this and take proper actions.
Thanks!

What version of MySQL are you using? You shouldn't be emulating prepares on recent versions.


Need for aarch64 docker imags

Currently there are no defined Dockerfile.aarch64.  The arm builds run the docker build against the currently defined Dockerfiles, which do build.  Not sure if this is an issue.

Until now there is no need to have different dockerfiles for pc and aarch64. And it will be good if we can keep using the same dockerfile for both archs as long as possible.


Integrate battery level of electric car?

Hi Jonah,
first of all I am so glad that I found this repo! It solves many issues for me I have with the energy thing in home assistant! Danke!
What I just tried was this for my car: battery_percentage_entity: sensor.e_golf_battery_level
But unfortunately that did not work. I know, that the icon of the car would not support showing the percentage, but do you see a possible way here to display the battery level of the car? Changing the preset to battery works perfect, by the way.
Cheers,
Nils

Sorry for the delay. Yeah that will help in the first place, thank you! I think it is tooo early for me to plan enhancements ;)


Added NS incompressible and Euler equation. Also fixed tessellation, so now will work on windows via docker or pip

In some cases it is better to use incompressible NS and Euler equation uses way less memory

I fixed tessellation, so now will work on windows via docker or pip. I used mesh_to_sdf instead of pysdf

Looking forward for reviews, since our team cannot upgrade to modulus:23.05 due to missing pysdf library

Implemented all suggestions

I need to check the code when I get a chance, but how is this different from calling the Navier Stokes with a constant rho?

In classical CFD, for better results, incompressible form is used for low Mach numbers. I was able to achieve better results with an incompressible equation for PINNs than with a compressible equation but with constant rho

Just for the record I can’t review or merge your work.

If you can it would be good to have an example of your changes working. You could use the lid driven cavity for the incompressible formulation. I’m not sure if there is a compressible example with shockwaves to show off the Euler equations.

If you can it would be good to have an example of your changes working. You could use the lid driven cavity for the incompressible formulation. I’m not sure if there is a compressible example with shockwaves to show off the Euler equations.

Can you work via pip?

I fixed tessellation, so now will work on windows via docker or pip. I used mesh_to_sdf instead of pysdf

Added  incompressible NS and fixed tessellation，Can the aneurysm.py file run？

I fixed tessellation, so now will work on windows via docker or pip. I used mesh_to_sdf instead of pysdf

e.g  modulus-sym/examples/geometry/tessellated_example.py

I fixed tessellation, so now will work on windows via docker or pip. I used mesh_to_sdf instead of pysdf

e.g modulus-sym\examples\geometry\tessellated_example.py

I fixed tessellation, so now will work on windows via docker or pip. I used mesh_to_sdf instead of pysdf

e.g modulus-sym\examples\geometry\tessellated_example.py your fixed tessellation can work, but the following warning appears. /modulus/sym/geometry/tessellation.py:179: RuntimeWarning: divide by zero encountered in divide np.full(x.shape, triangle_areas[index] / x.shape[0])

It appears on on regular tessellation too. This warning can be ignored

Hi @chaous , sorry for the delay in getting attention to this PR. Thanks for the contribution! Can we split this PR into two? One that adds equations and the other that adds changes to tessellation? Reviewing the tessellation might take some time, but we can get the equations added much sooner. Also, if you can add an example to go along with your equation additions that can demonstrate potential speed-up/improvement in accuracy, that would be helpful.

Hi @chaous , sorry for the delay in getting attention to this PR. Thanks for the contribution! Can we split this PR into two? One that adds equations and the other that adds changes to tessellation? Reviewing the tessellation might take some time, but we can get the equations added much sooner. Also, if you can add an example to go along with your equation additions that can demonstrate potential speed-up/improvement in accuracy, that would be helpful.

I split my pull request into two and added examples
Equations https://github.com/NVIDIA/modulus-sym/pull/142
tessellation https://github.com/NVIDIA/modulus-sym/pull/143


Add all of our new friends!!!!

it seems that manus has been duplicated :(

fake manus is gone, lets get this meeerrrrrgeeeeddddddd!!!!!!!!


PROGRAMMING LANGUAGES- PYTHON-ADDED PYTHON PROJECTS SECTION

Description:
It looks forward to cover projects in beginner, intermediate and advance level a user can show to build up his resume. It will cover project topics like:
Calculator
chatbot
machine learning model
banking system
and many more
Resource URL:

Insert the URL of the resource you're proposing

https://realpython.com/build-a-chatbot-python-chatterbot/
https://www.geeksforgeeks.org/real-time-translation-app-using-python/
https://github.com/topics/python-blockchain

Checklist:
Before submitting your pull request, ensure that you have completed the following tasks:

[x] I have carefully reviewed and adhered to the contributing guidelines before creating this pull request.
[x] I followed the prescribed PR title template. (Check this if you're adding a resource)

Kindly review this PR and label it under GSSoC @jfmartinz. Refers to issue number #401

@jfmartinz All mentioned changes have been updated. Please review this PR and merge it.

@jfmartinz All mentioned changes have been updated. Please review this PR and merge it.


Unable to build profile. There is a conflict [cinnamon, 24.05]

Steps To Reproduce
Steps to reproduce the behavior:

nix-env -iA nixpkgs.cinnamon

Build log
error: Unable to build profile. There is a conflict for the following files:
         /nix/store/7vqs7f3mgs8vy4wy87rmpd1d3lbj33z4-nemo-emblems-6.2.1/lib/python3.12/site-packages/nemo_emblems-6.2.1.dist-info/RECORD
         /nix/store/9qv171y28k4g5pzzlcfkvz437a2ki33j-nemo-with-extensions-6.2.6/lib/python3.12/site-packages/nemo_emblems-6.2.1.dist-info/RECORD
error: builder for '/nix/store/xpw79v886g224nwfg3n42vq1192z8rad-user-environment.drv' failed with exit code 1

Additional context
When running the installation command, Nix is unable to build the profile due to conflicts between those two packages.
Additionally, this issue is also reproducible on other DE packages such as: gnome,xfce
This issue might not be reproducible on NixOS, But is reproducible on any non-native Nix installations.
Metadata
[vak@deniz1 ~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.41-1-lts, Arch Linux, noversion, rolling`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.23.3`
 - channels(root): `"home-manager, nixgl, nixpkgs"`
 - nixpkgs: `/home/vak/.nix-defexpr/channels/nixpkgs`

cinnamon is not a package - it is a set, thought removed on current unstable
So you probably want cinnamon-common on unstable or cinnamon.cinnamon-common on 24.05 (or older unstable).
Same with gnome and xfce, you can check on search.nixos.org:
https://search.nixos.org/packages?channel=unstable&from=0&size=50&sort=relevance&type=packages&query=gnome
https://search.nixos.org/packages?channel=unstable&from=0&size=50&sort=relevance&type=packages&query=xfce


Mb/refactor/349-global-constants

All global constants are now at a single location. The moved constants kept their original "HIDDEN_SYMBOL" status.
Close #349
Dependency

[x] PR #327

@t-b @MichaelHuth Ready for Review


poetry run db-reset issue

Running setup.py using Python 3.8.5 on MacOS 12.6.5 fails on "poetry run db-reset"

(base) davidlumpkin@Davids-MacBook-Pro GPTeam % python setup.py
Poetry is already installed.
Installing dependencies...
Installing dependencies from lock file
No dependencies to install or update
Installing the current project: 101-ai (0.1.0)
Seed the database...
Traceback (most recent call last):
File "", line 1, in
File "/Users/davidlumpkin/anaconda3/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 783, in exec_module
File "", line 219, in _call_with_frames_removed
File "/Users/davidlumpkin/src/GPTeam/src/utils/database/reset.py", line 8, in
from .seed import seed
File "/Users/davidlumpkin/src/GPTeam/src/utils/database/seed.py", line 5, in
from src.utils.database.base import Tables
File "/Users/davidlumpkin/src/GPTeam/src/utils/database/base.py", line 22, in
class DatabaseProviderSingleton(AbstractSingleton):
File "/Users/davidlumpkin/src/GPTeam/src/utils/database/base.py", line 24, in DatabaseProviderSingleton
async def get_by_id(self, table: Tables, id: str) -> list[dict[str, Any]]:
TypeError: 'type' object is not subscriptable
Traceback (most recent call last):
File "setup.py", line 66, in
subprocess.run(["poetry", "run", "db-reset"], check=True)
File "/Users/davidlumpkin/anaconda3/lib/python3.8/subprocess.py", line 512, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['poetry', 'run', 'db-reset']' returned non-zero exit status 1.
(base) davidlumpkin@Davids-MacBook-Pro GPTeam % python --version
Python 3.8.5

This is because you are running Python 3.8 which does not include support for subscriptable types.
I'll update the pyproject.toml to require Python >=3.9, but for now, upgrading to Python 3.9 should fix this issue.


Remove obsolete memory cost example

Description
This removes an inaccurate example for showing memory usage.
fixes - https://github.com/apache/incubator-mxnet/issues/6272
In the next step, will add GLUON based example for memory profiling. Created below tracking issue.
https://github.com/apache/incubator-mxnet/issues/13233
Checklist
Essentials
Please feel free to remove inapplicable items for your PR.

[X] Changes are complete (i.e. I finished coding on this PR)
[X] To my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

Changes

Remove inaccurate example
Remove reference to this example from the web page.

@eric-haibin-lin

@mxnet-label-bot add [pr-awaiting-review]

will the proposed example in gluon be different from what is demonstrated here - https://www.youtube.com/watch?v=n8tN6pRZBdE ?

@mxnet-label-bot update [pr-awaiting merge]

@nswamy


Federated Credentials

Fixes #6828
At the moment, this ONLY works on the Microsoft tenant.

Deploy multi or single tenant bot (eg, ARM templates or manually)
Create ManagedIdentity, record the Client ID and the Object ID
Add ManagedIdentity to the App Service "Identity" tab
In App Registration, under "Certificates & secrets", add a new Federated Credential

Scenario is "Other issuer"
Issuer:  "https://login.microsoftonline.com/{tenantId}/v2.0"
Subject: {msi-object-id}

In appsettings, update:

MicrosoftAppType: {SingleTenant | MultiTenant}
MicrosoftAppId: {app-id}
MicrosoftAppClientId: {msi-client-id}
MicrosoftAppTenantId: {tenantid-for-singletenant-only}

In Startup.cs, add:
services.AddSingleton<ServiceClientCredentialsFactory>(
    new FederatedServiceClientCredentialsFactory(_configuration["MicrosoftAppId"], _configuration["MicrosoftAppClientId"], _configuration["MicrosoftAppTenantId"]));

There will need to be a follow-on PR/commit to integrate this with ConfigurationServiceClientCredentialFactory to make it config based.

:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Connector.dll

:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Connector.dll

Confirmed to be only available on the Microsoft tenant.  Future support for non-MS tenants unknown.

:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Connector.dll

@tracyboehrer it turns out that the Teams.AI library is hardcoded to use the ConfigurationServiceClientCredentialFactory:
https://github.com/microsoft/teams-ai/blob/main/dotnet/packages/Microsoft.TeamsAI/Microsoft.TeamsAI/Application/TeamsAdapter.cs#L58
I'll post an issue in their repo to make this customizable, but any ETA on the follow up PR to pull in config? Either one of these would unblock me. Thanks!


Remove unneeded check for CHAR_BIT

Reference:
    limits.h - implementation-defined constants

    Numerical Limits
        {CHAR_BIT} Number of bits in a type char.

--- http://pubs.opengroup.org/onlinepubs/009695399/basedefs/limits.h.html
There is no such file as sys/limits.h in NetBSD.

Hi @krytarowski, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
The agreement was validated by .NET Foundation and real humans are currently evaluating your PR.
TTYL, DNFBOT;

Could you please delete this config switch instead? It is not used in CoreRT today, and unlikely to be ever needed.
(We have issue #445 about cleaning up the config switches once the CoreRT PAL is finished.)

Done!

Could you please delete it in 'config.h.in` too?

Done!


Add RDSTLS security protocol

Hi!
I've finally implemented RDSTLS security protocol.
I've tested and works in:

FreeRDP server - mstsc client
RDP Windows Server - FreeRDP client
FreeRDP server - FreeRDP client

I should check what other clients support RDSLTS.

@freerdp-bot test

@jotolo2 looks like you should run git clang-format on your changes, the pr tester complains about that

@freerdp-bot test this please

@hardening regarding the state machine and the callstack, what's the part you don't like and how could I improve it?

@jotolo2 looks like we did both check the remaining issues at the same time. did do a few improvements here:  https://github.com/akallabeth/freerdp/tree/rdstls that does a little refactoring and state transition checks along with better logging. If you like it you can merge it here.

@freerdp-bot test please

@jotolo2 I´ve rebased my changes on top of your pr, will be pushing the commits to this. @hardening then it should be ready to merge.

@freerdp-bot test


After latest update, cannot Install on PHP 7.x

I try instal on my Laravel Project with php 7.x
Error message:
Cannot use vinkla/hashids's latest version 11.0.0 as it requires php ^8.1 which is not satisfied by your platform.
It run correctly about a month ago.

You need to install a previous version.


Bump guice-bootstrap to v0.3.0 released in Maven Central

Now, guice-bootstrap has been released in Maven Central: https://github.com/embulk/guice-bootstrap/pull/6 It's cleaner to use only mavenCentral() not depending on jcenter().
@sakama Can you have a look?

Merging this for v0.9.8, then. Thanks!


How to change back for the free plan before next invoice payment date?

@dayouyang My Subscription (lower left corner of app) > Manage Subscription button > Cancel the subscription.
You can use till end of month, then it will not renew.


CLI: Error Messaging for JWT issues

As a user I would like to like to see useful, meaningful error messaging when deploying an API with jwt extension issue.
UX Design:
https://www.figma.com/file/EkNk9tMEoAgYrwGP7N1dPm/Kusk-CLI?node-id=401%3A389&t=3REgBKYW6djbSu1s-4

@jasmingacic Can you look at the error messaging and see if it covers what we discussed? Thanks!


Introducing anelasticity corrections for P wave speeds.

Pull Request: Add P-Anelastic Correction and Update Plotting
Summary
This PR introduces a P-anelastic correction model by extending the anelasticity framework. Key updates:

Added Q_mu and Q_kappa to calculate Q_s_wave and Q_p_wave with equations and references.
Updated the example script to plot P-wave model changes.

Changes
1. Anelastic Correction

New Parameters: Q_mu (shear attenuation) and Q_kappa (bulk attenuation).
Equations:

( Q_s = Q_\mu )
( Q_p = \frac{(4/3)\mu + \kappa}{(4/3)\mu / Q_\mu + \kappa / Q_\kappa} )

Integrated Q-value interpolation in compute_swave_speed and compute_pwave_speed.

2. Example Updates

Added plots for P-wave velocity changes due to anelastic corrections.
Enhanced plot labels and legends for clarity.

This looks really good to me. I made some minor comments on the code. In the example, I think it's important to emphasize that you are using model Q1 of Cammarano.
One other thing that would be nice moving forward, but is not necessary for this pull request -- the ability to pick a set of parameter values, without having to put them in individually (e.g. models Q1, Q4, or Q6 from Cammarano / Goes).
I will ask @HainingChang to test this further this week and report back, but to me it looks good to go.

The recent edits to include the Cammarano parameter values (I checked and these are all correct) are nice and make this much more user friendly. As @tom-new has tested this, and a few minor bugs have been fixed, I'd say this is once again good to go.

@drhodrid I think it would be even nicer for the end-user if we implement the Cammarano parameter values as part of the CammaranoAnelasticityModel class itself, as an additional constructor which can just be passed the name of the Q-model as a string. This would save the user from having to construct the parameters themselves. I can submit a PR for this as well soon™, since I'm doing this anyway for the Goes parameters/equations in my attempt to comare the two papers.

Thanks @drhodrid and @tom-new. I'll merge now and then continue to include Tom's suggestions. There will be a new PR soon on linearisation.


Problem at Tensorflow/Model/Compression

What related GitHub issues or StackOverflow threads have you found by searching the web for your problem?
https://github.com/tensorflow/tensorflow/issues/4772
tensorflow/models/compression does not work,but his problem was not same to me.
Environment info
Operating System:
Ubuntu 14.04
tensorflow cpu-only version:0.8.0
If possible, provide a minimal reproducible example (We usually don't have time to read hundreds of lines of your code)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/common_shapes.py", line 155, in get2d_conv_output_size
% (row_stride, col_stride, filter_height, filter_width))
ValueError: ('stride must be less than or equal to filter size', 'stride: [2x2] filter: [1x1]')
What other attempted solutions have you tried?
I have open the common_shapes.py,but don't know how to repair.

Please can you report this issue in the tensorflow/models repository, clearly labelling the issue '[Compression]' and providing sufficient information to reproduce (e.g. at least OS version, TensorFlow version and all necessary command lines)


Fixed rst formatting to show build directions

Thanks :)

My team is starting to look at building a windows app for it and contributing back. Any suggestions?

David

On Jul 17, 2015, at 6:49 PM, Gavin M. Roy<EMAIL_ADDRESS>wrote:
Thanks :)
—
Reply to this email directly or view it on GitHub.


[otp_ctrl] Move to D2S

This should not be merged before #10473 has landed.

This is now up for review.

Thanks everyone for helping to get this to D2S - merging!


[ASK] SLi Rec model doesn't improve on training.

Description

I tried running the quick start Notebook provided here on my local machine. As far as I could tell, I had all the necessary training files required for the model. However, at the end of 10 epochs, the model only achieved an AUC score of ~0.5 after starting from ~0.49. I don't really understand why this is happening. The only factor I can think of that might cause issues is that I'm using Tensorflow for M2 Macs, and I understand that there are some issues with it. But other than this, I'm pretty stuck. Any help would be appreciated.
Other Comments
Here's the output from the model training:
2023-08-14 10:47:23.473809: I tensorflow/core/grappler/optimizers/custom_graph_optimizer_registry.cc:114] Plugin optimizer for device_type GPU is enabled.
step 20 , total_loss: 1.5846, data_loss: 1.5846
step 40 , total_loss: 1.3459, data_loss: 1.3459
eval valid at epoch 1: auc:0.493,logloss:0.6977,mean_mrr:0.44,ndcg@2:0.3008,ndcg@4:0.4984,ndcg@6:0.577,group_auc:0.482
step 20 , total_loss: 0.5859, data_loss: 0.5859
step 40 , total_loss: 0.3387, data_loss: 0.3387
eval valid at epoch 2: auc:0.4896,logloss:0.5833,mean_mrr:0.446,ndcg@2:0.3092,ndcg@4:0.4981,ndcg@6:0.5814,group_auc:0.4836
step 20 , total_loss: 0.1450, data_loss: 0.1450
step 40 , total_loss: 0.0671, data_loss: 0.0671
eval valid at epoch 3: auc:0.4984,logloss:0.5172,mean_mrr:0.4526,ndcg@2:0.3202,ndcg@4:0.5088,ndcg@6:0.5865,group_auc:0.494
step 20 , total_loss: 0.0591, data_loss: 0.0591
step 40 , total_loss: 0.0373, data_loss: 0.0373
eval valid at epoch 4: auc:0.4955,logloss:0.512,mean_mrr:0.451,ndcg@2:0.3171,ndcg@4:0.5068,ndcg@6:0.5853,group_auc:0.4933
step 20 , total_loss: 0.0432, data_loss: 0.0432
step 40 , total_loss: 0.0255, data_loss: 0.0255
eval valid at epoch 5: auc:0.5046,logloss:0.7092,mean_mrr:0.4623,ndcg@2:0.3324,ndcg@4:0.5199,ndcg@6:0.594,group_auc:0.5067
step 20 , total_loss: 0.0106, data_loss: 0.0106
step 40 , total_loss: 0.0288, data_loss: 0.0288
eval valid at epoch 6: auc:0.4986,logloss:3.6601,mean_mrr:0.4512,ndcg@2:0.3187,ndcg@4:0.5119,ndcg@6:0.5857,group_auc:0.4982
step 20 , total_loss: 0.0159, data_loss: 0.0159
step 40 , total_loss: 0.0096, data_loss: 0.0096
eval valid at epoch 7: auc:0.4913,logloss:0.5893,mean_mrr:0.4509,ndcg@2:0.3208,ndcg@4:0.5024,ndcg@6:0.5852,group_auc:0.49
step 20 , total_loss: 0.0285, data_loss: 0.0285
step 40 , total_loss: 0.0048, data_loss: 0.0048
eval valid at epoch 8: auc:0.5065,logloss:0.5384,mean_mrr:0.461,ndcg@2:0.3337,ndcg@4:0.5198,ndcg@6:0.5931,group_auc:0.5088
step 20 , total_loss: 0.0056, data_loss: 0.0056
step 40 , total_loss: 0.0060, data_loss: 0.0060
eval valid at epoch 9: auc:0.5133,logloss:0.8202,mean_mrr:0.4725,ndcg@2:0.3499,ndcg@4:0.529,ndcg@6:0.6018,group_auc:0.5189
step 20 , total_loss: 0.0055, data_loss: 0.0055
step 40 , total_loss: 0.0129, data_loss: 0.0129
eval valid at epoch 10: auc:0.5015,logloss:0.5818,mean_mrr:0.4608,ndcg@2:0.3305,ndcg@4:0.5154,ndcg@6:0.5928,group_auc:0.5038
[(1, {'auc': 0.493, 'logloss': 0.6977, 'mean_mrr': 0.44, 'ndcg@2': 0.3008, 'ndcg@4': 0.4984, 'ndcg@6': 0.577, 'group_auc': 0.482}), (2, {'auc': 0.4896, 'logloss': 0.5833, 'mean_mrr': 0.446, 'ndcg@2': 0.3092, 'ndcg@4': 0.4981, 'ndcg@6': 0.5814, 'group_auc': 0.4836}), (3, {'auc': 0.4984, 'logloss': 0.5172, 'mean_mrr': 0.4526, 'ndcg@2': 0.3202, 'ndcg@4': 0.5088, 'ndcg@6': 0.5865, 'group_auc': 0.494}), (4, {'auc': 0.4955, 'logloss': 0.512, 'mean_mrr': 0.451, 'ndcg@2': 0.3171, 'ndcg@4': 0.5068, 'ndcg@6': 0.5853, 'group_auc': 0.4933}), (5, {'auc': 0.5046, 'logloss': 0.7092, 'mean_mrr': 0.4623, 'ndcg@2': 0.3324, 'ndcg@4': 0.5199, 'ndcg@6': 0.594, 'group_auc': 0.5067}), (6, {'auc': 0.4986, 'logloss': 3.6601, 'mean_mrr': 0.4512, 'ndcg@2': 0.3187, 'ndcg@4': 0.5119, 'ndcg@6': 0.5857, 'group_auc': 0.4982}), (7, {'auc': 0.4913, 'logloss': 0.5893, 'mean_mrr': 0.4509, 'ndcg@2': 0.3208, 'ndcg@4': 0.5024, 'ndcg@6': 0.5852, 'group_auc': 0.49}), (8, {'auc': 0.5065, 'logloss': 0.5384, 'mean_mrr': 0.461, 'ndcg@2': 0.3337, 'ndcg@4': 0.5198, 'ndcg@6': 0.5931, 'group_auc': 0.5088}), (9, {'auc': 0.5133, 'logloss': 0.8202, 'mean_mrr': 0.4725, 'ndcg@2': 0.3499, 'ndcg@4': 0.529, 'ndcg@6': 0.6018, 'group_auc': 0.5189}), (10, {'auc': 0.5015, 'logloss': 0.5818, 'mean_mrr': 0.4608, 'ndcg@2': 0.3305, 'ndcg@4': 0.5154, 'ndcg@6': 0.5928, 'group_auc': 0.5038})]
best epoch: 9
Time cost for training is 52.33 mins

It seems it is not learning, you should see the logloss going down consistently, like in the notebook: https://github.com/recommenders-team/recommenders/blob/main/examples/00_quick_start/sequential_recsys_amazondataset.ipynb
A lot of the times, this error comes because either the data is not set right or the data has no signal. I would recommend to start from the current example in the repo and replace with the data you have until you get a reducing loss.


Revert "darwin: speed up uv_set_process_title()"

This reverts commit 038eacf.
It was reported that this change causes a regression when trying
to obtain the screen resolution with CGDisplayPixelsWide() or
CGDisplayPixelsHigh() after changing the process title.
This is the second time this change had to be reverted due to
regressions and, although third time is allegedly the charm,
leaving well enough alone is the proverb I plan to adhere to...
Fixes: #2566
CI: https://ci.nodejs.org/job/libuv-test-commit/1657/

Let's see what halving the iteration count does: https://ci.nodejs.org/job/libuv-test-commit/1659/

mac CI is green!

Thanks all for reviewing, landed in f0923d02...d077d066.


Update Linux icon

Hey folks, I navigated here from a azure devops build warning and noticed the icon for linux was an ubuntu icon.  Thought it might be a bit more appropriate to give ambassador tux some love in this situation.
Let me know what you think!
Chris

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

I actually think I like having the Ubuntu icon since the flavor of Linux we're using is Ubuntu - so it adds more info rather than less.


find a good way to verify MUD contracts on etherscan etc

MUD Worlds are essentially proxies for logic implemented in System contracts.
Systems are upgradable, so it's hard to "statically verify" that a certain function selector maps to a certain system contract, but at least we could verify all individual contracts

I explored this topic and successfully verified the emojimon contracts (World, MapSystem, etc.) on Blockscout, so I'll compile my notes here.
Contract verification is a feature of block explorers that allows the viewing of Solidity code and function signatures of deployed contracts. The most used explorers, Etherscan and Blockscout, have compatible verification APIs, allowing us to submit contract information.
The block explorers lack support for proxy contracts that delegate to multiple logic contracts, such as MUD Worlds and the Diamond standard. Thus, scenarios like calling a system contract through a world contract are not nicely displayed, even if they're verified. However, this is still beneficial for contract transparency. (There is an interesting hack to display function signatures on Etherscan for multiple logic contracts, but it requires deploying a mock contract.)
To verify contracts of MUD projects, forge's verification feature is the first choice because forge builds the contracts and manages the file structure. forge offers two methods for contract verification: 1) deploying and verifying a contract together within the same command (forge create and forge script with the --verify option), and 2) verifying a contract separately (forge verify-contract). Since MUD doesn't rely on forge for contract deployment, the latter is more appropriate.
forge verify-contract requires a contract name/identifier and deployed address. We can use a TypeScript script to create the list of a contract name and the address and invoke the forge command for each contract. It would be beneficial to integrate this work as a MUD CLI command.
forge has an issue with its contract verification feature for our use case, but I've fixed it in the foundry repository, so it will be resolved.


Storybook addon-docs and Figma images

Is your feature request related to a problem? Please describe.
I want to add Figma images, just images, like any other images, into MDX files that are used for documentation purposes (using addon-docs). To do so, I would like to contribute a new docs block. But I need help, please!
The goal is to pass a custom JSX tag into my Storybook docs MDX file and see an image generated by Figma directly.
Describe the solution you'd like

Using figma-js.
import React from 'react';
import { FileImageResponse } from 'figma-js';

function getMetadata(url: string) {
	const parsedUrl = new URL(url);
	return {
		projectId: parsedUrl.pathname.split('/')[2],
		nodeId: parsedUrl.searchParams.get('node-id'),
	};
}

const FigmaImage = ({
	src,
	alt = '',
	...rest
}: React.ImgHTMLAttributes<HTMLImageElement>) => {
	const figma = React.useContext(FigmaContext);

	const [fileImageResponse, setFileImageResponse] = React.useState<FileImageResponse>();

	React.useEffect(() => {
		if ('serviceWorker' in navigator) {
			window.addEventListener('load', () => {
				navigator.serviceWorker.register('/figma-image-sw.js').then(
					registration => {
						console.log('[FigmaImage] ServiceWorker registration successful with scope: ', registration.scope);
					},
					err => {
						console.log('[FigmaImage] ServiceWorker registration failed: ', err);
					},
				);
			});
		} else {
			console.log('[FigmaImage] Service workers are not supported.');
		}
	}, []);

	React.useEffect(() => {
		if (src) {
			const { projectId, nodeId } = getMetadata(src);
			figma
				.fileImages(projectId, {
					ids: [nodeId || ''],
				})
				.then(({ data }) => setFileImageResponse(data))
				.catch(reason => {
					console.error(
						'[FigmaImage] Verify that you configured STORYBOOK_FIGMA_ACCESS_TOKEN correctly!',
						reason,
					);
				});
		}
	}, [src, figma]);

	if (!fileImageResponse) {
		return Fetching Figma data...;
	}

	return Object.values(fileImageResponse.images).map((image: string, index: number) => (

	));
};

export { FigmaImage };

where FigmaContext.tsx is
import React from 'react';
import * as Figma from 'figma-js';

const token = process.env.STORYBOOK_FIGMA_ACCESS_TOKEN;

export default React.createContext({
	...Figma.Client({
		personalAccessToken: token,
	}),
});

and the service worker, figma-image-sw.js :
const CACHE_NAME = 'cache-or-figma';

const FIGMA_BASEURL = 'https://api.figma.com';

self.addEventListener('fetch', event => {
	if (event.request.method === 'GET' && event.request.url.startsWith(FIGMA_BASEURL)) {
		console.info(`[${CACHE_NAME}] The service worker is serving the Figma assets`, event);

		event.respondWith(
			caches.open(CACHE_NAME).then(
				cache =>
					console.debug(`[${CACHE_NAME}] Get Figma asset from cache`, event.request.url) ||
					cache.match(event.request).then(match => match || fetch(event.request)),
			),
		);

		event.waitUntil(
			caches.open(CACHE_NAME).then(cache =>
				fetch(event.request).then(response =>
					cache.put(event.request, response.clone()).then(
						() =>
							console.debug(
								`[${CACHE_NAME}] Async get Figma assets from network`,
								event.request.url,
							) || response,
					),
				),
			),
		);
	}
});

Then I would like to add this piece of code to the README of the repo:
3. Add it to docs!
import { Meta } from '@storybook/addon-docs';
import FigmaImage from "storybook-addon-designs/blocks/FigmaImage";

<Meta title="Button" />

# Button

Buttons are interactive elements used by users as clickable actions.

<FigmaImage src="https://www.figma.com/file/LKQ4FJ4bTnCSjedbRpk931/Sample-File?node-id=12345" />

Describe alternatives you've considered
Don't want to create a new addon for that.
Design types

[ ] figma
[ ] figspec
[ ] link
[x] image
[ ] iframe

type: "figspec" already does the job: it fetches design spec as images then renders them.
However considering your requirements, I believe creating a simple React component (FigmaImage in your code example) then importing it from docs page is the simplest and cleanest solution. You do not need an addon for using custom component inside docs pages.
https://storybook.js.org/docs/react/writing-docs/docs-page#with-a-custom-component


Expose ActiveQuery->getQueryTableName()

Can this method be exposed so it can be used in extended ActiveQuery classes.
Would allow you to easily use table aliases.
class ExtraQuery extends ActiveQuery
{
    //...
    public function extraColumn()
    {
        list(, $tableName) = $this->getQueryTableName($this);
        $this->addSelect("$tableName.column");
        return $this;
    }
    //...
}

Agreed. Im also for exposing getters like ->getQueryTableName() to be protected.
With respect to getQueryTableName($query), this should be even be refactored without $query as argument.
    private function getQueryTableName($query)
    {
        if (empty($query->from)) {
            /* @var $modelClass ActiveRecord */
            $modelClass = $query->modelClass;
            $tableName = $modelClass::tableName();
        } else {
            $tableName = '';
            foreach ($query->from as $alias => $tableName) {
                if (is_string($alias)) {
                    return [$tableName, $alias];
                } else {
                    break;
                }
            }
        }

        if (preg_match('/^(.*?)\s+({{\w+}}|\w+)$/', $tableName, $matches)) {
            $alias = $matches[2];
        } else {
            $alias = $tableName;
        }

        return [$tableName, $alias];
    }

I was thinking that too,
private function getQueryTableName($query = null)
{
    $query = $query ?: $this;
    //...
}

I yet dont understand why this is done with $query as a parameter. Its in the same class ActiveQuery so why isnt $this used?

It's used in joinWithRelation
https://github.com/yiisoft/yii2/blob/master/framework/db/ActiveQuery.php#L606
https://github.com/yiisoft/yii2/blob/master/framework/db/ActiveQuery.php#L607

why isnt that done by:
$parent->getQueryTableName();

Am I missing something?

I will do a PR

closed in favor of https://github.com/yiisoft/yii2/pull/10253


Support for pluggable backend storage

Currently Karapace requires a Kafka cluster for storing schemas. While the topic name can be changed, it creates management / mapping overhead in cases where multiple schema registries are needed, or when schemas are needed outside Kafka, or when dealing with limited HW resources.
Suggestion is to abstract backend storage details and allow different storage plugins to be developed (e.g. relational DB or k/v store).

The https://github.com/Aiven-Open/karapace/blob/main/karapace/in_memory_database.py has an API that can be extended for pluggable backend.
The API can be extracted to abstract base class. The point where some extra care is required is the get_schema_id function, when relational database can provide monotonically increasing identifier. Also some locking that protects the schema id generation can also be removed when using database as storage.


Incorrect work Zend_Date::getTime

Zend_Date::getTime() for default constructor return current time and date for 1 Jan 1970. But I think it should return current date too.
Tested on last release and PHP 7.4.20
Code for reproduce
<?php

require('vendor/autoload.php');

$now = new Zend_Date();

echo($now->getTime());
echo("\n");
echo(date("c"));
echo("\n");

Output
Jan 1, 1970 12:12:49 PM
2021-06-11T12:12:49+00:00

The way the date part accessor methods  work in ZendDate is unusual in that they reset all parts of the date other then the requested part to January 1, 1970 and return the full date, but the behavior is definitely intentional, this is not a bug. I am not sure WHY it was designed this way, there is nothing in Zend_Date itself or elsewhere in the framework that depends on this as far as I can tell. My guess is that it could potentially make comparisons of date parts easier. For instance, if you wanted to know the difference between events on different days in terms of time of day, say 3:00 yesterday and 3:15 the day before should result in 15 minutes, this approach would make that easier. But you would probably be better off using DateTime and DateInterval for that kind of thing. I get the feeling that a lot of the code in Zend_Date may have been written before DateTime was introduced, so it tries to do a lot of the same things, just not as well.
I don't think that changing the Zend_Date::getTime() to return the current date makes sense, because you would logically then need to change the other part accessors to work the same way, and then they would all return exactly the same thing, a full representation of the current date, which makes even less sense that it does now. I think that if a change were to be made (and I do not think that any changes should be made here), the part accessors should be changed to only return the requested date part, which would be much more intuitive. However this could potentially be a breaking change for users who depend on the current behavior, and I don't see much benefit, given PHP's ample date manipulation facilities.
It's interesting that the documentation does not even mention these methods, it's almost as if they were intended for a purpose that was never implemented.
@pwsdotru  for your specific purposes, if you really want to use Zend_Date, the Zend_Date::get() method is probably what you should use.
<?php

$now = new Zend_Date();

// Get current time
echo $now->get("HH:mm:ss").PHP_EOL;

// Get current ISO 8601 using Zend_Date
echo $now->get("c").PHP_EOL;

// Get current ISO 8601 using Zend_Date convenience method
echo $now->getIso().PHP_EOL;

// Get current ISO 8601 date using PHP date
echo date("c").PHP_EOL;

Output:
10:35:06
2021-06-11T10:35:06-04:00
2021-06-11T10:35:06-04:00
2021-06-11T10:35:06-04:00


C# added

Interesting course! However, is there a C# tutorial for people who already had some experience in programming?


Track additional external validators in lodestar

@tuyennhv If I understand the goal is to track additional validators outside of the regular keys we run. To achieve the same we could modify the beacon node to:

Provide a list of indexes to track as a BeaconNodeOptions argument. This indexes will be always tracked regardless of calls to prepareBeaconCommitteeSubnet. Then the beacon cli arg could read this indexes from a CLI arg, or from a file.
Add a new debug or lodestar API endpoint where you pass a list of indexes and a number of epochs to track them, including infinite. We can also add another endpoint to remove indexes.

This approaches will prevent having to modify the validator package. Also since it's very simple to trigger then we won't need another CLI arg. The current name is a bit confusing tho since it's really a "trigger validatorMonitor" instead of just "validatorMonitor"
Originally posted by @dapplion in https://github.com/ChainSafe/lodestar/pull/3964#issuecomment-1117607542

Another option is to add a Lodestar API to add/remove validators to the validator monitor.


ios soft kbd paste button not usable

If you make a selection, normally you can tap the paste icon that appears at the top-left of the ios soft keyboard.
None of the icons are enabled: cut, copy, paste, undo/redo.
And super-editor has its own kbd hider icon. Why ?
I took a look at appflowy, and that isn't even comilable atm.
Back to SelectableText and contemplating wheel reinvention, sigh...

Actually, it looks like the issue is with iOS 16, because I just notice it with an ordinary TextField.

Hi @biancashouse if you'd like for us to take action when you file a ticket, please follow standard practices for doing so. This ticket isn't productive as it stands right now. I'll wait a couple days for you to update it. If you don't, then I'll close it.
BTW, we have no association with AppFlowy

Closing this ticket due to inactivity and non-actionable.


TypeError: 'int' object isn't iterable Micropython 1.19.1

temperature, humidity = sensor.measure()
Traceback (most recent call last):
File "", line 1, in
File "sht30.py", line 136, in measure
File "sht30.py", line 100, in send_cmd
TypeError: 'int' object isn't iterable

Getting this and the board soft reboots when I try is_present().


[misc]: @uploadthing/svelte support for svelte 5

I understand that this issue may be closed if it should be filed in another category

[X] I understand

My issue
When creating a sveltekit project using svelte 5, installing @uploadthing/svelte fails due to it requiring svelte 4.
When I used --force to install the package it worked fine in my testing.
Steps to reproduce:
npm create svelte@latest my-app
- Skeleton project
- TS
- additional options Svelte 5 preview

cd my-app
npm install uploadthing @uploadthing/svelte

Example error:
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving<EMAIL_ADDRESS>npm error Found<EMAIL_ADDRESS>npm error node_modules/svelte
npm error<EMAIL_ADDRESS>from the root project
npm error   peer<EMAIL_ADDRESS>|| ^5.0.0-next.0" from<EMAIL_ADDRESS>npm error   node_modules/@sveltejs/kit
npm error     dev<EMAIL_ADDRESS>from the root project
npm error     peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm error     node_modules/@sveltejs/adapter-auto
npm error       dev<EMAIL_ADDRESS>from the root project
npm error     1 more (sveltekit-superforms)
npm error   10 more (@sveltejs/vite-plugin-svelte, ...)
npm error
npm error Could not resolve dependency:
npm error peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm error node_modules/@uploadthing/svelte
npm error<EMAIL_ADDRESS>from the root project
npm error
npm error Conflicting peer dependency<EMAIL_ADDRESS>npm error node_modules/svelte
npm error   peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm error   node_modules/@uploadthing/svelte
npm error<EMAIL_ADDRESS>from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error C:\Users\*redacted*\AppData\Local\npm-cache\_logs\2024-09-19T20_16_44_933Z-eresolve-report.txt
npm error A complete log of this run can be found in: C:\Users\*redacted*\AppData\Local\npm-cache\_logs\2024-09-19T20_16_44_933Z-debug-0.log

do we have some Svelte expert that can help us confirm if we're using any weird stuff or is it safe to bump the peer dep? cc @markflorkowski

Cc @t3dotgg do you know anyone who can verify?

I have made a PR to close this.
Also, I could start working on a full svelte 5 upgrade and maybe have it behind a next flag until svelte 5 becomes stable, or should I wait?


Check for finalized vs best

ook, seems it's Dwellir doesnt finalize, probably remove it from Settings please

where
https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fkusama.api.onfinality.io%2Fpublic-ws#/explorer
has

alternative nodes

We should have some function at connecting at RPC to check if there is diff best vs finalized bigger than 10 blocks, switch to another node in list.
Originally posted by @yangwao in https://github.com/kodadot/nft-gallery/issues/5676#issuecomment-1509737143

hmm onfinality rn

parity

radium

dwellir tunisia

dwellir just fixed itself

automata

cc 📟
@tripleight