text stringlengths 15 59.8k | meta dict |
|---|---|
Q: add_filter hook not working in plugin's php file I am developing a plugin and it works fine when I call my code from my plugin's main php file but I want to run only once My external file is called in the plugin. I mean I want to place my function inside includes folder and in a file living there. like plugin folder... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40284346",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Automating setterm I've GNU/linux Debian 10 (sid) net install with no x11 on a HP Pavilion dv6. I can keep the monitor on alway with:
setterm -blank 0
Then have the monitor shut off after 10 minutes of inactivity with the:
setterm -blank 10.
What I would like to do is have the screen go off at 23:00 every night an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66537659",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: touchesBegan in custom UITableViewCell, touchesEnded in UIView I am trying to mimic a drag n drop of an image from a UITableView to a UIView. Both the UITableView and UIView are on the same view, side by side.
My approach:
is to fire the touchesBegan event inside the UITableView (i.e. when a cell is touched/selecte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16109922",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I lazyLoad large model outputs that have been saved using saveRDS? I have a few hundred large model outputs (8 Gb), each saved as a list containing many elements (and sub elements). To do further work on all these outputs it is not possible to load all 100 8 Gb files at once into the environment and I came ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60907672",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Convert pixel to percentage for big monitors I developed a web page with 1000px width. But it is look very small in big monitor(We have 2560x1600 monitor). My questions are
*
*How to convert a (or any) website to big screen using percentage instead of pixels ?
*Any conversion method for pixel to percentage?
I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12858058",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Ruby: Convert memory address string format to bytes for shellcode I have found a program that leaks the address of it's buffer. I can capture that by sending a socket.get_once but it's in a string format. So when I go to pass it to pack it doesn't want a string value. How can I convert a memory address in string for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49135022",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is it possible to reuse the UIScrollView scrolling physics for a custom scrolling view? I have a custom view with some complex scrolling behaviour. I’d like the scrolling to have the same physics as UIScrollView, both the inertia and the edge bouncing. Is it possible to somehow reuse the physics code from UIScrollVi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/15482527",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP - How to avoid Parse errors on older servers when using new functions When I use an anonymous function ( but see also note below ) like :
$f = function() use ($out) {
echo $out;
};
It produces an parse error on servers where PHP is older than 5.3.0.
My software needs to be compatible... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16413627",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: nested_attributes fields not showing up In my current rails app, I have a User model which has_one :user_detail. Currently, I cannot get the form to display the fields for the nested attribute unless I already have it seeded with the seeds.rb file.
Here is my User model
class User < ActiveRecord::Base
has_one :us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10265628",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to know how many objects will be created with the following code? I am bit confused in case of objects when it comes to Strings, So wanted to know how many objects will be created with following code, with some explanation about String objects creation with respect to String pool and heap.
public static void... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3850921",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Passing a location.search parameter to a Jasmine (Karma) test I have a javascript file that uses location.search for some logic. I want to test it using Karma. When I simply set the location (window.location.search = 'param=value' in the test), Karma complains I'm doing a full page reload. How do I pass a search par... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32952522",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Styled Components & Typescript type error I've set up styled-components successfully in react-native, but I'm now using react-native-web and can't get styled-components to work on the web in this very simple example:
import * as React from 'react';
import styled from 'styled-components';
export default class View e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54370455",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Serializing object for sending inside Intent on Android I want to pass objects between Activities and Services on Android. The straight forward way to do this is to make your objects implement Serializable or Parcelable.
*
*Serializable it's relatively bad performance.
*Parcelable on the other hand requires me... | {
"language": "en",
"url": "https://stackoverflow.com/questions/6341209",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Program Data in a POSIX environment? I'm a little confused on how/where program data should be stored in a Posix envronment, Debian Linux specifically. I understand that user specific data should be kept in $home, and looking at this question it looks like data common to all users should be in /var/lib/myProgram/ bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27684571",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Graphing Segments in R I want to plot segmented data in R. That is, say I have data of the form
| Product | Date | Origination | Rate | Num | Balance |
|-----------------------|--------|-------------|------|-----|-----------|
| DEMAND DEPOSITS | 200505 | 198209 | 0 | 1 | 2586.25 |... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39856303",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Unable to Edit template any object In visual studio 2015 Unable to Edit template any object In visual studio 2015. I try with blend But I can't do that.
please help me? If you don't know, please make a edit template for Button and post it here.
Thanks.
A: I couldn't solve question completely But I found something... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32485568",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible to send email along with form details in php using wamp Hai Friends iam trying for an online form submission .whenever i try to submit form it redirects me to MS OUTLOOK but my my form values are not included in that why?
Is it possible or does it require ftp credentials or something.
Give me sugges... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20901040",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Spring Integration NotSerializableException on jdbc inbound-channel-adapter update query I have a jdbc inbound-channel-adapter which is defined as shown below. I'm using a MySQL dataSource. I want to update the status of rows that have been polled. I'm trying to follow this document: spring integration ref. mannual ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39668748",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to run application E2E test after argocd deployment? I would like to know how can we run application E2E(UI or API) test after successful deployment of any micro services using ArgoCD.
Current Setup: I have CI pipeline setup with github-actions. Upon completion on CI build for any microservices, it updates the d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69917361",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Accessing array attributes from other classes with setter/getter I'm new to Java and was wondering how to access attributes from other classes with setter/getter if they are arrays.
Currently, I have one date class that sets a date with parameters for month/day/year. I need to make another class that uses the date c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69654140",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Insert Row if cell contains "&" Probably something simple I've missed, but I need to run down a column, and copy-insert any rows that have a "&" in the cell.
I've managed to get it to here, but it's now just getting stuck on the very first cell with a "&", and won't move past it.
Dim ws As Worksheet
Set ws = ThisWor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56559495",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get react URL in php for creating API? I want to get a URL which is coming from a React rout.
URL is like: http://localhost:3001/users/[member_username]
In which member_username will be dynamic as per the user name.
So for example if a url hit like http://localhost:3001/users/gray then a variable will get ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55626025",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What are the correct min and max values for Gluon maps zooming? I am trying out Gluon maps. As I understand it, Gluon maps uses OpenStreetMap which has a zoom range of 0 to 20 (but this value is not mentioned in the MapView javadoc). I create this code:
public class MapTest2 extends Application
{
MapView mapVi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72043320",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java- Using if statement inside a loop I wrote a small code :
System.out.println("Please enter a number");
int number = scan.nextInt();
if(number == 1) {
System.out.println("Number is 1");
} else if(number == 2) {
System.out.println("Number is 2");
} else {
System.out.println("Invalid selection");
}
Wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26751705",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Unable to query for default vendor from RPM: Error while executing process. while running streamsets I just followed the following tutorials for latest streamset 2.6.6 with flume as datacollector, https://github.com/streamsets/datacollector/blob/master/BUILD.md
At the time of making the build i have faced the follow... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44127780",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: dropdown box with entry I have a list of some entries I want to sort the entries by entering some keyword.
from tkinter import *
from ttkwidgets.autocomplete import AutocompleteCombobox
root = Tk()
root.geometry("100x100")
Phone_no = ["apple", "ball", "cat", "dog", "elephant"]
new_list = []
def selected_list(eve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70722602",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: R How to read in a function I'm currently implementing a tool in R and I got stucked with a problem. I looked already in the forums and didn't found anything.
I have many .csv files, which are somehow correlated with each other. The problem is I don't know yet how (this depends on the input of the user of the tool)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30435476",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Save all values in Uppercase Laravel 5+ What would be the best way to save all values in the database as uppercase. So before saving convert all strings to uppercase. I see options to use Events or a trait would probably be best but not quite sure how to achieve this. I do not want to create accessors & mutators for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40132516",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Webview causes infinite scrollable white space I have a layout which contained Webview inside NestedScrollview,
<?xml version="1.0" encoding="utf-8"?>
<com.app.swipetofinish.SwipeDownLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48542412",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why is IsNaN(x) different from x == NaN where x = NaN Why are these two different?
var x = NaN; //e.g. Number("e");
alert(isNaN(x)); //true (good)
alert(x == NaN); //false (bad)
A:
The equality and inequality predicates are non-signaling so x = x returning false can be used to test if x is a quiet NaN.
Source
Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/14986361",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: IBM Cast Iron studio unable to convert '&' to '&' Hello I am constructing a URI from two different strings coming from a source.
String1 = 12345&67890
String2 = 78326832
URI = /api?invoice=String1&supplier=String2
After using concat function available in studio, this is the final URI.
/api?invoice=12345&67890&supp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49701279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to address a text field created within a symbol from main timeline in Flash using actionscript? How to address a text field created within a symbol from main timeline in Flash using actionscript?
For example, if I have a text field named textfield inside a symbol named symbol1, which is input inside a movie clip... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43072906",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Excel: DEC2HEX() wrong conversion !? How to fix or any other solution? The idea is to add hours to date time and convert to HEX.
I have the following table:
In column B i put the hours to add
In column C i use formula: =INDIRECT(ADDRESS(ROW()-1,COLUMN()))+B3/24 , to calculate the new time
In column D i use formul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47509235",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Opening a jQuery UI Dialog with dynamic links I have links generated dynamically based on content in a db.
The links end up looking like
<ul>
<li><a href="/Updates/LoadArticle?NewsId=3" id="article">Article 3</a></li>
<li><a href="/Updates/LoadArticle?NewsId=2" id="article">Article 2</a></li>
<li><a hre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11972551",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Telegraf.js bot create a user link without mentioning a user I am trying to send message via bot that contains a link to user profile, but problem is, that this mesage makes an annoying notification for user, with an '@' icon in chat group, is there a way to avoid that?
const msg = data?.sort((a, b) => b.rat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73050860",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Scan Fb QRCode to login app I'm creating new application that scan Facebook QR Code to login.
The result will same as u click "Login with Facebook" in website.
But my app is use Facebook QR Code to do that. My app will scan the QR Code from your phone
then it will login to my app by Facebook account. Now i'm done th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46271000",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: String-Output: Class@# Lets say I have three classes:
Class A:
public class A {
private String s;
public A() {
s = "blah";
}
public void print() {
System.out.println(s);
}
}
Class B:
public class B{
private A a[];
public B(){
a = new A[100];
for (int i=0; i<100;i++) {
a[i] =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16263919",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Scrapy Access Denied crawling the head of a website I wanna crawler a website, but I got the next error:
'<head>\n<title>Access Denied</title>\n</head>'
I just trying in the console:
scrapy shell https://www.zara.com/es/en/
response.css("head").get()
What I am doing wrong? Is related to the User-Agent? Does the w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62892196",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jquery mobile asp new page in iframe Well I have most of the problem figured out. But there is still a slight problem. The <iframe src="" doesn't seem to be behaving, it won't pick up the url in my data-popupurl="product.asp?itemid=[catalogid].
Anyone know why?
<script>
$( document ).on( "pageinit", "#page1", functi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20710128",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using Global Variables in Y86 Assembly I'm trying to write a program that creates a sum of all inclusive integers between x and y, with the sum, y, and x being global variables. I'm running into problems when I try to assign the x and y to local registers (my simulator assigns the values of 0x60 and 0x64 to the loca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27000732",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to import image(SVG or PNG) in React using Create React App For example I have this <i> for Icon element
<i style={{ backgroundImage: `url(${'./images/names/Mike.svg'}` }}/>
I know I can import an image by importing them individually according to this post
but it's not feasible in my case since I need to import... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63630318",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Local server port connectivity with R shinyApp I want to deploy shinyApp in local server.
Is there any such code by which I can deploy shinyApps in local server.
When I run shinyApp locally on desktop, it runs by IP: http://XXX.0.0.1:XXXX/
Every time I run the shinyApp it runs with different port number.
I want to c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53984580",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Get files of user defined sizes C# I have been trying to find a way to display files that are within 1MB of user defined file size. so far I have tried this but it comes up as invalid
DirectoryInfo folderInfo = new DirectoryInfo("C:\\Windows");
FileInfo[] files = folderInfo.GetFiles();
Console.WriteLine("Enter a fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27933339",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: How do I copy a string to the clipboard? I'm trying to make a basic Windows application that builds a string out of user input and then adds it to the clipboard. How do I copy a string to the clipboard using Python?
A: I didn't have a solution, just a workaround.
Windows Vista onwards has an inbuilt command called ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/579687",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "265"
} |
Q: Add Percent Sign to Tabulator Cells How can I concatenate a percent sign onto the the otperc (etc) field? I thought about adding it in the database call but I don't want to convert it to a string and not be able to sort it.
function addTable(data) {
var table = new Tabulator("#table", {
height:205, // se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75616462",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: 'or' and 'and' in same if statement I am wondering why this returns true:
def parrot_trouble(talking, hour):
if hour < 7 or hour > 20 and talking == True:
return True
else:
return False
print(parrot_trouble(False, 6))
Is it because you can't have 'or' and 'and' operators in same if statement? Or other ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65062347",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: compile and execute java program with external jar file I understand this has been asked for multiple times, but I am really stuck here and if it is fairly easy, please help me.
I have a sample java program and a jar file.
Here is what is inside of the java program (WriterSample.java).
// (c) Copyright 2014. TIBCO S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50501028",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to make wordpress spacious theme full width? Currently i have large sections of whitespace on the left and right margins on all my pages which i would like to remove. I have managed to amend the width of the page using the following CSS
#main .inner-wrap {
max-width: 97%;
}
However i am having difficult finding... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51398650",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to add a new trace while removing the last one? I am new to shiny and plotly. What I'm trying to do is to add a trace first and then I want it to be replaced by a new one every time I click on a button.
here is my minimal example:
library(shiny)
library(plotly)
ui <- fluidPage(plotlyOutput("fig1"),
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69091610",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Logout so the back button doesn't return to profile The code I have below is an OnClick logout method from an app. All it does at present is return the user to the login page, however if the user presses the back button on the Android phone, it brings them back to the page they've just logged out from, which I don't... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43217074",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Local object value is being saved between function calls (maybe scopes misunderstanding) I am confused trying to solve a task of "flattening" a list of lists.
For example, I've got a list [1, [2, 2, 2], 4] - I need to transform it to [1, 2, 2, 2, 4].I solved it that way:
def flat_list(array, temp_list=[]):
for ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35071194",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to wait until the user finished the tasks after grecaptcha.execute()? reCAPTCHA v2 invisible I would like to make my own website, where I
use reCAPTCHA. However, I don't know how to wait after grecaptcha.execute() until the user has completed the tasks. Because now the link is called directly without passing the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64324592",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Div Br Image Column 1px Misalignment Only the very last image of the column misaligns by 1px when I code this way. I know 2 other ways to code to get the result without the misalignment, (using ul or using multiple div in a row without any br), but it's disappointing cuz this seemed even simpler to me. What's the re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29430710",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: syntax of if condition within animate of jquery How do i write if condition within animate for the following?
$($("#tabs > ul"), $(this).parent()).animate({
marginLeft: '+=' + marginleft
}, '10000', 'swing');
A: Could fit your need:
As IDs must be unique on context page, that s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17544357",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Make action bar "up navigation" trigger dialogfragment Can I make the action bar's "up" navigation trigger a confirmation dialogfragment that says "Are you sure you would like to go back?"
A: Intercepting the up ActionBar button press is trivial because everything is done through onOptionsItemSelected. The document... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21102818",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: TFS Build 2008 - Why is everything getting dumped in one folder? When I build my solution, it dumps all the binaries into one folder. How can I cause it to split up the files by project like Visual Studio does?
A: Just edit your TFSBuild.proj file for the build, and add this to opne of the property groups:
<Customi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2815702",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python rename file - replace all underscores with space I am using python to rename all files in a directory with extension ".ext". The script is in the same folder as the files so no need to worry about path.
How to replace all underscores in filenames with spaces? For example filename This_is_a_file 01 v2.22.ext t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60180340",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Algorithm mixing information of two arrays of objects in javascript? Problem
I have this array
const cards = [
{id: "29210z-192011-222", power: 0.9}, // Card A
{id: "39222x-232189-12a", power: 0.2} // Card B
...
]
My firestore database looks like this:
cards (collection) -> cardId (document) -> userId ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63538940",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to mount AWS EFS inside docker using docker-compose? I have an efs drive, with shared files, that i want to mount inside docker containers to be run on ECS. AWS has a suggested way to do it using task definition. However, I want to do it using docker-compose and not change task definitions that we manage throug... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68290180",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: cloud_package.cspkg file was not created after installing "socket.io-servicebus" I'd like to use the "socket.io-servicebus" module to my node.js application.
But I encountered that a problem.
After installing the "socket.io-servicebus", cloud_package.cspkg file was not created by "Publish-AzureServiceProject" comman... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16604211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Efficiently check if elements lie between closed intervals I have a tuple x with elements as x = (2, 3, 4, 5). I also have another data structure that holds closed intervals with the number of elements equal to the number of elements in the tuple x, as y = ((2,3), (3.5, 4.5), (6, 9), (4, 7)).
Now, I can set up a nes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74882492",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Is it possible to create a local view in PL SQL procedure? I'm looking for a solution that tell Oracle "this query is meant to be reused like a view" (and if I ask, it's that I don't want to/can't create a full global view if possible).
With the following minimal model (I left out other colums):
*
*There are owne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28971025",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Using Cloudflare ssl for nginx container show error: "ERR_SSL_VERSION_OR_CIPHER_MISMATCH" I'm trying to config ssl for My website, I use Cloudflare to generate a origin certificate.
This is my nginx config:
I can access my website by IP and view the certificate:
But when I access by domain, it show
ERR_SSL_VERSIO... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75256601",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Arraylist Pass from fragment to activity Intent intent = new Intent(getActivity(), loadactivity.class);
intent.putExtra("Arraylist", imagearraylist);
startActivity(intent)
A: Hope this will help you!
Paste the following code in your activity.
ArrayList<Object> imagearraylist = (ArrayList<Object>) getIntent().getSe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58110161",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: App not authenticating with React-Native I am learning React-Native and trying to do oAuth2 authentication. I have registered my app with the service and my redirect uri. When the user clicks on the "login' button on the app, it is supposed to do the following:
onLoginPressed() {
fetch("https://www.hackersch... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29731829",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java 3d Charts JavaGnuplotHybrid I want to write software for 3D charts in java.I found something like gnuplot and JavaGnuplotHybrid and this example:
JGnuplot jg = new JGnuplot();
Plot plot0 = new Plot("2d plot") {
String xlabel = "'x'", ylabel = "'y'";
};
double[] x = { 1, 2, 3, 4, 5 }, y1 = { 2, 4, 6, 8, 10 }... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33802575",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: libgdx: Calculate points along CatmullRomSpline that are same distance apart? I am building a 3D game in which the camera follows a sequence of predefined paths (which are imported from curves drawn in Blender).
At load time, I extract the Blender curve points and use these to create path splines using the CatmullRo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32034180",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Only one connection to a remote api or each component its own connection I have created an api that connects to another outside api. Now i am not sure how to design my way of connections within my project. What is the better way one connection or each class each own connection.
A: One connection manager with api u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38043486",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to handle exceptions: "ERROR] FATAL UNHANDLED EXCEPTION:" I created a class dubPrime that takes an integer that must be a double digit. If it isn't a double digit the program is supposed to throw an exception. However my program crashes and outputs "[ERROR] FATAL UNHANDLED EXCEPTION" whenever I try to create an ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66926160",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Does Data Sms Count Towards Android Sms Limit? I understand that Android has a 30 sms in 30 minutes limit, but does this also apply to data sms? Thanks!
| {
"language": "en",
"url": "https://stackoverflow.com/questions/38748228",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ActionController::ParamaterMissing while running test. From Chapter 7 of Hartl's Tutorial Currently doing Hartl's (updated) Tutorial and I'm stuck at the end of Chapter 7 [7.5.3 to be specific, Production Deployment].
I'm running a test and getting the following error:
1) Error:
UsersSignupTest#test_invalid_signup_i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38253394",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Install dependent project from git repositroy I have some trouble with dependency of composer. My basic project has the following json file:
"require": {
"klabs/side-menu-widget": "dev-master"
},
"repositories": [
{
"type": "git",
"url": "git@bitbucket.org:klabsers/side-menu-widget.git"
}... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38117841",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: UITableView repeating background with 2 images So I'm trying to make a UITableView that has a repeating background. I want the background to scroll with the text. The catch is that the background is 2 images. There is a top image that is about 550px in height, and then a repeater image that's 2px in height. I want t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1767695",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Gradle not including dependencies in published pom.xml I have a Gradle project I'm using the maven-publisher plugin to install my android library to maven local and a maven repo.
That works, but the generated pom.xml does not include any dependency information. Is there a workaround to include that information, o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24743562",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "57"
} |
Q: How to add run-time processing of @NotNull annotation I was quite surprised to see that IntelliJ actually does runtime verification of @NotNull within IDEA when running/debugging a unit test. Is it possible for me to add this same feature to my maven build? (What jars/jvm settings do I require?)
A: IDEA is using it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7008284",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: 301 url redirect .htaccess in Apache server How can i direct the search engines from one domain to other domain for better SEO optimization. I want to make 301 redirect from domain.uk to language directory of another domain domain.com/gr
How can to change last line code? Thanks!
RewriteEngine on
RewriteCond %{HTTP_H... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62756246",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Choosing an STL container to store threads I am trying to choose the best STL container to hold Thread objects (I am writing a thread library). My problem is that I'm not very familiar with any of them, and while reading the api helps, I would like to consult someone who had used it before.
Anyway - every Thread obj... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10276086",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Unable to install "org.Hs.eg.db" in Rstudio I tried to install the package org.Hs.eg.db from the bio-conductor, but the Rstudio failed to install.
The returning warning message is as followed:
enter image description here
And my SessionInfo() is as followed:
My .LibPaths() is as followed: D:/Program Files/R/R-3.2.3... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35534193",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I configure Server-Side custom_hooks in GitLab? I've tried below approach and it works fine. However, it just commits and pushes from my local to git then it will push to the remote server.
git remote add origin https://code.company.com/autodeployment/fiver.git
git remote set-url --add --push origin https:/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59327404",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Concat array field inside an array of object into one string field in mongodb aggregate I would like to concat the array field values inside an array of objects into one string field.
Heres the existing document format:
{
"no" : "123456789",
"date" : ISODate("2020-04-01T05:19:02.263+0000"),
"notes" : [
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61158633",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Prime factorization in prolog I'm new to Prolog. I read this code which finds prime factors of an integer:
factors(1,[1]) :-
true, !.
factors(X,[Factor1|T]) :-
X > 0,
between(2,X,Factor1),
NewX is X // Factor1, (X mod Factor1) =:= 0,
factors(NewX,T), !.
And changed it to this one:
factors(1,[[1,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23664333",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using "rem" combined with "vw" for flexible websites With the following CSS, I get a precise, proportional scaling layout:
html {
font-size: 1vw;
}
body {
font-size: 1.6rem; // 16px @ 1000px screen width
}
.some-div {
padding: 2rem; // 20px @ 1000px screen width
}
The thing I like about this approach,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54390184",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible to have a function within a function? Is it possible to have a function within a function?
Something like this:
Public Class Form1
Private Sub button1_Click(sender As Object, e As EventArgs) Handles button1.Click
Sub anim() Handles form2.Shown
Me.Refresh()
Do Until ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21205567",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to split an NSArray into two equal pieces? I have an NSArray, and I want to split it into two equal pieces (if odd "count" then add to the latter new array) - I want to split it "down the middle" so to speak.
The following code does exactly what I want, but is there a better way?:
// NOTE: `NSArray testableArr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1768081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: What counts towards the 500-item limit in firestore batch writes? I have the following code in a cloud function which is returning an error with the message
Error: 3 INVALID_ARGUMENT: maximum 500 writes allowed per request
console.log(`${projectId} doClassifySources: Got ${_.size(output)} items`)
const lastClass... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54671543",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Get error during using condition inside the map items.map(item => {
return(
<tr key={item.id}>
<td>{item.id}</td>
<td>{item.heading}</td>
<td style={{width:"7.5%"}}>
<img className="bar-sm"src={item.image} alt="pic error" style=
{{width:'70px',height:'35px'}}/>
</td>
<td>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64136004",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How do I create a set of characters in Scala? I'd like to create a Set of character ranges in Scala, something like A..Za..z0..9. Here's my take:
scala> ('A' to 'Z').toSet.union(('a' to 'z').toSet).union(('0' to '9').toSet)
res3: scala.collection.immutable.Set[Char] = Set(E, e, X, s, x, 8, 4, n, 9, N, j, y, T, Y, t,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8556255",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Google Play store: edit one of the images of my app I see guides out there on how to upload a new version of your app to Google store, but in my case I'm not interested in uploading a new apk, I would just like to change one of the uploaded preview images of my app:
What would be the easiest way to achieve this?
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59962959",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I share my iPhone app for translators?
Possible Duplicate:
Creating Localization Files for iOS
i have my iPhone company app in English language and we are international company, so how can I share my App for all translators f.e. by simulator or something else ?
f.e. translator translate the text and nee... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12934620",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android: Trying to Launch Default Player Picker Lobby using Google Play Services, running into NullPointerException I have been stuck on this problem regarding my android application for the past four days. I am trying to launch the default Player Picker UI screen from Google Play Services, and whenever I do, I run ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22845921",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Bootstrap move navbar below other divs on large screens I am building a responsive page using bootstrap 3.1.1 and I would like to move the navbar so that it is below some other divs when viewed on non-smartphone screens. See the image below for an example.
I've attempted to do this using the bootstrap pull/push cla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22149480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: SQL Server Case Sensitivity in Foreign Key We're having issues trying to update all of our user to lowercase usernames in SQL Server. We're doing this to support recent changes in our app. Specifically the following query is failing with an FK Constraint error on another table that references [User].[Username]
Updat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4127548",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Rails 4 CSRF not correct I'm on Rails
So I was messing around with my cookies and I might have deleted some important ones related to csrf. Now whenever I submit a form on my app I get: ActionController::InvalidAuthenticityToken
When I dig around in these requests it looks like this is why I am getting these error... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25517095",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Deserializing JSON object to runtime type in WinRT (C#) I have a small WinRT client app to my online service (Azure Web Service). The server sends a JSON encoded object with (with potential additional metadata) to the client and the client's responsibility would be to deserialize this data properly into classes and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17745824",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: From plugin to theme folder: reference not working as expected In a given wordpress theme, the javascipt and jquery files are located at /functions/extended/js/
Originally they were located in a plugin folder. I need to retarget the references to a folder within the theme.
my previous code:
if ( is_front_page() ) :
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22517464",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Get the price of tokens with web3js I wanted to know if it was possible to get the price of tokens with web3.js
For example I would like to get the price of WBTC on Uniswap and on SushiSwap
If you have any documentation or tutorials I'm interested
Thanks in advance
A: If you need any price information you could use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73221666",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to update SQLite table based on checkbox value in Flask? I have SQLite database which contains data regarding products such as Product Name, Description and Like which shows if the user likes or doesn't like the product.
A user search for different products which populate a table with the name, description and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58431932",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why isn't this MySQL statement working? I have a table Seats with the columns, SeatID, Date, RouteID and Seats. The primary key is SeatsID. The value of seats is 50, and I wish to subtract whatever the user has entered into $tickettotal from 50 and then insert the new value.
The user also has to enter which RouteID ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29020373",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Dynamic view dimensions for different Devices
Possible Duplicate:
How to write app for multiple screen resolutions?
My Question is Suppose application has to rendered views dynamically for different devices say for example
1.Frame to display images (eg 90 X 90 for mdpi 140 X 140 for hdpi)
2.ListView Height (eg... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13606499",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Abline not fitting to barplot I'm trying to ad an abline plot to a barplot grafic but the x-axis don't seem to fit.
So this is my code:
#Emotion im FB darstellen
y <- FB$Ärger[FB$Episode ==1] #Subset erstellen
data <- factor(y, levels = c(1:7)) #faktorisieren
table(data)
#barplot erstellen
barplot(table(data),
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62061859",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.