text stringlengths 175 47.7k | meta dict |
|---|---|
Q:
How to test if a integer range has overlap with an integer list?
For example:
we have a list:
1 2 3 7 8 9 11 12
We need to check if a range (A,B) overlaps with the list, e.g range (4, 6) does NOT overlap with the list , range ( 10, 12) and range(5,9) do overlap with the list.
I know we can put the list in a hashS... | {
"pile_set_name": "StackExchange"
} |
Q:
SSRS Pivot Creating Extra Rows
I have a report and need to pivot on SLOC (storage location). It all works great except it creates extra rows due to the storage bins being different even though I'm not grouping on them. The first image shows what I have. The second image shows what I want. How do I 'push up' the ro... | {
"pile_set_name": "StackExchange"
} |
Q:
Automatically flag posts containing a link to the same site as user's profile?
For reducing "self-promotion" spam, it could be helpful to automatically flag posts (especially a new user's first post) which give a link matching the site listed in the user's profile? Most often these are blogs, and the address conta... | {
"pile_set_name": "StackExchange"
} |
Q:
What's the difference between Master and PCM channels in Alsa?
What is the difference between Master and PCM channels in Alsa, and which one should I manipulate for controlling the output volume?
I have three sound cards (Intel PantherPoint, HRT HeadStreamer and Fiio E10 DACs). The Intel is integrated and comes wi... | {
"pile_set_name": "StackExchange"
} |
Q:
Ping the API Server for the changes in PHP
I am importing the products from a third party website, I'm using their web services to import the products. Now what is the best way to check for the API changes and products updates automatically and if changed or new products exists then load them.
Can i use ajax to pi... | {
"pile_set_name": "StackExchange"
} |
Q:
Space between vertical divs and alignment
I have some problems with div spacing.
Here is the html:
<div class="row">
<div class="col-lg-4">
<div class="checkbox checkbox-circle checkbox-business">
<input id="checkbox-business-id" class="styled" type="ch... | {
"pile_set_name": "StackExchange"
} |
Q:
What exception should I throw during data validation
I have a commercial program with an abstract employee class. This class has an abstract property called BaseSalary to be implemented in its derived classes according the employee type (cashier, supervisor, manager and so on).
I want to validate data in the Base... | {
"pile_set_name": "StackExchange"
} |
Q:
Explanation on one-dimensional random walk in Feller's book
Consider the random walk on the integer number line, $\mathbb{Z}$, which starts at 0 and at each step moves $+1$ or $−1$ with equal probability. The probability for the event that "the first return to the origin occurs at epoch $2v$" is denoted by $f_{2v}... | {
"pile_set_name": "StackExchange"
} |
Q:
How to set different value for an item to an android spinner?
I have to set different value in an item to an Android spinner; when I click on an item of the spinner, that is represented as a string that show the name, I also have to take an other value for that item. I'm working on a project where I make a JsonObj... | {
"pile_set_name": "StackExchange"
} |
Q:
Do we need to reboot after adding an user to sudoers?
Do we need to reboot after adding an user to
/etc/sudoers
A:
No. It'll work with the next sudo command.
But if it does not work, you can avoid rebooting by running
sudo service sudo restart
A:
I just did this and yes, I did in fact have to reboot. So, mayb... | {
"pile_set_name": "StackExchange"
} |
Q:
WPF Canvas Create object
I am using WPF and C# and I have a canvas with rectangles on it (like a maze). Now i want to create a character who moves (with the help of an algorithm) through this maze. Therefore I created a new class called character, but my problem starts here: How do I create an object on the canvas... | {
"pile_set_name": "StackExchange"
} |
Q:
Hierarchical Attention Network - model.fit generates error 'ValueError: Input dimension mis-match'
For background, I am referring to the Hierarchical Attention Network used for sentiment classification.
For code: my full code is posted below, but it is just simple revision of the original code posted by the autho... | {
"pile_set_name": "StackExchange"
} |
Q:
send form via AJAX in jQuery then save in MySQL but doesn't work
as title, I am a beginner about website design.
Please never mind if I ask a stupid question.
while i send the form, it didnt work.
here is html:
<form id="form1" name="form1" action="toSQL.php" method="POST" accept-charset="utf-8">
<input type="... | {
"pile_set_name": "StackExchange"
} |
Q:
How to map Ctrl+A and Ctrl+Shift+A differently?
In a terminal, one cannot distinguish Ctrl+A and Ctrl+Shift+A as they both emit the same key code, so I can see why Vim can't do it. But gVim, being an X application, can differentiate Ctrl+A and Ctrl+Shift+A. Is there any way to map those two things differently?
For... | {
"pile_set_name": "StackExchange"
} |
Q:
Warning ASP.NET runtime error: Could not load file or assembly 'EntityFramework, Version=6.0.0.0
I'm developing using ASP.NET in Microsoft Visual Studio Express 2012 for Web. Everything works great but suddenly when changing some code in one of my controllers Visual Studio crashed and now I got this weird runtime ... | {
"pile_set_name": "StackExchange"
} |
Q:
confusion about javascript exercise
I just got Javascript: The Good Parts by Douglas Crockford and I'm having some difficulty understanding one of his examples regarding prototypes. The code in the book reads as follows:
if (typeof Object.create !== "function") {
Object.create = function(o) {
var F = f... | {
"pile_set_name": "StackExchange"
} |
Q:
Different styles within the same Word Table cell using VBA
I have a XLS to Word document automation project where 2 strings String1 and String2 needs to be assigned to a Word table cell. The challenge is to have String1 in red italics font style and String2 in black normal font style. How do i achieve this ?
My p... | {
"pile_set_name": "StackExchange"
} |
Q:
Moment.js not returning correct standard time
As I am almost completing the project from FCC (https://www.freecodecamp.com/challenges/timestamp-microservice)
I am not able to figure out why when the input is in standard time, it won't output its Unix timestamp correctly.
For instance, when I type:
http://localho... | {
"pile_set_name": "StackExchange"
} |
Q:
Cant get value from json in javascript
I have a function in JavaScript:
function login() {
user=document.getElementById("user_id").value;
pass=document.getElementById("password").value;
params="user="+user+"&pass="+pass;
url="check_login.php";
if(window.XMLHttpRequest) {
var http=new X... | {
"pile_set_name": "StackExchange"
} |
Q:
brackets and js expressions executiing
Can anyone explain me this expressions and how it works:
(1, 2, 3) //returns 3
next:
var foo = 0, bar = 'baz';
(foo++,foo++, bar) // foo = 2, returns 'baz'
and:
var f = (function f(){ return "1"; }, function g(){ return 2; })();
typeof f; // returns number
As i undesta... | {
"pile_set_name": "StackExchange"
} |
Q:
php reading a file and reading data from mysql which one is faster
It's a real php interview question. I know the answer is not just which one is faster. We can answer it in many aspects. Can anyone give me some suggestions please?
A:
files:
reading file: fast
predicting format/codepage: slow, painstaking, erro... | {
"pile_set_name": "StackExchange"
} |
Q:
unsupported sourceStream NAUDIO
An unhandled exception of type 'System.ArgumentException' occurred in
NAudio.dll
Additional information: Unsupported sourceStream format
This is my current issue! I followed a tutorial on basic playing and pausing of a .wav file in Naudio, random .wav songs I found online throw t... | {
"pile_set_name": "StackExchange"
} |
Q:
$_POST does not work does not give data passed from ajax
HI i want simple pass object using ajax to other php page but when trying retrieve its does not fine. Give me Undefined error. check my code to get clarification.
See my error screen shot :
Edit.php
$('#regForm').on('submit', function (e)
{
var serial... | {
"pile_set_name": "StackExchange"
} |
Q:
iPhone Pushing View Controller in a left direction
I have an app that has a centre view with two views off to each side of it. I want to have two navigation bar buttons, left and right which push a new navigation controller onto the view from the left or the right.
When you change views by pushing a new view using... | {
"pile_set_name": "StackExchange"
} |
Q:
On the origin of "casa"
I usually find that the etymologies of the simplest words are often the most interesting ones. In Spanish the word casa 'house' derives from Latin căsa, ae which had the following meaning:
any simple or poorly-built house, a cottage, hut, cabin, shed, etc.
Nonetheless, the word casa is tr... | {
"pile_set_name": "StackExchange"
} |
Q:
D3.js does not render SVG in ASP MVC app
I've got a d3.js script which renders just fine in a .html document outside my app but when I embed it in a .cshtml file inside an mvc app the svg is blank. Can someone help me understand why this isn't rendering? Javascript console in both Chrome and IE show no errors. T... | {
"pile_set_name": "StackExchange"
} |
Q:
Firebase storage: Image file types not showing after upload. How do I use the image?
When I use an npm package like google-cloud or multer-gcs to upload a file to firebase storage bucket (that uses google cloud storage under the hood..) the file gets uploaded. However, the file does not show and image type(MIME). ... | {
"pile_set_name": "StackExchange"
} |
Q:
ReactJS - I can't pass prop trought Route for a child component
I have this Component that passes a prop for a Child Component:
import React, { Component } from 'react'
import { BrowserRouter as Router, Route, NavLink } from 'react-router-dom'
import PortfolioPage from './PortfolioPage'
class PortfolioMenu ... | {
"pile_set_name": "StackExchange"
} |
Q:
The overloaded member function is not found, the class is in header
I got the error messages for functions in user.cpp file: overloaded member function not found and in main.cpp I got : declaration is incompatible with function.
The program is a phonebook that writes data and takes from file. The functions are wo... | {
"pile_set_name": "StackExchange"
} |
Q:
command line alternative to dpkg-reconfigure slapd
Is there a way to reconfigure slapd, providing all configuration options as command-line parameters/arguments?
My goal is to be find an alternative to the interactive UI.
Thank you
A:
Use dpkg-reconfigure -f noninteractive slapd
| {
"pile_set_name": "StackExchange"
} |
Q:
How to echo all video ids using php youtube data api php
Hello friends I want to echo ( print ) only YouTube video ids on screen using php.
here it is my code so far. can any one please tell me how to just show videos id nothing else thanks.
<?php
$data = file_get_contents("https://www.googleapis.com/youtube/v3/... | {
"pile_set_name": "StackExchange"
} |
Q:
Is it possible to change the replication factor of an existing kafka topic using java?
I am using AdminClient to alter other configurations of existing kafka topic. But I cannot find a method to change the replication factor of the topic. Is there any way that I can change the replication factor using java?
A:
T... | {
"pile_set_name": "StackExchange"
} |
Q:
Different chapters, different layout
On request, I have two different layouts for chapters for a book. The first one is exclusive to the Chapter 1 and the other one is for the others. The layout affect how the sections, definitions and paragraphs are displayed. I have the code to handle this in a little class file... | {
"pile_set_name": "StackExchange"
} |
Q:
jquery show hide division
$(document).ready(function () {
$(".btn-slide").focus(function () {
$("#moresearch").show("fast");
$(".btn-slide").blur(function () {
$("#moresearch").hide("fast");
});
});
});
In this sample .btn-slide is my textbox. When it is focused the mor... | {
"pile_set_name": "StackExchange"
} |
Q:
Non-medical or slang synonyms for female reproductive organs
I am basically writing an intercourse scene between two characters in a medieval-like setting, so the tone of the book is slightly medieval as well. Now, while I have found plenty of synonyms for the male body parts, I'm having difficulties with the fema... | {
"pile_set_name": "StackExchange"
} |
Q:
What does it mean sha256 in Docker, where are directories of layers of image?
I am newbie at Docker. I have to theoretically question about Docker. We know that defaultly Docker uses AUFS, layers filesystem. Where can I find in /var/libs/docker folders for each layer ? I would like to see it.
And second thing... | {
"pile_set_name": "StackExchange"
} |
Q:
Passing an array to execvp() from the user's input
I'm trying to pass arguments entered by the user to execvp().
So far I've split up the string. If the user types ls -a, temp is saved as "ls" and "-a" followed by a NULL character. I'm not quite sure how to point to this properly in execvp. In examples I've seen i... | {
"pile_set_name": "StackExchange"
} |
Q:
What is the purpose of returnsObjectsAsFaults
I do not really understand the usage of "returnsObjectsAsFaults".
The documentation says:
A Boolean value that indicates whether the objects resulting from a fetch using the receiver are faults.
YES if the objects resulting from a fetch using the receiver are faults, ... | {
"pile_set_name": "StackExchange"
} |
Q:
Load tiles using mapbox.js
I created a map with tilemill and then exctracted the tiles with MBUtil.
I'm able to show the tiles properly using Leaflet but i don't succeed using mapbox.js. I'm attaching the code , what I'm doing wrong??
Any help will be appreciated!
<!DOCTYPE html>
<html>
<head>
<title>Leaflet... | {
"pile_set_name": "StackExchange"
} |
Q:
Design pattern to display missing data in line/bar chart of a daily data feed
I am displaying a daily data feed in my app, i.e. one value per day.
The data is displayed in either a bar or line chart.
In the event that a data point is missing on a given day, I want to indicate somehow that the value is missing on t... | {
"pile_set_name": "StackExchange"
} |
Q:
CSS, Images, JS not loading asp.net Core :(
This my first .net Core application. And Having issue .Well the issue is that I was adding new template to exist application and Google Console showing error that can not able to find CSS and JS
**
Appsetting.Json
**
{
"ConnectionStrings": {
"DefaultConnection":... | {
"pile_set_name": "StackExchange"
} |
Q:
Regex for Hebrew, English, Symbols
as part of a small program i'm writing i need to filter a String input that might be "gibrish" (any sign in UTF8)
the input can be hebrew and/or english but also have all the normal signs like : ?%$!@'_' and so on...
a friend suggested to use regex, but due to my inexperience wit... | {
"pile_set_name": "StackExchange"
} |
Q:
Get the dates for GetWeekOfYear in c#?
I have this function which gives me ( for a current date ) - its week num :
so for : DateTime(2009,1,1)
CultureInfo.CurrentCulture.Calendar.GetWeekOfYear(new DateTime(2009,1,1), CalendarWeekRule.FirstDay, DayOfWeek.Sunday).Dump();
answer : 1
and for : DateTime(2009,1,4)
... | {
"pile_set_name": "StackExchange"
} |
Q:
LTRIM / RTRIM - But only where First/Last character is a space?
Not sure where else I can ask this...but I'm going through some code in our system and came across this in one of our data cleansing procs...
UPDATE #X SET
Email = CASE
WHEN LEFT(Email, 1) = ' ' OR RIGHT(Email, 1) = ' '
... | {
"pile_set_name": "StackExchange"
} |
Q:
Have NSSpeechRecognizer recognize any command
Is there any way I can have NSSpeechRecognizer recognize any command I throw at it. I know I could just have a massive array, but that's too much work and it'll take up a lot of memory.
A:
Simply put: No.
NSSpeechRecognizer isn't designed to work this way. It's d... | {
"pile_set_name": "StackExchange"
} |
Q:
Game build in unity3d project transfer from a previous developer
Can someone help or give me some idea what are the necessary deliverables from a previous developer that I need to ask regarding the game project transfer?
The situation is, there is a company that is developing our game in unity3d and it is already ... | {
"pile_set_name": "StackExchange"
} |
Q:
When to use the 'new' keyword to instantiate objects
Im learning how to program android apps at the moment. Im currently messing around with it.
Right now I'm creating a custom Toast where I create a layout in XML and convert that XML into java (using the LayoutInflater class) so that the layout appears in the To... | {
"pile_set_name": "StackExchange"
} |
Q:
JavaScript: DOM manipulation and after that a search over all elements
I'm going to load several new elements (via AJAX) into the DOM. After that I want to "refresh" the document variable to select existing and new elements.
I tried to simplify my question with this small example:
// Creating a new element and ins... | {
"pile_set_name": "StackExchange"
} |
Q:
Explain the use of tokens in transmitting data over GET
(Full context = latest response/discussion to this question: Button_to in email not posting)
I'd like a user to click a link in an email and be able to POST data in my database. My current understanding is:
Best practice (per latest answer to question above,... | {
"pile_set_name": "StackExchange"
} |
Q:
Is test etherchannel load-balance disruptive?
Is this command disruptive or just a logical exercise of existing configuration?
test etherchannel load-balance int po3 <some mac here>
Platform is 6500 series, running IOS. Thank you!
A:
Not so far as I am aware. All it does is simulate sending data and seeing wh... | {
"pile_set_name": "StackExchange"
} |
Q:
taking values separately using local storage in html5
I am making an app in html5.It is like a quiz based app. I am randomly fetching questions from the XML and displaying it one by one.I am using page navigation for that. After completing and submitting your answer u will switch to other page.if once i submit my ... | {
"pile_set_name": "StackExchange"
} |
Q:
collision detection not working right
Okay, so my paddle collision is working fine:
if(velo.y > 0){
float t = ((position.y - radius) - paddle.position.y)/ velo.y;
float ballHitX = position.x + velo.x * t;
if(t <= 1.0){
if(ballHitX >= paddle.position.x && ballHi... | {
"pile_set_name": "StackExchange"
} |
Q:
Oracle - Filtrar por data
Tenho uma coluna dt_atualiza_log que está com o tipo DATE na tabela (é salvo no formato 01/12/2011 10:10:48)
Não estou conseguindo filtrar no and da minha query. Já tentei de várias formas, a última:
AND ma.dt_atualiza_log >= to_date('01/01/2018 00:00:00','DD/MM/YYYY hh24:mi')
Erro: ORA-... | {
"pile_set_name": "StackExchange"
} |
Q:
Not going inside .on("click") function
I cant figure out why my code is not going inside the on click function.What am I doing wrong ?
let allDivsOnTheRightPane = rightPane.contents().find(".x-panel-body-noheader > div");
//change height of all expanded divs due to the newly added cases tab -->
allDivsO... | {
"pile_set_name": "StackExchange"
} |
Q:
I can't change card in cardLayout using JTree listener
I have problem with changing card in CardLayout. I have a JPanel with CardLayout as layout, and other JPanel which contains JPanel with JTree (in other classs). I want to add TreeSelectionListener. If I click on the node, card should change to the node title.
... | {
"pile_set_name": "StackExchange"
} |
Q:
How can I control a content database size in sharepoint 2013
My case is I have one web application which has only one site collection, for example, http://examplesite . This site collection has a content database, for example, wss_content. Then I created a new content database called wss_content_2015. I used 'move... | {
"pile_set_name": "StackExchange"
} |
Q:
Enter EU Schengen Area on a Type D Visa
I have a Type D long stay visa issued by Germany. On the visa itself, the Valid For label states Deutschland. Can I enter the EU through Spain on this visa?
Edit: This is not a question about entering other Schengen states after I reach Germany. It is about the port of ent... | {
"pile_set_name": "StackExchange"
} |
Q:
Area under the curve (Integration)
For this question:
I have found the limits to be $(-k)^{\frac{1}{2}} , 0 , k^{\frac{1}{2}}$
but the trouble I'm having is how do I know what graph I should minus from each other. So for area a , do I do $f(x) - g(x)$ , or $g(x) - f(x)$.
Is there a trick$?$
A:
The area bound b... | {
"pile_set_name": "StackExchange"
} |
Q:
accessing variable in a method to another method in same class
Hi i have used to a input dialog using a material design library to get a value.
inside the save button i have put my input dialog
saveButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View vie... | {
"pile_set_name": "StackExchange"
} |
Q:
Why do people still talk about bohmian mechanics/hidden variables
I was reading the Feynman lectures in physics and after thinking about it for a while it seems particularly unreasonable to talk about hidden variables. Let us say that the electron has some internal variables as yet unknown which determine its traj... | {
"pile_set_name": "StackExchange"
} |
Q:
Why is "pull my finger" a joke?
I've heard of this joke in the TV show "Friends" several times, and I don't understand why it's funny.
Could someone give me a hint?
It's hard to get Chandler's joke for non-English speakers.
A:
It's a childish joke.
Kid1 asks kid2 to pull their finger. When they do kid1 farts - a... | {
"pile_set_name": "StackExchange"
} |
Q:
Customize gerrit home page:logo and color
I have installed and configured gerrit, I see it has white color background instead of green like https://codereview.qt-project.org (probably changed from green to white in recent versions) but, want to know if we can customize color and add a logo.
From gerrit-documentati... | {
"pile_set_name": "StackExchange"
} |
Q:
Dll vs static lib (MSVC9 RunTime Library option)
For a MSVC9 Win32 project following options are shown under Configuration Properties -> C/C++ -> Code Geberation -> Runtime Library:
/MT, /MTd, /MD, /MDd
is it correct that for a DLL /MTd should be used and for static lib /MDd?
Thanks.
A:
There are two issues that... | {
"pile_set_name": "StackExchange"
} |
Q:
Apache FilesMatch
With Apache, I can target files by extension like this:
<FilesMatch "\.(gif|jpg|png|js|css)$">
Can you also target specific files by their entire filename. For example "bg.jpg":
<FilesMatch "bg.jpg">
Would that work?
Thanks,
Ben
A:
Yes, that will work but you need to escape the dot (\.) if yo... | {
"pile_set_name": "StackExchange"
} |
Q:
gunicorn, nginx, and using port 80 for running a django web application
I have django, nginx, and gunicorn installed on a web server.
Nginx listens on port 80
Gunicorn runs django project on port 8000
This works fine. If I go to www.mysite.com:8000/myapp/ the django application comes up OK. But what if I want user... | {
"pile_set_name": "StackExchange"
} |
Q:
How can I manually change the orientation
My app should start with landscape mode.
I would like to change the orientation of the phone.
How to do this manually.I tried this it doesn't work.
shouldAutorotateToInterfaceOrientation:
Is there any other way??
A:
In the project settings, you can set the orientat... | {
"pile_set_name": "StackExchange"
} |
Q:
Evaluate integral with integer part
I have to evaluate $$\int _0^2\:\frac{x-\left[x\right]}{2x-\left[x\right]+1}dx$$
Where $[x] = floor(x)$
I tend to write it like this, but I think i'm missing the point $x = 2$
$$\int _0^2\:\frac{x-\left[x\right]}{2x-\left[x\right]+1}dx=\int _0^1\:\frac{x}{2x+1}dx+\int _1^2\:\fra... | {
"pile_set_name": "StackExchange"
} |
Q:
Add objects to package namespace
I'd like to push a function inside a package namespace so it can access internal objects of that package (let's use stats package as an example). I've tried using
myfun <- function(x) print(x)
env = loadNamespace("stats")
assign("myfun", myfun , env)
But it is locked. So I've trie... | {
"pile_set_name": "StackExchange"
} |
Q:
Sourcing bash file inside PyQt4 GUI
I'm working on a GUI built with PyQt4 and Python 2.7 that launches various demos for a Clearpath Husky running ROS Indigo. The GUI switches between launching navigation demos and visualizing my physical robot. To do this, it has to switch between launching demos on a local ROS a... | {
"pile_set_name": "StackExchange"
} |
Q:
Writing 2.5 Mega Byte character buffer using Python logger
In a multithreaded application, I have a situation where I need to write a set of log messages (with upper limit of 50K log messages) together, as a block, rather than writing each one by one.
I do not want to use the thread locking here (to make my block... | {
"pile_set_name": "StackExchange"
} |
Q:
Kafka, commitSync on success
I am trying to figure out if I need to turn on manual commit using KafkaConsumer.commitSync(Map offsets)
When I consume records I need to ensure they get processed by my service, I can't afford to loose them, but if my service throws a bunch of errors or blows up I don't want to move t... | {
"pile_set_name": "StackExchange"
} |
Q:
angular app, run gradle task with npm run build
I have an angular 1 app. Every time I run
npm run build
I also want to start a gradle task. Can I automatize that somehow?
A:
Of course you can, the command npm run build run the script defined in you package.json file.
It looks like this :
"scripts": {
"buil... | {
"pile_set_name": "StackExchange"
} |
Q:
Find negative cycle with vertex constraints
Given a graph with weighted edges, how can we find a negative cycle that contains at least one vertex in a given vertex set $\{V_1, V_2, \ldots, V_k\}$? Thanks.
A:
If you don't require the cycle to be simple, then break the (directed) graph into its strongly connected ... | {
"pile_set_name": "StackExchange"
} |
Q:
QAbstractItemModel header on child tables
I created my own QAbstractItemModel with a tree-like structure and several sub tables like this:
group1
- order1
- item1
- item2
- order2
- item3
group2
- order3
- item4
- item5
- item6
I my goal is it to have a tree and a table view. W... | {
"pile_set_name": "StackExchange"
} |
Q:
How to drop in-memory h2db between Spring Integration tests?
I am using Liquibase in my Spring web application. I have a bunch of entities with hundreds of tests for REST APIs in the integration tests for each entity like User, Account, Invoice, License etc. All of my integration tests pass when run by class but a... | {
"pile_set_name": "StackExchange"
} |
Q:
How is it possible that if I have $2$ choices and $1$ of them is taken away, I have $0$ choices?
I'm a simple man living his life and enjoying mathematics. Today while thinking about choices I realized this paradox:
If I have $2$ choices and $1$ of them is taken away, I have $0$ choices.
How is that possible? Simp... | {
"pile_set_name": "StackExchange"
} |
Q:
How can I find the difference between two time fields and add the result in the same document, inside a collection at MongoDB?
I am using the below function to add one row to the table. If user click Add-row button the below function will get called and one row will be added. In that row user have to enter start a... | {
"pile_set_name": "StackExchange"
} |
Q:
How to group 2 radio buttons in a widget?
the related code is →
<p> <input type="radio" <?php checked( $instance[ 'check_for_counter' ], 'on' ); ?> id="<?php echo $this->get_field_id( 'check_for_counter' ); ?>" name="<?php echo $this->get_field_name( 'check_for_counter' ); ?>" />
<label for="<?php echo $this->... | {
"pile_set_name": "StackExchange"
} |
Q:
Android: How can I get DISPLAY_NAME & COMPANY name of all contact the same time by using cursorloader?
I want to get DISPLAY_NAME & COMAPNY name of all contacts the same time by using cursorloader. And I have already get DISPLAY NAME of them.
My problem is that I do not know how to get COMPANY name the same time w... | {
"pile_set_name": "StackExchange"
} |
Q:
Anaconda-Jupyter Doesn't open in browser
I installed Anaconda 3.7 on Ubuntu 18.04 (Bionic Beaver). Installation was successful. When I tried to start Jupyter Notebook from navigator it throws the following error.
Access to the file was denied The file at
file:///run/user/1000/jupyter/nbserver-26395-open.html is... | {
"pile_set_name": "StackExchange"
} |
Q:
How to query the associations of an association
I want to do the following to get a list of all the reviews for a business:
@business.professionals.reviews
I am not concerned about which professional the reviews belong to, but I want the reviews returned in the same format as professionals would be returned in @b... | {
"pile_set_name": "StackExchange"
} |
Q:
How to merge outputs of multiple function in a dictionary format using python?
I need to return the output from multiple functions inside a class in a dictionary format
I have tried using Python.
dict={}
class Compute():
def vm(self):
for obj in data['profile']:
for region_name in obj['reg... | {
"pile_set_name": "StackExchange"
} |
Q:
How to find the exact edges/binary threshold of a metallic part like drill bit?
I am new to OpenCV and python, so kindly help me like a 12 grader. My problem is that I want to detect the right threshold or edge of the drill bit for measurement but what I have done gives a lot of noise in the image due to which I c... | {
"pile_set_name": "StackExchange"
} |
Q:
String Concatenation Best Practices
Trying to determine if it's a better practice to use string.Format in place of concatenating strings and if so, why is this? Also, are their advantages/disadvantages to one or the other that I should be aware of?
This:
string foo = "I" + " am " + " a " + " string.";
or:
string ... | {
"pile_set_name": "StackExchange"
} |
Q:
The use of particle "de"
そんな素敵なライブにナレーションで参加させて頂けて本当に嬉しいです
What does that sentence mean? I'm confused with the use of particle "de" there. As far as I know, "de" is used to indicate location or time of action. And ナレーション is neither location nor time.
A:
This で is used for indicating "way","means","role". ナレーション... | {
"pile_set_name": "StackExchange"
} |
Q:
Difference between curve and a function of two variables.
Please help as I could not find out what I am missing. I can understand to an extent https://en.wikipedia.org/wiki/Curve what it means to be a curve. But I cannot find what I loose if I try to define curve as function of two variable. For simplicity conside... | {
"pile_set_name": "StackExchange"
} |
Q:
Spark API: Use column value in LIKE statement
In spark API:
column.like("only takes a static string with optional wildcards like %")
column.contains(accepts_a_column_but_wont_parse_wildcards)
So what's the equivalent method to call to compare values using wildcards that might show up in a string value from a colu... | {
"pile_set_name": "StackExchange"
} |
Q:
Building a data frame with sentences of different lengths
I want to build a Data Frame with for example 9 columns and I am using a log file as my input. For the first 8 columns I know that the file is neatly separated by spaces. But column 9 is a message that is made of words and variables and is also separated by... | {
"pile_set_name": "StackExchange"
} |
Q:
mpandroidchart pie chart(highlights slides disappear)
I'm new at using MPAndroidChart and I'm stuck with this problem. When I draw a PieChart with my values and highlight one of the slices, the color of the other slices disappear. This is the pie chart before selecting a slice(I cannot post pictures because I just... | {
"pile_set_name": "StackExchange"
} |
Q:
Unable to generate gpg keys in linux
I'm not able to generate GPG keys in linux
sudo gpg --gen-key # This is the command to try to generate key
error
You need a Passphrase to protect your secret key.
gpg: problem with the agent: Timeout
gpg: Key generation canceled.
Please let me know where I'm do... | {
"pile_set_name": "StackExchange"
} |
Q:
How to map POJO in to DTO, if fields are with different name
Problem description:
I have a POJO object, which is mapped from database. Which having attributes(column) with same name as in database table. But it required some changes and I will have to use DTOs. But problem is that DTO having attributes with differ... | {
"pile_set_name": "StackExchange"
} |
Q:
Null Space and Range of Particular kind of Operator on Hilbert Space
Let $H$ be the real separable Hilbert space with orthonormal basis $\{e_n\}$ and consider the operator $T:H \times H \to H \times H$ given by
$$T(\sum a_ne_n, \sum b_ne_n) = \sum A_n(a_ne_n, b_ne_n)$$
where $A_n$ is a $2 \times 2$ matrix with rea... | {
"pile_set_name": "StackExchange"
} |
Q:
fatal: failed to read object X Input/output error fatal: index-pack failed - Git pull with Dropbox
I moved my git repo into a Dropbox shared account. And since then, each time I do a git pull I get the following error:
fatal: failed to read object e1ad9cbb1cb523a82191acd817fdc68d0388a45e: Input/output error
fatal:... | {
"pile_set_name": "StackExchange"
} |
Q:
Differentiating this sum
This derivative comes up in the proof about the remainder of the Taylor expansion.
This derivative is given and I can't follow the steps:
$$ \frac{d}{dy} R_{n+1}(y,x)=\frac{d}{dy}(f(x)-t_n(y,x))$$
$$ = - \sum\limits_{k=0}^n \frac{f^{k+1}(y)}{k!}(x-y)^k
+ \sum\limits_{k=1}^n \frac{f^{(k... | {
"pile_set_name": "StackExchange"
} |
Q:
scala Spark structured streaming Receiving duplicate message
I am using Kafka and Spark 2.4.5 Structured Streaming.I am doing the average operation.but i am facing issues due to getting duplicate records from the Kafka topic in a current batch.
For example ,Kafka topic message received on 1st batch batch on updat... | {
"pile_set_name": "StackExchange"
} |
Q:
Android - How can I tell that an apk has been signed with my key
We have a third party app that has been created for us, but that we will maintain going forward.
They have built the apk and signed it with their own key, but in order for us to upload it and to use our key I have had to resign it.
For this I used ht... | {
"pile_set_name": "StackExchange"
} |
Q:
How to loop chained calls elegantly in JavaScript/CoffeeScript?
I'm using Soda to write Selenium tests in Node.js and I have a situation where I have to press the down key several times.
The code currently looks like this:
browser ... | {
"pile_set_name": "StackExchange"
} |
Q:
Zabbix "Application" monitoring - How do I detect a "hung" frozen application
I have Zabbix Server on Ubuntu working... I have an Agent install on my Windows server. Template_Windows works wonders and gives me all sorts of stats that I'm happy to play with...
The problem is that I'm trying to monitor an applicatio... | {
"pile_set_name": "StackExchange"
} |
Q:
How to link two components with html/components inbetween with React.js
As a general question, how would I separate two connected components? For example, if I had a layout:
section 1
some list (component 1)
assorted html elements
other components
etc...
section 2
output from list clicking (componen... | {
"pile_set_name": "StackExchange"
} |
Q:
Android, opening system library from native code
Good afternoon,
I would really appreciate if anybody can, please, give a clue about what can be happening in the following scenario involving dlopen.
I'm trying to load Android's system's library libmedia.so by calling dlopen("/system/lib/libmedia.so", RTLD_LAZY); f... | {
"pile_set_name": "StackExchange"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.