root_validator not  called when validate_assignment=True in dataclass

root_validator not  called when validate_assignment=True in dataclass
The root_validators methods are not called for assignments in dataclass when the config specifies validate_assignment=True.
Is this the intended behavior or a bug ? What would be a proper workaround for a multi-variable validators that must also be applied on validation?
Versions
Output of python -c "import pydantic.utils; print(pydantic.utils.version_info())":
             pydantic version: 1.8.2
            pydantic compiled: True
                 install path: C:\Users\Measurement\.conda\envs\pycqed39\Lib\site-packages\pydantic
               python version: 3.9.7 (default, Sep 16 2021, 16:59:28) [MSC v.1916 64 bit (AMD64)]
                     platform: Windows-10-10.0.19043-SP0
     optional deps. installed: ['typing-extensions']

Minimal example
from pydantic.dataclasses import dataclass
from pydantic.class_validators import root_validator, validator

class PydanticConfig:
    validate_assignment = True
    arbitrary_types_allowed = True

@dataclass(config=PydanticConfig)
class SomeSettings:
    nb_samples:int = 640
    nb_segments:int = 1

    # TODO: Check the maximum value. Should it be 32767 ? Because only 16 bits to store it!
    # TODO: Update unit tests if the maximum values is changed.
    @validator('nb_samples', pre=True)
    @classmethod
    def _validate_nb_samples(cls, v):
        if not (1 <= v <= 32768):
            raise ValueError("Invalid nb_samples")
        return v

    @validator('nb_segments', pre=True)
    @classmethod
    def _validate_nb_segments(cls, v):
        if not (1 <= v <= 65535):
            raise ValueError("Invalid nb_segments")
        return v

    @root_validator(skip_on_failure=True)
    @classmethod
    def _validate_product_samples_segments(cls, values):
        if not (1 <= values['nb_samples']*values['nb_segments'] <= 2**25 - 1):
            raise ValueError(f"(nb_samples * nb_segments) must be smaller than 2^25.")
        return values

try:
    instance = SomeSettings(nb_samples=32000, nb_segments=65000)
except ValueError:
    print("Invalid combined values in constructor are caught.")

try:
    instance = SomeSettings()
    instance.nb_samples = 1e6
except ValueError:
    print("Invalid single values in assignment are caught.")

try:
    instance = SomeSettings()
    instance.nb_samples = 32000
    instance.nb_segments = 65000
except ValueError:
    print("Invalid combined values in assignment are caught")

Output:
Invalid combined values in constructor are caught.
Invalid single values in assignment are caught.

I'm also seeing this problem with version 1.9.0

Hi Rob, yes I can see the issue!

This will be fixed in V2, not before.

ok thanks Samuel. Look forward to it.


$extract + error handling

Should pass now.
That test was originally commented out, though that leaves only testing that the operation fails properly, given the only other test on the operation is below.
Loading resources dynamically and pushing that, since I'm unsure what's wanted given it was initially commented out.

@Jinip This will work.


Add Reporting cypress tests

Signed-off-by: David Cui<EMAIL_ADDRESS>Description
Add Reporting cypress test suite
Issues Resolved
#78
Check List

[x] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Overall I'd recommend increasing the timeouts in a lot of places, seems the failures are related to that. For AD, we have some constants and then use the same timeout a bunch of places, so in the case that they show up as flaky, only a one line change

nit: why the test names start with number like 0?-

It indicates the order in which the tests should be run

Reporting tests all pass on my local Dashboards instance with and without security, not sure why the tests are flaky in the CI..

 The CI has 1.2.0 version. @davidcui1225

Do you run OSD 1.3.0 in your local? The CI has 1.2.0 version. @davidcui1225

Potentially same issue here https://github.com/opensearch-project/opensearch-dashboards-functional-test/pull/95#issuecomment-1056021422

Do you run OSD 1.3.0 in your local? The CI has 1.2.0 version. @davidcui1225

Potentially same issue here #95 (comment)

main branch in reporting is on 1.3 but the Cypress tests here should pass regardless, there's no new functionality added for 1.3

Thanks @davidcui1225 for the quick actions! I am checking the logs of the failed check
https://github.com/opensearch-project/opensearch-dashboards-functional-test/runs/5396012759?check_suite_focus=true
I see some errors like this     CypressError:cy.wait()only accepts a number, an alias of a route, or an array of aliases of routes. You passed:undefined``
Could you help look into it? Once this is updated, we can see if other errors will disappear along the way.

loop in @Tengda-He to help look into the failed Github action check. https://github.com/opensearch-project/opensearch-dashboards-functional-test/runs/5398380343?check_suite_focus=true

I am upgrading the main branch to support 1.3.0 in parallel https://github.com/opensearch-project/opensearch-dashboards-functional-test/pull/104 The Github workflows will be updated to use 1.3.0 artifacts once my pr is merged.

We have upgraded the main branch to 1.3.0 https://github.com/opensearch-project/opensearch-dashboards-functional-test/pull/104 There are some known failures where we are working with owners to fix them. https://github.com/opensearch-project/opensearch-dashboards-functional-test/pull/104#issuecomment-1058747156
By syncing the latest main branch into your PR, you will be able to see your test results against latest 1.3.0 and address any failures related to your change in this PR.

Once we have latest test result, if it fails because of other plugins, we can still get this PR merged in.

Once we have latest test result, if it fails because of other plugins, we can still get this PR merged in.

All reporting tests pass on this CI run

The error is not related to Reporting plugin https://github.com/opensearch-project/opensearch-dashboards-functional-test/runs/5426077379?check_suite_focus=true
Let me merge this PR.


[MXNET-810] Add support for more req patterns for bilinear sampler backward

Description
Fix #8866.
Checklist
Essentials

[x] Changes are complete (i.e. I finished coding on this PR)
[x] All changes have test coverage:
Unit tests are added for small changes to verify correctness (e.g. adding a new operator)
Nightly tests are added for complicated/long-running ones (e.g. changing distributed kvstore)
Build tests will be added for build configuration changes (e.g. adding a new build option with NCCL)
[x] Code is well-documented:
For user-facing API changes, API doc string has been updated.
For new C++ functions in header files, their functionalities and arguments are documented.
For new examples, README.md is added to explain the what the example does, the source of the dataset, expected performance on test set and reference to the original paper if applicable
Check the API doc at http://mxnet-ci-doc.s3-accelerate.dualstack.amazonaws.com/PR-$PR_ID/$BUILD_ID/index.html
[x] To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

Changes

[x] Support more req type patterns for backward of bilinear sampler
[x] Corresponding unit tests

Comments
Added test case also passed flakiness check
MXNET_TEST_COUNT=10000 nosetests -s --verbose tests/python/gpu/test_operator_gpu.py:test_bilinear_sampler_versions

[INFO] Setting module np/mx/python random seeds, use MXNET_MODULE_SEED=583854465 to reproduce.
test_operator_gpu.test_bilinear_sampler_versions ... ok

----------------------------------------------------------------------
Ran 1 test in 539.629s

OK

@eric-haibin-lin @reminisce @piiswrong @anirudh2290

@anirudh2290 @eric-haibin-lin Should be good for merge?


add kubectl diff in common operations

Add kubectl diff to common operations as kubectl diff is GA.
Part of kubernetes/kubernetes#86525
Before I submmit this PR to master branch which is not correct. https://github.com/kubernetes/website/pull/18483
Now I reopen this PR to submmit to 1.18-dev.

/assign @tengqm
/assign  @kbhawkey

/lgtm

/lgtm

/assign @kbhawkey

looks good to me.
deferring to release meister for merging.

Page preview:
https://deploy-preview-18665--kubernetes-io-vnext-staging.netlify.com/docs/reference/kubectl/overview/


cvLoadImage and imread do not handle exif orientation similarly

Please state the information for your system

OpenCV version: 3.1
Host OS: Mac OS X 10.11.4

In which part of the OpenCV library you got the issue?
Examples:

imgcodecs
reading an image with exif orientation

Expected behaviour
Since OpenCV 3.1, exif orientation is now used to rotate images properly. imread and cvLoadImage should output an image rotated accordingly to the exif orientation.
Actual behaviour
imread outputs an image with correct orientation, cvLoadImage seems to ignore the exif orientation, though they seem to call the same internal method to read a JPEG image.
Code example to reproduce the issue / Steps to reproduce the issue
Please try to give a full example which will compile as is.
#include <opencv2/opencv.hpp>
#include <opencv/highgui.h>

int main(int argc, char** argv){

   IplImage* image = cvLoadImage("input.jpg", CV_LOAD_IMAGE_COLOR);
   cvSaveImage("output_cvloadImage.jpg", image);

   Mat mat = imread("input.jpg", CV_LOAD_IMAGE_COLOR);
   imwrite("output_imread.jpg", mat);

   return 0;
}

input.jpg is portrait with Orientation: 6 (Rotated 90° CCW)
output_cvloadImage.jpg is landscape
output_imread.jpg is portrait

OpenCV C interface is no longer maintained (no more additional functionality, only bug fixes). You have to use the C++ interface if you want to use this functionality and in general also.
More information on this Q&A in 2013: OpenCV will drop C API support soon.

@guillaume-tgl, could you attach an image to test on?

Sure :

C API ("cv" prefix) is obsolete and should not be used in new programs, but there are still some programs which use it. So it is unwanted to change existed behaviour.
Related issue of changed behaviour: #6348
I prefer to leave this "as is": cv::imread uses EXIF (by default, until we add control flag for this behaviour), cvLoadImage doesn't use EXIF information.


.android folder in flutter module unexpectedly overwritten

flutter create -t module my_module
I edited pubspec.yaml once and used the package upgrade and package. As a result, all the code in my '.android' was overwritten and a new 'android' directory was generated.
Prompt me at runtime:
            No application found for TargetPlatform.android_arm64.
            Is your project missing an android\AndroidManifest.xml?
            Consider running "flutter create ." to create one.

Why is this happening? my code is lost.
Why is this happening? my code is lost.
Why is this happening? my code is lost.
flutter doctor -v
[√] Flutter (Channel stable, v1.0.0, on Microsoft Windows [Version 10.0.14393], locale zh-CN)
    • Flutter version 1.0.0 at D:\kongnan\flutter
    • Framework revision 5391447fae (3 months ago), 2018-11-29 19:41:26 -0800
    • Engine revision 7375a0f414
    • Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)

[!] Android toolchain - develop for Android devices (Android SDK 28.0.3)
    • Android SDK at C:\Users\User\AppData\Local\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
    ! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses

[√] Android Studio (version 3.3)
    • Android Studio at C:\Program Files\Android\Android Studio
    X Flutter plugin not installed; this adds Flutter specific functionality.
    X Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[√] IntelliJ IDEA Community Edition (version 2018.1)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2018.1.5
    • Flutter plugin version 31.3.1
    • Dart plugin version 181.4892.1

[√] Connected device (2 available)
    • Mi Note 3 • 6454c8fb     • android-arm64 • Android 8.1.0 (API 27)
    • HTC One   • FA35FS906226 • android-arm   • Android 4.4.2 (API 19)

Can you describe your workflow a bit? What setup were you trying to achive via flutter create -t module? What edits were you making in the .android directory?

We might want to include a file in .android called DO_NOT_EDIT_THIS_AUTOGENERATED_FOLDER or something

You filed this first, but there's more information in duplicate  https://github.com/flutter/flutter/issues/28135.  Closing as duplicate.


Support import maps

Ideally there would be a way to specify, perhaps in a URL parameter, an import map that goes along with the documented module.
There could be UI to tweak the import map, which would update the parameter in the URL and regenerate the docs.
For example, the docs for this module breaks due to the bare react import specifier:
<EMAIL_ADDRESS>That module works great in Deno projects with an import map that assigns a Preact ESM URL to the react specifier.
I would absolutely 😍 love 😍 to be able to just link to Deno docs in the readme for all my universal Node.js/Deno packages that rely on import maps, instead of maintaining complicated API docs markdown by hand. Hardcoded docs can have mistakes that get permanently published for that package version; whereas having docs generated on demand allows them to just get better and better over time as Deno docs improves, for all versions of the package.

It is a useful feature.
I can see adding support for a query parameter like ?im=https://example.com/import_map.json or something like that.
Need to check to see how we need to expose it from deno_doc in the JavaScript API and then flow that through to the app.


Get-BCArtifactUrl error on windows 11

PLEASE DO NOT INCLUDE ANY PASSWORDS OR TOKENS IN YOUR ISSUE!!!
Describe the issue
Error encountered when running Get-BCArtifactUrl on Windows 11. Issue encountered on two windows 11 machines.
Scripts used to create container and cause the issue
Get-BCArtifactUrl -country base -select Current

Full output of scripts
Get-BCArtifactUrl -country base -select Current
Setting use7zipIfAvailable = True
Setting digestAlgorithm = SHA256
Setting baseUrl = https://businesscentral.dynamics.com
Setting DOCKER_SCAN_SUGGEST = False
Setting mapCountryCode = @{ae=w1; bd=w1; dz=w1; eg=w1; fo=dk; gl=dk; id=w1; ke=w1; lb=w1; lk=w1; lu=w1; ma=w1; mm=w1; mt=w1; my=w1; ng=w1; qa=w1; sa=w1; sg=w1; tn=
w1; ua=w1; za=w1}
Setting useVolumeForMyFolder = False
Setting psSessionTimeout = 0
Setting MicrosoftTelemetryConnectionString = InstrumentationKey=5b44407e-9750-4a07-abe9-30c3b853821b;IngestionEndpoint=https://southcentralus-0.in.applicationinsig
hts.azure.com/
Setting hostHelperFolder = C:\ProgramData\BcContainerHelper
Setting defaultContainerName = bcserver
Setting timeStampServer = http://timestamp.digicert.com
Setting bcartifactsCacheFolder = c:\Temp\bcartifacts.cache
Setting SendExtendedTelemetryToMicrosoft = False
Setting containerHelperFolder = C:\ProgramData\BcContainerHelper
Setting TraefikImage = traefik:v1.7-windowsservercore-1809
Setting apiBaseUrl = https://api.businesscentral.dynamics.com
Setting PartnerTelemetryConnectionString =
Setting sandboxContainersAreMultitenantByDefault = True
Setting usePsSession = True
Setting genericImageName = mcr.microsoft.com/businesscentral:{0}
Setting ObjectIdForInternalUse = 88123
Setting useSharedEncryptionKeys = True
Setting TreatWarningsAsErrors = AL1026
Setting TraefikUseDnsNameAsHostName = False
Setting genericImageNameFilesOnly = mcr.microsoft.com/businesscentral:{0}-filesonly
Setting defaultNewContainerParameters = @{Accept_Eula=True; licenseFile=***; UpdateHosts=True}
BcContainerHelper version 3.0.3-preview550
BcContainerHelper emits usage statistics telemetry to Microsoft
WARNING: The names of some imported commands from the module 'BcContainerHelper' include unapproved verbs that might make them less discoverable. To find the comma
nds with unapproved verbs, run the Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.

Get-BCArtifactUrl Telemetry Correlation Id: 9a4a6108-81ab-461b-881b-ebbb8c807959
Exception calling "DownloadString" with "1" argument(s): "An exception occurred during a WebClient request."
At C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\3.0.3\Misc\Get-BcArtifactUrl.ps1:197 char:13
+             $Response = $webClient.DownloadString("$GetListUrl$nextMa ...
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : WebException

Screenshots
Additional context

does it happen all the time? Yes
did it use to work? Yes

could you try to use:
Get-BCArtifactUrl -country base -select Current -verbose
And display the output
BTW - you should remove all the entries in your bccontainerhelper.config.json which you don't want to explicitly set - no need to have default values there and you would not get any changes to f.ex. the country map if a new version has changes.

Hi Freddy,
Thank you for the advise with the bccontainerhelper.config.json. As instructed below is the result.
PS C:\Windows\system32> Get-BCArtifactUrl -country base -select Current -verbose
VERBOSE: DownloadString https://bcartifacts.blob.core.windows.net/sandbox/?comp=list&restype=container
Get-BCArtifactUrl Telemetry Correlation Id: c319a7b7-ca7d-4c80-a8a2-c3ad103456f9
Exception calling "DownloadString" with "1" argument(s): "An exception occurred during a WebClient request."
At C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\3.0.3\Misc\Get-BcArtifactUrl.ps1:197 char:13

        $Response = $webClient.DownloadString("$GetListUrl$nextMa ...

        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : NotSpecified: (:) [], ParentContainsErrorRecordException
FullyQualifiedErrorId : WebException

If you open https://bcartifacts.blob.core.windows.net/sandbox/?comp=list&restype=container in a browser - does it return anything?

Yes, it outputs the URL's

Thanks

and this (in PowerShell):
(New-Object System.Net.WebClient).DownloadString('https://bcartifacts.blob.core.windows.net/sandbox/?comp=list&restype=container')

I am getting the error.

Thanks

What does this return in PowerShell
 [Net.ServicePointManager]::SecurityProtocol

try this
Try
{
   (New-Object System.Net.WebClient).DownloadString('https://bcartifacts.blob.core.windows.net/sandbox/?comp=list&restype=container')
}
Catch [Exception]
{
    Write-Host $_.Exception | format-list -force
}

Below is the result.

Thanks

strange
and this
(Invoke-WebRequest -UseBasicParsing -Uri 'https://bcartifacts.blob.core.windows.net/sandbox/?comp=list&restype=container').Content

then i got the error

Hi Freddy,
I am not using vpn or any other antivirus except for windows security. I will check for any programs that is installed that may block the communication as suggested. Thank you for the assistance.

and/or maybe try to disable defender for a test.
Haven't seen this behavior before (using Windows 11 myself)

Hi Freddy,
I have disabled the defender and I got the same error. It's weird that I am also experiencing the same issue on another machine which is also running windows 11.
Thanks for the help.

Strange - can you download this file as a string using WebClient downloadstring?
https://raw.githubusercontent.com/microsoft/navcontainerhelper/master/Misc/Download-File.ps1

Are you running PowerShell ISE or PowerShell?

I am running PowerShell ISE.

I hope I followed your instruction correctly.

Could you try to run this code:
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls -bor [Net.SecurityProtocolType]::Tls11 -bor [Net.SecurityProtocolType]::Tls12
[Net.ServicePointManager]::Expect100Continue = $false
(New-Object System.Net.WebClient).DownloadString('https://bcartifacts.blob.core.windows.net/sandbox/?comp=list&restype=container')

Hi Freddy,
I got the same error.

Thanks

How much time does it take from running the script until erroring out?

around 30 seconds.
Thanks

???
3 seconds on mine
Could you try this
Download-File -sourceUrl 'https://bcartifacts.blob.core.windows.net/sandbox/?comp=list&restype=container' -destinationFile 'c:\temp\test.xml' -timeout 1000

(change the destinationfile to a path where you want a test.xml to be stored)

I don't thinks its an issue with windows 11.
How long does it take to load in the browser?
I takes about a second in my setup.
Are you in a corporate network?
Any Firewall/Proxy configuration that might be applied by an admin?
This just seems to be a network issue. Maybe the browser is handling bad connections better then powershell.
maybe tracert bcartifacts.blob.core.windows.net will give you some insight where things go wrong. Please be aware if you post the output this might give away some sensitive information.

Hi Freddy,
I am getting the same error at around 30 seconds. I guess this is a network issue as suggested by jonaswre. Running the https://bcartifacts.blob.core.windows.net/sandbox/?comp=list&restype=container on my browser also take around 30 seconds and seems to show incomplete URL's. I am currently working at home and tracert also shows time out on the result. Although I tried this last week on my laptop on a different network and I am also getting the same error. Apologies for taking your time and thank you very much for the assistance

You could try Tobias Fensters new Azure function: https://tobiasfenster.io/get-your-bc-artifact-urls-without-powershell
(if everything else works of course - having these network issues might surface in other places as well)

Thank you Freddy for the suggestion. As of now I can only generate the artifact url by specifying a version. If I use the -select parameter that is when I get the DownloadString error.

ok

So, you are saying that
Get-BCArtifactUrl -country base -select Latest

actually works???

so
Get-BCArtifactUrl -country base

doesn't work?
what about
Get-BCArtifactUrl -country base -version 19.4 -select latest

?

i am also having same problem. i am on windows 11

@shashiBssi And it also works if you limit the versions and specifying 19.4 or like?

@freddydk i specified -version '19.4.35398.36119'... and it looks like its working. containercreation is still in process

hi, confirming that this is an issue with my ISP. my officemate who tried it on a different ISP did not encounter the issue.


Add search box for TAGs

Add this search box into other pages with NFT list:

Here is the example of the NFT List with the Tag filtration
The NFT in the NFTs list is displayed based on result of the function IsInFilter.
We need to add it first in the VENFT Banner App in here

solved in the VEBlazor. For the VEOnePage or Banner kind of app we will use same system. It will be splited from the VEBlazor library to some smaller package.


model grasping of a cable

Hi,
I'm a researcher and I'm trying to use MuJoCo to simulate the manipulation of elastic cables.
I'm looking for some help with constraining one body element of the cable to the gripper. Specifically, I have modeled the elastic cable as a series of body with connected with joints and springs and I would like to constrain online with a "weld" equality one of the bodies to my gripper. Before the beginning of the simulation, I suppose that I do not know which element of cable is going to be attached to the gripper.
I cannot understand if equalities can be added online by python bindings.
If it is not possible, which solution do you suggest to me?

Create weld constraint between each cable element and the gripper, set them as inactive at the start of the simulation and programmatically activate them
Use the adhesion actuator; however, I am not sure how to avoid multiple cable elements attaching. I am not sure using groups is going to work

You can't add equalities but you might be able to change the eq_ fields in https://github.com/google-deepmind/mujoco/blob/main/include/mujoco/mjmodel.h#L948 such that your weld changes meaning. See https://github.com/google-deepmind/mujoco/blob/main/src/engine/engine_setconst.c#L272 for the meaning of those fields.


Support for asynchronous engine?

Hi! I want to use create_async_engine(...) to make an async engine and interface with libsql. Is this currently possible/ documented anywhere?

Hi guys, any news on this issue? It would be really awesome to be able to use libsql with async sqlalchemy engines.

Would also love to bump this up. Would be super useful for me as well.


[setup for noobs] how do i set up multiple masters/volumes?

Hi,
I'm facing an issue (maybe not really able to figure this out) trying to set up a seaweed instance on my VM: if I understand correctly from https://github.com/chrislusf/seaweedfs/wiki/Failover-Master-Server, it is helpful to set up multiple master servers to ensure no single point of failure. Is this possible or required to do with a single VM?
Also, what is the recommended workflow for setting up a master and volume instance if doing multiple cases? I'm quite new to this, but I seem to need to open multiple terminal windows in Ubuntu to launch multiple masters/volumes, and trying to write it in a script to launch gives me the following errors:
Master startup error: listen tcp <IP_ADDRESS>:9333: bind: address already in use
(similar for the volume)
and this error which keeps showing in an infinite loop:
SendHeartbeat to IP:9333: rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: connection error: desc = "transport: Error while dialing dial tcp: lookup IP: no such host"
If I set up a master with port 9333 and a volume with port 8080 once, does this run forever unless I force close the port? Is there a way to close the seaweed instance?
Furthermore, does this mean that if I deploy a seaweed server in some VM on my system, that I do not need to initialise anything upon VM startup as the server will always be there?
Apologies for the many questions, thanks for any help!

single master is fine.
you are asking questions about VM. You do not need VM. Just one "weed" binary file is good for you to setup master and multiple volume servers. Or you just use "weed server"

Noted about the single master, thanks.
If I want backup in the case as you mentioned in the documentation, should I create many instance of single master-volume on multiple machine then?
Separately, what is the recommended procedure for shutting down and restarting an instance? As I have not seen the docs on how to kill the service other than something like the "kill" command in ubuntu.
Thanks!

"backup" and "replication" are different. Not sure what you need.
"kill" is good.


Score Raw does not set right score.

@joshstar I just fixed a few score issues in the app and I stumbled upon this issue:
Pushing a score_raw of 50 should be 5.0 but if I check it on AL it is set on 25.5. (Makes no sense XD)
Pushing a score_raw of 5 should be 0.5 but if I check it on AL it is set on 5.0.
Did the score_raw got mixed up with score?

Sorry I haven't replied to this yet, I've been super busy with uni starting again. I'll try getting this fixed within the next week or so.

Excellent! Looking forward to this getting fixed.

Hey @joshstar , any update on if/when this issue will get fixed? I've noticed the pattern mentioned above by @ratan12 when the user has a scoring method of "10.0", but it looks like when they use smiley faces or stars, pushing a raw score (even one that has a corresponding "typed score", such as :| ) causes the actual score to be set as 0.
This is probably the biggest showstopper for app development for me (at least for the current feature additions), so I would greatly appreciate it if you could take a look. Thanks again!

Oh shit, really sorry about this. Just pushed a fix now.

I'll close this now as I'm pretty sure its fix, but please do send me a message if its still an issue.


Brunel example unexpected behaviour

While trying to get my head around the Brunel example I run into the following state, which I find confusing.

Poisson neurons are not spiking at all from a number and below

Preserving the proportions of neurons I lowered the total number of neurons, which leads to no activity at all (e.g. 4k neurons in total). Is this expected? Is firing of poisson neurons not a function of the poisson distribution alone and independent to their count?

Non-poisson (input) neurons are never spiking.

Visualizing monitored spiking yielded that only input neurons are firing, regardless of neuron count.
I would appreciate any input.

Hi Nikolaos,
I'm having a bit of a difficult time understanding exactly what you mean. First, I should also recommend that you use the Brunel Benchmark at this location.
There is also an accompanied ipython notebook in that repository that shows the process of loading and reading spike times etc.
In terms of your comments:

Poisson neurons are not spiking at all from a number and below
That is definitely unexpected behaviour. Given that I don't have this issue in the SNNSimulatorComparison version, I am unsure what to make of it. How are you checking the spike times?

Preserving the proportions of neurons ...
You should note that if you scale the network up or down without changing the strength of the connections, the amount of total excitation to each neuron will be reduced and the whole network will stop firing. Are you also changing the synaptic weights when you scale the network?

Is firing of poisson neurons not a function of the poisson distribution alone and independent to their count?

I'm not sure which population you are referring to here. I thought I should clarify thought that the spiking of the non-input neurons for this network is based upon excitation from the input. If the input is sufficiently low, they will not spike at all. And it is only due to the excitatory and inhibitory effects of the separate populations of neurons that they end up spiking with a poisson-like distribution. That feature isn't inherent to the LIF neurons.
I may have misunderstood a number of your points so feel free to clarify or send code.

Thanks for the detailed answer. The confusing point for me was the fact that only the non-input neurons were being monitored in the original sample. All solved now.

Another issue I'm having is that the Brunel example has virtually no difference in the behaviour with plasticity on and off. Is this expected?

Glad I could help with the earlier issues.
The plasticity takes some tens of seconds to impact the network weights and doesn't change the network behaviour all that much. You can check the weights directly to see how they have changed (as in the ipython notebook).

Note that through plasticity the weights tend to a value which is the mean of the initial weights (i.e. it goes from a uniform to a peaked distribution but both with roughly the same mean) and there is no specific stimulation happening (the inputs are random) so we wouldn't necessarily expect special behaviour.


refactor(curriculum): colored markers step 16

Checklist:

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the main branch of freeCodeCamp.
[x] I have tested these changes either locally on my machine, or GitPod.

Closes #46899

This step introduces the user to multiple classes on an element. Tried to incorporate the example into the instructions better with an explanation of how to add multiple classes.

@moT01 I'm on board with moving the first paragraph to a different step. It does seem like that information should be introduced when the user actually uses it, and step 21 seems like the first step that they do.

Hey Bruce,
Do you mind changing this in this pull-request.
It seems like a good idea.

@Sembauke Ya, don't know why I didn't do that already. I guess I didn't put two and two together correctly :smile:


vendor: Update go.universe.tf/metallb

Following https://github.com/cilium/metallb/pull/4, Cilium is now
tracking the code from the v0.9.6 branch of cilium/metallb:
https://github.com/cilium/metallb/tree/v0.9.6
This was done in a backwards-compatible way to ensure that older
versions of Cilium can still build by avoiding the invalidation of the
previous commit SHA (40d425d20241).
Signed-off-by: Chris Tarazi<EMAIL_ADDRESS>

test-only --focus="K8sServicesTest.*Connectivity to endpoint via LB" --k8s_version=1.21 --kernel_version=net-next

@rolinh It is on my to-do list, it will get done :)

test-only --focus="K8sServicesTest.*Connectivity to endpoint via LB" --k8s_version=1.21 --kernel_version=net-next


code.talks (@codetalkshh #codetalkshh) - 2017.09.28-29 - Hamburg, Ger…

I've spoken there a couple of times (it's in my home town), it's a nice conference held in a huge cinema.

Thanks! :)


Allow multiple attachments in one expense

User story
As a contributor, I want to upload a batch of multiple receipts in one expense, because creating a seperate expense for each one is tedious.
Best solution for this problem
Allow multiple attachments on a single expense, with space for the amount and description per each, with a "apply to all" option if they are all the same.
MVP
Maybe a way to duplicate an expense so all you'd need to do is upload another attachment? Seems just as hard to build as allowing multiple attachments and would be less useful.
Metrics
More small expenses submitted because it's easier to batch them.
Documentation
Ideally the UI would make it obvious that you can add another file.

@piamancini is there a reason related to accounting that we can't have multiple receipts for one expense?

Implemented in the new expense flow


whoami: added environment id response

Given the need to output the environment ID in many files can it be broken out into a single responsibility functional call?  Like GetEnvironmentId or some such? I’m not near my PC today but just poking around this PR so maybe I’ll connect with you later.
I’m a fan of this addition.

@paulbreuler - not sure I follow your feedback.  Outside of the dist folder, these are the only files that have changed:

Ignore, it's an artifact of reviewing the changes from GitHub mobile. It wasn't clear that that was the dist folder output. I had just seen HACK TODO spammed in 16 files. Looking on a proper desktop view... yeah... my bad. Looks good to me.

@paulbreuler - I agree that the string 'environment-id' is in enough places that it should not be hard coded.
@davidjenni - I've gone ahead and updated the code to clean this up.  I didn't reference OutputVariables.EnvIdVariableName in other actions that use 'environment-id' because that's not work needed to accomplish the whoami enhancement.  Let me know if you want me to update other actions for consistency.  Whether in this PR or another.

@davidjenni - It wasn't clear to me what the process is to update the dist folder but looking at the history it looks like I probably should not have updated the dist folder.  The reason I did was because I also added validation in pull-request.yml to ensure the id matches that from create-environment.  Let me know if/how I should clean this up.


[SPARK-47413][SQL] - add support to substr/left/right for collations

https://issues.apache.org/jira/browse/SPARK-46830
What changes were proposed in this pull request?
Add collation support to types of return values for calls to substr, left, right, when passed in arguments of an explicit, implicit, or session-specified collations. Add tests to validate behavior.
Why are the changes needed?
We are incrementally adding collation support to built-in string functions in Spark. These functions are intended to be supported for collated types.
Does this PR introduce any user-facing change?
these sql functions will now not throw errors when passed in collated types. Instead, they will return the right value, of the passed in type. Or of the default collation.
How was this patch tested?
Unit testing + ad-hoc spark shell and pyspark shell interactions.
Was this patch authored or co-authored using generative AI tooling?
No.

@uros-db
I have some tests, and have substring implementation basically passing tests.
However, my redefined implementations of Left and Right are failing my tests. They are currently throwing the following exceptions in my new test cases in CollationSuite.scala:
[COMPLEX_EXPRESSION_UNSUPPORTED_INPUT.MISMATCHED_TYPES] Cannot process input data types for the expression: "(IF((1 <= 0), , substring(collate(klm), (- 1),<PHONE_NUMBER>)))". All input types must be the same except nullable, containsNull, valueContainsNull flags, but found the input types ["STRING", "STRING COLLATE UTF8_BINARY_LCASE"]. SQLSTATE: 42K09

I think it is caused by additional work needed on the overridden implementation of replacement within Left and Right in stringExpressions.scala. I think that because the second parameter to Literal is DataType in the replacement, rather than AbstractDataType, there is this little issue. I think that is what is causing these tests to fail. What do you think? Please advise on how to debug this issue.

since the "COMPLEX_EXPRESSION_UNSUPPORTED_INPUT.MISMATCHED_TYPES" problem seems to be in Right.replacement expression when doing Literal(value, dataType), did you try something like Literal(UTF8String.EMPTY_UTF8, str.dataType) to match these datatypes?

@uros-db I think that did the trick! I will let you know when to review again. Thanks!

also, use CollationStringExpressionsSuite instead of CollationSuite for these tests

@uros-db this would be ready for review but spark sql unit tests repeatedly fail for CSVLegacyTimeParserSuite, which I did not modify. I have reran it a total of four times. Any idea how to get this check to pass successfully?

did you try to run this suite locally and investigate any potential issues?

I don't think CSVLegacyTimeParserSuite is related to you, but it would probably be a very good idea to setup Maven so that you can run/debug all tests locally in general

I don't think CSVLegacyTimeParserSuite is related to you, but it would probably be a very good idea to setup Maven so that you can run/debug all tests locally in general

Same issue running tests locally with maven. I always build with maven and when running tests with it (Eg build/mvn -Dtest=none -DwildcardSuites=org.apache.spark.sql.execution.datasources.csv.CSVLegacyTimeParserSuite test), i encounter the same hanging on anything that is writing to file system. I can keep looking into it.
I agree that my changes are probably not what is causing org.apache.spark.sql.execution.datasources.csv.CSVLegacyTimeParserSuite to fail in GHA.

@uros-db I got the file-writing tests to work locally when I simply export SPARK_HOME=/Users/gideon/repos/spark prior to running my maven tests.
More importantly, All GHA are passing. So this is ready for reviewers to begin to review.

@uros-db this is ready for review.

@GideonPotok nice work, thanks!
Heads up though: we will soon be finishing some code refactoring related to collation-aware string expression support (SPARK-47410), and will likely need to rewrite this PRs a bit in order to comply with some new design before proceeding to final reivew
let's put this PR on hold for now, and I'll ping you when we're ready to move on

@uros-db No problem at all.
if I understand your refactor correctly, my changes will basically either stay in the same place or move to the new common/unsafe/src/main/java/org/apache/spark/sql/catalyst/util/CollationSupport.java, right?
I will in the meantime take care of implementing https://issues.apache.org/jira/browse/SPARK-47412 and will also then put that on hold until after the refactor is merged. If that sounds good?

PS: Do you think changes, such as these, which are only to implementations of inputTypes and replacement, which do not rely on calling UTFString or CollationFactory, will need to be modified? Even if they won't, it makes sense for me to hold off.  But I would still like to know how you see this changing.
Thank you, kind sir :)

@GideonPotok You are correct, this refactor should not greatly affect your current PR in particular - I expect you'll only need to refactor testing a bit (shouldn't be too much work)
Feel free to move over to the next ticket, and I'll let you know when and how to consolidate your code/design so we can move to final review and sign off on this PR

@ur.


New user scenario passes only once

This extension was a PoC to see whether it was possible to provide a compatibility layer for the Behat 2.x feature for Behat 3 users. but it has been implemented for the early Behat 3 beta versions, and Behat 3 was hugely refactored between beta (nearly a complete rewrite compared to the initial Behat 3 beta).
This extension was updated to be compatible with the final Behat 3 codebase, but the implementation does not work. And given that I don't use chained steps (and that they are a bad idea in the first place, which is why they have been removed from Behat 3), I haven't tried to make the extension work, considering that my time would be better spent on other things.
My recommendation is to stop using chained steps.
Feel free to contribute to this extension to try making it work though if you really want to make the compatibility layer available.
We have a testsuite in place, which is currently failing because of the issues in the current implementation. If you manage to make it green, it means it will be working.


Is my understanding of MusOOEvaluator and WCSR under SeventhsBass correct?

Hi, @jpauwels.
I've just read the MIREX ACE evaluation details (on their web page) and your paper on evaluating automatically estimated chord sequences, and I want to use this issue to check that I correctly understand how model evaluation works in the case of the SeventhsBass (SB) vocab, and to check that I've correctly used MusOOEvaluator to evaluate predictions outputted by my neural net.
I'll use a fictional toy example to check that I correctly understand the former:
Say we have two songs S1 and S2. S1 lasts for 8 seconds and S2 lasts for 6 seconds, and each song has five chords (and so five annotated segments). The chord start and end times (in seconds), ground truth (GT) labels and labels estimated by our ACE system are shown below for each song.

Let's say our ACE system is a neural net whose output layer has 217 neurons (corresponding to the 217 possible chord labels [including 'no chord'] that can be assigned under the SB vocab). And let's say that the value outputted by each neuron in the output layer of our neural net gives the probability that the chord label for the current input is the chord label corresponding to that neuron. Then I think it's correct to say that the neural net can only predict chord labels that are part of the SB vocab. (I hope that makes sense. Please let me know if anything doesn't make sense or if you think that statement is incorrect!)
So, since both the GT and the estimated labels conform to the SB vocab, all we need to do to score each prediction in the tables above is to assign a 1 if the estimated label exactly matches the GT label, and a 0 otherwise. Is that correct?
Assuming that is correct, the CSR scores for S1 and S2 are 2/8 (25%) and 4/6 (67%), respectively (total duration of correctly estimated segments divided by total duration of annotated segments). Then the WCSR for this simple example is calculated as follows:
WCSR = [(8 * 0.25) + (6 * 0.66666)]/(8+6) = 6/14 = 3/7,
where WCSR is given by the following formula (taken from Junqi Deng's thesis, page 60):

Have I correctly calculated the scores and are my assumptions correct, or is there anything I'm not understanding correctly?
Secondly, I've just used MusOOEvaluator to evaluate the predictions that my own neural net (a CNN) has outputted for a single song. I ran the command
MusOOEvaluator.exe --reffile C:\Users\caleb\Desktop\University\CS344\anjing.txt --testfile C:\Users\caleb\Desktop\University\CS344\anjing_predictions.txt --chords MirexSeventhsBass --output C:\Users\caleb\Desktop\University\CS344\output_anjing_WCSR.txt
and inspected the output file. Everything seems fine and my understanding is that the command I ran has calculated the WCSR score for my predictions, under the SB vocabulary. Is that correct?
Thanks in advance for your help!

This looks entirely correct. Don't forget that you can use the optional --csv flag for getting per file results and the --verbose flag, which will write out a comparison file for each track that details what's happening for each time segment (much like the tables you posted above).

Thank you very much!


[website] When creating announcements the text field should be validated to be a prefix

not fixed

What value did you try for this? When I try <IP_ADDRESS>, it errors

12.0.0/16
On Mon, May 13, 2024 at 11:38 AM Arvind @.***> wrote:

What value did you try for this? When I try <IP_ADDRESS>, it errors
—
Reply to this email directly, view it on GitHub
https://github.com/jfuruness/bgpy_pkg/issues/57#issuecomment-2108043297,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHP5F7SHJGUKKE2IST6DT5DZCDNBDAVCNFSM6AAAAABFIMRAYOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBYGA2DGMRZG4
.
You are receiving this because you modified the open/close state.Message
ID: @.***>

Should be fixed now


Use g_object_ref_sink() instead of g_object_ref() everywhere

https://github.com/gtk-rs/gir/issues/367

@GuillaumeGomez please take look at this PR and related issue.
IMHO it can be merged without problem

The famous floating reference. Already spoke a bit about it with @sdroege. I agree with the change as well so let's merge it.
Thanks!


Allow auto registering of health checks in full framework

Dependency context does't seem to work when usign to find all health checks in referenced assemblies.

Moved to https://github.com/AppMetrics/MicrosoftExtensions/issues/2


ARM Template updates

Added NSG to AKS ARM deployment
Added ACA specific ARM deployment

if this stuff is tested and ready please merge. Thanks Matt!

if this stuff is tested and ready please merge. Thanks Matt!

Just finished up adding back support for external OpenAI services.  Should be wrapping up testing shortly today.


gamerule doimmediate respawn

doesn't seem to work when the game rule is set to true. The player keeps all items on respawn.

That is correct, every time the world reloads (typing /reload or rejoining the world/restarting the server) that game rule will be set to false and you will be notified in that as to why, the way I am detecting death requires that game rule to be turned off.


Responsive Pricing Table Using Tailwind CSS

Pull Request Type
What kind of change does this PR introduce?
[ Y  ] Solved an issue/task
[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:
What is the current behavior?

Responsive Pricing Table Using Tailwind CSS
Issue Number: [Insert Issue Number (if applicable)]
What is the new behavior?

Other information

Don't close your pull requests, otherwise they cannot be merged.

Merged

This is an automated message from Fork, Commit, Merge [BOT].

Thank you for your contribution! Your pull request has been merged. The files have been reset for the next contributor.
What's next?
If you're looking for more ways to contribute, I invite you to check out my other projects. Just click here to find more. These projects contain real issues that you can help resolve. You can also check out the Influences section in the README to find more projects similar to this one.
Also please leave a star to this project if you feel it helped you, i would really appreciate it.
I look forward to seeing your contributions!


snapshot of subordinate process is causing issues.

currently only the first process in the container can be snapshoted and namedpipe conflicts with second process.
19:01:52.405368 km_mgt_init          123  km      bind failure: /tmp/kmmgmt.pipe-1: Address already in use

https://github.com/kontainapp/km/pull/1683 addresses the management pipe naming, allowing snapshot of any process in a kontainer.


Load models into respective folders

Do we have any simple tricks to load all models to respective folders which needs to run this project?

Hi, @muthuramanm . The downloader module has been added to the project. In each example, you can use download_models to download the models required in the script.
For developers, once you type " in the code, your IDE will show the model list and you can easily choose a model. We will update the model list to support more models.

Models downloaded, but not able to use to run the project. Please guide me

It seems, download modules are not working as expected.
ubuntu@ip-172-31-46-161:~/DiffSynth-Studio$ python3 examples/image_synthesis/sdxl_turbo.py
Start downloading models/stable_diffusion_xl_turbo/sd_xl_turbo_1.0_fp16.safetensors
Downloading: 0.00B [00:01, ?B/s]
Traceback (most recent call last):
File "/home/ubuntu/DiffSynth-Studio/examples/image_synthesis/sdxl_turbo.py", line 11, in
model_manager.load_models(["models/stable_diffusion_xl_turbo/sd_xl_turbo_1.0_fp16.safetensors"])
File "/home/ubuntu/DiffSynth-Studio/diffsynth/models/init.py", line 593, in load_models
self.load_model(file_path, lora_alphas=lora_alphas)
File "/home/ubuntu/DiffSynth-Studio/diffsynth/models/init.py", line 551, in load_model
state_dict = load_state_dict(file_path, torch_dtype=self.torch_dtype)
File "/home/ubuntu/DiffSynth-Studio/diffsynth/models/init.py", line 624, in load_state_dict
return load_state_dict_from_safetensors(file_path, torch_dtype=torch_dtype)
File "/home/ubuntu/DiffSynth-Studio/diffsynth/models/init.py", line 631, in load_state_dict_from_safetensors
with safe_open(file_path, framework="pt", device="cpu") as f:
safetensors_rust.SafetensorError: Error while deserializing header: HeaderTooSmall

Hey @Artiprocher , Do we have any photo editing models?. I mean erase text from photos or adding new text in existing photos. Please suggest your ideas. Thanks


fix: service-map model validation error

Add "body" for RESPONSE_BODY_NOT_IN_EXAMPLE error

Automation for azure-sdk-for-go

Automation for azure-sdk-for-python

Can one of the admins verify this patch?


fix(vite): ignore nuxt_component query in ssr style plugin

🔗 Linked issue
fix https://github.com/Tahul/pinceau/issues/93
❓ Type of change

[ ] 📖 Documentation (updates to the documentation, readme or JSdoc annotations)
[x] 🐞 Bug fix (a non-breaking change that fixes an issue)
[ ] 👌 Enhancement (improving an existing functionality like performance)
[ ] ✨ New feature (a non-breaking change that adds functionality)
[ ] 🧹 Chore (updates to the build process or auxiliary tools and libraries)
[ ] ⚠ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

📝 Checklist

[ ] I have linked an issue or discussion.
[ ] I have updated the documentation accordingly.

I think we might also want to add something like this:

  // wrapper import which is generated by importing from #components
  if (query.nuxt_component && opts.type && !opts.type.includes('script')) {
    return false
  }

here:
https://github.com/nuxt/nuxt/blob/c7be5b4ec6a3b129c68e892c9f3dad816446bb10/packages/nuxt/src/core/utils/plugins.ts#L17-L20
What do you think?

I think we might also want to add something like this:

  // wrapper import which is generated by importing from #components
  if (query.nuxt_component && opts.type && !opts.type.includes('script')) {
    return false
  }

here:
https://github.com/nuxt/nuxt/blob/c7be5b4ec6a3b129c68e892c9f3dad816446bb10/packages/nuxt/src/core/utils/plugins.ts#L17-L20
What do you think?

Do you think we should rename ?macro to ?nuxt_macro (or ?nuxt_page_meta) to make them next-specific?

Yes, I would agree - nuxt_page_meta makes sense.


Fix universal translator imports so that goimports doesn't get remove them

@go-playground/admins
Running goimports on the codebase deletes all the imports of "github.com/go-playground/universal-translator".
The fix consists of explicitly qualifying the import statements with ut.

Thanks @jawher I didn't realize that would happen...
I'll merge this as soon as I get a chance this afternoon


ValueError: Namespace GtkVnc not available for version 2.0

$ vncdesk 2
Traceback (most recent call last):
  File "/usr/bin/vncdesk", line 4, in <module>
    __import__('pkg_resources').run_script('vncdesk==1.4.1', 'vncdesk')
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 719, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1517, in run_script
    exec(script_code, namespace, namespace)
  File "/usr/lib/python2.7/site-packages/vncdesk-1.4.1-py2.7.egg/EGG-INFO/scripts/vncdesk", line 3, in <module>
    __requires__ = 'vncdesk==1.4.1'
  File "build/bdist.linux-x86_64/egg/vncdesk/__init__.py", line 1, in <module>
  File "build/bdist.linux-x86_64/egg/vncdesk/main.py", line 5, in <module>
  File "/usr/lib64/python2.7/site-packages/gi/__init__.py", line 122, in require_version
    (namespace, version))
ValueError: Namespace GtkVnc not available for version 2.0

What OS are you using? What is your configuration number 2?

Looks like you're running Python 2.7. Please install Python 3, which is listed as requirement for vncdesk.


Suggestion: specify the names of SourceFiles when creates SourceSpecs with RewriteTest

Currently, when using the yaml(), other(), etc... methods of the RewriteTest class, it is not possible to specify the name of the SourceFile yaml or the name of the Quark file, among others.
It would be very useful to be able to do this, as it is very likely that a recipe will want to browse yaml files whose name matches a specific pattern (e.g. "applicaction-test-xxx.yml") or find a file with a specific extension...
For example, for the following Recipe where you are looking for a Quark with a certain name to perform a logical:
static class MarkerRecipe extends Recipe {

    @Override
    public String getDisplayName() {
      return "Marker Recipe";
    }

    @Override
    protected List<SourceFile> visit(final List<SourceFile> before, final ExecutionContext ctx) {
      final AtomicBoolean markerFound = new AtomicBoolean(false);
      ListUtils.map(before, sourceFile -> {
        if (OpenRewriteUtils.isQuarkSource(sourceFile)) {
          final Quark quark = (Quark) sourceFile;
          if (quark.getSourcePath().endsWith("foo.marker")) {
            markerFound.set(true);
          }
        }
        return sourceFile;
      });

      if (markerFound.get()) {
           // some logic..
      }

      return super.visit(before, ctx);
    }

  }

if you run a test with RewriteTest:
   this.rewriteRun(recipeSpec -> recipeSpec.recipe(new MarkerRecipe()),
        this.mavenProject("myproject",
            this.other("content quark"),
            this.pomXml(beforePOM, afterPOM)));

this.other("content Quark") will create a Quark sourceFile named myproject/File, so I won't be able to test that the MarkerRecipe recipe finds the file foo.marker ever...

@ferblaca You will find overloaded methods in SourceSpecs that have a Consumer as a second/third argument:

default SourceSpecs other(String before, Consumer<SourceSpec<Quark>> spec)
default SourceSpecs pomXml(@Language("xml") String before, @Language("xml") String after, Consumer<SourceSpec<Xml.Document>> spec)]

You can use the consumer to mutate the source file further (including changing its path).
This is an example where the path is being mutated:
https://github.com/openrewrite/rewrite-spring/blob/main/src/test/kotlin/org/openrewrite/java/spring/boot2/search/IntegrationSchedulerPoolRecipeTest.kt#L152
If you are writing this in Java, the lambda would just be the third argument passed into this method.
Let me know if you have any questions, happy to jump on a zoom if that would help.

Actually, I am going to re-open this as a reminder that we need much better documentation/tutorials for RewriteTest

thanks for the info!!! all ok thank you

For reference, we explored extending the API with a Kotlin interface and decided this really didn't bring many benefits

This has been completed. See https://docs.openrewrite.org/tutorials/recipe-testing


Animations not firing in Safari sometimes

In Safari-Browser the animations are not firing sometimes. I cannot reproduce this issue, it appearrs to be random.
However, if you scroll down on the page until the elements that should be animated reach the top of the browser-window, the elements begin to appear.
I set the anchor-placement to "top-bottom", in other browsers its working fine.

I'm having the same issue. It seems to fire once you resize the browser.
I'm only using the basic setup
// initiate AOS magic
AOS.init({
  once: true,
});

Inspector view:

...

Some reason it's not triggering the 'inview'.

For now I'm just setting a timeout with a hard refresh until I have more time looking into this.
setTimeout(AOS.refreshHard, 150);

Yes I tried setting a timeout, too, did`nt work for me. I read in another thread to trigger AOS.refresh(), like this:
`
AOS.init({
startEvent: 'load'
});
$(window).on('load', function() {
AOS.refresh();
});
`
Seems to be working fine.

I also find this issue happening in Chrome. As you load the page, only the first image got animated and the rest stay still as if no animation applied. Only after I resize the browser windows the AOS gets activated.
The script place before the  as suggested by fsmoffice seems to fix this:

Don't worry guys it is a minor bug that shall be fixed nevertheless :)
A potential issue could be the use of the condition (document.readyState) within aos.js which would not work every time in Chrome/Firefox.

Okay, let me explain what is probably happening to you guys.
First of all it's not a bug per se. If you init AOS on document ready, that mean all the positions are being calculated right after HTML is loaded. If you have images on your page or other things that may change positions of other elements while loading - AOS can calculate wrong positions and it might look like some elements are not animating, in fact they are animating, but too early because of the wrong trigger positions.
In order to fix this you should refresh AOS after everything on your page is loaded (so that all elements are on theirs final positions). This should do the trick:
window.addEventListener('load', AOS.refresh);

I'll add short FAQ in README to make sure it's obvious for anyone.

Thank you all for your replies,
the Issue seems to be resolved, at least for me.
Thank you @michalsnik for the explanation.

A huge thank you for @michalsnik
This beautifully simple code really does the trick. It definitely should be added on the front page.

Already added, still not working.

Yes

Already added, still not working.

Yes, it doesn't work for me too!

Hello guys,

[x] Full test user agents (on chrome dev tool Window 10)

I fixed it with:
AOS.init({
  startEvent: 'load',
  disableMutationObserver: false,
});
AOS.refresh(true);

not work for me


Resize images

It doesn't seem possible to resize images, while shrinking the pixel dimensions of an image may well be the greatest optimization that can be done.
I did find imagemin-gm which requires a local installation of GraphicsMagick and for that reason it's a no-go. I need something that I can just npm i and let it do its thing. On top of that, I feel reizing images provides such a huge optimization, that it should probably be part of the main package.
And even if this were going to be a plugin... How would I pass image dimensions from the commandline to that plugin?
Resizing can easily be done without external dependencies, for example with sharp.

Have you read the source code of imagemin-cli?
--plugin option like --plugin.webp.quality=95 --plugin.webp.preset=icon will be parsed as an object:
{
	webp: {
		quality: 95,
		preset: "icon"
	}
}

You can create imagemin-sharp plugin that takes different operations as options.


Documentation and Project example updates.

Could you also update the docs and example? Thanks

Sorry for late response...
It updated to a new version! (Swift 3)
please try it 🐭


Add support for specifying a runtime/engine (iojs support)

It would be really nice to see support for specifying a js engine.
nvm install 0.11.14 - default to node.js engine
nvm install<EMAIL_ADDRESS>explicit node.js engine
nvm install<EMAIL_ADDRESS>explicit iojs engine.

close as duplicate of #590


Custom instrumentation to identify expensive overload resolution instances

Make --extendedDiagnostics list top functions by time and objects allocated.

@typescript-bot pack this

@typescript-bot pack this

@typescript-bot pack this

@typescript-bot pack this

This has evolved into https://github.com/microsoft/TypeScript/pull/37785


How to recover corrupt documents after upgrade to 3.7.15 and hard reset

My Environment
(ArangoDB 3.7.15 [linux] 64bit, using jemalloc, build tags/v3.7.15-0-gde9c21a1c7, VPack 0.1.33, RocksDB 6.8.0, ICU 64.2, V8 7.9.317, OpenSSL 1.1.1l  24 Aug 2021)

ArangoDB Version:        3.7.15
Storage Engine:             RocksDB
Deployment Mode:       Single Server
Deployment Strategy:   ArangoDB Starter
Configuration:               ----
Infrastructure:               AWS
Operating System:        Ubuntu 20.04
Total RAM in your machine:        96 GB
Disks in use:        SSD
Used Package:              Ubuntu

Hello, I've accidentally corrupted my arango database today after doing the 3.7.15 upgrade.
After the restart, queries were acumulating and taking too long, so i tried to kill arangod service by doing
sudo systemctl stop arangodb3
but it didn't worked, stayed like that for a couple of minutes, so i killed the process
kill -9 pid
Now seems I have a corrupt database with some missing documents.
My spring application fails to query the data
Oct 01 08:30:13 ip-172-31-72-80 sudo[3190]: com.arangodb.ArangoDBException: Response: 404, Error: 1202 - document not found
And when I try to manually load the record from the database I can find it in the index

But when I click it , it says document not found

I even tried replacing the document with a forced query
INSERT
{"_class":"com.model.Account","_id":"accounts/3356956195","_key":"3356956195","_rev":"_c908ORS---","createdAt":"2021-02-04T09:09:30.386Z"}
IN accounts
OPTIONS { overwrite: true,  overwriteMode: "replace"}

But also get error
Query: AQL: NotFound: (while executing)
Is there anyway to fix this ?
I need to remove the record from the index, so I can reinsert it.

maybe manually deleting it via the Documents DELETE API in the swagger UI works? https://www.arangodb.com/docs/stable/http/

maybe manually deleting it via the Documents DELETE API in the swagger UI works? https://www.arangodb.com/docs/stable/http/

Didn't worked...
curl -X DELETE "http://localhost:8529/_db/database/_api/document/accounts/3356956195" -H "accept: application/json" -H "Authorization: bearer xxxxxxxxxxx"
{
  "code": 404,
  "error": true,
  "errorMessage": "document not found",
  "errorNum": 1202
}

The solution was to dump the whole database and then restore it.
Thanks for the reply @dothebart


 can be used only with a valid ViewGroup root and attachToRoot=true

when i use snakebar,this problem has emerged.
 can be used only with a valid ViewGroup root and attachToRoot=true

I'm sorry but I do not understand this issue?
What exactly is the problem? Can you elaborate, maybe show a screenshot of the issue and provide some code that reproduces it?

when i load this library

this problem has emerged,this is code:

When I don't use it, it's perfect,I can't understand why

https://git.oschina.net/ruhaly/MVVM-FRAME.git
this is my demo source ,you can try it ,add a activity and use snackbar

I'm not sure this is linked to my library.
Version 3.1 uses v25 of the support library, so try upgrading that dependency and see if the problem persists.
Also: the code in that repository doesn't seem to be the code that is giving an error: there is no line 77 in the LoginActivity file (which is where your stacktrace points to)

please switch to    the branch: water-os
and  add a snackbar in loginActivity

I gave a complete code, please update
switch to the branch: water-os

Can you help me see

I found,
compile 'com.tbruyelle.rxpermissions:rxpermissions:0.9.1@aar'
compile 'com.wdullaer:materialdatetimepicker:3.1.0'
They are in conflict


Added VueLazyload and VueObserveVisibility

Related Issues

Closes #
Short Description and Why It's Useful

Added VueObserveVisibility and VueLazyload dependency

Screenshots of Visual Changes before/after (If There Are Any)

IMPORTANT NOTICE - Remember to update CHANGELOG.md with description of your change
Contribution and Currently Important Rules Acceptance

[ ] I read and followed contribution rules

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


导出导入后，接口或文件夹标题丢失变为----

I have checked the following:

[X] I use the newest version of bruno.
[X] I've searched existing issues and found nothing related to my issue.

Describe the bug
导出导入后，接口或文件夹标题丢失变为 ----
.bru file to reproduce the bug
No response
Screenshots/Live demo link

我也有这个问题,想用这个但是api 太多了无法导入,希望能解决,而且导入会丢数据导入了 20 多个,实际出来只有几个

Hi!
Our team is working on this. Refer https://github.com/usebruno/bruno/issues/2996 for more details.


why set dealwith_lossnan = False  by default

@Holmeyoung
dealwith_lossnan = False # whether to replace all nan/inf in gradients to zero
In the params.py why you set dealwith_lossnan = False?
to handle the problem "Just don't know why, but when i train the net, the loss always become nan after several epoch." should dealwith_lossnan be set as True?

@Holmeyoung thanks you so much

Before pytorch v1.2.0, there is something wrong with ctcloss, the gradients will become nan after several epoch. So, to fix this, i have to "replace all nan/inf in gradients to zero". But they fixed it after v1.2.0, and i just keeped this setting.

got it, thanks.


clean up code

Hi @PingHuskar thank you for contribution, can you help make it pass the workflow-job then I can merge it 🙏


Pm/display version from GitHub

One question regarding - why it is yellow ?

In this case I expect green .
v2.7.19-pr vs  v2.7.19


fix test_stn

Description
fix test_stn display setting which likely has been broken by dependency change.

@apache/mxnet-committers your attention is appreciated as the problem fixed in this PR is blocking the CI builds for other PRs.

LGTM, thanks for fixing this @szha.


fix: Type error with YAML dates in frontmatter

When valid YAML dates or times are added to the page frontmatter, the YAML parser will already convert them to datetime.date or datetime.datetime objects.
Example:
---
date: 2023-04-12
---

This resulted in #strptime raising a TypeError because datetime.date isn't a string. This commit changes the plugin code to always accept a native datetime.date or datetime.datetime, even if meta_time_format is not set, and handle them without string parsing.
Close #48

By the way, could you please update the docs? The related stuff should be in the "Global Settings" section of index.md.

I added an extra test about the fallback if time: is invalid and some more explicit return paths for the _parse_time method.

By the way, could you please update the docs? The related stuff should be in the "Global Settings" section of index.md.

I've added a note.


Tensorflow Lite 2.11.0-rc2 CMake build system broken

Click to expand!
Issue Type
Build/Install
Source
source
Tensorflow Version
2.11.0-rc2
Custom Code
No
OS Platform and Distribution
Android
Mobile device
N/A
Python version
3.9
Bazel version
N/A
GCC/Compiler version
Android NDK 24
CUDA/cuDNN version
N/A
GPU model and memory
N/A
Current Behaviour?
Unable to cross compile TFLite 2.11.0-rc2 for Android, using CMake.
I understand that v2.11.0 is still a release candidate. But I want to bring this issue to your attention. We rely heavily on TFLite (and the CMake workflow) in our production and we are looking forward to upgrading to v2.11.0, once it is officially released, to take advantage of fixes to long standing bugs and issues.
Here is the command I used to build:
mkdir tflite.build.android && cd tflite.build.android

cmake -G "Unix Makefiles" -DCMAKE_SYSTEM_NAME=Android -DANDROID_ABI=arm64-v8a -DANDROID_STL=c++_shared -DANDROID_NATIVE_API_LEVEL=27 -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_TOOLCHAIN_FILE=$HOME/Android/Sdk/ndk/24.0.8215888/build/cmake/android.toolchain.cmake -DTFLITE_ENABLE_XNNPACK=ON -DTFLITE_ENABLE_GPU=ON -DTFLITE_ENABLE_NNAPI=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF ../tensorflow/tensorflow/lite

make -j4

, and I get the following error:
 28%] Linking CXX executable flatc
cd /home/myname/myworkingdir/tflite.build.android/_deps/flatbuffers-build && /usr/local/bin/cmake -E cmake_link_script CMakeFiles/flatc.dir/link.txt --verbose=1
/home/myname/Android/Sdk/ndk/24.0.8215888/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android27 --sysroot=/home/myname/Android/Sdk/ndk/24.0.8215888/toolchains/llvm/prebuilt/linux-x86_64/sysroot -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fexceptions -frtti -stdlib=libc++ -O3 -DNDEBUG -Wl,--build-id=sha1 -Wl,--no-rosegment -Wl,--fatal-warnings -Qunused-arguments -Wl,--no-undefined  -Wl,--gc-sections CMakeFiles/flatc.dir/src/idl_parser.cpp.o CMakeFiles/flatc.dir/src/idl_gen_text.cpp.o CMakeFiles/flatc.dir/src/reflection.cpp.o CMakeFiles/flatc.dir/src/util.cpp.o CMakeFiles/flatc.dir/src/idl_gen_cpp.cpp.o CMakeFiles/flatc.dir/src/idl_gen_csharp.cpp.o CMakeFiles/flatc.dir/src/idl_gen_dart.cpp.o CMakeFiles/flatc.dir/src/idl_gen_kotlin.cpp.o CMakeFiles/flatc.dir/src/idl_gen_go.cpp.o CMakeFiles/flatc.dir/src/idl_gen_java.cpp.o CMakeFiles/flatc.dir/src/idl_gen_ts.cpp.o CMakeFiles/flatc.dir/src/idl_gen_php.cpp.o CMakeFiles/flatc.dir/src/idl_gen_python.cpp.o CMakeFiles/flatc.dir/src/idl_gen_lobster.cpp.o CMakeFiles/flatc.dir/src/idl_gen_lua.cpp.o CMakeFiles/flatc.dir/src/idl_gen_rust.cpp.o CMakeFiles/flatc.dir/src/idl_gen_fbs.cpp.o CMakeFiles/flatc.dir/src/idl_gen_grpc.cpp.o CMakeFiles/flatc.dir/src/idl_gen_json_schema.cpp.o CMakeFiles/flatc.dir/src/idl_gen_swift.cpp.o CMakeFiles/flatc.dir/src/flatc.cpp.o CMakeFiles/flatc.dir/src/flatc_main.cpp.o CMakeFiles/flatc.dir/src/bfbs_gen_lua.cpp.o CMakeFiles/flatc.dir/src/code_generators.cpp.o CMakeFiles/flatc.dir/grpc/src/compiler/cpp_generator.cc.o CMakeFiles/flatc.dir/grpc/src/compiler/go_generator.cc.o CMakeFiles/flatc.dir/grpc/src/compiler/java_generator.cc.o CMakeFiles/flatc.dir/grpc/src/compiler/python_generator.cc.o CMakeFiles/flatc.dir/grpc/src/compiler/swift_generator.cc.o CMakeFiles/flatc.dir/grpc/src/compiler/ts_generator.cc.o -o flatc   -latomic -lm
Running scripts/generate_code.py...
cd /home/myname/myworkingdir/tflite.build.android/flatbuffers && /usr/bin/python3.9 scripts/generate_code.py --flatc /home/myname/myworkingdir/tflite.build.android/_deps/flatbuffers-build/flatc --skip-gen-reflection
Traceback (most recent call last):
  File "/home/myname/myworkingdir/tflite.build.android/flatbuffers/scripts/generate_code.py", line 148, in <module>
    flatc(
  File "/home/myname/myworkingdir/tflite.build.android/flatbuffers/scripts/generate_code.py", line 82, in flatc
    result = subprocess.run(cmd, cwd=str(cwd), check=True)
  File "/usr/lib/python3.9/subprocess.py", line 505, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/usr/lib/python3.9/subprocess.py", line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.9/subprocess.py", line 1821, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: '/home/myname/myworkingdir/tflite.build.android/_deps/flatbuffers-build/flatc'
make[2]: *** [_deps/flatbuffers-build/CMakeFiles/flatc.dir/build.make:566: _deps/flatbuffers-build/flatc] Error 1
make[2]: *** Deleting file '_deps/flatbuffers-build/flatc'
make[2]: Leaving directory '/home/myname/myworkingdir/tflite.build.android'
make[1]: *** [CMakeFiles/Makefile2:4720: _deps/flatbuffers-build/CMakeFiles/flatc.dir/all] Error 2
make[1]: Leaving directory '/home/myname/myworkingdir/tflite.build.android'
make: *** [Makefile:139: all] Error 2

The problem seems to be that Python tries to invoke the flatbuffers/scripts/generate_code.py script, which attempts to run /home/myname/myworkingdir/tflite.build.android/_deps/flatbuffers-build/flatc, which does not exist.
TFLite v2.10.1 builds fine, but as far as I can tell, for v2.10.1m there is no attempt to invoke generate_code.py or _deps/flatbuffers-build/flatc
Standalone code to reproduce the issue
mkdir tflite.build.android && cd tflite.build.android

cmake -G "Unix Makefiles" -DCMAKE_SYSTEM_NAME=Android -DANDROID_ABI=arm64-v8a -DANDROID_STL=c++_shared -DANDROID_NATIVE_API_LEVEL=27 -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_TOOLCHAIN_FILE=$HOME/Android/Sdk/ndk/24.0.8215888/build/cmake/android.toolchain.cmake -DTFLITE_ENABLE_XNNPACK=ON -DTFLITE_ENABLE_GPU=ON -DTFLITE_ENABLE_NNAPI=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF ../tensorflow/tensorflow/lite

make -j4

Relevant log output
28%] Linking CXX executable flatc
cd /home/myname/myworkingdir/tflite.build.android/_deps/flatbuffers-build && /usr/local/bin/cmake -E cmake_link_script CMakeFiles/flatc.dir/link.txt --verbose=1
/home/myname/Android/Sdk/ndk/24.0.8215888/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android27 --sysroot=/home/myname/Android/Sdk/ndk/24.0.8215888/toolchains/llvm/prebuilt/linux-x86_64/sysroot -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fexceptions -frtti -stdlib=libc++ -O3 -DNDEBUG -Wl,--build-id=sha1 -Wl,--no-rosegment -Wl,--fatal-warnings -Qunused-arguments -Wl,--no-undefined  -Wl,--gc-sections CMakeFiles/flatc.dir/src/idl_parser.cpp.o CMakeFiles/flatc.dir/src/idl_gen_text.cpp.o CMakeFiles/flatc.dir/src/reflection.cpp.o CMakeFiles/flatc.dir/src/util.cpp.o CMakeFiles/flatc.dir/src/idl_gen_cpp.cpp.o CMakeFiles/flatc.dir/src/idl_gen_csharp.cpp.o CMakeFiles/flatc.dir/src/idl_gen_dart.cpp.o CMakeFiles/flatc.dir/src/idl_gen_kotlin.cpp.o CMakeFiles/flatc.dir/src/idl_gen_go.cpp.o CMakeFiles/flatc.dir/src/idl_gen_java.cpp.o CMakeFiles/flatc.dir/src/idl_gen_ts.cpp.o CMakeFiles/flatc.dir/src/idl_gen_php.cpp.o CMakeFiles/flatc.dir/src/idl_gen_python.cpp.o CMakeFiles/flatc.dir/src/idl_gen_lobster.cpp.o CMakeFiles/flatc.dir/src/idl_gen_lua.cpp.o CMakeFiles/flatc.dir/src/idl_gen_rust.cpp.o CMakeFiles/flatc.dir/src/idl_gen_fbs.cpp.o CMakeFiles/flatc.dir/src/idl_gen_grpc.cpp.o CMakeFiles/flatc.dir/src/idl_gen_json_schema.cpp.o CMakeFiles/flatc.dir/src/idl_gen_swift.cpp.o CMakeFiles/flatc.dir/src/flatc.cpp.o CMakeFiles/flatc.dir/src/flatc_main.cpp.o CMakeFiles/flatc.dir/src/bfbs_gen_lua.cpp.o CMakeFiles/flatc.dir/src/code_generators.cpp.o CMakeFiles/flatc.dir/grpc/src/compiler/cpp_generator.cc.o CMakeFiles/flatc.dir/grpc/src/compiler/go_generator.cc.o CMakeFiles/flatc.dir/grpc/src/compiler/java_generator.cc.o CMakeFiles/flatc.dir/grpc/src/compiler/python_generator.cc.o CMakeFiles/flatc.dir/grpc/src/compiler/swift_generator.cc.o CMakeFiles/flatc.dir/grpc/src/compiler/ts_generator.cc.o -o flatc   -latomic -lm
Running scripts/generate_code.py...
cd /home/myname/myworkingdir/tflite.build.android/flatbuffers && /usr/bin/python3.9 scripts/generate_code.py --flatc /home/myname/myworkingdir/tflite.build.android/_deps/flatbuffers-build/flatc --skip-gen-reflection
Traceback (most recent call last):
  File "/home/myname/myworkingdir/tflite.build.android/flatbuffers/scripts/generate_code.py", line 148, in <module>
    flatc(
  File "/home/myname/myworkingdir/tflite.build.android/flatbuffers/scripts/generate_code.py", line 82, in flatc
    result = subprocess.run(cmd, cwd=str(cwd), check=True)
  File "/usr/lib/python3.9/subprocess.py", line 505, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/usr/lib/python3.9/subprocess.py", line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.9/subprocess.py", line 1821, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: '/home/myname/myworkingdir/tflite.build.android/_deps/flatbuffers-build/flatc'
make[2]: *** [_deps/flatbuffers-build/CMakeFiles/flatc.dir/build.make:566: _deps/flatbuffers-build/flatc] Error 1
make[2]: *** Deleting file '_deps/flatbuffers-build/flatc'
make[2]: Leaving directory '/home/myname/myworkingdir/tflite.build.android'
make[1]: *** [CMakeFiles/Makefile2:4720: _deps/flatbuffers-build/CMakeFiles/flatc.dir/all] Error 2
make[1]: Leaving directory '/home/myname/myworkingdir/tflite.build.android'
make: *** [Makefile:139: all] Error 2

hey i am a beginner in this community can i help you solve this issue

@Aryanryn09
Could you please refer to the Cross compilation TensorFlow Lite with CMake and Build TensorFlow Lite with CMake and let us know if it helps.
Thank you!

@tiruk007, Tensorflow Lite v 2.11.0 was just released, but I get the same build error. I will close this ticket and file a new one for V2.11.0. I tried https://www.tensorflow.org/lite/guide/build_cmake but it doesn't help. Please see the new ticket (https://github.com/tensorflow/tensorflow/issues/58636) for more details.


How can I dismiss or press OK on a JS alert() dialog.  (Using CLI and feature files)

Hi @tphillips,
I don't know sorry. Maybe its possible using lower level API, see http://webdriver.io/api.html

Following migration to puppeteer, you should be able to do that with browser side JS.


"permission denied for relation gorp_migrations" on Raspberry Pi 3 mod B

Hi, brocaar,
I am working with Raspberry Pi 3 mod B (Raspbian Jessie). I followed the tutorial and finished the setup. However, I got "applying migrations failed: pq: permission denied for relation gorp_migrations" error when I started the lora server. I have granted the privileges of database table to user loraserver_as and loraserver_ns.
Would you please give some help on this issue? Thanks in advance.
Best Regards,
Xuanliang

To me it seems that your POSTGRES_DSN / --postgres-dsn setting might be incorrect / does not contain the password that you set for your role.

Thank you for the correction. Now I can start the server without errors. But the web interface shows "Error pq: relation "user" does not exist (code: 2)".
My configs go like this:
Server:
loraserver --net-id "010203" --band "EU_863_870" --postgres-dsn "postgres://loraserver_ns:dbpassword@localhost/loraserver_ns?sslmode=disable" --db-automigrate

App server:
lora-app-server --postgres-dsn "postgres://loraserver_as:dbpassword@localhost/loraserver_as?sslmode=disable" --jwt-secret "C1TXibQJsfquG9C6sPhks6h6zDwMrIlQYv8sDzlaYGs=" --log-level="5" --http-tls-cert="/home/pi/certs/http.pem" --http-tls-key="/home/pi/certs/http-key.pem"

The password for user loraserver_as and loraserver_ns is "dbpassword" which is default value in the doc.
Thank you for your help and patience.

@Yaoshicn add --db-automigrate to the lora-app-server command and all should be fixed :-)

It works! Thank you!


fanficfare: 2.23.0 -> 2.25.0

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
This update was made based on information from https://repology.org/metapackage/fanficfare/versions.
These checks were done:

built on NixOS
ran ‘/nix/store/v61hi3r06i5xxsmcdk4cs7jijflf1fxh-fanficfare-2.25.0/bin/.fanficfare-wrapped -h’ got 0 exit code
ran ‘/nix/store/v61hi3r06i5xxsmcdk4cs7jijflf1fxh-fanficfare-2.25.0/bin/.fanficfare-wrapped --help’ got 0 exit code
ran ‘/nix/store/v61hi3r06i5xxsmcdk4cs7jijflf1fxh-fanficfare-2.25.0/bin/.fanficfare-wrapped -v’ and found version 2.25.0
ran ‘/nix/store/v61hi3r06i5xxsmcdk4cs7jijflf1fxh-fanficfare-2.25.0/bin/.fanficfare-wrapped --version’ and found version 2.25.0
ran ‘/nix/store/v61hi3r06i5xxsmcdk4cs7jijflf1fxh-fanficfare-2.25.0/bin/fanficfare -h’ got 0 exit code
ran ‘/nix/store/v61hi3r06i5xxsmcdk4cs7jijflf1fxh-fanficfare-2.25.0/bin/fanficfare --help’ got 0 exit code
ran ‘/nix/store/v61hi3r06i5xxsmcdk4cs7jijflf1fxh-fanficfare-2.25.0/bin/fanficfare -v’ and found version 2.25.0
ran ‘/nix/store/v61hi3r06i5xxsmcdk4cs7jijflf1fxh-fanficfare-2.25.0/bin/fanficfare --version’ and found version 2.25.0
found 2.25.0 with grep in /nix/store/v61hi3r06i5xxsmcdk4cs7jijflf1fxh-fanficfare-2.25.0
directory tree listing: https://gist.github.com/a5ca8fdb686eb942eb92828f63be5af0

cc @lucas8 for review

Success on x86_64-linux (full log)
Attempted: fanficfare
Partial log (click to expand)
writing entry points to FanFicFare.egg-info/entry_points.txt
reading manifest file 'FanFicFare.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'FanFicFare.egg-info/SOURCES.txt'
running build_ext

----------------------------------------------------------------------
Ran 0 tests in 0.000s

OK

Success on aarch64-linux (full log)
Attempted: fanficfare
Partial log (click to expand)
reading manifest file 'FanFicFare.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'FanFicFare.egg-info/SOURCES.txt'
running build_ext

----------------------------------------------------------------------
Ran 0 tests in 0.000s

OK
/nix/store/359gc2jxdfinckazkw2ddrpnqm083z0g-fanficfare-2.25.0

No attempt on x86_64-darwin (full log)
The following builds were skipped because they don't evaluate on x86_64-darwin: fanficfare
Partial log (click to expand)

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.


postgresql connector

Coverage increased (+0.6%) to 49.872% when pulling 4e93bcf41f13c47a2b685bd72d48f8edb44bd26c on postgresql into 3f684e8ca42de75409cf57f283df76b886fb780b on master.

Coverage increased (+0.6%) to 49.872% when pulling c018598f2d68eeef9acf72ffec710dfb848cd5eb on postgresql into 246abfb3bf7d48f6b1cb6b90e8545edec186630c on master.

Coverage increased (+0.5%) to 52.821% when pulling aa4c2e2f30cf3ba5b6fc2f9824a79c30e2c59771 on postgresql into 9f2e3a1d23971d4533a4f961871a80e44df9c8a2 on master.

Coverage decreased (-0.6%) to 51.686% when pulling c1dc38fbc32521eec016323e0f1ad74e818c83c5 on postgresql into 9f2e3a1d23971d4533a4f961871a80e44df9c8a2 on master.

Coverage increased (+1.4%) to 35.282% when pulling cd413537e3b829f471152af2fe8c7e64f11f8293 on postgresql into 802fe8592313d6e4cbe016572d3a21243035c61d on master.

Let's close this PR in order to include this branch in Jenkins for deploying postgresql connector.


Date parsing and quotes

How comes when I have a front-matter field for the date such as:
date: '2016-09-10'

it yields this on build
malachi@pulsar toy $ ./vendor/bin/jigsaw build

Building local site
Building files from source...

In 94fa008e79391fab6bca27b2dbfc9ea9b1cebe49.php line 3:

  Call to a member function format() on bool (View: /home/malachi/code/web/toy/source/_components/post-preview-inline.blade.php) (View: /home/malachi/code/web/toy/source/_components/post-previ
  ew-inline.blade.php)

In 94fa008e79391fab6bca27b2dbfc9ea9b1cebe49.php line 3:

  Call to a member function format() on bool (View: /home/malachi/code/web/toy/source/_components/post-preview-inline.blade.php)

In 94fa008e79391fab6bca27b2dbfc9ea9b1cebe49.php line 3:

  Call to a member function format() on bool

build [--pretty PRETTY] [-c|--cache [CACHE]] [--] [<env>]

yet
date: 2016-09-10

works. My understanding of YAML is that both should be treated as string, yet with quote's it seems to be parsed as bool from the error.

Strings in YAML don't have to be quoted, so I believe enclosing a date in quotes actually forces the YAML parser to treat it as a string, which is useful for strings containing special characters or leading/trailing spaces. The Symfont YAML component (which is what we use under the hood) always shows them without quotes, so I would suggest entering them that way.
use Symfony\Component\Yaml\Yaml;

Yaml::parse('date: 2020-07-31');
// returns ['date' =><PHONE_NUMBER>]

Yaml::parse('date: "2020-07-31"');
// returns ['date' => '2020-07-31']


Plugin attempts to retrieve MFA with every run

Describe the bug
Plugin attempts to retrieve the MFA with each run. The MFA is still cached by awsume, and if I cancel the plugin auth awsume still functions properly,
Expected behavior
The plugin should not request 1Password auth if the MFA is cached by awsume
Output
Invoke awsume with the --debug flag and paste the resulting output below. Make sure to include the command you ran, with all of the flags. If the program crashed then make sure to include the stack trace and all relevant error messages.
❯ awsume sre-team@lv-tst2
1Password: error initializing client: authorization prompt dismissed, please try again

Session token will expire at 2023-08-29 20:58:35
[sre-team@lv-tst2] Role credentials will expire 2023-08-29 16:03:39

Configuration
If relevant, please share your AWSume configuration file below. This file should be free of secrets, but please verify before submitting your report.
1password: aws_lv-techops_earchibald
colors: true
console:
  browser:
    command: ''
  browser_command: ''
fuzzy-match: true
role-duration: 0
role-session-name: earchibald

Additional context
Add any other context about the problem here.

I see the problem, @earchibald-lv; it's because we perform an op signin on every invocation even if the creds are cached. I'll look into it tomorrow; thanks for the report.

Alright @earchibald-lv; I have a fix queued up for release on main. As profiles and chains can get very complicated, I'd like to ask for your help in testing it, if you're willing.

The assumption I'm making is that when an MFA token is required, it's always required for the first account in the role-assumption chain, never for accounts that come later in the chain. Thus, I lazily only check for a cached session on the first profile, and avoid calling 1Password if it seems that no token will be required.
This simplification/assumption won't work for everyone, but AWSume itself has a fundamental limitation, as far as I can tell: only one MFA token can be passed on the CLI. So, there is a fundamental assumption that only one account in the chain will ever need MFA. I'm hoping that for most people, it's the first.
If your testing indicates that this change is solid for you, I'll release a new version of the package. Let me know.

Hello @earchibald-lv -- I've published v1.2.0 with a fix for your issue. Please let me know if it worked.


fix: format GroupResources [zh]

* is required, it will be rendered as *, see the current page here:

I see it's not aligned. Is it set up this way intentionally?

it's a pre-defined style, <code>xx<code> renders extra spaces around xx


data:B2prakash

Fixes Issue

Changes proposed

Check List (Check all the applicable boxes)

[x] My code follows the code style of this project.
[ ] My change requires changes to the documentation.
[ ] I have updated the documentation accordingly.
[ ] All new and existing tests passed.
[x] This PR does not contain plagiarized content.
[x] The title of my pull request is a short description of the requested changes.

Screenshots

Note to reviewers
you'll are doing a great job . i would like my linkfree profile to be updated

Did you mean to close this @B2prakash ?


Element14 Rev C ID

There may be a typo or error with the last two bytes in the Rev C identifier under your EEPROM database section in the readme:
C: [aa 55 33 ee 41 33 33 35  42 4e 4c 54 30 30 30 43 |.U3.A335BNLT000C|]

On our Element14 Rev C we read (not byteswapped):
[ 55aa ee33 3341 3533 4e42 544c 3030 3043  | .U3.A335BNLT00C0 ]

So, 'some' clones ended up being quite liberal on their choices, would you please confirm via:
wget https://raw.githubusercontent.com/RobertCNelson/boot-scripts/master/device/bone/tester/show-eeprom.sh
sudo /bin/bash show-eeprom.sh

Example:
debian@test-bbb-2:~$ sudo /bin/bash show-eeprom.sh
eeprom: [�U3�A335BNLT0A5B]
eeprom raw: [00000000  aa 55 33 ee 41 33 33 35  42 4e 4c 54 30 41 35 42  |.U3.A335BNLT0A5B|]

eeprom: [�U3�A335BNLT00C0]
eeprom raw: [00000000  aa 55 33 ee 41 33 33 35  42 4e 4c 54 30 30 43 30  |.U3.A335BNLT00C0|]

@jadonk can you ping them, is this a newer rev?

Thanks @spiderkeys i've added it to the list, not sure what changed... Hopefully Jason can find out. ;)

@spiderkeys , can you run the script again. (just pushed a change to also get the board serial number) we are trying to track what happened, but the ID number is also needed
wget https://raw.githubusercontent.com/RobertCNelson/boot-scripts/master/device/bone/tester/show-eeprom.sh
sudo /bin/bash show-eeprom.sh

sudo /bin/bash show-eeprom.sh
eeprom: [�U3�A335BONE00A5]
eeprom raw: [00000000  aa 55 33 ee 41 33 33 35  42 4f 4e 45 30 30 41 35  |.U3.A335BONE00A5|]
eeprom raw: [00000010  31 30 31 32 42 42 30 31  32 33 39 31 00 00 00 00  |1012BB012391....|]

Thanks!

eeprom: [�U3�A335BNLT00C0]
eeprom raw: [00000000  aa 55 33 ee 41 33 33 35  42 4e 4c 54 30 30 43 30  |.U3.A335BNLT00C0|]
eeprom raw: [00000010  33 36 31 35 42 42 42 4b  31 35 37 32 ff ff ff ff  |3615BBBK1572....|]

The report from E14 is they took this number "00C0" from the SRM.


How do i even make a effect?

Describe your problem here.
How do i make this Effect from You Cant Run, The red Image that appears, i Have no Idea how to make that

?
Are you modding a build from source or with Lua?
Source
What is your build target?
Windows x64
Did you edit anything in this build? If so, mention or summarize your changes.
I did not Edit anything In my build

Add a FlxSprite/BGSprite on screen using this image.


unable to get MSAL authorization token for storage API

Related command
Terraform commands for azurerm provider.
az login also does seem to have issues to login every time.
Describe the bug
When executing terraform commands using azurerm provider it takes forever to finish them up or to even start.
In most cases command fails with auth related error:
│ Error: unable to get MSAL authorization token for storage API: obtaining Authorization Token from the Azure CLI: parsing json result from the Azure CLI: waiting for the Azure CLI: exit status 1: ERROR: The command failed with an unexpected error. Here is the traceback: │ ERROR: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')) │ Traceback (most recent call last): │   File "/opt/az/lib/python3.10/site-packages/urllib3/connectionpool.py", line 699, in urlopen │     httplib_response = self._make_request( │   File "/opt/az/lib/python3.10/site-packages/urllib3/connectionpool.py", line 445, in _make_request │     six.raise_from(e, None) │   File "<string>", line 3, in raise_from │   File "/opt/az/lib/python3.10/site-packages/urllib3/connectionpool.py", line 440, in _make_request │     httplib_response = conn.getresponse() │   File "/opt/az/lib/python3.10/http/client.py", line 1374, in getresponse │     response.begin() │   File "/opt/az/lib/python3.10/http/client.py", line 318, in begin │     version, status, reason = self._read_status() │   File "/opt/az/lib/python3.10/http/client.py", line 287, in _read_status │     raise RemoteDisconnected("Remote end closed connection without" │ http.client.RemoteDisconnected: Remote end closed connection without response │  │ During handling of the above exception, another exception occurred: │  │ Traceback (most recent call last): │   File "/opt/az/lib/python3.10/site-packages/requests/adapters.py", line 439, in send │     resp = conn.urlopen( │   File "/opt/az/lib/python3.10/site-packages/urllib3/connectionpool.py", line 755, in urlopen │     retries = retries.increment( │   File "/opt/az/lib/python3.10/site-packages/urllib3/util/retry.py", line 532, in increment │     raise six.reraise(type(error), error, _stacktrace) │   File "/opt/az/lib/python3.10/site-packages/urllib3/packages/six.py", line 769, in reraise │     raise value.with_traceback(tb) │   File "/opt/az/lib/python3.10/site-packages/urllib3/connectionpool.py", line 699, in urlopen │     httplib_response = self._make_request( │   File "/opt/az/lib/python3.10/site-packages/urllib3/connectionpool.py", line 445, in _make_request │     six.raise_from(e, None) │   File "<string>", line 3, in raise_from │   File "/opt/az/lib/python3.10/site-packages/urllib3/connectionpool.py", line 440, in _make_request │     httplib_response = conn.getresponse() │   File "/opt/az/lib/python3.10/http/client.py", line 1374, in getresponse │     response.begin() │   File "/opt/az/lib/python3.10/http/client.py", line 318, in begin │     version, status, reason = self._read_status() │   File "/opt/az/lib/python3.10/http/client.py", line 287, in _read_status │     raise RemoteDisconnected("Remote end closed connection without" │ urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')) │  │ During handling of the above exception, another exception occurred: │  │ Traceback (most recent call last): │   File "/opt/az/lib/python3.10/site-packages/knack/cli.py", line 233, in invoke │     cmd_result = self.invocation.execute(args) │   File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 663, in execute │     raise ex │   File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 726, in _run_jobs_serially │     results.append(self._run_job(expanded_arg, cmd_copy)) │   File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 697, in _run_job │     result = cmd_copy(params) │   File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 333, in __call__ │     return self.handler(*args, **kwargs) │   File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler │     return op(**command_args) │   File "/opt/az/lib/python3.10/site-packages/azure/cli/command_modules/profile/custom.py", line 66, in get_access_token │     creds, subscription, tenant = profile.get_raw_token(subscription=subscription, resource=resource, scopes=scopes, │   File "/opt/az/lib/python3.10/site-packages/azure/cli/core/_profile.py", line 383, in get_raw_token │     sdk_token = credential.get_token(*scopes) │   File "/opt/az/lib/python3.10/site-packages/azure/cli/core/auth/msal_authentication.py", line 63, in get_token │     result = self.acquire_token_silent_with_error(list(scopes), self._account, claims_challenge=claims, **kwargs) │   File "/opt/az/lib/python3.10/site-packages/msal/application.py", line 1287, in acquire_token_silent_with_error │     result = self._acquire_token_silent_from_cache_and_possibly_refresh_it( │   File "/opt/az/lib/python3.10/site-packages/msal/application.py", line 1392, in _acquire_token_silent_from_cache_and_possibly_refresh_it │     result = _clean_up(self._acquire_token_silent_by_finding_rt_belongs_to_me_or_my_family( │   File "/opt/az/lib/python3.10/site-packages/msal/application.py", line 1444, in _acquire_token_silent_by_finding_rt_belongs_to_me_or_my_family │     last_resp = at = self._acquire_token_silent_by_finding_specific_refresh_token( │   File "/opt/az/lib/python3.10/site-packages/msal/application.py", line 1491, in _acquire_token_silent_by_finding_specific_refresh_token │     response = client.obtain_token_by_refresh_token( │   File "/opt/az/lib/python3.10/site-packages/msal/oauth2cli/oauth2.py", line 830, in obtain_token_by_refresh_token │     resp = super(Client, self).obtain_token_by_refresh_token( │   File "/opt/az/lib/python3.10/site-packages/msal/oauth2cli/oauth2.py", line 262, in obtain_token_by_refresh_token │     return self._obtain_token("refresh_token", data=data, **kwargs) │   File "/opt/az/lib/python3.10/site-packages/msal/oauth2cli/oidc.py", line 116, in _obtain_token │     ret = super(Client, self)._obtain_token(grant_type, *args, **kwargs) │   File "/opt/az/lib/python3.10/site-packages/msal/oauth2cli/oauth2.py", line 771, in _obtain_token │     resp = super(Client, self)._obtain_token( │   File "/opt/az/lib/python3.10/site-packages/msal/oauth2cli/oauth2.py", line 234, in _obtain_token │     resp = (post or self._http_client.post)( │   File "/opt/az/lib/python3.10/site-packages/msal/individual_cache.py", line 269, in wrapper │     value = function(*args, **kwargs) │   File "/opt/az/lib/python3.10/site-packages/msal/individual_cache.py", line 269, in wrapper │     value = function(*args, **kwargs) │   File "/opt/az/lib/python3.10/site-packages/requests/sessions.py", line 590, in post │     return self.request('POST', url, data=data, json=json, **kwargs) │   File "/opt/az/lib/python3.10/site-packages/requests/sessions.py", line 542, in request │     resp = self.send(prep, **send_kwargs) │   File "/opt/az/lib/python3.10/site-packages/requests/sessions.py", line 655, in send │     r = adapter.send(request, **kwargs) │   File "/opt/az/lib/python3.10/site-packages/requests/adapters.py", line 498, in send │     raise ConnectionError(err, request=request) │ requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')) │ To check existing issues, please visit: https://github.com/Azure/azure-cli/issues │ To open a new issue, please run az feedback``
Expected behavior
Terraform commands are able to use logged in user info,
Environment summary
Linux

Apparently issue was caused by failed az logins. No idea why it didn't cause immediate auth errors but those cryptic ones , but after eventually logging out and in for a few times ( first attempts did hung up as well by not returning back to the terminal )  terraform started to work fine again.


Fix: the broken starkscan links in deployed contracts

Fixes: #40

Fixed the Starkscan broken link for Deployed Contracts > Starknet Mainnet > Naming
Added the (View on Starkscan) button in Deployed Contracts > Sepolia > Tax Contract

okay will do

resolved!

Please review it @fricoben

Hey @fricoben, please lmk if there are anymore changes that are required!