961 questions
2
votes
1
answer
109
views
How to bulk load CSV file in mySQL workbench without import wizard?
I am trying to write a stored procedure to import CSV data from local system to mySQL tables. I do not want to use import wizard as I want SP to create, import and display time taken to import.
...
0
votes
1
answer
48
views
Restricting IAM user from accessing/downloading my .py files in AWS sagemaker
I want to share my jupyter notebook to public in AWS sagemaker. But when an IAM user logins all the files are listed under file explorer and he is allowed to download myfunctions.py files where all ...
1
vote
0
answers
68
views
Givens Rotation on Python
I’m replicating Shapiro & Watson (1988) and need to impose the long-run restriction with a Givens rotation.
The target identity is
C_inf@B=C_inf(P@Q_total)=(C_inf@P)@Q_total=A@Q_total
Yet my code ...
-2
votes
1
answer
30
views
Does Chrome silently drop some subdomain names?
I have a website with a main domain and several subdomains.
example.com
sub1.example.com
ltd.example.com
They all have visibly different content.
With Chrome if I enter sub1.example.com I get sub1....
0
votes
1
answer
426
views
Cypress Cross-Origin Restriction – Accessing Elements Inside an iFrame
I'm facing an issue related to cross-origin restrictions. The website I'm testing contains an iframe with a src attribute pointing to a different origin than the main website's URL.
The iframe within ...
0
votes
0
answers
36
views
Is there a way to add a common/global restriction to all element in XSD?
I want to add a common/global restriction to all my elements, is there a way to add a restriction to all element in XSD instead of applying the restriction one-by-one to each element. Below is the ...
0
votes
0
answers
75
views
How can i check SwiftLint working on commit and edited file
I'm using Github action to lint the swift language and using SwiftLint for that. I want SwiftLint to check only the committed and edited files in my project. I've tried multiple solutions, but none of ...
2
votes
1
answer
85
views
Classification issue in an OWL ontology
I am defining a simple ontology to classify a sandwich based on its ingredients. The structure is as follows:
Classes:
Ingredient
Bio
Vegetable
Fish
Meat
Sandwich
BioBurger
FishBurger
Data ...
1
vote
0
answers
80
views
Restrict Youtube API_KEY to only my android app
I'm trying to restrict my API_KEY to only my app. In the Edit API key page I set to 'Android apps' and set the package name and Fingerprint.
The package name is the same as in my AndroidManifest.xml:
&...
0
votes
1
answer
34
views
Do unmentioned element attributes in a complexContent xsd:restriction copy over from the parent type?
If an element in an xsd:restriction doesn’t have an attribute used by the matching element of the complex type the restriction is derived from, what is the calculated value of the attribute for the ...
0
votes
0
answers
48
views
OWL conditional if... then
I am working with Protegé and trying to create an OWL file that allows inferring that if “child1” and “child2” have the same “mother1”, then “child1” and “child2” are siblings. That is, in the ...
0
votes
2
answers
108
views
Can you somehow restrict any installed app with your own app?
Basically I want to create an app where you can select any of your installed apps and then restrict/unrestrict them. I have a great idea for an app, but need the user to be able to restrict an ...
1
vote
0
answers
111
views
Algorithm to Count Permutations Without Adjacent Repeating Characters and Find the Inverse
I would appreciate the help of this great community in finding an algorithm (in any programming language, though I have it in Visual Basic) to solve two related problems:
Counting permutations with ...
1
vote
0
answers
808
views
Error with @SQLRestriction in Hibernate: "Violation of PRIMARY KEY constraint"
I'm encountering an issue when using the @SQLRestriction annotation in my Hibernate entity. My goal is to filter out inactive records by adding a restriction that only loads entities where is_active = ...
1
vote
1
answer
1k
views
How to Handle Google Play Developer Account Restriction Due to Identity Verification Issues?
Hello Developers,
I'm facing an issue with my Google Play Developer account being restricted due to identity verification problems. Here's a summary of the situation:
I received a notification from ...
0
votes
1
answer
44
views
XSD - extend base restriction type
I've the following type definitions:
<xsd:simpleType name="T_YES_NO">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="y" />
<...
0
votes
2
answers
85
views
PHP: Restrict class method to related classes
Sorry if this has been asked before but Googling didn't give it to me.
How do you protect methods (or properties) from only unrelated classes, but have it available for specific, related classes?
...
0
votes
2
answers
117
views
Limit access to just one API endpoint of backend application from a consumer application and restricting other endpoints access
I have two consumer apps for my backend application developed in springboot 3.x and java 17. My frontend (FE) consumer application has access to all API endpoints while for other, i want to give ...
0
votes
1
answer
225
views
cant to restrict quasar input value type number
and why button click works but in script nothing
would appreciate your support
im also used watch and @update model:value in condole log lakeSurface value slices and all warks fine but in template ...
0
votes
1
answer
268
views
Chrome third-party cookie restrictions - reCAPTCHA Enterprise
Will reCAPTCHA Enterprise be affected by Chrome third-party cookie restrictions on Q3 of 2024?
REF : https://developers.google.com/privacy-sandbox/3pcd
We did a test for breakage by enabling chrome://...
0
votes
1
answer
93
views
android Start an activity from foreground service
public class LockScreenService extends Service {
public static final int LOCK_SCREEN_SERVICE_NOTIFICATION_ID = 1;
public static final int SERVICE_NOTIFICATION_PENDING_INTENT_REQUEST_CODE = -...
0
votes
1
answer
192
views
Is it possible to restrict a method to a specific namespace?
I've got a class named NetworkDevice within the namespace Classes.Device and a method:
private void DisplayDeviceDetails<T>(T device)
{
throw new NotImplementedException();
}
If I got that ...
-1
votes
2
answers
70
views
Is there an efficient way to find a subsequence of length 3 where the first is the lowest, the second the largest and the last inside that range?
For instance, given the list [5, 9, 1, 2, 7, 8], the algorithm should find subsequences such as [5, 9, 7] or [5, 9, 8].
I need the algorithm to be efficient. One approach could involve tracking the ...
0
votes
1
answer
142
views
SEPA XSD - Empty Enumeration with Minimum Length
<xs:simpleType name="ExternalPurpose1Code">
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
<xs:maxLength value="4&...
1
vote
2
answers
228
views
How can I create woocommerce coupon with an expiration date using the rest api?
I'm trying to create a coupon via the woocommerce rest api:
https://woocommerce.github.io/woocommerce-rest-api-docs/#create-a-coupon
I can create coupons fine, but it seems the expiration date is ...
0
votes
0
answers
42
views
How to compare the last row with the new row?
In SQLITE and a banking transactions table with columns cargo, abono, saldo. How do I make sure that the next INSERT at the end of the table has the NEW.balance = balance + NEW. debit - NEW.credit
I ...
2
votes
3
answers
15k
views
PowerShell stuck in Constrained Language Mode
I'm a coding collage major, and I am using my school's computer to make a cross-platform script for Linux and Windows. I need to run the script to test it, but PowerShell keeps responding with
Cannot ...
1
vote
1
answer
115
views
How to model XOR in OWL?
In OWL I want to formulate the case where for a certain class only one or the other subclass is allowed. I want to model a restriction that allows for a property to be only linked like (A XOR B) OR (...
0
votes
0
answers
43
views
How to custom simpleType by using JaxB Like Restriction
i tried some Annotations But are not worked for me I thinks all of them Deprecated?
@digits
@Pattern(....)
<xs:simpleType name="TypeNote">
<xs:restriction base="xs:...
0
votes
1
answer
2k
views
how disable the highlighting of editable regions in word by poi
In Word, when edit restrictions are enabled, the option "Highlight editable areas" is checked by default, and the editable sections will have a light yellow background. How to set edit ...
-3
votes
1
answer
165
views
Restrict to modify the Terraform source code
How to encrypt or protect the terraform source tf. I dont want others to change or view the content inside terraform main.tf files.
Is there anyway to convert this main.tf as executable or encrypted ...
0
votes
1
answer
48
views
Restrict user access to pages
I want users to be able to see only their profile information and not have acccess to others users information. I am using a test_func to check if the user login trying to access the profile ...
0
votes
0
answers
83
views
Can't use toolbin helper/prologue files with Ghostscript 10.xxx
I try to use helper files from ./gs/lib or ./gs/toolbin like pdf_info.ps or extractICCProfiles.ps. The result always contains this response:
Current allocation mode is local
Last OS error: Permission ...
0
votes
1
answer
157
views
odoo 17 restrict user to see his products
from odoo import api, fields, models
class ResUser(models.Model):
_inherit = 'res.users'
dealer_category_ids = fields.Many2many(
string="Dealer Category Tags",
comodel_name='rgb....
0
votes
1
answer
201
views
Disallowing Pasting capabilities in Specific columns based on selected Data Validation while still enabling pasting in the same Data validation column
First off let me start by saying I am very new to any form of Coding, VBA is my first attempt at learning it and I am not learning it quickly.
My problem is I have a sheet that I have the intention of ...
3
votes
1
answer
116
views
Restrict Contact page allowing only logged in users in WooCommerce
I am building a ecommerce website with WooCommerce (8.1.1) and Divi theme.
I found how to restrict access to WooCommerce pages to log in users, but I want to restrict Contact Page, which I created, to ...
5
votes
1
answer
3k
views
How to ensure cargo picks the correct compatible version of a crate when restricting the project's rust version?
I'm setting up a Rust recipe for bitbake, which is part of the Yocto project.
My target Yocto uses Rust 1.63, and because I have 1.72 installed on my own PC, I have used rustup install 1.63.0 to make ...
3
votes
0
answers
132
views
I am not able to block Standby mode on a supervised device on iOS 17 programmatically
I am wondering if there is an easy way either through lockdownservice or through an MDM profile to block standby mode.
Something like AllowStandbyMode: false
I need this flag to programmatically ...
0
votes
1
answer
236
views
Boolean Array size restriction in C# [duplicate]
I'm trying to use a boolean array with 10000 elements & my program is erroring out as the number of elements coming into my file load are more than 10000.
Is there a max limit restriction on ...
0
votes
2
answers
2k
views
Allow access to S3 bucket only for authenticated users of application
I'm launching in few weeks my application on Playstore.
In this app, registered users will have possibility to see picture of other users (like a social media app) and will have possibility to upload,...
0
votes
1
answer
25
views
Problem using .htaccess restriction and AJAX [duplicate]
RewriteEngine On
RewriteRule ^(includes|config)/ - [F]
I encountered a problem when trying to protect the file that processes the login of my system. Since I am using AJAX to improve the user ...
0
votes
1
answer
317
views
How to create a positive definite matrix with restrictions?
Consider that we want to create a covariance matrix of three random variables, v1, v2, v3.
Then, the matrix has to satisfy the positive definiteness as well as other covariance restrictions such as ...
0
votes
1
answer
923
views
Restrict Bootstrap to specific React Components only
I'm working on a react app where I need to make use of bootstrap for one of the components. But bootstrap is getting applied to every component and all the previously styled components are getting ...
2
votes
1
answer
65
views
Non-linear optimisation in Python using GEKKO: maximum weight constraint
I'd like to be able to fix an error in the Python code below relating to "wmax". I'm trying to find a solution of weights (the w[i]) such that all the weights are less than or equal to 2.5.
...
1
vote
1
answer
48
views
How to rise max rate on socketserver of Python3?
Im working at Python3 DNS server, and i ran into a problem with max queries per second using socketserver module.
There is statistic for classic Bind9 server:
DNS Performance Testing Tool
...
2
votes
0
answers
1k
views
Google-served ads on screens with replicated content, how to explain that it is my content?
I have a React Native app with admob. In the app I have many views, which 2 of them are Webview, because I did not find a react native library to add the features I wanted. So I did it with HTML ,CSS ...
2
votes
1
answer
1k
views
How to apply restrictions like set a timelimit for another apps, block certain URLs from my devlopment app in mobile devices?
I am trying to build a parental control application which can apply restrictions to another apps in android devices. The restrictions can be like :-
The app can restrict the opening of any game app ...
0
votes
1
answer
168
views
Tableau - restrict access for specific filter
I'm working with Tableau - and I have a workbook that hold Cost values for many departments, I want to give limited access to this workbook for each person.
I have a filter for "Department" -...
0
votes
1
answer
239
views
XML Schema: SimpleType element that must not be empty and has attributes [duplicate]
How do you declare an element
with non-complex content (i.e. "text" and not a child element)
that also has attributes
and whose text node must not be empty
in XML Schema?
An example ...
2
votes
1
answer
58
views
Python: Nonlinear optimisation with Gekko
I am getting the following error with the code below:
TypeError: x must be a python list of GEKKO parameters, variables, or expressions
The error seems to relate to the form of the "m.Equation&...