text
stringlengths
70
452k
dataset
stringclasses
2 values
Dijkstra vs iteration. How to model the graph and determine the time complexity in both cases? I am wondering about an issue that I found here: Finding cheapest combination of items with conditions on the selection I wanted to continue discussing this because I find this very interesting and the solution really cool, ...
common-pile/stackexchange_filtered
Is is possible to build a recommender system with this dataset? I have an extremely sparse user items ratings matrix with 0.018 % non NA values. Correct me if I am wrong but I think we need a lot of products compared to number of users to build a recommender system. I have around 20,000 users and 50,000 products. Is is...
common-pile/stackexchange_filtered
SOAP sessions with javax.xml.soap? I'm working with a SOAP application in Java. A new API was added to the server that wants login credentials and returns a guid which is used in queries to the server. Unfortunately, the sample code was in Perl and I'm having trouble translating it to java: my $client = SOAP::Lite->s...
common-pile/stackexchange_filtered
$\sigma$-Weakly Continuous Bounded Linear Functional on a von Neumann Algebra is Normal I have been working on Exercise 4 in Chapter 4 of Murphy's "$C^*$-Algebras and Operator Theory", which is as follows: Let $A$ be a von Neumann algebra on $H$, and suppose that $\tau$ is a bounded linear functional on $A$. We say $\t...
common-pile/stackexchange_filtered
How to track/monitor the GCP Security Center Exports to BigQuery? I enabled GCP Security Command Center (SCC) and created an export for the findings in the GCP SCC to be pushed into BigQuery dataset. Everything works as I want, however one main problem is that I can not track the status of exports. Google offers a solu...
common-pile/stackexchange_filtered
Windows 7 on an old motherboard (Gigabyte ga-8i915pl-g). Which SO to install? So I have an old motherboard (Gigabyte ga-8i915pl-g) and wanted to know if I can install Windows 7 on it. I need it for mining purposes, and since NiceHash requires W7 at least in order to run. Mobo page has drivers up to Windows Vista. So, d...
common-pile/stackexchange_filtered
Razor display the smallest result obtained in a foreach it's probably very basic but I can't get my hands on it. In a cshtml view, I would like to return only the smallest number in a foreach. Example, foreach (PriceDto article in Article.ArticlePrice) { article.Price } which returns all my awards: 450 100 500 990 60...
common-pile/stackexchange_filtered
List of clients who have registered for a topic in FCM Is there a way to obtain the list of clients who have registered for a particular topic in Firebase Cloud Messaging (FCM)? I am planning to subscribe each client devices' location info as a topic. Later, when I want to get all devices in an area, I can just get a l...
common-pile/stackexchange_filtered
Duplicate rows based on value with condition I need to replicate some rows in a panda data frame like this name times A 2 B 1 C 3 D 20 ... What I need is to replicate rows just when col2 value is less than 20 What I'm doing now is: for t in df["times"]: if t < 20: df =...
common-pile/stackexchange_filtered
How to display values from database in real time without refreshing the webpage I'm working on an Angular2 project (Resource Management) which requires data from the database (mongoDB) in real time. The basic function of the application is to drag a resource from bench and drop it to a project. After which a button is...
common-pile/stackexchange_filtered
Tail call optimization in Racket I was doing SICP exercise 2.28 and stumbled upon a strange behaviour of the following code: (define (fringe tree) (cond ((null? tree) '()) ((not (pair? tree)) (list tree)) (else (append (fringe (car tree)) (fringe (cdr tree)))))) (define (fringe-tail tree) (define (frin...
common-pile/stackexchange_filtered
'(a-b-c)' to '(a-b) and (b-c)' in data.frame I have a data.frame of this form: sequence support 1 a-b 0.6 2 b-c 0.6 3 a-c 0.6 4 a-b-c 1.0 5 a-d 0.6 and I can transform this to the following: 1 2 3 support 1 a b <NA> 0.6 2 b c <NA> 0.6 3 a c <NA> ...
common-pile/stackexchange_filtered
In cavity optomechanics, what does it mean that a cavity mode is driven by a classical field? What do we mean by the statement when we say that a cavity mode is driven by a classical field or classically controlled field, in Cavity Optomechanics? It means that one or multiple channel modes (an external mode in the Jay...
common-pile/stackexchange_filtered
How do I set profiler_cls when using SparkSession.builder? I have a python codebase that uses pyspark's SparkSession.builder to create a SparkSession. I'm at the point where I want to profile the python code that is running. If I was calling the SparkContext constructor directly, I'd be able to pass a profiler_cls para...
common-pile/stackexchange_filtered
Enemies AoO generate AoOs? AoOs for non-beginners, understanding Karmic Strike and Robilar's gambit I've got a robilar knockback dungeoncrasher build and I want to fully understand how does it work. So, let me get this stright: Jack the barbarian has a sword on his hand and both feats in the title in addition to combat...
common-pile/stackexchange_filtered
Redis pub/sub Implementation I am retrieving JSON data from 3 source urls For example data1 = HTTParty.get('url1') data2 = HTTParty.get('url2') data3 = HTTParty.get('url3') I am hitting all the 3 urls once a 2 minute and the datas obtained in variables data1, data2 and data3 may vary or may not vary for every 2 min...
common-pile/stackexchange_filtered
Different Style for Select in Chrome and Firefox I created an html code with select, div and td. select tags are inside div and div is inside td tag. When I click on the drop box, I see different select style. I found out that it was from direction:rtl in the css of select.if I set direction:ltr , this strange behavior...
common-pile/stackexchange_filtered
CakePHP - deleting data by associated key I have a few tables that are joined through a distant relationship - for example: A.id = B.a_id, B.id = C.b_id, C.id = D.c_id And given A.id, I want to delete all the rows in D that are associated with A.id. Since Model::deleteAll() does not accept any joins, only conditions, ...
common-pile/stackexchange_filtered
"incomplete type is not allowed" Writing a klonkide program for my final year project. But now there was an error that had me stunned. This is the draft for my klondike program; // ConsoleApplication18.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> #include <cstdl...
common-pile/stackexchange_filtered
ember if or statement When using a conditional in ember, is it possible to have an OR? {{#if foo OR bar}} or {{#if foo || bar}} There doesn't seem to be anything on it in the docs. Ok, looks like here is the answer, if anyone is looking http://stackoverflow.com/questions/16589624/evaluate-two-conditions-in-handleba...
common-pile/stackexchange_filtered
Make long log data diplayed with PHP easy to read I have a long log file I am displaying with PHP. Its getting too long for me and I have to use CTRL+F to look at this thing in any way. What is a good way to display this data in a way easy to read? Best way would be using jquery. Its just a long list of data. Since ...
common-pile/stackexchange_filtered
Salary Negotiation Etiquette I'm a software developer working for a Small Company (SC). I have worked with them for four years, and they are my only professional development experience. A recruiter for Big Company (BC) invited me to a hiring event. I informed the recruiter that I am perfectly happy at SC, but was inter...
common-pile/stackexchange_filtered
Report Failed Error in Crystal Reports version 13.0? I have a project which has a crystal report which is been displayed on a winform. It runs perfectly on the project on Debug mood but once I create setup the crystal report area is totally not working and showing an error. I'm using Crystal report 13 for Visual Studio...
common-pile/stackexchange_filtered
Do apple seeds contain arsenic? I've heard recently that apple seeds contain arsenic. Is this true? Should apples not be eaten then? Looks like a simple google search yields my answer: http://www.snopes.com/food/warnings/apples.asp The seeds actually contain a cyanide compound, not arsenic. But, the amount is so tr...
common-pile/stackexchange_filtered
VGG19 vs Resnet18. When does VGG win? I have always been under the impression that resnet is more technologically advanced than vgg and so you will always get better performance on resnet. I trained and tested my model on a sample data and got 93.7% accuracy on vgg19 and 93.3% accuracy on resnet18 (balanced classes). G...
common-pile/stackexchange_filtered
Is there a closed form exists for finding nth bitwise xor sum in an array? Let A be an array of k numbers (0-based indexing) such that the $n^{th}$ bitwise xor sum of i is the $(n-1)^{th}$ bitwise xor sum of numbers starting from $i^{th}$ number till end of array. for example, if A = [1,2,3,4,5, ..., k elements] and i...
common-pile/stackexchange_filtered
Integration of flutter application into linphone codebase Actually, I want to integrate my Flutter app with the existing linphone (VoIP) project (it is open source) and while I am trying to do this I am getting multiple errors. If any of you know the process and steps then please help me. I am trying to merge two exis...
common-pile/stackexchange_filtered
difference in meaning - "Do you ever" vs "Do you" What is the difference in meaning between these two sentences? Do you ever go to the movies? Do you go to the movies? Broadly speaking, the difference is one of degree. "Do you go to the movies?" is asking if you habitually or regularly go to the movies. If you say "...
common-pile/stackexchange_filtered
Gompertz distribution when fitting a psm model I am fitting a psm model using Dr. Harrell's rms package to ultimately construct a nomogram. The package comes with a predefined list of distributions. However, the distribution that fits my data perfectly (Gompertz) is not in the list. I am wondering if anyone knows how t...
common-pile/stackexchange_filtered
filling out a pandas dataframe with a json-like field I'm trying to make a dataset with two columns 'type' and 'waveforms', 'Type' will contain a comment like 'real' or 'simulated' 'waveforms' will contain a object created from a JSON file. A single entry in the 'waveforms' column will look like the exemplar below. Als...
common-pile/stackexchange_filtered
How to filter results in Flutter package flappy_search_bar? From what I read in the package documentation , the "searchBarController" parameter should allow to filter the results, but I can't find any documentation. I also read through the package content but can't find how to use it. I found the answer to my question...
common-pile/stackexchange_filtered
How can i increase (update) a cell in a SQL Table? in a query I have a question, currently i have a table named "OrdersAndSerials". In one of their columns is named Delivery, then i need to take a value of this Column, and and add a value. Example. In the green box of this row, the valor of Delivery is 123, but i need ...
common-pile/stackexchange_filtered
Should we park our money in our escrow account? We want to figure out the best place to park our money in the next 1-5 years to save for a bigger place. Our escrow account that is linked to our mortgage is a checking account that has a 1% interest yield. I’m thinking this is the best option because we will have easy ac...
common-pile/stackexchange_filtered
Find the Fourier transform of $\sin x^2$. I've tried it by applying integratrion by parts, but I'm not getting the answer correct. Its answer is $$\frac{1}{\sqrt{2}}\,\sin\left(\frac{k^2}{4} +\frac{\pi}{4}\right).$$ Please help in this. $$I(\xi)=\int_{\mathbb{R}}\sin(x^2)\cos(\xi x)\,dx = \int_{\mathbb{R}}\sin(x^2)\,d...
common-pile/stackexchange_filtered
Is there a way to find multiple values in excel? what I want to do, is to look for multiple values using a date, and Id. For example, I want to get both codes from the same person, and the same date. For reference, please see picture I tried using vlookup, index (match(), match()), but so far I have not succeeded. Is ...
common-pile/stackexchange_filtered
What is a speed for compiling any program in Command prompt I create one program in java but that program just like loop program but once I run that program I face program is gone in infinity so I arise that question is what actual speed of the command prompt for running any program. I can run many java programs in the...
common-pile/stackexchange_filtered
Can I use PHP define() function to change multiple die(mysql_error()) outputs? I have a web application I wrote in PHP. I use a single Class to handle almost everything this app does. I predefine a few things before the class such as database name. What I was hoping for is that I could set a define for mysql_error(). S...
common-pile/stackexchange_filtered
Changing the visibility of a textview in a listview I have a listview which is build up of two textviews coming from a separate layout file. I use a BaseAdapter to build the list from a JSON file. I would like the first textview (Caption) to be clickable, if clicked that it shows the second textview (Text), and if cli...
common-pile/stackexchange_filtered
how to import a variable in if __name__ == '__main__': of a python file to other python file? I wanted to get a variable present in the " if __name__ == '__main__': " of py1.py file to py2.py. I tried doing from py1 import x and import py1 but they are not working. Am I doing something wrong? here is an example ...
common-pile/stackexchange_filtered
Git and sharing /bin with select users Sort of new to Git, but I'm thinking of moving over from SVN. I know that Git does not allow you to block off a single directory from users, so it's all or nothing in terms of access, but a frequent scenario I have is that I want to use source control for a whole project, but sha...
common-pile/stackexchange_filtered
How can I add together two SSE registers I have two SSE registers (128 bits is one register) and I want to add them up. I know how I can add corresponding words in them, for example I can do it with _mm_add_epi16 if I use 16bit words in registers, but what I want is something like _mm_add_epi128 (which does not exist),...
common-pile/stackexchange_filtered
Fallback if popper.js fails to load How do I test that popper.js has loaded so that I can fallback from a CDN to a local copy? Popper is required by Bootstrap 4 and must be loaded first. I would like to use the same bootstrap fallback technique I use below so that if the popper.js CDN fails, the browser falls back t...
common-pile/stackexchange_filtered
Mortgage refinancing - Deciding on points and no-cost I'm refinancing a mortgage of ~$800k. This is our only/primary house and we do not haven any intent to move in the forceable future. There are multiple parameters/choices and they make my head hurt. One choice is how many points to buy. Another choice is whether to ...
common-pile/stackexchange_filtered
Android: ListView conditional scrolling I have a 2 pane layout. On the left is a ListView, on the rights some content linked with the list. The content is scrollable. If content moves forward, I want the list to go forward only if this item is not yet displayed. This prevents that the list has to update on every conten...
common-pile/stackexchange_filtered
reading xml with android I need to build an app on android which read data from a windows based software built in vb. How would I do this?. Is using XML is good option. If yes then How to read xml with android? You can use xml, json or a number of other formats. I found using XmlPullParser to be easy for parsing xml....
common-pile/stackexchange_filtered
Select Latest Entered record in MYSQL I have a requirement where I need to select average of records for a range of month of all dealers. But the condition here is, if one dealer does not have a record for particular month, then his latest record should be selected and added to the current month. Requirement is: Selec...
common-pile/stackexchange_filtered
Oracle Getting last N records I have 3 tables (employees, locations, access_history) and I'm trying to get the last N (this case 2) records for each employee_id. The last 2 records are based on the access_history.access.date column. My query below is producing the following error: ORA-00904: "A"."ACCESS_DATE": invalid ...
common-pile/stackexchange_filtered
Tomcat webapp resources 404 response I am converting an existing tomcat application to docker, however, while almost everything works, all requests for resources respond with a 404 error. I have copied the WAR file and renamed it to ROOT so no prefix should be necessary. I also have an alternative way to access resourc...
common-pile/stackexchange_filtered
electric field in hollow conductor when we have a hollow conductor and we charge it then the quantity of charges and electric on and in inner surface of conductor material is zero and this is okay .But is the electric field also zero inside the air cavity and why?(suppose that there is no charge in the air cavity and...
common-pile/stackexchange_filtered
Why am I getting a CORS error from just a simple Settimeout function in javascript? Everything is working fine in Chrome the problem is with FireFox and Microsoft Edge. With these two browsers I keep on getting CORS errors. I am making no API calls in this website. All this function that is causing this error is doing ...
common-pile/stackexchange_filtered
module not found error with poetry and multistage docker image I am trying to execute a multistage docker build to create a light image. I am using poetry for dependency management. My dockerfile is as below FROM python:3.12-slim as builder RUN pip install poetry RUN mkdir -p /app COPY . /app WORKDIR /app RUN python -...
common-pile/stackexchange_filtered
How can I $fwrite a negative integer number in a file? I have an ALU in Verilog, and I want to write the ALU's output into a file. I am using the following code: $fwrite(File,"La salida es: %d",uut.ALUOutput); My output vector has a size of 32 bits (signed). The operation is correct, but when ALUOutput is a negative ...
common-pile/stackexchange_filtered
415 error when uploading to API I am trying to write an automatic subtitle finder in Python 3.x using The SubDB (http://thesubdb.com/api/). I'm now working on an upload feature. However, I cannot get it to work. I keep getting a 415 error (Unsupported Media Type). On the SubDB website, a 'request sample' is given: POST...
common-pile/stackexchange_filtered
input type radio button checked else statement not working in jquery I want to add a class in the parent wrapper of radio button, I did so , it is working but else statement is not workin Here is my code <div class="radio"> <input type="radio" name="name[]" checked> </div> <div class="radio"> <input type="radi...
common-pile/stackexchange_filtered
Person 1: The three-coloring lower bound in the LOCAL model still bothers me. We can prove that any deterministic algorithm needs $\Omega(\log^* n)$ rounds, but the gap between that and the $O(\log n)$ upper bound feels enormous. Person 2: Right, but think about what's actually happening in those rounds. Each node can...
sci-datasets/scilogues
Change some entries of a matrix in maple I have a zero matrix in Maple and I need to replace some of its entries with some non zero elements. How do I do that? I also want to find the inverse of the new matrix after replacement. If you created the Matrix by using the Matrix command then, by default, all its entries ar...
common-pile/stackexchange_filtered
Auto generated code via scaffolding in Rails I am trying to follow along some scaffolding code in Ruby. The scaffolding was generated like this: rails generate scaffold Person name:string Now when I look at the generated code in some of the xxx.html.erb I see references to edit_person_path() as in the example below in...
common-pile/stackexchange_filtered
Django admin site not displaying ManyToManyField relationship I'm working on what I think is a pretty standard django site, but am having trouble getting my admin section to display the proper fields. Here's my models.py: class Tech(models.Model): name = models.CharField(max_length = 30) class Project(models.Model...
common-pile/stackexchange_filtered
Python variable assignment with : when building SQL query I've inherited some code and was curious as why it is being used and how it works. The code is as follows: strsql: str = sql.SWAP_SQL.format(*sql_clauses) No issue with the right hand side of the assignment, it's simply passing paramaters to a sql string. I'm ...
common-pile/stackexchange_filtered
How to parse JSON in Postman Test Script I am running a chain of collections from 1 API call to another. I want to pull the response body from API call 1 to API call 2 so that it can post the data to my application. I have created the environment variables and in the tests tab I have created a script to set the variab...
common-pile/stackexchange_filtered
String concatenation does not working foreach (string di_child in dirs) { Response.Write("\t<li class=\"directory collapsed\"><a href=\"#\" rel=\"" + drive + di_child.Name + "/\">" + di_child.Name + "</a>\n"); } VS complains that operators '+' cannot be applied to operands of type 'string' and method group. I just w...
common-pile/stackexchange_filtered
Find $r>0$ such that $\mathsf{E}\mathrm{e}^{r\xi} = 1$ Let $\xi:\Omega\to\mathbb{R}$ be a random variable such that $\mathsf{E}\xi < 0$. I would like to find $r>0$ such that $g(r):=\mathsf{E}\mathrm{e}^{r\xi} = 1$. Maybe you can help me to derive some necessary of sufficient conditions for such $r$ to exist? Say, if $\...
common-pile/stackexchange_filtered
NSRangeException randomly crash app in object at index NSDictionary *latestCollection=[json objectWithString:responseString error:&error]; NSDictionary *data=[latestCollection valueForKey:@"results"]; if([data count]>0 && data!=nil) { arrayAddress=[[NSMutableArray alloc]initWithArray:[data valueForKey:@"formatted_...
common-pile/stackexchange_filtered
Python: Find matching records in two lists of dictionaries (different key names) I've got two lists of dictionaries with different keys but overlapping values, something like this: list_a = [{key1: value_a, key2: value_b}, {key1: value_c, key2: value_d}, ...] list_b = [{key3: value_a, key4: value_z}, {key3: value_c, ke...
common-pile/stackexchange_filtered
Swift 3 Value of type 'Any' has no member 'valueForKey' I am writing a test program with Core Data using Swift 3.0 in Xcode 8. Problem is that when I try to receive any data from NSManagedObject like this: let request = NSFetchRequest<NSFetchRequestResult>(entityName: "Entity") request.returnsObjectsAsFaults = fals...
common-pile/stackexchange_filtered
Extract json response values I have a jQuery Ajax function that calls a WCF Service. The service call succeeds: function WCFJSON() { var now = new Date(); var getFromDate = dateToWcf(new Date(now - (60000 * 1440))); var userid = "1"; m_Type = "POST"; m_Url = "https://dev-04....
common-pile/stackexchange_filtered
How do I encrypt a DynamoDB column using DynamoDB Encryption Client for Java I'm trying to encrypt data being saved into a dynamo table. This is production PII data that shouldn't be visible even to someone with permissions to view the table data. Things like social security numbers. I'm trying to follow the example he...
common-pile/stackexchange_filtered
Stop rendering session during breaks I'm trying to make a Pomodoro timer and I'm almost done but I've been stuck on one thing for so long. I am trying to make it so that after every session and break, the session increases by 1 instead of by 2. I've made a bandaid by saying increase by .5 but I want to fix it with some...
common-pile/stackexchange_filtered
ERROR: Exception when publishing, exception message [Exec exit status not zero. Status [-1]] I am facing an issue with Jenkins when I'm trying to connect Jenkins to mainframe via ssh publisher. I don't know what the error is because it does not show any logs other than: SSH: Connected SSH: cd [/] SSH: OK SSH: Opening e...
common-pile/stackexchange_filtered
Adding in custom buttons to a preference page How can i add save and cancel buttons to a preference page so that it is saved when i click the save button? Hi, looks like your question was closed for being too ambiguous. If you want to try to ask again, please explain what you've tried to do and where you're having tro...
common-pile/stackexchange_filtered
Compare columns in two tables and create a SQL view I have two tables and the data is stored as shown in both tables TabelA: cert_id custid ----------------- 002 C1 003 C1 004 C1 005 C1 006 C1 007 C2 008 C2 009 C2 010 C2 TableB: cert_id custid -------------...
common-pile/stackexchange_filtered
Flask and OpenCV don't support multiple people viewing the same camera I have this code here from flask import Flask, render_template, Response import cv2 app = Flask(__name__) def gen_frames(): camera = cv2.VideoCapture(-1, cv2.CAP_V4L2) while True: success, frame = camera.read() if not succ...
common-pile/stackexchange_filtered
Django Model DateField with only year as CharField? In my Model I need to have Date field but with only year, standard DateField want from me also month and day, so I downloaded python package named partial_date_field, which adding Date type field but month and day are optional and everything was fine until I started c...
common-pile/stackexchange_filtered
GRUB won't show; Linux Mint and Windows 10 on separate drives I installed Linux Mint on one HDD and Windows 10 on another (Windows first), then I set the BIOS to boot the Linux disk first. It boots just fine, but it skips GRUB completely and just boots into Mint. I can boot into Windows by changing the BIOS back, but I...
common-pile/stackexchange_filtered
Udacity Ice Cream Quiz - Javascript statement/condition Need some help with a quiz below. /* * Programming Quiz: Ice Cream (3-6) * * Write a single if statement that logs out the message: * * "I'd like two scoops of __________ ice cream in a __________ with __________." * * ...only if: * - flavor ...
common-pile/stackexchange_filtered
Update a column with the combined results of multiple other columns in the same table I'm trying to combine the results of a SELECT into a single column within the same table (moving from individual columns to storing multiple fields in a JSON object). My SELECT query works fine, but when I try to combine it with an U...
common-pile/stackexchange_filtered
Attribute 'MaxOccurs' cannot appear in element 'element'." In RAML defination I am getting this error while defining the Raml for Xml input however I get this error, I already know this question is answered for xsd but I don't have xsd in Raml Can anyone suggest a solution of how to define array in xml design as I alre...
common-pile/stackexchange_filtered
How to auto-install runlevel control for existing service/daemon? Need to install a service/daemon (in this case bind9, a DNS service) runlevel control, aka "rc" control (/etc/rc*.d and such). bind9 came pre-installed on my 11.04 system, but without aforementioned runlevel control. How to easily (and preferably automat...
common-pile/stackexchange_filtered
Google Custom Search - Refinements I have a Google Custom Search I'm using for a site I'm working on (the search is restricted to this one site). As part of the results you can specify "refinements". These refinements appear as tabs but I want them to appear as links. I do not see anyway to control this nor do I find a...
common-pile/stackexchange_filtered
Acces class variable in dictionary initializer syntax C# public class MenuBar { [FindsBy(How = How.XPath, Using = "//i[@class='r-icon icon-meter']")] private IWebElement mnuItemDashboard; [FindsBy(How = How.XPath, Using = "//i[@class='r-icon icon-office']")] private IWebElement m...
common-pile/stackexchange_filtered
Unable to resume alarm after reboot android I need to resume an alarm after reboot. I am saving alarm time in SharedPreferences before reboot and after reboot i am setting an alarm with that time but it doesn't fire at all. Here is my code for the alarm in my Helpers class: public static void scheduleNotification(Noti...
common-pile/stackexchange_filtered
SimpleOnGestureListener's onSingleTapUp never called I created a custom component with both an onTouchListener and a gesture detector, I put the custom component in MainActivity's xml file which also has both onTouchEvent and a gesture detector. I want to detect single taps on the custom component and long presses on M...
common-pile/stackexchange_filtered
Conditions for existence of a viscoity or mild a solution Suppose I have a PDE of the form $$ 0=-\partial_t f(t,z) + \phi(0,z)+ \sum_{i=1}^{\infty} b_i(t,z)\partial_{z_i}f(t,z) + \frac{1}{2}\sum_{i,j=1}^{\infty} a_{i,j}(t,z)(\partial_{z_j}\partial_{z_i}f(t,z) - g(\partial_{z_i}\partial_{z_j}f(t,z)), $$ where $g$ is a $...
common-pile/stackexchange_filtered
Does Snowflake charge me for queries with WAREHOUSE_SIZE=NULL? I am trying to reduce the costs of our queries from Snowflake. In the docs, there is a detailed explanation about the credits per second by the size of the used warehouse. When I look at the history tab in the web console, or at the 'snowflake.account_usage...
common-pile/stackexchange_filtered
Getting System.UnauthorizedAccessException error when loading the XML file Im getting System.UnauthorizedAccessException everytime. Im running it as adminstrator. But Its still gives error... Code: XmlDocument doc = new XmlDocument(); string path = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + "\\T...
common-pile/stackexchange_filtered
Solving a particular recurrence of polynomials I have a recurrence relations of polynomials of the following form: \begin{align} h_0 & = x,\\\\ h_1 & = \frac{x + x^2}{2},\\\\ h_d & = \frac{h_{d-2}^2(x)}{2}(1 + h_{d-1}(x)) \qquad \qquad \forall d \geq 2 \end{align} Say we write $h_d = \sum_{i \geq 0} c_{i, d}x^i$. I am ...
common-pile/stackexchange_filtered
HTTP Post from ASP.NET to jsp I am trying to do a HTTP POST from ASP.NET and JSP and it is not working. I have been reading articles on how to do a HTTP POST in C# and have come accross code snippets like the example I have written below using HttpWebRequest: Stream stream = null; byte[] bytes = Encoding.ASCII.GetBytes...
common-pile/stackexchange_filtered
The stored procedure sp_MShelpcolumns is missing in Azure SQL server My Problem The stored procedure [sys].[sp_MShelpcolumns] is missing in Azure SQL server. My Query Should we be creating this SP on the Azure SQL Server? Or is it existing in another name or another location? Or do we have am equivalent SP in Azure S...
common-pile/stackexchange_filtered
Uncaught TypeError: Cannot call method 'toggleToStart' of undefined I have a <rich:simpleTogglePanel>. On click of this panel am getting Uncaught TypeError: Cannot call method 'toggleToStart' of undefined in console. Screen shot has been attached. In my xhtml page, I have prototype.js to show a lightbox. If I remove p...
common-pile/stackexchange_filtered
How to set context data back to the jobExecutionContext if get data from @Value("#{jobExecutionContext}")? From this doc, it shows how to pass in the context data @JobScope @Bean public FlatFileItemReader flatFileItemReader(@Value("#{jobExecutionContext['input.name']}") String name) { return new FlatFileItemReaderB...
common-pile/stackexchange_filtered
Does $R[[x]]$ have a basis and is it countable? We know that $R[x]$ is not finitely generated as an $R$-module and has a basis of $\{1,x,x^2,\ldots\}$. I started thinking about whether or not $R[[x]]$ has a basis, and if it does have a basis, if it was countable. I've been thinking about this, but I didn't make too muc...
common-pile/stackexchange_filtered
what process is executed by the execvp(2) when executable is specified as "/bin/bash"? I know execvp(2) can execute a script in a process. I come across a code of execvp(2) that has no specified executable? It can be compiled and run successfully, but it did nothing.I am not sure what it does. My assume that it just si...
common-pile/stackexchange_filtered
Which of these maps are alternating tensors? I'm trying to decide which of the following are alternating tensors in $\mathbb R^4$ and express those that are in terms of the elementary tensors on R^4: $f(x,y) = x_1y_2 = x_2y_1 + x_1y_1$ \begin{align*} g(x, y) &= x_1y_3 - x_3y_2 \\ h(x, y) &= x_1^3y_2^3 - x_2^3y_1^3 \end...
common-pile/stackexchange_filtered
What conditions are necessary on $a,b,c,d$ so that the Möbius transformation $w=\frac{az-b}{cz-d}$ has only one fixed point? Question: What conditions are necessary on $a,b,c,d$ so that the Möbius transformation $w=\frac{az-b}{cz-d}$ has only one fixed point? Attempt: We examine $$ z=\frac{az-b}{cz-d}$$ to find that ...
common-pile/stackexchange_filtered
Premutations of similar objects proof I'm having a hard time trying to find an intuitive proof of why permutations of n objects including similar objects lets say p, q, r similar objects is $$\frac{n!}{p! q! r!}$$ my question is the same as this question but the answer didn't provide any intuitive explanation The link...
common-pile/stackexchange_filtered
Get undefined reference when compiling C++ client for ZooKeeper I try to compile my very first program in C++ in which I try to connect to ZooKeeper and do some other stuff. In my code I have these lines: //test.cpp #include "zookeeper.h" ... all other header files from zookeeper/include void main_watcher (zhandle_t ...
common-pile/stackexchange_filtered
Color picking with AntiAliasing in OpenGL? I'm having a problem with color picking and antialiasing in OpenGL. When AA is activated results from glReadPixels are obviously wrong on object edges and object intersections. For example: I render a box #28 (RGBA: 28, 0, 0, 0) near a box #32 (RGBA: 32, 0, 0, 0). With AA, I c...
common-pile/stackexchange_filtered
Specify schema in mongoose I was wondering what the best way to define this schema is: Newsitem can only have 1 userID and 1 task ID. A Task can belong to many newsitems. A user can belong to many newsitems I've searched for examples, but I'd say they are not a lot of examples. How can I do this with mongoose & mongo...
common-pile/stackexchange_filtered
EASELjs drag event, what's wrong here for the start guys thanks for an interesting framework, great job, I'll hope that documentation in the future will be better, in my opinion it lacks real working examples for each object method. So here is my question, I have a dilemma with with this framework, can some one put a f...
common-pile/stackexchange_filtered
Meaning of different inequalities when testing the probabilities of random variables I'm trying to figure out what different inequalities mean when testing the probability that a random variable is greater or less than a certain value. I've been searching around but I can't seem to find any questions that ask this spec...
common-pile/stackexchange_filtered