Improved: D3D11 Adapter Creation Speed by Manually Selecting Hardware Type

What does the pull request do?
This pull request speeds up the creation of the D3D11 device during startup by manually selecting the hardware type.
This results in a significant improvement in startup time when using Win D3D11 on NAOT.
What is the current behavior?
Currently, the CreateD3D11Display method in AngleWin32EglDisplay.cs uses D3D_DRIVER_TYPE_UNKNOWN when creating the D3D11 device.
This can lead to slower startup times as the runtime needs to determine the appropriate driver type based on the available adapters.
What is the updated/expected behavior with this PR?
With this PR, the startup time of Avalonia applications using Direct3D 11 is improved by approximately 40-50ms on most machines. On my desktop this results in a reduction of 75ms -> 25ms to initialize Avalonia under AOT.
(Measured from AppBuilder.Configure to running Initialize in App.axaml.cs)
The CreateD3D11Display method now explicitly selects the appropriate driver type (D3D_DRIVER_TYPE_HARDWARE or D3D_DRIVER_TYPE_WARP) based on the characteristics of the chosen adapter. (With a fallback to legacy D3D_DRIVER_TYPE_SOFTWARE)
This eliminates the overhead of the runtime determining the driver type and makes the creation of the D3D11 device essentially free. Since we're already querying the available display adapters, it would be a waste to not use that information.
How was the solution implemented?

Added a check to determine if the chosen adapter is a software adapter by examining the Flags property of the DXGI_ADAPTER_DESC1 structure.
If the adapter is a software adapter, D3D_DRIVER_TYPE_WARP is used as the driver type. Otherwise, D3D_DRIVER_TYPE_HARDWARE is used.
If the initial attempt to create the D3D11 device fails (adapter is Software and WARP is not supported, very very rare), a fallback mechanism tries to create the device with legacy D3D_DRIVER_TYPE_SOFTWARE driver type.

And also

Introduced ThrowFormattedException helper methods to allow callers to be inlined.

I suspect that it will break virtual machines with Microsoft Basic Render Device

I suspect that it will break virtual machines with Microsoft Basic Render Device

It was my first time trying QEMU+KVM for Windows, but I've tried both the RedHat driver and the Basic Microsoft Driver with no issues.

I suspect that it will break virtual machines with Microsoft Basic Render Device

@kekekeks

It was my first time trying QEMU+KVM for Windows, but I've tried both the RedHat driver and the Basic Microsoft Driver with no issues.

@Sewer56 looks like this PR break Angle/DX on my machine:
[OpenGL]Unable to initialize ANGLE-based rendering with DirectX11 : 'System.ArgumentException: Value does not fall within the expected range.
   at Avalonia.Win32.DirectX.DirectXUnmanagedMethods.D3D11CreateDevice(IntPtr adapter, D3D_DRIVER_TYPE DriverType, IntPtr Software, UInt32 Flags, D3D_FEATURE_LEVEL[] pFeatureLevels, UInt32 FeatureLevels, UInt32 SDKVersion, IntPtr& ppDevice, D3D_FEATURE_LEVEL& pFeatureLevel, IntPtr* ppImmediateContext)
   at Avalonia.Win32.OpenGl.Angle.AngleWin32EglDisplay.CreateD3D11Device(IDXGIAdapter1 chosenAdapter, D3D_FEATURE_LEVEL[] featureLevels) in E:\Work\Projects\AvaloniaCopy1\src\Windows\Avalonia.Win32\OpenGl\Angle\AngleWin32EglDisplay.cs:line 175
   at Avalonia.Win32.OpenGl.Angle.AngleWin32EglDisplay.CreateD3D11Display(Win32AngleEglInterface egl) in E:\Work\Projects\AvaloniaCopy1\src\Windows\Avalonia.Win32\OpenGl\Angle\AngleWin32EglDisplay.cs:line 106
   at Avalonia.Win32.OpenGl.Angle.D3D11AngleWin32PlatformGraphics.TryCreate(Win32AngleEglInterface egl) in E:\Work\Projects\AvaloniaCopy1\src\Windows\Avalonia.Win32\OpenGl\Angle\D3D11AngleWin32PlatformGraphics.cs:line 77'
[OpenGL]Unknown requested PlatformApi 'DirectX11'

There are couple of problems:

D3D11CreateDevice+HARDWARE fails here with invalid argument. Don't really know why.
D3D11CreateDevice+SOFTWARE fails too, but UNKNOWN works fine.
D3D11CreateDevice return type should be "int" (non-void), and PreserveSig = false should be removed, if you want to implement fallback logic.
Before each fallback, there should be a warning log message, so developers can easier find this problem. Something like:

Logger.TryGet(LogEventLevel.Warning, LogArea.Win32Platform)?.Log(null, "Unable to create hardware ID3D11Device, error code = {ErrorCode}", $"0x{result:X}")

D3D11CreateDevice return type should be "int" (non-void),

I think the issue likely lies here.
Technically speaking, you're supposed to check the HRESULT you obtain from D3D11CreateDevice to determine the successful creation of a device. A non-zero HRESULT indicating an error.
The existing Avalonia code before this PR however did not do this. It checked the ppDevice parameter to see if a value was written to it instead.
In order to keep the amount of changes from main, minimal I left that unchanged and used the existing strategy Avalonia was using in place; even though it's not the idiomatic approach.
I did actually originally change the signature to fix this up (you can see it in earlier commits), but cleaned up to reduce the diff size from main.

@maxkatz6 Should I throw a patch for this?
You're the one who will have to test either way since the hardware's on your end, but I wouldn't mind throwing the PR in; it's just a few lines to fixup.

Ah, I was about to throw a PR against main to fix either way.
But since it got reverted, I cherry picked and threw it into a commit at https://github.com/Sewer56/Avalonia/commit/ec04ffacc56a5484c10ece72e9f1685d606bc9c0
In any case, what would be the preferred course of action here? Should I re-submit?

Yes, a new PR with updated version of the change.


Verifying double ignores custom matcher failure_message

Steps to reproduce:

Create a custom matcher with a custom failure message, e.g.:
RSpec::Matchers.define :foo do
  match do |actual|
    actual.is_a?(Foo)
  end

  failure_message do |actual|
    return "Expected Foo, got #{actual.class}" unless actual.is_a(Foo)
  end
end

Use the custom matcher to verify a (failing) double invocation, e.g.:

RSpec.describe 'frob' do
  it 'frobs' do
    mock_frob = instance_double(Frob)
    expect(mock_frob).to receive(:frob).with(foo)
    mock_frob.frob('Baz')
  end
end

Expected:
Test failure output includes custom message.
Actual:
Test failure output is generic:
Failures:

  1) frob frobs
     Failure/Error: mock_frob.frob('Baz')

       #<InstanceDouble(Frob) (anonymous)> received :frob with unexpected arguments
         expected: (foo)
              got: ("Baz")

Notes
Running the test in the debugger, it seems like failure_message registers the message block successfully, but then the block is never invoked.
This isn't a big deal for this simple use case, but for a complex custom matcher, especially one with chained arguments, it would be really useful to be able to describe in detail just what was expected of the argument and just what was wrong with it.
Using rspec-mocks 3.4.1.

As a workaround, I've monkey-patched ErrorGenerator as follows in my rspec_custom_matchers file:
class RSpec::Mocks::ErrorGenerator
  unless respond_to?(:_default_error_message)
    alias_method :_default_error_message, :default_error_message
    def default_error_message(expectation, expected_args, actual_args)
      failures = [_default_error_message(expectation, expected_args, actual_args)]
      expectation.expected_args.each do |expected|
        if expected.respond_to?(:failure_message)
          failures << expected.failure_message
        end
      end
      failures.join("\n  ")
    end
  end
end

It is working working exactly as designed.  failure_message is not intended to be displayed in a case like that.  That is what description is for.  You can override description to customize how the matcher is represented when it is used in another failure message:
RSpec::Matchers.define :foo do
  match do |actual|
    actual.is_a?(Foo)
  end

  failure_message do |actual|
    return "Expected Foo, got #{actual.class}" unless actual.is_a(Foo)
  end

  description do
    "A fabulous foo"
  end
end

This would change expected: (foo) to expected: (A fabulous foo).
failure_message and description have different purposes:

failure_message is an arbitrarily long explanation of the failure.  There is no expectation it takes any form, or is worded in any particular way.
description is meant to be a description of the matcher, phrased as a noun, and is specifically used everywhere in RSpec the matcher is represented in output.  For example, the failure messages for rspec-mocks use the description for failed arg matches.  All composable matchers use description too.  description is sometimes printed in the middle of a prose sentence, so it is important it is phrased as noun (so that the sentence makes sense) and that it is not excessively long.

BTW, if you do want to see the failure_message from the matcher, you can do that just be specifically writing an expectation about it:
expect(mock_frob).to receive(:frob) do |arg|
  expect(arg).to foo
end

Since foo here is just being used as a normal expectation, the expectation failure will use the failure_message and print that.

The problem with description is that it doesn't have access to actual, which means you're dependent on actual.to_s to provide useful output, which in the case of a complex object like, say, Net::HTTPRequest, it doesn't. Likewise, as you say, description is supposed to be short, which makes it unsuitable for providing detailed information on a complex failure.

I thought you were asking for the failure_message to be printed instead of description where the current message says expected: ...but are you asking for it to be displayed after the existing failure message?
I think we'd be open to a PR adding support for that, provided that it formats the output to look nice for when you've got multiple matchers used in place of multiple args.  The output will need to make clear which arg a particular failure message is for.

Asking it to be displayed at all, really. If I have time, I'll look at formulating a PR. But the { |arg| expect(arg)...} workaround might be good enough.


Fix typo in GH action config example

Fixed a typo in the dendron-cli call which would cause a 'no such file or directory' error when attempting to build the site

nice catch! merged


Supported ::marker pseudo.

Closes #634
Description

Supported ::marker pseudo.

Current behavior (updates)

Nothing.

New behavior

Nothing.

Is this a breaking change (Yes/No):
No.
Additional Information

Hi, thanks for the PR!
::marker is pseudo-element, please fix JSDoc.

@illionillion
Hi, thanks for the PR!
::marker is pseudo-element, please fix JSDoc.


Is it possible to define recursive types?

The title says it all really but here is an example of what I mean:
const MyDataType = Record({
  someData: String,
  recursive: Array(MyDataType).Or(Undefined)
})

this isn't legal code because MyDataType is used before it's declaration.
Apparently this is possible in Typescript using this trick: https://github.com/Microsoft/TypeScript/issues/3496#issuecomment-128553540

Closing issue because I found this issue: https://github.com/pelotom/runtypes/issues/14


CallToActionView Not Responding to Press on Android

MAX Module Version
7.0.1
React Native Version
0.73.6
Device/Platform Info
Android 14
Current Behavior
The CallToActionView inside NativeAdView is not responding to presses on Android. The TitleView and MediaView work fine. The CallToActionView is wrapped with TouchableOpacity.
It seems that the onPress event is not being passed through when wrapped with TouchableOpacity.
This issue is specific to Android. On iOS, it works correctly.
Expected Behavior
No response
How to Reproduce
When using the CallToActionView inside NativeAdView, there is no response when it is touched on Android.
Additional Info
If I remove TouchableOpacity, the CallToActionView works, but this may not be the ideal solution.

https://github.com/user-attachments/assets/145a86f8-a054-4081-9b06-74d1c8f1b759

https://github.com/user-attachments/assets/bd01a59c-f93e-4320-a881-7091f668b2e6

@alhiwatan
I have reproduced the issue using the provided example code (this repo). I only changed the app package, SDK_KEY, and NATIVE_AD_UNIT_ID, and the issue occurs on Android in the same way.
Please refer to the attached video for more details.
https://github.com/user-attachments/assets/190648b2-7a61-4384-bc16-8eb4ace60587

@alhiwatan
Have you checked my response and the video? If you need any further information or updates, please let me know.

@hongjae-eum , thank you for updating us on the issue. Unfortunately, we are unable to reproduce it on our end. Could you please enable verbose logging and send us the logs so we can investigate further?

@alhiwatan
I executed AppLovinMAX.setVerboseLogging(true); to generate logs, but I do not see any logs.
The app is an example code from your repository, and I added setVerboseLogging. The physical device used is registered as a test device.
However, no logs are appearing. Is there any other action required to view the logs?

@hongjae-eum,  the verbose logging logs are printed as a log of Android system messages.   You can view them with adb logcat or in the Android studio.

@alhiwatan
I am attaching the logcat records.(The SDK key and package name have been replaced with different values.)
samsung-SM-G996N-Android-14_2024-08-12.txt
Since the content is extensive, I filtered it using "applovin". If you need any other filtering, please let me know.
The scenario is as follows: App launch -> Click "Show Native Ad" -> Click the CTA button, but no action occurs (about 10 times).
I also noticed that the following log entries appear when clicking the CTA button.
 1371-1371  LayerHistory            surfaceflinger                       I  world.mnetplus/com.applovinmaxexample.MainActivity$_8509#3351 Max (can't resolve refresh rate)

@hongjae-eum, thank you for uploading the logs, and I apologize for the delay in getting back to you. Unfortunately, I couldn't find anything specific in the logs.
I wonder if the issue could be specific to Samsung devices. If you can access another Android device, could you try replicating the issue? I also have a Samsung tablet and was able to reproduce the issue on it.

@hongjae-eum, we believe that the issue has been fixed in the v8.0.1.  Could you check it out when you have a chance?

https://github.com/AppLovin/AppLovin-MAX-React-Native/releases/tag/release_8_0_1


Show full text instead of 'Show more'

Apologies if this has already been addressed - I did a search but didn't find it.
When showing a longer tweet, would be possible to display the full text without having to click the 'Show more' link?

this please!


xenforo alerts?

does this forum feature a similar alerts system? for replies?

I'm not a big user of xenforo, so I'm not that familiar with its alerts system.
In Elk it's possible to receive notification emails for replies to topics you are subscribed to or for new topics opened in boards you are subscribed to.
does that answer your question?

"In Elk it's possible to receive notification emails for replies to topics you are subscribed to or for new topics opened in boards you are subscribed to."
yeah but its not really modern enough
the xenforo alerts are more instant, than checking an email inbox to be notified of a reply etc.
"so I'm not that familiar with its alerts system.".. well its only like the single biggest reason xenforo is so popular.

No need to be bother checking for email notifications,.. I really recommend trying a xenforo forum and posting something to see as they really help with increasing community engagement, while at the same time saving people time wasting browsing forum boards to see if the threads they've had interest in have any new replies..
anyway just puzzled as to how many forum boards don't bother supporting it, its like xenforo patented it.
some pics of it from search results...
https://xenforo.com/community/resources/inbox-alert-icon.1283/
https://www.psxhax.com/attachments/alert-png.90/
https://www.psxhax.com/attachments/mention-png.89/

Basically have the notifications counter update with ajax, tie the bookmarks plugin into it, and have an optional ajax popup that lets you know when this happens.
Elkarte is so close to having this I just felt I would mod it.

Well if you do mod it could you share it.. I don't think that bookmarks plugin is really going to get all the features of the way the xenforo alerts work.. There is a 'un/watch thread' link at the top of each thread in xenforo that does bookmark a thread (if you reply to it it automatically watched though), that way if someone replies to it (even if you haven't it) it will show in the alert notifications.. but is that bookmark plugin going to handle someone quoting you or replying to you?.. because in xenforo if you've replied to a thread, but no one quotes or replies to you, you don't get a notice.. only after a certain time period of thread inactivity, should someone reply to the thread will you get a notice.. I guess the finer intricacies of how its handled is to make sure you don't get flooded with alerts for popular threads with lots of replies even if no one is directly responding to you or something you've said.
Anyway elkarte does seem pretty modern, and if this feature could be tied into the main package I think you will be surprised at the number of new users who would switch to it. Xenforo ain't entirely worth its license fee and I've seen many look for alternatives over the years including myself.
https://i.imgur.com/bSYMyy4.png
https://i.imgur.com/f4ZQJzp.png
interestingly Unity tried switching to the lithium forums last year... thinking it was more modern.. and the entire community went into meltdown because it those forums were so incredibly shit, it was a total regression on the features and design compared to xenforo forums, they ended up putting xenforo back..  why? for one far better ajax alerts feature :)
Oh I dunno if elkarte features a 'like' system, but that is another thing that is tied into the alerts.. if someone likes a post of yours you get notified of who and what thread aswel...again it really adds to community engagement.
I currently use smf but its showing its age and despite the fairly large plugin db and how much i've modded it.. I'm looking for a newer altenative that is more modern for my next project... and also the smf alerts mod which does provide an xenforo like alerts system https://www.smfpacks.com/alertmod/ .. still its not free and at  40$ its almost halfway to a second hand xenforo license...albeit on a forum board that seems to have more broken plugins than anything.

hmm..
Well, Elk does have an... let's call it alerts (actually, I don't remember how I called it :laughing: ) system.
it doesn't provide a tons of alerts, in 1.1 there is mention, quote, buddy, like and mail failure (for admins)).
1.1 has desktop notifications.
1.1 has the favicon thingy (with some customization about position and colors of the "bubble").
There is no... "popup" with the list of notifications, but a page for them (though there is an addon that makes the list appear as sub-menu list, I'm not sure if it work with 1.1 yes).
There is quite a bit of configurability for both admin and users in how to receive notifications.
It sill needs quite a bit of work to make it complete.
BTW, you can register to the forum to have a better idea.

XeonG wrote on 04/10/17 02:31:

the xenforo alerts are more instant, than checking an email inbox to
be notified of a reply etc.

No need to be bother checking for email notifications,..

Well, it depends on the point of view, I do not spend all the day on the
forum, but I do have the email client always open.
I can monitor multiple forums from my email, but I have to have them all
open if I want to monitor them through an alert system.
So if modernity is just being forced to keep tabs open... well it sucks
a bit. :P

you still get email notices on xenforo aswel for replies/quotes etc. not likes etc though.. I think if you're not online actively then you def get email notifications, where as if you are on the site you get realtime alerts, and those alerts might not get sent to email... never run an xenforo to know the all settings.. but from experience of it thats how it seems to work...
and yknow for those who visit the website or leave a tab open for it, its much nicer.. where as email only notices is very much old skool... so its not removing an old feature of email notificatons, its just modernizing it to be more realtime for members on the site to get more instant notices to things happening..  which might not be instant if you leave an email client open.. andy those ajax alerts on the site are much quicker than going from an email to the website.
"It sill needs quite a bit of work to make it complete."
I look forward to seeing it more feature complete in this direction as I really do think its a good feature to have built in.
"BTW, you can register to the forum to have a better idea."
I'll signup pretty soon, or try out the wordpress-elkarte bridge with my own local site

I've honestly found Xenforo's alerts system a bit frustrating. I think there is room for us to o a bit better.

Not being this an actual issue I'm going to close it.
If you have further comment feel free to continue the discussion here or at elkarte.net without any problem. :smiley:

I just wanted to know if it would be put on the roadmap really.


Add test for MariaDB 5.5 and 10.1 on Travis

This use the brand new supported addon mariadb (not yet officially announced).
This is unfortunately a bit verbose, but I don't think there is any
alternative because we cannot install the addon when testing against mysql
otherwise it would overwrite mysql install.

This goes in pair with https://github.com/doctrine/dbal/pull/886

:+1:

Thanks @PowerKiKi!


Add clamp func

Context
While substituting GetLazyRootDirectory funcs on lazygit I faced a conflict on pkg/integration/clients/tui.go as it's using Clamp from lazygit/pkg/utils. So adding this here and updating both would solve the issue and contribute to the goal of this package.

@jesseduffield This is ready for review :)

Nice one @gusandrioli


docker image for datadog api client

Status
Ready/In Progress/In Hold (Reason for hold)
Related Content Pull Request
Related PR: link to the PR at demisto/content
Related Issues
Related: link to the issue
Description
A few sentences describing the overall goals of the pull request's commits.

 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.

Creating a new branch and pushing it.


NUNit input reports 1 test / 1 file / 1 suite despite there being 23 tests

First of all, apologies that this is a private repo, but I hope the info I provide is enough to work with. As it's a private repo, I've redacted some info, but that shouldn't affect anything.
I have started trying to use the new NUnit parsing with a test suite I have.
Yaml run log (with DEBUG on)
publish.log
Please let me know if there is any info i should retract in here.
Yaml Usage
# v2 offers NUnit support - https://github.com/EnricoMi/publish-unit-test-result-action/tree/devel-2.0
- name: Publish Integrated Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: ${{ always() }}
with:
  github_token: ${{ secrets.GITHUB_TOKEN }}
  check_name: Integrated Unit Test Results
  check_run_annotations: all tests, skipped tests
  comment_mode: always
  test_changes_limit: 999
  nunit_files: |
    MyProject/bin/x64/**/net48/*integrated_out.xml
  report_individual_runs: true
  root_log_level: DEBUG
  log_level: DEBUG

Input NUnit file
Renamed to .txt so Github will alow uploading
MyProject_integrated_out.xml.txt
Report

Thanks for reporting! The example NUnit file is very valuable.
I was able to improve the parser to support your format as well as all existing tested formats: #331.

The fix has been released.

Sensational, thanks so much @EnricoMi, it's working perfectly!


Translating reference-react-component.md

@itzikya Btw I also didn't know this, next time you can go to the 'Files Changed' tab and 'add suggestion to batch' and commit them all once instead of committing each one.

@itzikya Btw I also didn't know this, next time you can go to the 'Files Changed' tab and 'add suggestion to batch' and commit them all once instead of committing each one.

I was searching for a way to do it, thanks!


Bug(docs): Documentation changes cause Litestar docs to encounter buildtime errors

Description
When building docs, changes in AA are sometimes causing Litestar build steps to warn/fail.
Solution would be to set up a CI workflow to check out the develop branch of Litestar and build the docs against the latest AA codebase, and fail if any build errors are encountered.
This way we can ensure (up?) downstream build success.
URL to code causing the issue
https://github.com/litestar-org/litestar/actions/runs/8206934469/job/22447123447?pr=3169

Closed by litestar-org/litestar#3169


Segmentation Fault

I am receiving segmentation faults when trying to install and load in python
import duckdb
Connect to an in-memory DuckDB database with the required configuration
con = duckdb.connect(':memory:', config={'allow_unsigned_extensions': 'true'})
Set the configuration for allowing extensions with metadata mismatch
con.execute("SET allow_extensions_metadata_mismatch=true;")
Install the 'scrooge' extension
con.execute("INSTALL '/home/k8/Documents/quack2/build/release/extension/quack/quack.duckdb_extension';")
con.execute("LOAD '/home/k8/Documents/quack2/build/release/extension/quack/quack.duckdb_extension';")
Load the CSV file into DuckDB and execute the query
result = con.execute("select quack('Jane') as result;").fetchone()
print(result)
#close
con.close()

Hi @Benyaminwasnthere could you tell me what happens when you set allow_extensions_metadata_mismatch to false? you are circumventing a check here which checks that the extension matches platform and version of the duckdb instance trying to load it.


[Bug Report]: Carbone never resolves the report (with pkg)

Environment
Carbone Version: Carbone 2.1.1
Node Version: 12.16.2
Browsers: N/A
Desktop OS: Docker / Ubuntu 20
Other: pkg 4.4.9
Expected Behaviour
Carbone finishes generating a report or throws an error
Actual Behaviour
Carbone never completes generating the report or throws an error.
Steps to reproduce
Steps to reproduce the bug:

write a carbon application
run it with node - it works fine
package it using pkg pkg -t node12-win main.js
run the output - it does not work.

Reproduction Link / Code example
carbone.render("/snapshot/build_report/test.docx", {a:1, b:2, c:3}, {convertTo: 'pdf'}, function (err, result) {
        print("rendered")
        //IF THERE WAS AN ERROR RETURN IT
        if (err) {
            console.log(err);
            res.statusMessage = "Carbone had an error";
            res.set('Content-Type', 'application/json');
            res.status(400).send({ error: err.message });
            res.end()
            return;
        }

        //REPORT WAS SUCCESSFUL SEND BACK DATA
        res.set('Content-Type', returnType);
        res.send(result);
    });

Other comments
I have a use case where I cannot have node installed on a client machine (libre office is already installed), so I am using a package called pkg that bundles nodejs with your source into an executable. However once bundled Carbone never is able to render and will just sit there for an infinite period of time (in my case 1 hour before I killed it)

Hello @pilotkid,
Have you tried to replace the absolute path by path.join('snapshot', 'build_report', 'test.docx')?
Does it work with different templates?

Hello @pilotkid,
Have you tried to replace the absolute path by path.join('snapshot', 'build_report', 'test.docx')?
Does it work with different templates?

Hello, I have attempted this solution to no avail.
No templates work as expected.
I have also tried moving to a different directory and that did not solve the issue. Hardcoding the path (E.G. C:\snapshot\build_report\test.docx), or using path.join does not work.
If I move the template to a different directory it also does not work.
It also does not work when I try to use relative directories.
I also would like to mention that if I use fs to read the file it works fine, I can read the full contents of the file using:
const data = fs.readFileSync(req.file.path, 'utf8')
console.log(data)

Hello, I have attempted this solution to no avail.
No templates work as expected.
I have also tried moving to a different directory and that did not solve the issue. Hardcoding the path (E.G. C:\snapshot\build_report\test.docx), or using path.join does not work.
If I move the template to a different directory it also does not work.
It also does not work when I try to use relative directories.
I also would like to mention that if I use fs to read the file it works fine, I can read the full contents of the file using:
const data = fs.readFileSync(req.file.path, 'utf8')
console.log(data)

Hello @pilotkid,
First, I passed the absolute path to Carbone with: const reportPath = path.join(__dirname, "template.docx");. I replicated the issue and it is not coming from the readFile. The issue is occurring when Carbone renders as a PDF, it is working when the export file type is a DOCX document. The issue seems to be the communication with Libre Office to convert to PDF. Carbone uses a python gateway converter.py to communicate with the Libre Office Uno API. The pkg project is not including the Python environment and it is limited to the node execution. The issue is not related directly to Carbone.


Investigate Propfind deep benchmark

Description
We have a slight performance drop (~25%) between ocis 1.13 and ocis 1.14.
See #2671
Investigation is needed.

Still open

still needs investigation

still needs investigation

this is getting worse. AFAICT cdperf uses the legacy /dav/files/{username} endpoint. For that the ocdav service acts as a client that has to query every storage space a user has access to to determine the most recent etag to present for the root. First the code lists all storage spaces the user has access to, then it has to do a stat request to fill the etag and mtime. by requesting the new root_info property we could get rid of the additional stat request.
Furthermore, the ocdav service should cache share spaces for recipients, because they don't need to immediately see changes when using the legacy endpoint.


feat(performance): Add PreloadWebpackPlugin for preloading initial JS chunks and simplify html pipeline

The type of this PR is: Feat
This PR solves DIA-969
Description
This adds support for preload hints around initial JS chunks that are shipped down to the page via https://github.com/vuejs/preload-webpack-plugin.
Idea first came from reading this blogpost and dug around a bit and realized that webpack can do this all for us.
Example output:

Also refactored / simplified our html setup by not manually defining JS chunk output in our html template, and instead let HTMLWebpackPlugin do the work it was originally designed to do 🤷
cc @artsy/diamond-devs

Gonna merge to get this to staging. Happy to follow up with any change requests!


refactor tx

I'm playing with the DSL to try approach a "literate" style, if that term makes sense... simple case:
const tx = new Tx()
  .addInputs(inputUtxos)
  .attachScript(mintProgram);

[ ] create a helper function
https://github.com/aleeusgr/potential-robot/blob/51fb1fb09467247e5085e3e7cf15598e2af7c2da/src/vesting-lock.ts#L52-L78


Volto Documentation Integration with docs.plone.org

We should set up a documentation for plone-react. mkdocs seems to be a good fit:
http://www.mkdocs.org/
We choose Markdown over ReST because Markdown is kind of a standard in the JS world.

@robgietema what's your opinion here? Markdown or ReST?

@tisto if you plan to include these docs under docs.plone.org, then I would suggest using reST. reST is an implicit requirement:

Check that you are using valid restructured text.

@svx and other docs team members may have further information.

@stevepiercy we are aware of that and also about the limitations of Markdown in comparison to reST. Though, plone-react is a pure ReactJS library and Markdown is pretty much standard in the JS world. Getting plone-react to the core is not on our roadmap right now.

Using mkdocs as generator, @tisto nowadays I can't see any limitation on it comparing to ReST.
https://docs.voltocms.com
We have to discuss how to integrate them in the future with Plone's ones with the documentation team.

@sneridagh this is something that we have to discuss with Plone 6 in mind. What do we do if Volto becomes Plone 6? Then we have to integrate our docs into docs.plone.org. @svx opinions?

I will save the talk about differences between Sphinx and MkDocs for a different time.
Just so, much there are huge differences in the way of functionality, specs, community support, and activity, etc but this is not the point.
These days it is common that various communities use a favorite markup language.
We do the same in the 'go' world, where we use Markdown, too.
To make it short, there is NO way to include Markdown-based docs into docs.plone.org, at least not as long Plone uses reST and Sphinx.
Yes, Sphinx supports CommonMark (Markdown spec) these days, but the support is limited and the development is not really active.
For example, some Markdown features form the MkDocs Material theme, which are used in Volto, are not supported and this is only one example.
More item:

We use various Sphinx directives which do not exist in Markdown/MkDocs
Custom CSS selector which are bind to Sphinx directives
Custom JS which is bind to Sphinx directives
Custom Sphinx configuration settings which do a "search and replace" in the docs, for version numbers, etc
...
...

The way how toctrees are working is different, meaning we can not include the existing file/dir setup from the Volto documentation.
And no, converting with pandoc will not work, pandoc does not speak modern Markdown and even if you use the "original" Markdown spec. you always have to fix lots of bits after you run pandoc :)
One other point, I was not able to find any style-guide for documentation in the Volto repository, meaing the quality in terms of wording, file structure of the docs, etc would be different and because of this we would end up with a documentaion which is party QA checked and part;y not, which decreasses the all over QA and because of this the reading exprience for the user :)
The question is, do we have to intregarte the docs at all ?
I could go on here for hours :) but I guess this does it for now?
Feel free to ping for more! :)

Hey Sven,
As you have already checked out, the Volto docs are a very early stage and
still a work in progress, we had to start and we started with the current
iteration. You can imagine how hard is for the current Volto team to take
care of everything required to boot such an ambitious project by ourselves.
I have no doubts whatsoever about your expertise here and we are open to
find a solution for the mid-term goal that would lead to the integration
with Plone docs. I just wanted to start the conversation with my comment on
the issue!
Looking forward to discuss this soon.
Cheers,
V.
On Sun, 3 Mar 2019 at 06:52, sven<EMAIL_ADDRESS>wrote:

I will save the talk about differences between Sphinx and MkDocs for a
different time.
Just so, much there are huge differences in the way of functionality,
specs, community support, and activity, etc but this is not the point.
These days it is common that various communities use a favorite markup
language.
We do the same in the 'go' world, where we use Markdown, too.
To make it short, there is NO way to include Markdown-based docs into
docs.plone.org, at least not as long Plone uses reST and Sphinx.
Yes, Sphinx supports CommonMark (Markdown spec) these days, but the
support is limited and the development is not really active.
For example, some Markdown features form the MkDocs Material theme, which
are used in Volto, are not supported and this is only one example.
More item:

We use various Sphinx directives which do not exist in
Markdown/MkDocs
Custom CSS selector which are bind to Sphinx directives
Custom JS which is bind to Sphinx directives
Custom Sphinx configuration settings which do a "search and replace"
in the docs, for version numbers, etc
...
...

The way how toctrees are working is different, meaning we can not include
the existing file/dir setup from the Volto documentation.
And no, converting with pandoc will not work, pandoc does not speak
modern Markdown and even if you use the "original" Markdown spec. you
always have to fix lots of bits after you run pandoc :)
One other point, I was not able to find any style-guide for documentation
in the Volto repository, meaing the quality in terms of wording, file
structure of the docs, etc would be different and because of this we would
end up with a documentaion which is party QA checked and part;y not, which
decreasses the all over QA and because of this the reading exprience for
the user :)
The question is, do we have to intregarte the docs at all ?
I could go on here for hours :) but I guess this does it for now?
Feel free to ping for more! :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/plone/volto/issues/67#issuecomment-468991737, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAduD9MhEdsGmdaek-bodoRIoZAUkTDlks5vS2MMgaJpZM4Rg-bK
.

Hey! :)
My previous comments were not meant as a critic!
Maybe it is time to re-think the whole Plone documentation setup as a whole?
The "stack" and tooling has changed over the last couple of years and will keep changing.
That is not "only' for the frontend part, also how installation and hosting works will change/is already changing.
Since the community is also not that huge anymore we should also take in mind that by using the "default' technologies and best practices of tools which are used within certain communities (like Markdown for ReactJS related docs) it makes it "easier" or/and more attractive for non Plone/Python people to contribute.
Yes, Sphinx and reST is superior to Markdown. You can do more with it and it has a spec (CommonMark is still not official). But does that means we have to stick with it?
For me it is not "only" about the tooling, the main focus should be to have awesome docs! If that means we switch to Markdown (only an example here), even if by doing so we would lose some cool reST features, but we would have better docs, we should think about it at least.
Like I said the "Plone stack" is changing, so we also should keep that in mind with the docs.
Disclaimer
I am NOT saying we will change now to Markdown or something else, but now is a good time to have an open-minded discussion about it.

I have strong doubts that anyone would undertake the behemoth task of converting the volume of Plone docs from reST to any other markup language as a volunteer. I've done small conversions using pandoc, and they always require considerable manual fixes. It would be hundreds, probably thousands, of hours of labor. Any open minded discussion without addressing this elephant in the room would be without merit.
Nonetheless I love to be proved wrong because then I learn something I did not know. Please suggest how things would be integrated or converted, who would do it, how long it would take, how much it would cost. You know, the excruciatingly boring and tedious details that result from painstaking thought, consideration, and research. Propose a proof of concept, and execute on it. Convert a section of documentation from one format to another, time how long it takes, note the bugs from conversion, evaluate what is lost and gained.

Well :)
I never said that it will be done in 5 minutes :)
My point is we are currenlty started wirting the docs for Plone 6 from scratch anyway.
Lots of the current content will be not make it to the docs of Plone 6.
We are littely touching every file from hand, movins stuff, improviing stuff, cuitting stuff, etc.
Basically we split the 'docs team' @polyester is doing all things related to our cuttent docs and I am started workingon the docs for 6.
We have more or less a year, my "main issue' is more that I am waiting of input from the community what content will be change (like the whole frontend) stuff. :)
Like I tried to say, there is nothing decided yet, but I would love to have a tal about the furture also taken in mind new technologies which are used like ReactJS :)

https://docs.voltocms.com/ is now on https://6.dev-docs.plone.org/ WIP, but this can be closed.


(windows) docker ps hangs

We are behind a proxy, so I create the machine manually with the --engine-env proxy settings.
I can ssh into the machine and run docker ps and docker run hello-world just fine.
However from the Git Bash prompt, docker ps just hangs, eventually giving up.
$ docker -D ps
time="2016-01-19T11:05:05Z" level=debug msg="Trusting certs with subjects: [0\x131\x110\x0f\x06\x03U\x04\n\x13\bkimptonc]"
An error occurred trying to connect: Get https://<IP_ADDRESS>:2376/v1.21/containers/json: EOF

$ docker -D info
time="2016-01-19T11:14:00Z" level=debug msg="Trusting certs with subjects: [0\x131\x110\x0f\x06\x03U\x04\n\x13\bkimptonc]"
An error occurred trying to connect: Get https://<IP_ADDRESS>:2376/v1.21/info: EOF

$ docker-machine ls
NAME      ACTIVE   URL          STATE     URL                         SWARM   DOCKER   ERRORS
default   *        virtualbox   Running   tcp://<IP_ADDRESS>:2376           v1.9.1

$ docker -D version
time="2016-01-19T11:15:21Z" level=debug msg="Trusting certs with subjects: [0\x131\x110\x0f\x06\x03U\x04\n\x13\bkimptonc]"
Client:
 Version:      1.9.1
 API version:  1.21
 Go version:   go1.4.3
 Git commit:   a34a1d5
 Built:        Fri Nov 20 17:56:04 UTC 2015
 OS/Arch:      windows/amd64
An error occurred trying to connect: Get https://<IP_ADDRESS>:2376/v1.21/version: EOF

Using Windows 7 - 64bit with VirtualBox
Apologies if this is an existing item - did not find it while searching for it.
Cheers.

If you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead.
If you suspect your issue is a bug, please edit your issue description to include the BUG REPORT INFORMATION shown below. If you fail to provide this information within 7 days, we cannot debug your issue and will close it. We will, however, reopen it if you later provide the information.
For more information about reporting issues, see CONTRIBUTING.md.
You don't have to include this information if this is a feature request
(This is an automated, informational response)

BUG REPORT INFORMATION
Use the commands below to provide key information from your environment:
docker version:
docker info:
Provide additional environment details (AWS, VirtualBox, physical, etc.):
List the steps to reproduce the issue:
1.
2.
3.
Describe the results you received:
Describe the results you expected:
Provide additional info you think is important:
----------END REPORT ---------
#ENEEDMOREINFO

Just tried Kitematic and that works - so I guess the issue is more client side than VirtualBox setup...

did you set related proxy setting in bash environment ?
And when use strace did it help you get more info ?
And when you said "
I can ssh into the machine and run docker ps and docker run hello-world just fine.
However from the Git Bash prompt, docker ps just hangs, eventually giving up.
"
Not quite understand. ssh the machine and run from Git bash prompt, is it run from same machine ?

Hi.
Didn't set the proxy settings in the Windows git bash environment - wouldn't have thought they would be needed.
Does strace work on Windows? Will try that when back in the office tomorrow.
What I mean about the ssh into the machine is
'''
docker-machine ssh default
'''
Then in the docker host VM
'''
docker run hello-world
'''
And that works ok - pulls down the image and runs it.

I suggest you track what's the related calls in Git Bash(which I think is windows special only, as I did not quite famaliar with docker in Windows, not have such environment to try)

Ok - the strace of "docker ps" gives the below - is there a way to get more detail - doesn't mean too much to me.
$ strace docker ps
An error occurred trying to connect: Get https://<IP_ADDRESS>:2376/v1.21/containers/json: EOF
--- Process 13436 created
--- Process 13436 loaded C:\Windows\System32\ntdll.dll at<PHONE_NUMBER>450000
--- Process 13436 loaded C:\Windows\System32\kernel32.dll at<PHONE_NUMBER>230000
--- Process 13436 loaded C:\Windows\System32\KernelBase.dll at 000007FEFD540000
--- Process 13436 loaded C:\Windows\System32\ws2_32.dll at 000007FEFE580000
--- Process 13436 loaded C:\Windows\System32\msvcrt.dll at 000007FEFDD60000
--- Process 13436 loaded C:\Windows\System32\rpcrt4.dll at 000007FEFD700000
--- Process 13436 loaded C:\Windows\System32\nsi.dll at 000007FEFE8A0000
--- Process 13436 loaded C:\Windows\System32\advapi32.dll at 000007FEFE4A0000
--- Process 13436 loaded C:\Windows\System32\sechost.dll at 000007FEFD830000
--- Process 13436 loaded C:\Windows\System32\winmm.dll at 000007FEF5740000
--- Process 13436 loaded C:\Windows\System32\user32.dll at<PHONE_NUMBER>350000
--- Process 13436 loaded C:\Windows\System32\gdi32.dll at 000007FEFE1C0000
--- Process 13436 loaded C:\Windows\System32\lpk.dll at 000007FEFDD50000
--- Process 13436 loaded C:\Windows\System32\usp10.dll at 000007FEFD5B0000
--- Process 13436 loaded C:\Windows\System32\imm32.dll at 000007FEFD850000
--- Process 13436 loaded C:\Windows\System32\msctf.dll at 000007FEFD880000
--- Process 13436 thread 15492 created
--- Process 13436 loaded C:\Windows\System32\cryptsp.dll at 000007FEFCEC0000
--- Process 13436 loaded C:\Windows\System32\rsaenh.dll at 000007FEFC6F0000
--- Process 13436 loaded C:\Windows\System32\cryptbase.dll at 000007FEFD050000
--- Process 13436 loaded C:\Windows\System32\shell32.dll at 000007FEFE9D0000
--- Process 13436 loaded C:\Windows\System32\shlwapi.dll at 000007FEFD680000
--- Process 13436 thread 6600 created
--- Process 13436 thread 20408 created
--- Process 13436 loaded C:\Windows\System32\mswsock.dll at 000007FEFC990000
--- Process 13436 loaded C:\Windows\System32\WSHTCPIP.DLL at 000007FEFBD70000
--- Process 13436 loaded C:\Windows\System32\wship6.dll at 000007FEFC980000
--- Process 13436 loaded C:\Windows\System32\dnsapi.dll at 000007FEFC810000
--- Process 13436 loaded C:\Windows\System32\IPHLPAPI.DLL at 000007FEFC3B0000
--- Process 13436 loaded C:\Windows\System32\winnsi.dll at 000007FEFC3A0000
--- Process 13436 thread 4236 created
--- Process 13436 loaded C:\Windows\System32\rasadhlp.dll at 000007FEF33D0000
--- Process 13436 loaded C:\Windows\System32\FWPUCLNT.DLL at 000007FEF3BC0000
--- Process 13436 thread 9712 created
--- Process 13436 thread 13892 created
--- Process 13436 thread 4236 exited with status 0x1
--- Process 13436 thread 15492 exited with status 0x1
--- Process 13436 thread 13892 exited with status 0x1
--- Process 13436 thread 20408 exited with status 0x1
--- Process 13436 thread 9712 exited with status 0x1
--- Process 13436 thread 6600 exited with status 0x1
--- Process 13436 exited with status 0x1

Oh, and I do have the PROXY settings set in the windows git bash env.
I wonder if its the NO_PROXY setting - which I did not set - do I need to point that at the docker VM ip?

it seems it talked to https://<IP_ADDRESS>:2376, which I suggest use curl and tcpdump to track if anything special error hit.
And for NO_PROXY,  I think something you need care about like <IP_ADDRESS> etc.

... just tried setting NO_PROXY to the docker VM IP address and its working.
I guess I should set it in my start.sh, to cater for it changing.

Ok, my solution is to amend start.sh after it starts the VM and sets the env to set the NO_PROXY like so:
eval "$($DOCKER_MACHINE env --shell=bash $VM)"

export NO_PROXY=$($DOCKER_MACHINE ip $VM)  # MY NEW LINE

clear
cat << EOF


odo login should check  insecure-skip-tls-verify from kubeconfig

[kind/bug]

What versions of software are you using?
Operating System :
Output of odo version :

How did you run odo exactly?

Expected behavior

Actual behavior
if certificate is self signed, odo login asks for verification even insecure-skip-tls-verify: true has been specified in ~.kube/config (oc honors this field)
Steps to reproduce the behavior

Any logs, error output, etc?
Do you have any idea what may have caused this?
Do you have an idea how to solve the issue?

Closing this since issue is being resolved


Failed to use V1.18.3 QUIC

Two questions：
1、QuicUpstreamTransport is fail
The configuration file：google_com_http3_upstream_proxy.yaml
error：
lq@ubuntu:~/work/go/bin/quic-go/example/client$ sudo curl <IP_ADDRESS>:10000/
curl: /usr/lib/x86_64-linux-gnu/libcurl.so.4: no version information available (required by curl)
upstream connect error or disconnect/reset before headers. reset reason: connection failure, transport failure reason: QUIC_NO_ERROR with details: Closed by application
2、QuicDownstreamTransport is fail
The configuration file：envoyproxy_io_proxy_http3_downstream.yaml
client：quic-go client
server：envoy
error：
./main -v -insecure https://<IP_ADDRESS>:10000
GET https://<IP_ADDRESS>:10000
failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). See https://github.com/lucas-clemente/quic-go/wiki/UDP-Receive-Buffer-Size for details.
Activating reading of ECN bits for IPv4 and IPv6.
Activating reading of packet info for IPv4 and IPv6.
client Starting new connection to <IP_ADDRESS> ([::]:41254 -> <IP_ADDRESS>:10000), source connection ID (empty), destination connection ID fab75d188a3feebfdf12fd5db42c06db3732dcc2, version v1
muxer Adding connection ID (empty).
client Not doing 0-RTT.
client -> Sending packet 0 (1252 bytes) for connection fab75d188a3feebfdf12fd5db42c06db3732dcc2, Initial
client 	Long Header{Type: Initial, DestConnectionID: fab75d188a3feebfdf12fd5db42c06db3732dcc2, SrcConnectionID: (empty), Token: (empty), PacketNumber: 0, PacketNumberLen: 2, Length: 1222, Version: v1}
client 	-> &wire.CryptoFrame{Offset: 0, Data length: 276, Offset + Data length: 276}
client Received a Version Negotiation packet. Supported Versions: [draft-29 0x54303531 0x51303530 gQUIC 46 0xca4a5ada gQUIC 43]
client Destroying session with error: no compatible QUIC version found (we support [v1], server offered [draft-29 0x54303531 0x51303530 gQUIC 46 0xca4a5ada gQUIC 43])
client No compatible QUIC version found.
muxer Removing connection ID (empty).
client Connection fab75d188a3feebfdf12fd5db42c06db3732dcc2 closed.
Get "https://<IP_ADDRESS>:10000": no compatible QUIC version found (we support [v1], server offered [draft-29 0x54303531 0x51303530 gQUIC 46 0xca4a5ada gQUIC 43])
It looks like the version is inconsistent. What version is Envoy Quic?

If you want to use QUIC please build from head, or use the nighly builds.  There is currently no release with QUIC support.

If you want to use QUIC please build from head, or use the nighly builds. There is currently no release with QUIC support.

I build from head,envoy version is 1.19.0-dev.
Version as follows:
./bazel-bin/source/exe/envoy-static  version: 5e248dc778b90dc26b6e3384b6c191018cbe7a8a/1.19.0-dev/Modified/DEBUG/BoringSSL
QuicupstreamTransport still fails.
The configuration file：google_com_http3_upstream_proxy.yaml
envoy log:

curl response:


CI build missing Node 12 etc.

The Travis build is currently set up to test the following Node.js versions:
  - "11"
  - "10"
  - "9"
  - "8"
  - "7"
  - "6"

Version 6 is in EOL , 7/9/11 are unsupported (odd-numbered) versions, and we are missing 12 which is active. See https://nodejs.org/en/about/releases/
I propose changing .travis.yml to contain the following:
 - "12"
 - "10"
 - "8"
 - "6"

This matches what clean-css is now using

@scniro Thoughts? Shall I make the needed PR?

The tests actually fail on Node 12 due to outdated gulp-sass ( >= 4.12.0 is required for the newer runtime), so I'll update that in my PR as well


Having clickboxes enabled in the Herbiboar plugin causes massive FPS drops

I go from 15 FPS to 25-50 FPS when clickboxes are disabled. It might be an idea to disable the config option or optimize how clickboxes are rendered or something.

Related to #2898 maybe? I don't know what the resolution of that issue was.

Probably an extension of #6528

Here's a video. First a run with switching it off and on repeatedly, then a run with it off, then a run with it on. https://www.youtube.com/watch?v=GznnoxNklp8

Since YouTube decides that it wants to keep my video at "Processing 0%", here's a direct download link: https://mega.nz/#!HtMxAAJL!rz-3M95NhSCVEqWT4H1f8n70lE6d25myfofjUoS2Y7E

I think this is why we have the setting off by default. It doesn't happen to everyone necessarily and depends on a lot of factors. I'm not sure if there is a way we can improve it short of trying to improve the algorithm which does the click boxes.


Linux: Piping audit log though mlogc does not work

Running ModSecurity 2.9.1, centos 7, apr 1.4.8, apache 2.4.6
I compiled mlogc without error, and installed it in /usr/local/sbin.
I created a mlogc.conf in /etc (attached)
I set SecAuditLog "|/usr/local/modsecurity/bin/mlogc /etc/mlogc.conf"
I set concurrent.
When ModSecurity sees it's first request that requires a log entry, it logs:
[18/Jul/2017:14:10:50 --0400] [www.xxxxxxxx.com/sid#7f34333e29b8][rid#7f33f4006440][/index.php][1] Audit log: Failed to create subdirectories: |/usr/local/modsecurity/bin/mlogc /etc/20170718/20170718-1410 (Permission denied)
Note that the entire entry from SecAuditLog is duplicated. Then it removes the basename (mlogc.conf) and replaces it with the desired directory path. It seems to be trying to create a subdirectory that begins with pipe and ends with 1410.  Whatever I put in quotes shows up in the error message.
Note that putting a valid writable pathname in there results in a valid log file and valid subdirectories and files.
Note also that my 'ps aux' shows an instance of mlogc running as a child of apache (properly.)
Any help welcome.
Ed

I got this to work.  In reviewing the source code for modsecurity, I discovered that it is almost required to have a SecAuditLogStorageDir directive.  In fact the comments in modsecurity-2.9.1/apache2/msc_logging.c state that:
        /* The audit log storage directory should be explicitly
         * defined. But if it isn't try to write to the same
         * directory where the index file is placed. Of course,
         * it is *very* bad practice to allow the Apache user
         * to write to the same directory where a root user is
         * writing to but it's not us that's causing the problem
         * and there isn't anything we can do about that.

So if the variable containing the index file ()  is actually a pipe, it uses that.
        if (msr->txcfg->auditlog_storage_dir == NULL) {
            entry_filename = file_dirname(msr->mp, msr->txcfg->auditlog_name);
        }

The comments go on to state:
         * ENH Actually there is something we can do! We will make
         * SecAuditStorageDir mandatory, ask the user to explicitly
         * define the storage location *and* refuse to work if the
         * index and the storage location are in the same folder.

but this has not been done.
Nowhere is it documented that this is required, other than the source code.

Hi @edgreenberg,
Thanks for your report.
I understand that you were hoping that the manual entry for SecAuditLogStorageDir mentions that this configuration is mandatory?
Do you want to make a pull request for adding this to the manual?

On 07/18/2017 05:58 PM, Victor Hora wrote:

Hi @edgreenberg https://github.com/edgreenberg,
Thanks for your report.
I understand that you were hoping that the manual entry for
SecAuditLogStorageDir
https://github.com/SpiderLabs/ModSecurity/wiki/Reference-Manual#SecAuditLogStorageDir
mentions that this configuration is mandatory?
Do you want to make a pull request for adding this to the manual?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/SpiderLabs/ModSecurity/issues/1506#issuecomment-316210352,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAJPb2U9PuGeG_-7dwyDAToL-3454OOiks5sPSpzgaJpZM4Obunb.

Victor,
I'd be willing to do this.  I might need to ask for assistance with how
to do the pull and commit.
Ed

Hi guys!
How about asking the user to explicitly define the storage location and refuse to work if the  index and the storage location are in the same folder. as comments in the code describes?
As a general observation: ModSec is not strict enough with broken configurations. It accepts too much and drops into undocumented territority when it's assumptions are not met. It would be better if ModSec would refuse to start making the misconfiguration immediately visible.
Thanks for the report and the notice to FeistyDuck about this omission in the book. You are the first one reporting a technical mistake in the book. Well done.


Improve UX for generic NWC connector

Right now it uses window.prompt to get the NWC URL. Needs to work both inside and outside the modal.

Router is now done, this can be added following the existing flows I think.


Context Updates Phase 1: Investigations

💡 Description
Spreadsheet updates for investigations
Sub-tasks

https://github.com/NASA-PDS/EdWG/issues/39
https://github.com/NASA-PDS/EdWG/issues/40

📆 October status: In work. On schedule

📆 11/2024 status: in work on schedule


[v1.12] Remove remote-node labels from ipcache on node delete

Revert "Delete IP Label metadata on delete from ipcache"
node: Remove labels from ipcache on delete events

Related: https://github.com/cilium/cilium/pull/26958
Fixes: https://github.com/cilium/cilium/issues/27382

Did you consider whether we need to also call RemoveMetadata in the NodeUpdated case which handles an update (old node -> new node) for the old node? The line I'm thinking about is here.

Hmm, at a glance it looks like we should add it there too.
I have a reproducer via Maartje for the "delete node" case, but I'm not sure I understand how to reassign IPs for existing nodes in order to exercise that path.

I have a reproducer via Maartje for the "delete node" case, but I'm not sure I understand how to reassign IPs for existing nodes in order to exercise that path.

The only thing that comes to mind is manually doing a kubectl edit ciliumnode <name> and changing the node's IP from there.

/test-backport-1.12

/test-backport-1.12

Hit https://github.com/cilium/cilium/issues/27443 , https://github.com/cilium/cilium/issues/24840, and an issue where kubectl gets signal: killed during K8sIstioTest. None appear related to the PR.

/test-1.16-4.9

/test-1.21-4.9


[Bug] Getting Started: TypeError: cannot pickle 'property' object

On following the Getting Started on README, on running ./run.sh --train, I receive this error:
(aicrowd_env) 23:16:44  varun varun-ubuntu /media/varun/Data/aicrowd/neurips2020-procgen-starter-kit master
$ ./run.sh --train
           _____                          _
     /\   |_   _|                        | |
    /  \    | |  ___ _ __ _____      ____| |
   / /\ \   | | / __| '__/ _ \ \ /\ / / _  |
  / ____ \ _| || (__| | | (_) \ V  V / (_| |
 /_/    \_\_____\___|_|  \___/ \_/\_/ \__,_|

Executing: python train.py -f experiments/impala-baseline.yaml --ray-memory<PHONE_NUMBER> --ray-num-cpus 2 --ray-object-store-memory<PHONE_NUMBER>
Traceback (most recent call last):
  File "train.py", line 40, in <module>
    load_envs(os.getcwd()) # Load envs
  File "/media/varun/Data/aicrowd/neurips2020-procgen-starter-kit/utils/loader.py", line 62, in load_envs
    _source_file(_file_path)
  File "/media/varun/Data/aicrowd/neurips2020-procgen-starter-kit/utils/loader.py", line 22, in _source_file
    loader.exec_module(mod)
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/media/varun/Data/aicrowd/neurips2020-procgen-starter-kit/envs/procgen_env_wrapper.py", line 65, in <module>
    registry.register_env(
  File "/media/varun/Data/aicrowd/aicrowd_env/lib/python3.8/site-packages/ray/tune/registry.py", line 86, in register_env
    _global_registry.register(ENV_CREATOR, name, env_creator)
  File "/media/varun/Data/aicrowd/aicrowd_env/lib/python3.8/site-packages/ray/tune/registry.py", line 112, in register
    self._to_flush[(category, key)] = pickle.dumps(value)
  File "/media/varun/Data/aicrowd/aicrowd_env/lib/python3.8/site-packages/ray/cloudpickle/cloudpickle_fast.py", line 72, in dumps
    cp.dump(obj)
  File "/media/varun/Data/aicrowd/aicrowd_env/lib/python3.8/site-packages/ray/cloudpickle/cloudpickle_fast.py", line 617, in dump
    return Pickler.dump(self, obj)
TypeError: cannot pickle 'property' object

@spMohanty

The error was due to problem with cloudpickle on python3
https://discourse.aicrowd.com/t/typeerror-cannot-pickle-property-object/3110


[critical] firstOrderImpedance is already handled by another loading function

Hello, Dr.Gergondet @gergondet  and Dr.Tanguy @arntanguy，I am so sorry to trouble you.
My current research topic is that use BaselineWalkingController for my robot .everything went smoothly yesterday . But today when  I click the start simulation botton in the choreonoid  , I get the following error in the terminal . It is shown the firstOrderImpedance is already handled by another loading function.
And then I go back to everything I've done before ,  I realized that I made the mistake of adding the firstOrderImpedance task by mc_rtc GUI ,but actually the tasks is already loaded  by BaselineWalkingController .I think this is the main reason.
[critical] firstOrderImpedance is already handled by another loading function
[critical] === Backtrace ===
 0# void mc_rtc::log::error_and_throw<std::runtime_error, char const (&) [50], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&>(char const (&) [50], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) at /usr/include/mc_rtc/logging.h:52
 1# mc_solver::GenericLoader<mc_tasks::MetaTaskLoader, mc_tasks::MetaTask>::register_load_function(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::function<std::shared_ptr<mc_tasks::MetaTask> (mc_solver::QPSolver&, mc_rtc::Configuration const&)>) at /usr/include/mc_solver/GenericLoader.hpp:124
 2# __static_initialization_and_destruction_0 at /home/zxa/ros/ws_bwc/src/isri-aist/BaselineWalkingController/src/tasks/FirstOrderImpedanceTask.cpp:130
 3# 0x00007F3ED5C648D3 in /lib64/ld-linux-x86-64.so.2
 4# 0x00007F3ED5C6939F in /lib64/ld-linux-x86-64.so.2
 5# 0x00007F3ED4DD316F in /lib/x86_64-linux-gnu/libc.so.6
 6# 0x00007F3ED5C6896A in /lib64/ld-linux-x86-64.so.2
 7# 0x00007F3ED0A4DF96 in /lib/x86_64-linux-gnu/libdl.so.2
 8# 0x00007F3ED4DD316F in /lib/x86_64-linux-gnu/libc.so.6
 9# 0x00007F3ED4DD31FF in /lib/x86_64-linux-gnu/libc.so.6
10# 0x00007F3ED0A4E745 in /lib/x86_64-linux-gnu/libdl.so.2
11# 0x00007F3ED0A4E051 in /lib/x86_64-linux-gnu/libdl.so.2
12# 0x00007F3EBDF5214A in /usr/lib/x86_64-linux-gnu/libltdl.so.7
13# 0x00007F3EBDF4ECA2 in /usr/lib/x86_64-linux-gnu/libltdl.so.7
14# 0x00007F3EBDF50984 in /usr/lib/x86_64-linux-gnu/libltdl.so.7
15# 0x00007F3EBDF51121 in /usr/lib/x86_64-linux-gnu/libltdl.so.7
16# 0x00007F3E677993F7 in /usr/lib/x86_64-linux-gnu/libmc_rtc_loader.so.2
17# 0x00007F3E677B0E75 in /usr/lib/x86_64-linux-gnu/libmc_rtc_loader.so.2
18# 0x00007F3E67799591 in /usr/lib/x86_64-linux-gnu/libmc_rtc_loader.so.2
19# 0x00007F3E67799E3E in /usr/lib/x86_64-linux-gnu/libmc_rtc_loader.so.2
20# 0x00007F3E716909E2 in /usr/lib/x86_64-linux-gnu/libmc_control.so.2
21# 0x00007F3E7168B60A in /usr/lib/x86_64-linux-gnu/libmc_control.so.2
22# 0x00007F3E7168C00D in /usr/lib/x86_64-linux-gnu/libmc_control.so.2
23# 0x00007F3E71923273 in /usr/lib/MCControl.so
24# 0x00007F3E71946901 in /usr/lib/MCControl.so
25# 0x00007F3EA98F362A in /usr/lib/x86_64-linux-gnu/libRTC-1.1.2.so
26# 0x00007F3EA9905BB0 in /usr/lib/x86_64-linux-gnu/libRTC-1.1.2.so
27# 0x00007F3EA992A4AF in /usr/lib/x86_64-linux-gnu/libRTC-1.1.2.so
28# 0x00007F3EA9A0D32C in /usr/lib/x86_64-linux-gnu/libRTC-1.1.2.so
29# 0x00007F3EAAB03E64 in /usr/lib/x86_64-linux-gnu/libomniORB4.so.2
30# 0x00007F3EA9A11B08 in /usr/lib/x86_64-linux-gnu/libRTC-1.1.2.so
31# 0x00007F3EAAAFC9E2 in /usr/lib/x86_64-linux-gnu/libomniORB4.so.2
32# 0x00007F3EAAAD6026 in /usr/lib/x86_64-linux-gnu/libomniORB4.so.2
33# 0x00007F3EAAB24390 in /usr/lib/x86_64-linux-gnu/libomniORB4.so.2
34# 0x00007F3EAAB25398 in /usr/lib/x86_64-linux-gnu/libomniORB4.so.2
35# 0x00007F3EAAB212EA in /usr/lib/x86_64-linux-gnu/libomniORB4.so.2
36# 0x00007F3EAAAC8350 in /usr/lib/x86_64-linux-gnu/libomniORB4.so.2
37# 0x00007F3EAAAC951F in /usr/lib/x86_64-linux-gnu/libomniORB4.so.2
38# 0x00007F3EAAAC7EC9 in /usr/lib/x86_64-linux-gnu/libomniORB4.so.2
39# 0x00007F3EAAAC949E in /usr/lib/x86_64-linux-gnu/libomniORB4.so.2
40# 0x00007F3EAA80B4C8 in /usr/lib/x86_64-linux-gnu/libomnithread.so.4
41# 0x00007F3ED3A1C6DB in /lib/x86_64-linux-gnu/libpthread.so.0
42# 0x00007F3ED4D8D61F in /lib/x86_64-linux-gnu/libc.so.6

omniORB: (1096) 2023-04-20 13:21:22.502629: Error: a servant has been deleted that is still activated.
      id: root<59> (active)

And then I rebuild my controller but It doesn't solve the problem, and my choreonoid project cannot  load MCcontroller components as before.and then I select a  sample controllers without the firstOrderImpedance task ,and get another error in the terminal:
choreonoid: symbol lookup error: /usr/lib/x86_64-linux-gnu/libTasks.so.1: undefined symbol: ql_
Could you give me some advice?

Hi @853734690 ,
You should update BaselineWalkingController, the FirstOrderImpedanceTask has been added to mc_rtc and this is complaining about that (the task loader is being registered once in mc_rtc and once in the controller which is not allowed)

symbol lookup error: /usr/lib/x86_64-linux-gnu/libTasks.so.1: undefined symbol: ql_

This is strange. The ql_ symbol was removed from eigen-qld a while back and the Tasks library should have been rebuilt without the symbol. How did you install and update mc_rtc?

Could you check the output of dpkg-query -l libtasks-qld-dev libeigen-qld-dev and also did you install mc_rtc packages manually on the side?

I don't have any record of install mc_rtc packages manually . I check the out put and found that  Tasks library maybe have not  been rebuilt successfully.
==================================================================================================
ii  libeigen-qld-dev                               1.2.3-1debian1-2023031309052 amd64                        eigen-qld - development files
ii  libtasks-qld-dev                               1.7.2-1debian1-2023012408242 amd64                        tasks - development f
==================================================================================================

And today I update BaselineWalkingController , there was an error show in the terminal:
Errors     << baseline_walking_controller:make /home/zxa/ros/ws_bwc/logs/baseline_walking_controller/build.make.000.log
/usr/bin/ld: warning: libyaml-cpp.so.0.5, needed by /usr/lib/x86_64-linux-gnu/libmc_rtc_utils.so.2.4.0, may conflict with libyaml-cpp.so.0.7
/usr/lib/x86_64-linux-gnu/libTVM.so.0.9.0：undefined reference to ‘ql_’
collect2: error: ld returned 1 exit status

maybe they are the same reason ? I'm only new to this knowledge，hope to  get your reply .
Thanks in advance

Hi @853734690
Yes. The tasks package is outdated (it was generated before the update to your eigen-qld package). Can you run apt upgrade and make sure it gets updated?  The same issue is probably affecting your TVM package (you can check the package date in dpkg-query -l libtvm-dev

Thank You for your reply.
I have try it and everything goes well again!
Thank You
Best Regards


make all workflows easily work for the example jupyter notebook from CS231n class

What is this?

There is one jupyter notebook which uses tensorflow image which is being used in one of the classes. There are many issues which Anand and I have found in using datmo on the notebook. So, I consider manually going through the workflow would bring up more cli or sdk issues in making it valuable to data scientist. We can discuss more about this, tomorrow.

@pennyfx for reference I believe the ipython notebook is downloadable here: http://cs231n.github.io/assignments2018/assignment2/

closing this for now as it doesn't have a definition. we can currently run this notebook with datmo init, datmo notebook, and datmo snapshot create to save states.


Develop-celine

Thanks @celinejacques , pretty cool! @RomainGoussault I let you merge? As you are currently developing on a number of issues, I think it is best that you merge yourself so that you can then locally pull and rebase your current work.

Thanks @celinejacques !


_transformers_pipeline.py - Official Support Request for the Huggingface Zero-Shot Classification Pipeline

To prevent a workaround like stackoverflow I recommend to edit _transformers_pipeline.py accordingly and build a script.

+1. This would be really helpful!


Files lost due to update?

Issue Type: Bug
Hello,
could it be that Updates for VS Code delete everything that was stored in its installation folder?
I stored my Projects in a self created Folder "G:\Microsoft VS Code\Projects". But now after the Update (i think the February update just happened) the Projects-folder is gone.
I could recover the files with 'recuva', but it would be nice to know what happened. I don't think I deleted them.
Am i right with my assumption?
Kind regards,
Christopher
VS Code version: Code 1.32.3 (a3db5be9b5c6ba46bb7555ec5d60178ecc2eaae4, 2019-03-14T23:43:35.476Z)
OS version: Windows_NT x64 10.0.17763

System Info

Item
Value

CPUs
AMD Ryzen 5 2600 Six-Core Processor             (12 x 3394)

GPU Status
2d_canvas: enabledchecker_imaging: disabled_offflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onnative_gpu_memory_buffers: disabled_softwarerasterization: enabledsurface_synchronization: enabled_onvideo_decode: enabledwebgl: enabledwebgl2: enabled

Memory (System)
15.93GB (10.78GB free)

Process Argv

Screen Reader
no

VM
0%

Extensions (7)

Extension
Author (truncated)
Version

EditorConfig
Edi
0.13.0

tslint
eg2
1.0.43

vscode-language-pack-de
MS-
1.32.4

python
ms-
2019.2.5558

angular2-inline
nat
0.0.17

autoimport
ste
1.5.3

vscode-icons
vsc
8.3.0

We did have a bug that changes in unsaved files could be lost when upgrading from 1.31 to 1.32. That is fixed now. I'm not aware of any bug that would have deleted an entire folder.
You could download 1.31 and try upgrading again to see if this happens again. https://az764295.vo.msecnd.net/stable/1b8e8302e405050205e69b59abb3559592bb9e60/VSCode-win32-x64-1.31.1.zip But I think it's more likely that there is some other external issue...

no reply -> closing


DB: fix duplicated changes in schema-41610to41700.sql

Description
This PR fixes db error caused by #5588

Types of changes

[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] New feature (non-breaking change which adds functionality)
[x] Bug fix (non-breaking change which fixes an issue)
[ ] Enhancement (improves an existing feature and functionality)
[ ] Cleanup (Code refactoring and cleanup, that may add test cases)

Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale

[ ] Major
[ ] Minor

Bug Severity

[x] BLOCKER
[ ] Critical
[ ] Major
[ ] Minor
[ ] Trivial

Screenshots (if appropriate):
How Has This Been Tested?

Merging, no need for tests


Getting error when testing your pretrained model weights on my data

    Getting error when testing your pretrained model weights on my data -

    size mismatch for module.feat.conv3.weight: copying a param with shape torch.Size([256, 128, 1]) from checkpoint, the shape in current model is torch.Size([1024, 128, 1]).
    size mismatch for module.feat.conv3.bias: copying a param with shape torch.Size([256]) from checkpoint, the shape in current model is torch.Size([1024]).
    size mismatch for module.feat.bn3.weight: copying a param with shape torch.Size([256]) from checkpoint, the shape in current model is torch.Size([1024]).
    size mismatch for module.feat.bn3.bias: copying a param with shape torch.Size([256]) from checkpoint, the shape in current model is torch.Size([1024]).
    size mismatch for module.feat.bn3.running_mean: copying a param with shape torch.Size([256]) from checkpoint, the shape in current model is torch.Size([1024]).
    size mismatch for module.feat.bn3.running_var: copying a param with shape torch.Size([256]) from checkpoint, the shape in current model is torch.Size([1024]).
    size mismatch for module.conv1.weight: copying a param with shape torch.Size([512, 1472, 1]) from checkpoint, the shape in current model is torch.Size([512, 1088, 1]).

Originally posted by @varunkasi in https://github.com/UestcJay/GraphFit/issues/1#issuecomment-1371669501
I think the error is due to the way DeepFit function is being imported into the test_n_est_ms.py. If you run testing after training, I think this error will not occur. However, if we do only testing, we should import GraphFit_ms as DeepFit. A good reference would be to see how it is done in the train_n_est_ms.py file.

Very sorry for this, I will fix this later..


Router can't be used on SSR

Hello,
the current approach to access the router
import { Router } from '~/i18n';
// in the render function
Router.pathname

isn't compatible with SSR. I got following error:
Error: No router instance found.
You should only use "next/router" inside the client side of your app.

when I use the HOC it works fine!
import { withRouter } from 'next/router'
// in the render function
Router.pathname

since the current implementation only wraps the next router I would expect the same functionality.

Router can't be used on SSR

That's correct. You'll find the same error if you import Router from next/router.
If you're requesting a wrap of withRouter, that's totally separate and is probably related to #4.

I'm interested in a version similiar to next.js HOC.

If you're requesting a wrap of withRouter, that's totally separate and is probably related to #4.

The thread discussion has shifted to a imperative solution and there is no point regarding a isomorphic solution.

The title and entire point of that issue is a HOC, and follows this comment: https://github.com/isaachinman/next-i18next/issues/1#issuecomment-438187263.
If you feel as though you'd like to open a new issue to track the feature request, please do.


License requirement question

Does the meeting organizer need the Advanced Comms license applied at the time the meeting/Live Event is created or at the time it is held or both?

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

ID: 09168b55-8244-974e-8bb3-6ec16429a650
Version Independent ID: c17f4f8d-a8bb-3c81-368f-07b932f52ebc
Content: Advanced Communications add-on for Microsoft Teams - Microsoft Teams
Content Source: Teams/teams-add-on-licensing/advanced-communications.md
Service: msteams
GitHub Login: @cichur
Microsoft Alias: v-cichur

Thank you for submitting feedback.
I think the best way forward is if you open a service ticket in your tenant so this can get resolved ASAP. Based on the outcome let me know if it is something that can be called out in the docs.
Please follow this link to contact support for business products:https://docs.microsoft.com/office365/admin/contact-support-for-business-products
Please keep us posted here on the resolution so we can feed whatever information you discover into the content.

Thank you for submitting feedback.
I think the best way forward is if you open a service ticket in your tenant so this can get resolved ASAP. Based on the outcome let me know if it is something that can be called out in the docs.
Please follow this link to contact support for business products:https://docs.microsoft.com/office365/admin/contact-support-for-business-products
Please keep us posted here on the resolution so we can feed whatever information you discover into the content.


feat(ContinuousFunctionalCalculus): add lemmas for automation and simp/aesop tags

This PR adds various aesop tags related to the continuous functional calculus. It also introduces the specialized aesop ruleset CFC for lemmas that would be unsuitable for the default ruleset.
It also adds a proof that the exponential of a self-adjoint operator is positive.

bors merge


[bug] npx create-tauri-app fails to install with create-react-app

Describe the bug
npx create-tauri-app

We hope to help you create something special with Tauri!
You will have a choice of one of the UI frameworks supported by the greater web tech community.
This tool should get you quickly started. See our docs at https://tauri.studio/

If you haven't already, please take a moment to setup your system.
You may find the requirements here: https://tauri.studio/docs/getting-started/setting-up-macos/

Press any key to continue...
? What is your app name? tauri-app
? What should the window title be? Tauri App
? What UI recipe would you like to add? create-react-app (https://create-react-app.dev/)
? Add "@tauri-apps/api" npm package? Yes
? Which create-react-app template would you like to use? create-react-app (Typescript)
>> Running initial command(s)
Need to install the following packages:
  create-react-app
Ok to proceed? (y) y

You are running `create-react-app` 4.0.3, which is behind the latest release (5.0.1).

We no longer support global installation of Create React App.

Please remove any global installs with one of the following commands:
- npm uninstall -g create-react-app
- yarn global remove create-react-app

The latest instructions for creating a new app can be found here:
https://create-react-app.dev/docs/getting-started/

npm ERR! code 1
npm ERR! path /Users/whoggarth/Documents/Projects
npm ERR! command failed
npm ERR! command sh -c create-react-app "tauri-app" "--template" "typescript" "--use-npm"

npm ERR!      /Users/whoggarth/.npm/_logs/2022-05-30T19_30_43_374Z-debug-0.log
Error with command: npm
Error: Error: Command failed with exit code 1: npm init react-app -- tauri-app --template typescript --use-npm
    at /Users/whoggarth/.npm/_npx/b58944764482de26/node_modules/create-tauri-app/dist/index.js:147:15
    at Generator.throw (<anonymous>)
    at rejected (/Users/whoggarth/.npm/_npx/b58944764482de26/node_modules/create-tauri-app/dist/index.js:39:65)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

Reproduction
No response
Expected behavior
No response
Platform and versions
N/A - Installation failure

Stack trace
No response
Additional context
No response

This is not really a tauri/CTA issue. You still have a really old version of CRA installed globally. Like the error tells you, you need to uninstall that.
to be clear this error comes from create-react-app, not tauri.


Use alias to import files/components in tests

Clear and concise description of the problem
It will be nice to configure vitest to have the possibility to import files with alias:
Suggested solution
Instead of this:
import Plan from '../../../../modules/Pricing/models/Plan'

Have the possibility to use the alias:
import Plan from '@/modules/Pricing/models/Plan'

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

Use resolve.alias: https://vitejs.dev/config/#resolve-alias


react navigation v3.0.0-alpha.14 gesturesEnabled  not working for android

I disabled gestures on Android: https://github.com/react-navigation/react-navigation-stack/blob/0e302b3ceafd80d12295af41dfa4a7c7930c18d7/src/views/StackView/StackViewLayout.js#L281-L307
I guess I shouldn't have done that, I'll revert it back

Hi @brentvatne, did you reverted ? GesturesEnabled seems still not working for android.

hey @franckmaurin can you create a new issue to explain what you mean by that? thanks!


Modal bug when user cancels MetaMask connection

Update the modal text so it doesn't read [object object] and instead says "You rejected the connection request in MetaMask. Please close and try again, and click confirm connection in MetaMask window."


feat : Workload project for sandbox landing zone v2

closes #233
This package creates a GCP project with the following features:

project parent folder is defined in the setters
project id is defined in the setters
project is associated with a billing id (defined in setters)
editor role is granted at the project level to a user, group or serviceAccount (defined in setters)
default VPC is not created
a custom VPC is created
subnets are following ITSG-22 requirements
multi-region is supported
cloud nat is created per region
default route is not created
a new default route that requires a tag is created
flow logs are enabled
dns logs are enabled
private google access is enabled

/lgtm. My only question is has the depends-on annotation been looked at to help ensure the services come online in the desired order been looked at? https://cloud.google.com/anthos-config-management/docs/how-to/declare-resource-dependency

I just tried setting depends-on on all resources (vpc and router, subnet, route, dnspolicy) and it worked. The root-reconciler logs are showing that ActionGroupEvent 1 to 4 are created to manage the dependancies. I'm just not sure what advantages it brings. Each resource definition already uses a named reference to another resource. For example, the route already has a reference to the vpc (see networkref below):
spec:
resourceID: internet-route # kpt-set: internet-route
description: "route to the internet"
destRange: <IP_ADDRESS>/0
networkRef:
name: project-id-global-vpc1-vpc # kpt-set: ${project-id}-global-vpc1-vpc
priority: 100
nextHopGateway: default-internet-gateway
tags:
- internet-route

For some of those resources that declare dependency on other resources it isn't as critical but still helps helps with ordering. For example if a GKE cluster is dependency on a subnet and declares that using the depends-on annotation config-sync (and kpt) won't attempt to deploy the GKE resource until that subnet is ready. It would function in a similar way to the depends_on works in Terraform. It's not critical but would be good to limit instances of resources going into the dependency not ready loop.

For some of those resources that declare dependency on other resources it isn't as critical but still helps helps with ordering. For example if a GKE cluster is dependency on a subnet and declares that using the depends-on annotation config-sync (and kpt) won't attempt to deploy the GKE resource until that subnet is ready. It would function in a similar way to the depends_on works in Terraform. It's not critical but would be good to limit instances of resources going into the dependency not ready loop.

@cartyc the newest commit includes several depends-on, let me know if they all make sense


Error: DB table "navigations" already exists

it would be great if the table was named in random token name to avoid this situation !
i already have a navigation table in my strapi !!

The naming is a standard for Strapi Plugins and done by default. We're not setting different convention here.


Convert description/summary from MD to RST

This is a long time issue, that Python docstring are supposed to be RST, but Swagger is in MD. By doing nothing, we actually create Docstring in MD, that are parsed as RST by Sphinx and create unexpected result (one of those).
Now that we are redoing autorest in Python, we have acces to pypandoc, which does a wonderful job, for instance with the issue listed before
>>> t='''A comma-delimited list of one or more languages to use for user interface strings. The list is in decreasing order of preference. For additional information, including expected format, see [RFC2616](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html). This header and the [setLang](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#setlang) query parameter are mutually exclusive; do not specify both. If you set this header, you must also specify the [cc](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#cc) query parameter. To determine the market to return results for, Bing uses the first supported language it finds from the list and combines it with the cc parameter value. If the list does not include a supported language, Bing finds the closest language and market that supports the request or it uses an aggregated or default market for the results. To determine the market that Bing used, see the BingAPIs-Market header. Use this header and the cc query parameter only if you specify multiple languages. Otherwise, use the [mkt](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#mkt) and [setLang](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#setlang) query parameters. A user interface string is a string that's used as a label in a user interface. There are few user interface strings in the JSON response objects. Any links to Bing.com properties in the response objects apply the specified language.'''

>>> print(pypandoc.convert_text(t, 'rst', format='md'))
A comma-delimited list of one or more languages to use for user
interface strings. The list is in decreasing order of preference. For
additional information, including expected format, see
`RFC2616 <http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html>`__.
This header and the
`setLang <https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#setlang>`__
query parameter are mutually exclusive; do not specify both. If you set
this header, you must also specify the
`cc <https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#cc>`__
query parameter. To determine the market to return results for, Bing
uses the first supported language it finds from the list and combines it
with the cc parameter value. If the list does not include a supported
language, Bing finds the closest language and market that supports the
request or it uses an aggregated or default market for the results. To
determine the market that Bing used, see the BingAPIs-Market header. Use
this header and the cc query parameter only if you specify multiple
languages. Otherwise, use the
`mkt <https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#mkt>`__
and
`setLang <https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#setlang>`__
query parameters. A user interface string is a string that’s used as a
label in a user interface. There are few user interface strings in the
JSON response objects. Any links to Bing.com properties in the response
objects apply the specified language.

We should make a plugin that uses pypandoc to scan all description/summary and replace them from MD to RST

Tried m2r as well
>>> from m2r import convert
>>> print(convert(t))

A comma-delimited list of one or more languages to use for user interface strings. The list is in decreasing order of preference. For additional information, including expected format, see `RFC2616 <http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html>`_. This header and the `setLang <https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#setlang>`_ query parameter are mutually exclusive; do not specify both. If you set this header, you must also specify the `cc <https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#cc>`_ query parameter. To determine the market to return results for, Bing uses the first supported language it finds from the list and combines it with the cc parameter value. If the list does not include a supported language, Bing finds the closest language and market that supports the request or it uses an aggregated or default market for the results. To determine the market that Bing used, see the BingAPIs-Market header. Use this header and the cc query parameter only if you specify multiple languages. Otherwise, use the `mkt <https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#mkt>`_ and `setLang <https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#setlang>`_ query parameters. A user interface string is a string that's used as a label in a user interface. There are few user interface strings in the JSON response objects. Any links to Bing.com properties in the response objects apply the specified language.

let's try with m2r, that doesn't need to install an external process and seems decently used, and if we get trouble that's easy to change

Fixed in autorestv3


Icons not properly handling responsive Size prop in React Native

Description
Feeding responsive object prop to icon Size does not work.
Expo Snack
https://snack.expo.dev/@gollyjer/nativebase-responsive-icon-size
Steps to reproduce

Go to the expo snack and run it on your device.
See how the third icon isn't sized, but the wrapper is completely blown out
Comment out lines 37-43 and uncomment line 36
See things work as expected.

After finally getting a great version of our app working on phones we set out to make everything responsive for iPad and Web but we're running into issues with responsive Icons; which feeds into Buttons and IconButtons also.
The code path for Icon size leads here in the usePropsResolution hook.
https://github.com/GeekyAnts/NativeBase/blob/2af374e586034366dcefce9a0f23983836a7901f/src/hooks/useThemeProps/usePropsResolution.tsx#L336
I'll keep troubleshooting but hoping someone else might be able to help as well.
Thanks~
NativeBase Version
3.4.9
Platform

[X] Android
[ ] CRA
[X] Expo
[X] iOS
[ ] Next

Other Platform
No response
Additional Information
No response

Taking notes as I debug....
Doing some console.logging of resolvedProps in usePropsResolution.tsx...
When I pass in
size="2xl"

it logs
Object {
  "as": [Function Icon],
  "borderWidth": 1,
  "color": "muted.500",
  "name": "home",
  "size": 8, // 👈
}

When I pass in
size={{
  base: '2xl',
  sm: '2xl',
  md: '2xl',
  lg: '2xl',
  xl: '2xl',
}}

it logs
Object {
  "as": [Function Icon],
  "borderWidth": 1,
  "color": "muted.500",
  "name": "home",
  "size": "2xl", // 👈
}

OK, I figured this out working locally and then went into the source code here and github...
Here's the weird thing. Even though I pulled down latest, 3.4.9, the usePropsResolution.tsx  file in node_modules is completely different than the one in the source code.
How does this happen? Simply copying the code from source and completely pasting over usePropsResolution.tsx in node_modules fixes the problem. The current code is significantly improved over what gets yarn installed.
How does this happen? How much of the other code is old? I did a yarn cache clean --all and completely wiped node_modules and rebuilt... same thing happens. The wrong code is pulled down.
The same issue shows up in the Snack linked in the opening post of this thread.
Not sure what to do about this. Any pointers is appreciated.

Thank you for reporting this issue @GollyJer, We will try to fix it at the earliest.

You're welcome @ankit-tailor.
I'm curious how this happens? Is the file not picked up in the build process somehow? I've never run into a case where the source and the node_modules didn't match.

@ankit-tailor @Krithikj20
Is there an alpha build with this change that we can install?
I just found out that patch-package doesn't work with the newest react native builds so I have no way to update for our production builds. (We use expo eas).
I spent a week converting our entire app over to native-base and can't deploy. 😐

Hey @GollyJer, This shouldn't be happening. I've tried reproducing the issue but couldn't find anything. Please provide some snack link for that.
Also regarding the icon size issue, I've tried and it looks like size passed as responsive props are not getting resolved. I am looking into the issue. Thanks for reporting the issue.

Hey @GollyJer, This issue is fixed in v3.4.11

Thanks @ankit-tailor! Verified working.
https://twitter.com/GollyJer/status/1555645880098729984

Hi @GollyJer, With current changes, we are facing SSR issue so we are reverting this Pr. but instead of using declaratively, you can use it imperatively.
const size= useBreakpointValue({
  base: '2xl',
  sm: '2xl',
  md: '2xl',
  lg: '2xl',
  xl: '2xl',
})

<Button size={size} />

@ankit-tailor The title of this issue is a bit misleading... it's not just about the Icons.
If you revert this change, responsiveness across the nativebase components will stop working.
I assume you're talking about the update to the usePropsResolution function. Is that correct?

@GollyJer  No, Responsiveness across components won't break. Just variant, size, and colorScheme will not be resolved responsively.  For that, you can use the above workaround.


saving game doesn't work

start a game, play, try to save. you'll get this errors and it doesn't save the game
warning: failed to open 'tyrian.sav': No such file or directory
warning: failed to open 'tyrian.cfg': No such file or directory
warning: failed to open 'tyrian.sav': No such file or directory
warning: failed to open 'tyrian.cfg': No such file or directory
warning: failed to open 'tyrian.sav': No such file or directory
warning: failed to open 'tyrian.cfg': No such file or directory

more incentive to play all the way through at once :trophy:


Altair Notebook

Description
Using Altair, this exploratory notebook will explore increasingly granular levels of visualization, utilizing Altair for its high customizability and functionality, as well as interactivity that's retained when embedded to a website. This exercise focuses specifically on mentor/mentee data in regards to high level categorical metrics, but the concepts applied can be utilized in many other areas of data visualization, including attendance time series graphs, financial/resource management (tracking usage, supply/demand growths, etc.), mentor availability for mentees by day and time, staff metric overviews like what we're about to dive into...the list goes on.
Dependencies that are required for this change.
requests, altair, random, datetime
Contributors

Ryland Gomez
John Baker

Loom Video
https://www.loom.com/share/dffa8c4dc1fc4189af87f39a967056c2
Trello card
https://trello.com/c/c8u60ZK9/269-as-an-admin-i-want-to-have-visualization-of-the-experience-level-on-all-mentors-to-get-a-better-understanding-of-how-to-match-me
This is a new feature:

[x] New feature
[x] This change requires a documentation update

Checklist:

[x] My code follows PEP8 style guide
[x] I have removed unnecessary print statements from my code
[x] My changes generate no errors
[x] No commented-out code
[x] Size of pull request kept to a minimum
[x] Pull request description clearly describes changes made & motivations for said changes

Great job John and Ryland. This will be a very versatile tool. I'm glad we will be able to apply it to different admin aspects of the website. Great job!


Update zone.md with secondary type

doc update

this isn't supported, so needs to be before the doc update


Update reqwest

And updating reqwest removes a duplicate dep in probe-rs.

The update to minidom v0.13 means that XML elements are required to have a namespace, which breaks the tests. That requires some more work to fix, so I've removed from this PR.

I rebased and squashed your PR (your old branch is saved at https://github.com/mbrossard/cmsis-pack-manager/tree/update-deps). I found the same issue with minidom.


how to enable logs ?

I've been having a rough time acclimating to rust since this project is my introduction to it
Anyhoo, I'm trying to view logs to debug an issue with the patches not being read in, but I can't get the logs to show.  I can get logs to show in a separate little "hello world"ish rust program but this one the logs don't show up.
I've tried installing the exact same versions of log and simple_logger into your project as well as removing the max level feature declaration in cargo.toml and any level filters in your code.  Still, in rpatchur/src/main.rs, when I just do
fn main() {
    SimpleLogger::new().init().unwrap();
    log::warn!("This is an example message.");
    ...

the logs don't show up in the command line
λ cargo build && cargo run -- -w C:\my-programs\buzzy-ro
   Compiling rpatchur v0.2.0 (C:\git-repos\cloned\rpatchur\rpatchur)
    Finished dev [unoptimized + debuginfo] target(s) in 3.00s
    Finished dev [unoptimized + debuginfo] target(s) in 0.16s
     Running `c:\git-repos\cloned\rpatchur\target\debug\rpatchur.exe -w C:\my-programs\buzzy-ro`

I would appreciate any direction you can give me.
Thanks for the tool

wow what a pain.  After playing around with it some more it looks like
#![windows_subsystem = "windows"]

disables stdout/err ?  So the logs get swallowed.
For debugging I can remove that.  Normally I'd try to create a PR with a solution but rust has been too frustrating for me to be motivated enough.

wow what a pain.  After playing around with it some more it looks like
#![windows_subsystem = "windows"]

disables stdout/err ?  So the logs get swallowed.
For debugging I can remove that.  Normally I'd try to create a PR with a solution but rust has been too frustrating for me to be motivated enough.

It happened to me too... I needed to comment that line when i found this :
https://sciter.com/forums/topic/how-to-enable-println-to-print-to-console/
I feel you about the motivation and frustation :)


Ho w to implement wavesurfer ?

I am using angular 9 If you implement wavesurfer mobile audio record is not working
import * as WaveSurfer from 'wavesurfer.js';
import * as MicrophonePlugin from 'wavesurfer.js/dist/plugin/wavesurfer.microphone.js';
WaveSurfer.microphone = MicrophonePlugin;

this.wsurfer = WaveSurfer.create({
      container: '#waveform',
      waveColor: '#57afa2',
      progressColor: '#57afa2',
      barHeight: 2,
      plugins: [
        MicrophonePlugin.create({
          bufferSize: 4096,
          numberOfInputChannels: 1,
          numberOfOutputChannels: 1,
          constraints: {
            video: false,
            audio: true
          }
        })
      ]
    });
    this.wsurfer.microphone.start();

this is unrelated to the recordrtc library, you can close this @muaz-khan


fix: cross arm C build

fatal error: stdio.h: No such file or directory

Strangely the error is back. @abeimler