text stringlengths 15 59.8k | meta dict |
|---|---|
Q: How to set the background of a custom shaped ImageButton in a RecyclerView? In a recyclerView I have list of imageButtons with a custom shape applied as the background of all ImageButtons. Each ImageButton currently has a solid color from a colorlist: colors[]
This is how it looks right now:
I want to put a icon.p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36387448",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to clean JVM heap memory in spark scala or pyspark How to clean my JVM occupied memory in spark scala streaming application. I am running streaming job which is in 60 sec interval of time. For my first six hours no issue after that, I am facing JVM heap memory issue. Is there any way programmatically I can clean... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46245554",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Wolfram alpha and floating point arithmetic (loss of significance) I'm studying floating point aritmetic. Suppose we are in double precision. We know that when we subtract two numbers which has "almost" the same magnitude, the relative error is large.
In MatLab command window, for instance, if I compute
2.0000001-2... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60533661",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: ChildrenRect always returns 0 I have a Flickable item in where I want to put a customized flow component, so I created the Flickable like this:
import QtQuick 2.0
import UICore.Layouts 1.0 as Layouts
Flickable{
anchors.fill: parent;
contentWidth: parent.width;
contentHeight: flow.childrenRect.height;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45088883",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python 3 Multiprocessing and openCV problem with dictionary sharing between processor I would like to use multiprocessing to compute the SIFT extraction and SIFT matching for object detection.
For now, I have a problem with the return value of the function that does not insert data in the dictionary.
I'm using Manag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58869053",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Ionic android app works fine on mobile data but failed to send http request on wifi I am developing app on ionic and angularjs.
Webservices deployed on cloud based server.
My android app is working fine on mobile data but not in wifi.
App Permissions
<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="23"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38890488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to sort a collected based on descending order in laravel? I am very new to the laravel , i have one collection i want to sort the collection based on the id by using sortBy() method but it's not working,please help me to achieve this thing ..
$new=collect($transformed['data']);
$v= $new->sortByDesc(funct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70797549",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why does this `while` loop not process all records when it changes the data? I have a PHP while loop in a WordPress script that only seems to process half of the records it's supposed to when it modifies the data, and I'm struggling to see why this is happening.
I'm writing a WP-CLI script that will set a meta with ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61588877",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Instantiating class with parameterized constructor from COM Is it possible to call the parameterized constructor with COM?
I am going to create an instance of C# class which has parameterized constructor with COM.
Now it raises the Memory Excpetion. so I am not sure about instantiation of C# class carrying the para... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19289427",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I use Google Chrome as a node.js server? I copy/pasted a node js hello world example into an html file
<html>
<head>
<script>
var http = require("http");
http.createServer(function (request, response) {
// Send the HTTP header
// HTTP Status: 200 : OK
// Content Type: text/plain
response.writ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40567572",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Efficient way to store SKLearn Birch model in Snowflake (and bypass 8MB binary limit) my code is exactly that on the answer by @SimonD in this post Store and retrieve pickled python objects to/from snowflake. However I am now running into an error
Programming Error: 100145 (22000): Binary value '800.....' is too l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64056846",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I enter data in array from a text file in JavaScript? I would like to populate an array using the data in text file in JavaScript. The data in text file is in the following format:
0.1 0.5
0.2 0.8
0.3 0.7
0.4 0.9
0.5 0.2
and so on..
A: Some browsers support opening files in JavaScript through the FileAPI. If... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29833642",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Calling powershell script in VBA with return value Let's say I have a powershell script sorta like this:
'Hey'
Which I want to call in VBA sorta like this:
Sub CallPowerShell()
Call Shell("powershell.exe -ExecutionPolicy Bypass C:\Users\chm\Documents\5.ps1")
End Sub
I know this works as a console window brie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52034757",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Change File Permission in Python File System I want to change permission of file inside python file system (pyfilesystem).
Here's the code I have:
fslocal = fs.osfs.OSFS(localdir, create=True, thread_synchronize=True)
fslocal.setcontents('/file1', b'This is file 1')
Now I want to change file permission of file 1. I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33261630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Access store in ember.view How we can access this.store in Ember.view ?
I tried inject method , but it doesn't work for me . Is there any way to do this ?
A: This is an antipattern you want to send an action to the controller and do you work with the store in the controller.
However if you have to inject the store... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21465390",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to sort MongoDB results by element in array that matches a condition? I have a collection of places which is like this :
{
"_id" : ObjectId("575014da6b028f07bef51d10"),
"name" : "MooD",
.
.
.
"categories" : [
{
"categoryList" : [Nightlife, Bar],
"weight" : 8
},
{
"categoryList... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38351460",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Some special characters are not appearing in Text Field of Android In my app user is asked to input text. But some special characters are not appearing
User input : test{ "@","\" }
Actual result : test{"",""}
How can I fix this ? is there anything special required with text.setText() code ?
A: use text watcher... | {
"language": "en",
"url": "https://stackoverflow.com/questions/15608104",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: NVD3 tooltip change event I have a nvd3 chart and a html table. I need to update table values as the user moves the mouse over the chart. Is there an event I can use to catch a nvd3 tooltip change and get the date value at the current mouse position?
My first idea was to get the nv.tooltip values on mousemove over t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64063043",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Angular CLI 7 installed angular material 9 My pc has installed angular cli version 7.3.10 & ts 3.2.4
then i have hit below command for installing angular material>
npm install --save @angular/material @angular/cdk @angular/animations hammerjs
Now i can see angular material version 9 has installed
"@angular/animati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61833340",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Any way to make Project References work without loading them in the solution in Expression Blend? We have a Solution with 25 projects in it referencing each other and it builds successfully in Visual Studio 2012.
But when it comes to Expression Blend (Blend for Visual Studio 2012), I am having the following issues ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19385894",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: operator << in c# i couldn't understand this code in c#
int i=4
int[] s =new int [1<<i];
Console.WriteLine(s.length);
the ouput is 16
i don't know why the output like that?
A: bit shift operator
A: From documentation
If first operand is an int or uint
(32-bit quantity), the shift count is
given by the lo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1961816",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Upload to YouTube directly from stdin via Data API? As the title says, I want to pipe the output of a commandline encoder (that's recording a livestream) directly to YouTube via stdin.
Does the YouTube Data API have this functionality or is there some other little trick in order to accomplish this?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/35118109",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can we give a color with specific color code in the styles.xml in Android Studio? I want to change the status bar color to a specific color with a color code. Only the default colors can be specified in the code as given below, is there any way to give a specific color code to get that color?
<item name="android... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32836999",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Calculating minimumZoomScale of a UIScrollView I have an image that I want to load into an image view and set the minimumZoomScale, as well as the zoomScale to an aspectFill like scale that I calculate as follows:
// configure the map image scroll view
iImageSize = CGSizeMake(iImageView.bounds.size.width, iImageView... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3869779",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Double-decoding unicode in python I am working against an application that seems keen on returning, what I believe to be, double UTF-8 encoded strings.
I send the string u'XüYß' encoded using UTF-8, thus becoming X\u00fcY\u00df (equal to X\xc3\xbcY\xc3\x9f).
The server should simply echo what I sent it, yet returns ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4267019",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Error: UnregisteredEnv with OpenAI Universe on Python 3.5 Linux Mint. Cannot load any environments I am running Python3.5 on Linux Mint.
I can import OpenAI Universe and Gym modules with no error, but when I try to run an example codes I get an error.
More specifically
raise error.UnregisteredEnv('No registered en... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42104722",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQL to find runs of matching values I have the following table called [Store_Sales] -
Store Date Sales
1 23/04 10000
2 23/04 11000
1 22/04 10000
2 22/04 10500
1 21/04 10000
2 21/04 10550
I want a SQL that will return a "run" of similar value... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3723960",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Number of READS in firestore and the basis of its calculation I still fail to understand the calculation of no. of reads on Firestore. Just as an experiment, I just sat a the Firestore console without doing anything, no devices connected, no mobile, no emulator nothing, and the no. of reads registered in under the u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69594590",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Get first record per identifier group in SQL Code Description Whatever
---------------------------------
1 stuff blah
1 something meh
2 yah bong
2 never hammer time
How do I get a results set from this with each Code only present once? (I don... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4884736",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Socket request fails on second call when using the same connection Im opening up a connection to a server that accepts XML requests. I am required to send two requests one after the other.
If I run the first request on its own I get data back
If I run the second request on its own I get data back
If I run both withi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32744164",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Show images and play videos without allowing copying, or downloading Is there any way to display images and / or videos on a website and not allow visitors to download or copy them?
I once saw a website where I tried to download an image, but then it was impossible to open it on my computer because the file type was... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47528903",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to add prefix to all columns values in pandas I have following data frame in Pandas
Date stockA stockB stockC stockD stockE
2020-01-01 1 1 2 1 3
2020-01-01 1 2 2 1 2
2020-01-01 1 1 3 2 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59909763",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: route print command show almost all On-link gateway Trying to learn about routing tables, when preforming route print on cmd window I get this result on the IPv4 table:
===========================================================================
Active Routes:
Network Destination Netmask Gateway ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62219754",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: how can I declare that the seat is already taken in if else statement I have taken all of your comments, and I am still unsure about it but am I doing it properly? And do I need to use for loop to replace if/else-if statements?
if(p.seatrow > ROWS || p.seatcol > COLS)
{
printf("Invalid option!");
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73028723",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Equivalent of OracleParameter [C#/.NET/SQL Server] I working on a database migration (from Oracle to SQL Server) and in this context, I need to change the DAL layer of an ASP.NET project. Part of this is finding the SQL Server equivalent of the class OracleParameter (From Oracle.DataAccess.dll).
So I would like to k... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43611669",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: When User Click on submit Mail goes to my email I recently followed:
link here
but in my app little difference that in above question only user name and password is available but i need to add name,emailid and message
what change i do in my application
when i click on submit mail goes to my email id : *********@gma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18814253",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: How are transactions partitioned/isolated in SQLite? I have been reading the SQLite documentation and also referencing code I have written previously but I don't seem to be able to find a definitive answer to what I imagine to be a rather simple question.
I would like to execute many (separate) compiled statements w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41146228",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why is $timeout needed when dynamically nesting ng-form in Angular to ensure child form links with parent form? I cannot seem to avoid the need to generate dynamic sub forms in the application I am working on. The sub form is working as expected and the sub form shows $invalid=true when one or more of it's inputs a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30948066",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Making a jquery carousel from scratch I know there are a ton of questions on here about jquery image carousel, but they all refer to a plugin. I would like to make one from scratch. It's a pretty simple one, there are 2 buttons, one left and one right. when you click the left button, the position of the overall cont... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5764892",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: php+MYSQL+Get n rows once I have a database that looks like this: (dates are formated with strtotime)
ID Date
1 1338366170000
2 1337761370000
3 1337761370000
4 1337761370000
5 1337156570000
6 1331713370000
7 1331713370000
As you can see some entries are from the same date. I would now lik... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10813108",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: CSS and jQuery universal tree menu I want to create universal tree menu, with ul li ul. And I've made something like this using just CSS:
CSS
.category-list {
}
.category-list li ul {
display: none;
}
.category-list li:hover > ul {
display: block;
}
HTML
<ul class="category-list">
<li>
<a href="" title=... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36113996",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Getting data from JSON in node-red with http request Disclaimer: this is my first time attempting to write in Javascript; I don't know what I am doing.
I tried looking for example of this, but everything I found has the JSON object included in Javascript. Trying to return just the price_usd from this JSON
https://ap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41501850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Moving subproject files and updating links in master project I am working in MS Project and frequently move schedules from a share drive to my computer, manipulate and run macros on them, then copy them back up to the share drive.
Generally if I copy all of the subprojects with the Master project at one time the lin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21732547",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Find next object without specific word in style I have these divs in my html:
<div class="slide" style=""></div>
<div class="slide" style="background: url(/img/2.jpg)"></div>
<div class="slide" style="background: url(/img/3.jpg)"></div>
<div class="slide" style="background: url(/img/4.jpg)"></div>
<div class="slide"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23548507",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: htaccess exclusions don't work the second exclusion ( !/example-folder ) in the htaccess file doesn't work. What am I missing here?
CMS: Magento
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !/admin/
RewriteCond %{REQUEST_URI} !/example-subfolder/
RewriteCond %{HTTP_HOST} ^www.domain.com
RewriteRule ^in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30171703",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: conversion error while grouping the data and returning as JSON With the help of another developer from stackoverflow, I managed to use his query to create a code which returns me data back based upon grouping by groupid and return as json
Try using the following concept:
Insert data:
CREATE TABLE some_table (some_d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45451261",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to create delay before ajax call? I am using jQuery 1.8.
I have a series of checkboxes that a user can check to get information on particular product. When the box is check, a function is called and loads the product info into a div. CURRENTLY, the function fires immediately after each click. So, if the visit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13480706",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to add multiple value for a relationship properties in neo4j? I want to add multiple value for a single relationship properties.
just like below..
I have a relation is "CALLED" which is bidirectional.I want to have two value for "DURATION" like DURATION (100-200->500,200-100->600)
Can I put two values for a si... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29869872",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is it possible to eliminate data loss with Redis? I understand Redis AOF and RDB persistence options and have read the doc (maybe not thoroughly). What I want to ask is this: is it possible to eliminate the possibility of data loss with Redis?
Setting appendfsync to always seems to be the closest solution. However, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65732779",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Error in node module while installing the package in dev ERROR in /node_modules/react-file-viewer/src/app.js Module build failed (from /node_modules/babel-loader/lib/index.js):
SyntaxError: /home/myfiles/myfiles-code/myfiles/frontend/node_modules/react-file-viewer/src/app.js. Support
for the experimental syntax 'jsx... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74128063",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to start text from bottom to Top? How to start the text from bottom to Top?
I Need:
I tried:
.rotated {
writing-mode: tb-rl;
transform: rotateZ(-270deg);
}
<div class="rotated">
<span>5000</span><br>
<span>3000</span><br>
<span>2000</span><br>
<span>1000</span>
</div>
Using <br /> it can be sol... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51101412",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to extract date from text string I need to extract the date (08-01-2021) from the below string that has no whitespace
select 'Date-08-01-2021-Trans-1000008-PH.0000-BA-CR-9999.21' from dual
I tried to apply the REGEXP_SUBSTR function as shown below, but using this query I just removed 'Date-'
with x as
(sel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68408215",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Run file in conda inside docker I have a python code that I attempt to wrap in a docker:
FROM continuumio/miniconda3
# Python 3.9.7 , Debian (use apt-get)
ENV TARGET=dev
RUN apt-get update
RUN apt-get install -y gcc
RUN apt-get install dos2unix
RUN apt-get install -y awscli
RUN conda install -y -c anaconda python=3... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72172927",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: LabView: Icon identification I'm entirely new to LabView, and as a pet project, I'm trying to recreate a pulse detector. Thing is, the version of the .VI is LabView2010, and I can't open the.VI in LabView2009, so were trying to remake it by looking at the module. I do however, have the image, but since I'm pretty ne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/15017921",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is it possible to override nant targets from included buildfile? I have a generic common.xml file that holds a number of generic nant targets that are re-used among multiple builds. What I want to do is 'override' some of these nant targets and include additional steps either before or after the existing target is e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1158882",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: IBM Mobile Application Platform Pattern Type 6.1 deployment error I get the following error when I deploy an instance of a pattern created using the "Out of the Box" IBM Mobile Application Platform Pattern Type 6.1 Template on IBM PureApplication System. The template uses the artifacts/WorklightStarter.ear file as t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22645681",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Encrypting data for storage in database We have a site, where a user will be saving extremely personal and sensitive data in our database.
We of course will need to be encrypting this data before it is stored in the database, and using SSL. It is an MVC application that will use form authentication. what is the best... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4924799",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Can not modify inside prototype array Well the problem is with the Game's instance of rects: [], which should be array of objects Rect. When i access the rects property inside Game gives undefined.
http://jsbin.com/ibilec/34/edit
(function(window, document, console) {
'use strict';
function Rect() {
this.x ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/14303595",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to keep a sprite drawn even after the the condition that drew it is no longer valid? The question I have has to do with a specific portion of my code in Pygame where I m trying to draw a new sprite onto the screen every couple of seconds.
def spawn(self):
self.count += 2
alien1_sprite = Alien1((rand.ra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70630237",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Temporarily caching HTTP responses from parametrised requests using RxJS (and Angular) I would like to cache and expire the HTTP responses from e.g. a GET request with certain params.
An example of a use case:
Suppose I build a service like this:
@Injectable()
export class ProductService {
constructor(private htt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54947878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Compiling/Using MySQL Connector/C++ with MinGW Well, I guess the title sums it up pretty well. The connector comes with Visual Studio libraries and dlls. There is also a source tar available which doesn't compile.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/3419876",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Filter an excel range based on multiple dynamic filter conditions (with column values delimited) I posted a similar question: Filter an excel range based on multiple dynamic filter conditions. Now I am considering a more general case, i.e. for one of the filter column (Releases, column E) it may have several values ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73725751",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Excel how get number of hours in a time interval? I have 2 columns with:
Night shift start: 19:00
Night end: 04:00
And I have some date columns with for each day..
Work started: 07:30
Worked ended: 22:00
I want to get the number of hours as a decimal that is between the night shift start and night end. I need t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17654303",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Function javascript I want to show a dialog box containing a random code I make. This is my function:
function randomString() {
var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";
var string_length = 8;
var randomstring = '';
for (var i = 0; i < string_length; i++) {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16245322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Compare two lists of class objects and keep the difference and the equals in Python I'm currently stuck and i hope someone here can help me out. What I am trying to achieve is following: I have two APIs, those deliver me each a list of learning courses represented as python class instance. At one side there is the M... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69135843",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Coverting old js project to webpack npm getting error like Cannot read property 'className' of null I am converting old codekit project into webpack. I almost there but getting strange error when using scrollReveal which I never got before.
There is error seems purely javascript related tho...
Uncaught TypeError: Ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62497677",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: list comprehension using multiple columns I have a pandas data frame with a column for actuals, and predicted. I would like to make a new column using list comprehension that = 1 when actuals = predicted, 0 otherwise. I know how to do this using np.where, but I was curious to know how to do it using list comprehensi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47758808",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: DIV's reorder by themselves upon expand - how do I keep the same order? I've got a grid of items that upon click expand to show a table below it. It works fine, but it reorders the DIV's positions as per my illustration below.
I need them to keep their respective position in their "columns".
Here's the illustration ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21779673",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Incorrect File Download using mechanize response in Perl I created a script which access a URL with basic authentication. Once I've passed the credentials, it will download the file in my local folder. The problem is I got an incorrect filename. Here's my sample code:
#!/usr/bin/env perl ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20067040",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Dividing a bit string into three parts in C I currently have a integer value that was read from an input file as a hexadecimal. I need to divide the 32 bit bitstream into three separate parts in order to manipulate it. The desired output is below:
desired output:
In this, V is my input value, left is the first X1 d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42311028",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-5"
} |
Q: Check If List of Objects Contains Empty or Null Item Value I have List of object returned from a native query. This list has String, Integer and Date. The variable looks like this:
Object[] result = (Object[])query.getSingleResult();
I need to check whether the list contains null or empty value. ObjectUtils from org... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74110675",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Anylogic Error Source Arrival Table in DB based Variable (Not Unique Database Value!) I have combo box in experiment screen with options : Lala, Poo, and Twinky. They will be input in variable as initial value. Lala, Poo, and Twinky. Also their database for arrival table :
I am trying to make source based on variab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71837260",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Implementing static shared counter in microservice architecture I have a use case where i want to record data in rows and display to the user.
Multiple users can add these records and they have to be displayed in order of insertion AND - MOST IMPORTANTLY - with a sequence number starting from 1.
I have a Spring boot... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62369875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cannot run tflearn with sklearn's GridSearchCV I intend to perform a grid search over hyperparams of a tflearn model. It seems that the model produced by tflearn.DNN is not compatible with sklearn's GridSearchCV expectations:
from sklearn.grid_search import GridSearchCV
import tflearn
import tflearn.datasets.mnist a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38968249",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: how do u make a program that checks many txt files how do you make a program that checks many txt files to see if the input goes with any of the text in the files and prints where it was found.
A: I'm not sure if this is what you are asking, but I interpreted this as list the files in a given directory, and then ch... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35027907",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-6"
} |
Q: how to inject $attrs into a controller through $routeProvider I have a mini app with a controller that looks like that:
app.controller("MyController", [ '$scope', '$attrs', 'ServiceA', 'ServiceB', function($scope, $attrs, svc1, svc2) {
...
}])
When I tried to add angular-routing to my app, I added the following r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29730240",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Adding states and using them inside react component functions I have some rect componets whihc are just functions, I have posted a part of one of my components below
.....
const useStyles = makeStyles(presentationStyle);
export default function PresentationPage() {
React.useEffect(() => {
window.scrollTo(0, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63504908",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: NuGet package adds incorrect hint path During an automated build, my nuget package needs to be non framework dependent, however I keep finding that the nuget package getting added is incorrectly adding a HintPath.
Within my nuspec I've defined the files that are part of the package:
<files>
<file src="lib\xyz.dl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38729190",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: iOS In-App Purchases: Sandbox Invalid Product ID Background on the slightly odd setup before I get to the problem: Working on an app for a client and we're using an different iTunes developer account than the one this will eventually be published on for development and Ad-Hoc builds of an app that has Game Center an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12736712",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: get table rows only when table checkbox is "checked" I am using below code to retrieve the values of selected row using checkbox class = btnSelect.
I want to get the rows only when the checkbox is marked as checked.
Current code get the values, both when checkbox is checked and unchecked.
Why does the code below g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42499860",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to create a view which contain image and text as like newspaper has? I want to create a view which contains image and text, like a newspaper has.
For example, in 320 pixel width, a 200 x 100 image. The image is on the left side of the view, and the remaining space on the right side and bottom will contain text.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7888749",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Why does redux form return string instead of the object? I am trying to access the touched property on my redux form, but for some reason when I print the field props I only the value instead of the object. What am I missing?
import { reduxForm, Field } from 'redux-form';
render() {
const { fields: { email, phone... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42355560",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: node.js with child processes in docker I have a node.js web application that runs on my amazon aws server using nginx and pm2. The application processes files for the user, which is done using a job system and child processes. In short, when the application starts via pm2, i create a child process for each cpu core ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50571285",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Form with tinymce textarea failing to submit more than once using ajax I'm trying to submit a form using ajax while using tinymce as my textarea editor but the form is only submitting on the first instance and not working in subsequent submissions.
This is my form
<form action="{{action('QuizController@postQuiz', [$... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45470547",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Bootstrap xs should be "less than 768" so how come it breaks already at 826? I tried to test this way, and I measured with photoshop.
My ultimate goal is to make the xs be smaller (for small devices)
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" />
<div class... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38428029",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Gson TypeAdapterFactory using gson.getDelegateAdapter issues I'm having issues with how my TypeAdapterFactory falls back on default serialization (custom Deserialization is working fine.) For background reference this is for deserializing GraphQL responses which feature a obj.getTypeName so I have to look up type na... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40008436",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Session is not being set in ASP.NET MVC 5 I am working on a project which is using
HttpContext.Current.Session["XYZSession"]="abcValue";
in a get request which gets a parameter from the link being opened.
The problem is, when I open the link by right-clicking on it and selecting the option open in new tab or by pre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73194332",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I create a function similar to current_user? In Flask, I would like to understand how to create a function that behaves similar to current_user in the sense that it is available everywhere (controllers and views) but I'm struggling to actually know what to search for to find the answer.
The closest post on S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65047812",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to update srore after fetching data with RTK i am learning react js by doing a project wher i am using RTK to manipulate the state of my app . The problem is after fetching data i want my store to change automatically . this is my server
import { createApi, fetchBaseQuery } from "@reduxjs/toolkit/query/react";
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73067300",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: $.ajax({ }) Post request to a PHP file is returning a null value I have been looking at this problem for quite a while now and cannot seem to figure out why I keep receiving null after my $.ajax function is called.I input an associative array that contains my method name and then call my method in PHP to return a j ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13438975",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I incorporate await sleep(milliseconds) between two set of messages in MS Bot Framework? I am developing a Bot using NodeJs which should ask the user a set of questions and then after a break, ask the same another of questions again.
I am using await sleep(milliseconds) in between.
While testing using the Emu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60592317",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the meaning of mode(x).mode[0]? I am trying to find mode along a column(named Outlet_Size) of a dataset using pandas library of python which contains values in the form of {small, medium,large} corresponding to 10 different outlet stores with total of 1000+ rows.enter image description here.
For Finding the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47950227",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Creating a COM port out of a ttyUSB port in Ubuntu The Question
I'm having to work with a rather awkward API at the moment which insists on me giving the address of a device, linked via USB port, in the form COM*. However, on the Ubuntu machine on which I'm working, and have to use, if I plug in this device it will ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59267486",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Python Socket Programming: Upload files from Client to Server I'm looking to find some assistance in my python socket programming.
Objective: upload a file from the Client to the Server. My current setup involves two virtual machines, a Server and a Client, where the respective .py files will reside; server.py and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53353987",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Jquery ui Selectable() cant properly unselect outside the method I have a table with selectable objects as follow :
/* ESPACE OU LES TATOUAGES SONT SELECTABLE */
$(".tatooInk > tbody").bind("mousedown", function(e) {
e.metaKey = true;
}).selectable();
$( ".tatooInk > tbody" ).selectable({
filter: ":not(t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34247897",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: GLSL compute world coordinate from eye depth and screen position I'm trying to recover WORLD position of a point knowing it's depth in EYE space, computed as follow (in a vertex shader) :
float depth = - uModelView * vec4( inPos , 1.0 ) ;
where inPos is a point in world space (Obviously, I don't want to recover thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26691029",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Accessing 32 bit hive in .Net Core Application What is the correct way to access 32 bit registry hive on a 64 bit machine? I tried the following code to set some value in HKCU\Software 32 bit hive but it still gets the 64 bit hive. I couldnt find any alternate api to pass RegistryView enum, In C++ the Wow64 flag can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71329249",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: visibility map: all visible pages The relallvisible field in pg_class view display the Number of pages that are marked all-visible in the table's visibility map.
When I try this example:
INSERT INTO foo (x) SELECT n FROM generate_series(1, 10000000) as n;
analyze table foo;
select nspname, relpages, reltuples, r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69808988",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: When an iOS application goes to the background, are lengthy tasks paused? Yes, I know if I wish my app to be responsive to users' multitasking actions, such as switch to another app, I should deal with
- (void)applicationWillResignActive:(UIApplication *)application
- (void)applicationDidBecomeActive:(UIApplication... | {
"language": "en",
"url": "https://stackoverflow.com/questions/6650717",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "74"
} |
Q: Clear log files on OpenShift - RedHat Debugging my apps on OpenShift is becoming difficult due to excessive log data.
I'm using the terminal command rhc tail -a appname to view logs
Is there a way to clear the log files via a rhc command? (or any other method)
Any other recommendations for viewing / handling log d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34191560",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.