[BUG] Can't open the program

Hi, I'm having an issue when I'm trying to open the program. Is there a way to solve it?

Traceback (most recent call last):
File "requests\compat.py", line 11, in
ModuleNotFoundError: No module named 'chardet'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "main.py", line 1, in
File "PyInstaller\loader\pyimod02_importers.py", line 352, in exec_module
File "app.py", line 21, in
File "PyInstaller\loader\pyimod02_importers.py", line 352, in exec_module
File "update_checker.py", line 9, in
File "PyInstaller\loader\pyimod02_importers.py", line 352, in exec_module
File "requests_init_.py", line 45, in
File "PyInstaller\loader\pyimod02_importers.py", line 352, in exec_module
File "requests\exceptions.py", line 9, in
File "PyInstaller\loader\pyimod02_importers.py", line 352, in exec_module
File "requests\compat.py", line 13, in
File "PyInstaller\loader\pyimod02_importers.py", line 352, in exec_module
File "charset_normalizer_init_.py", line 24, in
File "PyInstaller\loader\pyimod02_importers.py", line 352, in exec_module
File "charset_normalizer\api.py", line 5, in
File "PyInstaller\loader\pyimod02_importers.py", line 352, in exec_module
File "charset_normalizer\cd.py", line 9, in
ModuleNotFoundError: No module named 'charset_normalizer.md__mypyc'

My bad, I forgot to put the chardet in the requirement.txt. Simply pip install chardet will fix it. But the executables I made shouldn't have this problem, so please use the executable in preference.

I already did install the charset-normalizer yet I still get the same error. Tried to uninstall, clear the cache and install again the charset-normalizer nothing works.

Which version of the app are you currently using? windows? mac? Or running on your onw python?

I have the latest version of python 3.11..3 and Chardet 5.1.0 running on Windows 11 22H2

SD-Prompt-Reader-<IP_ADDRESS>-#13build1.zip
I'm still not sure what the problem is. Try this one. If it works, use it instead.

NOt working, I'm still having the same error.

Do you use any antivirus other than Windows Defender?

yes ESET!

See last comment:
https://stackoverflow.com/questions/74182807/no-module-named-charset-normalizer-md-mypyc

Yes, it actually blocked by the antivirus. I whitelisted it and it already works fine.

Then as I mentioned in the FAQ, you can either trust Windows Defender and keep it in the whitelist or use the instruction for Linux users to use this app.


Add reading of secrets.config file

solves #87

how do i do the while true loop? @gran4

possibly, the simplest way is to add a ResourceManagerLocal that is only local
and rename the current one to ResourceManagerAWS

so have ResourceManager be a interface to create ResourceManagerLocal and ResourceManagerAWS

nvm... i got confused... ResourceManager is basically alpaca rest API.

possibly, the simplest way is to add a ResourceManagerLocal that is only local
and rename the current one to ResourceManagerAWS
ie, ResourceManager interface, to create ResourceManagerAWS and ResourceManagerLocal

Not needed. I made it so that this PR makes it so that you put the resource manager as a parameter. It is just better in like every way..


Add: Viasat History (Finland)

Channel Name
Viasat History (Finland)
Alternative Names (optional)
Viasat History HD (Finland)
Network (optional)
No response
Owners (optional)
No response
Country
FI
Subdivision (optional)
No response
City (optional)
No response
Broadcast Area
c/FI
Languages
eng
Categories (optional)
No response
NSFW
FALSE
Launched (optional)
No response
Closed (optional)
No response
Replaced By (optional)
No response
Website (optional)
https://viasathistory.eu/
Logo
https://img.prod.telkku.com/channel-logos/historylogo.png
Notes
No response

Please update your request:

no need to specify the country in the channel name
no need to specify the country in the channel alternative name

https://github.com/iptv-org/database/blob/master/CONTRIBUTING.md#channels

Thank you, @freearhey. Updated the issue according to the requested changes.


Playwright tweaks

Pull Request Template
Description
Some small tweaks on Playwright integration
Type of change
Please delete options that are not relevant.

[x] 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)
[ ] This change requires a documentation update

How Has This Been Tested?
Using current unit tests
Checklist:

[x] My code follows the style guidelines of this project. npm run lint passes with no errors.
[x] I have made corresponding changes to the documentation

LGTM 👍


Adding ability to save preset visualizations

@zackgalbreath please try again, should be fixed.

LGTM, feel free to merge.


Pasting a chunk of code will mess up auto indent

With following typescript:

After copy & paste twice:

This happens with the latest update now that "editor.autoIndent": true is enabled by default. I primarily develop PHP, which probably doesn't have proper indenting rules in VS Code. However, if the indenting rules don't exist, it should not cause this to happen. Never had this problem until I just updated a few days ago, and also did not have auto-indent turned on. This can be temporarily resolved by adding "editor.autoIndent": false to your settings.

It appears to still do it even if "editor.autoIndent": false is set

No longer see this issue as described in the description.


Prev. Comments & Formatting

Added comment lookup
Fixed the indentation and formatting issue caused by the mapping

Hey @newnewb thank you so much for this 👌
I took a quick review and it looks good. I've and commented on some parts, though.
Also, please add some tests that cover your changes. Don't hesitate to ask for help here if you feel stuck.
Thanks again for contributing 🌟

@newnewb Nice work ✨
I would merge this PR when we update the docs to reflect the little changes we made (e.g. the need for APP_NAME env)
Also, we need to add new tests for regression purpose


Baseline Config Issue - HTTP Scan

Using default settings for the nmap_http_vuln command, the following error happens on every host scanned:
PORT   STATE SERVICE VERSION
80/tcp open  http?
|_http-vuln-cve2014-3704: ERROR: Script execution failed (use -d to debug)

I think this could be fixed, and allow that Drupalgeddon scan to work, by adding the following to that command (lifted from the NSE script):
--script-args http-vuln-cve2014-3704.cmd="uname -a",http-vuln-cve2014-3704.uri="/drupal"

Thanks for looking into this one. Should i just remove this from the default config?  or maybe update it with your syntax and remove it.  I mean qualys/openvas/nessus will all find Drupalgeddon, and I think anything else in an http-vuln NSE.
I'm thinking that for a CTF/HTB/OSCP it might be useful, but for a VAPT, probably not.
Thoughts?

You're probably right about it being covered by the other scanners. I personally kind of like having it in there though. Double coverage never hurts, and I don't think this scan takes too long

This is in the default config now in the dev branch. The nmap_http_vuln command is commented out by default now though, so if you need it, just enable it.  Thanks for the command improvement!  Keep them coming please!

Thanks! I’ll git pull from dev before I launch my scans tonight.
I’ll circle back and close this once I’ve checked it out, or just feel free to close it and I’ll comment if there’s a problem.


jquery-datetime-editor.js removal from Orchard.JQuery causes nwazet.commerce reports to crash

Hi,
jquery-datetime-editor.js was removed from Orchard.Jquery 11 month ago:
Author:		Sipke Schoorstra sipke<EMAIL_ADDRESS>Date:		11 months ago (25.07.2014 06:18:08)
Commit hash:	4ba6bcdbc0d9ef7fa65e30d6d0cc52b9d5712bb9
Parent(s):	be37ee54dc
This leads nwazet.commerce reports to crash.
Could this js file please get re-added?
Thanks!

It was removed in favor of the jquery.timeentry.js and jquery.calendars.all.js scripts, used by the DateTimeEditor.cshtml view. Perhaps best to update the module to take advantage of these scripts and shapes instead? If not, can you include the script you need yourself?

Thanks for your quick response.
Betrand has already updated the nwazet.commerce module - I just was not on his latest sources. After pulling his changes everything works fine again.

Good to hear!


Publish documentation for Azconfig

Understand how we are going to publish documentation on docs.microsoft.com: https://docs.microsoft.com/en-us/azure/azure-app-configuration/overview
See how we can link this to the API documentation reference

Is this a release blocker? @conniey @mssfang

@srnagar  I think for GA, we'd want be able to lead developers to the correct documentation rather than REST APIs, but I think this is an issue across all our Java client libraries. We don't publish to docs.microsoft.com, which is the landing spot for most customers.
I think someone should be working on this overall effort, and have it released shortly if not immediately at GA.


Simplify build + retarget tests to netcoreapp2.1

Now that we run the tests on netcoreapp2.1, I don't think we need https://github.com/aspnet/Razor/blob/dev/src/Microsoft.AspNetCore.Razor.Design/build/netstandard2.0/Microsoft.AspNetCore.Razor.Design.CodeGeneration.targets#L127 anymore.

Sure. We won't we be able to ever remove the property from the task but we could stop passing a value for it in the Sdk.

🆙 📅


fix: prevent fw updates when update in progress

Fixes #2983

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 18 (0.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.02%) to 23.813%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

lib/ZwaveClient.ts
0
18
0.0%

Totals

Change from base Build<PHONE_NUMBER>:
-0.02%

Covered Lines:
3818

Relevant Lines:
16935

💛  - Coveralls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Warning: This coverage report may be inaccurate.
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

For more information on this, see Tracking coverage changes with pull request builds.
To avoid this issue with future PRs, see these Recommended CI Configurations.
For a quick fix, rebase this PR at GitHub. Your next report should be accurate.

Details

0 of 18 (0.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.03%) to 23.813%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

lib/ZwaveClient.ts
0
18
0.0%

Totals

Change from base Build<PHONE_NUMBER>:
-0.03%

Covered Lines:
3818

Relevant Lines:
16935

💛  - Coveralls


UWP .Net Native compiler crashing

I posted the bug below to<EMAIL_ADDRESS>on April 3rd as it was requested. It has never been addressed and the problem is still there.
The ilcRepro.zip file:
https://www.dropbox.com/s/3z3ifh3wys01xkl/ilcRepro.zip?dl=0
The sample app:
https://www.dropbox.com/s/xsk35tyqgdual9n/NetNativeCrash.zip?dl=0
DISCRIPTION:
I am unable to compile a newly created blank UWP application in Release configuration when the following two lines added to the project:
public struct TestStruct { }
public delegate ref TestStruct TestDelegate();
The below is from the Output window:
1>------ Build started: Project: NetNativeCrash, Configuration: Release x64 ------
1> NetNativeCrash -> C:\Projects\NetNativeCrash\bin\x64\Release\NetNativeCrash.exe
1> Processing application code
1> Computing application closure and generating interop code
1> Loading 44 modules…
1> Generating code…
1> Interop code generated.
1> Compiling interop code
1> Generating System.Reflection.DispatchProxy proxy code.
1> Cleaning up unreferenced code
1> Generating native code
1>C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.2.7-rel-27913-00\tools\Microsoft.NetNative.targets(801,5): error : ILT0005: ‘C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\runtime.win10-x64.microsoft.net.native.compiler\2.2.7-rel-27913-00\tools\x64\ilc\Tools\nutc_driver.exe @“C:\Projects\NetNativeCrash\obj\x64\Release\ilc\intermediate\MDIL\NetNativeCrash.rsp”’ returned exit code 2
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

UWP issues are tracked as Azure DevOps issue. If you are running into .NET native issues, please see https://docs.microsoft.com/en-us/visualstudio/ide/feedback-options.


Remove jQuery AJAX from the notice selection deletion button

Removed all jQuery AJAX calls and replaced with our fetch wrapper
Tested the repo notice selection deletion button functionality and it works as before

Demo using fetch instead of jQuery AJAX

Interesting that we expect something so unnatural in the backend…

That's natural for many backends, eg: PHP: https://stackoverflow.com/questions/1763508/passing-arrays-as-url-parameter


go 1.21 upgrade

upgrade to go 1.21 https://go.dev/doc/go1.21

please assign me

Please feel free to submit PR directly


'proxyreqs' does not work unless 'proxyuser' also provided

Ideally we should be able to see the requst logs only after:
"watch proxyreqs"

Argh, sorry! Thanks for the fix

released in 1.6.16


cloud-init support

We have an increasing number of customers deploying balenaOS virtual appliances on VMWare, Nutanix, or Azure and we currently provide them a pre-configured OVA. When delivering a few, it isn't too bad to edit the config.json file in the boot partition and export a new OVA, but for larger deployments it would be great for balenaOS to support cloud-init to at least obtain network config (IP/mask, gateway, DNS, hostname, NTP, etc) and the remainder of config.json settings via vendordata for things like balena hostnames, provisioning keys, redsocks config, CA roots, etc.

@shaunco we use this. It preloads a stub image that pulls cloud-init config from provider metadata.


feat: truthy statements and integers should have an override

When using other systems like Kubernetes, there should be an override when using -S doubleQuoted to override that setting for integers and truthy statements:
error validating "STDIN": error validating data: ValidationError(Certificate.spec.isCA): invalid type for io.cert-manager.v1.Certificate.spec.isCA: got "string", expected "boolean"; if you choose to ignore these errors, turn validation off with --validate=false
Error from server (Invalid): error when creating "STDIN": Namespace "saas-watch" is invalid: metadata.labels: Invalid value: "us‑gov‑west‑1": a valid label must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue',  or 'my_value',  or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?')
Error from server (NotFound): error when creating "STDIN": namespaces "saas-watch" not found
make: *** [deploy-backend] Error 1

@scottd018 Have you tried this out? https://docs.yaml-overlay-tool.io/sections/formatMarkers.html#forcing-types-with-yaml-tags

Thanks for the further details.  Have you tried running without the extra formatting option -S?

Yep.  I've tried it with all available options.  It's almost like truthy values are ignored when attempting to type convert

Interesting, what's the original manifest look like?

@JefeDavis any thoughts on this one?


Hello world

Hello Cup,
Hello world.

Why this issue is open ?
@mythmgn if not require can you please close this.


feat(audit): allow adding of AuditItem to Audit

New Audit::add_item to allow adding of AuditItem directly.
I have a case in my module where Audit::add_items does not work because I need to read multiple DB keys to find my millisat i64. Thanks!

@bradleystachurski @elsirion I realize now that I don't have a use case. I missed that DatabaseTransaction::find_by_prefix mutably borrows self so I cannot actually access other db entries during the stream. Sorry for the unneeded pull request.

There is a way to accomplish what I need which for some reason I didn't think of before. I just have to put all of the value I am going to need in a map before calling Audit::add_items:
let market_open_contracts_map: HashMap<OutPoint, ContractAmount> = dbtx
            .find_by_prefix(&db::MarketDynamicPrefixAll)
            .await
            .map(|(db::MarketDynamicKey(outpoint), market_dynamic)| {
                (outpoint, market_dynamic.open_contracts)
            })
            .collect()
            .await;
        audit
            .add_items(
                dbtx,
                module_instance_id,
                &db::MarketStaticPrefixAll,
                |db::MarketStaticKey(outpoint), market_static| {
                    let market_open_contracts = market_open_contracts_map.get(&outpoint).unwrap();
                    let milli_sat =
                        -((market_static.contract_price * market_open_contracts.0).msats as i64);

                    milli_sat
                },
            )
            .await;


How to prevent the app close when swipe/scroll down?

I'm experiencing an issue where the app closes whenever a user scrolls down, even on scrollable content. I'm not sure if this is a bug with Telegram or Flutter. Despite testing all available solutions online, I haven't been able to resolve the problem on both Android and iOS devices. Do you have any suggestions on how to fix this? If this package could fix this issue in the next version, it would make many users very happy.

@farshid-shokrolahi please check this web app. I did some fix for the example app which worked for my android device. If this doesn't work for you, then I will try to find another solution

@khamidjon-khamidov Thank you bro, the example app in lib worked.


Remove 'return None' from call()

This is unecessary and causes pylint warnings.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (0723d8a) 72.85% compared to head (2c89577) 72.85%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #53   +/-   ##
=======================================
  Coverage   72.85%   72.85%
=======================================
  Files          20       20
  Lines         851      851
=======================================
  Hits          620      620
  Misses        231      231

Flag
Coverage Δ

unittests
72.85% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


[Issue] Network suddenly broken

Issue description:
Storage Disks and External Storages are all broken. "Share" Items and seem to unaccessable.
What happens:
Access over a Grid and try to move items causes first a "server crash" in my case a dc from my client world ("Lost Connection") after reloading some resources doesn't show up, the complete Network seem only to work partly (External Storages doesn't show up in Grid).
After reconnecting: The Item I tried to pull out lies on the ground and by to accessing the grid again, the game freezes. In addition again some of the resources doesn't show up. (After breaking the Controller and replacing it doesn't seem to solve it. Items only refresh if you access the grid.)
Long story short: no matter what I do (changing Disks, deleting stuff, exporting items, replacing Controller) in my world is RS broken and I can't access my items. Not even on other networks and renewed ones)
What you expected to happen:
Access to my Disks without crash.
Steps to reproduce:
I have no idea. This issue first appears after I rewired some cabled (while lagging) and a Game freeze after autocrafting something (Storage Drawer)
Version (Make sure you are on the latest version before reporting):

Minecraft: 1.10.2
Forge: v<IP_ADDRESS>5
Refined Storage: refinedstorage-1.2.18 or 1.2.17
Refined Storage addtions: RebornStorage-1.10.2-<IP_ADDRESS> or <IP_ADDRESS>, WirelessCraftingGrid-1.10.2-1.0.0, Growable Cells-0.3.2, ocrsdriver-1.0.0 (Open Computers Refined Storage Driver)

Does this issue occur on a server? [yes/no]
no idea
If a (crash)log is relevant for this issue, link it here:
No crashlog. Just unusual exceptions in console while loading up first time:
Clip from Console: http://pastebin.com/Jx2rD6SD
Forge log: http://paste.ee/p/xEJ8M

I figured out, that the disks you obtain from Growable Cells-0.2.1 seem to cause massive Storage issues and maybe the cause of it. I updated later on and this didn't fixed the issue in my old world. I recreated the world before the state of corruption and tried it with Growable Cells-0.3.2.
I'm not sure it seem to work with this version but I can't say for sure. Further testing is required.

Can't do anything without any logs. Also your description of what happens is very vague and all-over-the-place.


Fix LMD balancing attack

This PR implements a fix for the LMD balancing attacks, as described here.
Proposer Score Boost
A new "proposer score boost" has been introduced, which boosts the LMD score of blocks that are received in a timely manner. The boost increases the score of the block by committee_weight // 4 for that slot. If a block for slot X is received in the first SECONDS_PER_SLOT // ATTESTATION_OFFSET_QUOTIENT (= 4) seconds of the slot, then the block receives the boost for the duration of slot X. After slot X is over, the boost is removed and the usual LMD score calculations from only attestations are done.
The boost is not applied to blocks that are not received in the first SECONDS_PER_SLOT // ATTESTATION_OFFSET_QUOTIENT seconds of their slots, and this PR does not affect LMD score calculations for such blocks.

In the above example:

block B is received in a timely manner and qualifies for the boost. B's score is boosted for only slot X.
block C is not received in a timely manner and does not qualify for the boost.

Summary of Changes

Parameters:

Added new parameter ATTESTATION_OFFSET_QUOTIENT, which is used to specify the time at which attestations are produced within a slot

Store:

Added new field store.proposer_score_boost, which is a special LatestMessage that stores the boost

Fork Choice:

Updated get_latest_attesting_balance to take into account store.proposer_score_boost
Updated on_block & on_tick to appropriately set/reset store.proposer_score_boost

Testing:

Added test for store.proposer_score_boost accounting
Updated existing tests to work correctly after introducing proposer score boosting

Note: First merge PR #2292 into dev, then merge this into dev

Following the general approach of balancing, a recent attack dispenses with adversarial network delay and can be found in Appendix I of this manuscript.

This fix makes the synchrony assumption of latency < SECONDS_PER_SLOT // ATTESTATION_OFFSET_QUOTIENT (= 4) seconds, and hence prevents the new variant of the attack under synchronous network conditions.
In general, this fix prevents attacks that rely on balancing different forks by utilizing the LMD fork choice score. This is because a few consecutive honest proposers are able to force a single winner from such balanced forks.

If I am not mistaken, then the analysis here misses two aspects:

The adversary only needs to release sway votes for honestly led slots, not for adversarially led slots.
Adversarial votes can affect a 2x change in score, due to LMD.

If this is so, then an adversary controlling 1/9 = ~0.11 fraction of stake can attack the protocol with the fix for Wp = 1/4*W.

I think the boost also incentivises proposers to orphan late blocks which they've seen, which could be beneficial as late blocks continue to cause issues on mainnet.
In the case where the proposer for slot X publishes their block late, the proposer at slot X + 1 might want to orphan it, even if they've received it and their fork choice selects it as the head. If block X has <W/4 votes then the proposer for slot X + 1 can propose a (timely) block of their own with the same parent as block X, which will then outrank block X thanks to the W/4 boost. If they do this they stand to gain extra rewards from the inclusion of attestations from slot X.
I'd argue that this ability to aggressively orphan late blocks is actually a good thing because it sends a clear signal to the previous proposer that their block was low quality. At the moment we often see late blocks without many votes making it into the canonical chain because they are seen by the next proposer before the start of the next slot. In the pathological case consider a block published 8 seconds into the slot which receives no attestations but still arrives at all nodes before the next slot.
Late blocks hamper consensus and penalise attesters as they invalidate head (and sometimes target) votes for slot X, due to honest attesters voting for X's parent. If we orphan them then at least we improve agreement on target (if X % 32 == 0), and reward the correct-target attesters. Post-Altair there's no way to salvage the head vote rewards for the slot X attesters, as they either voted for a skipped slot and failed the timeliness condition (if block X is orphaned), or voted for the wrong head (if block X is not orphaned).
My hope is that if clients adopt the orphaning logic then it will pressure late block publishers into getting their act together. I suspect that at the moment their metrics don't detect the late blocks they're publishing because late blocks are still rewarded when they make it into the chain. The philosophical question is whether or not it's worth explicitly going against what fork choice says the head should be in order to implement the aggressive orphaning, or whether fork choice should be extended with a notion of a "proposer head" that allows us to count this behaviour as honest.

Closed in favor of #2730. This PR was based on # #2292 and had major conflicts with dev.
#2730 now does not have the (block, epoch)-fork choice from #2292.


adds support for the "Magic Wand"

This patch adds support for mindsensors.com's "Magic Wand"
See http://www.mindsensors.com/index.php?module=pagemaster&PAGE_user_op=view_page&PAGE_id=120 for more info.

Amazing!! Do you have a video?


Support for union types

First thank you for making this, great tool to get GoLang clients up to speed fast.
I noticed that union types are ignored when generating:
union AorB = A | B

In the output AorB does not exist, and other types which use it comes up as undefined like this:
type Results struct {
	Hits  *[]undefined `json:"hits,omitempty"`
	Total Int          `json:"total"`
}

I'd also love this, if it's possible. I'm completely unfamiliar with Go-lang so I'm not sure if it even supports union types.
For my use case, omitting union types in generated .go file would solve my immediate problem so I created this branch.
@ctison if I open a PR for it, would you accept it?

Yes, please do.


vscode wont remove old file when update extension

VSCode Version: 1.34.0 (user setup)
OS Version: win 10

ref: #62347

And my .obsolete file:
{
    "grapecity.gc-excelviewer-2.1.31":true,
    "ms-python.python-2019.3.6352":true,
    "ms-vsliveshare.vsliveshare-1.0.67":true,
    "eamodio.gitlens-9.7.3":true
}

.obsolete has not changed even restart vscode.

@Cologler Are you sure these are not removed after restarting VS Code

Yes, I am sure.

@Cologler Can you please do following

Quit VS Code
Start VS Code in verbose mode from command prompt code --verbose
Open the Shared process logs F1 > View: Open View > Log (Shared Process)

Please check in the logs if there are any requests to delete outdated or uninstalled extensions folders?


CICD for infrastructure deployment

Hey,
first: thanks for sharing this tutorial - I really enjoyed it along with the blog post. I have a question about the CI/CD process. Currently, you have a pipeline setup for releasing the app to ECS/EC2. How would you go about releasing the CloudFormation templates with CI/CD? What are the best practices? Or do you recommend to keep it separate from the application CI process or even release infrastructure just by hand with some script?
My ideas for some approaches:

Execute the CloudFormation template after building the code for each stage with CodePipeline
Have a separate infrastructure pipeline

Thanks in advance!

Hi Thomas,
Yes, you're right, the CI/CD setup currently sets up a pipeline that uses codedeploy/etc. to push changes to ECS/EC2. Of course, there is cloudformation involved, but that is used to set up the pipeline, and isn't part of the pipeline.
CodePipeline does support cloudformation as a deployment provider (see https://docs.aws.amazon.com/codepipeline/latest/userguide/integrations-action-type.html#integrations-deploy), so you could have a cloudformation template as part of your source and execute it during that codepipeline stage. You would probably need to know the details of what infrastructure that cloudformation script created (e.g. know the RDS deployment endpoint that it created), but you could use cloudformation outputs in conjunction with the AWS API to retrieve those values (or use something like AWS CloudMap).
That being said, I've often seen the pipelines separated. Part of the reason is organizational: the group creating and maintaining the infrastructure may be different from the group deploying the code.
I hope that gives you some ideas!
David


have nestedScrollEnabled like scrollview

sometimes, webView will be in a scroll view. but now webView can not scroll when in a scroll view.
android WebView has do it  just add one line in class file
mWebview.setNestedScrollingEnabled(true);

in ios ,webView always can scroll when in a scroll view.
Can react-native-webview suppot it?

Hi, do you have a solution?

not have. i want  react-native-webview suppot it.

the same suggestion, or the other solution?

I find the lastest release resloved this question. Waiting for release.

i test the  lastest release, not reslove the question.

Hi, does this one have solution yet?

Hi, open this, it need a solution.


Fix RequirementTypes str and attribute on Requirements

Currently the functionality of getting Requirements by RequirementsTypes easily is not so easy:
rationale_type = model.search(reqif.XT_REQ_TYPE).by_long_name("ReqType")[0]
req = fnc.requirements.by_type(rationale_type)[0]
req.type.long_name == "ReqType"

The functionality that is more intuitive and also was the way how it behaved earlier:
>>> rationale_reqs = fnc.requirements.by_type("ReqType")
>>> for req in rationale_reqs:
>>>     print(req.type)
ReqType
ReqType
ReqType
...

I close this issue. Bespoken intuitive behavior is implemented and it is tested with https://github.com/DSD-DBS/py-capellambse/blob/5104f168c9ea4138453f0cfc58d468b768334367/tests/test_reqif.py#L693-L714


NOR-Flash: frequent bad blocks, corrupted directory pairs after file write and directory operations

Hi,
I'm using littlefs together with a custom driver for the MX25L3233F 4MB NOR Flash on STM32L4R7.
(4kB sector, 1 Byte wrap-around read/write, running at 120Mhz)

Creating many files on the "/" root directory, results in corrupted file system. (current max: 662-674 files)
Writing about ~300 files, on a freshly erased and littlefs formatted, mounted fs, results in bad blocks.
Using directory operations, mkdir/rmdir, write to file in sub-directory, results in corruption or bad blocks.
Unittests of my flash driver, point to perfectly working flash chip, with full flash writes and erase cycles working correctly

One thing I found out so far, is that mount & umount and format operations should not be done frequently.
There seems to be no self-check if a fs is already mounted. Double-mount operations immediately lead to corrupted fs.
The occurence of bad blocks and corrupted dir, are directly influenced by the settings in the cfg struct below.
So far, I don't see how my configuration is false?
Littlefs configuration: (v2.9.3)
static lfs_t          lfs;
static lfs_file_t     file;
static lfs_config     cfg;
static uint8_t        lfs_readBuf[1024];
static uint8_t        lfs_progBuf[1024];
static uint8_t        lfs_lookaheadBuf[128];

int FS_Init(void)
{
    cfg.context = NULL;

    // block device operations
    cfg.read = _readBlock;
    cfg.prog = _programBlock;
    cfg.erase = _eraseBlock;
    cfg.sync = _syncFS; // does nothing. Data is directly written to chip

    // block device configuration
    cfg.read_size = 1;     // no limit actually 1 - max-capacity
    cfg.prog_size = 1;     // no limit actually 1-256 per command
    cfg.block_size = 4096;
    cfg.block_count = 1024;
    cfg.block_cycles = 500;
    cfg.lookahead_size = 128;
    cfg.cache_size = 1024;
    cfg.compact_thresh = 0;

    cfg.read_buffer = lfs_readBuf;
    cfg.prog_buffer = lfs_progBuf;
    cfg.lookahead_buffer = lfs_lookaheadBuf;

    // defaults
    cfg.name_max = 0;
    cfg.file_max = 0;
    cfg.attr_max = 0;
    cfg.metadata_max = 0;
    cfg.inline_max = 0;

    int result = FS_mount();

    return result;
}

Debug output of file-write test: (700 files, with 256 byte of data each)
Test:
(...)
	// write files until no longer possibe and print out number
	for (uint32_t i = 0; i<fileLimit; i++){
		// create new filename
		snprintf(filenameBuffer, 32, "writeTestFile_%d", numberOfFiles);
		result = FS_write(filenameBuffer, pageBuffer, 256, false);
		if( result == LFS_ERR_OK ){
			numberOfFiles++;
		}else {
			break;
		}
	}
(...)

Wrapped Write Function:
----
int FS_write(const char* filepath, const char* buffer, uint32_t size, bool append)
{
    int          result = LFS_ERR_IO;
    int          lfsOpenFlags = LFS_O_RDWR | LFS_O_CREAT | LFS_O_APPEND; // make sure to have
                                                                           // write permission

    // check if file
    lfs_info     info;
    result = lfs_stat(&lfs, filepath, &info);

    if ( info.type == LFS_TYPE_DIR )
    {
        return LFS_ERR_ISDIR;
    }

    // open file
    result = lfs_file_open(&lfs, &file, filepath, lfsOpenFlags);

    if ( result != LFS_ERR_OK )
    {
        return result;
    }

    // write
    if ( !append )
    {
        lfs_file_rewind(&lfs, &file);
    }
    lfs_ssize_t  written = lfs_file_write(&lfs, &file, buffer, size);
    result = ( written < 0 ) ? written : LFS_ERR_OK;

    // close
    lfs_file_close(&lfs, &file);

    return result;
}

../Middlewares/Third_Party/LittleFs/lfs.c:5994:trace: lfs_stat(0x20038dc8, "writeTestFile_286", 0x2009fc6c)
../Middlewares/Third_Party/LittleFs/lfs.c:5998:trace: lfs_stat -> -2
../Middlewares/Third_Party/LittleFs/lfs.c:6059:trace: lfs_file_open(0x20038dc8, 0x20038e48, "writeTestFile_286", 903)
../Middlewares/Third_Party/LittleFs/lfs.c:6065:trace: lfs_file_open -> 0
../Middlewares/Third_Party/LittleFs/lfs.c:6214:trace: lfs_file_rewind(0x20038dc8, 0x20038e48)
../Middlewares/Third_Party/LittleFs/lfs.c:6218:trace: lfs_file_rewind -> 0
../Middlewares/Third_Party/LittleFs/lfs.c:6147:trace: lfs_file_write(0x20038dc8, 0x20038e48, 0x2009fdb0, 256)
../Middlewares/Third_Party/LittleFs/lfs.c:6153:trace: lfs_file_write -> 256
../Middlewares/Third_Party/LittleFs/lfs.c:6096:trace: lfs_file_close(0x20038dc8, 0x20038e48)
../Middlewares/Third_Party/LittleFs/lfs.c:2072:debug: Bad block at 0x34c
../Middlewares/Third_Party/LittleFs/lfs.c:2444:debug: Relocating {0x34d, 0x34c} -> {0x396, 0x34d}
../Middlewares/Third_Party/LittleFs/lfs.c:6101:trace: lfs_file_close -> 0

...
../Middlewares/Third_Party/LittleFs/lfs.c:5994:trace: lfs_stat(0x20038dc8, "writeTestFile_673", 0x2009fc6c)
../Middlewares/Third_Party/LittleFs/lfs.c:5998:trace: lfs_stat -> -2
../Middlewares/Third_Party/LittleFs/lfs.c:6059:trace: lfs_file_open(0x20038dc8, 0x20038e48, "writeTestFile_673", 903)
../Middlewares/Third_Party/LittleFs/lfs.c:6065:trace: lfs_file_open -> 0
../Middlewares/Third_Party/LittleFs/lfs.c:6214:trace: lfs_file_rewind(0x20038dc8, 0x20038e48)
../Middlewares/Third_Party/LittleFs/lfs.c:6218:trace: lfs_file_rewind -> 0
../Middlewares/Third_Party/LittleFs/lfs.c:6147:trace: lfs_file_write(0x20038dc8, 0x20038e48, 0x2009fdb0, 256)
../Middlewares/Third_Party/LittleFs/lfs.c:6153:trace: lfs_file_write -> 256
../Middlewares/Third_Party/LittleFs/lfs.c:6096:trace: lfs_file_close(0x20038dc8, 0x20038e48)
../Middlewares/Third_Party/LittleFs/lfs.c:6101:trace: lfs_file_close -> 0
../Middlewares/Third_Party/LittleFs/lfs.c:5994:trace: lfs_stat(0x20038dc8, "writeTestFile_674", 0x2009fc6c)
../Middlewares/Third_Party/LittleFs/lfs.c:1369:error: Corrupted dir pair at {0x1, 0x0}
../Middlewares/Third_Party/LittleFs/lfs.c:5998:trace: lfs_stat -> -84
../Middlewares/Third_Party/LittleFs/lfs.c:6059:trace: lfs_file_open(0x20038dc8, 0x20038e48, "writeTestFile_674", 903)
../Middlewares/Third_Party/LittleFs/lfs.c:1369:error: Corrupted dir pair at {0x1, 0x0}
../Middlewares/Third_Party/LittleFs/lfs.c:6065:trace: lfs_file_open -> -84

I tried to get it stable. So far without success. In some instances leading to a bricked device idling in an assert, if you dont immediately erase & reformat after dir corruption.
For a production software rolling out to embedded devices it seems littlefs is far too unstable and unreliable to be of use?!
Using directory operations with these settings, leads to even faster dir-corruption and tons of bad blocks.
I wonder how blocks can be marked as bad, when there has been at-most one write on them.
Does littlefs not work correctly with NOR Flash?
So far I understand it, the flash space is evenly divided in blocks. So every address of a block, should be
    uint32_t  address = block * c->block_size;
Perhaps someone has an idea, what I'm doing wrong here.

In the end it turned out to be a timing and driver related issue.
On STM32 with OSPI communication, auto polling for mem-ready is configured with cpu cycles instead of total time.
Depending on the CPU load and other background tasks, this timeout may work in normal application condition, but may not in testing conditions without background tasks.
In this case, depending on the load, the driver would sporadically run into a timeout (e.g. chip is busy on erase), subsequent write/erase operations are discarded by the chip.
This leads to littlefs operations not completing correctly, thus the corrupted filesystem and bad blocks.
Currently, more than 970 files @4kB can be written and erased. It seems to work stable now.

Hi @SBembedded, glad you figured out the issue. What an interesting bug.
Flash erase operations can take a surprising amount of time to complete, so it makes sense that is what would trip it up.
If you detect the timeout and return LFS_ERR_IO in your bd functions, it would be propagated up through littlefs's APIs in case this happens again in the future.


Add Application Manager HTTP API

Closes #44

This moves ttn.Client to ttn.data.MQTT but ttn.Client is still an alias until we can drop it in 3.0
This adds ttn.manager.HTTP which wraps the Application Manager HTTP API
This moves documentation to /docs

This doesn't work at, because it's set to use https for which we don't have certificate in place yet. We'll have to wait till we do.

Can you rebase?

@AntoineRondelet please rebase, test and use http for now


Make dependency on parking_lot optional

Resolves #5 by marking the dependency on parking_lot as optional, with the possibility to turn it off by disabling the default crate features.
The newtype pattern was central to this change, allowing both std and parking_lot RwLock types to be used under the same internal interface without any changes to existing code. The new RwLock wrapper type has been defined as potentially (but not necessarily) poisonable and as panicking when poisoned, which is adequate for the purposes of this crate.
In addition, the crate docs have been updated to mention this new optional feature.

Released in 0.2.4


Only use pe-gem provider on Puppet Enterprise

Prior to this PR, the Gem provider was hard-coded as pe-gem. This
PR looks at the puppetversion fact to ensure we're only using the
pe-gem provider if running on Puppet Enterprise.

This failed on cells where STRICT_VARIABLES=yes. Do we really need to be testing that?

Updated to use getvar()

Having never used the rspec-puppet-facts Gem before, I did not know that they don't include puppetversion in their stubbed facts. I'll update the spec tests here to merge it in, which should resolve the CI failures.


chore: Add v1 APIs and Conversion webhooks for v0.34.x

Fixes #N/A
Description

Add v1 APIs and the conversion webhooks
This is a copy and from main to release a patch version of 0.34

How was this change tested?

make presubmit

Does this change impact docs?

[ ] Yes, PR includes docs updates
[ ] Yes, issue opened: #
[x] No

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>6
Details

257 of 731 (35.16%)  changed or added relevant lines in 11 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-5.4%) to 77.252%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

pkg/apis/v1/ec2nodeclass_defaults.go
0
1
0.0%

pkg/apis/v1beta1/ec2nodeclass_conversion.go
0
2
0.0%

pkg/webhooks/webhooks.go
0
6
0.0%

pkg/cloudprovider/cloudprovider.go
0
9
0.0%

pkg/fake/cloudprovider.go
0
9
0.0%

pkg/apis/v1/ec2nodeclass_status.go
0
14
0.0%

pkg/apis/v1/ec2nodeclass.go
37
60
61.67%

pkg/apis/v1/zz_generated.deepcopy.go
0
410
0.0%

Files with Coverage Reduction
New Missed Lines
%

pkg/providers/amifamily/ami.go
1
90.43%

Totals

Change from base Build<PHONE_NUMBER>:
-5.4%

Covered Lines:
5359

Relevant Lines:
6937

💛  - Coveralls


ui: Tokenize 1.3.3 and string.replaceAll may causes JS errors

Error: TypeError: string.replaceAll is not a function
Source File: https://cencored/ui/js/tokenize2.js?v=(somehexnumber that perhaps should be secret)[
Line: 1033
https://forum.opnsense.org/index.php?topic=21199.0

Can't reproduce, although we don't use their new escape() in may places (since it has other issues), it's valid JS as well https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replaceAll (note the compatibility matrix on the bottom)
This is highly likely a browser issue (I've tested Firefox, Chrome and Safari on osx, without issues), https://stackoverflow.com/questions/62825358/javascript-replaceall-is-not-a-function-type-error suggests the same by the way.
We can patch it out, but maybe it's better to just require updated browsers in this case. It's highly likely other JS libraries will follow in which case we end up trying to support something nobody else apparently seems to be caring about...

Can't reproduce, although we don't use their new escape() in may places (since it has other issues), it's valid JS as well https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replaceAll (note the compatibility matrix on the bottom)
This is highly likely a browser issue (I've tested Firefox, Chrome and Safari on osx, without issues), https://stackoverflow.com/questions/62825358/javascript-replaceall-is-not-a-function-type-error suggests the same by the way.
We can patch it out, but maybe it's better to just require updated browsers in this case. It's highly likely other JS libraries will follow in which case we end up trying to support something nobody else apparently seems to be caring about...

Looking at https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replaceAll#browser_compatibility it makes sense either to let it go or bother Tokenize to address it.


// , preinstall.pp fails on CEntOS 6.5 and Puppet Enterprise 2.7.

// ,
err: Could not retrieve catalog from remote server: Error 400 on SERVER: undefined method `<' for :undef:Symbol at /etc/puppet/modules/redis/manifests/preinstall.pp:10 on node redis1
Perhaps it's missing a fact, or something, but this seems like a bug.
This may be related to CEntOS 6.5 using an older version of Facter, as here:
http://serverfault.com/questions/528878/puppet-facter-how-to-determine-if-running-cent-6-or-cent-5

// , UPDATE: I fixed this by changing line 10 of /etc/puppet/modules/redis/manifests/preinstall.pp from if $::operatingsystemmajrelease < '7' { to if $::operatingsystemrelease < '7' {.
Do you think this is worth a pull request to allow older versions of Facter, like 1.6.13?

// , Also, does this allow us to set an item like tcp-keepalive 60 in the configuration file?

That's going to break facter 2 and above.
Unless you find a way to get around that I can't support that.

// , Ah, got it. Let me see if I can find a way to support both.
I checked https://docs.puppetlabs.com/facter/2.0/release_notes.html#breaking-changes, and it doesn't seem to list $::operatingsystemrelease.

// , I can't figure out how this breaks facter 2 and above. I can test this later on a Vagrant box, though.

PE 2.7 has been EOL for a long time, closing.
https://puppet.com/misc/version-history


Combine veracruz-test and veracruz-server-test

Requested feature
Combine the tests in veracruz-server-test into veracruz-test and get rid of veracruz-server-test
Motivation
veracruz-server-test was started as a "unit test" for veracruz-server, but in reality it tests the whole system minus veracruz-client. This is not particularly useful, and it means that the code in veracruz-server-test duplicates most of the functionality of veracruz-client in the test harness, without providing much value.
We should get rid of veracruz-server-test and move it's tests to veracruz-test.

This is complete


V2.0.0  Compiled, source code prompts changes

Version: release v2.0.0
After executing ./scripts/eosio_build.sh, the source directory is changed.

Found that this llvmWARshim.llvmwar is linked to llvmWARshim.cpp
https://github.com/EOSIO/eos/blob/master/libraries/chain/webassembly/eos-vm-oc/llvmWARshim.llvmwar

It feels that the 2.0.0 file management is worse than the previous version.

Due to no response from submitter, going to close this. It appears submitter is on some sort of windows environment so it's possible git on windows doesn't handle symlinks or other unix-like features correctly.


MINOR: [Go] [Benchmarking] fix repo specifier

The Arrow Conbench deployment recently imposed stricter validation, that the repository key must be a URL.
This PR fixes the Go benchmarking script to comply.

cc @zeroshade


Library speed

David, thanks for all the work so far. Very helpful.
One issue I ran into is the fact that the SCL3300 datasheet specifies an ODR of 2000Hz and suggests we read out the registers at the same rate to meet the sensor's noise performance. However I have never been able to get anywhere over 1130 readings in 1 second even with a modified version of several functions.
First issue I found is with the scl3300::transfer() function where I found 2 occurrences of a 1ms delay  ( L396 and L407). This will already get us a maximum of 500Hz. I suggest changing all the millis() to micros(), since the only requirement from the datasheet is a 10µs delay between consecutive reads.
Still I have not been able to reach the 2000Hz on a custom board running nrf52832, a Particle Boron (nrf52840) and an MKRZERO (SAMD21).
Also the startup sequence doesn't match the one suggest on p. 21  but I haven't found it to mess with performance so far.
datasheet: link

Hi,
The startup sequence is based off of documentation that I found a couple of years ago.  Unless I see something obviously broke or problematic, I've more a tendency to leave it alone.  (The library has been quite stable for several months now, which is a good sign.)  Generally, going a little slower hasn't been an issue.
I'm curious though as to your use case.  I have no problem working to speed things up here, and I am familiar with that 10 uSec minimum timing requirement as well.  I can run some tests, to see if shortening the delays helps.  (There are several places they are used, besides just the transfer() function.)

I noticed that the latest datasheet is Revision 2.  I probably wrote my initial code based on Revision 1.  Hence the differences.  I'll review the current Rev 2 doc for the startup sequence.

Reading up on the micros() function starts to bring back all sorts of red flags in my head with using it.  First, its behavior is CPU dependent.  That means it behaves differently on different board types.  Ouch.  I can't guarantee that using it will always cause the library to work as expected.
Second, its counter overflows in as little as 70 minutes.  That means that there is the distinct possibility that if used long enough, a condition can be seen where the counter wraps back to zero while it is being used to time a delay.  Bad. No one wants to use a library that may intermittently hang.
And third, on many board types the resolution of micros() is limited to 4 uSec, not the 1 uSec that one would expect.  That will again introduce more delay than one is expecting, which limits the maximum rate that the SCL3300 could be read.
I can avoid all of this by just staying with the 1 millisecond delay timing using millis() in transfer().
Now, I can remove the second delay though.  And I can update the startup sequence used.  I'll test these changes, and see if there are any adverse effects.

So far, my testing is looking promising.  I'll set this up to run over several days, and see if it stays that way.

Reading up on the micros() function starts to bring back all sorts of red flags in my head with using it. First, its behavior is CPU dependent. That means it behaves differently on different board types. Ouch. I can't guarantee that using it will always cause the library to work as expected.
Second, its counter overflows in as little as 71.6 minutes. That means that there is the distinct possibility that if used long enough, a condition can be seen where the counter wraps back to zero while it is being used to time a delay. So that takes care to make sure that possibility is accounted for when it happens.
And third, on many board types the resolution of micros() is limited to 4 uSec, not the 1 uSec that one would expect. That will again introduce more delay than one is expecting, which limits the maximum rate that the SCL3300 could be read.
I can avoid all of this by just staying with the 1 millisecond delay timing using millis() in transfer().
Now, I can remove the second delay though. And I can update the startup sequence used. I'll test these changes, and see if there are any adverse effects. Then I'll look into using micros().

Hello,
just to add a little on that score. I already used your library some time ago. In the last few project moves, I have also modified it at exactly this point. I also used micros().
To prevent the overflow: Since micros(), just like millis, fortunately returns uint32 to ensure this, you can of course also force the calculation in (uint32_t).
startmicros = micros();
while (micros() - startmicros < 150) ; //only used 150 to have a bit of a buffer here, was fast enough for me
If there is an overflow we get worst case:
startmicros=<PHONE_NUMBER> and micros()=1
So we get 1-<PHONE_NUMBER> (in uint_32) = 2 <150
(next 3<150 and so on working just fine)
Of course correct me anytime if i'am wrong. Have a nice day.

My speed test being done with the code changes in place is showing a consistent rate of 1000 iterations per second.  This could be optimized further by cutting down on the number of register reads that are done.  I may try that later, but I'll start by letting this test run for today.

My speed test being done with the code changes in place is showing a consistent rate of 1000 iterations per second. This could be optimized further by cutting down on the number of register reads that are done. I may try that later, but I'll start by letting this test run for today.

Thanks both,
I'm doing some additional software filtering, but I still need to pick up variations in inclinations of 0.02° at a frequency of about 5Hz. So the more samples I get, the better. This is when I noticed the sentence in the datasheet that suggested reading at the sensor ODR (2000Hz) otherwise the noise performance of the sensor is not met. It would have helped if Murata would have implemented a Data Ready register of some sorts. Now the timing is up to us, though it may not be that critical.
What caused your red flags w.r.t. the use of micros()? As far as I know it's the same as millis() but with a different prescale, though I haven't looked into it too much.
Anyway, curious for the results of your test.

I'm finding that even with cutting back on the number of reads done at available(), I'm still getting just 1000 iterations per second.  I'm beginning to think that there may be a limitation based on the Arduino environment implementation itself.  (It has it's own stuff running in the background that isn't obvious by looking at a sketch.)  A higher rate may only be possible by going directly to putting an assembly code to the target board.  (Which is what we are trying to avoid by using the Arduino IDE to begin with.)

If you take the below code, with all while loops removed I get 3925Hz. The result isn't meaningful, and there's no error handling, but just for demonstration purposes. I scoped it, and the rest of the code is slow enough to ensure the 10µs delay...
Anyway, a while loop that polls .availabe() makes it very slow with each available entailing a beginTransmission(), 11x a transfer() and an endTransmission(). Filling a buffer could be a better approach if one were to need speed.
uint32_t SCL3300::readloop(uint32_t readms) {
  uint32_t counter = 0;
  //Version 3 of this function
  //boolean errorflag = false;
  //Read all Sensor Data, as per Datasheet requirements
  beginTransmission(); //Set up this SPI port/bus
  transfer(SwtchBnk0);
  uint32_t startms = millis();
  {
    while(millis() - startms < readms)
      {

        transfer(RdAccX);
        transfer(RdAccY);
        sclData.AccX = SCL3300_DATA;
        transfer(RdAccZ);
        sclData.AccY = SCL3300_DATA;
        transfer(RdSTO);
        sclData.AccZ = SCL3300_DATA;
        transfer(RdTemp);
        sclData.STO = SCL3300_DATA;
        transfer(RdAngX);
        sclData.TEMP = SCL3300_DATA;
        transfer(RdAngY);
        sclData.AngX = SCL3300_DATA;
        transfer(RdAngZ);
        sclData.AngY = SCL3300_DATA;
        transfer(RdStatSum);
        sclData.AngZ = SCL3300_DATA;
        transfer(RdWHOAMI);
        sclData.StatusSum = SCL3300_DATA;
        transfer(RdWHOAMI);
        sclData.WHOAMI = SCL3300_DATA;
        counter++;
      }
  }

  endTransmission(); //Let go of SPI port/bus
  //if (errorflag) return false; //Inform caller that something went wrong
  // The WHOAMI command should give an 8 bit value of 0xc1
  return counter; //Let the caller know this worked
}

And then the transfer function looks like this:
// Routine to transfer a 32-bit integer to the SCL3300, and return the 32-bit data read
unsigned long SCL3300::transfer(unsigned long value) {
  FourByte dataorig;
  dataorig.bit32 = value; //Allow 32 bit value to be sent 8 bits at a time
  #ifdef debug_scl3300
  Serial_SCL.print(dataorig.bit32, HEX);
  Serial_SCL.print(" ");
  for (int j = 3; j >= 0; j--) {
    Serial_SCL.print(dataorig.bit8[j], HEX);
    Serial_SCL.print(" ");
  }
  #endif
  //Must allow at least 10 uSec between SPI transfers
  //The datasheet shows the CS line must be high during this time
  //We lengthen it some for environment variabilities
  //unsigned long startmicros = micros();
  //while ((micros() - startmicros) < 15) ;

  digitalWrite(scl3300_csPin, LOW); //Now chip select can be enabled for the full 32 bit xfer
  SCL3300_DATA = 0;
  for (int i = 3; i >= 0; i--) { //Xfers are done MSB first
    dataorig.bit8[i] = SPI.transfer(dataorig.bit8[i]);
  }
  SCL3300_DATA = dataorig.bit8[1] + (dataorig.bit8[2] << 8);
  SCL3300_CRC = dataorig.bit8[0];
  SCL3300_CMD = dataorig.bit8[3];
  //startmicros = micros();
  //while (micros() - startmicros < 10) ;
  digitalWrite(scl3300_csPin, HIGH); //And we are done
  #ifdef debug_scl3300
  for (int i = 3; i >= 0; i--) {
    Serial_SCL.print(" ");
    Serial_SCL.print(dataorig.bit8[i], HEX);
  }
  Serial_SCL.print("  ");
  #endif
  if (SCL3300_CRC == CalculateCRC(dataorig.bit32))
    crcerr = false;
  else
    crcerr = true;
  //check RS bits
  if ((SCL3300_CMD & 0x03) == 0x01)
    statuserr = false;
  else
    statuserr = true;
    #ifdef debug_scl3300
    Serial_SCL.print((SCL3300_CMD & 0x03));
    Serial_SCL.print(" ");
    Serial_SCL.print(SCL3300_DATA, HEX);
    Serial_SCL.print(" ");
    Serial_SCL.print(SCL3300_CRC, HEX);
    Serial_SCL.print(" ");
    Serial_SCL.print(CalculateCRC(dataorig.bit32), HEX);
    Serial_SCL.print(" ");
    Serial_SCL.println(crcerr);
  #endif
  return dataorig.bit32;
}

I suspect that a majority of the slowness comes from the need to use beginTransmission() and endTransmission() to bracket the SPI register reads.  This is a safety 'thing', to make sure that the SPI implementation doesn't interfere with whatever else may be going on in the rest of a sketch.  The library is written with the priority of keeping it simple to use, and hiding complexity from the user.  I don't think that removing the one micros() call in transfer() would have much impact on the speed, but I'd have to test it to prove that.
If one is willing to go through the work of controlling the SPI communication directly, as you have, then it certainly is possible to design a sketch to get much faster than what can be done now with the library.   But that also requires an increase in complexity, and opens up the possibility of increased difficulty when debugging.
So, it's a tradeoff.  The Arduino philosophy is to keep it as simple, usable, and 'bullet-proof' as possible.  (And that last one is difficult with SPI, because getting reliable hardware connections can be quite a headache at times. Hence the needed error checking.)
I'll have to think about adding an option for faster speeds, based on the optimizations we've discussed.  But the core design with available() will stay as it is for that function.  Most users will be fine with the standard implementation.  For those use cases that require more speed, and the user is willing to handle the added complexity, that could be made an option.

Cutting out beginTransmission() and endTransmission() to bracket the SPI register reads, and removing that last wait loop puts the number of iterations per second at 2367.  This is more than double from the 1000 iterations per second in the standard mode.  So it keeps the SPI communication open continuously, and that does have a huge effect on the speed.  Of course, depending on what else may be going on in a sketch, this may or may not have adverse side effects.

I've just released version 3.1.0 of the library, adding the SetFastReadMode() function to allow increasing the sensor read rate as we have discussed here.  Hopefully this change will be able to meet your data needs.

Thanks for the update. I'll check it at a later time to see how it performs on my setup, but it looks promising.
Am I correct that the only way to end the SPI transmission now is to set the sensor in power down mode?
Perhaps a startFastMode() and endFastMode() could be beneficial, but you be the judge on that.

Thanks for the suggestions.  I'll keep them in mind for the next update, when that gets done.  Meanwhile, I look forward to hearing back regarding the results of your testing with the new FastMode.

I added a branch to add in a new function as per your request - stopFastReadMode().  If you have time, check it out.  The Fsat Read Mode can be used either continuously, or in bursts, as shown in the last two examples in that code branch.

Closing issue after being open for six months with no further comments or changes.


PytorchstreamReader failed reading zip archive: failed finding central directory

Hi，
When running the program, I noticed a discrepancy between the file size displayed on your Tsinghua cloud checkpoint and the actual size downloaded (the website displayed 885.6 MB but the actual download was 844.6 MB). Initially, I didn't pay much attention to it, but when I attempted to execute the program,  the error appears like the figure shows.

After searching on the internet, I found that this error might be related to the incompleteness of the file being used. Therefore, I guese that the file on Tsinghua cloud might be incomplete or related to the browser I'm using. If possible, could you please share the download situation of yours and the browser you're using? Looking forward to your update.
Thank you.
Yu Chen

Hi, the size of the original checkpoint for refredo_indomain_3doc.pt should be 885596623 B (≈844.57 MB), so I think a size of 844.6 MB is expected. The size shown on the web page may be due to some specific handling of Tsinghua Cloud. You can try switching to another browser (Microsoft Edge works for me) and re-download the checkpoints. Additionally, you may also experiment with torch 1.9.0 version (if not) which works normally on my environment.

Hi @locurryve, the solution of the environment works, but after that, it comes out a new issue. Like in this Figure

In model.py file line 215, the size of tensor torch,cat([hs,rs],dim=1) doesn't match with the neural networks tensor head_extraction. In addition, while testing other .sh files in scripts directory, I found the size of tensor torch,cat([hs,rs],dim=1) are different, from [71, 1536] to [407,1536]. So I m wondering if there is anything I need to modified in the code. Thank you

According to the log, it seems that the size of tensor torch.cat([hs, rs], dim=1) matches well with the linear layer head_extractor: the former has a size of 1536 for dim 1, and the latter has a size of 1536 for in_features. The different sizes for dim 0 of torch.cat([hs, rs], dim=1) are caused by different numbers of NOTA instances. I wonder is there any error information is about memory usage or CUDA? This error is more likely caused by certain issues in the environment or library rather than code.

According to the log, it seems that the size of tensor torch.cat([hs, rs], dim=1) matches well with the linear layer head_extractor: the former has a size of 1536 for dim 1, and the latter has a size of 1536 for in_features. The different sizes for dim 0 of torch.cat([hs, rs], dim=1) are caused by different numbers of NOTA instances. I wonder is there any error information is about memory usage or CUDA? This error is more likely caused by certain issues in the environment or library rather than code.

Well, although I don't understand why different env can make such error. I did in my laptop, the dependency packages are the last version with torch 2.0.1, but just 6G GPU. I will try in some other envs. Thank you for your answer

According to the log, it seems that the size of tensor torch.cat([hs, rs], dim=1) matches well with the linear layer head_extractor: the former has a size of 1536 for dim 1, and the latter has a size of 1536 for in_features. The different sizes for dim 0 of torch.cat([hs, rs], dim=1) are caused by different numbers of NOTA instances. I wonder is there any error information is about memory usage or CUDA? This error is more likely caused by certain issues in the environment or library rather than code.

Hi, sorry for telling you, your advise doesn't work. I tried in the best server I can found(requirements.txt is attached). But still comes out the same error. So I think there is some other reasons caused this issue.
requirements.txt

Here is the configuration of the server I use.

And I run the comment(I m sure the pt is in the right dir):
 sh scripts/refredo_crossdomain_3doc.sh

here is the complete error information like that:
found cached dataset. loading from dataset/cache/cached-test_scierc.json
Constructing episodes: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████| 3000/3000 [00:03<00:00, 985.30it/s]loading model from checkpoints/refredo_crossdomain_3doc.pt
/root/miniconda3/envs/myconda/lib/python3.10/site-packages/transformers/optimization.py:429: FutureWarning: This implementation of AdamW is deprecated and will be removed in a future version. Use the PyTorch implementation torch.optim.AdamW instead, or set `no_deprecation_warning=True` to disable this warning
  warnings.warn(
/root/miniconda3/envs/myconda/lib/python3.10/site-packages/apex/__init__.py:68: DeprecatedFeatureWarning: apex.amp is deprecated and will be removed by the end of February 2023. Use [PyTorch AMP](https://pytorch.org/docs/stable/amp.html)
  warnings.warn(msg, DeprecatedFeatureWarning)
0it [00:00, ?it/s]
---- SCIERC TEST EVAL -----
  0%|                                                                                | 0/750 [00:00<?, ?it/s]cat size is torch.Size([147, 1536])

nn size is torch.Size([768, 1536])
  0%|                                                                                | 0/750 [00:00<?, ?it/s]Traceback (most recent call last):
  File "/mnt/RAPL-main/src/main.py", line 460, in <module>
    output = encoder(exemplar_tokens.to('cuda'),
  File "/root/miniconda3/envs/myconda/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
    return forward_call(*args, **kwargs)
  File "/mnt/RAPL-main/src/model.py", line 216, in forward
    hs = torch.tanh(self.head_extractor(torch.cat([hs, rs], dim=1)))  # [pair_of_nota, hidden]
  File "/root/miniconda3/envs/myconda/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
    return forward_call(*args, **kwargs)
  File "/root/miniconda3/envs/myconda/lib/python3.10/site-packages/torch/nn/modules/linear.py", line 114, in forward
    return F.linear(input, self.weight, self.bias)
  File "/root/miniconda3/envs/myconda/lib/python3.10/site-packages/apex/amp/wrap.py", line 21, in wrapper
    args[i] = utils.cached_cast(cast_fn, args[i], handle.cache)
  File "/root/miniconda3/envs/myconda/lib/python3.10/site-packages/apex/amp/utils.py", line 97, in cached_cast
    if cached_x.grad_fn.next_functions[1][0].variable is not x:
IndexError: tuple index out of range

An addition question, did you tried git clone this project in your env and run it?

Sorry for the late response. I also re-clone the project for validation and it works. In README, I've updated the versions of all packages in my experimental environment:

apex 0.1
numpy 1.19.4
opt_einsum 3.3.0
torch 1.9.0+cu111
tqdm 4.64.0
transformers 3.4.0
wandb 0.12.21

Could you please try again using packages of above versions to see if it works properly? Hope this can provide some assistance.

Sorry for the late response. I also re-clone the project for validation and it works. In README, I've updated the versions of all packages in my experimental environment:

apex 0.1
numpy 1.19.4
opt_einsum 3.3.0
torch 1.9.0+cu111
tqdm 4.64.0
transformers 3.4.0
wandb 0.12.21

Could you please try again using packages of above versions to see if it works properly? Hope this can provide some assistance.
I had the same problem,I want to ask you if you can run successfully under such a requirement without reporting errors

这个应该是apex的bug，修改可以按照这个文章进行更改https://blog.csdn.net/starvapour/article/details/122275439

Sorry for the late response. I also re-clone the project for validation and it works. In README, I've updated the versions of all packages in my experimental environment:

apex 0.1
numpy 1.19.4
opt_einsum 3.3.0
torch 1.9.0+cu111
tqdm 4.64.0
transformers 3.4.0
wandb 0.12.21

Could you please try again using packages of above versions to see if it works properly? Hope this can provide some assistance.

OK, I will have a try.

这个应该是apex的bug，修改可以按照这个文章进行更改https://blog.csdn.net/starvapour/article/details/122275439

行，我试试

这个应该是apex的bug，修改可以按照这个文章进行更改https://blog.csdn.net/starvapour/article/details/122275439

好使，谢谢哥们

Sorry for the late response. I also re-clone the project for validation and it works. In README, I've updated the versions of all packages in my experimental environment:

apex 0.1
numpy 1.19.4
opt_einsum 3.3.0
torch 1.9.0+cu111
tqdm 4.64.0
transformers 3.4.0
wandb 0.12.21

Could you please try again using packages of above versions to see if it works properly? Hope this can provide some assistance.

Hi, I tried the advice by @dengxingzhi with my own envs, it works. I guess is the bug of apex in github instead of the issue in envs. And thank you for tracking my issue for such long time!

I see, so that's how matters stand. Thanks for @dengxingzhi 's solution~


[BUG] Submodule Server is not properly tagged

Search before asking

[X] I had searched in the issues and found no similar feature requirement.

DeepFlow Component
Server
What you expected to happen
I found that module github.com/deepflowio/deepflow/server is a submodule of  deepflow and have its own `go.mod.
However, it seems that submodule  github.com/deepflowio/deepflow/server is not tagged correctly. According to Go Modules standard , submodule should be tagged like relative-path-to-root/vX.X.X.
At now, when trying to import package github.com/deepflowio/deepflow/server, downstream project would have to depend on pseudo-version of it and cannot get a valid tag version.
require github.com/deepflowio/deepflow/server v0.0.0-20240903024103-702ca3987e59

To address this, i think it's better to tag submodules properly according to Go standard, for example, releasing a tag server/v6.6.4, so that other project can use tag version to import this module in go.mod.
How to reproduce
Run go get github.com/deepflowio/deepflow/server v6.6.4 will fail.
go get github.com/deepflowio/deepflow/server will return a pseudo version.
DeepFlow version
v6.6.4
DeepFlow agent list
No response
Kubernetes CNI
No response
Operation-System/Kernel version
No response
Anything else
No response
Are you willing to submit a PR?

[X] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

@Nick-0314 @LYootsz Could you please take a look at this issue? Many thanks :)


Create gluon-lang organisation and transfer repositories

Now that we have three different repos, it might make sense to start grouping them under an organization.

Actually made the organization last weekend https://github.com/gluon-lang but forgot to bring it up,  wanted to check that there weren't any hidden gotchas but there does not seem to be so I should be able to do this pretty much right away.

Awesome! Yeah - just need to do a transfer in the repo settings. We might have to switch gitter channels though :(

Guessing this is done now!


ZITADEL API: Standardize the way of writing and running unit and integration tests.

As a developer, I want to have an easy way to run unit and integration tests, so that I can easily maintain them.
Acceptance Criteria

[ ] An example unit and integration test is easily runnable locally.
[ ] Changes are just merged to main, if all unit and integration tests succeed.
[ ] The CONTRIBUTING.md states the following Ready for review expectations:

Unit tests ensure that non-trivial functions map certain inputs to expected outputs.
Integration tests ensure that given certain command arguments, configuration and pre existing sequences of events map to expected responses and sequences of new events.
Integration tests ensure that certain sequences of events are reduced to expected states in the database.
Integration tests ensure that queries to certain states in the database map different inputs to expected results.
Integration tests ensure that the eventstore interactions work as expected.

[ ] The currently so-called integration tests are renamed to acceptance tests (Follow-up from #5832)

@eliobischof Not sure about this issue, that is about something else than what we have implemented at the moment in the ZITADEL APIs?

It's mostly about aligning the terminology of acceptance tests which are currently called integration tests (last AC)
Maybe it's worth ditching the term integration tests in this context in favor of unit tests.
Actually it's less about inventing new testing method than rather renaming things. Nothing wild.
I'll edit the title.


Feature request: Log function supports custom log path

I want to view the log, but I cannot find the location of the log file. How to customize the log path?

https://doc.dongtai.io/docs/getting-started/agent/parameter/config-java-agent


NULL pointer passed to fprintf

this causes the build to fail with -Werror
find-cursor.c: In function ‘draw’:
find-cursor.c:152:3: warning: ‘%s’ directive argument is null [-Wformat-overflow=]
  152 |   fprintf(stderr, "%s: cannot connect to X server %s\n", name, display_name);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

'display_name' will always be NULL on line 152 - this is the correction:
	if (!display_name) {
		fprintf(stderr, "%s: cannot connect to X server\n", name);

Also reported on pull request #11

Markus
ok i didnt check for open PRs - it looks like the maintainer was
hoping that you would squash a new commit changing the error
message like before merging it:
ERROR: $DISPLAY is not set in the environment

Thanks @maramon and @bill-auger; I commented on that PR and after that I just, well, forgot :-/
I changed the error message and merged. Thanks both!


Logo spacing

Description
I opened up stretchly.svg and found a strange space around the logo path.
Expected behavior: [What you expect to happen]

Actual behavior: [What actually happens]

Additional Information
This may cause many problems, including #293

Thanks! Feel free to create a PR

Will do when I get a chance :smile:

Will do when I get a chance :smile:


Add dual bank related fields to stm32g4 cat 3 devices

This adds the missing dual bank flash related fields to stm32g4 devices:

stm32g471
stm32g473
stm32g474
stm32g483
stm32g484

Correct me if I am wrong, but from what I can tell FLASH_OPTR gets its value from here automatically at boot. Because of that, FLASH_OPTR does not have a reset value per say. However the place that it gets its value from does, 0xFFEFF8AA.
Would it then make sense to define FLASH_OPTR's resetValue as 0xFFEFF8AA?(see c7fe7d7)

@adamgreig or anyone else, might I request a review and a new CI run (I do not think/hope the error is because of me) :)
Also, what/are there any plans for a new release?


Yarn@4 pnp breaks vscode / eslint integration

Installing the latest yarn@4 uses pnp rather than node-modules. This prevents VSCode from finding the eslint and @types/jest dependencies.
If in notes/04-mikes-ts-setup.md you find that the lint test (swapping const for let) does not error in VSCode but does fail when running yarn lint then run:
yarn config set nodeLinker node-modules
yarn install

This should install dependencies in the local node_modules folder where VSCode can resolve them.

Seems to have been the case since yarn@2, see https://stackoverflow.com/a/60043794


fix: Add missing Spanish translations and fix typos

Description
Added the missing translation strings that where added to Payload for Spanish and fixed typos.

[x] I have read and understand the CONTRIBUTING.md document in this repository

Type of change

[x] Bug fix (non-breaking change which fixes an issue)

Checklist:

[ ] I have added tests that prove my fix is effective or that my feature works
[x] Existing test suite passes locally with my changes
[ ] I have made corresponding changes to the documentation

Amazing. Thanks for the contribution! 😃


How to combine FeatureFlags settings from multiple providers / sources?

Cross-post from https://github.com/Azure/AppConfiguration/issues/228 since it is relevant to both Microsoft.FeatureManagement and Azure App Configuration.
Suppose that I want to do the following:

use Azure App Configuration to set Feature Flags

for the production environment
as a baseline for the development environment

have a way for locally overriding the Feature Flags in the development environment, e.g. using cookies

The usecase for this is e.g. for testers / product owners to switch on/off Features when checking their behavior or presenting them, without needing access to Azure and without impacting others members of the development team.
Another use case could be for users opting in to preview features.
The documentation explains how to add Azure App Configuration as a source for FeatureManagement. I assume I would need to implement an IFeatureFilter or an ISessionManager to provide the values from the cookies, but I don't see this documented.
I believe an IFeatureFilter should be able to independently provide a Feature value, so how can we set what source gets preference over the other? The comparison cannot be done inside the IFeatureFilter I believe.
The logic I want to achieve is this:

Azure App Configuration feature state
Local (cookie-based?) feature value
Calculated feature result

false
null
false

true
null
true

false
false
false

true
false
false

false
true
true

true
true
true

For now we decided to not use (cookie) overrides in our production environment. However it would be still a good thing to document I think.

ISessionManager provides a way to short circuit feature filter evaluation for a feature flag and provide the result of whether a feature should be enabled. If you're cookies contain the state of whether a feature should be enabled or disabled then using an ISessionManager implementation which pulls from the HTTP session (cookie) makes perfect sense. If the session manager can't provide the value the feature management system falls back to evaluating the state of the feature based off the configuration of the application. In your case that would mean falling back to Azure App Configuration. It's the behavior you're looking for.
You mentioned that a feature filter should also be able to do this and that is also correct. Either way of accomplishing this could be done. If you use a feature filter you could have a CookieCacheFilter feature filter.
"FeatureManagement":
{
  "Beta": {
    "EnabledFor": [
       "CookieCache": {
         "Parameters":" {
           "Default": false/true
         }
       }
    ]
  }
}

The intent of the filter that I mocked up above would be

Check feature state from http session (cookie).
If feature state not present, use "Default" parameter as the result of whether the feature should be on off. The default parameter would come from the configuration of the application (Azure App Configuration).

Thank you! That looks good.
I understand this repo is about the feature management NuGet and not the Azure App Configuration product, but it would be nice if the solution would integrate well in the Feature Manager screen of Azure App Configuration.
They have a screen with on/off switches but those switches won’t work as defaults if the value needs to end up in the filter configuration. So I believe the solution you proposed using the ISessionManager would be good!

The Azure App Configuration team is the team that owns this package and we appreciate the feedback. The ISessionManager should serve your purpose well.
The feature filter interface is being revamped, but it is possible to accomplish what you mentioned today. Set the feature flag state to conditional by adding a feature filter. If you were to use the one I mocked you would name it "CookieCache". This has to match the name of the filter in your application. Then you can set the Default parameter that I added.
Here's a pic of me setting it up.

Yes, I agree it can work by editing the filter parameters, I just liked the really clear on/off switches :)
Thank you for your explanation! It helps a lot!


Nest an Anchor Element within a Paragraph

Challenge Nest an Anchor Element within a Paragraph has an issue.
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.

Now nest your existing a element within a new p element

If you get stuck with a challenge in the future, please ask questions to the Help Room. Happy coding!


refactor update blas/ext/base/dasumpw to follow current project conventions

Resolves #1470
Description
update blas/ext/base/dasumpw to follow current project conventions

What is the purpose of this pull request?

This pull request:

progresses #1152
fixes #1470

Related Issues

Does this pull request have any related issues?

This pull request:

resolves #
fixes #

Questions

Any questions for reviewers of this pull request?

No.
Other

Any other information relevant to this pull request? This may include screenshots, references, and/or implementation notes.

No.
Checklist

Please ensure the following tasks are completed before submitting this pull request.

[x] Read, understood, and followed the contributing guidelines.

@stdlib-js/reviewers

@Planeshifter please review this PR

@Planeshifter I have made the suggested changes

@Planeshifter made the changes in manifest.json and addon.c


Update props type according to new types

Update props type according to new type inserted in #286
We should also update surface_catalogue & surface_website according to these new types.

Love seeing that :struct type instead of :any or :map!

We should also update surface_catalogue & surface_website according to these new types.

@Malian I created the issues for both so we don't forget after this gets merged.


[Task]: Make option input keyboard accessible

Is there an existing issue for this?

[X] I have searched the existing issues

SubTasks

Verified
https://user-images.githubusercontent.com/104895602/167385727-b74f1fdc-6b9a-41fb-9bd0-10390b9d1140.mp4


heads turn to steve heads

sometimes when you get a head from the head generator it just turns into a steve head

Without further details, I can assume the following:

Random error
If the error occurs randomly and resolves itself after some time, it is likely due to an issue with Mineskin, the API used by FZMM to upload the skin. This type of error is already known and appears as a warning in the logs. I need to add a warning for users when this happens.

Error with a specific skin
If the error always occurs with a particular skin, then it is not a known bug and may require further investigation. In this case, please attach logs and the skin if possible.

Bug with some plugins:
There is another external issue where certain plugins, such as PlotSquared, remove the NBT data from the head if you try to obtain it while looking at a block in an area without permissions. To avoid this problem, obtain the head without pointing at any block or get it in an area with permissions.

i have the same issue and i am pretty sure it is cursed the antil cheat on the server in my case.(the server has its own command for head and it has the same issue)

There is missing information about what causes this bug, but in the latest release, there should be an error alert indicating the cause, except for the third case mentioned above
If it persists, you can reopen the bug


Require Rails >= 4.2

Rails versions older than 4.2.x are not supported anymore. Valle now
does not support them anymore, either.

Thanks!


ci: Add markdownlint, test_html_build, and build_docs workflows

markdownlint runs against README.md to avoid any issues with
converting it to HTML
test_converting_readme converts README.md > HTML and uploads this test
artifact to ensure that conversion works fine
build_docs converts README.md > HTML and pushes the result to the
docs branch to publish dosc to GitHub pages site.
Fix markdown issues in README.md

Signed-off-by: Sergei Petrosian<EMAIL_ADDRESS>

MD tables convert to HTML properly

@spetrosi why is there a CHANGELOG.md update with a new release?

@spetrosi why is there a CHANGELOG.md update with a new release?

update_files.yml from .github didn't rebase to main when pushing this change, but picked up the changelog update from the last commit, not sure what's going on. I've fixed this PR.


feat: implement AvatarModifierArea and CameraModeArea

I extend this PR with https://github.com/decentraland/protocol/pull/7


Responsive Universal Viewer

As a researcher using maps,
I would like the default size of the universal viewer to be large,
So that it's easier to see and navigate across large items, such as digitized maps.
User Story from Stephanie M.
As a researcher/student working in the visual arts,
I need to be able to quickly toggle to a full page display of an image from the object page (and vice versa)
So that the details of the entire image are more clearly visible (this is different from zooming into an image in order to see details of sections of an image)
Viewer should be responsive and re-size according to device, with easy ability to enter/exit full-screen. Default width should be close to page width.

Hyku download integration with viewer using IIIF: https://github.com/samvera-labs/hyku/issues/1372

listing of support? Nathan to compile and put in the comments. 3D objects will be the hardest, but is not in MVP.  Grant for 3D is longer than CHO. Will have that need 6 months after production release separate ticket for it.
Integrate viewer and make sure that it is responsive. Viewer does not support PDF.  There is another project that has it. May not be a show stopper, but the UX will be better if it did support PDF. Is there conversion for tiling and zooming? JP2's will be made outside of CHO.

Universal Viewer is primarily aimed at still images. Needs to support JP2 images. Derivatives will be pre-generated from TIFF (and perhaps occasionally JPG) and will be included with batch loads or GUI input form.
The digital file may be an image, but the original material may be a map, manuscript, document (posters, news clippings, letters, business cards, sheet music), photographs/slides/negatives, paintings/artwork, or blueprints/plans. [This list may not be exhaustive but gives a good sense.]

Universal Viewer doesn't seem to be responsive...


Apparent memory corruption with profiler enabled running on Windows Subsystem for Linux

Original issue
Dart code that runs correctly without a profiler enabled produces incorrect results when the profiler is enabled on the Windows Subsystem for Linux.
Here's some relatively small code sample that reproduces the issue:
bool isSanitary(String name) {
  return name == sanitize(name);
}

String sanitize(String initialName) {
  var newName = initialName.replaceAll(RegExp(r'[^a-zA-Z0-9_]'), '_');
  return newName;
}

void main(List<String> arguments) {
  print('Hello world!');
  for(var i = 0; i < 10000; i++) {
    var str = 'x';
    for(var j = 0; j < i; j++) {
      if(!isSanitary(str)) {
        print(i);
        print(j);
        print(str);
        throw Exception('not sanitary');
      }
      str += 'x';
    }
  }
}

When running or debugging this code without a profiler, it runs to completion with no exceptions, and just the Hello world! print message.
When the CPU profiler is enabled, however, this does not work.  An example output when the profiler is enabled looks like this:

When I paste this into GitHub, it seems to remove the whitespace characters, so maybe they are some sort of weird character.
Hello world!
493
257
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

The numbers for i and j seem to be a bit random, it doesn't happen at the same time every time.
I'm running with Dart SDK version: 2.13.4 on WSL1 Ubuntu 18.04.4 LTS with Visual Studio Code.  The issue reproduces whether the CPU Profiler is opened as a tab within vscode or in a Chrome browser.
To reproduce:

Set a breakpoint at print('Hello world!');
Start debugging and wait until breakpoint is hit
Start the CPU Profiler, "Enable profiler", and hit record
Resume debugging
Exception not sanitary will hit

FYI @eseidelGoogle

Interestingly inlining all of SignalHandler::GetProgramCounter, GetFramePointer, ... in https://github.com/dart-lang/sdk/blob/master/runtime/vm/thread_interrupter_linux.cc#L42 fixes the assert/corrupted memory.
Having even just one of those SignalHandler::* calls in ThreadInterruptSignalHandler still results in an assert.
@rmacnak-google I think this supports your theory that the problems are caused by size of red zone(or its absence) on WSL.

Seems like the problem is only present on WSL v1, while on WSL v2 everything works as expected.

Seems like Microsoft typically recommends use of v2 for most use cases.

Confirming that this only happens for me on WSL1 as well.  WSL2 seems to resolve the issue.

Given that it works on WSL2, this is unlikely to be looked at.


[Marker.io] pointer does not turn into hand icon on hovering over state field

Steps to reproduce:

go to home page
go to contact form
hover over state field

Actual result: pointer does not turn into hand icon
Expected result: it should turn into hand icon

Reported by: vinod<EMAIL_ADDRESS>- Contact via Marker.io
Source URL: https://proav-stg.webflow.io/
Issue details: Open in Marker.io
Device typedesktopBrowserChrome <IP_ADDRESS>Screen Size1366 x 768OSWindows 10 (10.0.0)Viewport Size1366 x 641Pixel Ratio@1x

🤖 Marker.io bot - This issue was marked as ✅ Resolved in Marker.io


SAS token linked to a Stored Access Policy does not reference the blob name

Storage Explorer Version: 1.1.0
Platform/OS Version: Windows 10
Architecture: ia32
Regression From: NA
Steps to Reproduce:
1.Create a Private Container & add a blob into it.
2. Create an Access Policy for this container ( read, list).
3.  Use the Access Policy previously created
Expected Experience:
When you hit create, the URL should reference the blob name so you would be able to paste it in the browser
https://<account_name>.blob.core.windows.net/<container_name>/<blob_name>?sv=2017-07-29&si=mypolicy&sr=c&sig=
Actual Experience:
When you hit create, the URL does not reference the blob name so you cannot access the blob
If you manually add the blob name to this URL, it works as expected.
https://<account_name>.blob.core.windows.net/<container_name>?sv=2017-07-29&si=mypolicy&sr=c&sig=

Looks like we fixed this earlier for non-access policy SAS. Appears we missed some special case.


See https://github.com/ncruces/go-sqlite3/discussions/97

No SQLite library anywhere lets you share a :memory: database across threads.
See #97

But I didn't put cache=shared there. So I guess it doesn't "share" the memory database across threads?

Right.
You'd have figured this out if you printed the error message from QueryRow(…).Scan(…).

It seems somewhat misleading. SQLite only declares it shouldn't use cache=shared, but it doesn't say :memory: can't be used?
Or, should it update the README or add some FAQ ..... it seems that many people have been in this situation.

This is common to all Go drivers. See:
https://stackoverflow.com/a/77150429

Hmm, I see, it is actually caused by the connection pool manged by Golang SQL driver.
I proposed a PR to update the readme to clarify the problem:  Update readme to clarify the "memory database" problem #187 (to help other developers to get rid of the memory database trap)  , does it look good to you?


Memory environment variable doesn't change the memory

Describe the problem
As mentioned in the title the server doent use the memory set to it.
Container definition
minecraft-ComSci-Mods:
    image: itzg/minecraft-server:java8
    ports:
      - "25565:25565"
    volumes:
      - /opt/docker-data/minecraft-ComSci-Mods:/data
    environment:
      TYPE: FORGE
      VERSION: 1.16.5
      FORGEVERSION: 36.2.8
      EULA: "TRUE"
      ENABLE_RCON: "true"
      RCON_PORT: 28016
      Memory: 4G
    restart: always

Container logs
[init] Running as uid=1000 gid=1000 with /data as 'drwxrwxrwx   16 1000     1000          4096 Nov  5 20:51 /data'
[init] Resolved version given 1.16.5 into 1.16.5
[init] Resolving type given FORGE
[init] Checking Forge version information.
[init] server.properties already created, skipping
[init] Checking for JSON files.
[init] Setting initial memory to 1G and max to 1G
[init] Starting the Minecraft server...
2021-11-05 21:04:42,491 main WARN Advanced terminal features are not available in this environment
(this should be the important part)

It needs to be MEMORY (all uppercase) not Memory

Thank you for the quick reply, the problem was only that small mistake of mine.
It works now


Lean Prolog limited parser results in failed unit tests

The severely limited Lean Prolog parser rises syntax errors in syntax correct code of several unit tests  (specially when using operators).

Lean Prolog is no longer supported (since version 3.39.0, released on June 17, 2020) due to the lack of standards compliance.


Feature request: nginx.conf

I :heart: this package, and would :heart: to be able to beautify nginx.conf files with it

+1

+1

+1

Atom's auto indent feature works pretty well for nginx.conf actually, still would be nice to be able to use the same shortcut

+1

+1

This may work: http://stackoverflow.com/a/34958345/2578205
I recommend the Python code.
I would accept a Pull Request adding a Nginx language and beautifier: https://github.com/Glavin001/atom-beautify/blob/master/docs/add-languages-and-beautifiers.md
Example language: https://github.com/Glavin001/atom-beautify/blob/master/src/languages/python.coffee
Example beautifier: https://github.com/Glavin001/atom-beautify/blob/master/src/beautifiers/autopep8.coffee
Let me know if you have any questions!

I'm working on it right now, expect a PR in a few minutes

PR Merged: https://github.com/Glavin001/atom-beautify/pull/1494

Published to v0.29.19


Support for non async functions

My codebase has a mix of sync and async functions and I would love to be able to use the same cache library for everything.
Any plan to add a non async version of the decorators and Locks?

I plan to add sync support in the future, but it is not my current focus - my current use case is fully asynchronous.
PRs are welcome.


database

BABY!! ANO GUSTO MO PABILI!!!!!
On Oct 11, 2017 12:21 PM, "Aljohn Pangilinan"<EMAIL_ADDRESS>wrote:

@PangilinanAljohn https://github.com/pangilinanaljohn requested your
review on: heynnahhh/School-Mgmt-System#47
https://github.com/heynnahhh/School-Mgmt-System/pull/47 database.
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
https://github.com/heynnahhh/School-Mgmt-System/pull/47#event-1287362923,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AXMWZdT2DY6r4lBFPyLqq9WitfCQsCJGks5srEJMgaJpZM4P05bZ
.


Screenshots for App Registrations differs to Azure Portal

Screenshot in this documentation differs to App registration experience in Azure Portal and this is confusing.

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

ID: 0fdac5f7-cd43-34c5-5905-dceeb9813952
Version Independent ID: 6fd53f84-dbb2-2a9c-2745-ea1999779113
Content: Embed Power BI content into an application for your customers - Power BI
Content Source: powerbi-docs/developer/embed-sample-for-customers.md
Service: powerbi
GitHub Login: @markingmyname
Microsoft Alias: maghan

Thanks for your comment, @archieag. We’ve forwarded your feedback to the writer, who should respond soon. Thanks!

Hi, archieag.  Thank you for bringing this to our attention.  This has been addressed.  Thank you and happy holidays!
We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.


I get an error when placing an order

I have installed https://github.com/danrcoull/vsf-payment-braintree.
Through front, everything works, both braintree and paypal, but when I try to checkout through capybara, nothing happens during checkout and there is only one error in the console TypeError: Cannot read property 'addEventListener' of null
Could not load content for webpack: ///vsf-checkout.922af10f3d0a88c39031.js (HTTP error: status code 404, net :: ERR_UNKNOWN_URL_SCHEME)
Can you handle fixing this bug by yourself?

[ ] YES
[X ] NO

Environment details

Browser: Google Chrome Version 91.0.4472.114
Code Version:
Vue Storefront 1.12.2
Vue Storefront 1.12.3
VSF Capybara 1.0.3
Magento ver. 2.3.5-p1

Or in a new version without caching

Browser: Google Chrome Version 91.0.4472.114
Code Version:
Vue Storefront 1.12.3
Vue Storefront Api 1.12.4
VSF Capybara 1.0.5
Magento ver. 2.3.5-p1

This issue is related to neither vsf1 nor vsf-capybara. It is related to vsf-payment-braintree


spec(Document Date Parsing User Defined Callback)

Document Date Parsing User Defined Callback
CSV can be a challenging format to work with because it is missing a lot of the metadata features that come with other data formats. One major issue is the lack of types. Some implementations attempt to overcome this obstacle by implementing type inference (ie guess the type based on the value), but this can cause some weird edge cases if the parser guesses the wrong type.
Instead of repeating this mistake, jquery-csv makes no assumptions about the data, and instead, returns all values as strings. Since there are cases where it's preferred to add type inference to the parser, jquery-csv makes it possible to leverage hooks to pass data processing functions into the parser.
One example of this usage already exists in the form of the $.castToScalar() preParse hook. What this specification attempts to address is the addition of another built-in hook that can parse a date value.
Goals

Add an example to Hooks & Callbacks

Milestones

[ ] Update Hooks & Callbacks

Details
The existing castToScalar documentation is a good starting point.
The castToScalar() source shows how a user defined hook is implemented.
Because type inference can be expensive, this example will show how to detect a specific column, and apply the transformation to values contained within that column.
The example should demonstrate how to detect and apply the transformation to only the 2nd column of the data.
onParseValue() hooks use the following signature.
function(value, state) {
  // value contains the string value, this is what the transform will be applied to
  // state contains 2 properties, row, and col. Use col for the example
  // when the transform is done return the result
}

References

Parse datetime field to google charts. - #25

Hi Aditya.
There is no strict requirement for which date format to use. This addition would be more of a demonstration of how to parse any custom date format. For simplicity sake, it could just use ISO 8601 (ie common international date format).
Let's say the date is 2019-02-26
Define an onParseEntry function that filters for the correct row using state.colNum the entry value is fed into Date.parse and that value is returned. All other values should just be returned. When you inject a custom parser function, the values it returns are what get inserted into the output data array.
If you have additional questions, feel free to ask.

Added in #123