#419 Added PouchDB implementation with database size checkpoints

This change is

PR is added to the queue for testing as 1. task. (298ded4)

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

Test (Success) 81316179 build is completed (298ded4)
See https://github.com/ThaliTester/TestResults/tree/81316179298ded4__419_Added_PouchDB_implementation_with_database_size_checpoints_artemjackson/ for the logs

Test<PHONE_NUMBER>8ded4(298ded4) has successfully finished without an error
See https://github.com/ThaliTester/TestResults/tree/81316179298ded4__419_Added_PouchDB_implementation_with_database_size_checpoints_artemjackson/ for the logs

Should be started from and submitted to vNext_417_1. Closed.


Static error page (fullstatic or hybrid)

Problem
I've been trying for a few days to generate a fullstatic nuxt build with a 404 page. It seems for me that the most reliable way to do this was only with the fallback site option. My main problem with this fallback option is that the build turns the error page into a complete SPA page (with all client-side store and asyncData requests).
In my case the API of the backend is not public accessible and the page need to be load data for the footer and header via a store. All of these workarounds not working or send request on client-side.
Working with a explicit 404.vue page and not with the error.vue layout brings other problems with the sitemap, statuscodes or urls with i18n. It can be handled, yes, but it shouldnt be such a mess.
Possible Solutions
It would be a nice feature when the error page has only in fullstatic mode features to prerender it without SPA, a static site only for htacess rules like 'ErrorDocument 404 /404.html'.
I understand why it has to be a SPA so it could be an other option to create a hybrid with possibilities to inject data in a render proccess (with nuxtServerInit) and SPA mode.
Thank you :-)

Hello @vampics !
Did you find a way to do it 100% static without client-side API call ?

Hello @ClementLmn,
Sorry for the late reply.
Certainly not the best solution but I have found a basic way that fits well into our workflow. For the time being, we are using the method I mentioned to create the 404 as a dedicated page.
NuxtConfig
We exclude everything, disable the fallback and only add the 404 pages for the generate task.
generate: {
    fallback: false,
    exclude: [
        /^.*$/
    ],
    crawler: false,
    async routes() {

        const generateRoutes = [];

       (... some stuff and get all routes from CMS ...)

        generateRoutes.push('/404');

        return generateRoutes;

    }
}

Pages - error.vue
We created the 404 page in pages
<template>

404

</template>

Layouts - error.vue
To have a 404/error page in dev or start we create the error.vue in layout with an extend of the 404 page in pages.
import ErrorPage from '~/pages/404';

export default {

    extends: ErrorPage,

    props: ['error'],

};

static - .htaccess
Linking a not founded page to the 404 document
ErrorDocument 404 /404.html

Disadvantages/Unsolved problems

In my example, there is no distinction between running into a 404 or any other error.
The header error codes must be resolved manually via the htaccess.
In combination with i18n, htaccess must be used to redirect or rewrite the 404 to the correct language.
When generating a sitemap, you also have to exclude it. We have the same thing with the sitemap generation as with the nuxt generate.

sitemap: {
    exclude: [
        '**/*'
    ],
    routes: async () => {
       (... some stuff and get all routes from CMS ...)
    }
}

Good Luck!

Hello @vampics !
Thanks a lot for the detailed explanation 👌
Hopefully we'll have something more robust to work with in the future

Same issue, when i want to create an error.vue with a useFetch... if the useFetch in error.vue fails, redirect to error.vue... we can handle error situation in error.vue :(

Note - the 3.x issue to track is https://github.com/nuxt/nuxt/issues/18718


Rename the run --components-path flag to a name for suitable for loading many resource types

Describe the proposal
When the CLI came out there were only components, now we have 2 more, subscriptions and reliability spec so we need to change the naming accordingly to reflect that this path is used to load multiple types of resources. We can still keep --components-path and slowly deprecate this.
I suggest --resources-path or --spec-resources-path given that we refer to these as specs in the docs.
Also see https://github.com/dapr/cli/issues/950 as a related issue.
Release Note

RELEASE NOTE:

I agree that once resiliency files are added as part of CLI init, this would make sense to rename the flag.
Also following the deprecation policy in dapr, the --components-path will need to be deprecated first aliased as some other appropriate flag name and later removed 2 releases later.

I do not think the name should contain resiliency, since there are also subscription resource types and I expect there will be more resource types in the future. Part of this is that we need to agree on a good name for these resources (staying away from CRDs which is a K8s term).

I suggest --resources-path or --spec-resources-path given that we refer to these as specs in the docs.

We use  --spec-resources-path is more appropriate? I will assign this issue.

/assign

@artursouza @yaron2 @msfussell Should this be changed in daprd binary flags as well? As dapr CLI just passes on the value to the daprd executable.
From daprd -help
-components-path string
    	Path for components directory. If empty, components will not be loaded. Self-hosted mode only

In this case I also prefer the --resources-path instead of spec-resources-path.

@artursouza @yaron2 @msfussell Should this be changed in daprd binary flags as well? As dapr CLI just passes on the value to the daprd executable. From daprd -help
-components-path string
    	Path for components directory. If empty, components will not be loaded. Self-hosted mode only

In this case I also prefer the --resources-path instead of spec-resources-path.

Yes this should be a daprd flag as well.

Agree this should be a daprd flag

Moving to 1.10 as there are still some unresolved questions that need decision on the associated pr

Renaming comnponents-path to resources-path will affect many other repos like quickstarts, sdk examples.
same with if we are planning to change the directory name to resources instead of components.
thoughts @mukundansundar @yaron2 @msfussell

Renaming comnponents-path to resources-path will affect many other repos like quickstarts, sdk examples.
same with if we are planning to change the directory name to resources instead of components.
thoughts @mukundansundar @yaron2 @msfussell

For the arguments... We can support both for now and mark the components path arg as deprecated.
For the directory we can do the same (init both dirs with same content) and we can add in docs and release notes that resources should be used instead of components?
At a later point following either deprecation policy or longer (since components path and components dir has been there for a long time) we can remove components path support completely.
Thoughts?

@mukundansundar I agree with the approach. Here is how we can proceed -

Accept the current PR -

introduce the resources-path flag [done].
Introduce a deprecation warning for components-path flag. [should be done in this PR]

LGTM

Create a tracking issue to deprecate it.

dapr init will create a resources directory along with components directory and all default logic will point to this. I think it is not necessary for the above PR or dapr compose implementation. Thoughts ?

EDIT:- on thinking again from dapr compose perspective we can create the resources directory as well with this PR itself. Which can be useful in dapr compose

For this, having the resources directory flag will make the dapr run command a bit more consistent. That is why I thought it as a pre-req. But agree that it is not a blocker for starting the implementation of the epic #1123


Adding missing methods to angular 1.4 '$animate' externs

With this pull request I added on, off and pin method to angular 1.4 externs. See https://code.angularjs.org/1.4.1/docs/api/ng/service/$animate.
Please review.

LGTM.


Updating the example to use devcontainer using Genie framework

@mojafa
Julialang support #1364
Add Julia Sample Project with Genie.jl Framework

Pull Request Description
Problem Addressed
The repository previously lacked an example project for Julia, making it difficult for users of Daytona.io who prefer Julia to get started. This gap was noted in Issue #1364.
Proposed Solution
This PR introduces a sample project for Julia using the Genie.jl framework. The project includes:

A basic web application scaffolded using Genie.jl.
A devcontainer.json configuration for a seamless development environment.
Clear documentation to guide users in setting up and running the project.

Key Features

Genie.jl Integration: Implements a simple web server showcasing how Julia can be used with Daytona.io.
Dev Container Setup: Preconfigured development environment for VS Code with Julia 1.11, ensuring compatibility and ease of use.
Documentation: Instructions for setup and usage included in the README.md file.

Testing & Verification
The project was tested in the following scenarios:

Running locally with Julia 1.11 installed.
Running inside the VS Code Dev Container with Docker.

Next Steps
Potential future enhancements:

Expand the project with an example demonstrating API routes or database integration.
Provide a similar example using Oxygen.jl for diversity.

Let me know if there are any suggestions or improvements to incorporate!
Best regards,
Azar M

@azar-writes-code you can update daytona now and then update the provider with daytona provider update. The new version should have no issues with this repo now.
Let us know if it works as expect and if it's ready for review.

@azar-writes-code you can update daytona now and then update the provider with daytona provider update. The new version should have no issues with this repo now.
Let us know if it works as expect and if it's ready for review.

Hey @Tpuljak ,

I've tested and it's working as expected.

@Tpuljak updated, please check.

@Tpuljak updated, please check.


questions regarding roadmap?

im curious why u don't focus on the feature that are only related to the combat surf?  You could build simple core plugin for surf combat and all the other stuff can be done by other plugins or u can make ur own s plugins that arent build in the core.

For  Admins Tools / Movment unlocker and other fixes there is cs2fixes: https://github.com/Source2ZE/CS2Fixes
For CS2 Ranking you can use:   https://github.com/Salvatore-Als/cs2-rank or cssharp rank plugins (your road map doesn't really offer anything different).
!hide is in cs2fixes or with css sharp plugin can be one
cs2fixes has rtv
reset score be easy done by adding few lines in cs2fixes or with css sharp plugin
for event stuff there are so many plugins already done
for chat player prefix or tab there are already many plugins

tl;dr only things that other plugins don't  offer right now is:
-Red and Blue player models

Spawn protection 10 seconds
-Purchase of privileges via GameCMS or tg bot

don't take it as insult but if u want normal movement u already need cs2fixes and u  will just waste ur time building so many functions  while u can just use other plugins that are backed by strong active dev team/coder.

Of course right you are. But unfortunately this project does not make sense now, because it is easier to create plugins using frameworks (cssharp, swiftly or resoursemod). Maybe I will come back to this project later and finish it as a "classic" surf server plugin
PS I apologize for long time of an answer :(


Add debug and test helpers for interpreters.

These are used in tests.
Adding the test code requires merging much more code first, so for the moment they'll show up as uncovered code. You can see how they are used in the tests on the interpreted_mode_v3 branch, starting from this line onward: https://github.com/kensho-technologies/graphql-compiler/blob/interpreted_mode_v3/graphql_compiler/tests/interpreter_tests/test_interpreter_behavior.py#L138

Will integrate the feedback into the code in the morning, just wanted to post a few comment replies to give you the option to read them while I work on the code changes.


How can I use TensorRT-LLM to run a very small model?

I want to test how fast TensorRT-LLM could run on small models. But I don't know how to load and run a small model , which is not a language model, with TensorRT-LLM. Could you please give me an example of it? Thank you!
This is my model for computing z=x*y(onnx format):

For non-language model, you could try TensorRT. Especially, you could try parse the onnx model by TensorRT.


DISM fails with error 2.

When we are trying to install drivers as part of bare metal image they are not getting installed, DISM Log section for a driver
2022-02-15 12:41:13, Info                  DISM   DISM.EXE: <----- Starting Dism.exe session ----->
2022-02-15 12:41:13, Info                  DISM   DISM.EXE:
2022-02-15 12:41:13, Info                  DISM   DISM.EXE: Host machine information: OS Version=10.0.19041, Running architecture=amd64, Number of processors=8
2022-02-15 12:41:13, Info                  DISM   DISM.EXE: Dism.exe version: 10.0.19041.1
2022-02-15 12:41:13, Info                  DISM   DISM.EXE: Executing command line: "X:\WINDOWS\system32\Dism.exe" /Image:C:\ /Add-Driver /Driver:"C:\_SMSTaskSequence\DriverPackage\GRY002DB\WT64_21H1\Audio\REALTEK\P00Y9L-B2A\src\USBAud\Win64\RtXUsbADFT2.inf" /LogLevel:3  /LogPath:X:\WINDOWS\TEMP\SMSTSLog\DISM.log
2022-02-15 12:41:13, Info                  DISM   DISM Provider Store: PID=2676 TID=2712 Getting the collection of providers from a local provider store type. - CDISMProviderStore::GetProviderCollection
2022-02-15 12:41:13, Info                  DISM   DISM Provider Store: PID=2676 TID=2712 Connecting to the provider located at X:\WINDOWS\system32\Dism\FolderProvider.dll. - CDISMProviderStore::Internal_LoadProvider
2022-02-15 12:41:13, Warning               DISM   DISM Provider Store: PID=2676 TID=2712 Failed to load the provider: X:\WINDOWS\system32\Dism\SiloedPackageProvider.dll. - CDISMProviderStore::Internal_GetProvider(hr:0x8007007e)
2022-02-15 12:41:13, Info                  DISM   DISM Provider Store: PID=2676 TID=2712 Connecting to the provider located at X:\WINDOWS\system32\Dism\FfuProvider.dll. - CDISMProviderStore::Internal_LoadProvider
2022-02-15 12:41:13, Info                  DISM   DISM Provider Store: PID=2676 TID=2712 Connecting to the provider located at X:\WINDOWS\system32\Dism\WimProvider.dll. - CDISMProviderStore::Internal_LoadProvider
2022-02-15 12:41:13, Info                  DISM   DISM Provider Store: PID=2676 TID=2712 Connecting to the provider located at X:\WINDOWS\system32\Dism\VHDProvider.dll. - CDISMProviderStore::Internal_LoadProvider
2022-02-15 12:41:13, Info                  DISM   DISM Provider Store: PID=2676 TID=2712 Connecting to the provider located at X:\WINDOWS\system32\Dism\ImagingProvider.dll. - CDISMProviderStore::Internal_LoadProvider
2022-02-15 12:41:13, Warning               DISM   DISM Provider Store: PID=2676 TID=2712 Failed to load the provider: X:\WINDOWS\system32\Dism\MetaDeployProvider.dll. - CDISMProviderStore::Internal_GetProvider(hr:0x8007007e)
2022-02-15 12:41:13, Info                  DISM   DISM.EXE: Got the collection of providers. Now enumerating them to build the command table.
2022-02-15 12:41:13, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: DISM Log Provider
2022-02-15 12:41:13, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: FolderManager
2022-02-15 12:41:13, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: FfuManager
2022-02-15 12:41:13, Info                  DISM   DISM.EXE: Succesfully registered commands for the provider: FfuManager.
2022-02-15 12:41:13, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: WimManager
2022-02-15 12:41:13, Info                  DISM   DISM.EXE: Succesfully registered commands for the provider: WimManager.
2022-02-15 12:41:13, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: VHDManager
2022-02-15 12:41:13, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: GenericImagingManager
2022-02-15 12:41:13, Info                  DISM   DISM.EXE: Succesfully registered commands for the provider: GenericImagingManager.
2022-02-15 12:41:13, Info                  DISM   DISM Provider Store: PID=2676 TID=2712 Getting the collection of providers from a local provider store type. - CDISMProviderStore::GetProviderCollection
2022-02-15 12:41:13, Info                  DISM   DISM FFU Provider: PID=2676 TID=2712 [C:\] is not recognized by the DISM FFU provider. - CFfuImage::Initialize
[2676] [0x8007007b] FIOReadFileIntoBuffer:(1452): The filename, directory name, or volume label syntax is incorrect.
[2676] [0xc142011c] UnmarshallImageHandleFromDirectory:(641)
[2676] [0xc142011c] WIMGetMountedImageHandle:(2906)
2022-02-15 12:41:13, Info                  DISM   DISM WIM Provider: PID=2676 TID=2712 [C:\] is not a WIM mount point. - CWimMountedImageInfo::Initialize
2022-02-15 12:41:13, Info                  DISM   DISM VHD Provider: PID=2676 TID=2712 [C:\] is not recognized by the DISM VHD provider. - CVhdImage::Initialize
2022-02-15 12:41:13, Info                  DISM   DISM FFU Provider: PID=2676 TID=2712 [C:\] is not recognized by the DISM FFU provider. - CFfuImage::Initialize
2022-02-15 12:41:13, Info                  DISM   DISM Imaging Provider: PID=2676 TID=2712 The provider FfuManager does not support CreateDismImage on C:\ - CGenericImagingManager::CreateDismImage
2022-02-15 12:41:13, Info                  DISM   DISM VHD Provider: PID=2676 TID=2712 [C:\] is not recognized by the DISM VHD provider. - CVhdImage::Initialize
2022-02-15 12:41:13, Info                  DISM   DISM Imaging Provider: PID=2676 TID=2712 The provider VHDManager does not support CreateDismImage on C:\ - CGenericImagingManager::CreateDismImage
[2676] [0x8007007b] FIOReadFileIntoBuffer:(1452): The filename, directory name, or volume label syntax is incorrect.
[2676] [0xc142011c] UnmarshallImageHandleFromDirectory:(641)
[2676] [0xc142011c] WIMGetMountedImageHandle:(2906)
2022-02-15 12:41:13, Info                  DISM   DISM WIM Provider: PID=2676 TID=2712 [C:\] is not a WIM mount point. - CWimMountedImageInfo::Initialize
2022-02-15 12:41:13, Info                  DISM   DISM Imaging Provider: PID=2676 TID=2712 The provider WimManager does not support CreateDismImage on C:\ - CGenericImagingManager::CreateDismImage
2022-02-15 12:41:13, Info                  DISM   DISM Imaging Provider: PID=2676 TID=2712 No imaging provider supported CreateDismImage for this path - CGenericImagingManager::CreateDismImage
2022-02-15 12:41:13, Error                 DISM   DISM.EXE: Failed to access the image folder or image's windows folder.
2022-02-15 12:41:13, Info                  DISM   DISM.EXE: Image session has been closed. Reboot required=no.
2022-02-15 12:41:13, Info                  DISM   DISM.EXE:
2022-02-15 12:41:13, Info                  DISM   DISM.EXE: <----- Ending Dism.exe session ----->
2022-02-15 12:41:13, Info                  DISM   DISM.EXE:

And ApplyDriverPackage.log contains the following for each driver
[DriverPackageInstall]: Starting driver package install phase	ApplyDriverPackage	15/02/2022 12:41:13	1068 (0x042C)
 - Attempting to apply drivers using dism.exe located in: C:\_SMSTaskSequence\DriverPackage\GRY002DB	ApplyDriverPackage	15/02/2022 12:41:13	1068 (0x042C)
 - DriverInstallMode is currently set to: Single	ApplyDriverPackage	15/02/2022 12:41:13	1068 (0x042C)
 - Attempting to install driver: C:\_SMSTaskSequence\DriverPackage\GRY002DB\WT64_21H1\Audio\REALTEK\P00Y9L-B2A\src\USBAud\Win64\RtXUsbADFT1.inf to C:\	ApplyDriverPackage	15/02/2022 12:41:13	1068 (0x042C)
[DriverPackageInstall]: Starting driver package install phase	ApplyDriverPackage	15/02/2022 12:41:13	1068 (0x042C)
 - Attempting to apply drivers using dism.exe located in: C:\_SMSTaskSequence\DriverPackage\GRY002DB	ApplyDriverPackage	15/02/2022 12:41:13	1068 (0x042C)
 - DriverInstallMode is currently set to: Single	ApplyDriverPackage	15/02/2022 12:41:13	1068 (0x042C)
 - Attempting to install driver: C:\_SMSTaskSequence\DriverPackage\GRY002DB\WT64_21H1\Audio\REALTEK\P00Y9L-B2A\src\USBAud\Win64\RtXUsbADFT1.inf to C:\	ApplyDriverPackage	15/02/2022 12:41:13	1068 (0x042C)

We are imaging various HP EliteBook/Zbooks using standard package, and the image is not a captured WIM, we are installing directly from Windows 21H2 ISO from the VLSC
Can anyone help?

ApplyDriverPackage.log
DISM.log
DISM.log
ApplyDriverPackage.log
I have uploaded the full logs in case you require them

The default is to run dism in recurse and not single. Have you tried that? I can also see that there is a newer version driver pack for your model. (21H1)

Hi @HermanGB,
Thank you for the reply and apologies in the slow reply.
We have tried both, and get the same issue. Also, the driver packs (according to HP) are the same for 20H2 and 21H2)
Thanks

Hey @sjnett01 ,
did you ever find out what the problem was? We are having the exact same issue. Also we have only HP devices.
Our DISM Log looks exactly like yours.
Starting to think its an ADK problem but not sure either tbh.

Apologies for the late reply, i never found a solution to this and the issue persists, any one able to help??

@sjnett01 my problem was, that i choose 7zip. But in Order to use that function you have to copy the 7z.exe that was compiled so that it can run in winpe i think. It's somewhere in the manual.. nevertheless i changed to normal zip and it worked.

Im not using ZIp/7Zip at all, this is purely when trying to inject the drivers

Also, i am "imaging" as a thin image, IE, i extracted the ISO from MS VLSC and created and OS Image in SCCM that i am using, NOT a captured reference image.
If i look at the folders on the %OSPART% drive the Windows folder is not created until AFTER the Setup Windows & Configuration manager step.
Perhaps this is why it can't install the drivers to the image?
Anyone have any thoughts or workarounds for this?? (No we do not want to capture an image, as this way it is a LOT easier to change when MS release a new OS)

Anyone able to help???? :(

Hi,
I cannot see "Downloaded driver package content contains a compressed archive with driver content" in your ApplyDriverPackage.log.
Please make sure you are compressing your packages in WIM format.

This is one of the main advantages with Modern Driver Management.
See this link for more information:
https://www.deploymentresearch.com/speed-up-driver-package-downloads-for-configmgr-osd/
Get the latest wim from VLSC.
Make sure your 64-bit WinPE image is up to date with the latest ADK.
Get the latest driverpackage from vendor and recreate your driverpackages and compress them as WIM.

Can you check if this is the case with you too?

Figured it out. I was using apply OS from an original installation source instead of apply from a captured image. Doing it this way meant that the Windows directory was not present until after the Setup Windows and Config Mgr step, but I need to deploy in PE and cant stop it from restarting. I extracted the WIM from my ISO and changed to apply from an image and now its working!

https://www.reddit.com/r/SCCM/comments/wai9ae/dism_unable_to_access_the_image_mdm/

i was using the ISO extracted, so i have just added the WIM now, i will test and let you know.

Thanks for your help Herman, that looks a lot better on one of my tests, just waiting for my team to be able to do more tests Next week.
It may be worth updating the documentation to explain that it needs to use the Captured Imaged to the install.wim from the ISO as this isn't specified as far as i can see.  This will need to be added in the Operating Systems in MEMC


Sidecar proxy logs showing blank (-) for custom headers

Hi All,
I am trying to Inject the custom headers into my application at the Istio level. I am able to the custom header value at Istio Ingressgateway logs but the same is not showing into the Istio Sidecar Proxy logs and shown g the blank("-") value.
Value at Istio IngressGateway: "MY_CUSTOM_HEADER": "123456789"
Value at Istio Sidecar Proxy: "MY_CUSTOM_HEADER": "-"
Thanks and Regards,
Ramesh

Hi @howardjohn ,
I am using the below configs:
Accesslog Format:
accessLogFormat: " \"my_custom_header\": \"%REQ(MY_CUSTOM_HEADER)%\" [%START_TIME%] \"%REQ(:METHOD)% %REQ(X-ENVOY-ORIGINAL-PATH?:PATH)% %PROTOCOL%\" %RESPONSE_CODE% %RESPONSE_CODE_DETAILS% %BYTES_RECEIVED% %BYTES_SENT% %DURATION% %RESP(X-ENVOY-UPSTREAM-SERVICE-TIME)% \"%REQ(X-FORWARDED-FOR)%\" \"%REQ(USER-AGENT)%\" \"%REQ(X-REQUEST-ID)%\" \"%REQ(:AUTHORITY)%\" \"%UPSTREAM_HOST%\" %UPSTREAM_CLUSTER% %UPSTREAM_LOCAL_ADDRESS% %DOWNSTREAM_LOCAL_ADDRESS% %DOWNSTREAM_REMOTE_ADDRESS% %REQUESTED_SERVER_NAME% %ROUTE_NAME% \n"
Thanks and Regards,
Ramesh

@rameshar16
can share more details? the istio version? I can not reproduce on master branch.

Hi @zirain,
Thank you for checking on it.
I have installed the Istio version 1.12.0.
Thanks and Regards,
Ramesh

can not reproduce with following config:
  mesh: |-
    accessLogFile: /dev/stdout
    accessLogFormat: "[%START_TIME%] \"%REQ(MY_CUSTOM_HEADER)%\" \"%REQ(:METHOD)% %REQ(X-ENVOY-ORIGINAL-PATH?:PATH)% %PROTOCOL%\" %RESPONSE_CODE% %RESPONSE_FLAGS% %RESPONSE_CODE_DETAILS% %CONNECTION_TERMINATION_DETAILS% \"%UPSTREAM_TRANSPORT_FAILURE_REASON%\" %BYTES_RECEIVED% %BYTES_SENT% %DURATION% %REQUEST_TX_DURATION% %RESP(X-ENVOY-UPSTREAM-SERVICE-TIME)% \"%REQ(X-FORWARDED-FOR)%\" \"%REQ(USER-AGENT)%\" \"%REQ(X-REQUEST-ID)%\" \"%REQ(:AUTHORITY)%\" \"%UPSTREAM_HOST%\" %UPSTREAM_CLUSTER% %UPSTREAM_LOCAL_ADDRESS% %DOWNSTREAM_LOCAL_ADDRESS% %DOWNSTREAM_REMOTE_ADDRESS% %REQUESTED_SERVER_NAME% %ROUTE_NAME%\n"

curl -HMY_CUSTOM_HEADER:zirain <IP_ADDRESS>/ip

[2022-03-23T02:01:12.306Z] "zirain" "GET /ip HTTP/1.1" 200 - via_upstream - "-" 0 29 1 0 1 "<IP_ADDRESS>" "curl/7.68.0" "b165d3fe-0d8a-4119-a8ef-b8c27e7a3b17" "<IP_ADDRESS>" "<IP_ADDRESS>:80" inbound|80|| <IP_ADDRESS>:53791 <IP_ADDRESS>:80 <IP_ADDRESS>:0 outbound_.8000_._.httpbin.default.svc.cluster.local default

[2022-03-23T02:01:12.305Z] "zirain" "GET /ip HTTP/1.1" 200 - via_upstream - "-" 0 29 3 1 2 "<IP_ADDRESS>" "curl/7.68.0" "b165d3fe-0d8a-4119-a8ef-b8c27e7a3b17" "<IP_ADDRESS>" "<IP_ADDRESS>:80" outbound|8000||httpbin.default.svc.cluster.local <IP_ADDRESS>:58532 <IP_ADDRESS>:8080 <IP_ADDRESS>:20803 - -


Light client: validate contract code with account

What was wrong?
Fixes #849
How was it fixed?

Modify API to take the address of the contract to check
Request the account info to get the code_hash to validate against
Drop a peer with subprotocol error if they give us a bad code hash

Cute Animal Picture

I believe the only reason that the code got a :-1: from @pipermerriam was the concern about recursion. The latest code has no recursion (and no way to loop indefinitely). So I think it should be good to merge.
In order to test this, I had to fix an existing bug in the lightchain integration test since #869 -- The peer was trying to check the dao fork on a Ropsten sync.

I'm signing off for a week, so I'm happy if you two choose to do any of these things:

merge as is
fixup and merge
wait for me to come back

@pipermerriam can you review again? (especially the retry pattern that was of concern)


Infer timestamp column when possible

Describe This Problem
When create table will sql below
CREATE TABLE `abc` (
    `tag` string TAG,
    `id` int TAG,
    `value` double NOT NULL,
    `t` timestamp NOT NULL,
    )

It will throw
MysqlWorker on_query failed. err:Failed to handle sql:CREATE TABL
E `abc` (                                                                                `tag` string TAG,
    `id` int TAG,                                                                                `value` double NOT NULL,
    `t` timestamp NOT NULL,                                                                                ), err:Rpc error, code:500, message:Failed to create plan, query:CREATE TABLE `abc` (                                          `tag` string TAG,
    `id` int TAG,                                                                                `value` double NOT NULL,                                                                                `t` timestamp NOT NULL,
    ), err:Failed to create plan, err:Table must contain timestamp constraint

Proposal
In theory, if there is only one timestamp column in our SQL, we can refer this without user to set explicitly.
Additional Context
No response

Hi, @jiacai2050. Is anyone currently working on this? If not, I'd like to give it a try.

Hi, @jiacai2050. Is anyone currently working on this? If not, I'd like to give it a try.

Thanks. Feel free to try it.


Fix dynamic orientation change while having image view open

According to https://github.com/antonKalinin/react-native-image-view/issues/15

@dickerpulli Many thanks for this PR. It'g good but needs some improvements, mainly because of using object destructuring in this code before.

Code optimized :-)


Apply transitions to CSS stylings

This PR adds a 0.3s transition to all elements (unless otherwise defined). This will allow for smooth hover effects, and other transitions.

<-- OLD / NEW -->

@Paul-TT Can you take a look from a technical aspect? And also your future plans?


Good first issues?

I'm excited about this project but there's a lot already here and seems like a lot more to come...
Are there any tasks that might be good to start getting more familiar with this?
Thanks for this incredible work! (And the awesome Aaron Francis interview!)

Hey @hbmartin! As of right now I've left this repo in a bit of an intermediate state while I work on a new storage engine that's being built separately from SQLSync. Hence it's a bit idle and mostly serves to showcase the idea + gather together ideas from the community on where to go from here.
So the most valuable thing you could help with is use cases + helping plan roadmap. I'd be happy to riff on these ideas if you're interested in the discord!
https://discord.gg/SXPbDJ863Z


onTransitionReceived

Does this fire upon entering the fence? It's not clear in the documentation.

I was wondering the same

Yes, check out example applications. It may not work if your app is in the background, but this is well-known problem of Cordova applications. The most reliable way to execute custom code if app is in background is only native code https://github.com/cowbell/cordova-plugin-geofence#listening-for-geofence-transitions-in-native-code.


Support other notification options (flowdock etc)

I would be interested in submitting a PR for this at somepoint - will probably be working in this area in the couple of weeks.
Our specific use-case would be for flowdock, so I imagine we could aim to support at least both.

I'm going to take a look at this over the next couple of weeks.
Generally speaking I think something like the following should work:

Introduce the concept of a Receiver (Slack/Flowdock/WebHook/etc)
Add class functions to Receiver to impl. existing functionality (progress-bar/rollout-block/degraded-block/etc
Update command line arguments to support flowdock

Hm this is annoying.
I can't find a python-flowdock API that's maintained.
https://www.flowdock.com/api/libraries
python-flowdock doesn't appear to support chat/threads (which means it's a no-go).
I suspect both (at least PyFlowdock) lack python 3.x support.

https://pypi.org/project/flowdock-api-wrapper/ looks promising.

Initial version here:
https://github.com/nabadger/kube-lookout/tree/support-flowdock
If you get a chance, let me know what you think. I've got a few more things to add (and test).
Essentially the changes are:

Added support for flowdock
Added configuration through a yaml file (see config.example.yml)
Allow multiple slack (or flowdock) receivers to be specified. This means you can messages to multiple channels.


xib2nib -- lot of fixes available for merge from forked repo (but can't PR)

Hi,
I've used this tool for RoboVM linux/windows project and had fixed lot of things in it.
Sadly all this was happening in MacOS/Linux with corresponding tools used so I can't Pull Request changes as there is a risk that these will not be compatible with MS dev tools.
Commits can be cherry picked from this repo https://github.com/dkimitsa/WinObjC/tree/xib2nib by anyone interested and who has MS Dev Tools at hand.
Also I developed several tools that simplify work with nib files that makes bug fixing simpler.
Here is a technical post with tutorial https://dkimitsa.github.io/2018/02/13/wl-tech-details-2-robovm/

@dkimitsa Thanks! I'm really glad somebody's working on xib2nib!
While I'd like to just cherry-pick your changes out, we need to have potential contributors sign a contributor license agreement. If you submit a pull request -- it doesn't have to be in a mergeable format! -- we can work together on getting the right changes upstreamed.

Again, I'd like to stress not to worry if the changes can't be upstreamed. We'll do what we must to get the changes in a consumeable format, but it has to start with a pull request.

closing as https://github.com/Microsoft/WinObjC/pull/2852 was created as mentioned by @DHowett-MSFT


Some way to gradually clamp down would be nice

I have been doing a slow push to getting rid of ResourceBundle.getBundle(String)... initially we had about 1,000 calls to it. All the ones in GUI code I decided I would just refactor out to a utility method and then fix the utility method in one place, which works well and allows us to keep all modules on the same config... for now. That wiped out maybe 9/10 of them overall and now it's a slow grind to find acceptable solutions for the rest.
The task is still in progress though and one of the problems I have is that people keep committing new violations, sometimes at a rate faster than I can fix them.
If I uncomment the line in the forbidden signatures, the whole build fails and people complain because they can't get a build, but not loudly enough to make the people who wrote the offending code fix it.
If I comment the line out, the build works but now new additions are permitted and increase. In some situations, people have even reverted the fixes I just made in the previous day!
I realise that I could suppress the warning in the 100 or so places where it exists, but what I have seen happen with @SuppressWarnings is that people copy-paste entire methods, causing the suppression to come with the method, increasing the number of problems without making anything fail. In some cases I even saw @SuppressWarnings({"all","ALL"}) being shuttled around onto all kinds of methods and hiding real bugs...
So it would be nice if there were some way to say ... "any more than n violations of this rule across the whole project causes a failure, but equal or less is fine" :) Then if someone committed new violations, the build would fail. As I commit fixes, I can bring the maximum warning count down commit by commit.
This is just one idea. Of course, it doesn't stop people touching the file to increase the number, but people can turn the entire check off in the build as well and there isn't much I can do about that sort of thing. :(

Hi,
failOnViolation can be set to false already (since 2.0) for Ant, Maven, and Gradle: http://jenkins.thetaphi.de/job/Forbidden-APIs/javadoc/check-mojo.html#failOnViolation
The idea of creating a machine-readable report is good. Unfortunately the JUnit Report format is not applicable. It is better to have a look at reports generated by CheckStyle or PMD - maybe there is a standard.
The Jenkins plugins for reports on build errors and warnings generally parse the console output (e.g. javac deprecation and rawtypes warnings, e.g., see diagrams on right side: http://jenkins.thetaphi.de/job/Lucene-Solr-master-Linux/). Adding a parser for forbidden is easy, because it reports in emacs style (I hope its correct emacs style, if not we might improve).

Here is the Jenkins screen to configure a parser for "warnings":

I believe Jenkins' plugin can also be set to fail the build if the number of warnings exceeds a given count, which would more or less do what I want, although too many people have access to change that value for us. :(
About the only catch with the warnings plugin is that it gets confused between the warnings of different tools if they look too similar. For instance, javac and clang warnings must look identical, because all the warnings from each show up in the other as well. So all tools should produce sufficiently unique-looking output in order for that plugin to be useful.


[Workers] (WIP) Assets

Still a work in progress. Pushing up as I go to get early feedback.
To add:

Rollback
Runtime API
Framework specific guides
Routing config

Hey hey, also since I was in there, slightly updated your PR to take advantage of built-in properties (title for code blocks) and new components (Filetree).

Hi @tanushree-sharma
Another option for the overall structure could be:

Frameworks

Overview

Intro (Currently in “Get Started”)

Supported frameworks

Static site

Create

Develop

Deploy

Configure

Dynamic site

Create

Develop

Deploy

Configure

Full-stack application

Create

Develop

Deploy

I'm still learning about the product so feel free to ignore if this doesn't make sense. Thought I'd start with the higher-level suggestion, but feel free to ping me for more granular copyedits when needed.

Thanks @ToriLindsay for the suggestion! Getting the content up and then let's play around with structure, see what flows the best.


TSConfig Italian translation: added files

Translated and added the following files:

allowUnusedLabels.md
alwaysStrict.md
assumeChangesOnlyAffectDirectDependencies.md
baseUrl.md
charset.md

LGTM


Renaming TI dashboard button

Description
Please explain the changes you made here.
Release notes:
Describe the change as it should be communicated to partners in the release notes.
Checklist

[ ] Added the correct label: < feature | bug | dependencies | infrastructure | ignore-for-release >
[ ] Created tests which fail without the change (if possible)
[ ] Extended the README / documentation, if necessary

Issue(s)
Fixes #3695;

Codecov Report

Merging #3700 (4d30137) into main (af9e81b) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##               main    #3700   +/-   ##
=========================================
  Coverage     80.53%   80.53%
  Complexity     2431     2431
=========================================
  Files           295      295
  Lines          9618     9618
  Branches        658      658
=========================================
  Hits           7746     7746
  Misses         1619     1619
  Partials        253      253

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


proof-reading edits

updated Gitika's job title, fixed two typos

Thanks Jessica,
Merging the pull request now!


issue regarding installating sumo using pip

Hello Sir. I would like to use SUMO for post processing my calculations. However, I am unable to install sumo on ubuntu 16.04. I have installed pip using sudo. But then when I use command 'pip3 install --user sumo' an error occurs. I have copy pasted the error below.  Kindly help me in this regard.
Obtaining file:///home/shruthi/nair/softwares/sumo-master
Collecting spglib (from sumo===1.2.0)
Exception:
Traceback (most recent call last):
File "/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/connection.py", line 137, in _new_conn
(self.host, self.port), self.timeout, **extra_kw)
File "/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/util/connection.py", line 67, in create_connection
for res in socket.getaddrinfo(host, port, 0, socket.SOCK_STREAM):
File "/usr/lib/python3.5/socket.py", line 732, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/connectionpool.py", line 560, in urlopen
body=body, headers=headers)
File "/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/connectionpool.py", line 346, in _make_request
self._validate_conn(conn)
File "/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/connectionpool.py", line 787, in _validate_conn
conn.connect()
File "/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/connection.py", line 217, in connect
conn = self._new_conn()
File "/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/connection.py", line 146, in _new_conn
self, "Failed to establish a new connection: %s" % e)
requests.packages.urllib3.exceptions.NewConnectionError: <requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f08a91a6a58>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 209, in main
status = self.run(options, args)
File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 328, in run
wb.build(autobuilding=True)
File "/usr/lib/python3/dist-packages/pip/wheel.py", line 748, in build
self.requirement_set.prepare_files(self.finder)
File "/usr/lib/python3/dist-packages/pip/req/req_set.py", line 360, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "/usr/lib/python3/dist-packages/pip/req/req_set.py", line 512, in _prepare_file
finder, self.upgrade, require_hashes)
File "/usr/lib/python3/dist-packages/pip/req/req_install.py", line 273, in populate_link
self.link = finder.find_requirement(self, upgrade)
File "/usr/lib/python3/dist-packages/pip/index.py", line 442, in find_requirement
all_candidates = self.find_all_candidates(req.name)
File "/usr/lib/python3/dist-packages/pip/index.py", line 400, in find_all_candidates
for page in self._get_pages(url_locations, project_name):
File "/usr/lib/python3/dist-packages/pip/index.py", line 545, in _get_pages
page = self._get_page(location)
File "/usr/lib/python3/dist-packages/pip/index.py", line 648, in _get_page
return HTMLPage.get_page(link, session=self.session)
File "/usr/lib/python3/dist-packages/pip/index.py", line 757, in get_page
"Cache-Control": "max-age=600",
File "/usr/share/python-wheels/requests-2.9.1-py2.py3-none-any.whl/requests/sessions.py", line 480, in get
return self.request('GET', url, **kwargs)
File "/usr/lib/python3/dist-packages/pip/download.py", line 378, in request
return super(PipSession, self).request(method, url, *args, **kwargs)
File "/usr/share/python-wheels/requests-2.9.1-py2.py3-none-any.whl/requests/sessions.py", line 468, in request
resp = self.send(prep, **send_kwargs)
File "/usr/share/python-wheels/requests-2.9.1-py2.py3-none-any.whl/requests/sessions.py", line 576, in send
r = adapter.send(request, **kwargs)
File "/usr/share/python-wheels/CacheControl-0.11.5-py2.py3-none-any.whl/cachecontrol/adapter.py", line 46, in send
resp = super(CacheControlAdapter, self).send(request, **kw)
File "/usr/share/python-wheels/requests-2.9.1-py2.py3-none-any.whl/requests/adapters.py", line 376, in send
timeout=timeout
File "/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/connectionpool.py", line 610, in urlopen
_stacktrace=sys.exc_info()[2])
File "/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/util/retry.py", line 228, in increment
total -= 1
TypeError: unsupported operand type(s) for -=: 'Retry' and 'int'

Hi @shrudhanu. This looks like a network connection error.
Can you install other packages from pip. E.g. pip install pymatgen?

No Sir. I am getting the same error while installing pymatgen.

Ok, this seems to be an issue with your network connection or access to Pypi.
Can you access this website: https://pypi.org
If not there may be an issue with your firewall.
Unfortunately, as there is nothing I can do to help fix this I am closing this issue.

I am able to access the above mentioned website.

That is strange. I would try installing the packages from a different network connection.


Extension request: ocamlformat-vscode

[ ] Extension name: ocamlformat-vscode
[ ] Extension GitHub or homepage: https://github.com/scen/ocamlformat-vscode

Thank you for your request! The extension is now live in the code-server extension marketplace.


Tio1608-D Support

Hi all,
I'm about to get my hands on a Tio1608-D and it appears that it uses the same SCP protocol format on port 49280.
There is a Crestron module and some documentation that suggests this.
The idea would be to be able to set gains and phantom power.
Feedback and variables would be useful too.
This would also be compatible with:
Rio3224-D, Rio1608-D, Ri8-D, Ro8-D, Rsio64-D, RMio64-D, Rio3224-D2 and Rio1608-D2
Which are all controllable with Yamaha R Remote.
Let me know if it looks possible and I'll see if I can figure it out and put in a PR when I get the hardware.
Thanks
https://uk.yamaha.com/en/products/proaudio/interfaces/tio1608-d/downloads.html#product-tabs
YamahaTIOModule_V1.1.pdf

You’d like to add support for those devices? You’ll need the protocol info for them.
My next update for the SCP module will be quite significant, adding Rivage support as well as the new feedback, step actions and so on.

@MeestorX is the command and control format pretty standardised between devices?
I'll have a read through the code anyway, but maybe hold off until you've pushed your update before I start to tinker. But yes I would be interested in implementing this.

Yes, the commands for matching operations are the same, except for the specific parameters for each device. However, the I/O unites will have commands that don't exist on the consoles, and vice-versa. Do you have the command and parameter list for the devices you wish to control?

Only what is referenced in the Crestron docs. I'll reach out and if that is no good I'll fire up Wireshark and go from there.

I have the device now and I've just scraped most of the commands from it that I would need. I'll look into implementing soon
//Input 16 Phantom On
set IO:Current/InCh/48VOn 15 0 1
//Input 16 Phantom Off
set IO:Current/InCh/48VOn 15 0 0

//Input 16 30dB Gain (Max 66 min -6)
set IO:Current/InCh/HAGain 15 0 30
//Input 16 -6dB Gain
set IO:Current/InCh/HAGain 15 0 -6

//Input 16 HPF On
set IO:Current/InCh/HPFOn 15 0 1
//Input 16 HPF Off
set IO:Current/InCh/HPFOn 15 0 0

//Input 16 HPF Freq to 20Hz (Max 600, min 20 in Hz)
set IO:Current/InCh/HPFFreq 15 0 20
//Input 16 HPF Freq to 600Hz (Max 600, min 20 in Hz)
set IO:Current/InCh/HPFFreq 15 0 600

//INPUT LEVELS
NOTIFY mtr IO:Current/Dev/InputLevel level 22 21 20 20 20 20 20 20 20 20 20 20 20 20 20 20
NOTIFY mtr IO:Current/Dev/InputLevel level 22 20 20 20 1f 20 20 20 20 20 20 20 20 20 20 20

//Example GET
get IO:Current/InCh/48VOn 8 0
OK get IO:Current/InCh/48VOn 8 0 0

devinfo
OK devinfo paramsetver "Tio:1.0.0, IO:1.0.0"

devinfo version
OK devinfo version "1.04.0"

devinfo productname
OK devinfo productname "Tio1608-D"

devinfo inputport
OK devinfo inputport "16"

devinfo outputport
OK devinfo outputport "8"

scpmode keepalive 10000
OK scpmode keepalive 10000

Great job.
The next push is coming shortly. Significant changes, and Yamaha needs the name of the module to change. (don't ask...)

Thanks @MeestorX I just added the prminfo too I noticed those commands from your txt files in the repo. So it should be pretty complete now. I'll follow awaiting the update

Nice.
If you felt like it, you could join my discourse group where there's people that can beta test and give feedback.
discourse.remotely-possible.ca

And the latest builds are there too.

New build up today (Aug 1st).
Maybe drop me a line on the forum and let me know if it works for you and we can discuss how to best add the TIO functions.


Require issue

I'm getting a weird require issue with this:
setup.rb:5:in `require': cannot load such file -- colored2 (LoadError)
        from setup.rb:5:in `<top (required)>'
        from Installer.rb:259:in `load'
        from Installer.rb:259:in `<main>'

It's in my gem list and my bundle list. Any issues on your end?

I'll check in a few.

Are you running bin/setup?
If not, how do you get this etlrror

I'm running a simple file which begins to setup the installation of my dotfiles. the setup.rb file requires some modules and it's in the first line I get the error:
#!/usr/bin/ruby -w

# Require Gems
require 'bundler/setup'
require 'colored2'

When I use the old colored repo in my Gemfile, it works just fine.

OK that should be fixed, please gem uninstall colored2; gem install colored2.

@kigster Just trapped into this issue
$ gem list | grep colored
colored (1.2)
colored2 (3.1.1)

$ irb
irb(main):001:0> require 'colored'
=> true
irb(main):002:0> require 'colored2'
LoadError: cannot load such file -- colored2
	from /usr/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:133:in `require'
	from /usr/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:133:in `rescue in require'
	from /usr/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:40:in `require'
	from (irb):2
	from /usr/bin/irb:11:in `<main>'

This is really strange. What version of ruby are you on?
Here is an identical session on 2.4.0:
❯ gem list | grep colored
colored (1.2)
colored2 (3.1.1)

❯ irb
irb(main):001:0> require 'colored'
=> true
irb(main):002:0> require 'colored2'
=> true
irb(main):003:0>

@kigster Fastlane also had the problem when trying to use colored2 (3.1.1) https://github.com/fastlane/fastlane/issues/8111

I've seen this problem and tracked it down to globally installing as root and then ruby/irb running as non-root. The problem is the published gem has incorrect permissions set on the files themselves.
  It's been years since I used system ruby, so of course I wouldn't bump into this problem locally, as I use rbenv.
I am going to add a rake task to ensure permissions are correct for all files before releasing the gem in the future.
Once again — your help figuring this out is very much appreciated.

Please update to 3.1.2 as it should resolve the issues.

@kigster
The same issue was reintroduced in version 4. Loading the gem as none root user does not work.
/usr/local/lib/ruby/3.3.0/bundled_gems.rb:74:in `require': cannot load such file -- /usr/local/bundle/ruby/3.3.0/gems/colored2-4.0.0/lib/colored2.rb (LoadError)

Version 4
rails@724e4edd24da:/rails$ ls -al /usr/local/bundle/ruby/3.3.0/gems/colored2-4.0.0/lib/
total 16
drwxr-xr-x 3 root root 4096 Sep  2 04:02 .
drwxr-xr-x 3 root root 4096 Sep  2 04:02 ..
drwxr-xr-x 2 root root 4096 Sep  2 04:02 colored2
-rw-r----- 1 root root 2482 Sep  2 04:02 colored2.rb

Version 3.1.2
rails@bb5ce8a817f7:/rails$ ls -al /usr/local/bundle/ruby/3.3.0/gems/colored2-3.1.2/lib/
total 16
drwxr-xr-x 3 root root 4096 Sep  2 07:18 .
drwxr-xr-x 4 root root 4096 Sep  2 07:18 ..
drwxr-xr-x 2 root root 4096 Sep  2 07:18 colored2
-rw-r--r-- 1 root root 2536 Sep  2 07:18 colored2.rb

I was able to fix it by downgrading it.


Add robots.txt

Fixed in https://github.com/rohannair/rohan.ai/commit/e888b31185dba67b0fa4691171e14acbdd0811ed


Speak Text button hides text under it in speak activity

Fixed in https://github.com/llaske/sugarizer/pull/728


Scene transition example

Hi I was wondering if you had an example of having multiple scenes and transitioning between them? I have looked at the RNRF package, but I was wondering if it was different in the Mobx version.

Hi!
Transitions are almost the same as RNRF...All you need is just import Actions from react-native-mobx.


add intllib support + german translations

Added, thanks again :)

Thanks again too. ;)
Prepare for more, hehe, just need to find the stuff. It's currently one big mess while I changing my system with old HD, backup DVDs and temp save USB sticks. :(


Fix combined view map

Fixes an invalid cast exception happening when chaining View.map / View.lazyMap on a same Widget.
type GrandChildMsg = Clicked
type ChildMsg = GrandChildMsg of GrandChildMsg
type ParentMsg = ChildMsg of ChildMsg

View.map ChildMsg (View.map GrandChildMsg (Button("Click me", Clicked)))
:> WidgetBuilder<ParentMsg, IButton)

@twop Can you give me your opinion on this PR?
Is there optimization that can be made? Like missing inref.
Or should we go another direction and store directly MapMsg on the WidgetBuilder and later create a ScalarAttribute during Compile?

@twop Can you give me your opinion on this PR?
Is there optimization that can be made? Like missing inref.
Or should we go another direction and store directly MapMsg on the WidgetBuilder and later create a ScalarAttribute during Compile?

I think that this logic is only going to be applied for View.map calls, thus I don't think that there is a huge performance concern here. There might be a couple of places where inlining will help with the predicate calls, but I don't think that perf is a big concern in here. In my opinion correctness is more important here

View.map always felt a bit "off", so maybe it is a cleaner representation

Yes, I'm thinking this too. The MapMsg function is special in the sense it doesn't really belong with the other scalars.
It's more linked to the WidgetBuilder itself (it's the one with the 'msg) so makes sense to store in directly on the WidgetBuilder.

let me tinker about implications of it

Ok. I'm going to merge this one for now.
If you manage to get a better implementation, we can replace this PR.


Release 0.13.0

We're at 6+ months from a release, so let's get caught up.
I'll get a change list together and get together a test set by the end of next week. If someone else has more time and can get this going faster, feel free to take over.

ping @busbey I can likely handle this release if you like. Want me to go through the PRs? Might take a week or two for me to get it all done though.

Oh geez. I totally forgot about this.
It'd be great if you could take it over, @manolama. Thanks!

Thanks @busbey, would you mind emailing me the release process notes again please? Wanna make sure I get it right :)

Sure, it's on a wiki page now: https://github.com/brianfrankcooper/YCSB/wiki/Managing-a-Release

I have spare cycles for the first time in awhile and would like to work on getting #921 in for this release. I can do this this upcoming week.

I've pushed commits to #925, it just needs a review now.

Thanks @jasontedor I'll take a stab at a review for it tomorrow :)

@manolama - An FYI I was trying the Github milestone features to track things that could go into 0.13.0.
https://github.com/brianfrankcooper/YCSB/milestone/1

Thanks @manolama, @risdenk reviewed so it's integrated now and will not hold up the 0.13.0 release.

@risdenk Thanks! I'll check the rest of the 13's and see if I can clean them up and merge em along with some others.
@jasontedor Thanks for the merge. Next time could you try squashing though so we don't have tons of little commits? And would you mind looking at #1008 ?

Awesome, thanks! Yeah the squash merges only would be great! We'll have to see if one of the repo owners can do that.

how's the release coming? what are we blocked on?

ping?

Arg sorry, blocked on me getting off my duff. Working on it again now.

OK got some fixes ready for the issues @risdenk set for this release:  https://github.com/brianfrankcooper/YCSB/milestone/1. Please take a look, then I'll start filling out the schedule.

@manolama changes look good! Thanks for putting the effort in.

@manolama you mind if I push the changes that move master to 0.14-SNAPSHOT? I want to start working on some changes that I don't think should be included in the 0.13 release.

Go for it @busbey, thanks!

Here is the list of components/bindings that have changed in this release:

https://github.com/brianfrankcooper/YCSB/pull/838 [azuredocumentdb] - Added Azure Document DB binding
https://github.com/brianfrankcooper/YCSB/pull/887 [solr] - Add support for Kerberos protected Solr installations
https://github.com/brianfrankcooper/YCSB/pull/903 [arangodb3] - Added binding for Arango DB V3
[core, dbs] - Implement a checkstyle config for code consistency and enforce it on all bindings and components
https://github.com/brianfrankcooper/YCSB/pull/925 [elasticsearch5] - Add bindings for Elasticsearch Version 5.x
https://github.com/brianfrankcooper/YCSB/pull/937 [aerospike] - Change the write policy to REPLACE_ONLY
https://github.com/brianfrankcooper/YCSB/pull/939 [cloudspanner] - Added binding for Google's CloudSpanner
https://github.com/brianfrankcooper/YCSB/pull/947 [accumulo] - Refresh of the binding
https://github.com/brianfrankcooper/YCSB/pull/965 [memcache] - Added support for the binary protocol

Is #705 far enough along for us to call jdk9 "supported" yet?

@busbey regarding jdk9 support. YCSB compiles but I'd be very surprised if any of our supported bindings work with jdk9. For Solr I know we would have to update to 6.6.x for jdk9 support. I'm not sure out the other bindings.

0.13.0-RC1 Release available at: https://github.com/brianfrankcooper/YCSB/releases/tag/1.13.0-RC1
Please give it a test and let us know what works/doesn't work.
I also confirmed it builds and runs on Windows 10.

I tried a fresh clone of the 1.13.0-RC1 tag (should be 0.13.0-RC1?) and found a couple display issues.

No line break between "Command line:" string and "YCSB Client 0.13.0-RC1". On 0.12.0 it looked like this:

YCSB Client 0.12.0
Command line: -db com.yahoo.ycsb.BasicDB -s -P workloads/workloada -p basicdb.verbose=false -p measurementtype=hdrhistogram -load

There is extra output I don't expect to see after the histogram measurements. What is "[INSERT], 0, 994.0" supposed to be? It looks like it could be some kind of verbose histogram output? This was not there in previous releases. I just want the avg/min/max and percentiles.

$ ./bin/ycsb load basic -s -P workloads/workloada -p basicdb.verbose=false
[WARN]  Running against a source checkout. In order to get our runtime dependencies we'll have to invoke Maven. Depending on the state of your system, this may take ~30-45 seconds
[DEBUG]  Running 'mvn -pl com.yahoo.ycsb:core -am package -DskipTests dependency:build-classpath -DincludeScope=compile -Dmdep.outputFilterFile=true'
java -cp /tmp/ycsb/core/conf:/tmp/ycsb/core/target/core-0.13.0-RC1.jar:/var/tmp/tblamer/maven/repository/org/apache/htrace/htrace-core4/4.1.0-incubating/htrace-core4-4.1.0-incubating.jar:/var/tmp/tblamer/maven/repository/org/hdrhistogram/HdrHistogram/2.1.4/HdrHistogram-2.1.4.jar:/var/tmp/tblamer/maven/repository/org/codehaus/jackson/jackson-mapper-asl/1.9.4/jackson-mapper-asl-1.9.4.jar:/var/tmp/tblamer/maven/repository/org/codehaus/jackson/jackson-core-asl/1.9.4/jackson-core-asl-1.9.4.jar com.yahoo.ycsb.Client -db com.yahoo.ycsb.BasicDB -s -P workloads/workloada -p basicdb.verbose=false -load
Command line: -db com.yahoo.ycsb.BasicDB -s -P workloads/workloada -p basicdb.verbose=false -loadYCSB Client 0.13.0-RC1

Loading workload...
Starting test.
DBWrapper: report latency for each error is false and specific error codes to track for latency are: []
2017-10-16 15:00:03:146 0 sec: 316 operations; ∞ current ops/sec; est completion in 0 second [INSERT: Count=539, Max=514, Min=0, Avg=0.97, 90=0, 99=0, 99.9=4, 99.99=514]
2017-10-16 15:00:03:151 0 sec: 1000 operations; 31090.91 current ops/sec; [CLEANUP: Count=1, Max=2, Min=2, Avg=2, 90=2, 99=2, 99.9=2, 99.99=2] [INSERT: Count=461, Max=8, Min=0, Avg=0.02, 90=0, 99=0, 99.9=8, 99.99=8]
[OVERALL], RunTime(ms), 21
[OVERALL], Throughput(ops/sec), 47619.04761904762
[TOTAL_GCS_PS_Scavenge], Count, 0
[TOTAL_GC_TIME_PS_Scavenge], Time(ms), 0
[TOTAL_GC_TIME_%_PS_Scavenge], Time(%), 0.0
[TOTAL_GCS_PS_MarkSweep], Count, 0
[TOTAL_GC_TIME_PS_MarkSweep], Time(ms), 0
[TOTAL_GC_TIME_%_PS_MarkSweep], Time(%), 0.0
[TOTAL_GCs], Count, 0
[TOTAL_GC_TIME], Time(ms), 0
[TOTAL_GC_TIME_%], Time(%), 0.0
[CLEANUP], Operations, 1
[CLEANUP], AverageLatency(us), 2.0
[CLEANUP], MinLatency(us), 2
[CLEANUP], MaxLatency(us), 2
[CLEANUP], 95thPercentileLatency(us), 2
[CLEANUP], 99thPercentileLatency(us), 2
[CLEANUP], 2, 1.0
[INSERT], Operations, 1000
[INSERT], AverageLatency(us), 0.533
[INSERT], MinLatency(us), 0
[INSERT], MaxLatency(us), 514
[INSERT], 95thPercentileLatency(us), 0
[INSERT], 99thPercentileLatency(us), 0
[INSERT], Return=OK, 1000
[INSERT], 0, 994.0
[INSERT], 1, 1.0
[INSERT], 2, 1.0
[INSERT], 4, 2.0
[INSERT], 8, 1.0
[INSERT], 514, 1.0

Arg, thanks for catching the 1.13 bit. I'll fix that up and take a look at the other issues.

Let's cut our losses and get this release out the door. We can warn users that this is a "experimental / untested" release or some such in the release notes, since essentially none of the bindings that changed have gotten a work out.
I'd propose we shortly get working on 0.14 and give bindings a mulligan for this release so far as supported / not status goes. (that is, any binding that changed in this release or a proposed 0.14 release needs to have someone vouch for it to continue to be called "supported", but no one loses that status due to not being tested in the 0.13 release)
anyone opposed?

I'll try to kick the tires a bit more on the 0.13.0-staging tag just for my own satisfaction, but don't let that hold up anything.

I built 0.13.0-staging from source and ran a few simple tests with basicdb and mongodb. The output issues I mentioned from 10/17 are gone. The measurement.histogram.verbose property works. No more complaints here.

thanks @twblamer! If anyone got some testing done for other bindings, put a note here and I'll try to keep track when I'm putting together the testing footprint for 0.14.

Proposed release notes in this gist:
https://gist.github.com/busbey/5f7033335a31484aebcea0843970c005
Note that in the release notes all of the "see #XXX" will actually link to the relevant issue/pr. Also note that the link to the CONTRIBUTING.md file will point to that file on the 0.13 release branch.

added a known issue for #877

release posted: https://github.com/brianfrankcooper/YCSB/releases/tag/0.13.0

Thanks for getting this out and sorry I dropped the ball!


Fix URL encoding for authorization request state parameter

Closes #875 , see discussion in #876 for context of the problem this fixes.

@jgrandja rebased off of 0.4.x and addressed the review comments

Thanks for the updates @backjo. There was another change required as per comment. I guess you missed the comment? I reverted the change and also applied some polish to get this merged so it go's into the release tomorrow.
Thanks again for reporting this.

Thx @jgrandja  - must have missed that one!


velocity control crazyflie fix

Managed to get crazyflie flying with lee. Need to fix documentation next.
gz topic -t "/crazyflie/gazebo/command/twist" -m gz.msgs.Twist -p "linear: {x:0 y: 0 z: 0.0} angular {z: 0}"

It definitely needs some tuning. Take off works but when it needs to go forward etc it doesn't go so well

I'll keep this branch for now, but this pull request has already implemented what is necessary with gains only to keep it clean: https://github.com/bitcraze/crazyflie-simulation/pull/62


[DEVOPS-223] AppVeyor: stack 1.5.0 upgrade

In stack v1.4.0 the stack executable was in the root of the downloaded
zip, but now in stack v1.5.0 it's under the stack.exe directory. The
link we're using now resolves to stack v1.5.0.

Pushed to cardano-sl-0.5-staging

Hope it works!

This latest iteration works. However, the change in stack.exe location inside the zip was unintended and will eventually be changed back: https://twitter.com/snoyberg/status/889896922546397184
Given we don't have a timeline for that, my suggestion in the short-term is to apply this change once CI passes and clean it up when the upstream fix is live.


HmsPushEvent.onNotificationOpenedApp is getting executed even after tap in loop

Hi all,
HmsPushEvent.onNotificationOpenedApp is got executed in the loop when we use to open the external url
this.huaweiPushMessageOpenedListener = HmsPushEvent.onNotificationOpenedApp((result) => {           console.log("consolehms inside onNotificationOpenedApp ==>", result);           if (result) {             if (result.extras && result.extras.notification && result.extras.notification.customData) {               let dataMessage = result.extras.notification.customData;               Linking.openURL(dataMessage.url);            }}
After on tap on the message with URL, it is correctly open the URL in the browser, but when we come back to open the app, it again triggers the event onNotificationOpenedApp() and again it opens the URL in browser and it keep on loop

Hi,
I tried your code and realized the problem.
onNotificationOpenedApp Listener works when return back from the url
You can solve this problem with isUrlOpened boolean flag. Initial value will be false.
initial State
 this.state = {
            isUrlOpened: false,
            appState: AppState.currentState
        };

this.onNotificationOpenedAppListener = HmsPushEvent.onNotificationOpenedApp(
            (result) => {

                if (result && !this.state.isUrlOpened) {
                    if (
                        result.extras &&
                        result.extras.notification &&
                        result.extras.notification.customData
                    ) {
                        let dataMessage = result.extras.notification.customData;
                        Linking.openURL(dataMessage.url)

                        this.setState({isUrlOpened: true})
                    }
                }
            }
        );

Also you need to add AppState Listener.
Add to  componentDidMount()
AppState.addEventListener('change', this._handleAppStateChange);
Add to componentWillUnMount()
AppState.removeEventListener('change', this._handleAppStateChange);
Finally create AppStateChange handler
_handleAppStateChange = (nextAppState) => {
        if (this.state.appState.match(/inactive|background/) && nextAppState === 'active') {
            setTimeout(() => {
                this.setState({isUrlOpened: false})
            }, 500);
        }
        this.setState({appState: nextAppState});
    }

Thanks a lot ozcanozgur, for your solution, we are thinking of the same solution too, we will add this, also we noticed that we are using Local notification we have to set autoCancel  = true to dismiss the notification. We are trying these solutions testing in progress, let you know the results.

yes we tested and avoid the loop by checking with local state and we used autoCancel= true with local notification. Thanks.
but i see it as a work around we do, but it is possible fix in the plugin ?

yes we tested and avoid the loop by checking with local state and we used autoCancel= true with local notification. Thanks.
but i see it as a work around we do, but it is possible fix in the plugin ?

yes it'll be updated with more features and improvements. thanks for interest 👍

yes it'll be updated with more features and improvements. thanks for interest 👍


Output interface version parts

What
Output interface version parts in the contract inspect command.
Why
The interface version stored in the contract meta is a 64-bit value where the high 32-bits is the protocol version and the low 32-bits is the actual interface version.
It was pointed out that the large integer is confusing.
We should break it down so that folks understand what it means.
Related:

https://discord.com/channels/897514728459468821/1211454547524853761

Dependent on:

#1215

The CI failure is unrelated to this change and is being tracked here:

https://github.com/stellar/soroban-cli/issues/1217


Changing column header cell updates column name property

Desired Behaviour
When editing the column properties, column “name” can’t be edited.  It takes the value from the header row of the dataset.  This is good.  However, if I change the header cell in the dataset, the column “name” does not update.  I have to click “Guess Column Properties” to update the column “name” which resets all other properties I’ve already set.  It would be good if the column “name” property updates when focus leaves the header cell.

Fixed for next release.


Get conversion rate for qty 0 reverts

fixed in PR https://github.com/KyberNetwork/smart-contracts/pull/396
but will not be merged to master until new deployment of internal network

This issue has a workaround in getExpectedRate.
and new issues opened for network contract and for permission less reserve.


learning rate

Regarding learning rate mentioned in #21, I haven't exploited any tricks with learning rate yet - it has been constant 0.1. I can try something fancier like exponential decay function for learning rate.

Exponential decay contribute to higher accuracy, but it is not useful for online learning so I think I guess maybe we don't try it now.


Dead link : kb_article

In "WTSEnumerateSessionsA function" page, there is a dead link in the "Remarks" section.
The link points to https://support.microsoft.com/fr-fr/help/291789 which ends in an 404 error.

Page in question: https://docs.microsoft.com/en-us/windows/win32/api/wtsapi32/nf-wtsapi32-wtsenumeratesessionsa
@GrantMeStrength can you please take a look?

This paper seems to be very old - not sure if you could trust it. But it's cached here:
https://jeffpar.github.io/kbarchive/kb/291/Q291789/

Thank you for reporting this!
The link to https://docs.microsoft.com/en-us/windows/win32/intl/conventions-for-function-prototypes is not active.


How to understand and use the audio embedding?

I'm new here, I run the method get_audio_embedding_from_filelist with model music_audioset_epoch_15_esc_90.14.pt and get the audio embeddings just like
[[-4.639852792024612427e-02, -9.935184381902217865e-03, ...]]

I approximately know it represent the feature of the input audio somehow, while I don't know how to use it.
At first I try some method to decode it into text so that I can understand it roughly.

I guess it may be interlinked with CLIP, so I use the inner SimpleTokenizer  at first with bpe_simple_vocab_16e6, while it doesn't work.
Then I try the RobertaTokenizerFast in transformers to decode it, while the error says the decoder just support integers input tokens.

So I start to be confused.
Could someone tell me what is the audio embedding that I get in format of float? And whether this audio embedding is common to other models? And how should I use it?
(PS: I'm really interested in this work while it seems like I lack some necessary background knowledge, so it would be better if someone could recommend me some relevant materials to get me into the field. Thank you so much ❤)

I am having similar doubts.
When extracting text and audio embeddings, I can easily perform cosine similarity to find closely related pairs, and retrieve audio from text inputs and vice-versa.
However, I would like to know if there is a way to decode the embeddings into text. Decoding them into Audio seems manageable using AudioLDM.

@cvillela is there a way to decode CLAP embeddings to Audio using AudioLDM?

When I make an analogy to CLIP, I would know how to use CLAP. My mind was stuck then ><. Thanks for your hints!
Now we know AudioLDM will turn text into audio, and is there any tools works like clip interrogator to turn audio into text?

@arthur19312  The following CLAP implementration also supports a model for audio captioning (not yet tested):
https://arxiv.org/abs/2309.05767
https://github.com/microsoft/CLAP


Failed to start immersive AR session

Hi, after entering the app from both mobile and desktop web browser I get error as in the title.
Details from web console:
app.js:89 Unrecognized feature requested: image-tracking
window.ARWT.onButtonClicked @ app.js:89
app.js:261 Failed to execute 'requestSession' on 'XRSystem': The specified session configuration is not supported.

It doesn't even ask for camera permission.
This is SingleImageTracking scene, the newest version from repo.
Please let me know how can I  make it work?

Hi, Did you found any solution yet?

I found the solution is happning because
window.ARWT.onButtonClicked = () => {     if(!xrSession){         const options = !WebXR.imageTrackingRequired ?         {             requiredFeatures: ['local-floor', 'hit-test']         }         :         {             requiredFeatures: ['local-floor', 'image-tracking'],             trackedImages : imgsBitmap             // trackedImages: [             //     {             //         image: imgBitmap,             //         widthInMeters: 0.05             //     }             // ]         }         navigator.xr.requestSession('immersive-ar', options).then(onSessionStarted, onRequestSessionError);     }else{         xrSession.end();     } }
if you have turn on the "Image tracking" from the scene then in this piece of code there is this line requiredFeatures: ['local-floor', 'image-tracking'], and in this line "image-tracking" this is causing the issue.
Since the image tracking in webXR is experimental feature you need to enable it manually by enable chrome://flags/#webxr-incubations.
This will not work in iOS.
Follow this for more
https://github.com/immersive-web/marker-tracking/blob/main/explainer.md
Hope this would help.


[PE-D][Tester B] Glossary Error

There was a mention of checking duplicates using matriculation numbers. This information seems to be inaccurate as the matriculation number was not collected when adding contacts. Do consider changing the phrasing for this definition of duplicate entry. Maybe there could be a specific mention of the criteria for clarity.

Labels: type.DocumentationBug severity.Low
original: SlothyCat/ped#14

change in UG

This is from DG. I will change this


Provide descriptive debugging info on lint

Is your feature request related to a problem? Please describe.
Running lint on meteor recipes does not provide which line in the recipe has an issue.
Describe the solution you'd like
Lint command should provide more descriptive error messages. Message should provide a file name, line number, and proper error message. As an example
recipes/sample.yaml:44:10:invalid config hostname for Columbus sink.

@ravisuhag
Generally , runtime.Caller(depth) method is used to display the line and file name, but while looking the stackTrace on panic, the error is not referring to yaml file, the trace was only visible till cmd/lint.go. I am wondering then how can we provide file name and line number particularly in yaml . Looking over other approaches as well.
If you have any approach for it , let me know

@scortier Check this thread.
https://github.com/go-yaml/yaml/issues/108


Update Scala 2.13, Mill, Scala.js, Native and Actions

Merging since the failure in test-jvm was already there and the PR did not make it worse.


LND crashing with index out of range

can anyone help with this error?

Can you fill out the full issue templating including your lnd version and any other related information?
Also AFAICT, some of those log lines aren't in the current or prior versions of lnd, leading me to believe this is actually a fork of lnd with some custom modifications?

Yeah its a mod but not mine. Could you give me a hint on why it's crashing?

AFAICT, you're working with a fork off of version v0.12, which is a few major versions back. This issue tracker is only for mainline lnd, as we have no idea what other modifications you've made in your fork. In the past issues like this were discovered to be due to incorrect data being returned by a node backend. In that case, a reindex of the user's node resolved the issue.
If I look at that block on testnet, then that transaction referenced in the log isn't included.
Closing this as it's an lnd fork using a very old version of lnd. If you find any issues in your fork attempting to support another chain that are relevant to main line lnd, any issues/PRs would be much appreciated.

The spenderinputindex here (https://github.com/philipp1992/neutrino-lnd/blob/0df3a283120c234de69097db1507fe4d02197d78/chainntnfs/lightwalletnotify/lightwallet.go#L732) is incorrect. It should be using the index of the TxIn spending the output in the current transaction rather than the Prevout's index in the parent transaction

The spenderinputindex here (https://github.com/philipp1992/neutrino-lnd/blob/0df3a283120c234de69097db1507fe4d02197d78/chainntnfs/lightwalletnotify/lightwallet.go#L732) is incorrect. It should be using the index of the TxIn spending the output in the current transaction rather than the Prevout's index in the parent transaction

do you know what changes i have to make to fix this? thanks a lot


fix: add correct mimetype for xsl and xslt, fixes #5457

Add correct mimetype for xsl and xslt
Resolves: #5457
The Issue
XSL and XSLT files are being served by nginx with the default mimetype (application/octet-stream instead of the standard application/xslt+xml.
This means that the content-type header is sending the wrong application type to the XSLT parser/transformer application and it therefore fails to process.
How This PR Solves The Issue
This code change overrides the shipping debian /etc/nginx/mime.types with our own ddev-managed /etc/nginx/mime.types file so we can more easily make fixes to the mime types while waiting for the upstream distro to be updated. adds a types{} section to the nginx.conf just under the include mime.types directive where we can add custom mimetypes for ddev.
Manual Testing Instructions

Build your ddev instance
Put an XSL file such as /test.xsl in the document root.
curl -is "https://yoursite.ddev.site/test.xsl" | grep content-type
You should see content-type: application/xslt+xml in the output.

Automated Testing Overview
No tests added. Is there a framework for scripting a test for this in ddev? I read through the testing docs but that all surrounds tests for ddev itself. Please let me know if there is a recommended way I can create a test for this.
Related Issue Link(s)
https://github.com/ddev/ddev/issues/5457
Release/Deployment Notes
This does not affect the behavior of other parts of ddev itself.
If a user's application relies on a non-standards-compliant content-type mimetype for .xsl / .xslt files, their application may fail, as we are now serving .xsl and .xslt files according to W3 standards.
This merge request sponsored by Chromatic.

This will still need a custom image tag pushed, we'll work on that.
Were you able to manually test it by changing /etc/nginx/mime.types?

Were you able to manually test it by changing /etc/nginx/mime.types?

After starting my ddev test project, I executed ddev ssh -s web and manually edited /etc/nginx/nginx.conf to add exactly what the latest commit does, viz:
include mime.types
+ types {
+   application/xslt+xml xsl xslt;
+ }

After kicking nginx, I get this:

curl -i -k "https://mysite.ddev.site/testxsl.xsl"
HTTP/2 200
accept-ranges: bytes
content-type: application/xslt+xml

Which is what we wanted.

Thank you!

I'm quite sure we'll be successful getting this into DDEV core, perhaps a point release in November. I should note that in the meantime you can just use a .ddev/web-build/Dockerfile to add the file. Just put the mime.types in .ddev/web-build and I think this would work for the Dockerfile:

Thank you. That's a lot simpler than what I was doing 😓

Thanks for your thoughtful approach to testing solving this, and for the PR! Are you going to try to get it in upstream?

https://trac.nginx.org/nginx/ticket/2552
https://salsa.debian.org/nginx-team/nginx/-/merge_requests/78

Impressive!

Pushed a tagged image for this feature, updated the tag DDEV uses, and rebased.
Please test manually @apotek , thanks!

It looks to me like it's working:
$ curl -I https://d10.ddev.site/test.xsl
HTTP/2 200
accept-ranges: bytes
content-type: application/xslt+xml
date: Mon, 30 Oct 2023 23:39:39 GMT
etag: "65403e0e-29c"
last-modified: Mon, 30 Oct 2023 23:36:46 GMT
server: nginx
content-length: 668

Please test manually @apotek , thanks!

Thank you @rfay . I read the docs and honestly am unsure of what to do  in order to test this. Since this PR does not modify ddev itself, it doesn't seem I would need to use the custom binaries. What I need is to build the nginx docker service image from my merge request's source directory (which I guess would be running make in my ddev repo directory) and then, somehow, be able to use that image when I run ddev start. That's the part I am unsure of.
Can I somehow change
webserver_type: nginx-fpm

to point to my locally generated nginx-fpm container?
I apologize if this should be obvious to me or if I am missing something.
I did read https://ddev.readthedocs.io/en/latest/developers/building-contributing/#making-changes-to-ddev-images and https://ddev.readthedocs.io/en/latest/developers/building-contributing/#making-changes-to-ddev-images several times.  I don't think I would want to push my built image, since I don't want to publish it either to the ddev docker account or my own. I just want to use the built image locally. So that's where I am getting confused.

All you have to do is download the ddev artifacts from this PR, you don't have to build anything. And use them. Unzip ddev, follow the instructions, put it in your path or explicitly path it.  Then use it in your project. If that doesn't make any sense I'll be happy to do a screenshare call with you, come on over to Discord or whatever, https://discord.gg/hCZFfAMc5k
There is nothing you have to do with DDEV images. I pushed the changed image for you. All you need to use is the updated DDEV in this PR, https://github.com/ddev/ddev/pull/5458#issuecomment-1786177740 - It will pull the image that I pushed that has your changes in it.
But when you test, make sure you're testing without the Dockerfile you may have added in .ddev/web-build/Dockerfile, which would make your testing invalid.

There is nothing you have to do with DDEV images. I pushed the changed image for you. All you need to use is the updated DDEV in this PR, #5458 (comment) - It will pull the image that I pushed that has your changes in it.

Aha! So the binary is modified to use a different tag/image name that you have already pushed up! Now it all makes sense. Thank you! I was getting auth issues on push (for obvious reasons).

Thanks for chasing this down! And the upstream issues were a special treat.


POST /listKeys is generated with -WhatIf and -Confirm

Problem
Many services have this API POST /.../listKeys to list keys that can be used to access some resources. Autorest.powershell generates them as Get-*Keys cmdlets (which is as expected) but with -WhatIf and -Confirm (which is not).
Expected behavior
Because listKeys does not change state on Azure, we should not generate -WhatIf and -Confirm
Example swagger: https://github.com/Azure/azure-rest-api-specs/blob/9abfdcfef776c1402cbd53855275b9bc17eb52ab/specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2020-10-01-preview/redisenterprise.json#L672

According to this comment , listKeys APIs are designed to be POST for security reasons - POST requires higher permission and keys are sensitive data that they want to protect them with higher permission.
As for PowerShell, the requirement remains valid -- it does not change any state on Azure, so it should not have -WhatIf and -Confirm. I think we should handle it as a special exception.

Need to set writeable https://github.com/Azure/autorest.powershell/blob/master/powershell/generators/script-cmdlet.ts#L29 to false, so that the generated cmdlet will not support shouldprocess

Another common case is POST /checkNameAvailability: https://github.com/Azure/azure-rest-api-specs/blob/main/specification/communication/resource-manager/Microsoft.Communication/stable/2020-08-20/CommunicationService.json#L65

Fixed in autorest.powershell v4.


Axios Version Bump

Getting a critical vulnerability warning when installing. From axios dependency.

Thank you for the report.
v0.2.1 published.


Unable to capture packets [Malformed packet]

Hi @schollz ,
First of all, great work here. I found this project really interesting.
Getting to the point, I was trying to run the command and it kept saying that no signals were found. I ran the tshark command manually to see what's wrong. It appears that the packets are malformed and I suspect it has something to do with the addition of radiotap headers. See the output below.

% tshark -i wlp3s0 -I -a duration:60
Capturing on 'wlp3s0'
1 0.000000000              ->              WLAN 87 Radiotap Capture v255, Length 65535[Malformed Packet]
2 0.052283376              ->              WLAN 136 Radiotap Capture v255, Length 65535[Malformed Packet]
3 0.241639018              ->              WLAN 90 Radiotap Capture v255, Length 65535[Malformed Packet]
4 0.302993069              ->              WLAN 136 Radiotap Capture v255, Length 65535[Malformed Packet]
5 0.553821626              ->              WLAN 136 Radiotap Capture v255, Length 65535[Malformed Packet]

I was hoping you could help me with this. Thanks a ton !
Sanketh

It seems there could be a couple reasons and sounds like you have to investigate with a network trace.

@sanketh95 were you able to resolve this?

I was. I seems like the issue was in the way I was putting my wireless card in monitor mode. The -I option to tshark was somehow unable to do it. However, I was able to manually put it in monitor mode using aircrack-ng. The script started working after that.


Code from different source code mgmnt

I have some code in svn and some code in git and I want to create a build combining two codes in Jenkins. How can we achieve this

https://git-scm.com/docs/git-svn

https://git-scm.com/book/en/v1/Git-and-Other-Systems-Git-and-Subversion

How are you doing this manually. Let us know. Then we can think of Jenkins


Add bignum feature

I've experimented with enabling Bignum extension (seems to be working just fine, can be enabled just by changing static lib name in Rust flags from quickjs to quickjs.bn). However I'm not sure what would be the correct types to map.
My idea is to have num-bigint feature that would use num-bigint crate to store values from JavaScript BigInt, which is currently stage3 and implemented by major browsers. At the same time I think maybeQuickJS's BigFloat can be ignored for now, as it is something non-standard, and also I haven't found a crate that would be a good fit to store BigFloat values in Rust.

I'm all for it.
For decimal, this might be a good fit: https://github.com/paupino/rust-decimal
It's used by diesel for postgres I think.

For decimal, this might be a good fit: https://github.com/paupino/rust-decimal
It is big decimal (fixed-point), which might not be practical to store QuickJs BigFloat (floating point), as numbers like 1e2000 would take enormous space when stored as fixed point.

Are you interested in implementing this?
Yes, I'll try it.

Happy to help if you run into any questions.

Ah yeah,

The binary representation consists of a 96 bit integer number, a scaling factor used to specify the decimal fraction and a 1 bit sign
I thought decimal was arbitrary precision.

@theduke It turns out that only functions for converting BigInt to i64 and back are exposed publicly in QuickJS:

create BigInt from i64
convert BigInt to i64

The structure JSBigFloat that is needed extracting QuickJS big float type bf_t from JSValue is defined in quickjs.c and thus private.


Add Identifiers to name and name commitment structures

Is making Identifiers work with Contracts part of this? Making them work with contracts might make this issue difficult.

@cytadela8
The issue's intention is simply just to add identifiers to %Name{} and %NameCommitment{} structures to make it more compatible.


feat: add YMMV

WTF?!?

WTF?!?

I found it in the onboarding page in Confluence :sweat_smile:

WTF?!?

I found it in the onboarding page in Confluence sweat_smile

LOL!


How to use customized trained models?

I trained a vocos model with a model I trained myself, how do I use it? I see that the existing model loaded is in pytorch_model.bin format, and the parameters in it are named differently than the directly trained one? Can you give me an example of how to use it, thanks!

def load_vocos(checkpoint_path, config_path, device):
    model = Vocos.from_hparams(config_path).to(device)

    raw_model = torch.load(checkpoint_path, map_location=device)
    raw_model = raw_model if 'state_dict' not in raw_model else raw_model['state_dict']
    model.load_state_dict(raw_model, strict=False)
    model.eval()
    return model