text stringlengths 15 59.8k | meta dict |
|---|---|
Q: How to validate an integer with regex I have the following regex to validate only for integers, ^\$?\d{0,10}(.(\d{0,2}))?$ While it correctly identifies 12 as a valid integer, it also validates $12 as a valid one. If, I remove the first $ from the regex it doesn't work either.
Thanks
A: Short Answer
using System;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48675824",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Crashes with EXC_BAD_ACCESS with Garbage Collection after hours of running i have a app where several videos are being randomly displayed and everything was sweet and worked great. Since they program loops the same code over and over again I find it very odd that is just stops all of a sudden. What can the error mes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5152140",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Send json data to Jupyter Notebook Frontend via Comm I want to send some arbitrary data to the Jupyter Notebook frontend.
According to http://jupyter-client.readthedocs.org/en/latest/messaging.html#opening-a-comm, the Comm protocol is a way to send custom message types without resorting to hacks like using execute_r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33845775",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Rails - How to avoid messy conditions in my views I'm still fairly new to rails and trying to learn its 'best practices'. I've noticed when I'm drawing up my views to display a report, my views are starting to look cluttered with if-else-then conditions. If there are some good ways to avoid such mess, please advise.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/6239287",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Calculate layout delta to store on an item I am trying to figure out how to calculate, then store the layout delta for a rendering programatically. The situation I'm in is that I have a rendering defined on my standard value. It's datasource is empty. I then have a process that creates an item based on that templa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30985914",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Finding MIN and MAX of date column I am trying to find out min and max of application_date(Text data type)
application_date
01Jan2018
21Feb2018
18Mar2018
31Dec2017
15Jan2019
Column is of Text data type
From the data above Min date is 31Dec2017 ,Max date is 15Jan2019
A: SQL DEMO
Convert the text ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54428287",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL : how to check if a column value has all elements from a string array I have a table where a column called Phrase has a sentence.
For example :
ID | Phrase |
----+---------------+
1 | I can do it |
2 | Where is that |
I also have another table which has keywords. For example :
select keyword
from... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73761876",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Compiling vsftpd 3.0.0 is failing I recently tried to compile vsftpd 3.0.0 but it fails due the following compile error:
gcc -c seccompsandbox.c -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wall -W - Wshadow -Werror -Wformat-security -D_FORTIFY_SOURCE=2 -idirafter dummyinc
seccompsandbox.c:6... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11088276",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Rails 3.2 and yui compressor The Rails Guide on the asset pipeline says you can use the yui-compressor on CSS with:
config.assets.css_compressor = :yui
However, I see no sign that it is actually using it. For one, thing, it makes no difference whether or not I have the yui-compressor gem installed or not. For ano... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10673591",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to call CreateProcess() in C# passing lpEnvironment I imported native CreateProcess into my C# project
for ICorDebug purposes http://msdn.microsoft.com/en-us/library/vstudio/ms232508(v=vs.100).aspx
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
void CreateProcess([... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25353445",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a standard in java for _ (underscore) in front of variable or class names? I have seen some programmers using _ (underscore) in front of class names, and others using it for local variables.
Does the Java standard require/suggest the use of _ (underscore) in front of an private instance variable or class na... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1899683",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: can't convert string[] to string in vhdl i am writing a code in vhdl and bump into this error
Assignment target incompatible with right side. Cannot convert 'dataArray' to 'STRING'
here is my code
entity instructionTranslator is
port(clk :in std_logic;
instructionCode :in std_logic_vector(4 downto 0);
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48421071",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why does My Boolean variable Automatically switch? I have a program where players and enemies can attack each other in a loop and when health reaches zero, the bool isDead turns to true, and when both players or both enemies are dead then allDead(c1, c2) turns to true. When a character's isDead is true, then I skip ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49718836",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Avoid double typing class names in python This seems like a silly question but I haven't been able to come across the answer anywhere. Within my various packages I have a set of modules, usually each containing one class. When I want to create an instance of a class I have to refer to it twice:
Example:
package/obj.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19010969",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: I'm missing a using directive or an assembly reference? I am having issues with the following code.
class AccountDB
{
public void DumpCustomers(TextWriter textWriter)
{
foreach (Customer c in _Customers)
{
textWriter.WriteLine("\t{0}", c);
foreach (Account a in c.Accou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23312934",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cannot read property 'name' of null on default value I have a state in which i have
I had initialized my data state as null
For whole code visit
https://codeshare.io/5zMyXD
Calling aixos api request on componentDidMount
axios.post("http://localhost/axios1/index.php",data)
.then(res=>this.setState({data:res.dat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58076863",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: VS Code - prettier settings not applied My settings from prettier are not applied. When I change some settings and save my file it has no effect.
In my Vidoe I enabled single quotes and disabled semicolon, but without any effect.
Vimeo Link
| {
"language": "en",
"url": "https://stackoverflow.com/questions/71555173",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Image label for input file not clickable In IE7, IE8, IE9 the image label in the following code is not opening browse window on click:
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Image label</title>
<!-- Bootstrap CSS Toolkit styles -->
</head>
<style type="text/css">
label{
display: inl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32139225",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Apache LocationMatch: how to match again after internal redirect I have a apache LocationMatch with two sets of RewriteCond and RewriteRule. If the second set hits I want to start the LoactionMatch over again.
In my apache2 ( Apache/2.4.41 (Ubuntu) mod_wsgi/4.9.0 Python/3.8 configured) config I have something like t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71662485",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android Twitter integration using oauth and twitter4j I want to integrate twitter in an android application and found many tutorials. Implemented 2 of them. But after implementing, when ran the application, I came to know that they use older version of twitter4J library.
Although plenty other tutorials are available... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17499935",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: JQuery select2 integration with Frontaccounting https://stackoverflow.com/questions/33993771/how-to-integrate-jquery-select2-with-frontaccounting/33994148#
Hi this is my first post. Here actually there is a similar post. I commented there. But few told me to go with separate question. So my question is a duplicate... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34011702",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: MVC 4 View doesnt recognize model [EDIT]
@model LocationInfo (LocateIt.Models)
@{
Layout = null;
}
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>Index</title>
</head>
<body>
<div>
</div>
</body>
</html>
I just started working with MVC/NHibernate t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17255371",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PayPal gateway has rejected request (#10413) I have migrated our Magento store 1.9 to 2.3. I have only one tax policy 10% for US California customers.
But I tried to make the payment with California address it came back to cart page with error.
PayPal gateway has rejected request. The totals of the cart item amounts... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60561929",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Here my code to insert multiple records in database on laravel. So, it doesn't work? anyone help me? I want to insert multiple records in a table at once submit into a database using eloquent laravel, so I have tried hard.
my code on controller
$x = $request->all();
$datas = DataAnak::create($x)->id_anak;
if ($data... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59527522",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: merge dynamic multidimensional arrays Sorry in advance if there is an answer for this, but I could not find exactly what I was looking for.
I currently have a reporting application that is returning data results into multi dimensional arrays from a database query. Each array is build off of the id field. I would li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18918093",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to send request query string from html? I am new to ASP.Net . I have created a blog , the post page displays all the post by using XSLT to transform the xml data of the blog. However, I am struggling to create a dedicated post page whenever user click on the desired article.
This is the xslt code to transform t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51578947",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Safer way to get window scroll position To determine how much window has been scrolled, we have window.scrollY alias window.pageYOffset, but I feel they are not pefectly reliable, because you can simply do window.scrollY = 23401 and this value won't be replaced even after you scroll window to a new position. Same ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36741902",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C++ Problems with write array function I'm trying to write a function that will write an array (2D) to file. This is the code below:
#ifndef WRITE_FUNCTIONS_H_
#define WRITE_FUNCTIONS_H_
#include <iostream>
#include <string>
#include <fstream>
using namespace std;
void write_array(string name, int rows, int colu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35707492",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: fopen write with variable issue small project - stumped typing to get it working - if you have any ideas please let me know tku! This post program is requiring more words so here we go
<?php
$row = 1;
if (($handle = fopen("issue-heads-1.csv", "r")) !== FALSE) {
while (($data = fgetcsv($handle)) !== FALS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55643261",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Assigning StackElements without multiple for loops in C# I have 30 chocolates in a stack and I want to distribute it to 3 people
public class People
{
public int Id{get;set;
public Stack<Chocolate> chocolates{get;set;}
}
Stack<Chocolate> chocolateObjects;
List<People> peopleList;
How can we assign to thre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67531389",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Lightswitch Updating() method not saving any data in DB I am trying to save the entity data using General methods of lightswitch, which is Updating. Below is the following code. I am not able to figure out what I am missing. There is no error in the code or in the UI. Its just that nothing gets saved.
partial void v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36441545",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Online polynomial curve fitting in Simulink How to fit curves in Simulink and still generate the code?
I have a model of a sensor in Simulink, that returns vectors Pos_x and Pos_y. Each vector has size of 20x1, and their values change every one step time (1ms).
I am trying to calculate the coeffecients of the 3rd de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68988980",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: handlebar partial not displaying in materialize card? My group is making a chore chart project. we are stuck on how to get our partial(which is a dropdown with hardcoded users) to display in a card. we have displayed our dropdown above the card to see functionality, which it works. but when we place partial in card ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69830987",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: d3.js Multi-line graph with zoom : line error It is my version of "Multi-line graph 4: Toggle" from http://bl.ocks.org/d3noob/e99a762017060ce81c76 but I ran into some problems pls help.
At first the initial graph is correct,
*
*after the zooms, the line would become one which used data for both line and rotated.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28914653",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to remove chromium log in Android Studio (LogCat) When I open the webview Cordova (app in release mode) The logcat show these logs I/chromium: [INFO: CONSOLE(1)] source http://.....
How to remove these logs into my application "I/chromium: [INFO: CONSOLE(1)], in Android Studio (LogCat)? Thanks
A: It's possible.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55822617",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can find the center point of svg bezier path in android I have convert svg path to bezier path by svgparser.
I have a text file in which we have all the world country svg path. I have draw all bezier path but now how I can get centre of each bezier curve.
import android.content.Context;
import android.gr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28428785",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: KeyboardAvoidingView not working with Expo I cannot seem to get the keyboard to push the content up in my React-Native Expo app. I am testing this from the expo App by publishing it from my development machine.
Try as I might, nothing seems to push the view up when the keyboard comes into focus, is there a specific... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51857389",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Issue running Net cmd but with no error (BAT file) I am trying to create a bat file that will run cmd as administrator, then execute net command as shown below:
runas /user:administrator cmd "net localgroup administrators mjordan /add"
The goal is to add whoever the current user is as a local administrator.
So the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39884907",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Plot of a potential temperature line using metpy I’m trying to plot a potential temperature line
that passes through the point located by the
temperature and pressure of an air parcel on a “skew T - lnp” chart.
As far as I understood, metpy provides two possibilities.
metpy.plots.plot_dry_adiabats and metpy.calc.dry... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74999470",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: GET request fails with JAX-RS: Could not find MessageBodyWriter for response object of type: java.util.ArrayList of media type: text/html I'm building a sample client-server with JAX-RS using JEE7. I'm using Wildfly 10.1
I followed the guy in this video. Here is the code of the war that runs on the application serve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43833220",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How does JqueryUI read data on your jquery request when downloading data? I have date picker and want my date picker to be able get below data that is available, no matter if a user select last year date. eg. 2019-12-04.
On my jquery request I can only get this year date, anyone who can help me to achieve such logi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59645385",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to change the order of a bar plot(two categorical variables) So I got stuck with this problem for a while and can't solve it even after extensive research and experimentation, please help me out here.
I was trying to plot the relationship between education level and general health, here is my code.
p <- ggplot(e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54504125",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: dependencies without using maven I have two files
In project1 have a file named test.java:
public class test {
public static void main(String[] args) {
sayHello();
}
public static void sayHello() {
System.out.println("MyTest says hello!");
}}
In project2 have a file named test2.java:
public class test... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19927308",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Monitor CPU spikes of any process over X percent for Y seconds I would like to run a .NET console application on our Windows Server 2008 box, which monitors CPU usage every 2 seconds.
If any single application uses > 30% CPU, two times in a row, it should be logged.
I will execute "CheckCpu" every 2 seconds... but m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28223595",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Know g++ Version of Code blocks in Windows I am solving questions on Interviewstreet.com. They said they use C++ version g++ 4.6.3,C0x mode.
I am writing code on code blocks. So i want to know which version iam using in code blocks is it in C0x mode or C11 mode??
I have tried using g++ --version i got g++ TDM-2 ming... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12597254",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: clear() is not clearing textbox field in python selenium I am checking two validations by sending keys in file test1.py
# Check email is valid
find_account.enter_email('amit@')
find_account.click_search_button()
validation_invalid_email = find_account.get_validation_invalid_email()
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62730796",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Data directly store to mysql database without any validation already set using php I am novice for the php and mysql. cuurrently I'm working on a registration system using php and mysql to storing the data. So I already connect the database, and I'm doing some validation for the form information the user fill in. I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27519696",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to redirect asp .net core API to external URL from angular SPA client Basically I am new to SSO. I have two websites www.angularwebsite.com which talks to a .net core web API.Using azure ad , I can authenticate myself and I am able to log into www.angularwebsite.com using an Authorisation header "Bearer ". So fa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62756612",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: return key-value pair key based on key-value pair value date with sorting I have the follow list:
test = [{'date': '2021-07-01 20:32:48', 'name': 'foo'}, {'date': '2022-02-17 10:07:25', 'name': 'bar'}, {'date': '2022-02-18 04:00:05', 'name': 'baz'}]
I want to return the name attached to the most recent date. baz in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71254274",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to make Fluro defined route parameters OPTIONAL in flutter? I have defined this route using Fluro.
exchange/:pair
There is a problem! I want :pair to be optional. If client types https://host:port/exchange/BNB_BTC everything goes fine. but assume the user is looking for https://host:port/exchange and he confront... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67003073",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Session_id is visible in page source, is it ok? I'm sending the session_id with the javascript. The session_id is visible in source of the page like:
function startUpload(id){
var queryString = '&' + $('#new_doc_upload').serialize() + "&session_id=" + "01dfda2def225bae907b129d2ffb1";
$('#fileUpload').fileUpl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/6660477",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Riverpod state update does not rebuild the widget I'm using StateProvider<List<String>> to keep track of user taps on the Tic Tac Toe board.
Actual board is a widget that extends ConsumerWidget and consists of tap-able GridView.
Within the onTap event of GridViews child - following is invoked to update the state:
re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73078012",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: pull out data from array in localStorage I have a function that takes data from an input and saves it as data in an array during registration. Now I want another function to check during login if the data exists and if it matches. How can I do this using javascript only?
In short, I need a function that checks if th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70172483",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Self-Hosted Font with Gatsby & Tailwind (PostCSS) I was using a self-hosted font in Gatsby and that was working well. Basically I had -
*
*a fonts/ folder in which all the .woff2 files were placed, with a fonts.css that had all the @font-face calls (this way because there were almost 15 @font-face calls)
*I had c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62877686",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Trapping and handling taskkill in Windows Python I am using Python 2.6.6 for Windows (on Windows XP SP3) with pywin32-218.
In my Python application, I have a second thread (apart from the main thread) which spawns a subprocess to run another Windows executable.
My problem is that when the main process (python.exe) i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20394092",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Select specific substing - dynamic indexing
I have several .csv files with 2 slightly different formats.
Format 1: X-XXX_2020-11-05_13-54-55-555__XX.csv
Format 2: X-XXX_2020-11-05_13-54-55-555__XXX.csv
I need to extract dametime field to add it to pandas dataframe.
Normally I would just use simple slicing
datetim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64698131",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Creating a dialog that will hide if not active using Popup (or something else?) I need to create a non modal Silverlight 4.0 control that would appear (pop up?) when user enters specific TextBox on top of it to enable a richer way to edit its contents. This control has other controls and it has to hide when user cli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4479673",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Combine Hibernate class with @Bindable for SwingBuilder without Griffon? I have implemented a back-end for my application in Groovy/Gradle, and am now trying to implement a GUI.
I am using Hibernate for my data storage (with HSQLDB) per
http://groovy.codehaus.org/Using+Hibernate+with+Groovy
(with Jasypt for encrypt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3065949",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to add a custom legend in ggplot2 in R I want to plot a data set where the size of the points are proportional to the x-variable and have a regression line with a 95% prediction interval. The "sample" code I have written is as follows:
# Create random data and run regression
x <- rnorm(40)
y <- 0.5 * x + r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40598015",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a GitHub API scope that links to a single repository? I'm writing an application that links to a user's github account. It will push some files to their github account. I only need access to a single repo (of their choosing), but from the github docs it seems that there's only:
*
*read/write access to a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40511585",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: string conversion error in array codeigniter On my controller I have a error on this line 'edit' => site_url('admin/users_group_controller_update') .'/'. $this->getId($controller)
When I refresh my page it throws the error Array to string conversion
A PHP Error was encountered Severity: Notice Message: Array to str... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29149029",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Reducing the number of collide methods in a Java Game I'm making a simple game in java, and I have many methods which test if two object collide. Objects include a man, enemy, arrow, wall, coin and so on. I have a bunch of methods which count for every type of collision which could occur, they look like this:
pu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/15312820",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does CGContextDrawImage decompress PNG on the fly? I'm trying to write an iPhone app that takes PNG tilesets and displays segments of them on-screen, and I'm trying to get it to refresh the whole screen at 20fps. Currently I'm managing about 3 or 4fps on the simulator, and 0.5 - 2fps on the device (an iPhone 3G), d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3964011",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Do functions not update React hooks (particularly useState) depending on how they are called? I am trying to figure out why I have a function that can not read in a value from a useState hook. I now that the useState value of "questionIndex" is updating properly in my verifyAnswer function, but I cannot determine wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65986091",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I put multiple integers into int* tab; in two different loops separated by 0 eg. [1,1,1,0,1,1] in VS 2019 in C I am writing a emulator for Turing machine subtraction and, to start, I need to have the m and n converted into 1s and one 0s. For example, if m = 3, n = 2, the output would be [1,1,1,0,1,1] in the i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65341144",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Display text progressively with libgdx I am looking for a way to display text progressively with libgdx, but I can't find a way to do it exactly the way I want. Here is what I did:
*
*I have a text label that is being updated periodically to display a different text. The label is set to setWrap(true); and setAlig... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18278415",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: same app, different interface I'm writing a WPF Application with ModernUI. It looks great on my computer(win 7).
However, it looks different on my colleague's(also win 7).
What can I do to make it look always like the same way, just as on my computer?
A: I finally found the reason why the implicit style didn't wo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22826893",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Should I add the information in both side I am new to unity ,plz forgive me asking these questions
It bumps out : default reference will only be applied in edit mode
Is it important, what is that?
Should I need to add the information(food and border ) to both sides?
A: The second image are default references. If... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59808196",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Find where library functions sit in memory Assume we have a C application that uses a large library.
I am trying to find a way to know at what memory address library functions and symbols are located. Or say exactly to compiler/linker where to put them in memory. What's the approach?
Edit: This is an embedded applic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28354689",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Running MongoDB Globally in Google App Engine Prefacing this with I am very new to GCP so please bear with me if this is an obvious fix :) I am trying to deploy a MERN application to Google App Engine. So far I was able to upload my react files with ease and everything works the way it should. The only problem is I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63539861",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can't edit mysql table: Getting odd error that I can't find anything on: #1305 - PROCEDURE db_name.limit_control does not exist There are threads about "Procedure does not exist", but I can find nothing about "limit_control". I don't even have any stored procedures.
I can't edit one mysql table (named 'control' - i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61153424",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to get the index path of a cell from a collection view, from a textfield using textFieldDidBeginediting I have made a collection view which is populated with textfields. I've got the textFieldDidBeginEditing working. I've assigned the textfield in the cell for item at indexpath as delegate. the question is how d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32364149",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: EOFException while loading avro schema I am trying to load an avro schema file using maven.I have saved the avsc file in my classpath but I get EOFEception while a run it. I know the problem is the that the schema file could not be found because when I write the schema inside my code, it runs perfectly. I need some ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24012861",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rails Duplicate Comment Issue When I create a comment in my feed, rails is duplicating all the previous comments.
Comments Contoller
def create
@post = Post.find(params[:post_id])
@comment = @post.comments.create(params[:comment])
redirect_to post_path(@post)
end
Posts Show
<div class="content">
<%= markdown(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9861041",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I ignore DTD validation but keep the Doctype when writing an XML file? I am working on a system that should be able to read any (or at least, any well-formed) XML file, manipulate a few nodes and write them back into that same file. I want my code to be as generic as possible and I don't want
*
*hardcoded... | {
"language": "en",
"url": "https://stackoverflow.com/questions/582352",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using apache cxf to dynamicly create web service client (fix no operation found unchecked exception), invoke operation with authentication So I wanted to to find a way to invoke web service operation dynamically with authentication.
This is what I found.
A: Here is an example for how to create dynamic web service c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16582764",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: java wrapper around log4j logger and java.util.logging I am writing a library. The library can be used by applications that use log4j loggers and java.util.logging loggers.
So, I wrote a quick wrapper class, that encapsulates both loggers. I allow the application to set one or both loggers. And in my library I use t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1767716",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to check for an exact string match in parameters that being passed for API call Python I am passing the parameters with a Soap Call to AdPoint platform. My parameters look like this:
[{'nUID': '39', 'Query': [{'MaxRecords': '40', 'OrderName': 'Forecast Placeholder - 100', 'CustomerID': '15283'}]}]
Passing the p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61231332",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jquery Sort nested list by different values (not alphabetically) I am attempting to sort a nested list using different variables. So, I have something like the following:
<div id="title">
<h2>AWARDS by TYPE</h2>
<span>
<p>Sort by: </p>
<a href="#" class="sort-by-trophy">Trophy</a>
<a href="... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12730418",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Torchvision cannot save a tensor on integer type I try to use Torch to resize some images which I did successfully. The resized images have integer type and when I try to save them I get the error below:
RuntimeError: result type Float can't be cast to the desired output type Byte
I used the code below to resize an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71960639",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to pass a variable from View to Controller in ASP .NET I found similar questions to mine, but in all of those examples, the variable was part of the model. I am trying to pass a variable that is created in javascript, which is not part of the model.
Code:
$(document).ready(function () {
var url = document.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32360431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: I can't read mouse data in STM32F407VG-Discovery I am trying to get data from computer mouse with USB to TTL converter but I read nothing in rfBuff1.
I check the USB to TTL whether it works or not. I connected it to computer and stm32f4, and used HTerm to send some data, it worked. Seems the problem is not the conve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62658600",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is Scala for: getline(), std::cin.eof(), std::cin.bad()? Here is a fragment of C++ code:
int AskBase::ask_user(){
for (int tries_left = MAX_TRIES; tries_left;){
std::cout << prompt.c_str();
std::string response;
getline(std::cin, response);
if ("^Z" == response || std::cin.eof... | {
"language": "en",
"url": "https://stackoverflow.com/questions/6740382",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: oracle sql ranking and count with conditional statements I am stuck with the process of categorizing rows based on particular conditions. I am hoping to get through this with the support from you guys!
Basically, I am trying to create two new columns to the table by applying some particular formulas. Those columns a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48027748",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Django Rest Framework serializer field incorrectly named When I run api request I get a following error:
AttributeError: Got AttributeError when attempting to get a value for field email on serializer UserSerializer.
The serializer field might be named incorrectly and not match any attribute or key on the tuple ins... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64565555",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Accessing nested repeater's textbox in client side How to get the nested repeater textbox control in client side event of parent Repeater control.
I have a checkbox in each repeater item of the parent repeater control and textbox in each repeater item of the child Repeater. On the checkbox change event I need to fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24175385",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why jquery .live() and .on() don't work as expected for ASP.NET Updatepanels? I have 1 page which has 1 updatepanel which contains 1 user control(lets call it user.ascx) and 2 buttons.
My user.ascx has some checkboxes which can disable/enable other controls. I am doing it in javascript added to user.ascx, but when u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12039757",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Error with Scanner I'm trying to get database from the internet but the bug has disapear.
package space;
import java.io.File;
import java.io.IOException;
import java.net.MalformedURLException;
import java.util.Scanner;
import java.net.URL;
public class ArrayIntro {
public static void main(String[] args) throws Excep... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46036953",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Microsoft Visual C++ Build Tools compiler with Eclipse Recently I decided to move from Microsoft Visual Studio to Microsoft Visual C++ Build Tools. I am working with the latest Eclipse and want to utilize the Microsoft C++ compiler.
While having Microsoft Visual Studio installed there was an option to choose the Mi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41428294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: RNN Architecture for a Many to Many time series forecasting problem I am trying to forecast the yield curve (multiple time series) with a RNN/LSTM/GRU model in Keras.
As input I have the 12 interest rate price series (which make up the yield curve) and some more variables like SP500, etc. As an output I would like o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68790251",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is a correct overpass-turbo query for getting all streets in a city? I want to get all streets in NYC using http://overpass-turbo.eu/. I tried this:
[out:json]; area[name = "New York"]; (node(area)[highway=street]; ); out;
However it returns
{
"version": 0.6,
"generator": "Overpass API 0.7.55.1009 5e627b63... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58844414",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do you convert start and end date records into timestamps? For example (input pandas dataframe):
start_date end_date value
0 2018-05-17 2018-05-20 4
1 2018-05-22 2018-05-27 12
2 2018-05-14 2018-05-21 8
I want it to divide the value by the # of intervals present in the data (e.g. 2018-05-12 to 2... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50392832",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Adding a MVC 4 controller using entity framework 5 database first I'm trying to configure an MVC 4 application using EF 5 against the System.Web.Providers Membership DB. The ADO.NET Entity Data Model appears correct. The classes generated by the EF 5.x code generator look ok, but do not have a [Key] attribute. Wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11752484",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: MUI Override Slider color options with module augmentation I'm trying to solve a typescript error regarding the chosen color on my slider component:
<Slider
color="brown"
/>
The error is: Type '"brown"' is not assignable to type '"primary" | "secondary" | undefined'.
I have set the brown color on my theme, by aug... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70451008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Android BluetoothAdapter Mocking I'm trying to mock test Bluetooth application but my first step of creating a mock object of BluetoothAdapter class is not working!!
I'm using powermockito with easy mock.
mBluetoothAdapter = (BluetoothAdapter)PowerMock.createMock(BluetoothAdapter.class);
this fails. with the foll... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26731994",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: FTDI D2XX Xamarin Forms I'm making a Xamarin Forms project for Android & IOS and wanting to be able to use the FTDI D2XX API. There are NuGet packages for D2XX here and here. I have also tried to integrate the Android implementation discussed here. I am quite new to C# and Xamarin, but fairly experienced with Androi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64922303",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: OpenAPI: Standard Location and Name of OpenAPI Document I was looking at the OAS and can see where it lists the recommended file name as being openapi.json but I have two questions:
*
*There evidentially isn't a standard location to put it in but is there a de facto standard that people seem to follow? Like is the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63676429",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Upload multiple images with JavaScript in ASP.NET For uploading multiple images, I am using this javascriptL
function AddMoreImages() {
if (!document.getElementById && !document.createElement)
return false;
var fileUploadarea = document.getElementById("fileUploadarea");
if (!f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10245965",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Quirk with .GLB files in Firefox I loaded a .GLB into my Three.js project using Three's GLTF Loader, and the object worked perfectly in all browsers except for Firefox.
A: Firefox loads the children within the scene from a .GLB file in the opposite order of all other browsers. This is detrimental if you plan on man... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59015389",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Laravel not loading view. Error in a storage\framework\view file I'm unable to access my orders_index view from my OrdersController.
orders_index.blade.php
location: \resources\views\orders
@extends 'app'
@section('heading')
Orders Index
@endsection
@section('content')
<section>
content section
</section>
@en... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28637347",
"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.