1,645 questions
3
votes
1
answer
121
views
Set rows to read-only
I have an application with the following requirements:
Before a predefined event (in my application) occurs, I need to update and insert rows in different tables.
After the event, certain rows in ...
0
votes
0
answers
78
views
In the nim-lang, I want to pass a ref to a read-only tree structure to the spawn'ed nim-taskpool
Sorry for the long message, but I was wondering if you could give me some advice.
What I want to achieve is to handle tree-structured data in the nim language using tasks with the nim-taskpool package....
-3
votes
1
answer
130
views
Make a deep copy of an object in C# with private readonly variables and objects
This is a follow up question to my previous one, Make a deep copy of an object inside a ConcurrentDictionary in C#. I want to clone my Patient object so that the object PatientCovariates is the same ...
0
votes
1
answer
172
views
How to make two related fields have different readonly behavior depending on state in odoo 18?
I have these related fields
qty_request = fields.Float('Qty Request')
product_qty = fields.Float('Product Quantity',
digits = 'Product Unit of Measure',
...
2
votes
3
answers
1k
views
What does a readonly method on a struct do?
Visual Studio is suggesting for me to make methods on a struct readonly, what does that mean? I thought only fields could be readonly, not methods.
public struct MyStruct {
...
// I have ...
1
vote
1
answer
1k
views
How can I set all form fields readonly in Odoo 17 depending on a field?
In odoo 17, I want the formview to only view and not edit based on the value of the field order_payment_state = done.
Instead of adding the readonly attribute to each field, I want to write a python ...
1
vote
0
answers
83
views
Error Popping up when saving read only file as save as
I need to have a read only Word macro File that makes the user save it first as what ever they choose the name to be as long as it doesn't override the read only file. It also doesn't matter if the ...
0
votes
1
answer
53
views
Problem sending data with select and hidden input
I'm having a problem with my code where there's a select that's 'disabled' and it doesn't send the data to the next page. I've tried using hidden input but it didn't work.
This is the part where the ...
1
vote
0
answers
19
views
Read only file open on windows file share in a Python script locks a local write?
I have an interesting issue I'm trying to solve, some background so you don't just say "why not do it this way instead?!".
There's a PC running a commercial closed source scoreboard program, ...
0
votes
0
answers
65
views
ASP .NET MVC - Throwing an exception when attempting to modify a read-only session
Say you managed to make the session read-only by applying
[SessionState(System.Web.SessionState.SessionStateBehavior.ReadOnly)]
on a controller.
When modifying the session within that controller, it ...
0
votes
2
answers
365
views
PHP Readonly properties can't be passed by reference?
<?php
declare(strict_types=1);
class Example {
public readonly array $setOne;
public readonly array $setTwo;
public function __construct()
{
// Populate $setOne and $...
1
vote
1
answer
159
views
How to load an SQLite Binary data dump into an in-memory read-only database instance?
I have an SQLite binary dump of around 10mb. The dumped database contains some catalogue data, which I need to be able to read from really fast from a Ruby application (sub-millisecond). Therefore I ...
1
vote
0
answers
232
views
Setup a Zustand readonly store
We are using for our frontend application store Zunstand with Immer for immutability and Zustand lens for separating slices.
I noticed that, due to an error runtime in Javascript console, we used a ...
1
vote
1
answer
251
views
Is there a good way to make runtime constants within methods in C#?
I really enjoy how in Java, we can declare variables "final" within methods to indicate that they will not change after initialization. In C#, you cannot do this same thing-- the only ...
0
votes
1
answer
90
views
How does the field access behave after cloning a constant map in Ballerina
Consider the following code:
import ballerina/io;
type User record {|
string name;
string email;
|};
const USER = {
name: "John Doe",
email: "[email protected]"
}...
1
vote
1
answer
192
views
How to route different db requests to read only instance
We have our primary database in Europe, and it is replicated using azure to a closer region as a readonly instance. This costs us quite a lot every month and we are only using it to he able to fail ...
-1
votes
1
answer
1k
views
How do I create writable readonly rootfs using yocto?
I want to create writable rootfs using Yocto. I tried with meta-readonly-rootfs-overlay layer and just included it into stm32mp135f yocto build process but seems like it is not making a writable ...
1
vote
2
answers
227
views
instantiate a django form in readonly mode in a view function
I have a django 4 form having some widgets for the user to select some values:
from django import forms
from .app.model import MyModel
from bootstrap_datepicker_plus.widgets import DatePickerInput
...
0
votes
1
answer
109
views
Editing a Google sheet by script with READ ONLY Grant
I need to write a Google script with the doGet() function that edits more cells of a Google sheet. This script is called via https URL. All the members of my Organization Will be able to call this URL ...
1
vote
0
answers
79
views
Make readonly/disabled some WooCommerce checkout fields for registered customers
In WooCommerce, I would like to allow the country and the city selection only to new customers that haven't placed an order yet. But for customers that have already placed an order once and have yet a ...
1
vote
1
answer
85
views
is r-x file considered read only or not?
A file is considered "read-only" if reading the file is
allowed but writing to the file is not permitted.
What if the file has the following permissions (r and x)
root r-x file_name.xls
Is ...
2
votes
2
answers
148
views
Collection<T> is read-only?! What's the matter with using the params keyword to instantiate a collection?
I'm using Unity version 2023.1.6. I have a custom collection that inherits from Collection<T>. If I instantiate a collection and then try to use the .Add() method I receive the following error :
...
-1
votes
1
answer
830
views
Make document read only using docx-templates in nextjs
I am trying to generate a docx document from a template using docx-templates in nextjs. Can anybody tell how to make the generated document readonly?
Or make parts of the document read-only?
I tried ...
1
vote
0
answers
194
views
Typescript not guarding structure with readonly vs mutable property [duplicate]
I have just came across this super simple example where typescript would not guard enough and would let readonly object been passed where mutable is expected.
Following compiles in TS 5.1.6 (and all ...
0
votes
0
answers
165
views
Read-only output when running "make all" in clion (WSL2)
I want to run a project makefile (rule all) using the clion tool, but when I use it, it seems to work, but it gives me a read-only output. I've done the same thing on Ubuntu, and it works, but with ...