text stringlengths 15 59.8k | meta dict |
|---|---|
Q: cheque (or check) printing with html php web app I am working on a solution that gives all the details for a check like the payment details and the name and address of the person to be paid.
I want to use web technologies like html, xml, php etc. to print the check details on a physical check as quick-books does.
I'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32591838",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: VBA: Speed efficient deleting rows My solution takes a long time to execute. I have file with 60k rows, and it can be bigger. Can you help me to make this process faster?
Sub kary()
Dim table As Variant
Dim Wb As Workbook
Dim liczba, i As Long
Application.ScreenUpdating = False
Set Wb = Application.ActiveWorkboo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45209885",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JSON to Database table Example JSON:
[{"steward":"EMPL-0102","description":"Elish Guage","emplyear":"2001","emplmonth":"Nov","empl":"HOME","perhour":"50"},
{"steward":"EMPL-9002","description":"Bush Harcourt","emplyear":"1990","emplmonth":"Nov","empl":"HOME","perhour":"50"},
{"steward":"EMPL-0102","description":... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21760025",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Amazon MSK failed to associate 1 secret for cluster. The provided secret has an invalid schema We want to set up Username and password authentication with AWS Secrets Manager as per the documentation.
*
*We created a cluster in MSK
*Created a secret as well with name AmazonMSK_testmsk2 and with key as Password an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71687981",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to get Generic function of TypeToken? I have the following codes. I want to get a generic solution to get the TypeToken only passing the class reference.
Type application = new TypeToken<List<Application>>() {
}.getType();
Type bill = new TypeToken<List<Bill>>() {
}.getType();
Type payment = new TypeToken<List<P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63930438",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there any straightforward way to change part of copied text (with python code) into Markdown and Code cell in Jupyter notebook I copied a long text from a webpage including several Python code sections and text sections into my Jypter notebook. Below what I copied and pasted.
Is there any straightforward way to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66391135",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Open source library for viewing or reading document within an Android app? I'm looking for an open-source library for android (Jar), in which I can open documents or pdf files. I have searched the net and haven't found anything suitable or stable.
My main goal is to show some encrypted files, which my application w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9452029",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Use ReadableStream with Response to return HTML from fetch event of Service Worker I'm trying to return a stream for the HTML response in a service worker but the browser does not seem to be able to parse it (I'm using chrome for this test).
So, this one works (in the fetch event):
event.respondWith(new Response("<h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62457644",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Custom filter in Angular I have some problem with custom filter. I can't include it's in my project. Firstly I used a filter: text. I understand that array initialized asynchronously and used this custom filter. But when i include this filter, i have problem ($injector:unpr). Sorry for my English.
<div ng-controller... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31355930",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Passing objects as parameters to ActionResult methods in ASP .Net MVC from desktop client Given the following code:
using (var client = new WebClient())
{
string url = string.Concat(someUrl, "SomeControllerName/", currentId, "/WriteLogFile");
var toWrite = DateTime.Now
/* Code to post object to URL go... | {
"language": "en",
"url": "https://stackoverflow.com/questions/714155",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PrintDocument just prints some part of my JPG file I created an application that allows users to print multiple jpg files. So I send my print request directly, like this:
if (existfile == true)
{
PrinterSettings a=new PrinterSettings();
PrintDocument pd = new ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40258052",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Windows: Can a GDI handle outlive the process which created it? I am trying to track down the cause of a Windows-only problem in my SWT application, which sometimes runs into the following error:
org.eclipse.swt.SWTError: No more handles
Tracing the line which throws this error reveals that it's calling the CreateW... | {
"language": "en",
"url": "https://stackoverflow.com/questions/14629556",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Bad Request on AWS ElasticSearch I'm trying to connect to an IAM controlled ElasticSearch domain, I've created a request, and signed it, and everything works fine for method GET, but on method POST I get a 400 Bad Request
This clearly has something to do with the payload. If I provide a payload empty string ("") it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41989172",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Set variable with REST API data I've never used a REST api and I'm having trouble figuring out how to set a variable with the returned result.data. I'm using Meteor with ReactJs and console.log('countries', countries) is returning undefined while console.log(result.data) is returning the countries data.
export def... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52068144",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Building docker images inside a Jenkins container I am using a jenkins container to execute a pipeline based on this Jenkinsfile:
pipeline {
agent any
tools {
maven 'Maven 3.6.0'
jdk 'jdk8'
}
stages {
stage('Pull from git') {
steps {
checkout scm
}
}
stage('Compile A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53602681",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Get Device name How can i get device name for drive letter
example: how can i get device name for G:/
Thank you for any help
A: If you want "C:\" to "\Device\SomeHardDisk1" you can use QueryDosDevice.
(GetLogicalDriveStrings will list them all)
| {
"language": "en",
"url": "https://stackoverflow.com/questions/3109681",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: if else statement not working on integer values I have the following code:
-- content of sys.argv is 2 and 10 which is assigned to the specified variables.
wthreshold, cthreshold = sys.argv
def Alerting():
if PatternCount < wthreshold:
print
print LRangeA
print
print 'PatternMat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51003479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Web Scraping with BeautifulSoup and unchanging URL I am trying to scrape this
r = requests.get(url)
soup = BeautifulSoup(r.text , 'lxml')
details = soup.find_all('span', {'class' : 'src'})
details = soup.find_all('div', {'class' : 'product_contain'})
i=0
for d in details:
print(i,d.get_text(strip... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58006473",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Render function branch not getting covered in react test case I have a Pure Component but i am not getting the render function branch covered in the test cases.What could be the reason
| {
"language": "en",
"url": "https://stackoverflow.com/questions/53628363",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: React.js: how to use json data that is loaded in index.js in source file? So this is index.js (my entry point) and I'm loading the json data here
import React from 'react';
import ReactDOM from 'react-dom';
import fetch from 'isomorphic-fetch';
import {Filter} from './src/filter';
fetch('./pizza.json')
.then(fu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46920905",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL case statement - Multiple conditions I am writing a case statement where I need to check columns and assign a value . But what if a row qualifies for multiple cases ? For example in following table I want assign a bucket when COLA and/or COLB is null ; so in first case both are NULL , so how will I tell SQL case... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18128331",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I create separate output file for each sql record? public void selectdata(Connection conn, String database){
String table = "Mo"; // using Mo table,
String comandoSql = "SELECT * FROM " + database + "."+"dbo"+ "."+ table;
try {
stmt = conn.createStatement();
rs = stmt.executeQ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27151931",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Dynamic controls Handling Postsback caused by calendar and button click Currently, I am having some issues handling post-backs. I can't seem to get the right checkbox value. Been trying to figure this out but not able to. Appreciate all the help I can get.
I have a dynamic table, which creates check-boxes in 10 cel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36521327",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: external interrupt using microphone sensor Arduino UNO Hello when i am not using my Arduino i want it to go to sleep so i can save battery power. this is my output right now
i am going to to wake up
i am going to to wake up
i am going to sleep
when it goes to sleep it doesn't wake up again when i clap.
I am using ar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67410735",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to programmatically link Field in Enterprise Portal AX 2009 to open a specifical File I'm a new beginner in Microsoft AX. I have a problem in AX 2009. I create a Table ImportFile with 2 Fields,("FileName-->Typ:String", "FileDocuValue-->Typ:Container"). When the User import a CSV-File it will be save in the Tabl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26139103",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to extract the data from from website and save the into txt file i am using python 3.3.3 and trying to extract the data as well as links in txt file. I have tried this code but it is not creating neither saving any thing in the file.At console if i would write "print(s)" then still does not shows anythings to me... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26673636",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Cannot access user with HttpContext I'm building and .Net-Core MVC project. The application provides a service called CurrentUserService (classic).
I access this service for example when I log and CRUD operation on an entity.
When I try to access the user by the IHttpContextAccessor he is not authenticatated even th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63117812",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Dealing with strings in c++ template As part of some beginner c++ template exercises, I'm trying to write a template as a wrapper for std::vector in c++, and I've come across a snag.
Say the types of variables I'll be using are int, double and string.
I'm trying to write a loop to fill in the vector:
type element;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22650497",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Neo4j webadmin - wrong dashboard data I have crated a new database from scratch and I loaded there one single type of node. There are no relationships. Each node has two properties. For all these properties the values are not null.
Here is the math I cannot understand in the webadmin dashboard.
nodes: 19 798 96... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31596270",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Bind ng-model name and ng-click inside ng-repeat in angularjs I need to know naming convention for the ng-model and ng-click inside the ng-repeat. And also need to know how to use each model name and ng-click function in the controller. I have given a sample code to show you what I exactly need know.
<input name="" ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21385164",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using custom attributes in DOM elements, with boolean value Is there a way to add attributes to a DOM element with boolean value like this:
<body test='false'></body>
I need to set this without using javascript.
Thanks
A: HTML5 has something called data-attributes that might fit your needs. You could do something... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3486714",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: C check if space exists in array, if not reallocate more space? I have to write a program which takes a string argument such as "abcd" and returns a new string like "a-bb-ccc-dddd". so for each char in the string, increment its repetition in new string.
In something like C# or Java I would just use a StringBuilder ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58686813",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I make log4j reopen log files periodically (logrotate) My sysadmin has been "encouraging" me to fix our web application logs to play nicely with logrotate. The problem is that after logrotate works on a file the application stops logging. Is there a way to configure log4j to reopen log files after this hap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10710142",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: CONTAINS function is not working in SQL Server 2014 The following query is written using SQL Server 2014 CONTAINS function.
SELECT
Org1.OrganizationPK
,*
FROM Organization Org1
WHERE Org1.Deleted = 0
AND CONTAINS (Org1.NAME,'"chris6*"')
AND org1.OrgDomainInd = 1
But, the above query is NOT working.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32972254",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: LoginPage is the part of declarations of 2 modules ERROR Error: Uncaught (in promise): Error: Type LoginPage is part of the declarations of 2 modules: AppModule and LoginPageModule! Please consider moving LoginPage to a higher module that imports AppModule and LoginPageModule. You can also create a new NgModule that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59644188",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: STL - Use member functions or functions in ? I thought of this problem due to some of the answers I got to the following problem suggesting that I could use vector<T>::assign or copy with a back_insert_iterator
here. My problem is, what are the drawbacks and advantages of using one method over another?
A: assign o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4152815",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I create a function to mutate new columns with a variable name and "_pct"? Using mtcars as an example. I would like to write a function that creates a count and pct column such as below -
library(tidyverse)
mtcars %>%
group_by(cyl) %>%
summarise(count = n()) %>%
ungroup() %>%
mutate(cyl_pct = cou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67695176",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: AWS ECS Fargate Target Group Failing HealthChecks The SpringBoot application is running as an ECS Task in a ECS Service of an AWS Fargate Cluster. The ECS Service is LoadBalanced as such the Tasks spawned by the Services are automatically registered to a target group.
I am able to call the Health endpoint via API Ga... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66643785",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Query / Ping a website to display website online status Alright so I'm trying to figure out a way to query a websites online status so that it displays on my main hub website the online status of that particular website.
For example, I'm looking for it to look like:
Websites:
www.google.com - ONLINE or OFFLINE
...
.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22420174",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to get intersection of two lists in terraform? I have two lists in terraform and want to get the intersection of these lists.
For example,
list1 = ["a", "b", "c"]
lists2 = ["b", "c", "d"]
I am looking to get output as ["b", "c"] using built-in terraform functions.
A: You are looking for something like this
ou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54117373",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: last image in Camera Roll not shown when method called outside viewDidLoad I'm using a code snippet to get the last image from Camera Roll. I've made a method and I'm calling it in viewDidLoad method. I'm using this functionality to share the last image through Social Framework when I hit a button. That way everythi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24993488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: libgdx and drwaing app I am looking at using LibGdx to write a simple drawing app. The user gestures would be used for drawing rectangles and other shapes. Is it a good idea to use Libgdx for such an app? If yes could someone point to an example which shows how to draw shapes using libgdx and gestures.
A: There is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11405859",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Psychopy gives the ffmpeg error and does not play the videos I want to create an experiment with Psychopy in which I will present randomly video that participant will have to evaluate.
I have created a routine with my MovieStim and my Rating response and a Loop with my conditions file (in which are my video files v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45738517",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: connect to Oracle11g DB from pypyodbc Am relatively beginner level python dev here. I am just not able to connect to Oracle from pypyodbc
import pypyodbc as pyodbc
connstr = 'DSN = IDW;PWD=XXXXX'
connection = pyodbc.connect(connstr)
errs out with the below:
File "C:\Users\PRXM\Desktop\JobReadings\PythonIDE\eclipse-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30718004",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Nested Routes and Parameters for Rails URLs (Best Practice) I have a decent understanding of RESTful urls and all the theory behind not nesting urls, but I'm still not quite sure how this looks in an enterprise application, like something like Amazon, StackOverflow, or Google...
Google has urls like this:
*
*http... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1773633",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Apache Axis JAX-RPC over IBM MQ - IllegalArgumentException: noCFName I'm trying to create a JAX-RPC client with JMS / IBM MQ transport.
I'm using the following guide as reference: https://www.ibm.com/support/knowledgecenter/en/SSFKSJ_7.5.0/com.ibm.mq.dev.doc/q033020_.htm
I have received the wsdl from an external par... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46522307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android - Unable to create new Intent which triggered from OptionMenu I am new to Android development and currently stuck when trying to develop a simple app based on This Tutorial
What i want is basically start a new intent when user click on a button via the setting menu (of the said app).
This are some segment of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18267116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: setting f:validatelength dynamically does not work When I use a bean to set the min and max values on f:validatelength it simply does not work. It breaks the functionality in the form so it can't be submitted...
When I outputtext the values they do come out as legit numbers and hardcoding those numbers work fine.
My... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8596949",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Consumer poll kafka streaming https://kafka.apache.org/0101/javadoc/org/apache/kafka/clients/consumer/KafkaConsumer.html#poll(long)
I would like to use the poll based interface (above) to pick messages from kafka streaming (see link below). How can i set the timeout property when i use the direct stream approach fro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46324958",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Changing prompts for loop I'm doing an exercise where I have to ask the user for 5 integer inputs and then print the total of the 5 numbers. I have to do this using a for loop. I know how to do this with a while loop but we're currently learning about for loops.
I have written the following code:
num = 0
count = 0
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65446719",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to name Node js workers Simple question that I can't find a solution to - is there a way to give names to workers that I initialize in my Node.js app? My target is being able to know in which worker I'm looking while debugging a Node.js application in VS Code (by seeing the worker name instead of `Worker ${X}`.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70756313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can TNEF be avoided using MAPI? I am using this code to send emails through MAPI using Delphi.
A few users who use Microsoft mailing software report that the receipants receive emails with an attachment WinMail.dat. I know that this is an issue with Microsoft Exchange/Outlook and can be corrected by disabling RTF/TN... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49053393",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: BeginInvoke vs Invoke in EventHandler with no code afterwards What exactly is the difference between these two snippets:
A:
MyDataGrid.IsKeyboardFocusWithinChanged += (sender, e) => {
if ((bool)e.NewValue == true)
{
Dispatcher.BeginInvoke(DispatcherPriority.Loaded, new Action(() =>
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40343545",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Cut string in PHP at nth-from-end occurrence of character I have a string which can be written in a number of different ways, it will always follow the same pattern but the length of it can differ.
this/is/the/path/to/my/fileA.php
this/could/also/be/the/path/to/my/fileB.php
another/example/of/a/long/address/which/is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16234860",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MySQL table with composite primary key LIMIT 1 is very slow while Limit 2 is fast I have ProductInfo table with following indexes -
Primary: ProductCode, Model, Added_Date, id
Index: id
The composite primary key are the columns I use in the following query
SELECT * FROM ProductInfo WHERE
ProductCode='45678' AND
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68792742",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: docker: SSH access directly into container Up to now we use several linux users:
*
*system_foo@server
*system_bar@server
*...
We want to put the system users into docker container.
*
*linux user system_foo --> container system_foo
The changes inside the servers are not problem, but remote systems use these... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25783324",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: XSS Protection on Yii I need to protect my web application against xss attacks via URL.
what is the best way to do this?
the application is huge, so I can not edit each of the actions, need something general.
Examples:
*
*http://example.com/[anyproductpage.html]?source=alert('Xss')
*http://example.com/catalog/?b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29821193",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why is the Layout style being applied to all of my JPanels? I am giving myself a crash course on re-learning Java. I am writing a very simple program that simply changes the place of the button when you click it to a random panel. There is no real problem, I pretty much finished the program that I wanted. However, I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44865954",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to use calloc to init struct I have struct
struct Person
{
char name[50];
int citNo;
float salary;
};
Now I do this code:
struct Person* p = malloc (sizeof(struct Person));
memset (p,0x00,sizeof(struct Person));
now I want to convert that to calloc (clean code) , how can I do that?
struct Person* p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62444631",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Validation spanning a group of text boxes I'm trying to achieve the following:
Where:
*
*Surname is always required
*NI Number OR Reference Number is required
Is this beyond the scope of the ASP.NET Validation Controls? The only solution I can think of is writing some bespoke javascript (for client side) and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5310757",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Azure Search on searching articles with images I have 500+ articles with Images, I want to retrieve those articles with images and show the same in in chatbot using Microsoft bot Framework and Azure Search. But, Azure search isn't able to index images. In this scenario where do I need to store these images, how do I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60389131",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to make a calculation on the list of HashMaps in Java? I currently have the following sorted set of maps of data:
[
{"name":"john", "date":2015, "status":"success"},
{"name":"john", "date":2013, "status":"fail"},
{"name":"chris", "date":2013, "status":"success"},
{"name":"john", "date":2012, "status"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74793923",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: How to verify schedules I need to verify if a certain time are between another two. For example:
Today: Thursday, 11:39PM
The store X is open from 00:00AM to 11:59PM on thursdays (in plural, its recorrent). So, a function isOpen returns true.
I have made a workaround for this, writing this on the database (Firebase)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46841536",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: One to Many relationship issue in .net core web api I have two tables in my database Student and Course. Using these two tables, I have created a relationship like one student can have multiple courses.
Student table :
Id | FirstName | LastName | AddressNo | City | CourseId
-----------------------------... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73071925",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I brand my patternlabs installation with new colors, fonts etc? Im trying to figure out how I can change the look of the UI in patternlab. I would like to change the entire UI to something that fits my company brand more.
I know there are some settings that I can change (logo for example) but I can't seem to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75281082",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Docker Containers with different Network Interface Problem:
I want to have multiple VPN Servers running in Docker containers each with there own public IP.
With the -p parameter I am able to connect to each one separately but the Public ip that I see is the eth0 interface not the one that I want it to be (eth0:1) so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40631867",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using a custom variable in livecharts I am using the LiveCharts package in a .NET framework 4.7.2 C# form. I am trying to get data from a database into a chart, but have found that LiveCharts isn't very fond of me trying to use my own variables. I have not yet found a way to link these two with eachother.
new Stacke... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66763784",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to improve speed with Stanford NLP Tagger and NLTK Is there any way to use the Standford Tagger in a more performant fashion?
Each call to NLTK's wrapper starts a new java instance per analyzed string which is very very slow especially when a larger foreign language model is used...
http://www.nltk.org/api/nltk.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23322674",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Return is happening before the loop finishes execution I am using for loop and return is happening before the loop finishes execution. I cant use .Map method because i have some conditions in between and want to break the loop in between.
const getCompanies = async(searchURL,reqBody) => {
const html = await rp(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64512391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to test for multiple command line arguments (sys.argv I want to test againts multiple command line arguments in a loop
> python Read_xls_files.py group1 group2 group3
No this code tests only for the first one (group1).
hlo = []
for i in range(len(sh.col_values(8))):
if sh.cell(i, 1).value == sys.argv[1]:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1643643",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: flask url_for returns internal server error I am tryin to have a form submit to a python script using flask. the form is in my index.html -
<form action="{{ url_for('/predict') }}" method="POST">
<p>Enter Mileage</p>
<input type="text" name="mileage">
<p>Enter Year</p>
<input type="text" name="year"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59023371",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Getting error while writing dataframe to Ceph Storage In my organisation I'm currently exploring how we can use Ceph to replace HDFS to run out AI/ML workloads. As part of this initiative we setup a Ceph Cluster and imported it into Kubernetes using Rook.
During my testing with Ceph I was able to access Ceph Storage... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66468333",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Flash not working on Chrome, FF, Safari, but it is working on IE I made the huge mistake of getting a template instead of just doing the development my self. Now I've narrowed down the issue- first, I thought it was an issue with the actual flash file. Now I'm realizing it's every time I change the images in the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18966985",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Div Alignment when using twitter Favorite animation I saw an example for Twitter Favorite animation and I used in my design for testing and now i have problem with alignment for the icons and I don't know how to fix it? Can anyone explain things to me, please?
Below you will the actual code use and I need all the ic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49116776",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SSL connection failed when loading JS SDK I followed the info from this post : here to load the JS SDK into my page.
Here is the page : https://www.tkwk.be/client/babyboom/www/
It works great (SSL connection is valid) until I use the SDK.
The problem is that when I try to use the function setAutoGrow() just before m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9044894",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I can not configure e-mail Jenkins Extension Shortly:
I'm using "E-mail Notification" on my Jenkins, its setuped on my local machine. I can not configure emial notifications.
My configuration:
*
*SMTP server: smtp.gmail.com
*Default user e-mail suffix:
*Use SMTP Authentication: Checked
*User Name: My Gmail mai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57296545",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: (standard_in) 1: syntax error I am new to bash and linux and can't understand why do i have this error ((standard_in) 1: syntax error) in my code.
#!/bin/bash
file_data=$(<merge.bmp)
counter=0
file_size=$(stat -c%s "merge.bmp")
touch file1.bmp
touch file2.bmp
while [ $counter -lt 10 ]; do
if [ `echo "$counter % ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48238631",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MySQL query help as attached format I have a MySQL table which is as like this:
# Structure for table "audit"
#
DROP TABLE IF EXISTS `audit`;
CREATE TABLE `audit` (
`Id` int(11) NOT NULL AUTO_INCREMENT,
`item` varchar(255) DEFAULT NULL,
`amount` varchar(255) DEFAULT NULL,
`myDate` date DEFAULT NULL,
PRIMAR... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34468908",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null. But app still renders Hi im fairly new to Meteor and react and am working on a customer portal. I have adapted the meteor react tutorial to work how i need it to work and am using Flow Router for r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65712896",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: CI return just Validation_error and not the entire form page I have a view with both login and register forms on the same page. I would like to return just the error message and not refresh the entire page. How can I do that?
public function signup() {
$this->form_validation->set_rules('user_name', 'U... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11112658",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What setting causes ContextLoaderListener's (root context) to be the 'parent' context over DispatcherServlet's context? First came into this problem by wondering how I was supposed to autowire/inject a service layer level bean from the ContextLoaderListener's application context INTO a bean from DispatcherServlet's ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42722299",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: undefined reference when writing/reading Static thread_local class member? #include <iostream>
#include <thread>
class A{
public:
static thread_local long l ;
int value ;
A(int a = 2){
value = a;
}
int foo(){
A::l = 3;
return 3;
}
};
A a;
int main(){
// A::l = ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55069128",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: A problem when releveling a factor to the default order? I have this df
df = data.frame(x = 1:3)
converted to a factor
df$x = factor(df$x)
the levels by default are
str(df)
now let's make level 2 as the reference level
df$x = relevel(df$x,ref=2)
everything till now is ok. but when deciding to make the level ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74492068",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Not able to post data on aws http api? In my lambda function when i return this
def lambda_handler(event, context):
return json.dumps("{'result':'abcde'}")
it is returning the expected result, but when i return this
def lambda_handler(event, context):
return event["payloadData"]
It gave "message": "Interna... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68131342",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: none.xml:1: parser error : Extra content at the end of the document in android studio In Android studio after running the following code, it says"none.xml:1: parser error : Extra content at the end of the document"
what is the problem? its the code that i copied from https://developer.android.com/training/basics/fir... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38354583",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How does .livequery() work when it only receives one parameter? I was visiting https://github.com/brandonaaron/livequery trying to find the syntax of .livequery(). From what I can see there in the official documentation, .livequery() can receive two or three parameters:
// selector: the selector to match against
// ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46209774",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: nslcd lookup failed: No results returned I'd like to authenticate my users with my LDAP Directory.
I've configured nslcd to do it, but it fails.
nslcd debug mode indicates this :
nslcd: [b0dc51] DEBUG:
ldap_simple_bind_s("uid=seb,ou=Users,dc=unix,dc=ch-havre,dc=fr","***")
(uri="ldap://net.ch-havre.fr") nslcd:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47388441",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to prioritize two change events in select element I have two change events handler for one select elemet. Let's call the functions Func1 and Func2. When I initialize these handlers I do the Func1 and then Func2 but when the change event happens in select element the Func2 get called before Func1.
Is there any wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5327712",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JLabel translation I have a JLabel (with an icon) and I would like to translate this JLabel when the JLabel is clicked. I have added a mouseListener to the JLabel however I didn't come up with anything on how I can execute a translation from coordinates (x, y) to cordinates (x', y')
class MyMouseListener extends Mou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32996279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Checking if 2 nodes on a graph are connected recursively C# I'm trying to create a simple implementation of Depth-First Search recursively.
Here is the graph I've set up, searching for a path between Node 1 and Node 5:
int[][] graph = new int[5][];
graph[0] = new int[] { 1, 2 };
graph[1] = new int[] { 1, 3 };
graph[... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73857783",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to clear GridView while working with Firestore? The problem is that I can't refresh my gridView and when I make changes in Firestore, my gridView doesn't clear and just adds new values(images) from Firestore. I have tried lots of methods that I could find on "stackoverflow" but with no success. Maybe the problem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48694545",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Run Web Application in Virtual Directory I am trying to run my web application for test purposes in a virtual directory.
I have done this steps from this MS Site
*
*In Visual Studio, open an existing Web application project, or create a new one.
*In the Project menu, click Properties, and then click Web.
*Click... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28234540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: IO Error 22 python infile1 = open("D:/p/non_rte_header_path.txt","r")
infile2 = open("D:/p/fnsinrte.txt","r")
for line in infile1:
for item in infile2:
eachfile = open(line,"r")
For the above code I am getting the below error. infile1 contains paths of may files like D:/folder/Src/em.h but here \n is a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31179293",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jHipster - simplify generation of the new APP if the DB already exists does any tool exist that can simplify generation of the new APP if the DB already exists? I can create JDL file for new app manually base on existing DB - but I prefer to automate the process. This DB is part of old Spring Roo app.
Thank you.
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45292041",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to create a socket that is accessible across different networks Below I have two scripts that work when I bind the server.py to my computers IPV4 address and connect the client.py to that same address. The next step I'm trying to take is the ability to use this socket across different networks. I thought that it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68825572",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: OrientDB: How can I filter Edge by node in orientdb How can I filter the edges by node condition? Below is my query, I would like to further filter the path by ending node with id 222
SELECT $path as path FROM (
TRAVERSE bothE(),bothV() FROM (select * from Node where (id in ['111']))
WHILE $depth <= 6 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50034689",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: regular expressions in Java i attempted to port the code in this answer to Java:
PHP VIN number validation code
i understand that String.matches in Java is a bit temperamental and i'm very unfamiliar with regular expressions. here is the code:
public boolean validateVIN(String vin) {
vin = vin.toLowerCase();
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5021461",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: PHP Composer Autoloader Simple Structure I have Composer working and I'd like to use its autoloader to load my classes, but it's not working. Here's my directory structure. I'm keeping it really simple to start with.
index.php
composer.json
Vendor
controllers/webgl.php
Inside webgl.php I have:
namespace controlle... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30467332",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: android generic SQLite database i developed a small java.lang.reflect.InvocationHandler that intercepts method calls (from a json webservice) and cache the results to a local SQLite db. if there is no internet connection results are read from local cache.
everything works fine; my problem is the following:
every met... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11365452",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How do I use extensions in incognito I wanna use python selemium incognito with extensions but none worked so far
Anyone got a fix?
I tried:
options.add_extension('plugin.crx')
#options.add_argument("--incognito")
#options.add_argument("user-data-dir=C:\\Users\\Maxva\\AppData\\Local\\Google\\Chrome\\... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71067430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.