1,645 questions
0
votes
0
answers
386
views
Cannot convert value of type '() -> [Any]' to specified type '[(TextFormatType, UIButton)]'
I'm getting error when i try to extract toolbarStyles from here and create a read-only computed property.
private func toolbarButtons(toolbar: Toolbar) {
guard let selection = getSelection() else ...
1
vote
1
answer
3k
views
Inconvenience when working `as const` arrays - readonly T[] not assignable to T[] - how to remove readonly modifier from array [duplicate]
I keep running into this problem all the time (playground link):
const arr = [1,2,3] as const
const doSomethingWithNumbers = <T extends number[]>(numbers: T) => {}
doSomethingWithNumbers(...
0
votes
1
answer
58
views
how to read with Jquery and element readonly for django
see the image plx
there are some readonly field that i set up on django, but i want to read the values using Jquery but really idk how to do it, i want to do it cuz depending of the value that is set ...
0
votes
1
answer
14k
views
Uncaught TypeError: Cannot assign to read only property of object '#<Object>'
For the code I am currently working on, I have a very complicated array filled with objects.
The point of this page is to change one property of one object in the array at a time, and as is such, the ...
-2
votes
1
answer
1k
views
HTML - I cannot copy the value from a read-only input type
I have an input set to read-only
<input type="text" placeholder="{some variable}" class="form-control" readonly>
When I open this in chrome, I cannot copy the text,...
0
votes
0
answers
52
views
Creating a role/user that only displays list of accessible tables
I'm trying to tighten up some roles/user privileges for my postgresql db. What I'm trying to achieve is a readonly user to ONLY be able to see the list of tables they have access to.
I've created a ...
1
vote
1
answer
218
views
In Kotlin, Why can the value of a val integer be reassigned by the inc() method?
Consider the following,
val x: Int = 0
val variables cannot be changed so doing x += 1 wouldn't work
The compiler says Val cannot be reassigned
why then does x.inc() work fine
doesn't x.inc() reassign ...
1
vote
0
answers
63
views
Improvement of the readOnly flag on Transactional annotation in Spring 5.1
reading about performance of the readOnly flag on the Spring Transactional annotation, its said that it has been an improvement from Spring version 5.1(https://github.com/spring-projects/spring-...
1
vote
0
answers
47
views
Why is Angular build prod adding moz to my readonly class selector, why is the class not applied and how can I fix it?
I am trying to style non readonly text areas. Although it's working fine locally with ng serve, the class is not being applied at all when deploying with ng build --prod.
This is the CSS code:
.my-...
0
votes
0
answers
534
views
Django: making field form readonly (not working since I use django-crispy helper)
I try to customize my forms fields using django-crispy.
But I can make my fields 'readonly'.
Before using django-crispy FormHelper, I used disabled form field attribute and it works well.
Now, I want ...
0
votes
1
answer
1k
views
Editing files in a read-only directory in docker container
I would like to add some Core dump configuration to an Opensips docker container. At present, I am only generating a coredump file with the name "core" (which could be overwritten).
The ...
2
votes
0
answers
58
views
Mongoid: add readonly in hash fields
Readonly in field of type Hash in MongoId not work property
class Model
include Mongoid::Document
field :data, type: Hash
attr_readonly :data
end
This code is ok:
Model.create!(data: { foo: '...
1
vote
1
answer
1k
views
How to open SolidWorks sldprt files as read-only with PowerShell?
I built this open-file function in PowerShell for a GUI I wrote that lets you find and open various files on a server. I mainly use it for opening SolidWorks files as read-only, but also for PDF files ...
4
votes
2
answers
2k
views
Run Docker on Raspberry Pi4 with overlay fs
I prefer to create a situation where on a Raspberry Pi4 Docker is running while the SD-card is read only. This with overlay fs.
In the dockercontainer a database is running, the data of the database ...
0
votes
1
answer
2k
views
Problem with RODC (Read Only Domain Controller) forwarding to RWDC with WCF Windows Authentication
I have a problem regarding RODC forwarding.
There is a WPF Application calling an WCF service configured with Net.Tcp Binding and Windows Authentication (like here)
https://learn.microsoft.com/en-us/...
0
votes
1
answer
503
views
Make a cell with ComboBox readonly on certain conditions WPF DataGrid
What I have:
I have a DataGridTemplateColumn with a ComboBox:
<DataTemplate x:Key="ValuesCellTemplate">
<TextBlock Text="{Binding Path=SelectedValue, Mode=OneWay}" /&...
1
vote
1
answer
2k
views
How do I make a read-only "Connect to ODBC" connection in SAS Proc SQL?
I am creating a SAS macro function that my co-workers may use to connect via ODBC connections to various databases using SAS Proc SQL, to run pass-through SQL code. I would like the connection to be ...
1
vote
1
answer
274
views
How to have a max for a readonly element?
So let's say I have some code that looks like this and I want the form to only be submitted if the sum of x and y is 10 or less. Now when I run this code it completely ignores the "max" and ...
0
votes
1
answer
2k
views
How to initialize a readonly/private value in typescript using a setter?
Some background for the code in question: I'm trying to implement a configuration class that's convenient to initialize for the user. For this purpose, my configuration takes an object implementing ...
0
votes
0
answers
302
views
Why is the RTCPeerConnection throwing a readonly error while setting remoteDescription?
I've been experiencing a bug that's driving me mad. I'm using the react-native-native-mqtt library as the signalling server for WebRTC. When my client receives the offer and attempts to set it as its ...
0
votes
1
answer
2k
views
Enable and disable 'edit' on orders for shop manager (woocommerce)
I'm currently using the woocommerce-readonly-role this plugin to disable the ability to edit for a specific user where they only are able to view orders instead of editing just for shipping purposes ...
7
votes
1
answer
3k
views
Kubernetes 137 exit code when using SecurityContext readOnlyRootFilesystem
I am trying to host a web app in a container with read only file system. Whenever I try to configure the root file system as read only through the SecurityContext of the container I get the following ...
0
votes
0
answers
496
views
In Jodit editor trying to allow highlighting but no changes to actually text
I want to allow highlighting but not all the user to change the underlying text in Jodit-react.
If I do readonly this doesn't allow the highlighting.
Any suggestions?
0
votes
1
answer
1k
views
In Kubernetes, can I have a deployment with both read only and writable files?
I am currently running a deployment that is pulling from a database and is set as read only. Unfortunately the deployment freezes on coaction without notice so I came up with the idea of having the ...
2
votes
2
answers
2k
views
Why property in class is not read only (Typescript)
Why property name in class PeronsImpl is not read only and we can reassign it the object created ?
interface Person {
readonly name: string;
}
interface Greeting extends Person {
greet(...