Chrome, Windows Defender, and others flagging as virus

Windows defender flagged as a Trojan in its latest quick scan and quarantined the exe and process. I assume that this is due to the hidden powershell changes but might not be.
During re-download, Chome also blocked the file so I checked the SHA256 and ran it though virustotal.
https://www.virustotal.com/gui/file/1704400cac8411fd98bdef3bdb4c116f1e561671b7f11f7de3e6d79e7a87f4a2/detection
Looks like false positives but wnated to make sure you are aware.

 :) If I used it, I might be able to fix this junk.

Thats what I assumed also and thank you for the details.
For the hidden powershell, I was referring to the match with sigma rule.
"Matches rule Non Interactive PowerShell Process Spawned by Roberto Rodriguez @Cyb3rWard0g (rule), oscd.community (improvements) at Sigma Integrated Rule Set (GitHub)
Detects non-interactive PowerShell activity by looking at the "powershell" process with a non-user GUI process such as "explorer.exe" as a parent."
While I had warnings with previous versions of the software during download, it wasnt until v0.7.3 May 29, 2024 that Windows Defender took action and quarantined the process and exe. I thought I had saw a release note that this version switched to a background cmd prompt but I could be wrong about that.

This version removed the 'background' command/terminal window. It now acts like a GUI-only process in the eyes of Windows.

Makes sense. I was trying to draw a pattern between this update and windows. All of the old version EXEs are in that same folder and windows defender doesn't have any problem with them. But maybe defender updated it's definitions and maybe that's why. Only windows knows what it does, we can only guess.

I'll close this when I sign the windows exe file and remove the nasty Microsoft warnings.


Add search by zip

OpenWeatherMap allows getting current weather based on zip code. This commit allows this library to implement this type of search by adding a potential query in the form of "zip:", e.g., "zip:77070" would search in Houston, TX.

@cmfcmf Changes made.

Thank you!


Having trouble creating docc archive for STKAudioKit

I added STKAudioKit to the generate script but it didn't work. I believe the script cannot handle C sources, as none of the repos added so far were anything but Swift. This will be important for all the AudioKit DSP libraries.
I got errors that looked like this:
In file included from <built-in>:1:
In file included from /Users/aurelius/Developer/AudioKit/docgen/.build/arm64-apple-macosx/debug/Stk.build/DerivedSources/resource_bundle_accessor.h:1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:5:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:10:1: error: expected unqualified-id
@class NSInvocation, NSMethodSignature, NSCoder, NSString, NSEnumerator;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[2/95] Compiling DebugDSP.c
error: unspecified("fatalError")

Hmm, the script is just calling swift-docc-plugin, so it's definitely not the script. I would look into whether or not the DocC plugin can handle C libraries.
It looks like Swift Package Index isn't able to leverage STKAudioKit's .spi.yml for documentation generation either. If SPI can't generate it, then we likely won't be able to, either.
Worst case scenario, we may need to use xcodebuild docbuild instead, or attempt to use swift-docc directly -- just more steps involved that would be annoying for maintenance. I spent a lot of time deciding between all three methods and the swift-docc-plugin is the most foolproof.
If you're able to generate the .doccarchive for C libraries otherwise, then you can just generate them via Xcode or whatever and manually move them into the audiokit.io repository. Not as sexy of an automated process, but that's the route I'd take for now -- especially if these libraries don't change super often.

I tried the manual route but the website just showed a blank screen for STKAudioKit once I clicked into it. The .spi.yml file I thought was just there for swift package index. It doesn't cause any problem for PianoRoll which has it too.

I tried the manual route but the website just showed a blank screen for STKAudioKit once I clicked into it.

Makes sense actually -- when you export a .doccarchive it doesn't use a --hosting-base-path by default. I'm not sure what the best option is.
What happens when you run xcodebuild docbuild for STKAudioKit? There are some instructions here with a command you can run that would look something like this:
xcodebuild docbuild -scheme SlothCreator -derivedDataPath ~/Desktop/SlothCreatorBuild

Try running that in a C repository using DocC and see if it works. If that doesn't work, then your next best bet is to dig into the DocC repo, maybe post an issue/discussion, not sure.

The .spi.yml file I thought was just there for swift package index. It doesn't cause any problem for PianoRoll which has it too.

Right, it's definitely not a problem, but what I'm saying is that STKAudioKit's .spi.yml is configured to product documentation on Swift Package Index.
Like, if it worked, it would be adding a button like this:

If I look at STKAudioKit on SPI, there's no Documentation link, which implies that SPI was unable to generate the documentation. You can see it works for PianoRoll.
If SPI can't generate the documentation for STKAudioKit, then the docgen repo definitely won't be able to either -- both systems use the same underlying swift-docc tool and I'm positive SPI is more resilient towards it.
That make sense?

This incantation builds but when I copy the .doccarchive it produce does not show up in the browser
xcodebuild docbuild -scheme STKAudioKit -derivedDataPath BuildFolder -destination name="iPhone 8"
The good news is that it compiles fine, just the output is somehow not compatible.


Illegal SchemaNameKey format: '__schema_name/greptime/'illegal-database''

What type of bug is this?
Incorrect result
What subsystems are affected?
Standalone mode
What happened?
- is not supported in catalog/schema name. Quote it in CREATE DATABASE can bypass this limit. But it will breaks other internal components
What operating system did you use?
Arch Linux with Kernel: 6.3.5-arch1-1
Relevant log output and stack trace
MySQL [(none)]> show databases;
ERROR 1815 (HY000): Invalid table metadata, err: Illegal SchemaNameKey format: '__schema_name/greptime/'illegal-database''

Expected behavior
SHOW DATABASES works and can give the correct result.
How can we reproduce the bug?
show databases;
create database illegal-database;
create database 'illegal-database';
show databases;

@waynexia so what is the expected manner?

Disallow "illegal character" even if it's quoted; or,
Support such characters internally.

BTW, perhaps we can add such a section in the bug report issue template (what is expected) >_<

@waynexia so what is the expected manner?

Updated to the issue description. Under Expected behavior section

The issue is not about -, but the extra ':
mysql> create database 'illegaldatabase';
Query OK, 1 row affected (0.01 sec)

mysql> show databases;
ERROR 1815 (HY000): Invalid table metadata, err: Illegal SchemaNameKey format: '__schema_name/greptime/'illegaldatabase''
mysql>

I'll try to dig it a bit.


[ios] Update test scripts for all auto ios tests

The test suite can run normally

Impacted TCs num(approved): New 0, Update 30, Delete 0
Unit test Platform: iOS
iOS test result summary: Pass 30, Fail 0, Block 0

LGTM


Is ADC read different on V1 and V2?

This MakeCode example produces different results on each board.

https://makecode.microbit.org/_ehJ13Hej17MW
V1 returns 131µs and V2 returns 246µs
Is this a difference in DAL/CODAL?

Hi @microbit-mark
Kind of. More of a difference in how the v1 and v2 hardware behaves. Both devices on have a single ADC, but on v2 the ADC is also used to read the microphone, so the edge connector analogue read operations need to share that hardware. Not surprising that there's a longer startup time due to this.
You should find that subsequent reads are faster.

Hello,
Thank you. I have just tested, in fact, we fall back to the second acquisition at 130µs. But it does not seem normal to me that it is necessary to launch an acquisition for nothing, it is not very logical. It would be good if you change your firmware instead to allow us to always have the same acquisition time. Thanks for doing what's needed.
Your sincerely.
Julien

Hello @JLFra
The acquisition time will be the same in all cases - it's simply that the first time a call is made it needs to set up the ADC DMA pipeline...
If this is a problem for you, perhaps you could explain why?

Sometimes we need to keep the sampling time as low as possible, including at the beginning. You will easily understand that to sample a signal you have to know the sampling frequency to respect shannon. In short, it would be good if your system is reliable and this frequency does not vary according to different parameters. Could you arrange for your firmware to correctly set this frequency at startup. Thanks.

Hi @JLFra
Indeed - I fully understand the need isochronous sampling for any applications that require high fidelity data. Harry Nyquist would also agree of course!
I'm afraid this isn't just a case of the frequency being set differently on the first call - the difference in latency you see is due to the time it takes to bring up and configure the ADC hardware on the NRF52 before the first sample is taken and reported. There's not really anything I can do about that for a number of reasons:

The ADC needs to be brought up on demand (like we do with all other micro:bit peripherals). If we bring it up at boot time, it would be constantly eating battery power and CPU resource for every application. Even those that don't use the ADC... and that's not really OK.

Even if we did bring up the ADC at boot time, there would still be an additional latency anyway, caused by switching the ADC's sample interleaving pattern to account for whichever pin you select. At best, that would take up to one DMA buffer's worth of time to resolve.

The blocks program above is really the wrong API for gathering isochronous high frequency sample data. By running every sample through the CPU in this way, the program will be very much at the mercy of jitter caused by other demands on the CPUs time, e,g. whenever any interrupts fire (e.g. to service the display, serial port, sound, microphone, light sensing, pin events, scheduler, timers, radio...), you would see a much bigger spike in latency than that associated with bringing up the ADC hardware.

Now, the good news is that the v2 hardware and is capable of lossless, DMA enabled buffered streaming of sample data. This is already implemented in the underlying C++ (CODAL) layer that sits just below MakeCode. This is what we use to gather microphone data, and is also the API you are transparently using in the code above (just not in the most efficient way).
We're already in the process of defining a streamed data input pipeline, which could be surfaced in TypeScript and maybe even Blocks. e.g. imagine an event handler that delivers a buffer of samples - much like we do today for the RADIO package. This API isn't ready yet in MakeCode though. I think it would be possible to consume that C++ API directly via a custom MakeCode extension, should you wish to jump ahead before we surface a standardized API.
I hope this helps.


treedome: 0.4.3 -> 0.4.5

Description of changes
Update from 0.4.3 to 0.4.5, contains polishes.
Changelog
This is a polishing release. Please consult this git diff for a more detailed changelog https://codeberg.org/solver-orgz/treedome/compare/0.4.3...0.4.5. These are the highlight of the release.

Each releases will now have its own version name on the release artifact
Fix indentation (points and numbers) weird margins
Update more documentation for QOL of the developers

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[x] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

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

tested locally using nixpkgs-review wip


chore: Switch environment  CE BE code split

Pull Request Template
Use this template to quickly create a well written pull request. Delete all quotes before creating the pull request.

Description

Add a TL;DR when description is extra long (helps content team)
Please include a summary of the changes and which issue has been fixed. Please also include relevant motivation
and context. List any dependencies that are required for this change
Links to Notion, Figma or any other documents that might be relevant to the PR

PR fixes following issue(s)
Fixes # (issue number)

if no issue exists, please create an issue and ask the maintainers about this first

Media

A video or a GIF is preferred. when using Loom, don’t embed because it looks like it’s a GIF. instead, just link to the video

Type of change

Please delete options that are not relevant.

Bug fix (non-breaking change which fixes an issue)
New feature (non-breaking change which adds functionality)
Breaking change (fix or feature that would cause existing functionality to not work as expected)
Chore (housekeeping or task changes that don't impact user perception)
This change requires a documentation update

Testing

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Also list any relevant details for your test configuration.
Delete anything that is not relevant

[ ] Manual
[ ] Jest
[ ] Cypress

Test Plan

Add Testsmith test cases links that relate to this PR

Issues raised during DP testing

Link issues raised during DP testing for better visiblity and tracking (copy link from comments dropped on this PR)

Checklist:
Dev activity

[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] PR is being merged under a feature flag

QA activity:

[ ] Speedbreak features have been covered
[ ] Test plan covers all impacted features and areas of interest
[ ] Test plan has been peer reviewed by project stakeholders and other QA members
[ ] Manually tested functionality on DP
[ ] We had an implementation alignment call with stakeholders post QA Round 2
[ ] Cypress test cases have been added and approved by SDET/manual QA
[ ] Added Test Plan Approved label after Cypress tests were reviewed
[ ] Added Test Plan Approved label after JUnit tests were reviewed

/ok-to-test

This is a code split task and does not need any testing. Hence adding test plan approved label myself.

This is a code split task and does not need any testing. Hence adding test plan approved label myself.

If a PR does not require testing like this - please add skip-testPlan label & not Test Plan Approved. TestPlanApproved is exclusively to indicate testing has happened before PR was merged.


Rename types.ts and regexTypes.ts files

Applied the refactoring I suggested in https://github.com/sql-formatter-org/sql-formatter/pull/370#issuecomment-1204427194

@inferrinizzard ping?


Why inventoty not update after craft item?

When I create an item, the changes are not shown in the inventory, however, after the bot is turned off, the inventory is updated.
What should I do to fix it?

Because Steam inventories are cached. The only way to invalidate the cache and force it to update is one of the following:

Start TF2
Stop TF2
Start a real-time trade session (not a trade offer)
Complete a trade involving a TF2 item

Because Steam inventories are cached. The only way to invalidate the cache and force it to update is one of the following:

Start TF2
Stop TF2
Start a real-time trade session (not a trade offer)
Complete a trade involving a TF2 item

Благодарю. But I have one more question. How i must stop TF? Use client.logOff()?

Use client.gamesPlayed([]) to report that you've stopped playing a game.


Credit card expiration hard to overtype

Minor annoyance (#4233 would probably solve this and the more important #4041):
Chromium 52, Chrome 59, Firefox 53 on fedora 25.
https://gratipay.com/~USERNAME/routes/credit-card
I came to update an expired credit card.
Tabbing into the Expiration day/month fields, it looks like the content of the field is selected so just typing should overwrite it, but typing doesn't do anything.
Ctrl+A to select all still doesn't allow typing.  Have to use backspace before you can type.

Gosh, that's annoying. Sorry and thanks for reporting!


Proposal: Adding Component-Level Tests using Playwright for web portal application

Problem Statement
Currently, the repository lacks unit tests or component tests, leading to potential issues and regressions going undetected. This can result in reduced code quality and increased maintenance efforts. To address this, I propose adding component-level tests using Playwright, a reliable and powerful tool for browser automation.
Solution Overview
By implementing component-level tests, we can ensure that critical functionality and user interactions are thoroughly tested. Playwright provides an efficient and straightforward way to automate browser actions, allowing us to simulate user interactions and verify expected behavior.

Thank you, @kowcik. This is an excellent idea which, I am convinced, will significantly enhance the quality of the portal application. Please be aware that the web portal is not managed by this repository; rather, it is supported by the Dataverse Portal project which represents an advancement from the original web portal both in terms of technological approach and aesthetics, but which does not use the original Design System as we imagined it.
I suggest examining this project to assess the feasibility of implementing Playwright for it. I would recommend starting by establishing the foundational elements of the testing framework and then presenting a canonical implementation on a straightforward component.
Please feel free to reach out to us if you have any questions. If you wish, you can start a discussion on automated Portal testing at okp4/community#okp4-portal. This platform offers an excellent opportunity to explore and share ideas on this subject within the vibrant OKP4 community.


Sea Animals Detection

Deep Learning Simplified Repository (Proposing new issue)
:red_circle: Project Title : Sea Animals Detection
:red_circle: Aim : Create a deep learning model which will identify the sea animals from the given dataset.
:red_circle: Dataset : https://www.kaggle.com/datasets/vencerlanz09/sea-animals-image-dataste
:red_circle: Approach : Try to use 3-4 algorithms to implement the models and compare all the algorithms to find out the best fitted algorithm for the model by checking the accuracy scores. Also do not forget to do a exploratory data analysis before creating any model.

📍 Follow the Guidelines to Contribute in the Project :

You need to create a separate folder named as the Project Title.
Inside that folder, there will be four main components.

Images - To store the required images.
Dataset - To store the dataset or, information/source about the dataset.
Model - To store the machine learning model you've created using the dataset.
requirements.txt - This file will contain the required packages/libraries to run the project in other machines.

Inside the Model folder, the README.md file must be filled up properly, with proper visualizations and conclusions.

:red_circle::yellow_circle: Points to Note :

The issues will be assigned on a first come first serve basis, 1 Issue == 1 PR.
"Issue Title" and "PR Title should be the same. Include issue number along with it.
Follow Contributing Guidelines & Code of Conduct before start Contributing.

:white_check_mark: To be Mentioned while taking the issue :

Full name :
GitHub Profile Link :
Email ID :
Participant ID (if applicable):
Approach for this Project :
What is your participant role? (Mention the Open Source program)

Happy Contributing 🚀
All the best. Enjoy your open source journey ahead. 😎

I want to contribute to the project.

I would like to contribute to the project

Can you elaborate your approach for this project and also please follow the guidelines & mention all the necessary details.
@muskaan04

Hey @abhisheks008,  i would like to work on this.
Full name : Kunal Agrawal
GitHub Profile Link : https://github.com/kunalagra
Email ID<EMAIL_ADDRESS>Role: SSoC'22
Approach: Tensorflow CNN Model & transfer Learning

Issue assigned to you @kunalagra. Sorry for the late reply.


Return http instead of https

Hello, my domain name (logout/login) variable is set to http, but after connecting to steam, it redirects me to my domain, but with https...
Any issue ?
Thank you
Nathan

With "https://...", I have an "the connection failed" error, and when I remove the 's' ('http://...'), it works perfectly...
Thank you
Nathan :)

Do you have any server logs?

Im on windows, with Wamp (Apache).
And here is my php_error.log file:
https://pastebin.com/nYzYKZiA
But I don't see any Steamauth file mention...
Thank you very much :)
Nathan

I’ll set up a server later tn and see how ssl works on it, but I don’t see any ssl errors, which what I was looking for.

Ok thank you very much :)

Also, check to make sure port 443 is forwarded (windows firewall and router - provided that it is going out of local network) and make sure ssl is set up properly: https://www.proy.info/how-to-enable-localhost-https-on-wamp-server/

didn't try using WAMP, but I used Azure Web App (windows os) and changed the setting to force https and it seems to work fine. I'm not going to keep it up forever, but here is the site: https://bman.tk/demo.php .
Also, here is my SteamConfig.php page code:
$steamauth['domainname'] = "bman.tk"; // The main URL of your website displayed in the login page $steamauth['logoutpage'] = "https://bman.tk/LoggedOut.html"; // Page to redirect to after a successfull logout (from the directory the SteamAuth-folder is located in) - NO slash at the beginning! $steamauth['loginpage'] = "https://bman.tk/LoggedOut.html"; // Page to redirect to after a successfull login (from the directory the SteamAuth-folder is located in) - NO slash at the beginning!

@Ezzcargot did you manage to get it working or are you still stuck with the connection error?

Works perfectly fine, you just need an SSL certificate on your domain, therefore the issue can be closed.


Fix issue #90

https://github.com/clemens/delocalize/issues/90
cc @torumori

@abhi-patel we're not using master branch. please change 0-4-coupa branch instead.
Also, we need to take care the line 35 in that version, otherwise it will break many locales.


Server Crashed on Start

What problem did you noticed?
Server dont start!
Console:
Steam can not be initialized: Steamworks GameServer is not initialized. Error in MulticastDelegate PluginsLoaded: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Steamworks GameServer is not initialized.   at Steamworks.InteropHelp.TestIfAvailableGameServer () [0x00000] in <filename unknown>:0   at Steamworks.SteamGameServer.SetKeyValue (System.String pKey, System.String pValue) [0x00000] in <filename unknown>:0   at Rocket.Unturned.U.<Initialize>m__5 () [0x00000] in <filename unknown>:0   at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)   at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0   --- End of inner exception stack trace ---   at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0   at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0   at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x00000] in <filename unknown>:0   at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00000] in <filename unknown>:0   at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in <filename unknown>:0   at Rocket.Core.Extensions.MulticastDelegateExtension.TryInvoke (System.MulticastDelegate theDelegate, System.Object[] args) [0x00000] in <filename unknown>:0 This server will automatically save every 1800 seconds System.SystemException: Error running gmcs: Cannot find the specified file   at Mono.CSharp.CSharpCodeCompiler.CompileFromFileBatch (System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames) [0x00000] in <filename unknown>:0   at Mono.CSharp.CSharpCodeCompiler.CompileAssemblyFromFileBatch (System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames) [0x00000] in <filename unknown>:0   at Mono.CSharp.CSharpCodeCompiler.CompileAssemblyFromFile (System.CodeDom.Compiler.CompilerParameters options, System.String fileName) [0x00000] in <filename unknown>:0   at System.Xml.Serialization.XmlSerializer.GenerateSerializers (System.Xml.Serialization.GenerationBatch batch, System.CodeDom.Compiler.CompilerParameters cp) [0x00000] in <filename unknown>:0   at System.Xml.Serialization.XmlSerializer.RunSerializerGeneration (System.Object obj) [0x00000] in <filename unknown>:0
What is the expected result?
A Started Unturned Server
What is the current result?
Steam can not be initialized: Steamworks GameServer is not initialized. Error in MulticastDelegate PluginsLoaded: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Steamworks GameServer is not initialized.   at Steamworks.InteropHelp.TestIfAvailableGameServer () [0x00000] in <filename unknown>:0   at Steamworks.SteamGameServer.SetKeyValue (System.String pKey, System.String pValue) [0x00000] in <filename unknown>:0   at Rocket.Unturned.U.<Initialize>m__5 () [0x00000] in <filename unknown>:0   at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)   at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0   --- End of inner exception stack trace ---   at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0   at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0   at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x00000] in <filename unknown>:0   at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00000] in <filename unknown>:0   at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in <filename unknown>:0   at Rocket.Core.Extensions.MulticastDelegateExtension.TryInvoke (System.MulticastDelegate theDelegate, System.Object[] args) [0x00000] in <filename unknown>:0 This server will automatically save every 1800 seconds System.SystemException: Error running gmcs: Cannot find the specified file   at Mono.CSharp.CSharpCodeCompiler.CompileFromFileBatch (System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames) [0x00000] in <filename unknown>:0   at Mono.CSharp.CSharpCodeCompiler.CompileAssemblyFromFileBatch (System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames) [0x00000] in <filename unknown>:0   at Mono.CSharp.CSharpCodeCompiler.CompileAssemblyFromFile (System.CodeDom.Compiler.CompilerParameters options, System.String fileName) [0x00000] in <filename unknown>:0   at System.Xml.Serialization.XmlSerializer.GenerateSerializers (System.Xml.Serialization.GenerationBatch batch, System.CodeDom.Compiler.CompilerParameters cp) [0x00000] in <filename unknown>:0   at System.Xml.Serialization.XmlSerializer.RunSerializerGeneration (System.Object obj) [0x00000] in <filename unknown>:0
How to reproduce the issue?
Start the Unturned Server on Debian 8
Operating System and Version:

Unturned Version:
v<IP_ADDRESS>
Rocketmod Version:
v<IP_ADDRESS>

This is not a RocketMod issue and was answered less than 10 hours ago: https://github.com/RocketMod/Rocket/issues/995
Requesting close.


[1.5.1881] Missing appDisplayName

Brief description of your issue
Doubleclicking the latest released (1.5.1881) msixbundle shows a dialog window with a missing ms-resource:appDisplayName substitution.
Steps to reproduce

Download msixbundle from 1.5.1881
Doubleclick downloaded file

Expected behavior
To see the appropriate name instead of a placeholder.
Actual behavior
The window displays ms-resource:appDisplayName instead of the actual application name.

Environment
This is on Windows 10.

Do you happen to know which version of App Installer you had before the upgrade?
I suspect it's actually a bug in the earlier version of App Installer that has been fixed, but knowing the version number would help to verify.
The App Installer is being used to "install" a newer version of the App Installer, and it's the earlier version displaying that UI.

Do you happen to know which version of App Installer you had before the upgrade?

I just went through forced updates at work for this laptop. However, when I submitted this I was on Windows 10 Enterprise 22H2 19045.2006. Can that help you to narrow it down?

I wasn't able to get a solid repro, but I installed the oldest release (1.2) and ran the upgrade. It actually failed for a different reason, but I was able to get the update via the Microsoft Store.
I tested the transition from 1.4 to 1.5 and didn't see this behavior.
Without knowing the exact version of App Installer, I doubt I'll be able to reproduce this error. I've talked with the engineering team and was assured this is a bug that was fixed in an earlier version of App Installer.


feat: service cache component read-me file - Version 2

Added the service cache documentation.

:tada: This PR is included in version 1.1.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


validation fails for subdomains - missing subdomain in the TXT record

Certbot command:
certbot certonly --authenticator certbot-dns-infomaniak:dns-infomaniak --server https://acme-v02.api.letsencrypt.org/directory --agree-tos --rsa-key-size 4096 --email<EMAIL_ADDRESS>-d "subdomain.mydomain.ch"   -d "*.subdomain.mydomain.ch"

Failure message:
Certbot failed to authenticate some domains (authenticator: certbot-dns-infomaniak:dns-infomaniak). The Certificate Authority reported these problems:
Domain: subdomain.mydomain.ch
Type:   unauthorized
Detail: No TXT record found at _acme-challenge.subdomain.mydomain.ch
(note the subdomain is part of the expected TXT record)

The record created in the Infomaniak DNS
TXT 	_acme-challenge.mydomain.ch	300 	TGqaoUPG7y-E3p8tDRkT9dwi_BAs7LdIrE6xmNE4lmk
(note the subdomain is missing in the TXT record)

Is a duplicate of issue  #13.
Solution: update pip package.
Issue is closed.


It raises warnings about matplotlib, how can I avoid them?

It is a matplotlib backend dependency issue, mostly related to your GUI environment. You can easily search for some solutions for that, or just comment the import matplotlib.pyplot as plt line, which is not required if you don't want to plot official annotations for debugging.


Remove VRTK as a "dependency"

Just to clean things up.
Instead add it as a section in the usage guide.

Done.


[Feature Request] Attach PDF to Invoice Emails

Client currently has to login to view the invoice.
Add an option to attached PDF to email, so the invoice can be viewed from the email. Ideal solution for customers who prefer to pay via Bank Transfer and not through an online gateway.

Important!

As a temp work around I have edited the invoice email templates and included the below code. This provides a direct link to the PDF. Most browsers will either download the file or open the file within the browser.

Click here to download a PDF copy of your invoice - DOWNLOAD INVOICE

But as original stated, the PDF should (optionally) be an email attachment.

@gunsar you can use the variable {{ invoice.serie_nr }}
This will output the Prefix and Invoice Number

Important!


Move MATSim config files from v1 to v2

From @dhixsingh on August 1, 2018 2:48
Most of the matsim config .xml files in examples/bushfire/* use DTD config version 1. These should all be updated to [config version 2]http://www.matsim.org/files/dtd/config_v2.dtd).
MATSim otherwise generated the following warning at runtime:
WARN ConfigReaderMatsimV1.java:58 using deprecated config version; please switch to config v2; your output_config.xml will be in the correct version; v1 will fail eventually, since we want to reduce the workload on keeping everything between v1 and v2 consistent (look into PlanCalcScoreConfigGroup or PlanCalcRouteConfigGroup if you want to know what we mean).
Copied from original issue: agentsoz/bdi-abm-integration#38

@osbornejr is this done now?

This hasn't happened yet, should be an easy switch though- I can do it when I am on my other laptop.

Fixed as of 4d9e28c444540fc1839c086de6877e8071c987df.


added import for PyMySQL in write_db

I added the poll class. It's mostly incomplete but the xpath works. Stored it all in poll_results


Fee lookups and log processor tests

There are a few different things jumbled together in this PR; sorry about that.  The main thing I'd like feedback on is the format of the MarketCreated log processor tests, in test/blockchain/log-processors/market-created.js -- this seemed like a reasonable stab at how much stuff to mock and how to do so.  Thoughts?

Going to go ahead and merge this so I can un-bork my local git branches.  Feedback still very much appreciated re: test format though!


Add metatags for social integration

Social sharing is sad right now because the metatags haven't been added: https://twitter.com/creativecommons/status/1088090712497967104
This impacts SEO as well: https://www.wordstream.com/meta-tags

Hi, I am working on this issue.

close this issue if this is done

@brenoferreira I saw something about this not working on Slack, could you update the issue with those details or close?

need to deploy on dev first before we merge

This is still an open issue, latest PR plus discussion is here: https://github.com/creativecommons/cccatalog-frontend/pull/214. Please post here if you want to work on it since @sgrepos is busy.

Yes, I will  resolve this issue

@pratikmishra356 okay, I've marked as "in progress". Let me know if you have any questions about my comments on https://github.com/creativecommons/cccatalog-frontend/pull/214.

Let's remember to make this live only in the dev branch and not push to prod yet. Sarah and I still need to review and test. Thanks!

Here's a test tweet: https://twitter.com/testaccountcc21/status/1113820480916480006.
Questions:

Are the social metatags in there? If so, how can I see what they are?
Can we add attribution into the social metatags, or are the metatags purely to display the link and image in Twitter?
Is this true of FB and Pinterest as well?

Additional question: When a user clicks on a social sharing button, are we simply sending them to the social media site to login with suggested language and social metatags? Or is there anything else that happens in the interim, e.g. logging into our platform in anyway or us hosting any data?

On the test tweet: this is showing the Flickr website, which has baked in Metadata already.
Do you want to send users to the CC Search site or to the original image?
I'm not sure if the social sharing buttons issues //open graph metadata tags for rich snippets are conflating two separate issues?

We want to send them to the Flickr website.
I don't know -- but I'll let @brenoferreira and others read the question first before moving it to another issue (there is no issue around buttons, only an approved PR right now)

Removing "in progress" tag since there has been no update for 7+ days.

Reminder to keep this feature flagged for now.

I'm closing this issue since we have metatags and the remaining issues are captured in #269 and #270.


Commenting out colors leads to graphical bug (transparency)

If a user comments out the block suggested in userChrome.css the browers title bar will appear transparent and glitchy (Fedora 35). It seems that defaults are not assumed for the theme variables if they are commented out.

It might be good to set a fallback somewhere that uses the vars within the colours block.

oh shoot! I completely forgot to answer this!
I'll def. look into that further. Simply inheriting the default value doesn't seem to work for some reason. :c

Okay, so.. from what I can tell inheriting default values is a little tricky because of the way these variables are implemented in the default browser.css. But i think i've found a way to get around this. Would you mind giving this a spin to see if it works for you too?


MCM - changing amount of quests you get, works however

okay so the mcm works however it starts regain _ hold after completing 2 quests in addition to this one of those mission doesn't get issued (i set it to 5 and i only got 3) she told me to collect defectors and then a dialogue option called ... appeared and she didn't mention any quest

I will take a look. Unfortunately this value might not update on an already running campaign

I will take a look. Unfortunately this value might not update on an already running campaign

okay i will clarify, this is a new campaign this is fresh off of winning the battle of solitude, took the pale then activated the 5 choices and went to falkreath
i got these issues at falkreath

or it could just not be giving me 5 quests

I think that its this

I think that its this
no i don't think it is. other holds are giving me 4 quests soooooo actually maybe idk

Sorry I wasn't clear. So when a campaign starts (a campaign is basically a handful of missions finishing off with a siege), when speaking to the Field CO, you he/she will send you on up to 2 missions at a time. Each mission on completion will increase the phase by one. Once it reaches the Max Phase (either 3 or 5 or 1 if you just want to jump straight to the siege), then the siege starts. Once that siege is over, the campaign finishes and then you see the commander to start a new campaign.
I think what was happening is that I fixed the MCM but if you had an already running campaign, the max phases was not getting changed. I am fixing that so that adjusting the phase in the MCM will update an already running campaign.
Keep in mind, currently only a Skirmish or Fort siege happens on Defense.

it could be that cow one but i don't know anything about that one.

This one is kind of an Easter Egg. It will only start on the Stormcloaks side and only if you are on the offence at either Whiterun or the Pale. It is CWMission08 on https://tcrf.net/The_Elder_Scrolls_V:_Skyrim/Civil_War If you win, you actually get the giant as an ally in the next major city siege.

Closing this issue. Verified that max phase is getting updated, even mid-campaign.


Fix typo in initialize-the-backend-repo.md

Serverless was misspelt in change directory command. Line: 17.

🤦 Good catch. Thanks!


Allow '-' in git branch name

Allow '-' in git branch name as it's a valid branch name character
Signed-off-by: Olivier Vernin<EMAIL_ADDRESS>

This test has been fixed in a different PR so I am moving forward


[4.1][Tests] Add tests to get attribute in select columns.

As request by @tabacitu in #2815
I think i'v covered all the use cases, if i missed some please let me know.

A new inspection was created.

The inspection completed: 2 new issues, 12 updated code elements

Excellent Pedro! It's ok to merge, both this and #2815, right?


Feature Request: Enable cache options

Greetings!
This is not a issue, it's a feature request.
Is it possible to enable cache options?
Thanks in advance.

@pedrounes1 query results are served from the BQ cache by default. Would you rather have an option to either disable/enable cached results of a query?

@dprokop Thanks for your fast response.
No. I think that I did a bad / not enough explained request.
Every time that a user opens a dashboard, grafana do a request to BigQuery to fetch new data. So, if 100 users opens the same report at same time, grafana will do 100 requests to BigQuery, then store that data into each user session, right? This behaviour is good for keep everything updated, but on other hand raises our billing and can exceed  BQ simustaneous request limit (as, in fact, has occured in a stress test that we did).
Is there a way to cache that data in a way that only the first user trigger a request to BigQuery and all next accesses (within 5 mins or so) uses the same data? In another words, I want to replicate the behaviour from [this article]

@pedrounes1 I think you have missed a link to an article you are referring to :)

Fixed :)

Hi @pedrounes1,
The caching you linked is an enterprise only feature. You can enable it in this datasource as well on the datasource settings page at the Cache tab.


Create complementary_and_supplementary_angle.py

Add a function to generate problem to find complementary/supplementary angle of an angle.

Well done. Thanks!


Proxy issues in build containers with outdated CLI plugins in Docker snap package

Problem Description:
In a proxy environment, running docker compose up --build using the Docker snap package fails because the build containers cannot properly utilize the proxy settings. This is caused by outdated CLI plugins included in the snap package:

docker-compose: v2.20.3
docker-buildx: v0.16.1

Updating to more recent versions (docker-compose v2.21.0 and docker-buildx v0.17.1) resolves the issue.
Steps to Reproduce:

Set up proxy and groups:sudo addgroup --system docker
sudo adduser $USER docker
newgrp docker
sudo snap set system proxy.https=http://proxy.example.com:8080

Install the Docker snap package and configure proxy environment variables for dockerd.sudo snap install docker
sudo mkdir /etc/systemd/system/snap.docker.dockerd.service.d/
sudo tee /etc/systemd/system/snap.docker.dockerd.service.d/override.conf << EOF > /dev/null
[Service]
Environment="HTTP_PROXY=http://proxy.example.com:8080" "HTTPS_PROXY=http://proxy.example.com:8080" "NO_PROXY=localhost,<IP_ADDRESS>,host.docker.internal,*.internal"
EOF
sudo systemctl daemon-reload
sudo snap restart --reload docker
docker info
mkdir ~/snap/docker/current/.docker/
cat <<'EOF' > ~/snap/docker/current/.docker/config.json
{
  "proxies": {
    "default": {
      "httpProxy": "http://proxy.example.com:8080",
      "httpsProxy": "http://proxy.example.com:8080",
      "noProxy": "localhost,<IP_ADDRESS>,host.docker.internal,<IP_ADDRESS>/8,<IP_ADDRESS>/8,<IP_ADDRESS>/12,<IP_ADDRESS>/16,*.internal"
    }
  }
}
EOF
export http_proxy=http://proxy.example.com:8080; export https_proxy=$http_proxy

Create a minimal Dockerfile and docker-compose.yaml:cat << 'EOF' > Dockerfile
FROM alpine:3.20
RUN apk add curl
EOF

cat << 'EOF' > compose.yaml
services:
  test:
    build:
      context: ./
    restart: "no"
EOF

Run the following command:docker compose up --build

Observed Behavior:
The build fails with errors indicating that the proxy settings are not respected during the build process.
[+] Building 211.7s (6/6) FINISHED                                         docker:default
 => [test internal] load build definition from Dockerfile                            0.0s
 => => transferring dockerfile: 105B                                                 0.0s
 => [test internal] load metadata for docker.io/library/alpine:3.20                  2.1s
 => [test internal] load .dockerignore                                               0.0s
 => => transferring context: 2B                                                      0.0s
 => [test 1/3] FROM docker.io/library/alpine:3.20@sha256:1e42bbe2508154c9126d48c2b8  0.5s
 => => resolve docker.io/library/alpine:3.20@sha256:1e42bbe2508154c9126d48c2b8a7542  0.0s
 => => sha256:1e42bbe2508154c9126d48c2b8a75420c3544343bf86fd041fb75 9.22kB / 9.22kB  0.0s
 => => sha256:029a752048e32e843bd6defe3841186fb8d19a28dae8ec287f433 1.02kB / 1.02kB  0.0s
 => => sha256:63b790fccc9078ab8bb913d94a5d869e19fca9b77712b315da3fa45bb 600B / 600B  0.0s
 => => sha256:da9db072f522755cbeb85be2b3f84059b70571b229512f1571d92 3.62MB / 3.62MB  0.3s
 => => extracting sha256:da9db072f522755cbeb85be2b3f84059b70571b229512f1571d9217b77  0.1s
 => [test 2/3] RUN printenv | grep "proxy" | cat                                     0.2s
 => ERROR [test 3/3] RUN apk add curl                                               43.2s
------
 > [test 3/3] RUN apk add curl:
0.131 fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/main/x86_64/APKINDEX.tar.gz
14.53 fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/community/x86_64/APKINDEX.tar.gz
14.53 WARNING: updating and opening https://dl-cdn.alpinelinux.org/alpine/v3.20/main: Permission denied
43.20 WARNING: updating and opening https://dl-cdn.alpinelinux.org/alpine/v3.20/community: Permission denied
43.20 ERROR: unable to select packages:
43.20   curl (no such package):
43.20     required by: world[curl]
------
failed to solve: process "/bin/sh -c apk add curl" did not complete successfully: exit code: 1

Workaround:
Manually update the CLI plugins to the latest versions:
mkdir ~/snap/docker/current/.docker/cli-plugins
curl -SL https://github.com/docker/compose/releases/download/v2.21.0/docker-compose-linux-x86_64 -o ~/snap/docker/current/.docker/cli-plugins/docker-compose
curl -SL https://github.com/docker/buildx/releases/download/v0.17.1/buildx-v0.17.1.linux-amd64 -o ~/snap/docker/current/.docker/cli-plugins/docker-buildx
chmod u=rwx,g=rx,o=rx ~/snap/docker/current/.docker/cli-plugins/docker-*

After updating, the build succeeds as expected.
[+] Building 4.6s (7/7) FINISHED                                           docker:default
 => [test internal] load build definition from Dockerfile                            0.0s
 => => transferring dockerfile: 105B                                                 0.0s
 => [test internal] load metadata for docker.io/library/alpine:3.20                  2.2s
 => [test internal] load .dockerignore                                               0.0s
 => => transferring context: 2B                                                      0.0s
 => [test 1/3] FROM docker.io/library/alpine:3.20@sha256:1e42bbe2508154c9126d48c2b8  0.5s
 => => resolve docker.io/library/alpine:3.20@sha256:1e42bbe2508154c9126d48c2b8a7542  0.0s
 => => sha256:63b790fccc9078ab8bb913d94a5d869e19fca9b77712b315da3fa45bb 600B / 600B  0.0s
 => => sha256:da9db072f522755cbeb85be2b3f84059b70571b229512f1571d92 3.62MB / 3.62MB  0.3s
 => => sha256:1e42bbe2508154c9126d48c2b8a75420c3544343bf86fd041fb75 9.22kB / 9.22kB  0.0s
 => => sha256:029a752048e32e843bd6defe3841186fb8d19a28dae8ec287f433 1.02kB / 1.02kB  0.0s
 => => extracting sha256:da9db072f522755cbeb85be2b3f84059b70571b229512f1571d9217b77  0.1s
 => [test 2/3] RUN printenv | grep "proxy" | cat                                     0.2s
 => [test 3/3] RUN apk add curl                                                      1.5s
 => [test] exporting to image                                                        0.1s
 => => exporting layers                                                              0.1s
 => => writing image sha256:b00027dd0cf946a25c600472f3c384af8033bb70281eba5f8222b4d  0.0s
 => => naming to docker.io/library/myubuntu-test                                     0.0s
[+] Running 2/2
 ✔ Network myubuntu_default   Created                                                0.1s
 ✔ Container myubuntu-test-1  Created                                                0.0s
Attaching to myubuntu-test-1
myubuntu-test-1 exited with code 0

Proposed Solution:
Update the docker-compose and docker-buildx plugins in the snap package to the following versions or higher:

docker-compose: v2.21.0 (v2.29.7 recommended)
docker-buildx: v0.17.1

References:

Current snapcraft.yaml file
Docker Compose v2.21.0 release
Docker Buildx v0.17.1 release

On the following PR:

https://github.com/canonical/docker-snap/pull/198

The docker-compose has been updated to version v2.30.2:
https://github.com/canonical/docker-snap/blob/a53ec7611c32b466078b07e89b267be9b29ebc7a/snap/snapcraft.yaml#L352
Also, docker-buildx has been updated to version v0.18.0:
https://github.com/canonical/docker-snap/blob/a53ec7611c32b466078b07e89b267be9b29ebc7a/snap/snapcraft.yaml#L337
This updated version is currently available on the latest/beta channel. You can install and test it by running the following command:
sudo snap refresh docker --beta

Could you please try this new version and let us know if it resolves the issue? Your feedback will help us ensure everything behaves as expected.
We are also conducting further testing to verify there are no regressions and to guarantee the best quality. Once the testing is complete, this version will be promoted to the latest/stable channel.
Thank you so much for your time and assistance! We truly appreciate your support.


[MAXWSNENV,MAX32600MBED] Added ring oscillator trimming procedure.

Added ring oscillator trimming procedure for Maxim Integrated targets.

Curiosity, what is that Systick used for, as its enabled there?

The trimming procedure should run for about 50ms. The Systick is clocked from the 32kHz crystal and is used to create a 50ms delay. It is then disabled.


cli color broken when adding the "(docktie)" visual indicator to PS1 prompt

It's in https://github.com/icasimpan/docktie/blob/master/init.sh#L47
bash --rcfile <(cat $CONF_DIR/ps1_changer)

For me though, this is a useful visual indicator still despite breaking the color.
Workaround
Just make that line as
bash

though take note you will loose visual indication that docktie is initialized.
However, you can check the environment variables:
~$ env|grep -i docktie
DOCKTIE_DOCKER_COMPOSE_FULLPATH=/my/projects/cooltool/docker-compose.yml
DOCKTIE_INIT=true
DOCKTIE_ENV=/my/projects/docktie/cooltool_env

Will be fixed in new home https://github.com/docktie

Check how it's done in Docksal's fin command - https://github.com/docksal/docksal/blob/develop/bin/fin
Also check the referenced doc in https://misc.flogisoft.com/bash/tip_colors_and_formatting


Templates not installing correctly rc1 update 1

I cannot get the core 1.0 templates to load correctly both in a new solution and when I try to open a sample core 1.0 solution. I currently have Microsoft ASP.Net 5 RC1 Update 1 installed. I am using Visual Studio 2015 Enterprise edition Update 2 with pretty much all the features installed. I have tried repairing visual studio, and also tried reinstalling visual studio with just Visual Studio Community Edition. When I try to add an ASP.Net 5 Core 1.0 project to a .Net solution I get the following error:
"The template specified cannot be found. Please check that the full path is correct."
When I try to open a solution with an ASP.Net 5 project inside of it I get the following error: "Incompatible"
Finally, if I try to remove the project and re-add it through add existing project I get the error message:
"The project system has encountered an error.  There is no project properties provider for "Persistence = DnxDynamic".  A diagnostic log has been written to the following location: "
See attached stack trace.
VsProjectFault_a4d89b87-7ab4-4c05-b610-aa32f7e43397.failure.txt

This issue is being closed because it has not been updated in 3 months.
We apologize if this causes any inconvenience. We ask that if you are still encountering this issue, please log a new issue with updated information and we will investigate.


Doc rework to use the async/await syntax.

I was not able to build the doc (sphinx complains about TypeError: _warn_node() got an unexpected keyword argument 'type', will have a look later). Could be good is someone just give an eye on it before merging (but I think all is good)

[Current coverage][cc-pull] is 59.99%

Merging [#707][cc-pull] into [master][cc-base-branch] will not change coverage

@@             master       #707   diff @@
==========================================
  Files            66         66
  Lines         10854      10854
  Methods           0          0
  Messages          0          0
  Branches       1657       1657
==========================================
  Hits           6512       6512
  Misses         3799       3799
  Partials        543        543

Powered by Codecov. Last updated by [b35eabd...4cd97d4][cc-compare]
[cc-base-branch]: https://codecov.io/gh/crossbario/autobahn-python/branch/master?src=pr
[cc-compare]: https://codecov.io/gh/crossbario/autobahn-python/compare/b35eabd9bcb48da4fd8fe14842471b5075f374e2...4cd97d47dfde0a0997aa5fc4037c30c99cdbd967?src=pr
[cc-pull]: https://codecov.io/gh/crossbario/autobahn-python/pull/707?src=pr

Ah, nice! Very much appreciated. Cheers, Tobias


def get_product_fees_estimate(self, estimate_requests: list[dict]) -> ApiResponse:

I'm testing it for the first time today. I am getting this error even though I have everything set up correctly.
What is the reason for this error?
File "D:\anaconda3\lib\site-packages\sp_api\api\product_fees\product_fees.py", line 99, in ProductFees
def get_product_fees_estimate(self, estimate_requests: list[dict]) -> ApiResponse:
TypeError: 'type' object is not subscriptable
from sp_api.base import Marketplaces
from sp_api.api import Orders

credentials = dict(
    refresh_token='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',  # From Seller central under Authorise -> Refresh Token
    lwa_app_id='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',  # From Seller Central, named CLIENT IDENTIFIER on website.
    lwa_client_secret='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',  # From Seller Central, named CLIENT SECRET on website.
    aws_access_key='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',  # From AWS IAM Setup
    aws_secret_key='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',  # From AWS IAM Setup
    role_arn='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'  #arn:aws:iam::1234567890:role/SellingPartnerAPIRole
)

order_client = Orders(credentials=credentials, marketplace=Marketplaces.AU)
order = order_client.get_order('111-4412524-0850212')
print(order) # `order` is an `ApiResponse`
print(order.payload) # `payload` contains the original response

Thank you

For what it's worth, simply deleting the offending line in the init file resolved the issue as my code doesn't use this aspect in particular.

This is issue is already resolved in https://github.com/saleweaver/python-amazon-sp-api/pull/717. Please pull from main to get it working or ask the developers to release a new version.

No it was not resolved in #717. A simple Google Colab notebook shows the issue is still prevalent. #723 is the proper adjustment. List[dic] is just a comment describing a representation of what the list would contain - it is not proper Python code. Modifying this statement (as seen in #723) is necessary for the library to function properly.

use python-amazon-sp-api==0.15.0. It works well.

It does work well, but that's because it doesn't have the bug that #723 is meant to fix :/

No it was not resolved in #717. A simple Google Colab notebook shows the issue is still prevalent. #723 is the proper adjustment. List[dic] is just a comment describing a representation of what the list would contain - it is not proper Python code. Modifying this statement (as seen in #723) is necessary for the library to function properly. @saleweaver mind reviewing the CL?

Please, see my comment on your PR. I would like to help you here.
Are you installing from pip or GitHub directly?

I see now Lars, seems as though you're right and a new version needs to be pushed out accordingly.

this broke a lot of things in aws MWAA which uses python 3.7

https://github.com/saleweaver/python-amazon-sp-api/releases/tag/v0.17.1


Move questions somewhere else

Discourse/discord etc.
Too many questions polluting this tracker.

Will add to FAQ to close #1333


[material-ui][Form Control] Native HTML attribute is not supported

Duplicates

[X] I have searched the existing issues

Latest version

[X] I have tested the latest version

Steps to reproduce 🕹
Link to live example: https://codesandbox.io/s/38932-formcontrol-fieldset-33jmdg
Steps:

change FormControl's component into 'fieldset'
add 'disabled'
html attribute 'disabled' is not applied.

Current behavior 😯
No response
Expected behavior 🤔
No response
Context 🔦
I want to make FormFieldset component which use FormControl component,
and when  disabled prop is true, also want to set fieldset's attribute disabled to true.
I don't know is it intended or not, HTML attribute is not changed.
do I alternatively use aria-disabled attribute?

fieldset spec: https://html.spec.whatwg.org/multipage/form-elements.html#attr-fieldset-disabled
Your environment 🌎

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

@mogamogua Thanks for reporting this ~ I've updated the sandbox link
It could make sense to handle fieldset as a special case here, though it could be a breaking change.
 I think we can add disabled to the utility classes for this

I don't need it for styling. just wanted to make screen readers can notice disabled fieldset.

I found that all the elements inside the disabled fieldset should be disabled. (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/fieldset). (If I set disabled to fieldset, all the input inside changed into disabled)
This can be useful in case of using FormControl inside the FormControl (ex. TextField)
In demo, If you manually set fieldset's disabled attribute on DOM element(because FormControl already has disabled prop, we cannot set html attribute), You can find TextField changed into disabled (although some style is not same with disabled TextField).
I think fieldset element is also considered as form element in mui, so we can support valid html markup.

All the input element(checkbox, radio, TextField ...) should be disabled,  and has disabled style if parent fieldset set to disabled
current Select is not disabled since this is not made by native select

I'm making a design system using MUI, thank you for making a great product and I hope my opinion helps you improve the product. If there is any other way (which can affect the FormControl context used within FormControl) to solve the problems I experience creating FormFieldset  I would be so grateful if you could let me know.

@mogamogua I agree it makes sense for FormControl to have this behavior if the underlying element is a fieldset, this is something we could add in v6, I've added an item to the related issue to track this ~


Avoid calling list on partitions

Previously we accidentally called list on partitions in certain reductions to
ensure that they were not empty.  This instead employs a peek utility function
to do the same.

Anyone have thoughts on how to effectively test this?

For a test, perhaps something that checks the state of the iterator? Something like:
current = [None]
def part():
    for i in range(10):
        current[0] = i
        yield i

def func(part):
    assert current[0] == 0
    return sum(part)

assert empty_safe_apply(func, part) == sum(range(10))

My goal in testing was to verify that dask.bag operations themselves operated in a low-memory manner.  Looking for more of an integration test than a unit test here.

This would at least testreduction, which most of the reductions are based off of:
current = [None]
def part():
    for i in range(10):
        current[0] = i
        yield i

def func(part):
    assert current[0] == 0
    return sum(part)

b = Bag({('foo', 0): part()}, 'foo', 1)

res = b.reduction(func, sum)

assert res.compute() == sum(range(10))

Otherwise, I'm not sure how to test this either.

That should do.  Thanks !


Drop deprecated .spec.dns.ingressDomain from SeedSpec

How to categorize this issue?

/area dev-productivity
/kind cleanup
What would you like to be added:
With https://github.com/gardener/gardener/pull/3131, the .spec.dns.ingressDomain field was deprecated more than two years ago in favor of .spec.dns.provider and .spec.ingress. However, the field was never removed. Let's clean it up now.
Why is this needed:
Removal of technical debt.

/assign
Should this also be done in two parts for the usages and API?

@shafeeqes I think this makes sense, yes.

/close
All tasks are completed.


[WebSite][Doc] add release note to download page

Add a specific release-note to the page https://dolphinscheduler.apache.org/zh-cn/download/download.html. The English version is available at github/apache/dolphinscheduler/ release-note. note. (You will need to create release-notes for each version.) Chinese version reference (https://www.oschina.net/search?identification=1627314582095&scope=news&q=dolphinscheduler+release)

I don't really get it: what should be done for this issue?

done


Tour: Concurrency: Step 4: Channel should have not capacity

Context: https://tour.golang.org/concurrency/4
Hi All,
I think in the context of what this step is suppose to illustrate creating the channel with the capacity of the number of fibs you want to calculate is miss-leading.
For this to work the channel needs to have (and should have) a capacity of one (basically synchronizing the fib goroutine with the main goroutine (between calculating one number and displaying it)).
func main() {
	c := make(chan int)
	go fibonacci(10, c)
	for i := range c {
		fmt.Println(i)
	}
}

The code shows how range on a channel will continue until the channel is closed by the sending side.  The capacity in the channel is there to allow fibonacci() to complete, sending all output over the channel, and close the channel if that (by scheduling chance) happens before the for loop starts reading from the channel.


Enable compilation time configuration of maximum section count and expose DetourIsFunctionImported

A few minor changes:

Expose detour_is_imported via a new public function DetourIsFunctionImported
Make certain static analysis happy by masking pbTarget before casting to smaller type
Enable user to compile with a different number of supported section headers (leaves default at 32)

Moved to PR against official repo:
https://github.com/microsoft/Detours/pull/225


Document how to migrate Verrazzano kube-prometheus-stack (called prometheus-operator) to catalog kube-prometheus-stack

Verrazzano helm chart for  kube-prometheus-stack  is actually called prometheus-operator, and in fact it does include the operator.  The OCNE catalog names the chart the correct name, kube-prometheus-stack.  We need to figure out how to migrate and change the release name, which has a ripple affect in the deployment/service/pod names.
We need to document the steps once we determine them.

The proposed solution is to do the following:

export the Helm user provided overrides (helm get values ...) to a file
modify the image section of the override file
detach the prometheus PV
uninstall the prometheus-operator chart (which is really the kube-prometheus-stack)
install kube-state-metrics from the catalog using the override file from step 2


Doesn't work inside custom plugin script

 Invalid get index 'job' (on base: 'Node (HTTPManager)'). if Engine.is_editor_hint() == true

Hi,
can you provide more information on how you use it? Do you want to use it in tool mode in an other plugin?

Yes. If I use e.g. your HTTPManager-example.gd with @tool annotation in my plugin I have the error

The HTTPManager is itself not a @tool script, therefore it does not provide any "runtime" functionality. Furthermore it is supposed to reside as a node in a tree to get the process calls. But if you have any controls (e.g. a panel anywhere) you could use it there because it is then part of a tree.

As I know HTTPManager shouldn't be a tool script... But maybe it is because of https://docs.godotengine.org/en/stable/tutorials/plugins/running_code_in_the_editor.html#editing-variables

Code from other nodes doesn't run in the editor. Your access to other nodes is limited. You can access the tree and nodes, and their default properties, but you can't access user variables. If you want to do so, other nodes have to run in the editor too. Autoload nodes cannot be accessed in the editor at all.

Do we have some way to use HTTPManager in the editor mode?

Yes, because it is no toolscript it will not be initialized, therefore its members are not accessible.
The only way seems to be to add @tool to all classes. Have you tried this?

I just tried it. It works now! Does it possible to add @tool for github project?

I'm not sure if this has any drawbacks to the functionality. This must be tested first.
I will consider this if i have more time to test it. For now i will close this issue since its not realy an issue but more of a missfited usecase.

Ok, thx. I hope @tool can't be affect the editor. Any way you can switch on tool mode by a checkbox in the plugin settings or allow to use HTTP manager without Node (by extending HTTPManager.gd etc.)

Any way you can switch on tool mode by a checkbox in the plugin settings

How would you do that?


relax anyio dependency

Description: relaxed anyio dependency to <5.0 instead of <4.0
Issue: https://github.com/langchain-ai/langchain/issues/12337
Dependencies: anyio <5.0

dont think this is relevant any more


EVE Online - stuck at splash screen

Please describe your issue as accurately as possible.
If you use Windows, please check the following page: https://github.com/doitsujin/dxvk/wiki/Windows
Software information
EVE Online - latest version with new launcher, including EVE Vanguard
System information
$ inxi -Gxxx
Graphics:
  Device-1: Intel DG2 [Arc A770] driver: i915 v: kernel arch: Gen-12.7 pcie:
    speed: 2.5 GT/s lanes: 1 ports: active: HDMI-A-1,HDMI-A-2 empty: DP-1,
    DP-2, DP-3, DP-4, HDMI-A-3 bus-ID: 03:00.0 chip-ID: 8086:56a0
    class-ID: 0300
  Display: wayland server: X.org v: 1.20.14 with: Xwayland v: 22.1.9
    compositor: gnome-shell v: 44.8 driver: X: loaded: modesetting
    unloaded: fbdev,vesa dri: iris gpu: i915 display-ID: 0
  Monitor-1: HDMI-A-1 model: BenQ G2420HDBL serial: RAB03454SL000
    res: 1920x1080 dpi: 92 size: 477x268mm (18.78x10.55") diag: 604mm (23.8")
    modes: max: 1920x1080 min: 720x400
  Monitor-2: HDMI-A-2 model: Philips FTV serial: 16843009 res: 1920x1080
    dpi: 76 size: 640x360mm (25.2x14.17") diag: 734mm (28.9") modes:
    max: 1920x1080 min: 640x480
  API: EGL v: 1.5 hw: drv: intel iris platforms: device: 0 drv: iris
    device: 1 drv: swrast surfaceless: drv: iris wayland: drv: iris x11:
    drv: iris inactive: gbm
  API: OpenGL v: 4.6 vendor: intel mesa v: 23.1.9 glx-v: 1.4 es-v: 3.2
    direct-render: yes renderer: Mesa Intel Arc A770 Graphics (DG2)
    device-ID: 8086:56a0 display-ID: :0.0
  API: Vulkan v: 1.3.243 layers: 1 surfaces: xcb,xlib,wayland device: 0
    type: discrete-gpu driver: mesa intel device-ID: 8086:56a0 device: 1
    type: cpu driver: mesa llvmpipe device-ID: 10005:0000

$ sh Lejupielādes/winetricks list-installed
------------------------------------------------------
warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Using winetricks 20240105-next - sha256sum: 5068a499d055eb4fe83f10dcb870bd2a3ae7c65cf65bb997c117cba7a02eb2bc with wine-8.21 (Staging) and WINEARCH=win64
w_workaround_wine_bug-50894
ucrtbase2019
vcrun2019
d3dcompiler_43
d3dx9
d3dcompiler_47
dxvk
vcrun2013

Apitrace file(s)

Put a link here

For instructions on how to use apitrace, see: https://github.com/doitsujin/dxvk/wiki/Using-Apitrace
Log files
Please attach Proton or Wine logs as a text file:

When using Proton, set the Steam launch options for your game to PROTON_LOG=1 %command% and attach the corresponding steam-xxxxx.log file in your home directory.
When using regular Wine, use wine game.exe > game.log 2>&1 and attach the resulting game.log file.

eve-online-backtrace.txt

Might be worth trying a clean prefix https://github.com/doitsujin/dxvk/issues/3844#issuecomment-1932801681
I didn't reproduce any issues with the launcher when I tried to install in yesterday together with dxvk.

I had the same when they deprecated the old launcher. Reinstallling the launcher and game fixed the problem for me.

I had the same when they deprecated the old launcher. Reinstallling the launcher and game fixed the problem for me.

What do you mean by "reinstalling"? Once CCP deprecated old one, they did forced in-place update. That means that after that you uninstalled newly installed EVE Online and installed it again and everything worked?

Seems like it magically got resolved afterv I did clean reinstall and used shell script to launch game directly from its install directory, instead of using shrtcut.
Closing.


Not getting OTHER_DEVICE_ANSWERED in Sinch when user is on another call

I have integrated Sinch App-to-App calling for Video and Voice call. I have a case which I don't know how to handle it properly.
User A and User B are on a call(voice/video). Then User C calls User A, then it always goes to onCallEnded in VideoCallListener or CallListener and gives CallEndCause.DENIED as an EndCause. It should give CallEndCause.OTHER_DEVICE_ANSWERED or something like that. Denied should simply come when USER B declines the call. This is very confusing.
It works perfectly in all one-to-one cases. The issue only occurs when the person being called is busy with other Sinch call or other calls.Can anyone help me with this?

Have Anyone Solve this issue?

I also have same problem. Is there any method to get the user is on another call?


Added ∑/sum support

See https://github.com/PistonDevelopers/dyon/issues/119
This adds a ∑ loop (both ∑ and sum can be used) which initializes a number to 0 and sums up the result from the body, over an index.
Example:
fn main() {
    list := [1, 2, 3, 4]
    sum := ∑ i len(list) { list[i] }
    println(sum)
}

This is logically equal to:
fn main() {
    list := [1, 2, 3, 4]
    sum := 0
    for i len(list) {
        sum += list[i]
    }
    println(sum)
}

Just like a for loop, you can use continue and break. When using continue, it jumps right to the next index without adding the numbers.
I was thinking about adding just the ∑ loop and play with it for a while, before deciding whether to add more variants.
Motivation
Dyon has a very simple object model, so there are no iterators like in Rust. It is also an open question whether closures can be made completely safe without a statically type system. To make up for this, we could explore some other syntax.
The benefits of such loops are:

The same scope and flexibility as normal loops, including labeled breaks
Easy to type and read
Can be used within expressions
Easy to unroll if we need to make some optimizations
Less overhead

Performance
Before:
test tests::bench_add    ... bench:  43,944,256 ns/iter (+/- 6,590,214)
test tests::bench_add_n  ... bench:  15,474,915 ns/iter (+/- 2,362,089)
test tests::bench_array  ... bench:  18,878,560 ns/iter (+/- 3,925,780)
test tests::bench_call   ... bench:  17,556,834 ns/iter (+/- 3,003,651)
test tests::bench_len    ... bench:   3,079,256 ns/iter (+/- 123,155)
test tests::bench_main   ... bench:   1,891,863 ns/iter (+/- 115,946)
test tests::bench_n_body ... bench: 211,619,565 ns/iter (+/- 21,806,030)
test tests::bench_object ... bench:  27,621,531 ns/iter (+/- 5,511,914)

After:
test tests::bench_add    ... bench:  43,954,652 ns/iter (+/- 6,072,920) <--- traditional
test tests::bench_add_n  ... bench:  16,258,668 ns/iter (+/- 2,746,772) <--- short loop
test tests::bench_array  ... bench:  18,041,188 ns/iter (+/- 3,311,291)
test tests::bench_call   ... bench:  17,465,447 ns/iter (+/- 3,015,384)
test tests::bench_len    ... bench:   3,175,244 ns/iter (+/- 124,390)
test tests::bench_main   ... bench:   2,099,142 ns/iter (+/- 126,914)
test tests::bench_n_body ... bench: 209,804,627 ns/iter (+/- 11,616,750)
test tests::bench_object ... bench:  27,480,612 ns/iter (+/- 5,018,216)
test tests::bench_sum    ... bench:   6,705,870 ns/iter (+/- 395,702) <--- ∑ loop

It is 3x faster than the short For loop, and 9x faster than the traditional For loop.
(bench_add_n - bench_main)/(bench_sum - bench_main)
= (16258668-2099142)/(6705870-2099142)
= 3.073662260936613

(bench_add - bench_main)/(bench_sum - bench_main)
= (43954652-2099142)/(6705870-2099142)
= 9.08573503797055

Under the hood
The AST uses ForN to describe both the short For loop and the new ∑ loop. The meta syntax is almost identical, and might be simplified further. The only difference is that it stores it in a different Expression::Sum(Box<ForN>) variant, instead of Expression::ForN(Box<ForN>).
Other ideas
An idea I had was to support both i := 0; i < 10; i += 1 pattern and short version for all loops.
However, I there are several down sides to support the traditional syntax for such loop:

The traditional version will be very little used
It is easier to make mistakes
It requires a separate Expression variant to avoid overhead

Another idea was for optimization. If you write a ∑ loop with a constant end and this is a small number, it is very easy to replace the AST node with an unrolled loop that performs the addition straight forward. However, it needs to check that continue or break is not used within the body, and that the counter is not mutated.

I gotta say I love this concept :dancer:

No idea how this language engine works, but do you think you could go as far as inferring the range from the mere mention of the variables. e.g. "sum(i)  {foo[i]*bar[i]} " infers the range of [i] from its use indexing foo, bar. (whatever syntax makes sense).  This would take it beyond whats possible with high-order functions and macros in existing languages; and you could still let the user over-ride some specific range sum(i=0..n-1), whatever.  This maybe way beyond what you need of course, and way too much effort

@dobkeratops I opened https://github.com/PistonDevelopers/dyon/issues/181


Use in asp.net mvc

hi
This is excellent.
how can use it in asp ?
because input tag not customizable.
actually use tetxtboxfor instead input tag with custom css class.
and why for use "Date Picker Input" we must use  on page ?
thanks

I regret to tell you that I am not familiar with ASP. However, you can actually customize the input tag by passing a props object to the formatterInput prop.
You can create your own DatePicker component using Calendar regarding to ASP's requirements.


(BUG) The "Claim" button is displayed too low after opening the console

Precondition:
The "Home"  page is opened
Steps to reproduce:

Open the "Claim" page
Open the console (Dimension of the app screen was 915x882)
Reload the page
Pay attention to the  "Claim" button (repeat  1-3 steps if the bug isn't reproduced )

Actual result: The "Claim" button is displayed too low and reduced after opening the console
Expected result: The button should save its size and position  after opening the console
Checked on DEV V0.24.1-5
Desktop: Windows 10 // Google Chrome  83.0.4103.116

@AnastasiiaOdnoshevna
layout issues because of console being opened should not be considered a bug. lets consider only normal user flows


trestle task csv-to-oscal-cd cannot handle whitespace

Describe the bug
Firstly, I only tested this with the Rule_Description column.
Issue: The Rule_Description column cannot handle whitespace. Whether it is the "start of the line" or "end of the line".
To Reproduce
Steps to reproduce the behavior:

Download: example_invalid.csv
cd to ~/trestle/valid_dir_struc
trestle task -v csv-to-oscal-cd -c ~/csv-to-oscal.config
See error

Expected behavior
For the regex to handle whitespace appropriately
Screenshots / Logs.
Whitespace at SOL
$ trestle task -v csv-to-oscal-cd -c ~/csv-to-oscal.config
trestle.core.commands.task:95 DEBUG: Loading task: csv-to-oscal-cd
input: /tmp/example_invalid.csv
trestle.tasks.csv_helper:226 DEBUG: 1 ['xccdf_org.ssgproject.content_rule_package_aide_installed', ' The AIDE package must be installed if it is to be available for integrity checking.', 'https://github.com/ComplianceAsCode/content/blob/master/products/rhel8/profiles/stig.profile', 'rhel8', 'Software', 'SI-6', 'OM', 'vm', '', '', '', '', '', '', '', '']
trestle.tasks.csv_to_oscal_cd:163 DEBUG: created component: OM:Software
trestle.tasks.csv_to_oscal_cd:189 DEBUG: created control implementation: OM:Software:rhel8
trestle.tasks.csv_to_oscal_cd:301 DEBUG: created implemented requirement: OM:Software:SI-6
trestle.tasks.csv_to_oscal_cd:203 DEBUG: row_num: 0 col: Rule_Id value: xccdf_org.ssgproject.content_rule_package_aide_installed
trestle.tasks.csv_to_oscal_cd:203 DEBUG: row_num: 0 col: Rule_Description value:  The AIDE package must be installed if it is to be available for integrity checking.
trestle.tasks.csv_to_oscal_cd:93 ERROR: Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/trestle/tasks/csv_to_oscal_cd.py", line 91, in execute
    return self._execute()
  File "/usr/local/lib/python3.9/site-packages/trestle/tasks/csv_to_oscal_cd.py", line 120, in _execute
    self._process_rows()
  File "/usr/local/lib/python3.9/site-packages/trestle/tasks/csv_to_oscal_cd.py", line 361, in _process_rows
    self._add_rule_definition(row_num, row)
  File "/usr/local/lib/python3.9/site-packages/trestle/tasks/csv_to_oscal_cd.py", line 265, in _add_rule_definition
    self._create_rule_prop(row_num, control_implementation, row, column_name, ns, remarks)
  File "/usr/local/lib/python3.9/site-packages/trestle/tasks/csv_to_oscal_cd.py", line 208, in _create_rule_prop
    prop = Property(
  File "pydantic/main.py", line 342, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 1 validation error for Property
value
  string does not match regex "^\S(.*\S)?$" (type=value_error.str.regex; pattern=^\S(.*\S)?$)

trestle.core.commands.task:96 ERROR: Error while executing Trestle task: Task csv-to-oscal-cd reported a TaskOutcome.FAILURE
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/trestle/core/commands/task.py", line 116, in _run
    raise TrestleError(f'Task {args.task} reported a {actual_result}')
trestle.common.err.TrestleError: Task csv-to-oscal-cd reported a TaskOutcome.FAILURE

Whitespace at EOL
$ trestle task -v csv-to-oscal-cd -c ~/csv-to-oscal.config
trestle.core.commands.task:95 DEBUG: Loading task: csv-to-oscal-cd
input: /tmp/example_invalid.csv
trestle.tasks.csv_helper:226 DEBUG: 1 ['xccdf_org.ssgproject.content_rule_package_aide_installed', 'The AIDE package must be installed if it is to be available for integrity checking.', 'https://github.com/ComplianceAsCode/content/blob/master/products/rhel8/profiles/stig.profile', 'rhel8', 'Software', 'SI-6', 'OM', 'vm', '', '', '', '', '', '', '', '']
trestle.tasks.csv_to_oscal_cd:163 DEBUG: created component: OM:Software
trestle.tasks.csv_to_oscal_cd:189 DEBUG: created control implementation: OM:Software:rhel8
trestle.tasks.csv_to_oscal_cd:301 DEBUG: created implemented requirement: OM:Software:SI-6
trestle.tasks.csv_to_oscal_cd:203 DEBUG: row_num: 0 col: Rule_Id value: xccdf_org.ssgproject.content_rule_package_aide_installed
trestle.tasks.csv_to_oscal_cd:203 DEBUG: row_num: 0 col: Rule_Description value: The AIDE package must be installed if it is to be available for integrity checking.
trestle.tasks.csv_to_oscal_cd:203 DEBUG: row_num: 0 col: Check_Id value:
trestle.tasks.csv_to_oscal_cd:203 DEBUG: row_num: 0 col: Check_Description value:
trestle.tasks.csv_to_oscal_cd:203 DEBUG: row_num: 0 col: Fetcher value:
trestle.tasks.csv_to_oscal_cd:203 DEBUG: row_num: 0 col: Fetcher_Description value:
trestle.tasks.csv_to_oscal_cd:203 DEBUG: row_num: 0 col: Resource_Instance_Type value: vm
trestle.tasks.csv_to_oscal_cd:227 DEBUG: 0 OM:Software:xccdf_org.ssgproject.content_rule_package_aide_installed [Property(name='Rule_Id', uuid=None, ns=None, value='xccdf_org.ssgproject.content_rule_package_aide_installed', class_=None, remarks=Remarks(__root__='rule_set_0')), Property(name='Rule_Description', uuid=None, ns=None, value='The AIDE package must be installed if it is to be available for integrity checking.', class_=None, remarks=Remarks(__root__='rule_set_0')), Property(name='Resource_Instance_Type', uuid=None, ns=None, value='vm', class_=None, remarks=Remarks(__root__='rule_set_0'))]
trestle.tasks.csv_helper:226 DEBUG: 2 ['xccdf_org.ssgproject.content_rule_aide_check_audit_tools', 'The operating system file integrity tool must be configured to protect the integrity of the audit tools.  ', 'https://github.com/ComplianceAsCode/content/blob/master/products/rhel8/profiles/stig.profile', 'rhel8', 'Software', 'AU-9', 'OM', 'vm', '', '', '', '', '', '', '', '']
trestle.tasks.csv_to_oscal_cd:301 DEBUG: created implemented requirement: OM:Software:AU-9
trestle.tasks.csv_to_oscal_cd:203 DEBUG: row_num: 1 col: Rule_Id value: xccdf_org.ssgproject.content_rule_aide_check_audit_tools
trestle.tasks.csv_to_oscal_cd:203 DEBUG: row_num: 1 col: Rule_Description value: The operating system file integrity tool must be configured to protect the integrity of the audit tools.
trestle.tasks.csv_to_oscal_cd:93 ERROR: Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/trestle/tasks/csv_to_oscal_cd.py", line 91, in execute
    return self._execute()
  File "/usr/local/lib/python3.9/site-packages/trestle/tasks/csv_to_oscal_cd.py", line 120, in _execute
    self._process_rows()
  File "/usr/local/lib/python3.9/site-packages/trestle/tasks/csv_to_oscal_cd.py", line 361, in _process_rows
    self._add_rule_definition(row_num, row)
  File "/usr/local/lib/python3.9/site-packages/trestle/tasks/csv_to_oscal_cd.py", line 265, in _add_rule_definition
    self._create_rule_prop(row_num, control_implementation, row, column_name, ns, remarks)
  File "/usr/local/lib/python3.9/site-packages/trestle/tasks/csv_to_oscal_cd.py", line 208, in _create_rule_prop
    prop = Property(
  File "pydantic/main.py", line 342, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 1 validation error for Property
value
  string does not match regex "^\S(.*\S)?$" (type=value_error.str.regex; pattern=^\S(.*\S)?$)

trestle.core.commands.task:96 ERROR: Error while executing Trestle task: Task csv-to-oscal-cd reported a TaskOutcome.FAILURE
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/trestle/core/commands/task.py", line 116, in _run
    raise TrestleError(f'Task {args.task} reported a {actual_result}')
trestle.common.err.TrestleError: Task csv-to-oscal-cd reported a TaskOutcome.FAILURE

Environment

OS: Rocky8
Python version: Python 3.9.7
Installed packages: trestle was pip installed. Dependencies were all met/installed.
Severity: Low

Fixed & merged into develop branch.


[8.x] Refactor cookie tests

Vladimir Khorikov states in his book Unit Testing Principles, Practices, and Patterns:

A successful test suite provides maximum value with minimum maintenance costs.

There are lots of tests in the Laravel code base that are not well-designed and readable, holding test smells. some test methods don't provide any value but increase maintenance costs.
So I tried to Refactor the CookieTest class for the beginning and improved the structure of the test methods using the AAA pattern.
I've also removed useless tests that don't provide value (like the one that verifies private property using reflection) and enabled the test class to be used as Documentation by refactoring the following code smells:

Eager Test
Test Code Duplication
Multiple Test Conditions

Hey there - I don't think there is much sense in accepting full re-writes of test suites at this point if the tests are passing.


Fundraiser for better Editor Support in Windows (Without WSL)

Fundraiser for Better Editor Support in Windows (Without WSL)
Why
Reason is still not at it's optimal support level in Windows because of shaky editor support.
Reason's VSCode extension requires Merlin and isn't working when running Merlin in windows runtime environment. Current best workaround requires running Merlin in WSL. WSL works but is unstable (known issues WSL#2613, WSL#2746).
Current Target
Improve editor support
Run Merlin (be it 2.5.x or 3.x) in Windows runtime environment working with VSCode Reason extension with all features (code lens, code completion, errors, hints, etc) working properly without requiring WSL. The focus is in improving developer experience. Not in getting Merlin ported to Windows native. (That would be great but not required.)
Future possible goal

Improve Windows native toolchain.
It is a large undertaking. Not current goal. Current priority is editor support. When done we can upgrade target (or start a new fundraising issue) until Windows support is rock solid. For now, baby steps.

On contributing

As expected, any developer can participate. First to get it done can claim their bounty. :)
Fundraiser organization process is open and ongoing.

Which platform should we use for fundraising? Suggestions?
For now, this is the main fundraiser page. Just post a message here stating your contribution.
The collection will probably happen on a platform that handles this properly. We are listing interested people, and once platform is decided, will be notified.

I encourage everyone that can or would like to help or support this cause, to join in and support the cause.
Be it by volunteering some effort or by pledging a few coins. Anything that can help is welcomed.
Current Pledges

superherointj 50 USD
romainquellec 25 EUR
chenglou 50 USD
frankwallis 50 USD

I will add your name here if you pledge bellow.

I'm in. 50 USD

Is there a fundraiser page somewhere?

The fundraiser page is this issue.

How do you collect donations then? :-]

Do you suggest some site? The issue here is to discuss how to get there.

== Thoughts on how to implement better Windows support ==
Bucklescript works in windows native. While you might say it works w/o IDE, the IDE is where people interact with... and their experience is as good as the IDE.
I also think it might be easy (for someone experienced) to get Merlin sorted out with IDE. I have a few hunches on what might be happening. Like VSCode requiring double slash in path from Merlin file (which has single).
Merlin.2.5.4 working fine. And Merlin.3.0.5 being actually broken.
I think if fixed extension Merlin 2.5.4 would work with it.
I believe Merlin.2.5.4 is working just fine but extension doesn't handle path from merlin file properly because it would have to double the slash on path. Which is supposed to be easy to do.
This is my current hunch.
Not saying it is actually it. But looks like it.
The problem I believe might be on extension/ocaml-language-server side.

Actually the how much shouldn't be required. Only that you want to contribute.

Hey ! I'm on windows and sad about doing all this work here : https://github.com/reasonml/reasonml.github.io/issues/195
I'm in for 25E.

Great idea!
It might be worth breaking the target into a few bite size subtargets given that getting Merlin + OCaml toolchain going on Windows natively has been a long running work in progress on the OCaml side.  This is promising (https://fdopen.github.io/opam-repository-mingw/installation/) yet still requires Cygwin, so not sure if that is really any better than WSL.  I have found the WSL integration gives me the majority of functionality in VSCode (Codelens + Completion + Refmt) with GoToDefinition being the only weak point due to path mismatches.
Here are a few related issues on the opam/OCaml front that might need to progress to really Reason working well on Windows:
https://github.com/ocaml/opam/issues/2191
https://github.com/ocaml/ocamlbuild/issues/64

@jubos The mingw installation may be superior to WSL because it is possible for it to be silently installed and sandboxed without the user knowing. WSL is a great tool in my opinion, but it does require some intervention on behalf of the end user (to make sure they have the right OS etc).
If anyone is opposed to mingw purely on the grounds that it's an extra tool, you might ask how VSCode manages to get real git integration on windows. They use similar Unix abstraction layers (msys2 IIRC) - but you'd never know it because it's all hidden from the user, which is what really matters.

mingw seems to be a good solution. I looked at the issues, but it's a bit complicated to me.
Any timeline / deadline on it ? Do it solve everything for windows users using reasonml ?

@romainquellec This current issue is tracking improved support for a more specific use case of ReasonML: developing with Reason+BuckleScript on Windows. General windows support beyond the BuckleScript use case for ReasonML is another issue and will require more work/planning though we're thinking about it as well.

I believe @superherointj is aiming for merlin on Windows native. This isn't BS-only. I'm in for 50 bucks

Actually I think we should take baby steps, would be really nice to have Windows native supported in full, but that would require way more resources, the low hanging fruit is to get Buckelscript/JS workflow to not require WSL right now. And then, that happening, we change target.

The title says "Fundraising for Better Tooling in Windows for Bucklescript/Javascript workflow". @superherointj Would you mind clarifying what you are raising funds for, if this is not correct? Would funds be delivered for only covering the BuckleScript use case, or would it also require that support for ocamlfind and native packages on windows also work to some extent? Merlin supports ocamlfind resolutions as well, and if we're talking general purpose Reason development on windows, we'd need to also solve ocamlfind, ocamlfind packages etc. I just want to avoid incorrectly setting expectations with the messaging of "We solved Reason for Windows" but when people try to consume opam libraries, nothing actually works.

The initial goal is to fix tooling.
VSCode ReasonML extension requires Merlin from WSL in Windows. The initial goal is Merlin to be running in Windows native environment, that won't require WSL. Once this improve. It will improve native experience too. But how much native support will advance is another issue.

I'm still a student, so I'm not in for any money, however I'd love to help out with the actual porting :)

Would be really happy to see this happen, count me in for 50 USD please

I'm in for $50 USD.

count me in as well 50€

I don't know what's involved, but I'd love to help out in any way I can. Only done a small bit of OS in the past but would love to get involved in the Reason ecosystem. New to Reason, too, but very happy to learn and help.

In for $50.
Loving ReasonML, but setting it up on windows is laborious.

I'm a bit late to the party here but excited to see the enthusiasm here! You can put me down for $50 too. 👍  My primary development machine is Windows, so this is my major hurdle at the moment. Coming from my "Redmond bubble" I know there are lots of other developers in the same boat here - so IMO this is critical to achieving mainstream adoption.
The future goal of having the binaries work natively on Windows definitely seems like the right long-term approach. Sounds like it will need significant investment, though!
For the nearer tearm goal of editor support - I like the idea of the cygwin and mingw stack that @jordwalke . I haven't used either tool recently, but if they do allow running merlin on Windows and getting editor support, the nice thing is that the 'setup' experience on Windows could be streamlined.
For example, there could be a reason-cli@windows NPM package that has a Powershell script run as a postinstall step, that would bring in a local cygwin (and then use it to bring in mingw) - all happening transparently on the reason-cli install. It could even be really nice and try and update your VSCode configuration for you, if it seems you have one...
It would be great to have the initial reason-cli steps be in parity across all platforms (with Windows doing some extra lifting to bring in dependencies): npm install reason-cli@{version}-{platform}. Eventually, once the longer-term goal of full Windows support is realized, perhaps cygwin / mingw wouldn't be needed in a future iteration...
IMO, one concrete way to start pressing forward on this would be to create a reason-windows-setup GitHub repo that can help test the reason setup on Windows, using AppVeyor builds.

[ ] Install bs-platform
[ ] Install ocaml-language-server
[ ] Write test cases that validate aspects of the LSP against a simple bsb init project (go to definition, completions, etc). It's expected that these would fail at this point, because we haven't done any work yet to enable it. Having test cases that concretely specify the goals would be a big step forward in making this actionable!
[ ] Write a powershell setup script that brings in cygwin and installs mingw + the required dependencies.
[ ] Update the initialization arguments to ocaml-language-server to account for the new paths - hopefully we can start to see some of our tests turn 'green' at this point.

At this point, we'd have a blessed manual path with cygwin/mingw, and we know we can install the dependencies through Powershell. The next step would be to integrate this powershell script as a postinstall script for an appropriate NPM package. Then, we'd have infra to validate build-over-build that the tooling works (or test on various Windows platforms + x86/x64).
Not sure if that's helpful or not; just some ideas! Can't wait to use Reason on Windows 👍

@bryphe I think that this particular Github issue is for a short term solution that only needs to work with bsb, doesn't need to work with native/opam packages, and more revolves around editing with merlin than building executables.
I can't recall if a mingw build of merlin itself is possible in its current form. I think there was some major compatibility breakage in the recent versions and someone is trying to fix that deeper in merlin. (Anyone recall?)
Separately, I'm also giving considerable support to more comprehensive windows support for a broader set of requirements (building of native packages, multiple versions of the compiler, maybe cross compilation). Many of the requirements revolve around the ability to build/run/link windows executables, as opposed to just developing on Windows. It's a bit beyond the scope of the proposal discussed in this Issue and it's operating on a different timeline, but anyone let me know (on Discord) if you are interested in another bigger challenge that will also help us move forward for proper long term Window support. While that is underway, count me in for fifty bucks for the proposal being discussed in this Issue!

Oooh I'd forgotten this issue was around 😃 do I win the prize? I've got a language-server that works on windows https://github.com/jaredly/reason-language-server/releases/tag/1.0.0-beta.2
(there are a variety of unfinished things about it, but it's reasonably usable at this point)

To answer @bryphe, I think merlin should be compile-able on windows as it was before 3.0 and could work if we went and checked all paths to make sure they use appropriate separators. I'd be willing to bundle merlin with bsb-native, so that apart from the editor and editor plugin, the user only needs bsb-native.

With the latest Windows work done on esy -<EMAIL_ADDRESS>is buildable on Windows via esy. (The limitation at the moment is that the esy lockfile needs to be generated outside of Windows, but I have a minimal merlin project w/ the lockfile here: https://github.com/bryphe/esy-minimal-merlin-project)

@jaredly great work on you reason language server. I know it's early days but how does the feature set compare vs the merlin one and would it take a huge amount of work to close the gap?  (ie which option makes sense to get behind for the mid - long term?)