usability | Actual version of this plugin is here http : //rmplus | Plugin library
kandi X-RAY | usability Summary
kandi X-RAY | usability Summary
Actual version of this plugin is here
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of usability
usability Key Features
usability Examples and Code Snippets
Community Discussions
Trending Discussions on usability
QUESTION
- Start publishing to a session, notice that Android OS now reports that camera and microphone is being used by the app, which is fine.
- Call session.onPause() followed by publisher.publishAudio = false.
- (Optional) Move application into background by pressing Home button.
- Android OS indicates that camera is no longer being used, but microphone is still being used by the application.
Although it does not affect usability of the app it is bad in terms of user privacy perspective - the user might think the app is still recording audio while it is in background, which is scary.
Is there other methods I can call to turn off the microphone access totally, just like the camera?
...ANSWER
Answered 2022-Apr-05 at 06:13Got a reply from Tokbox support and they provided a tweak that works as expected!
QUESTION
As per MUI's own doco, and this answer - components using sx
render significantly slower than components using other styling mechanisms.
On the surface, it looks like sx
is just an alternate convenience API for doing the same thing - so I wouldn't expect it to have such a different performance profile.
My question is: Why is the rendering of a component using sx
so much slower - what's it doing so differently? Is it a whole different styling engine or something?
I'm curious about the possibility of optimising it, or coming up with a compromise that retains most of the usability but omits whatever feature is causing the slowdown.
Please note, this question is about "why is the performance so different" - not "why do you think the difference doesn't matter".
...ANSWER
Answered 2022-Mar-31 at 15:56As I started to dig into this, I realized that I needed to measure the performance of different scenarios in order to have any confidence in my understanding of the performance aspects of the sx
prop.
I believe that the performance information in the MUI documentation was gathered using some variation of this repository: https://github.com/mnajdova/react-native-web. The react-native-web repo was used as a starting point because of its "benchmarks" package which contains a useful framework for measuring the performance of different React element rendering/styling approaches.
I created my own version here: https://github.com/ryancogswell/mui-style-benchmarks. You can use this as a starting point to dig into this further. Below are the measurements I made and my conclusions.
My Results for the "Mount deep tree" BenchmarkThis test renders 639 elements with approximately 17 CSS properties each except for the cases ("..._minimal", "..._medium") which reduce the number of CSS properties to show the performance impact.
Styling Implementation Time in ms Implementation Desc inline-styles 22.78 No styling engine, just usestyle
prop
mui_sx_full
36.89
MUI Box sx
prop with 17 CSS properties
mui_sx_medium
24.09
MUI Box sx
prop with 9 CSS properties
mui_sx_minimal
18.15
MUI Box sx
prop with 4 CSS properties
mui_styled_box
22.38
MUI styled
MUI Box
with 17 CSS properties
mui_styled_box_minimal
17.90
MUI styled
MUI Box
with 4 CSS properties
tss_react_makestyles
17.10
makeStyles
from tss-react
with 17 CSS properties
mui_styled
16.93
MUI styled
div
with 17 CSS properties
mui_styled_minimal
13.77
MUI styled
div
with 4 CSS properties
emotion_styled
16.69
Emotion styled
div
with 17 CSS properties
emotion_styled_minimal
12.76
Emotion styled
div
with 4 CSS properties
emotion_css
12.58
Emotion css
div
with 17 CSS properties
Conclusions
- MUI
styled
(e.g.import {styled} from '@mui/material/styles'
) only adds a small amount of overhead to Emotion'sstyled
. - tss-react performs similarly to MUI
styled
. - Emotion
styled
, Emotioncss
, MUIstyled
, and the MUIsx
prop are all more expensive when there are more CSS properties passed to the styling engine. - The performance of the
sx
prop degrades more quickly than thestyled
API as more CSS properties are passed to it. With 17 CSS properties the performance is much worse than thestyled
API (2x). - The
sx
prop performs just fine for a small number (e.g. < 5) of CSS properties. Particularly, if you are already using a MUI component in a given situation, there is no meaningful performance difference between wrapping it withstyled
or using thesx
prop if you are just using a small number of CSS properties.
sx
prop slowness?
Is it a whole different styling engine or something?
It is not a different styling engine. The output of the work done for the sx
prop is fed into the styled
API of the main styling engine (e.g. Emotion or styled-components); so using the sx
prop with the Box
component is guaranteed to be slower than the equivalent styles using styled
on a div
because the sx
prop still uses styled
in the end but does additional work first.
sx
prop?
- The MUI
styled
API calls styleFunctionSx in order to transform the CSS properties in thesx
prop to the form expected by the styling engine. styleFunctionSx
traverses all the CSS properties in thesx
prop- For each CSS property, it checks to see if it has a style function for transforming the prop value. These style functions provide support for shorthand notation for some properties such as padding and margin and support for using theme spacing units instead of pixel values.
- Each of the style functions leverages the style function in https://github.com/mui/material-ui/blob/v5.5.3/packages/mui-system/src/style.js to handle some common transformations of prop values including the support for breakpoint-specific values.
The net effect is that for each CSS property there are a number of lookups and function calls to see if the CSS property needs to be transformed even in the cases where the value passes through without changes.
I'm curious about the possibility of optimising it, or coming up with a compromise that retains most of the usability but omits whatever feature is causing the slowdown.
I'm sure that performance improvements are possible for the sx
prop, but I don't think there is any single silver bullet for easily making it faster. Instead it will probably require a large number of little changes that are each barely measurable, but cumulatively provide decent improvement. The challenge is to make those changes without simultaneously making the code more complex and/or harder to maintain and/or more error prone.
The main compromise that "retains most of the usability" is to use Emotion's css prop directly. It can be used directly on elements in a similar fashion as the sx
prop -- you just lose the shorthand notations and theme lookups that the sx
prop provides. The theme lookups (e.g. for colors or spacing units) are easy to get directly from the theme by using the useTheme hook in the component. The theme.breakpoints API can be used instead of the breakpoint shorthands; though the sx
breakpoint features are much nicer from a DX standpoint.
QUESTION
I would like to run a notebook cell automatically via REST API to make the usability of a dev tool we created better. Is that possible in databricks?
...ANSWER
Answered 2022-Mar-21 at 11:30Yes, it's possible by using an older API version 1.2. You need to create an execution context with /api/1.2/contexts/create API (it requires cluster ID and what language is used), and then you can submit code using the /api/1.2/commands/execute API, and get command execution status using /api/1.2/commands/status API. Please note that you need to keep context to execute multiple commands depending on each other...
You can find an example of such execution using the Go language in the source code of Databricks Terraform provider
QUESTION
This problem started a few weeks ago, when I started using NordVPN on my laptop. When I try to search for an extension and even when trying to download through the marketplace I get this error:
EDIT: Just noticed another thing that might indicate to what's causing the issue. When I open VSCode and go to developer tools I get this error messege (before even doing anything):
"(node:19368) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.(Use Code --trace-deprecation ...
to show where the warning was created)"
The only partial solution I found so far was to manually download and install extensions.
I've checked similar question here and in other places online, but I didn't find a way to fix this. So far I've tried:
- Flushing my DNS cache and setting it to google's DNS server.
- Disabling the VPN on my laptop and restarting VS Code.
- Clearing the Extension search results.
- Disabling all the extensions currently running.
I'm using a laptop running Windows 10. Any other possible solutions I haven't tried?
...ANSWER
Answered 2021-Dec-10 at 05:26December 10,2021.
I'm using vscode with ubuntu 20.04.
I came across the XHR errors from yesterday and could not install any extensions.
Googled a lot but nothing works.
Eventually I downloaded and installed the newest version of VSCode(deb version) and everything is fine now.
(I don't know why but maybe you can give it a try! Good Luck!)
QUESTION
I don't usually use Fedora or RPMs, so I'm flying blind here. There are lots of similar questions around here, but none that I found are to the exact point where I'm stuck.
I have the source RPM for an old game program on Fedora ("six" is the game). I want to add a couple of features, but first I want to make sure I know how to compile it so that any future problems are new. I have not made any changes yet at all.
I'm not completely helpless -- when I did
...ANSWER
Answered 2022-Jan-27 at 14:37If you see errors about a specific library missing, you can use dnf
itself to find out the name. For example, on Fedora 35:
QUESTION
We use helm to deploy a microservice on different systems.
Among other things, we have a ConfigMap template and of course a value file with the default values in the repo of the service. Some of these values are JSON and so far stored as JSON string:
...ANSWER
Answered 2022-Feb-17 at 02:05In your very first setup, .Values.config
is a string. The key: |-
syntax creates a YAML block scalar that contains an indented text block that happens to be JSON. helm install --set-file
also sets a value to a string, and .Files.Get
returns a string.
All of these things being strings means you can simplify the logic around them. For example, consider the Helm default
template function: if its parameter is an empty string, it is logically false, and so default
falls back to its default value.
In your final layout you want to keep the default configuration in a separate file, but use it only if an override configuration isn't provided. So you can go with an approach where:
In
values.yaml
,config
is an empty string. (null
or just not defining it at all will also work for this setup.)
QUESTION
I'm running GitKraken 8.2.1 on Fedora and after upgrading from Fedora 34 to 35 GitKraken wouldn't start anymore, showing when started on command line following error:
...ANSWER
Answered 2022-Jan-28 at 15:47Finally I solved that issue. I found that GitKraken is based on EletronJS which has some auxAttributes for GPU.
These attributes can be altered via command line given that they are enabled via app.commandLine.appendSwitch
command in the gitkraken EletronJS application. All these additional EletronJS related parameters are hidden from the command line parameters documented via /usr/share/gitkraken/gitkraken -h
.
So the solution was for me to start GitKraken from command line using the ElectronJS attribute "InProcessGpu", which basically run the GPU process as a thread. To enable that feature simple start gitkraken wiht the attribute --in-process-gpu
, e.g.
QUESTION
I'm very new to React and Javascript, but hoping someone might be able to offer thoughts regarding how to reliably switch keyboard focus on a route change. In the following, selecting any of the menu items(green box is an example) on the LHS leads to a change in the main screen(orange box), but keyboard focus remains on the LHS after pressing Enter.
What I'm trying to achieve is that the keyboard focus switches to being the text highlighted(blue box), thus giving a better experience from a usability point of view. Having searched google, I believe to command to achieve this to be one of the following:
...ANSWER
Answered 2022-Jan-17 at 17:21Some browsers won't allow the focus to be moved to an element if it's not an interactive element. In the blue box, you have an
, which is focusable.
To get around it, add tabindex="-1"
to the
This will allow the focus to be moved to a non-interactive element via JS but won't allow the user to tab to it.
Now, having said that, in general you should not move the user's focus unless there's a really good reason for it. You mentioned you wanted to do it for a
"better experience from a usability point of view"
As a keyboard only user, I would find that a worse experience. If I'm a new user to the app and I wanted to explore the LHS menu to see what's available, I would tab to the menu, press enter or space to select the menu, then see what appears on the right. I'd then want to tab to the next menu item and select it to see what appears, but you moved my focus over to the right so now I have to shift+tab all the way back up to the menu. If I were using a sip-and-puff device or another assistive technology instead of a keyboard, that's going to be a lot of effort.
So your intention is good but it might cause a lot of difficulty for some users. That's why I recommend not moving the user's focus unless there's a really, really good reason for it.
Of course the opposite argument can be made. If the focus is not moved then the sip-and-puff user will have to navigate all the way over to the right side to interact with what appears.
You have to do some research to see what might benefit the most users without adversely affecting other users.
QUESTION
Situation:
Spring-Boot Application using Logback for logging.
Deployed at google cloud run.
Logback configuration includes CONSOLE_JSON
, as described here, to have a preconfigured json appender for cloud run instances.
To see the logs for my application, i am using Cloud Run Logs.
Considering the default logs from spring, i have package/class message and other informations, written in the line.
Switching to a json format with the preconfigured appender, i miss a few informations for example shortened package with class name or thread name.
I was hoping to use the existing console_json appender, to achieve this.
Unfortunately i have to use google Logs Explorer
and then look into a json entry called jsonPayload
which is quite annoying from usability perspective
Desired Output:
- somehow overwrite message format with logback to have the message contain thread and package/class infos, ideally not writing an own appender
Any help appreciated.
My Logback File looks like the following:
...ANSWER
Answered 2021-Nov-26 at 07:04I see 2 options.
- Write my own Appender in case i really need this display pattern in a timely manner.
- as llompalles mentioned i give it a try with a GitHub Issue
QUESTION
ANSWER
Answered 2021-Nov-22 at 08:13Meanwhile I found a (temporary?) solution, to call again the click event of the button, this way the button is back in "released" mode. Here's (for one button) the code:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install usability
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page