Memory and progress bar

Memory and progress bar added!

This is brilliant, thanks :)
I'll try get CI working and then merge this once I can get some time to review + get a green build, hopefully this weekend.

yeah, I want to add some more things if you don't mind. I really like your project but needed to do some more than just open a site and close it again.
Also I've been looking into getting more memory details than just js memory size.


Сompactification and deletion of redundant volumes

Sponsors SeaweedFS via Patreon https://www.patreon.com/seaweedfs
Report issues here. Ask questions here https://stackoverflow.com/questions/tagged/seaweedfs
Please ask questions in https://github.com/chrislusf/seaweedfs/discussions
example of a good issue report:
https://github.com/chrislusf/seaweedfs/issues/1005
example of a bad issue report:
https://github.com/chrislusf/seaweedfs/issues/1008
Describe the bug
Volumes were actively overflowing before the issue at https://github.com/chrislusf/seaweedfs/issues/2188 was successfully resolved. After successful cleaning and then vacuum, a large number of empty volumes remain.
If you do not quickly switch the volumes to read-only mode, and then manually delete them, they begin to fill with data, which leads to the following situation (screenshot below): a large number of volumes are poorly used and I do not see the possibility of compacting the storage.
System Setup
Writing to the cluster occurs through s3 from gitlab-ci pipeline (similar to gitlab-amazon compatibility)
Expected behavior

To be able to delete specific volumes more transparently, that is: now, in order to be completely sure of the correctness and safety of the procedure, it is necessary to transfer all empty volumes on all nodes to read-only mode, and then delete them consistently everywhere - this is highly manual work, which can lead to oversight and errors. It would be extremely useful to have a command that can be used to transfer the id of the volume, which, for example, is switched to read-only mode, checked and if it is empty on all nodes, it is quietly deleted.

If there are no free volumes left to be able to compact or, in other words, compact the data on volumes with the release and deletion of unnecessary ones.

All this will allow better management of the available space in the cluster and avoid the human factor when servicing specific volumes in large clusters.
Screenshots
Immediately after cleaning and vacuum:

After a short time after the next assembly and roll-out cycle:

Additional context
# cassandra -v
3.11.6
# weed version
version 8000GB 2.58 297b412 linux amd64

merging volumes are not feasible for current design.
Adding a fix to delete a volume is the volume has only orphaned data.


rgw: add vhost style support for rgw in ocs-op

Support vhost style for RGW server. The feature was part of Rook v1.14 release. This allows user to access bucket as s3 endpoint. In OCS-Op we automatically add the route hosts to the list

/test ocs-operator-bundle-e2e-aws

/retest


Removing Assigned but unused variable warnings

Coverage decreased (-0.002%) to 98.125% when pulling 9f3721e11f5b5ede493f43ef95fc44b3181ed43f on fix_assigned_but_unused_variables into 595bb86e4a5ea25681889af2babe4db0d0ba3a45 on master.


Do not use $view in block template to avoid conflict with elements

Now we can't edit /account/welcome page with an error. This PR will fix it.
Error thrown with message "Call to undefined method Concrete\Core\Notification\View\UserSignupListView::showControls()"

Stacktrace:
#28 Error in /Users/hissy/Repositories/concrete5/concrete/elements/block_header_view.php:14
#27 include in /Users/hissy/Repositories/concrete5/concrete/src/Block/View/BlockView.php:268
#26 Concrete\Core\Block\View\BlockView:renderViewContents in /Users/hissy/Repositories/concrete5/concrete/src/View/AbstractView.php:151
#25 Concrete\Core\View\AbstractView:render in /Users/hissy/Repositories/concrete5/concrete/src/Area/Area.php:873
#24 Concrete\Core\Area\Area:display in /Users/hissy/Repositories/concrete5/concrete/single_pages/desktop.php:7
#23 include in /Users/hissy/Repositories/concrete5/concrete/src/View/View.php:210
#22 Concrete\Core\View\View:renderViewContents in /Users/hissy/Repositories/concrete5/concrete/src/View/AbstractView.php:151
#21 Concrete\Core\View\AbstractView:render in /Users/hissy/Repositories/concrete5/concrete/src/Http/ResponseFactory.php:147
#20 Concrete\Core\Http\ResponseFactory:view in /Users/hissy/Repositories/concrete5/concrete/src/Http/ResponseFactory.php:209
#19 Concrete\Core\Http\ResponseFactory:controller in /Users/hissy/Repositories/concrete5/concrete/src/Http/ResponseFactory.php:369
#18 Concrete\Core\Http\ResponseFactory:collection in /Users/hissy/Repositories/concrete5/concrete/src/Routing/DispatcherRouteCallback.php:34
#17 Concrete\Core\Routing\DispatcherRouteCallback:execute in /Users/hissy/Repositories/concrete5/concrete/src/Http/DefaultDispatcher.php:115
#16 Concrete\Core\Http\DefaultDispatcher:handleDispatch in /Users/hissy/Repositories/concrete5/concrete/src/Http/DefaultDispatcher.php:53
#15 Concrete\Core\Http\DefaultDispatcher:dispatch in /Users/hissy/Repositories/concrete5/concrete/src/Http/Middleware/DispatcherDelegate.php:39
#14 Concrete\Core\Http\Middleware\DispatcherDelegate:next in /Users/hissy/Repositories/concrete5/concrete/src/Http/Middleware/ThumbnailMiddleware.php:60
#13 Concrete\Core\Http\Middleware\ThumbnailMiddleware:process in /Users/hissy/Repositories/concrete5/concrete/src/Http/Middleware/MiddlewareDelegate.php:38
#12 Concrete\Core\Http\Middleware\MiddlewareDelegate:next in /Users/hissy/Repositories/concrete5/concrete/src/Http/Middleware/FrameOptionsMiddleware.php:39
#11 Concrete\Core\Http\Middleware\FrameOptionsMiddleware:process in /Users/hissy/Repositories/concrete5/concrete/src/Http/Middleware/MiddlewareDelegate.php:38
#10 Concrete\Core\Http\Middleware\MiddlewareDelegate:next in /Users/hissy/Repositories/concrete5/concrete/src/Http/Middleware/CookieMiddleware.php:37
#9 Concrete\Core\Http\Middleware\CookieMiddleware:process in /Users/hissy/Repositories/concrete5/concrete/src/Http/Middleware/MiddlewareDelegate.php:38
#8 Concrete\Core\Http\Middleware\MiddlewareDelegate:next in /Users/hissy/Repositories/concrete5/concrete/src/Http/Middleware/ApplicationMiddleware.php:29
#7 Concrete\Core\Http\Middleware\ApplicationMiddleware:process in /Users/hissy/Repositories/concrete5/concrete/src/Http/Middleware/MiddlewareDelegate.php:38
#6 Concrete\Core\Http\Middleware\MiddlewareDelegate:next in /Users/hissy/Repositories/concrete5/concrete/src/Http/Middleware/MiddlewareStack.php:86
#5 Concrete\Core\Http\Middleware\MiddlewareStack:process in /Users/hissy/Repositories/concrete5/concrete/src/Http/DefaultServer.php:85
#4 Concrete\Core\Http\DefaultServer:handleRequest in /Users/hissy/Repositories/concrete5/concrete/src/Foundation/Runtime/Run/DefaultRunner.php:104
#3 Concrete\Core\Foundation\Runtime\Run\DefaultRunner:run in /Users/hissy/Repositories/concrete5/concrete/src/Foundation/Runtime/DefaultRuntime.php:102
#2 Concrete\Core\Foundation\Runtime\DefaultRuntime:run in /Users/hissy/Repositories/concrete5/concrete/dispatcher.php:39
#1 require in /Users/hissy/Repositories/concrete5/index.php:3
#0 require in /Users/hissy/.composer/vendor/laravel/valet/server.php:106

@aembler should we change the code that is causing $view to be included in the view and rename it to something like $_view? if this broke it could cause other issues with other blocks.

@Mnkras no, $view is supposed to be available in templates. It corresponds to the current view that you're in. But yeah, this block was wrong in assigning its own variable to the $view variable.


screenshot changed in readme

previously was not working , not working fine !! Went through lot of trouble solved this bug !

The PR is merged but kindly add few more snapshots covering the other links.
The main motive of adding these snapshots is that people should be able to see how the template looks like
Happy contributing :)


add test

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

Hi @aishwariyatamilmaran
creating the fork and pushing the changes
it's not accepted

Close these as suggested above.

closing this PR as this is opened as part of testing


createRenderManager throws bad_alloc exception

I'm trying to build the RenderManagerD3DPresentSideBySideExample.cpp myself so that I have a starting point for my own project.
Problem is, the call to osvr::renderkit::createRenderManager in line 195 throws the following exception:
Unhandled exception at 0x74AEC54F in RenderManagerTest.exe: Microsoft C++ exception: std::bad_alloc at memory location 0x002FE678.
I'm building with Visual Studio 2015 (v140) and I noticed that the the OSVR libraries were probably built with toolset v120. So my first guess was that the problem could be due to different heaps/runtimes across the DLL boundary. So I changed the toolset of my test application to v120, but it still throws the exception.
The exception is also thrown when I change the render library to OpenGL.
What could be the problem? Or how could I investigate it further?

I do my testing on VS2013, and that is what I deploy the RenderManager installers for.  I think that this is also what the OSVR builds use, so you might try that.  I have in the past built both the OSVR libraries and RenderManager on VS 2015 and that worked.
If you can get VS2013 and try it, that is probably the safest bet.
If you can catch a stack trace in the debugger (you'll need to build JsonCPP in Debug mode to link against it in Debug mode), I'd love to know where the crash is so we can fix it.  Otherwise, I'll try compiling RenderManager with VS2015 and see if I can reproduce it.
Please report whether VS2013 fixes it or not.

I just realized that it works when I build my sample application in Release configuration. Interestingly it doesn't make a difference whether I build my sample application with the current v140 toolset or with the v120 toolset (which is the VS2013 toolset).
It is still my impression that the problem comes from the fact that different C++ runtimes are used in the OSVR DLLs and in my application.
My experience with shared libraries under Windows is this: When linking them statically it is absolutely crucial that the same settings are used for building the application and for building the static library (same toolset, same debug/release configuration, same threading settings, ...). But we are linking the OSVR DLLs dynamically and for this case the rules are much less strict. In fact it should be perfectly possible to build the OSVR DLLs and the application with different toolsets and therefore targeting different C++ runtimes. But for this to work one must make sure that the same runtime is used for deleting/freeing objects/memory as was used for creating/allocating it. I.e. objects created from within the DLL must be deleted from within the DLL and vice versa. This can become tricky when passing smart pointers or things like std::string across the DLL boundary. My experience is that it is best to have a pure C-style DLL interface (with functions exposed to delete objects created from within the DLL) and then maybe have a (header only) C++ wrapper around it.
To me the bad_alloc problem described above indicates that there could possibly be some room for improvement in the DLL interface of the RenderManager.

As long as this issue exists I cannot build my application in Debug configuration, which makes it a bit of a pain to develop.
Unfortunately the OSVR SDK does not seem to include debug builds of its libraries. It would be great if you could add the debug build of the render manager to the SDK (at least for now, until the DLL interfacing problem is fixed).

There is a C API for RenderManager that should behave the way you hope -- no problems linking debug to release and so forth across the DLL boundary.  It is the one to use for safety.
I'll ask the team to start building debug libraries in the installers as well as release -- that's a great idea!

Just a heads up: I can build fine against the debug libraries, however during runtime I am also receiving a std::bad_alloc exception. Toggling back to Release compilation works.

Thanks for the report.  Can you tell me what configuration you're running under -- DirectMode or not?  Which HMD?  Does it happen on one of the example programs (which one)?

Debug works without crashing with Visual Studio 2015 latest patches on Windows 10 with an nVidia GTX 1080 driver version 382.53 using an HDK 2.0 for tracking but displaying on an undistorted extended-mode window on the screen.

It also runs (though without tracking) for the HDK 2.0 in DirectMode.  It does not crash in the create code.
At this point, we'll need to know which configuration it crashes in so that we can reproduce it.

Closed as not reproducible


feat: add topologySpreadConstraints runner configuration

Fixes #336

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


Remove vagrantfiles from vendor

#21217 removed Vagrantfile from .gitingore meaning that vendor validations would not pass because these files became visible.
#21261 could not update vendor without adding those extra files so they were included in the pr.
same time:
02476b23a removed the Vagrantfile check to the vendor importer ignore list.
All this means that we are back in the state where we can't update vendoring because master contains files that vendor script doesn't include.
@vdemeester @icecrime
Signed-off-by: Tonis Tiigi<EMAIL_ADDRESS>

LGTM

Force merging to unblock other PR.


Allow the default service provider to be blocked

Added for Android
Based on work by Matt Mallozzi (mmallozzi)

Rejected


[DUOS-2196][risk=low] Initial Acknowledgement Service implementation.

DUOS-2196 adds requirements for an Acknowledgement Service and API endpoints so that user acknowledgements of agreement to various terms and conditions throughout DUOS can be minimized.
This pull request adds the following:

Resource endpoints to the /api/user group for obtaining and setting acknowledgements
A thin layer of business logic in an Acknowledgement Service
Tables, indexes and an associated DAO to persist and retrieve acknowledgements
Swagger documentation

The POM was updated to include a local jacoco coverage report.

Have you read CONTRIBUTING.md lately? If not, do that first.

Label PR with a Jira ticket number and include a link to the ticket
Label PR with a security risk modifier [no, low, medium, high]
PR describes scope of changes
Get a minimum of one thumbs worth of review, preferably two if enough team members are available
Get PO sign-off for all non-trivial UI or workflow changes
Verify all tests go green
Test this change deployed correctly and works on dev environment after deployment

@quazi-broad - what kind of details in the error messages were you looking for? I'm inclined to continue the approach here because of NIST 800-53 guidance on not accidentally revealing internals (SI-11 ERROR HANDLING).
Good point, I guess having more details here would be risking that. I was thinking about something generic like "Please pass in a list of acknowledgment keys" but since we would implement this endpoint internally anyways I think this is good the way it is. I'll approve the PR! Thank you.


Option To Remove Configuration Menu Entirely

Describe the Suggestion
An area in the configs, or even just a guide on which files to deleted or something to remove the create configuration menu would be great!
Screenshots and Videos
![Screenshot 2023-12-20 195509](https://github.com/Fabricators-of-Create/Create/assets/154487873/06da0fe8-d2bf-4fcc-a05a-68ac1397
Uploading Vivecraft 1.19.2 jrbudda-NONVR-fabric-0.0.15_ 1.19.2 2023-12-20 20-01-42.mp4…
5cc0)
Additional Context
It seems that Create doesn't work well with more fragile things like questcraft (vr minecraft) due to it's sepperate, fancy configuration menu. Because this menu is animated in different ways and is additional to the main menu, stuff like questcraft can't run create purely because it can't start the game. Whenever the game loads, It gets stuck on an infinitely looping loading screen while it's trying to load the hidden configuration menu. The ability to remove the button to get to the config menu was nice (which also fixed a seperate issue), but the config menu still has issues when rendering. I have provided a video of the loading loop and the mods that are used.

that's not how that works. If you don't open the menu it essentially doesn't exist. Can't fix anything without logs, but it's probably a problem with running on the quest that won't be fixed.


tRNA details are not getting updated

Update the code to incorporate tRNA and rRNA details in nafeatureimp table.


Config parameter 'math' does not have an effect

In the User docs, I can find this statement:

to enable KaTeX globally set the parameter math to true in a project’s configuration
to enable KaTeX on a per page basis include the parameter math: true in content files

In the config file of the example site, math is disabled, however:
https://github.com/razonyang/hugo-theme-bootstrap/blob/de4a40fd66ce4a16eff559c312386bd4c9aed70f/exampleSite/config/_default/params.toml#L30
Although math setting is disabled, formulae are displayed correctly.
Does this configuration setting have an effect? Is it considered? Or can this setting be removed?
For me it looks like math is enabled all the time, regardless of this setting.

The site parameter math only effect on the case of true, it's usually used by the summaries of list page, if post summaries contains formulae.
For example:
Summary Begin.

\(\KaTeX\) and $\LaTeX$.

Summary End.
<!--more-->

The formulae won't be rendered if the site parameter math is disabled.

The formulae on the list page won't be rendered if the site parameter math is disabled.

I can't confirm this:
hugo new site myblog
cd myblog/
git clone https://github.com/razonyang/hugo-theme-bootstrap themes/hugo-theme-bootstrap
cp -a themes/hugo-theme-bootstrap/exampleSite/* .

Now set math = false in config/_default/params.toml
Serve the site:
hugo new site myblog
cd myblog/
git clone https://github.com/razonyang/hugo-theme-bootstrap themes/hugo-theme-bootstrap
cp -a themes/hugo-theme-bootstrap/exampleSite/* .

No visit: http://localhost:1313/en/posts/math-typesetting/: formulae are displayed correctly though math ist set to false.
Please note: This setting was used originally:
https://github.com/razonyang/hugo-theme-bootstrap/blob/c037d60b6530cfef4cec05abdaabe3be47b2a61f/layouts/partials/head/math.html#L1-L4
However, with current HEAD of repo, file layouts/partials/head/math.html does not exist any more, so I guess this setting is not evaluated any more.

The math head was moved to https://github.com/razonyang/hugo-theme-bootstrap/blob/de4a40fd66ce4a16eff559c312386bd4c9aed70f/layouts/partials/assets/math/css.html#L1.
And that is expected. The site parameter math=false doesn't mean that disable math globally. As long as one of the two(site's math and page math) is true, the math will be loaded. It's used to display formulae that on non-detail pages, such as summaries:

It doesn't make sense that disable math globally, because the pages require the math.

Never mind.


docs: include 'direct-overridden' in check licenses

Should be merged after #931 and just before the next release

Status
READY
Description
Documents the changes made by #931
Somewhat related to #901
Type of Change

[ ] ✨ New feature (non-breaking change which adds functionality)
[ ] 🛠 Bug fix (non-breaking change which fixes an issue)
[ ] ❌ Breaking change (fix or feature that would cause existing functionality to change)
[ ] 🧹 Code refactor
[ ] ✅ Build configuration change
[X] 📝 Documentation
[ ] 🗑 Chore

Drafting until #931 is merged.


Give class names to receipt and source links

Useful for manipulating the DOM.

Coverage remained the same at 100.0% when pulling 584a7cdc53e4c8266c2c483ed371eca84128b409 on irio-view-classes into 802c58038093dcef157719d4eed90c92d13519d7 on master.

Coverage remained the same at 100.0% when pulling 0f72e863e643c83df22d92956d8bf86335527c49 on irio-view-classes into 802c58038093dcef157719d4eed90c92d13519d7 on master.


typos

I don´t know how, but I sort of screwed up - I wanted to correct typos (GCube vs GLube and find our vs find out) in your readme file, but somehow I copied your project to my github homepage.
I won´t be bothered to explore/delete/fix it and I won´t be editing your wiki/readme file either in the future. Feel free to delete my homepage github page.

Don't worry, this is what Github is for! Once you make a change, you get a copy of your own to make more changes. I can accept or deny changes when you're done. Keep up the good work. I already merged the changes.

done.


Fixes for middleware when reloadOnSearch

added fixes for middleware when reloadOnSearch = false, and removed autobind actions

@e-schultz When you have a sec, can you take a look at these proposed changes?

@neilff if someone modifies the query string directly in the browser, or copy/pastes a link - does the state get updated?
Just wondering if we should also be hooking into $locationChangeSuccess

@e-schultz Ah, it doesn't... let me play with $locationChangeSuccess... my only concern is that both $locationChangeSuccess & $stateChangeSuccess are fired when the change from within ui router

@e-schultz pushed up the change using $locationChangeSuccess


Security enabled IT

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@6b34752). Click here to learn what that means.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #21   +/-   ##
=======================================
  Coverage        ?   83.23%
  Complexity      ?      554
=======================================
  Files           ?       61
  Lines           ?     2058
  Branches        ?      146
=======================================
  Hits            ?     1713
  Misses          ?      238
  Partials        ?      107

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6b34752...01dac57. Read the comment docs.


set local_ip default to None on all connected BIG-IPs

@mattgreene
What issues does this address?
Fixes #368
WIP #368
...
What's this change do?
Default the local_ip attribute on all BIG-IPs to None. Today there are code branches which reference the local_ip attribute ( icontrol_driver.iControlDriver.tunnel_sync() ) without it being defined. This raises AttributeError on each period sync.
Where should the reviewer start?
Create an LBaaSv2 implementation with tenant network types as VLAN and with no VTEP settings set in the agent config. Watch the errors the logs in period tasks.
Add this assignment and watch the log errors go away.
Any background context?

Closing this PR into master.  We'll merge #370 from liberty->mitaka->master.


(SPXERR_MIC_ERROR) GetCallStack not implemented in WinRT - DialogServiceConnector

Hi,
Describe the bug
(RuntimeError) : 0x15 (SPXERR_MIC_ERROR) GetCallStack not implemented in WinRT
To Reproduce
Code:
var commandsConfig = CustomCommandsConfig.FromSubscription(applicationId, subscription, region);
commandsConfig.Language = "fr-fr";

var micro = devices.FirstOrDefault((c) => c.Name.Contains("Cinema")).Name;
                var config = AudioConfig.FromMicrophoneInput(micro);

_dialogServiceConnector = new DialogServiceConnector(commandsConfig, audioConfig);
_dialogServiceConnector.ActivityReceived += OnActivityReceived;
_dialogServiceConnector.Recognizing += OnRecognizing;
_dialogServiceConnector.Recognized += OnRecognized;
_dialogServiceConnector.Canceled += OnCanceled;
_dialogServiceConnector.SessionStarted += OnSessionStarted;
_dialogServiceConnector.SessionStopped += OnSessionStopped;

await _dialogServiceConnector.ConnectAsync();

bool isMicAvailable = true;
                try
                {
                    var mediaCapture = new Windows.Media.Capture.MediaCapture();
                    var settings = new Windows.Media.Capture.MediaCaptureInitializationSettings();
                    settings.StreamingCaptureMode = Windows.Media.Capture.StreamingCaptureMode.Audio;
                    await mediaCapture.InitializeAsync(settings);
                }
                catch (Exception)
                {
                    isMicAvailable = false;
                }

                if (!isMicAvailable)
                {
                    await Windows.System.Launcher.LaunchUriAsync(new Uri("ms-settings:privacy-microphone"));
                }
                else
                {
                    Debug.WriteLine("Microphone has been enabled");
                }

await _dialogServiceConnector.ListenOnceAsync();

Steps to reproduce the behavior:

Instanciate CustomCommandsConfig
Instanciate AudioConfig using a specific microphone (in my case: "Microsoft LifeCam Cinema")
Instanciate DialogServiceConnector (using the CustomCommandsConfig instanciated in 1 and AudioConfig from 2)
Call ConnectAsync from DialogServiceConnector
Call ListenOnceAsync()
SessionsStarted is called, then SpeechRecognitionCanceledEvent fired with the exception details.

Expected behavior
The ListOnceAync() should not fire the Canceled event.
(By the way, I am using ListenOnceAsync here because StartKeywordRecognitionAsync do nothing (it's working on x64 Machine, when executing locally on my machine).)
Version of the Cognitive Services Speech SDK
1.19.0
Platform, Operating System, and Programming Language

OS: Windows 10 Iot Core (OS Version: 10.0.17763.1577)
Hardware - ARM, on Dragonboard 410C
Programming language: C#

Additional context

Error: 0x15 (SPXERR_MIC_ERROR) GetCallStack not implemented in WinRT
SessionId: 774ade1500ae4b798a4969dba320127
Logging:
logfile.txt

It's working on Raspberry Pi 3 with W10 Iot 17763.
Not working on Dragonboard 410C.
I tried this project: https://github.com/microsoft/Windows-iotcore-samples/tree/develop/Samples/WebcamApp
It's working well (no need to use the devcon remove cmd).
I think the problem is coming from _dialogServiceConnector.
It seems no able to use the microphone on Dragonboard, I don't know why.
The StartKeywordRecognitionAsync() does nothing. Nothing append when saying my usual key word.
Your help will be appreciate a lot, I'm stuck on it.
Thanks.

Thanks for providing the log, from there it looks like the microphone isn't being enumerated. The "model" field is empty.
"audio":{"source":{"type":"Microphones","model":"","samplerate":"16000","bitspersample":"16","channelcount":"1"}}}}
You mentioned that you're not using the instructions  devcon remove cmd per the WebcamApp sample, maybe that or something following is missing in your setup?

Hi again :)
I tried again using the devcon remove ADCM\QCOM242E and  devcon remove AUDD\QCOM2451 as mentionned.

using the AudioConfig.FromMicrophoneInput(**):
StartKeywordRecognitionAsync() not working: nothing append, microphone seems not to be used (the light on the cam don't turn on)

using the AudioConfig.FromDefaultMicrophoneInput():
StartKeywordRecognitionAsync() is working well !

BUT, using devcon remove will produce a negative effect: the HDMI sound is not working anymore !
I added a registry entry to enable HDMI audio:
reg add HKLM\System\ControlSet001\Services\QCAUD\TopologySpeaker\Device0\DeviceConfig /v DeviceID /t REG_DWORD /d 0x46 /f
The HDMI audio is working fine until I use the devcon remove cmd.
In french, I will say: "C'est le chat qui se mord la queue" => I'm stuck: impossible to use HDMI audio (using default driver) and USB microphone (LifeCam Cinema) with DialogServiceConnector.
==> I think that the solution would be to:

be able to choose the microphone with the connector (using the AudioConfig.FromMicrophoneInput(**LifeCamId**) ) (but I have the "bad conversion" error listed)
Avoid using the devcon remove cmd

(This is very important to keep the HDMI audio. This is the reason why I choose a DragonBoard 410C instead of Raspberry Pi 3 or 4, which is not supported by W10 (drivers are not implemented by MS))
Thanks again for your help. The light is not so far, we should be able to find a solution :)
I continue investigate.

Fixed with the previous listed issue.
Use the AudioConfig.FromMicrophoneInput(deviceID) did the trick.
I can use the specified microphone, without removing default sound device of the Dragonboard 410C.
Thanks.


fix embedded to have typed key for array

proposed PR for issue #5

Whoops!  Good catch, thanks.  This might break some tests but I'll see about fixing them post hoc.
Other issue is that we should really be pulling into develop, but I'm not too picky.


License agreement page not working

Original issues: https://github.com/ufal/clarin-dspace/issues/1100
Fixed here: https://github.com/dataquest-dev/DSpace/pull/534

I need to reproduce it on dev5, but at first a new image must be generated.

Reproduced, I can see a lot of records in the database after download.

Fixed here: https://github.com/dataquest-dev/DSpace/pull/534


refactor(form): don't clear errors on reset

form.reset() is often being used to reset input elements like password inputs, when the request
failed. One example would be Laravel/Jetstream in its various password challenge forms.
With this change we are back to the behavior of inertia and would 1. make a migration easier and 2. lose nearly no DX. This is, because in the event of a successful request form errors are already not present anymore (since it was successful). The only case where clearErrors() now has to be called is in cases where
the UI needs to be reset, eg. when closing a modal with a form, which can still be done via the form.clearErrors() method.
But as already discussed on discord, I'm open for suggestions.

Thanks! I'll release this change with tables in the coming days.


Investigate if the build time of the sparsetools extension can be improved

https://github.com/rgommers/scipy/issues/20#issuecomment-869179611 shows that the two slowest files to build are sparse/bsr.cxx (~90 sec) and sparse/csr.cxx (~70 sec). bsr.cxx includes the csr routines, so it's basically building the same thing twice. It should be investigated if this can be improved.
We are interested in two things:

Single file build time (this is the limiting factor when building on a machine with many cores)
Total build time (this is limiting on a machine with an underpowered CPU)

If one of those can be improved without deteriorating the other much, that would be really helpful.
Maybe the source code can be restructured. Another option could be to use a unity build; Meson supports that out of the box (https://mesonbuild.com/Unity-builds.html) - but of course then things in different files must not have the same name.
Also see for getting more fine-grained timing profiles:

https://stackoverflow.com/questions/13559818/profiling-the-c-compilation-process
https://aras-p.info/blog/2019/01/12/Investigating-compile-times-and-Clang-ftime-report/
https://aras-p.info/blog/2019/01/16/time-trace-timeline-flame-chart-profiler-for-Clang/

Also would be good to determine build times of:

using different build flags (-O0 ... -O3, with/without -g)
gcc vs clang

Going to close this, it doesn't seem likely it will be successful or worth the effort (single file build time will still be limiting).


Top Navigation bar styling

Add a (hopefully) non-abrasive looking color to the navbar to setup styling and remove the blue color and conventional anchor tag look from the links in the navbar.
This should include the login, home, logout links.

OPTIONAL: 'Active' tagging? - not necessary though

Completed


Fixing CalendarView and GridViewItem styling

CalendarView and GridViewItem styling tweaks.

CalendarView header text is moved up one pixel.

Margin between CalendarView header and previous navigation button is reduced to 8px.

Margin between CalendarView previous and next navigation buttons is reduced to 8px.

CalendarView month, year, decade view item text is moved up one pixel.

Today font weight is changed to Normal instead of hard-coded SemiBold.

A few CalendarView header and navigation buttons high contrast brushes are fixed.

GridViewItem's unselected checkbox brushes are fixed.

/azp run

CalendarView and GridViewItem styling tweaks.
...

Today font weight is changed to Normal instead of hard-coded SemiBold.
...

Could this be set with a Light-weight style, to keep the SemiBold weight, but still allow developers to override the weight without re-templating?

@mdtauk, we are now using this theme resource:
Normal
This is similar to the resources
SemiBold
SemiBold
that were already in use.
I think that's fine, right?

Then did the design spec say to change from semibold?

@mdtauk, yes indeed. The new design calls for a Normal font instead.

@mdtauk, yes indeed. The new design calls for a Normal font instead.

Ah that's ok then, I misunderstood your comment when you said hard coded


Scroll parent on element zoom and adjust element position in parent

Describe the bug
I have a fixed-position container <div> with overflow: scroll that holds a panzoomable element (say, an <img>). When zooming in on the <img> with focal point zooming (using the .zoom(value) method programmatically), the <img> is positioned at a negative y offset within the parent.
So, to view the top part of the image, I now have to pan it down.
Your environment

Version of panzoom: 4.4.3 (using https://unpkg.com/<EMAIL_ADDRESS>Browser and browser version: Chrome 95, Firefox 90

Expected behavior
I would expect the image to always be aligned at the top of the parent container. On zooming, I would expect the scroll position of the parent to be set to the focal point of the image. After zooming, when scrolling all the way up on the parent, I would expect to see the top of the image.
Actual behavior
On zooming, the zoomed image has a negative top position wrt. the parent. If I zoom when scrolled to the top of the container, the scroll position/scrollbar doesn't move and stays on top.
Steps to reproduce
See this demo: https://jsbin.com/laruyubuxa/edit?html,output

Thanks for opening an issue. However, panning and scrolling don't work well together as they are naturally in competition with each other. I would recommend supporting one or the other. But, that's not the real issue here. Essentially, scale transforms do not count as overflow natively, so even with no translation, you still would not be able to scroll the image into view when zoomed in. That's not something I can change in the library as it is native browser behavior.
That said, there are ways to work around that behavior if you prefer scrolling to panning. Maybe this example will help: https://jsbin.com/bixakad/1/edit?html,js,output
This changes the transform-origin so the image stays in view in the scrolling area.


Make startup launchers for the apps id:8

TODO  Make startup launchers for the apps id:8 gh:8
ubuntuafterconf.sh:1168
@imdone commenter. The developer's task board. imdone.io

TODO  Make startup launchers for the apps +working sa adaug zoho docs, zoho cliq, hipchat, caffeine indicatir, dropbox (dropbox autostart y), mega, nextcloud, tresorit id:8 gh:8
ubuntuafterconf.sh:1168
@imdone commenter. The developer's task board. imdone.io

TODO  Make startup launchers for the apps +working sa adaug zoho docs, zoho cliq, hipchat, caffeine indicatir, dropbox (dropbox autostart y), mega, nextcloud, tresorit id:8 gh:8
ubuntuafterconf.sh:1168
@imdone Issue Closer. The developer's task board. imdone.io


Make failures more obvious

This pull requests makes two changes to try and help triage failures a little bit easier:

Attempt to fetch artifacts if there was a 404 error.
Fetch the build's status.json if the build's result value from tuxsuite's builds.json is neither pass nor fail (maybe a race between the tuxsuite client/backend?) to try and get an updated result.

Each commit has further information/motivation. This has not seen any formal testing yet but there is no obvious errors that I can see.

Thanks for the review!


Spevacus: Blacklist winrsgold.com

Spevacus requests the blacklist of the website winrsgold\.com. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

winrsgold\.com has been seen in 6 true positives, 0 false positives, and 0 NAAs.

Approved by tripleee in Charcoal HQ


[Bet] Only part of the video is downloaded

FastHub doesn't support issue templates, sorry. I'm using the latest version and have searched for existing issues.
Log:
[debug] System config: []
[debug] User config: ['-f', 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best', '--write-sub', '--sub-format', 'srt/ssa/ass/vtt/dfxp/ttml/best', '--convert-subs', 'srt']
[debug] Custom config: []
[debug] Command-line args: ['-v', 'http://www.bet.com/video/a-very-soul-train-special/r-and-b-groups/2017/full-show-hosted-by-sevyn-streeter-and-luke-james.html']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.08.18
[debug] Python version 3.6.1+ - Linux-4.9.0-3-amd64-x86_64-with-debian-9.0
[debug] exe versions: ffmpeg 3.2.5-1, ffprobe 3.2.5-1, rtmpdump 2.4
[debug] Proxy map: {}
[Bet] full-show-hosted-by-sevyn-streeter-and-luke-james: Downloading webpage
[Bet] 02055062-4fa5-3c6e-9031-48f7bb07a572: Downloading info
[Bet] 9f57fb50-8c28-3608-a9b6-e2369e40a5a9: Extracting information
[Bet] 9f57fb50-8c28-3608-a9b6-e2369e40a5a9: Downloading video urls
[Bet] 9f57fb50-8c28-3608-a9b6-e2369e40a5a9: Downloading m3u8 information
[Bet] 5e0e4d91-be86-35fe-bb4d-99092cdf13ee: Extracting information
[Bet] 5e0e4d91-be86-35fe-bb4d-99092cdf13ee: Downloading video urls
[Bet] 5e0e4d91-be86-35fe-bb4d-99092cdf13ee: Downloading m3u8 information
[Bet] 0be9a2d3-e5af-3b01-b31f-7b71509dfe86: Extracting information
[Bet] 0be9a2d3-e5af-3b01-b31f-7b71509dfe86: Downloading video urls
[Bet] 0be9a2d3-e5af-3b01-b31f-7b71509dfe86: Downloading m3u8 information
[Bet] 0269d9c2-2cb5-30bf-b7bf-f361f8c96cbc: Extracting information
[Bet] 0269d9c2-2cb5-30bf-b7bf-f361f8c96cbc: Downloading video urls
[Bet] 0269d9c2-2cb5-30bf-b7bf-f361f8c96cbc: Downloading m3u8 information
[Bet] 81604e1a-6ea5-3652-afca-e4fa84d35097: Extracting information
[Bet] 81604e1a-6ea5-3652-afca-e4fa84d35097: Downloading video urls
[Bet] 81604e1a-6ea5-3652-afca-e4fa84d35097: Downloading m3u8 information
[Bet] 4ce75047-af8b-32ba-a7b8-91509199ec74: Extracting information
[Bet] 4ce75047-af8b-32ba-a7b8-91509199ec74: Downloading video urls
[Bet] 4ce75047-af8b-32ba-a7b8-91509199ec74: Downloading m3u8 information
[Bet] 5ad019d9-d302-3207-93d7-66ff105c3fcc: Extracting information
[Bet] 5ad019d9-d302-3207-93d7-66ff105c3fcc: Downloading video urls
[Bet] 5ad019d9-d302-3207-93d7-66ff105c3fcc: Downloading m3u8 information
[info] Writing video subtitles to: A Very Soul Train R&B House Party-9f57fb50-8c28-3608-a9b6-e2369e40a5a9.en.vtt
[debug] Invoking downloader on 'https://cp541865-vh.akamaihd.net/i/videohub/specials/2017/hdbesp185a/full-episode/hdbesp185a1_,384x216_278,512x288_498,640x360_1028,768x432_1528,960x540_2128,1280x720_3128,1920x1080_5128,.mp4.csmil/index_6_av.m3u8?null=0&hdntl=exp=1503081990~acl=%2fi%2fvideohub%2fspecials%2f2017%2fhdbesp185a%2ffull-episode%2fhdbesp185a1_,384x216_278,512x288_498,640x360_1028,768x432_1528,960x540_2128,1280x720_3128,1920x1080_5128,.mp4.csmil%2f*~data=hdntl~hmac=5d9a145ace04f1f85113075744be345e5debf9a39dffce699f942728dde14857'
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 57
[download] Destination: A Very Soul Train R&B House Party-9f57fb50-8c28-3608-a9b6-e2369e40a5a9.mp4
[download] 100% of 206.49MiB in 00:08
[debug] ffmpeg command line: ffprobe -show_streams 'file:A Very Soul Train R&B House Party-9f57fb50-8c28-3608-a9b6-e2369e40a5a9.mp4'
[ffmpeg] Fixing malformed AAC bitstream in "A Very Soul Train R&B House Party-9f57fb50-8c28-3608-a9b6-e2369e40a5a9.mp4"
[debug] ffmpeg command line: ffmpeg -y -i 'file:A Very Soul Train R&B House Party-9f57fb50-8c28-3608-a9b6-e2369e40a5a9.mp4' -c copy -f mp4 -bsf:a aac_adtstoasc 'file:A Very Soul Train R&B House Party-9f57fb50-8c28-3608-a9b6-e2369e40a5a9.temp.mp4'
[ffmpeg] Converting subtitles
[debug] ffmpeg command line: ffmpeg -y -i 'file:A Very Soul Train R&B House Party-9f57fb50-8c28-3608-a9b6-e2369e40a5a9.en.vtt' -f srt 'file:A Very Soul Train R&B House Party-9f57fb50-8c28-3608-a9b6-e2369e40a5a9.en.srt'
Deleting original file A Very Soul Train R&B House Party-9f57fb50-8c28-3608-a9b6-e2369e40a5a9.en.vtt (pass -k to keep)

Link: http://www.bet.com/video/a-very-soul-train-special/r-and-b-groups/2017/full-show-hosted-by-sevyn-streeter-and-luke-james.html
The resulting file is 5 minutes and 40 seconds, despite the site listing it as 38 minutes 57 seconds. TV provider account is normally required but youtube-dl bypasses this for MTVN network sites.

Listing 38:57 does not mean anything. Can you watch complete 38:57 in browser? Provide MSO credentials.

Actually, there are multiple HLS playlists like nick.com, and youtube-dl does fetch the URL to all of them, but then proceeds to only download the first one:
http://media-utils.mtvnservices.com/services/MediaGenerator/mgid:cq:video:bet.com:9f57fb50-8c28-3608-a9b6-e2369e40a5a9?stage=prod&acceptMethods=hls
http://media-utils.mtvnservices.com/services/MediaGenerator/mgid:cq:video:bet.com:5e0e4d91-be86-35fe-bb4d-99092cdf13ee?stage=prod&acceptMethods=hls
http://media-utils.mtvnservices.com/services/MediaGenerator/mgid:cq:video:bet.com:0be9a2d3-e5af-3b01-b31f-7b71509dfe86?stage=prod&acceptMethods=hls
http://media-utils.mtvnservices.com/services/MediaGenerator/mgid:cq:video:bet.com:0269d9c2-2cb5-30bf-b7bf-f361f8c96cbc?stage=prod&acceptMethods=hls
http://media-utils.mtvnservices.com/services/MediaGenerator/mgid:cq:video:bet.com:81604e1a-6ea5-3652-afca-e4fa84d35097?stage=prod&acceptMethods=hls
http://media-utils.mtvnservices.com/services/MediaGenerator/mgid:cq:video:bet.com:4ce75047-af8b-32ba-a7b8-91509199ec74?stage=prod&acceptMethods=hls
http://media-utils.mtvnservices.com/services/MediaGenerator/mgid:cq:video:bet.com:5ad019d9-d302-3207-93d7-66ff105c3fcc?stage=prod&acceptMethods=hls

How do you correctly download a single video which only seems to be available in multiple segments? The patch below works:
diff --git a/youtube_dl/extractor/bet.py b/youtube_dl/extractor/bet.py
index d7ceaa85e..da4e17db9 100644
--- a/youtube_dl/extractor/bet.py
+++ b/youtube_dl/extractor/bet.py
@@ -66,15 +66,16 @@ class BetIE(MTVServicesInfoExtractor):
         mgid = self._extract_mgid(webpage)
         videos_info = self._get_videos_info(mgid)

-        info_dict = videos_info['entries'][0]
+        entries = videos_info['entries']

-        upload_date = unified_strdate(self._html_search_meta('date', webpage))
-        description = self._html_search_meta('description', webpage)
+        for video in entries:
+            upload_date = unified_strdate(self._html_search_meta('date', webpage))
+            description = self._html_search_meta('description', webpage)

-        info_dict.update({
-            'display_id': display_id,
-            'description': description,
-            'upload_date': upload_date,
-        })
+            video.update({
+                'display_id': display_id,
+                'description': description,
+                'upload_date': upload_date,
+            })

-        return info_dict
+        return entries

But it gives me this warning:
WARNING: Extractor Bet returned a compat_list result. It needs to be updated.

Also, the titles for the segments have random non-sequential IDs at the end with no way to tell the proper order without the user manually using autonumber, and IMO they shouldn't have to for downloading a single video. (Ideally, youtube-dl should merge all those to a single video file, but that would be more complicated to implement.)

So, how do I properly handle this?

This behavior is the same on BET, CMT, VH1, and I'm sure many more. You have to manually grab the (usually) master.m3u8 files, and then I put all of those into a text file, and use the command to download that list: youtube-dl -a filename.txt.
As a sidenote, this workaround isn't too bad. I open the page with developer tools open and recording, then I click through and begin playing each segment in the video. Then, use the filter in developer tools to search for master.m3u8 to find them all. They should be listed in sequential order. Then, if you have your text editor open, you can just right-click on each segment's .m3u8 file, and paste it onto a new line in the text editor. Make sure you have automnumber in your config file, though, otherwise it will just download each segment, and each time it will overwrite the previously downloaded file. Something like %(title)s - %(autonumber)02d.%(ext)s should work.
Hope this helps!

Can this be fixed to work automatically?


Remove new WordPress Widgets

Hey.
Could we get support added to remove the new WordPress widgets? Akismet would also be nice since it's included by default.
New widgets include Audio, Custom HTML, Image, and Video.

@Log1x thanks for bringing to my attention.
I've included in the new release of Intervention, which I'll push up soon.

Thanks!

Added in 1.2.0
https://github.com/soberwp/intervention/blob/master/.github/remove-widgets.md


Unable to select image in iOS12.3 system landscape mode

Hey, in the ios12.3 system phone horizontal screen state, using image_picker: ^ 0.6.1 + 10 encountered problems when getting images from the album, enter the image directory in the album without displaying any images. The album interface is black, but I can quit the album. There is no error log.

Hi @zj126921
flutter doctor -v and
a minimal code sample to reproduce the problem
thank you

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.
Could everyone who still has this problem please file a new issue with the exact descriptions what happens, logs and the output of 'flutter doctor -v'  please.
All system setups can be slightly different so its always better to open new issues and reference related issues.


[syntax error fixed] Update 92_Interactive_Layered_Crossfilter.py

There was a simple syntax error in line 36 when I ran the online demo at https://altair.streamlit.app/Interactive_Layered_Crossfilter
File "/app/release-demos/1.16.0/demo_app_altair/pages/92_Interactive_Layered_Crossfilter.py", line 36
chart = # layer the two charts & repeat
^
SyntaxError: invalid syntax

Sorry,
I was using the Github online edition feature and I didn't realized at the moment that I opened several PR, and I all I need I was just one.
I've learned something today!

Sorry,
I was using the Github online edition feature and I didn't realized at the moment that I opened several PR, and I all I need I was just one.
I've learned something today!

no problem at all, thanks for noticing and trying to help out!


-[UIScreen isiPhoneX]: unrecognized selector sent to instance

Not really sure why this is happening. I set the extension and computed property to public and it didn't fix anything. Happens when updateCornerRadii() gets called in layoutSubviews().
Temporary fix: I added this
private var isiPhoneX: Bool {
      return screen.nativeBounds.height == 2436 && screen.nativeBounds.width  == 1125
}

to NotchKitWindow and replaced all instances of screen.isiPhoneX with isiPhoneX.

This is a weird bug. I don't use selectors much except with dealing with Apple's own API, so I've never seen this. Stack Overflow doesn't seem to help much either; most answers deal the method signature/parameters or selector syntax.
Best guess I have is that maybe there's a private isiPhoneX UIScreen variable in UIKit, and somehow the compiler decides that should be called, and is flagging because being private that cannot be called.
Anyways, since your solution works, I've implemented this, and this bug will be fixed in the next release. Thanks for filing an issue!


Production source maps & Webpack 4

Upgrade to Webpack v4
Upgrade all plugins.

Babel minify Webpack plugin replaced by UglifyJS
Extract text plugin is in beta.

Output source maps to /sourcemap dir in prod build.
Fix all HMR for reducers and epics.
Enable auto refreshing source maps in Chrome 66.

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Adding Damage resistance/vulnerabilities/immunities to races/classes

Forked from https://github.com/HeroCreationLab/hero-creation-tool/issues/27

I will probably wait until https://gitlab.com/foundrynet/dnd5e/-/issues/342 is on the works to tackle this one.


Add idea ignore file & Modify the initialization location of a local xlog object

Modify:

Considering that some developers use idea's Goland editor with . idea folder, in order not to upload these files to git, I added filtering rules to . gitignore.
For MakeUtxoVM function, the original code initializes the xlog object after calling xlog, which may lead to null pointer.

@yucaowang Understood, the language of this PR has been modified


误杀 blog.logrocket.com

Which tool do you use?
Surge
Other
No response
Which AdRules DNS List Syntax do you use?
Loon/Surge Ruleset
Which domain(s) should be unblocked?
blog.logrocket.com
Why should the domain(s) be unblocked?
这个应该是个博客网站吧，看到有人推荐上面的博客。

Surge 的日志内容：
17:23:54.170377 [Connection] Handled by VIF
17:23:54.171301 [TLS] TLS Client Hello SNI: blog.logrocket.com
17:23:54.175354 [Rule] Sub-rule matched: .logrocket.com(adrules.list)
17:23:54.175413 [Rule] Rule matched: RULE-SET adrules.list
17:23:54.175642 [Connection] Disconnect with reason: Rejected by rule


[video_player] Update to ExoPlayer 2.14.1

Update the ExoPlayer dependency to the latest version, and remove the dependency on the deprecated Bintray server. This should resolve issues with building video_player due to 403s from bintray that have been breaking presubmits for all PRs.
Pre-launch Checklist

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] I read the Tree Hygiene wiki page, which explains my responsibilities.
[x] I read and followed the relevant style guides and ran the auto-formatter. (Note that unlike the flutter/flutter repo, the flutter/plugins repo does use dart format.)
[x] I signed the CLA.
[x] The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. [shared_preferences]
[ ] I listed at least one issue that this PR fixes in the description above.
[x] I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy.
[x] I updated CHANGELOG.md to add a description of the change.
[x] I updated/added relevant documentation (doc comments with ///).
[x] I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test exempt.
[x] All existing and new tests are passing.

Overriding the CLA; the commit here is cherry-picked directly from https://github.com/flutter/plugins/pull/3933 which was submitted to this project under the CLA.

(The reason this doesn't add tests is that the only thing this is intended to change is unbreaking the currently-broken presubmit tests by removing the dependency on Bintray, so our current tests are already catching the failure—"can't build"—that this PR is for.)


How to generate correct size of QR Code image?

https://github.com/manuelbl/QrCodeGenerator/blob/master/Demo-ImageSharp/Program.cs
        internal static void HelloWorld()
        {
            var text = "Hello, world!";
            var filename = "hello-world-QR.png";

            var qr = QrCode.EncodeText(text, QrCode.Ecc.High); // Create the QR code symbol
            int border = 4;
            int scale = (int)(128 * 1.0 / (qr.Size + border * 2));
            qr.SaveAsPng(filename, scale, border);

            Console.WriteLine($"The QR code has been saved as {Path.GetFullPath(filename)}");
        }

I expect output size of the QR Code image is 128px.
But the generated  size of QR Code image is 99px.

While the target size is 128px, the scaling factor is rounded down to an integer number:
int scale = (int)(128 * 1.0 / (qr.Size + border * 2));

So it becomes 3 instead of 3.878, resulting in an image of 99px by 99px instead of the target 128px by 128px.
Integer numbers for scaling are used so the QR code pixels (aka modules) perfectly align with the image pixels. Unless a high resolution with a high scaling factor is used, non-integer scaling factors would either lead to blurry pixels (if anti-aliasing is used) or to uneven pixel width and height (if anti-aliasing is not used).
Below you can find an alternative QrCodeBitmapExtension.cs implementation using a floating-point instead of an integer scaling factor.
In the main program, the scaling factor line must be changed as well:
float scale = 128f / (qr.Size + border * 2);

The result is:

Note the slightly blurry module edges and what looks like a fine grid on top of black pixels.
//
// QR code generator library (.NET)
// https://github.com/manuelbl/QrCodeGenerator
//
// Copyright (c) 2021 Manuel Bleichenbacher
// Licensed under MIT License
// https://opensource.org/licenses/MIT
//

using Net.Codecrete.QrCodeGenerator;
using SixLabors.ImageSharp;
using SixLabors.ImageSharp.Drawing.Processing;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing;
using System;
using System.IO;

namespace Net.Codecrete.QrCodeGenerator
{
    public static class QrCodeBitmapExtensions
    {
        /// <inheritdoc cref="ToBitmap(QrCode, int, int)"/>
        /// <param name="background">The background color.</param>
        /// <param name="foreground">The foreground color.</param>
        public static Image ToBitmap(this QrCode qrCode, float scale, int border, Color foreground, Color background)
        {
            // check arguments
            if (scale <= 0)
            {
                throw new ArgumentOutOfRangeException(nameof(scale), "Value out of range");
            }
            if (border < 0)
            {
                throw new ArgumentOutOfRangeException(nameof(border), "Value out of range");
            }

            int size = qrCode.Size;
            int dim = (int)((size + border * 2) * scale);

            if (dim > short.MaxValue)
            {
                throw new ArgumentOutOfRangeException(nameof(scale), "Scale or border too large");
            }

            // slightly modify scaling factor to adapt to integer image size
            scale = dim / (float)(size + border * 2);

            // create bitmap
            Image<Rgb24> image = new Image<Rgb24>(dim, dim);

            image.Mutate(img =>
            {
                // draw background
                img.Fill(background);

                // draw modules
                for (int y = 0; y < size; y++)
                {
                    for (int x = 0; x < size; x++)
                    {
                        if (qrCode.GetModule(x, y))
                        {
                            img.Fill(foreground, new RectangleF((x + border) * scale, (y + border) * scale, scale, scale));
                        }
                    }
                }
            });

            return image;
        }

        /// <summary>
        /// Creates a bitmap (raster image) of this QR code.
        /// <para>
        /// The <paramref name="scale"/> parameter specifies the scale of the image, which is
        /// equivalent to the width and height of each QR code module. Additionally, the number
        /// of modules to add as a border to all four sides can be specified.
        /// </para>
        /// <para>
        /// For example, <c>ToBitmap(scale: 10, border: 4)</c> means to pad the QR code with 4 white
        /// border modules on all four sides, and use 10×10 pixels to represent each module.
        /// </para>
        /// <para>
        /// The resulting bitmap uses the pixel format <see cref="PixelFormat.Format24bppRgb"/>.
        /// If not specified, the foreground color is black (0x000000) und the background color always white (0xFFFFFF).
        /// </para>
        /// </summary>
        /// <param name="scale">The width and height, in pixels, of each module.</param>
        /// <param name="border">The number of border modules to add to each of the four sides.</param>
        /// <returns>The created bitmap representing this QR code.</returns>
        /// <exception cref="ArgumentOutOfRangeException"><paramref name="scale"/> is 0 or negative, <paramref name="border"/> is negative
        /// or the resulting image is wider than 32,768 pixels.</exception>
        public static Image ToBitmap(this QrCode qrCode, float scale, int border)
        {
            return qrCode.ToBitmap(scale, border, Color.Black, Color.White);
        }

        /// <inheritdoc cref="ToPng(QrCode, int, int)"/>
        /// <param name="background">The background color.</param>
        /// <param name="foreground">The foreground color.</param>
        public static byte[] ToPng(this QrCode qrCode, float scale, int border, Color foreground, Color background)
        {
            using Image image = qrCode.ToBitmap(scale, border, foreground, background);
            using MemoryStream ms = new MemoryStream();
            image.SaveAsPng(ms);
            return ms.ToArray();
        }

        /// <summary>
        /// Creates a PNG image of this QR code and returns it as a byte array.
        /// <para>
        /// The <paramref name="scale"/> parameter specifies the scale of the image, which is
        /// equivalent to the width and height of each QR code module. Additionally, the number
        /// of modules to add as a border to all four sides can be specified.
        /// </para>
        /// <para>
        /// For example, <c>ToPng(scale: 10, border: 4)</c> means to pad the QR code with 4 white
        /// border modules on all four sides, and use 10×10 pixels to represent each module.
        /// </para>
        /// <para>
        /// If not specified, the foreground color is black (0x000000) und the background color always white (0xFFFFFF).
        /// </para>
        /// </summary>
        /// <param name="scale">The width and height, in pixels, of each module.</param>
        /// <param name="border">The number of border modules to add to each of the four sides.</param>
        /// <returns>The created bitmap representing this QR code.</returns>
        /// <exception cref="ArgumentOutOfRangeException"><paramref name="scale"/> is 0 or negative, <paramref name="border"/> is negative
        /// or the resulting image is wider than 32,768 pixels.</exception>
        public static byte[] ToPng(this QrCode qrCode, float scale, int border)
        {
            return qrCode.ToPng(scale, border, Color.Black, Color.White);
        }

        /// <inheritdoc cref="SaveAsPng(QrCode, string, int, int)"/>
        /// <param name="background">The background color.</param>
        /// <param name="foreground">The foreground color.</param>
        public static void SaveAsPng(this QrCode qrCode, string filename, float scale, int border, Color foreground, Color background)
        {
            using Image image = qrCode.ToBitmap(scale, border, foreground, background);
            image.SaveAsPng(filename);
        }

        /// <summary>
        /// Saves this QR code as a PNG file.
        /// <para>
        /// The <paramref name="scale"/> parameter specifies the scale of the image, which is
        /// equivalent to the width and height of each QR code module. Additionally, the number
        /// of modules to add as a border to all four sides can be specified.
        /// </para>
        /// <para>
        /// For example, <c>SaveAsPng("qrcode.png", scale: 10, border: 4)</c> means to pad the QR code with 4 white
        /// border modules on all four sides, and use 10×10 pixels to represent each module.
        /// </para>
        /// <para>
        /// If not specified, the foreground color is black (0x000000) und the background color always white (0xFFFFFF).
        /// </para>
        /// </summary>
        /// <param name="scale">The width and height, in pixels, of each module.</param>
        /// <param name="border">The number of border modules to add to each of the four sides.</param>
        /// <exception cref="ArgumentOutOfRangeException"><paramref name="scale"/> is 0 or negative, <paramref name="border"/> is negative
        /// or the resulting image is wider than 32,768 pixels.</exception>
        public static void SaveAsPng(this QrCode qrCode, string filename, float scale, int border)
        {
            qrCode.SaveAsPng(filename, scale, border, Color.Black, Color.White);
        }
    }
}

img.Fill(foreground, new Rectangle((x + border) * scale, (y + border) * scale, scale, scale));

//
        // 摘要:
        //     Initializes a new instance of the SixLabors.ImageSharp.Rectangle struct.
        //
        // 参数:
        //   x:
        //     The horizontal position of the rectangle.
        //
        //   y:
        //     The vertical position of the rectangle.
        //
        //   width:
        //     The width of the rectangle.
        //
        //   height:
        //     The height of the rectangle.
        public Rectangle(int x, int y, int width, int height);

We use the library, which is convenient to provide parameters such as size,border and difficult to provide scale.


Running startb.rb produces a catastrophic error resulting in my computer engulfed in flames

Running start.rb after cloning the project results in my computer catching fire.
Ubuntu 14.04
ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux]

;)


Stream files line by line when parsing to avoid memory limits

These changes allow nedb to load large databases without running into the string length limit for node by streaming the file line by line instead of trying to load it all at once.
Tested with a large randomly generated ~256MB database that will load after these changes.
I don't know what the browser-based implications here are since this does remove Persistence.prototype.treatRawData, but I'd be happy to help resolve them if you could point me in the right direction.

Merged into nedb3

Any chance this will be merged into NeDB?

@gschier Any reason why not to switch nedbhq releases at this time? it is fully compatible + many more fixes and we will try to keep up to date with upstream if actively maintained again :)

@pi0 I took a look but couldn't figure out whether it was affiliated with this project or not, how it differed, or what the purpose of it was. An introduction section on the README explaining purpose, roadmap, etc would be very useful! 👍

Seems like a symmetrical method for writing as a stream would also be necessary for the same reason.

@JamesMGreene, shouldn't be. Pretty sure nedb writes in append mode, hence why it is possible to generate a large database that nedb cannot close and reopen.

@lasalvavida Not quite accurate. Although NeDB does do its updates in append mode, it also does a full datafile rewrite at the end of the initial loading process and during every compaction operation.

To be more clearly linked, we believe this would fix:

#363
#389

Will it be merged into nedb? What is the conclusion? How should the user solve this problem? Abandon nedb to seek other database solutions?

Hopel this feature could be merged into the master branch...


Add Laravel 5.5 auto-discovery

Added Laravel 5.5 auto-discovery meta to the composer.json
More info: https://medium.com/@taylorotwell/package-auto-discovery-in-laravel-5-5-ea9e3ab20518

It was intentional that it hasn't been added before. It is my personal opinion that it is better to list every provider explicitly.
I've run into issues involving initial migrations and other setup several times, when the only solution was to temporarily disable this package. The easiest way to do that is by commenting out a line in the config file.
So apart from that personal view, in the case of this package, I wouldn't add auto-discovery. Maybe in version 1, where the service provider hopefully won't look like a patchwork.

Fair enough. 👍


Remove toolChoice from ChatGpt example

Remove toolChoice from chatGpt example, as this example does not work when having toolChoice as a String.

Thank you for noticing this.


Resources in a waiting state should not show up as healthy

cc @drewnoakes

What would you like to see instead?
Does the answer change if the resource has health checks or not?

nothing, there's no health state, it's null

Not available

Health state also shows up for finished resources

We could just filter out the property based on state, in the app host.


Open file default limit it limiting proxysq.

I ran into this problem with having 1500 connections on one of my systems.  Proxysql was throwing errors and bringing the load to a halt.
The proxysql user default open files limit is 1024 and that restricts the number of db connections proxysql can handle.  The guys at Proxysql suggested this in the systemd unit file:
LimitNOFILE=102400
Is there a way we can add extra options to the unit file that is being created by the proxysql cookbook so that we can change this value as needed?
Thanks!

I think it should be possible to pass LimitNoFILE option to poise service https://github.com/poise/poise-service#service-options

I tried use an attribute and a service provider:
override['poise-service']['options']['LimitNOFILE'] = '102400'
and
poise_service_options 'proxysql' do
LimitNOFILE 102400
end
So I just don't understand what they are saying. I will look deeper, but if you could see if it comes easier to you that would be great!

Have tested poise options and it does not work for me either.. I think I will drop support for sysvinit and will create custom systemd template.

Bummer, that capability should be in the poise cookbook.  I guess it sort of is with the ability to create your own template.  But something like that should be basic.

For reference, missing configuration
LimitNOFILE=102400
LimitCORE=1073741824

cc @daveallen please check if the problem persists I have released 3.0.0 version

If it is supposed to put those entries into the systemd unit file in /etc/systemd/system/proxysql.service, I am not seeing it there. I saw that those are the default settings in the proxysql_service.rb file, but those do not show up in my unit config.  Ubuntu 16.04.


New version: SVR v0.6.0

Registering package: SVR
Repository: https://github.com/madsjulia/SVR.jl
Created by: @montyvesselinov
Version: v0.6.0
Commit: 266f22337ea06b508e7926b398ed434fecce306a
Git reference: master
Release notes:

version

Your new version pull request met all of the guidelines for automatic merging.
I will automatically merge this pull request during the next cron job.
If you want to prevent this pull request from being auto-merged, simply leave a comment.
(If you want to post a comment without blocking auto-merging, you must include the text [noblock] in your comment.)

On a separate note, I see that you are registering a release with a version number of the form v0.X.Y.
Does your package have a stable public API? If so, then it's time for you to register version v1.0.0 of your package. (This is not a requirement. It's just a recommendation.)
If your package does not yet have a stable public API, then of course you are not yet ready to release version v1.0.0.

[noblock]


Renamed db push concept page

Under concepts > migrate there was a page titled db push. As this doesnt mean much to the user, I renamed it "Schema prototyping".

I reverted the change so it only affects the page title and none of the URLs. I think this could be merged as is.

Thank you so much @floelhoeffel ! A very sensible change to a much better and more descriptive title.


Fix typos

My last PR introduced some minor typos. This fixes that.
(Sorry about that!)

Apologies. I should have caught these the first time.

👍


Improved test speed

Improve speed (and hopefully stability) of behat tests:

Use HTTP authentication for login (by installing custom config.local.yml
Use "refresh" instead of "visiit" if the current URL is the same as the requested one.

See https://github.com/sulu-io/sulu-standard/pull/436

@dantleech Does this work?

It could work. It doesn't currently work.

Was this because firefox was not able to correctly handle the http authentication? Then we could close this PR, couldn't we?

It worked locally on selenium. But IIRC it was something like that. It would be a significant speed increase I believe. So I wouldn't close it unless there is something better, but its up to you guys.

@dantleech What's the status here? Close or merge?

Lets just close it.


Internet Latency and Internet Bandwidth graphs question

Hi,
I've got it running, thanks. However I can't find anything about Internet Latency settings. It is taking measures from something but I can't figure it what IP it is being used and if it is possible to change it?
Very similar question regarding the Internet Bandwidth graph it looks like it is constantly measure it but I can't see this in my Mikrotik traffic. How this works?

Hi @80kk 👋,
this functionality is provided by mktxp, the Prometheus exporter. This Python module integrates the free speedtest.net API, which is configured to run regularly by default. This can be configured:
bandwidth = True                # Turns metrics bandwidth metrics collection on / off
	bandwidth_test_interval = 420   # Interval for colllecting bandwidth metrics


error when running python3 teleop.py robot=liberos_sim sim_env=True

Here is my error output:
(openteach) ➜  Open-Teach git:(main) ✗ python teleop.py robot=libero_sim sim_env=True
***************************************************************
     Starting vr detector component
***************************************************************
***************************************************************
     Starting keypoint position transform component
***************************************************************
Process Process-1:
Traceback (most recent call last):
  File "/home/ros/anaconda3/envs/openteach/lib/python3.10/site-packages/hydra/_internal/utils.py", line 639, in _locate
    obj = getattr(obj, part)
AttributeError: module 'openteach.components.environment' has no attribute 'libero_env'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/ros/anaconda3/envs/openteach/lib/python3.10/site-packages/hydra/_internal/utils.py", line 645, in _locate
    obj = import_module(mod)
  File "/home/ros/anaconda3/envs/openteach/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/ros/GAIRLAB/Open-Teach/openteach/components/environment/libero_env.py", line 11, in <module>
    from libero.libero import benchmark, get_libero_path
ModuleNotFoundError: No module named 'libero'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/ros/anaconda3/envs/openteach/lib/python3.10/site-packages/hydra/_internal/instantiate/_instantiate2.py", line 134, in _resolve_target
    target = _locate(target)
  File "/home/ros/anaconda3/envs/openteach/lib/python3.10/site-packages/hydra/_internal/utils.py", line 648, in _locate
    raise ImportError(
ImportError: Error loading 'openteach.components.environment.libero_env.LiberoEnv':
ModuleNotFoundError("No module named 'libero'")
Are you sure that 'libero_env' is importable from module 'openteach.components.environment'?

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/ros/anaconda3/envs/openteach/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
    self.run()
  File "/home/ros/anaconda3/envs/openteach/lib/python3.10/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/home/ros/GAIRLAB/Open-Teach/openteach/components/initializers.py", line 112, in _start_component
    component = hydra.utils.instantiate(configs)
  File "/home/ros/anaconda3/envs/openteach/lib/python3.10/site-packages/hydra/_internal/instantiate/_instantiate2.py", line 222, in instantiate
    return instantiate_node(
  File "/home/ros/anaconda3/envs/openteach/lib/python3.10/site-packages/hydra/_internal/instantiate/_instantiate2.py", line 325, in instantiate_node
    _target_ = _resolve_target(node.get(_Keys.TARGET), full_key)
  File "/home/ros/anaconda3/envs/openteach/lib/python3.10/site-packages/hydra/_internal/instantiate/_instantiate2.py", line 139, in _resolve_target
    raise InstantiationException(msg) from e
hydra.errors.InstantiationException: Error locating target 'openteach.components.environment.libero_env.LiberoEnv', see chained exception above.
full_key: robot.environment0
***************************************************************
     Starting hand 2D plotter component
***************************************************************
***************************************************************
     Starting libero operator component
***************************************************************
***************************************************************
     Starting calibration component
***************************************************************

Calibration file already exists. Do you want to create a new one? Press y for Yes else press Entern
Stopping the calibrator.
Closing the subscriber socket in [<IP_ADDRESS>:8089](http://<IP_ADDRESS>:8089/).
THUMB BOUNDS IN THE OPERATOR: [array([0.07, 0.1 ]), array([0.07, 0.07]), array([-0.01,  0.08]), array([-0.01,  0.09]), [-0.029687233564084578, -0.060893850578688846]]
***************************************************************
     Starting Libero_Sim control component
***************************************************************
Start controlling the robot hand using the Oculus Headset.

****** RESETTING TELEOP ******
/home/ros/GAIRLAB/Open-Teach/openteach/components/visualizers/plotters/plotter_2d.py:91: UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.
  plt.pause(0.001) # This make the graph show up if matplotlib is in Tkinter mode

and I use BimanualArm.apk, but now it can only recognize my right hand pose, does it ok?
and then I run python3 data_collect.py robot=libero_sim sim_env=True demo_num=1, it will output this inofrmation:
Reaching correct function
***************************************************************
     Starting RGB stream: 10005 component
***************************************************************
tcp://[<IP_ADDRESS>:10005](http://<IP_ADDRESS>:10005/)
***************************************************************
     Starting Depth stream: 11005 component
***************************************************************
tcp://[<IP_ADDRESS>:11005](http://<IP_ADDRESS>:11005/)
Starting to record RGB frames from port: 10005
***************************************************************
     Starting endeffector_cartesian_states component
***************************************************************
Checking if the keypoint port is active...
Starting to record keypoints to store in extracted_data/demonstration_1/endeffector_cartesian_states.h5.
***************************************************************
     Starting endeffector_commanded_cartesian_states component
***************************************************************
Checking if the keypoint port is active...
Starting to record keypoints to store in extracted_data/demonstration_1/endeffector_commanded_cartesian_states.h5.

but I cannot see any simulation start, did I make a step mistake somewhere?

I found that it occurred this error: from libero.libero import benchmark, get_libero_path ModuleNotFoundError: No module named 'libero' but I downloaded LIBERO library in open-tech file, Did I put it into the wrong path?

ok, I have solved these problems. There are several places that need to be modified. One is the path of libero. The one cloned from github is LIBERO/libero. Then I only need to put libero into Open tech, and in /libero/libero/init You need to modify the path of libero in .py, and then use from openteach.components.environment.libero_env import LiberoEnv to create the dataset path in python.

Hi yes, you are right and sorry for missing this issue. This information has been added in the docs to enter the dataset path in python.

and I use BimanualArm.apk, but now it can only recognize my right hand pose, does it ok?
but I cannot see any simulation start, did I make a step mistake somewhere?

Hi,I have the same issue, here's the output after running teleop.py
(openteach) (base) hxd@5600g:~/Open-Teach-main$ python3 teleop.py robot=libero_sim sim_env=True
***************************************************************
     Starting vr detector component
***************************************************************
***************************************************************
     Starting keypoint position transform component
***************************************************************
***************************************************************
     Starting hand 2D plotter component
***************************************************************
***************************************************************
     Starting libero operator component
***************************************************************
***************************************************************
     Starting calibration component
***************************************************************

Calibration file already exists. Do you want to create a new one? Press y for Yes else press Entertcp://<IP_ADDRESS>:10005
tcp://<IP_ADDRESS>:10006
tcp://<IP_ADDRESS>:11005
tcp://<IP_ADDRESS>:11006
Initializing Environment
[Warning]: datasets path /home/hxd/Open-Teach-main/LIBERO/libero/libero/../datasets does not exist!
***************************************************************
     Starting Libero_Sim environment component
***************************************************************
/home/hxd/Open-Teach-main/openteach/components/visualizers/plotters/plotter_2d.py:91: UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.
  plt.pause(0.001) # This make the graph show up if matplotlib is in Tkinter mode

but I still cannot see any simulation start,I would like to know more details about your solution to this issue。


[SPARK-100354] [MLLIB] fix some apparent memory issues in k-means|| initializaiton

do not cache first cost RDD
change following cost RDD cache level to MEMORY_AND_DISK
remove Vector wrapper to save a object per instance

Further improvements will be addressed in SPARK-10329
cc: @yu-iskw @HuJiayin

Merged build triggered.

Merged build started.

Test build #41801 has started for   PR 8526 at commit 71db540.

Test build #41801 has finished for   PR 8526 at commit 71db540.

This patch passes all tests.
This patch merges cleanly.
This patch adds the following public classes (experimental):
public class JavaTrainValidationSplitExample
case class LimitNode(limit: Int, child: LocalNode) extends UnaryLocalNode
case class UnionNode(children: Seq[LocalNode]) extends LocalNode

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/41801/
Test PASSed.

Merged build finished. Test PASSed.

The fix reduces around 50G RDD based on data size below. The performance is improved. The user needs more than 8G memory to run the kmeans in Spark1.5 based on this data size. The data size:
Number of cluster: 5
Sample dimensions: 20
Number of samples:<PHONE_NUMBER>
Sample per input file: 40000000
K: 10
Converge distance: 0.5
Max iteration: 10

LGTM

@HuJiayin Thanks for testing! Merged into master, branch-1.5, 1.4, and 1.3.


Global cargo configuration

Describe the problem you are trying to solve
I'm attempting to configure cargo (specifically, custom registries) on large, shared, many-user Linux servers. As far as I can tell, the best way to do that now is to create a file at /.cargo/config, which will be read by the logic that walks up the filesystem tree searching for a .cargo directory.
Describe the solution you'd like
Cargo should also read a config file from /etc/, similar to other Unix-y tools, allowing administrators to set system-wide defaults.
Notes
I believe that a diff such as the following accomplishes this, although it's obviously missing documentation, tests, and perhaps sane behavior on Windows:
diff --git a/src/cargo/util/config/mod.rs b/src/cargo/util/config/mod.rs
index b9921dfee..57862ffdc 100644
--- a/src/cargo/util/config/mod.rs
+++ b/src/cargo/util/config/mod.rs
@@ -1302,6 +1302,15 @@ impl Config {
             }
         }

+        if cfg!(unix) {
+            // Also check system-wide config
+            if let Some(path) = self.get_file_path(Path::new("/etc/cargo"), "config", true)? {
+                if !stash.contains(&path) {
+                    walk(&path)?;
+                }
+            }
+        }
+
         Ok(())
     }

If there's interest in such a feature, I'm glad to do the work to write tests & documentation; if there's not interest, I'd be interested in how other people are administering system-wide shared defaults.
NOTE: I initially asked about this at https://users.rust-lang.org/t/how-to-manage-system-wide-cargo-configuration-for-many-users/59160

I would also love to see this. It is easier to manage system-wide configuration than various users across various devices. This seems not very controversial to have this.


Could you post a link where the error appears? The demo works perfectly on my chrome

I can't see any bug on chrome


Feature add legal information

Add legal information

Sorry, I wanted to open this PR in the t8code repo


feat: add show on single page prop to Pager

PR Checklist
Please check if your PR fulfills the following requirements:

[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

PR Type
What kind of change does this PR introduce?
[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

What is the current behavior?
Currently, when pageCount === 1, the content is always hidden. There is no option to override this behavior.
Issue Number: N/A
What is the new behavior?
A new optional boolean flag showOnSinglePage has been introduced. When set to true, shows the pager even if there is only one page. If defaults to false and keeps the existing behavior in tact.
Does this PR introduce a breaking change?
[x] Yes
[ ] No

Other information
I did not include it in this pr, but I used the following storybook story to easily test the changes. You just need to set total to 10 and set hideOnSinglePage to false via the controls.
export const Default = ({ page = 0, size = 10, total = 100, ...rest }) => {
  return <Pager page={page} size={size} total={total} {...rest} />;
};

released in latest


Chat: Looks weird in iPad Pro screen

Explication
The chat view in iPad Pro looks how the desktop view, and is weird because bubble message is not occuping 100% of the screen, back button and profile picture is some big and text is little.
Screenshots

Checklist
This issue can be closed when the following tasks are complete:

[ ] Chat view looks how mobile design in iPad Pro screen
[ ] Profile picture is not so big
[ ] Back button is not so big

Related issues

#148

Extra information
I think that the media query that activates the desktop styles should be after 1024px, currently it is at 1024px and that may be the size of a tablet, that's why several things look bad on the iPad Pro, since they are seen with styles of desk

Please confirm with @angelik0828 about changes to make here

check that your tasks have the corresponding labels


luci-mod-admin-full: fix forced upgrade

fix logical glitch in forced upgrade logic

Signed-off-by: Dirk Brenken<EMAIL_ADDRESS>

@hnyman please test - should work now.

works ok now.


:FunctionValidationContext::else_(IR::NoImm) heap-buffer-overflow when parsing running wasm file causing crash

IRFunctionValidationContextelse_(IRNoImm) 6_3.zip

Thanks, this is fixed by https://github.com/AndrewScheidecker/WAVM/commit/88901f515facaf3698af9a6b53aef30322ae52c8.

This vulnerability found by security researcher limingzheng From China Beijing Chainsguard (www.chainsguard.com) .


Why: TLS_Send does not handle the error condition when space is not available on disk.

TLS_Send does not handle the error condition when space is not available on disk.
Related Issues: https://github.com/aws/amazon-freertos/issues/275
Description
mbedtls_write sends back pdFREERTOS_ERRNO_ENOSPC when the send buffer is full.
Checklist:

[x ] I have tested my changes. No regression in existing tests.
[ x] My code is Linted.

/bot run checks


Fixed iota in FPGA pipes tutorial

Existing Sample Changes
Description
Fixing a host call to std::iota in the FPGA pipes tutorial. Previously the call to iota didn't actually initialize anything.
Fixes #903
Type of change

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

How Has This Been Tested?

[X] Command Line

Any explanation for the Linux emulation failure in the CI?

Any explanation for the Linux emulation failure in the CI?

Nope :/

Any explanation for the Linux emulation failure in the CI?

I was not able to replicate this locally with the same SYCL resource (I tried the trunk and release branch of 20211123). I will try making another change to relaunch the CI. Interestingly, it passed on Windows.

@tyoungsc you indicated elsewhere that the CI issues have been resolved - can you make a simple change so the CI will be re-triggered here so we can see that?  (I'm sure there are other ways to trigger the CI, but I don't know what they are)

@tyoungsc you indicated elsewhere that the CI issues have been resolved - can you make a simple change so the CI will be re-triggered here so we can see that? (I'm sure there are other ways to trigger the CI, but I don't know what they are)

Done


Ts utils refactor

Download Artifacts :

win-ia32
win-x64
linux-x64

Download Artifacts :

win-ia32
win-x64
linux-x64

Download Artifacts :

win-ia32
win-x64
linux-x64


Buffer refactoring

Would avoid inlining public API methods, as it might be confusing if a method one calls isn't actually present in the binary respectively does not show up in stack traces when debugging.

@dcodeIO Yeah, makes sense


Two different projects interfere with each other

If you open the patterns or drafts in one solution, they change in another solution that is open in another instance of Rider!

This is because we share the same cached data in the AutomateCliService for all instances of the IntelliJ.Project.
We would need some way to inject the project to separate these caches of data.


Syntax pass: "return on constructor or behaviour must not have an expression" before lambda desugar

Over on Zulip, Rowland Smith raised the following (abbreviated example):
The following program fails to compile with "A return in a constructor must not have an expression", even though the return happens inside a lambda.
actor Main
  new create(env: Env) =>
    let f = {() => return None}

If we transform f to an object literal, it compiles just fine:
actor Main
  new create(env: Env) =>
    let f = object ref
      fun apply() =>
        if true then
          return None
        end
    end

The above also happens inside behaviours.
The error arises during the syntax pass, while conversion from lambdas to object literals happens later, during the expr pass.

@jemc mentioned that this specific check might be better placed in the verify step, which happens much later in the compilation process.

So... I moved only the check:
      /*if(ast_id(opt->check.frame->method) == TK_NEW)
      {
        ast_error(opt->check.errors, ast,
          "A return in a constructor must not have an expression");
        return AST_ERROR;

from syntax to verify and ended up with an unexpected error:
Error:
/home/sean/code/ponylang/ponyc/packages/files/file_lines.pony:54:9: try expression never results in an error
        return _read_line()?
        ^
Error:
/home/sean/code/ponylang/ponyc/packages/cli/command_parser.pony:281:7: try expression never results in an error
      return _spec.options()(name)?

which comes from verify_try and it appears that when we hit there, TK_TRY is set rather than TK_TRY_NO_CHECK. So that needs to be addressed. If someone has time to pick up looking at that, the work-in-progress is on the branch issue-3682.

Here's two minimal example for issues with this change:
actor Main
  new create(env: Env) =>
    bar()

  fun foo() ? =>
    error

  fun bar() =>
    try
      return foo()?
    end

and this that crashes the compiler in sugar_return:
actor Main
  new create(env: Env) =>
    try
      return foo()?
    end

  fun foo() ? =>
    error

both of the above should be added as tests as well as the initial motivating example.

Another approach, rather than moving the check would be to not do the check in syntax if we are in a lambda. So skip any return in a lambda which given how things are, might be a better idea.

Ok, I have a fix that doesn't move the check, it refines it.

PR opened for CI testing: https://github.com/ponylang/ponyc/pull/3971


Use the same PEM files for every Heimdall instance

Good day Henri,
Thank you for responding to my tweet! I am trying to use the same PEM keys for every instance of Heimdall that I create. All I need to do is encrypt a timestamp with the PRIVATE key to make a simple signature. I haver the PEM of the Public key as well if I need it. I do not mind having to re-make the keys, but I definitely need the private key in a PEM format for the Android version (so if I generate a new key in a new format, I will need to make sure I can convert the new key to a PEM format as well).
Could you please give me an example where the SAME key (preferably a set of PEM keys) are ALWAYS used in Heimdall and result in the same encrypted string? When I do the following:
    if let heimdall = Heimdall(tagPrefix: "www.example.com"){
        if let encryptedString = heimdall.encrypt("test") {
            print("Encrption: [\(encryptedString)]")
        } else {
            print("Encryption error")
        }
    } else {
        print("Init error")
    }

I get a different String every time. I have tried putting the PEM Strings in as parameters:
    if let heim = Heimdall(publicTag: "...", privateTag: "...")

but I get the same result - different Strings every time I run it.

Hi there,
The answer to why the string is always different can be found when reading through the README - in short, it is as expected, as the actual encryption/decryption use AES, rather than the RSA keys directly (the symmetric key is encrypted with RSA).
Regards to extracting the private key, currently Heimdall does not allow extracting the private key, this is a philosophical choice, as I firmly believe that private keys should be device specific and never leave the device, instead systems should support multiple keys for the same user (device specific keys that is). However, as there have been multiple request of the same nature, I have decided to accept a pull-request that adds the necessary code (Heimdall under the sheets has a way to export the private key data, not in PEM format though).
I suggest you look at the data returned by the private function defined here and create a suitable set of public functions (similar to these for the private key), it should be a matter of studying the PEM format (which AFAIK is similar to X.509).
Cheers,
Henri

Ah ok I see what you mean. So the AES key changes each time. This means that the server in this case would have to be aware of the AES key as well.
You see, I do not need to know the private key, I have no issue that it is on the device. However my problem is that EVERY instance on all iPhone devices use the SAME private key, as this is an "app signature" for an API. So as long as I can extract the public key as a PEM it would be fine. But it seems that Heimdall will create keys at least "per installation" - which poses a problem for me.
But anyway thanks for the excellent work! I wish you all the best :)

I see, do you need to sign the request or actually encrypt it? Signing requires private key, but encryption can be done without a private key. In any case, I suspect that your architecture is not super compatible with Heimdall, especially if you need encryption, as the Heimdall approach to using a combination of RSA and AES is not really standardised and is something I came up with myself (with some inspiration from the web).
All in all, if you think this would be solved by creating a new initialiser that also takes private key data, then I hope the links I provided above are helpful. I would look at this myself, but unfortunately I don't currently have time (and I am not entirely sure this is still appropriate).

Hi there,
Unfortunately I need to encrypt it with the private key, this is a "feature" of the API (that I have no control over). I was hoping that Heimdall was the answer to my problem, as my StackOverflow question has gotten no love. I really like the library, but I agree, I do not think (for this app) that the library is what I need.
Kind regards,
Quintin


gofmt

Just ran
gofmt -w .

on the project root. That's all.
https://blog.golang.org/go-fmt-your-code

I made this PR with a project going on over at https://github.com/rotblauer/gofmt-att, and it's definitely a work in progress. So if I got something wrong, or this is annoying at all, please file an issue over there and we'll sort it out.

This change is

Thank you for running this. We already check gofmt as part of the build process (without the -w flag):
https://github.com/elliotchance/c2go/blob/master/travis/lint.sh#L5-L10
I'm pretty sure it runs against all packages but it's possible your version of gofmt is different. I will merge this in anyway. Every little bit helps! :smile:

Review status: 0 of 1 files reviewed, all discussions resolved

Comments from Reviewable

Reviewed 1 of 1 files at r1.
Review status: :shipit: complete! all files reviewed, all discussions resolved

Comments from Reviewable


Whitespace causing issues in credential and login fields -> we should strip whitespace for applicable fields

on master-head (b6bcfad)
Repro steps:
Case 1: cluster credentials

create a cluster with new credentials (vsphere cluster, rke2)

in the datacenter field, add a space to the beginning or end of the field
proceed with other valid credentials
save the credential (saving bad credential is working -> unexpected)

Issue:

422 error: invalid body content

for vsphere, this is not caught in our UI (error above is from the console). We just show spinning icons for each of the data fields indefinitely

Other related issues/helpful information:
Case 2: aws cluster credentials -> error caught before allowing user to save bad credential

create a cluster with new credentials (vsphere cluster, rke2)

in the datacenter field, add a space to the beginning or end of the field
proceed with other valid credentials
save the credential

Case 3: login/new users

create a new user named testuser (with a space at the beginning and/or end of the username)
enter valid password
try to login as this user -> whitespace was stripped from user upon creation in this case but not in the above cases, therefore user must sign in without spaces in their username (i.e. logging in with spaces trailing/leading username does not work, but usrname without spaces allows user to log in)

Per @vincent99, some fields may need a .trim added so that it knows to watch for whitespace.

In this we won't be doing any trimming or removal of whitespace here. We will be performing authentication and we will error out if we're unable to authenticate.

on 2.6-head (723f747):

login still has issues related to whitespace (see Case 3 from the original comment)
for vsphere, there is no error now. It appears that the https:// has been removed from the request for the datacenter, and whitespace is seen in the request, but it is removed in the response.

on 2.6-head (9d2e086):

create a user with whitespace in name -> stripped on create (expected, this was behavior at time of filing ticket)
login with this user, with whitespace  -- pass
login with this user, without whitespace -- pass
login with admin, whitespace added -- pass
login with admin, no whitespace -- pass