text stringlengths 15 59.8k | meta dict |
|---|---|
Q: Android: Handling screens that are the same dpi level but different I have gone through all of the Android docs about handling multiple screen sizes but I still haven't been able to find an answer to this question or how to handle this.
If there are two phones that have the same dpi level (such as both being hdpi) I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10055204",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I installed scott user creating file but It wasn't the scott It mentioned like USER is ""
as u know it usually downloads together with scott.sql file but Idk why but It couldn't download it so, eventually, I did it by myself. even directory wasn't created so I made it those by myself as well. anyway, even though I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59163561",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: whats wrong in my code? why the error msg The following code works just fine I can get the results I want if I ignore the error message once I run it. the error I get is: Debug Error!
Program:c:\qt\qt5.5.1\5.5\msvc2013_64\bin\Qt5Cored.dll
Module: 5.5.1
File: global\qglobal.cpp
Line: 2966
.....
if I chose to ignore e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34772787",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ThreadLocal garbage collection From javadoc
Each thread holds an implicit reference to its copy of a thread-local variable as long as the thread is alive and the ThreadLocal instance is accessible; after a thread goes away, all of its copies of thread-local instances are subject to garbage collection (unless other ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17104452",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: How do you find duplicated elements of a vector that outputs the integer appearance of that duplicate instead of a logical? We know that the duplicated() function outputs a vector of logicals. What I want, however, is a vector of integers such that, if this is the (n+1)th time that this particular element appears, t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29615834",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Access a ViewModel from another ViewModel I'm developing an WPF using MVVM pattern, C# and .NET Framework 4.6.1.
I have a Window that contains an UserControl (Control1) and that UserControl contains another UserControl (Control2). I have chosen this way to do it instead of using a Dialog Window (Control2 acts as Dia... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39268440",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python or Matlab rotate with spline interpolation order higher than 5 I need to do a rotation with a spline interpolation of high order >5. I insist on the fact that it is for interpolating rotated data, not upsampling.
I found : https://docs.scipy.org/doc/scipy/reference/generated/scipy.ndimage.rotate.html?highligh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71565039",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Wilcoxon test with chicken's weight data(ChickWeight)
head(ChickWeight)
plot( ChickWeight$Time, ChickWeight$weight, col=ChickWeight$Diet)
chick = reshape(ChickWeight, idvar=c("Chick","Diet"), timevar="Time",
direction="wide")
head(chick)
chick = na.omit(chick)
Perform a t-test of x and y, after add... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70724754",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Repeating text in Processing language So I need to repeat text 40 times, I figured out how to do a line a certain amount of times, but using the same process for text is not working, ive tried messing around with different code but I am stuck.
Any help would be great.
I just need to repeat the word "text" 40 times i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13365276",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL - Select MAX or TOP 1 FROM each month I have a query that literally does nothing helpful, but hopefully paints the picture of what I am trying to accomplish.
SELECT *
FROM Tbl_StockData
WHERE Date <= DateSerial(YEAR(Date), MONTH(Date) + 1, 1) - 1);
Which basically gets all values where the date is <= the end ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68238384",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Error when calling classroom PHP API method: courses.courseWork.list So I use the Google Classroom PHP API to integrate it with my project. When the user is requested to logging with the google account, I request the following scopes.
Google_Service_Classroom::CLASSROOM_COURSES_READONLY, Google_Service_Classroom... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68270941",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to run a memory intensive spark streaming job using the smallest memory usage possible I am running a job that joins two kafka topics into one topic using a value. The environment I am using only allow me to assign less than 10g ram per job, the data I am trying to join is around 500k record per topic.
I am pret... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65977380",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to download Git's code using SourceTree I have created a project in git.oschina.net (via website).
I wish to checkout this project using Atlassian SourceTree, but have failed to do so. Please note that I am using a foreign language with my client.
I have received the following error message : Authentication fail... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49644475",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to query all the tables in a database to get the last existing value? I've got several databases in which every table contains data from energy-meters, structure is always like that:
-------------------------------------------------------------------------
| dsid | tag | timestamp | value | startts | corre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55485066",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to correctly override literal operators? Ok, so I made my own class and I've overloaded an operator ""s so I can use it for my string formation.
BUT, I get an error when compiling and I have no idea what it means.
Could someone explain the meaning of it and how to fix it?
my code:
PString operator"" s(const char... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47728887",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: chartSeries bounds: setting par("usr") equal to itself changes the axes I'm trying to set the bounds on a graph so I can plot indicators, then move/squish the bounds so I can plot points in the same place. However, I'm having trouble just getting started since when I change the bounds to itself the relative axis app... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24829100",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Detecting from which USB port input comes I have a project in which input would come from multiple peripherals (in this case, barcode scanners) and I would need to know which barcode scanner the input is coming from, but all I have found when researching this was comminicating with USB drive. I am using Java on a Ra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35895875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: reading entire text file using vba I'm trying to read a text file using vba. I tried the below code
Open "C:\tester.txt" For Input As #1
Worksheets("UI").Range("H12").Value = Input$(LOF(1), 1)
Close #1
When I run this I'm getting an error.
Run-time error '62'. Input past end of file.
The content of text file is:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20390397",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: should I use strategy pattern, If I have hundreds of actions I have a class doing translate job. But it have hundreds of specific translate methods! The action code determine which method will be used! I want to use strategy pattern, but it will create hundreds of sub class! I want to name the methods end of action ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67533224",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Load HTML source code How do I load HTML source code? I tried a few functions with no luck. This one works for me on many sites, but not all of them:
function LoadWebPageToString(MyUrl: String): String; //load HTML content from a webpage to a string
begin
Result := 'Error';
with TIdHTTP.Create do
begin
tr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17137506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Azure DevOps API Add public key I would like to be able to add a public key for SSH access to Azure DevOps via the API but I can't seem to find a way to do it in the doco. Doing it manually via the UI is not feasible since this is for many users and many projects. Thanks
A: The API is not documented, however we c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52658534",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: export xls file and microsoft office and oppen office do i need to install Microsoft Excel to be able to export xls file in c#,
I have my application it run in my pc but when I test it in another pc that it don't contain
Excel the application got errors !!
I see this link Using Microsoft.Office.Interop.Excel witho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7386409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP with SQL Injection Ok, starting fresh >
For our first assignment in a System Security class, we have to hack into the professors "cheaply organized" sql database. I know the only user is "admin" and picking a random password, the select statement generated in the php is:
select user_id from user where user_usern... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4703518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Fancy box making image disappear on rails Hi my fancy box image keeps disappearing whenever I click on the image,the fancy box displays the image but once I close it theirs no image. Where am I going wrong?
Fancybox javascript:
$(document).ready(function() {
$(".single_image").fancybox();
});
Fancybox Image:
<%... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9940103",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to make HTML5 contenteditable div allowing only text in firefox? I want to make div with contentEditable attribute which is allowing only text. It's easily achievable in Chrome by using:
<div contenteditable="plaintext-only"></div>
However it doesn't work in Firefox. Is there a way how to make text-only content... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21205785",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Dapper multi mapping two properties of the same type Let's say I have contacts stored in my database in a flattened form, such that I query them like this:
SELECT Name, HomeHouseNumber, HomePostcode, WorkHouseNumber, WorkPostcode FROM Contacts
I would like a little more structure in my C# code and have this simple ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37567136",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Iframe with another iframe I want to extract result of checking code. Website display in that code. I marked it in source code.
<div id="ember332" class="ember-view backArrowContainer">
<div id="purchaseMeta">
<h2 class="flowStatus"> UŻYJ KODU PREPAID </h2>
<div class="gamertag">
<div class="title">
<script id="... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26196778",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: creating a plist file I want to write an Array to a plist wich works fine when i manually create the plist in the document folder.
but When I check if the plist exist and if not to create it from the plist in main bundle nothing happen.....
i did it as in the Property List Programming Guide it is written.
NSStri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5017461",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: store image in a folder form a list in silverlight I want to store a image in to a folder which I have selected from a list in silverlight
A: In Silverlight you have only limited access to the file system for security reason.
So everything what you want to save would end up in IsolatedStorage...
Check out this Qui... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5712712",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Upgrade an existing application to include ClickOnce Is it possible to introduce ClickOnce functionality to an existing application?
The scenario is: Version 1.0 is already installed on client premises. I would like to send them a new setup package which will upgrade to 1.1, which has ClickOnce functionality, thereb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1045300",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to share reqwest clients in actix-web server? I'm building a web server with actix-web, and one of the methods uses reqwest to make HTTP requests to an external API:
#[get("/foo")]
async fn foo() -> impl Responder {
let resp = reqwest::get("https://externalapi.com/bar").await?; # GET request inside server
..... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68668229",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: problems understanding java ActionListener - Performed(ActionEvent e) I have to write code for a Fibonacci program that builds a GUI with two text box and a button. A user inputs a number in text box 1 and clicks the button which then places the Fibonacci of that number. I am having problems understanding the actio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5683503",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Calculating the expected value of a transformed random variable in MATLAB? I am trying to compute the following expected value for Z being lognormally distributed
E[Z^eta w(F_Z (Z))^-eta]
where eta is a real number, F_Z the distribution function of Z and w:[0,1]->[0,1] an increasing function.
First of all, I am pret... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24761176",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to get points from a line in OpenCV? The cvLine() function can draw a straight line given two points P1(x1,y1) and P2(x2,y2). What I'm stuck at is getting the points on this line instead of drawing it straight away.
Suppose I draw a line (in green) AB and another line AC. If I follow all the pixels on line AB th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/6689278",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: change margin for and in wkwebview kit in objective c I wanted to reduce the space in the HTML string.
below is the code is am using
NSString *headerString = @"<header><meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no'></header>";
he... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58070588",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Regex search causes VS-Code to crash on macbook I'm trying to search for a RegEx expression using VS-Code's built-in search option.
Here is the regex: (?:((\s|\w+|\d+|\]|\))+)(?<!(\bReact\b))(?<dot>\.(?!\.))+)
As soon as I enter this expression, VS-Code crashes on my macbook.
Is there any way to prevent this?
A: Yo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74826483",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Where to put my xUnit tests for an F# assembly? I'm working on my first 'real' F# assembly, and trying to do things right.
I've managed to get xUnit working too, but currently my test module is inside the same assembly. This bothers me a bit, because it means I'll be shipping an assembly where nearly half the code (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2399946",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Read & Write files from Input to Output folders: Python I have written a Python script that reads one file, replaces text, & then outputs it into another file. Instead, I would like to call an input FOLDER that contains multiple files, read these files, & then output them into a destination FOLDER. How would I appro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71949062",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Date Sorting in Java The Instruction was to create a Random dates for each object withn the range specified in the instructions below for the interview slot objects to be stored in . I am not exactly sure how to do this
Create a random number of InterviewSlot objects and store them in the slots container.
Use the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60944062",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: UICollectionView showing scroll indicator for every section (header zIndex broken) When scrolling through my UICollectionView it's showing more than one scroll indicator. I've noticed there is a one for every section in the collection. See screenshot displaying three at the same time:
Anyone experienced same issue?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45215932",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Store application config variables to database Is there any PHP open source class that can store application configuration variables in MySQL database, like Wordpress for example?
I would like to store and read something like this:
$config['name'] = "test1";
$config['name']['subname'] = "test2";
in MySQL database t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41325970",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to index a table with order by? Using a while loop I'm able to return my table in the order I want, but after implementing pagination the variable I've created (counter) resets itself on each page, frustratingly. Example code:
$sql = ('SELECT id,name,logo FROM mytable ORDER BY name DESC LIMIT 25');
$query = mys... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38844337",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I address imbalanced data before training? Suppose that we want to train YOLOV3. We gathered around 5000 images for 3 different classes. Class distribution is:
Class#1 = 2250 images
Class #2= 2500 images
Class #3= 250 images
As you can see it is imbalanced and I can not train based on that data. What do ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66015722",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Exactly once delivery option for a pubsub subscription is not available for some reason I am unable to select the 'Exactly once delivery' option for my pubsub push subscription. No where on the internet does it explain why it is greyed out. (See below)
Tried finding answeres everywhere, looked into docs as well but... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75194449",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: laravel: can not accept post request without csrf I have added into the exceptions:
protected $except = [
'pay/finish'
];
But still I am getting MethodNotAllowedException
Route is defined in web.php
Route::post('/pay/finish', ['as' => 'pay.finish', 'uses' => 'PaymentController@finish']);
The post r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59443377",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Trouble linking assembly program: File format not recognized I have the following simple assembly program (downloaded from this website).:
extern printf ; the C function, to be called
section .data ; Data section, initialized variables
msg: db "Hello world", 0 ; C string n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49494986",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to manage large product catalog in magento? I am looking for a website Like coverscart.com using Magento. I have 2000 mobile covers for 500 model. I am trying to create configurable products, But it's not reliable solutions. Because for every model I have to create 2000 simple products.
With Configurable Total C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52053202",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Implement Iterator interface for ArrayAccess without container array This is my attempt at implementing https://www.php.net/manual/en/class.iterator.php for an ArrayAccess. Many examples use a container array as a private member variable; but I do not want to use a container array if possible. The main reason why I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60689674",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Having problems with aligning layers with body background I'm creating a layered parallax page that is triggered by the scrolling of the mouse. I've managed to set this up and the layers all move how I want them to. Unfortunately, I've run into a problem with the background image of the body. On the left side of the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69585168",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Render collection using a partial giving "undefined method for nil:NilClass" I'm trying to render a collection of Projects using a project partial but I'm getting the following error:
undefined method `customer' for nil:NilClass
Extracted source (around line #1):
1: <p><%= company_name(@project) %><p>
The stacktrac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16625995",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Running into issues with django/vue (and possibly livereload) So I've got a Django/Vue project I'm trying to get off the ground. It's currently being pretty inconsistent. (I was able to get Vue to generate some things, but not others)
I first got Vue working, but upon realizing I would need to wipe browser history, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49578439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Flask sidebar shows up at the top, not on the side I am writing a simple Flask app, and I want a sidebar to always be present. I tried using the template below, but for some reason the sidebar appears at the top, not on the left-hand side where I want it. Here's what it looks like:
and here's what I want it to lo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50931924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to remove Local Storage in another JS file From below case, can someone help me to know how to remove localStorage which i have implemented below :
var serverSelectorDemo = function() {
loadrightdata();
function loadrightdata() {
$('#kt_datatable_fetch_display2').html(local... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71346728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Timeout a function in JavaScript/jQuery I've got the following problem:
I'm using Google Maps on my site. I've attached the following eventListener to the map itself:
google.maps.event.addListener(map, 'bounds_changed', scheduleDelayedCallback);
The event bounds_changed is called every time someone drags the map. M... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4034897",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Connection refused error with selenium running in docker While trying nto dockerise selenium End2End tests using the selenium docker image 'selenium/standalone' i get the error : Error retrieving a new session from the selenium server Connection refused! Is selenium server started?
ye selenium server starts up acco... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45343363",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Deactivate checkbox if a condition in a text input is true in javascript I've several text inputs and an checkbox array.
If the value of the text input is less than 6 deactivate the checkbox.
I tried this but the checkbox is always enabled.
<script>
function desactivacasillas() {
var formularioprincipal ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23166756",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Set a variable in url using php and mysql I need to set two variable in a url, $id and $job. The data should come from mysql select statement, [id] and [job_number_id]. My page displays a client job proposal and if there is more than one all proposals are displayed but the [id] and the [job_number_id] determines wha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21424676",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Google DoubleClickStudio - video source file After creating a creative banner with an mp4 video in Google Web Designer and then upload that creative to DoubleClick the source file has changed from mp4 to webm. The issue here is that webm in Safari is pixelated and the creative/ad is not shown properly, while on othe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69046044",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to create Exception and pass AggregateException as inner exception? Imagine this scenario:
Task.Run(() =>
{
// code...
}).ContinueWith(x =>
{
var betterEx = new Exception("My custom message", x.Exception));
}
, TaskContinuationOptions.OnlyOnFaulted);
However, the betterEx.Inn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51048391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to test if your REST API service supports gzip data? I am testing a REST API service that supports json and gzip data. I have tested the response from the json request payload. How to test if it handles gzip data properly? Please help?
Basically the client sends a request with accept-encoding as gzip in the head... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64467835",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Jquery Deferred for an async function I have been reading a lot about JQuery's deferred object. And I can see how it works to de-couple code. I wrote this orignally using Async.js but would was recommended to use promise.
Most examples I find just chain things to AJAX calls. I want to chain an async function but... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10601030",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PostgreSQL: Optimizing bulk INSERT INTO/SELECT FROM In my Postgresql schema I have a jobs table and an accounts table. Once a day I need to schedule a job for each account by inserting a row per account into the jobs table. This can done using a simple INSERT INTO.. SELECT FROM statement, but is there any empirical ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73657585",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: XML mapping to objects without attributes in C# Is there a C# library that allows mapping C# objects to XML without Attributes?
I have several data sources, all of them containing XML data with the same logical-structure, but different schema. For example in one XML there might be a field called 'zip-code', in anoth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/14641646",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to connect to tables and display their content? (MySQL and PHP) I have two mysql tables (products and categories). I have some mock data in both tables. Now I need to somehow attach the categories to the products. For example - The product witht he ID 1 should return the following:
| product name | category |
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71996831",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: React Native bottom tab navigator - Android screen reader only selects tab label and not tab icon as well I have a bottom tab navigator from react navigation.
Previously, when you had the screen reader on, both the text and the icon of each tab could be selected as one container.
Here we see both the icon and label ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75321062",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: using CASE WHEN in SQL Statement I have to display information by comparing data in two ID columns, one column has 'ALL' and numbers as ID's while the other has only numbers in it as ID's. My problem is, I cannot compare character and number columns with a number column. So I am using CASE WHEN.
If the value is 'A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5751038",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Multiple locks locking the same functions C# .Net I have a simple question about lock.
Are Process1 and Process2 the same because they are eventually locking the LongProcess?
Thank you.
private static readonly object _Locker = new object();
public void Process1()
{
lock(_LockerA){
LongProcess() ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9781213",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get the settings and how to change settings using adb commands I am working on a project where I have to retrieve the settings of an Android phone and then change it from command prompt only using adb shell.
Actually I don't know which adb command to use to get the details like SW version, current ringtone, M... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43385395",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Update a single node XML file with PowerShell I have this XML file: environment-config.xml
<?xml version="1.0" encoding="windows-1252"?>
<environment>uat</environment>
I would like to update the value and have this script.
[string]$EnvConfigFileName = ".\environment-config.xml"
$EnvironmentName = 'prod'
[XML]$xmlF... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67782312",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery dynamically set incremented height to elements What I want to achieve:
for each ul.container -> find the greatest li height -> add 25px to it -> apply that new height to all li within the container.
I need the calculation to happen also on window resize.
The problem:
While this works at page load, when resizi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23868195",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: multiple or conditions in if else statements best way oracle pl sql I have below scenario where i have to check multiple or conditions to check if local varibale should not be equal to A, B, C, D and so on. Obviously real values are different than I refered here. I want to know which one is the best from below or an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39208331",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: HttpUrlConnection Get method returns status code 405 I am trying to fetch data from the server using HttpURLConnection. The request is a GET request. But, it always returns status code 405(BAD_METHOD). Below is the method I wrote:
URL url2 = new URL("http://www.example.com/api/client_list?");
HttpURLConnection conne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26332041",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Swagger - Route defined in Swagger specification but there is no defined get operation I am creating a nodejs web service using swagger-ui. So I went on the online editor of swagger, did my yaml and exported it for nodejs server.
When I am running in on my computer, with host as localhost (see yaml) I try to perform... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48417779",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Wrote a hello world program in C but now I can't kill the process I wrote a simple hello world program that should print hello to the console. I compiled it using gcc. Once I tried to run the .exe file it created a little blue spinner next to my mouse pointer and it doesn't go away. I've tried to kill the process us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34696673",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Don't generate blocks without values (ASP.NET MVC) I have back-end code
here is code
[HttpGet]
public ActionResult QuestionBlocks()
{
var _id = TempData["ID"];
var questBlock = db.QuestionBlocks
.Where(x => x.Interview_Id == (int?) _id)
.Select(x => new
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43609339",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Executing a function prevents tkinter window from appearing I have a function that is going to be the main area of this program, but when I add in a new function that needs to be executed by a button, it prevents the window from appearing, or gives out an error. The function I am trying to get to appear after a butt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66128900",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android dataBinding - How to get resource id of a View in xml In Android Studio my data binding itself works and is set up fine. I have a boolean defined like this:
<resources>
<bool name="showAds">false</bool>
</resources>
and in a layout.xml file i would like to referenced this boolean (which works fine) but ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34831472",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: When I'm deploying ios app to simulator, it is not showing me complete screen When I'm deploying ios app to simulator, it is not showing me complete screen.
I've already configure proper launch images.
simulator size (3.5")
A: What's happening is that because your monitor is not a retina display and the device you... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32097558",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to write a template that could be specialised with an object or an int N What I'm trying to achieve is a template with a "flexible" first argument (which is most likely something like an array element, not unlike the first argument of std::vector) and a second argument. For that second argument, I want specialis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37880964",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Eager loading of non-singleton collections I'd like to load collections of repeated objects. My model looks like this:
Item -> Identifier
I'd like to load (eagerly) collections of Items that share the same Identifier, but ignore the vast majority of collections that contain one item or less. The ORM relationship is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8392653",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Systemd can't execute script which loads kernel module When I'm trying to execute script through systemd service - I receive error message and script can't be run.
init_something.service file:
[Unit]
Description=Loading module --module_name module
[Service]
Type=oneshot
ExecStart=/usr/lib/systemd/init_script
[In... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28565646",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Choosing any weekday as a start day to show on the calendar I have created the following function which prints a calendar with day starting from Sunday (to Saturday) ... but I want to be able to choose any day as the first day... eg. first day being Wednesday ... I tried but couldn't get it working ... Can you help ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13084755",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Attempting to install Oauth on php 8.0 Amazon Linux 2 I have tried a ton of things at this point, but I'm getting this error when I try and run
sudo yum install php-pecl-oauth
It's telling me that I'm missing php(api) and php(zend-abi)? I don't know what to install to fix it. What exactly does this mean (I have tri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73900649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Not able to run when injecting dependencies with Hilt into Android Classes I'm in the process of making an application using Hilt. But my question is, am I only able to run my app through AndroidManifest.xml? I'd like to run it through another class, but it keeps giving me a blank page.
My Classes:
Application class... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75052011",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: R - Split column values into new multiple columns I have a dataframe in the form:
id products
1001 milk, cheese, sugar
1002 milk
1003 cheese, eggs
I would like to change it to a new data frame in the form :
id product1 product2 product3
1001 milk cheese ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63890643",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Windows Phone 8.1 Unit Testing I have a Windows 8.1 Universal application that I have run into an issue with unit testing. I am using MSTest. I have a test that needs to make sure that an exception is thrown. The test is pretty simple, if a null value if passed in, it fails. The exception thrown should be Argume... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33140516",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Linq to entities does not recognize my entity types I have a problem when creating an entity model from scratch. I successfully design my objects and generate the database creation. But when I try to make a linq request like
var t = from e in entity.UsersSet
where e.Id == 1
select e;
it seems like m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5844547",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Iterating through a multidimensional array in Python I have created a multidimensional array in Python like this:
self.cells = np.empty((r,c),dtype=np.object)
Now I want to iterate through all elements of my twodimensional array, and I do not care about the order. How do I achieve this?
A: you can get the index of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/971678",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: Python getpass works at second attempt when in separate module I try to use a seperate Module with a getpass() function in it, e.g.
#! /usr/bin/python3
from getpass import getpass
import sys
def mypass():
try:
password = getpass('Password: ')
except Exception as e:
print(e)
sys.exit(1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69001100",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Web Service authentication in Java EE When developing a Web service(Hospital Management System) using Java EE, is it necessary that for each Web Service call, it has to be checked that the user is logged in??
Which authentication method is the best JAAS, WS-Security, SAML, or a combination or using own tokens??
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8864879",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: how to get whole string in different variables? how to get whole string in different variables?
I have single string which contain 5 names and there is a space between every single name,now i want to get these five names in to different ,different string
for ex i have string like below
String name= ABC DEF GHI JK... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37614336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: << operator in ruby I am quite new to ruby,
I came across the following code in rails, but I don't know how the "<<" operator works and what it does in the below code
def <<( rate )
r = Rating.new
r.rate = rate
r.rateable = proxy_owner
...
...
end
class << ActiveRecord::Base
...
...
end
Can anybody ex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4135464",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Update if record exit ,insert/save if record not exist I have a edit form which edit an array like (Invoice) , I want when i edit the Invoice_no a can also able to add the new item on the same invoice number
Example the Inv_no=300 and its carry 3 arrays ([... .... ... ]), so I want to add the new one array to be 4 a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61871792",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Chrome with PHP, infinite loop I have a PHP app running inside a Docker container. While testing websockets I am using an infinite loop to wait for response from the server. Endpoint is an AJAX call triggered on click, ultimately hitting this method:
public function searchMessages()
{
while (true) {
slee... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53852795",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to clean the input search without hiding the keyboard ? (mobile) I am using Ionic/AngularJS and that's my question, every time I clean up the input, the keyboard disappears and I don't want that
<ion-header-bar ng-show="searchBoxEnabled">
<div>
<input type="search"
ng-model="query">
<div ng-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28465559",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I see post body data in chrome dev tools? I have this fetch api in React that is sending data to the server. The server runs PHP and I'm having trouble accessing the data with $_POST or with file_get_contents('php://input');
So I want to check every step of the process until I can see where the error is. I a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53798887",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Cloud SQL API Explorer, settingsVersion I'm getting familiarized with Cloud SQL API (v1beta1). I'm trying to update authorizedNetworks (sql.instances.update) and I'm using API explorer. I think my my request body is alright except for 'settingsVersion'. According to the docs it should be:
The version of instance s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21209826",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Check password when the return key is pressed? The form below works, but only when the button is clicked. Can someone please tell me how to submit this form and check the password with the script below when the enter key is pressed as well?
function checkPassword() {
if (document.getElementById('password').valu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63943972",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: The tag is unrecognized in this browser import React, { Suspense } from 'react'
import { useGLTF } from '@react-three/drei'
const MagicRoom = () => {
// Importing model
const Model = () => {
const gltf = useGLTF('./libs/the_magic_room/scene.gltf', true)
return <primitive object={gltf.scene} dispose={nu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69687446",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I extract arguments in a function (written as a string) in R? Let suppose I have defined a function by f <- function(x,y,z) {...}.
I would like to be able to transform an expression calling that function into a list of the parameters called by that function; it is the opposite of the do.call function.
For exa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34071734",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.