text
stringlengths
70
452k
dataset
stringclasses
2 values
How to create a chart on the same worksheet using a for loop statement? Name Progress Student1 93 Student2 80 Student3 51 Student4 91 Student5 65 Student6 45 student7 33 I am still new to VBA programming. Above is my data set example and below is my code which is able to popu...
common-pile/stackexchange_filtered
Cisco Mobility regarding JTAPI I'm developing an application using the Cisco JTAPI API. But one issue I'm facing is when the user enables mobility on his VoIP telephone. Then I'm unable to control the mobility call (the call forwarded to fx. the users mobile phone) through the JTAPI API as it's not tracked. Does anyone...
common-pile/stackexchange_filtered
Eclipse RCP Content Assist not working with auto activated characters I define my own editor and have completion proposals like this public IContentAssistant getContentAssistant(ISourceViewer sv) { ContentAssistant ca = new ContentAssistant(); IContentAssistProcessor pr = new TagCompletionProcessor(); c...
common-pile/stackexchange_filtered
Dijkstra's algorithm openmp strange behavior I'm trying to run an openmp realization of Dijkstra's algorithm which I downloaded here heather.cs.ucdavis.edu/~matloff/OpenMP/Dijkstra.c If I add for example one more vertice from 5 to 6, so that the path from 0th goes through two vertices, my program fails to give me a cor...
common-pile/stackexchange_filtered
how to highlight tiles of MahApps.Metro on mouseover? I've just discovered a very great UI toolkit for WPF: MahApps.Metro. I created a window with tiles of type MahApps.Metro.Controls.Tile. I am not able to find the right way to highlight a tile when the mouse passes over. Do you know how can I do that? Do I need to us...
common-pile/stackexchange_filtered
How to mock a class with type parameters using Scalamock? I'm trying to mock this Scala class using Scalamock v4.4.0: import com.twitter.util.closable class SimpleKafkaProducer[K, V](val kafkaProducer: KafkaProducer[K, V], val topic: String) extends Closable {...} In my test I have: val userCreatedEventPublisher: Sim...
common-pile/stackexchange_filtered
Cox Proportionall Hazards compared to AFT and the proportional hazards assumption I am dealing with survival analysis in R in big population datasets with millions of rows. My first option was a cox regression cox_model <- coxph(Surv(time, event) ~ var1+ var2+ var3 , data = data) however based...
common-pile/stackexchange_filtered
Error trying to call stored procedure with prepared statement I'm trying to use a prepared statement to call a stored procedure (using ADODB with classic ASP), but when I set CommandType I get the following error: ADODB.Command error '800a0bb9' Arguments are of the wrong type, are out of acceptable range, or are in co...
common-pile/stackexchange_filtered
Solving vector equations of planes Find the line of intersection of two planes denoted by: $r=\overrightarrow{b}+\lambda(\overrightarrow{b}-\overrightarrow{a})+\nu(\overrightarrow{a}+\overrightarrow{c})$ $r=\overrightarrow{c}+\alpha(\overrightarrow{b}-\overrightarrow{c})+\beta(\overrightarrow{a}+\overrightarrow{b})$ $\...
common-pile/stackexchange_filtered
WordPress doesn't work after enabling mod_security I have a vps on which cPanel/WHM is installed. I just enabled few rules provided by default by the cPanel team OSWAP rule set. When I enable these rules my server does not even accept new media files in WordPress as well. Additionally, if someone tries to publish a pos...
common-pile/stackexchange_filtered
Integral of Taylor for a Generic Function I can't seem to figure out the solution to this problem: Problem: Find a series for the following equation and give the first 3 terms and the $nth$ term:$$g(x) = \int_3^xf(t) \; dt$$ The problem also asks for the general term in summation form. Do I just assume that a = 0 and t...
common-pile/stackexchange_filtered
Arp spoofing not working against iPhone, iPad, or Mac I have an iPhone 4 and iPad 3 both running iOS 7.0.4 and MacBook Pro Retina running OS 10.9.1. I want to write a sniffer program, and have been trying to ARP spoof these devices, but their traffic does not seem to be appearing in Wireshark. I have tried using both...
common-pile/stackexchange_filtered
Is it okay to use .ToList() to bypass DbContext tracking? I would like to keep the lifespan of my DbContext as short as possible, so I take advantage of the using statement. However, since Entity Framework tracks the entities, I cannot do something like this : public IEnumerable<Person> GetPersons() { using (var db...
common-pile/stackexchange_filtered
prevent window.opener.location.href form reloading parent I am opening a window on a page and when the user finishes filling out the form there is some logic that says window.opener.location.href = window.opener.location.href; This reloads the parent url. Is there anyway the parent document can prevent child windows...
common-pile/stackexchange_filtered
Colours within a NSArray arrayWithObjects I have a simple leader boards table for an iphone game that allows me to view the previous high scores however the background is black and therefore it is not visible. I am using the code: [highscores addObject:[NSArray arrayWithObjects:@"Title",[NSNumber numberWithInt:5000],ni...
common-pile/stackexchange_filtered
SQL Server calculating the total time below a threshold value Perhaps someone could help me. I have been trying to create a query that summarizes the amount of time an item has been below a threshold value. My data looks like this: I am trying to find the latest date that the NR column was LESS THAN OR EQUAL to th...
common-pile/stackexchange_filtered
Remmina RDP - No sound from remote Windows 7 computer - Ubuntu 13.10 I'm connecting to a Windows 7 computer from Ubuntu 13.10. I have the Sound setting in the Advanced tab of the Remote Desktop Preferences for my connection set to "Local - low quality". In my remote desktop session, if I go to the Sound controls under...
common-pile/stackexchange_filtered
Dynamically get paths to project-folders in ClickOnce The problem: Clickonce puts sub-folders of a project in a different place when used in Visual Studio vs when installed as a Clickonce application. In Visual Studio they are under: Directory.GetParent(Environment.CurrentDirectory).Parent While when installed, they'r...
common-pile/stackexchange_filtered
Proving the primality of strong probable primes Using the probabilistic version of the Miller-Rabin test, I have generated a list of medium-large (200-300 digit) probable primes. But probable ain't good enough! I need to know these numbers are prime. Is there a library -- preferably wrapped or wrappable in Python -- th...
common-pile/stackexchange_filtered
How to distinguish between a const reference and the const of the referenced object? I want to implement the following code: void Foo (const myobj& obj, const std::vector<std::string>& paths) { const auto& temp = obj; for(const auto str : paths) temp = temp.find(str); // find is a const method // read someth...
common-pile/stackexchange_filtered
Finding sub-regions in an STL file for Finite Element I use an external software (Amira) to segment X-ray tomography images and then create a surface mesh which I can then import into Mathematica as an STL file. This file has two enclosed regions, separated by a common boundary. I would like to be able to assign differ...
common-pile/stackexchange_filtered
PHP string append is overwriting instead when loading in content from files within a loop? I am attempting to read in multiple files, where the filename of each file is contained within a central file "order.txt", and take the content and append it to a single string variable in PHP. This is my current approach: $order...
common-pile/stackexchange_filtered
Understand the shape in tf.keras.Input? I just learn tensorflow and keras. Here is a code example: # Create a symbolic input input = tf.keras.Input(shape=(2,), dtype=tf.float32) # Do a calculation using is result = 2*input + 1 # the result doesn't have a value result calc = tf.keras.Model(inputs=input, outputs=resul...
common-pile/stackexchange_filtered
Error "Could not find com.huawei.hms:location:<IP_ADDRESS>2" while adding Huawei Kits Following agc-get-started-android and having Project level build.gradle: buildscript { repositories { google() mavenCentral() maven {url 'https://developer.huawei.com/repo/'} } dependencies { ...
common-pile/stackexchange_filtered
Using GPU on Silverlight 5 for a Fast Fourier Transform I've got an audio library for Silverlight that is in need of some acceleration on slower machines. Specifically, this library makes extensive and repeated use of the FFT transform as a part of its acoustic echo cancellation and noise reduction algorithms, and I'm ...
common-pile/stackexchange_filtered
Can a chrome extension be opened when requesting specific external protocol? I want to write a chrome extension that is triggered when the browser redirect to a specific external protocol: myApp://... I googled a bit and didn't find an easy meta-data way to do so. is there a way to define it in the manifest? I want the...
common-pile/stackexchange_filtered
R functions that operate on data frame columns I have the following function: calculateAngle <- function(x, y) { v <- c(x, y) a <- c(1, 0) theta <- acos( sum(a*v) / ( sqrt(sum(a * a)) * sqrt(sum(v * v)) ) ) if(v[[2]] < 0) { return(-1 * theta) } else { return(theta) ...
common-pile/stackexchange_filtered
In combination with Superscrollorama, what is the meaning of the 2nd parameter in TweenMax.to? The documentation for TweenMax states that the second parameter for to() is: duration:Number — Duration in seconds (or in frames for frames-based tweens) I don't understand what that means for the following snippet: var PAR...
common-pile/stackexchange_filtered
Dynamic ng-click does not call function I wish to make a dynamic table in AngularJS, but the problem is ng-click does not call the function. Here is the fiddle : fiddle Here is the code : General template : <div class="box"> <dynamic-table></dynamic-table> </div> Directive template : <table class="table table-st...
common-pile/stackexchange_filtered
How to read a file that is located in any location on the computer? So I have a project, and this is one of the demands: You should have a class named Project3, containing a main method. This program reads the levels information from a file whose name is specified as a command-line parameter (The file should als...
common-pile/stackexchange_filtered
While loop is not working? It may seem dumb, but I'm stuck here. My code: String status = "INPROCESS" logger.info("Job status: 1. "+prevStatus); logger.info("Job status: 2. "+status); while (!status.equalsIgnoreCase("ERROR") && !status.equalsIgnoreCase("COMPLETE")) { Thread.sleep(10000); map...
common-pile/stackexchange_filtered
Magento 2 with nginx throwing 404 error on setup Can you please help me to solve the same problem.? I'm trying the magento 2 with nginx on my local environment. I'm getting a problem when trying to call my project for installation htttp://radianstore/setup on browser i can see only a gray color bar, when i check with...
common-pile/stackexchange_filtered
How to turn particles in circular shape I want to rotate my particles in circular (cyclone) fashion. I want my particles to be in lines shape and not sphere. I tried to add Bezier curve converted to mesh and applied as particles. But its not having the turn effect. How can i achieve this type of effect. Any suggestion ...
common-pile/stackexchange_filtered
Creating a secure transcient duplicate of a folder for consumption by ‘psql’ running as ‘postgres’ This is a question about finding an ideal way to deal with a particular situation. In a folder under my home folder is a group of psql script files that reference each others through \include_relative meta-commands. These...
common-pile/stackexchange_filtered
MySQLi: Select price range if empty inputs I have 2 variables to define a price range for a query. The problem I'm trying to solve is when these are not set in which case I want to show all rows (from 1, if the lower boundary is null, and to max(price) if the upper boundary is null). I've tried with ifnull, but without...
common-pile/stackexchange_filtered
cgi-node.js complains of missing file I'm setting up cgi-node on a dedicated server using the guidance provided at www.cgi-node.org. I've modified the first line of cgi-node.js to point to my node executable as instructed. I am getting the following complaint: EXCEPTION: ENOENT, no such file or directory 'D:/Programs...
common-pile/stackexchange_filtered
MATLABs double arithmetic this is a classical problem, but I need help to pinpoint what I am missing. Problem: In MATLAB (exp(1) + 10^12) - 10^12 gives you a double which equal to e, up to 5 correct digits. But I thought it would be 4. One has exp(1) + 10^12 = 1.000000000002718e+12, where 1.000000000002718 contains ...
common-pile/stackexchange_filtered
Derive tenant id for signed in user in OAuth2 based multi-tenant Spring Boot application using Spring Security I am working on a Spring Boot B2B application, where I would like to onboard a considerable number of tenants. Each of the tenants has its own authentication providers. I have decided to support only OAuth2-ba...
common-pile/stackexchange_filtered
Format Numbers using PDFBox I have a PDF file (that I cannot edit) with a table into which I can enter numbers. The lowest table cell automatically sums up the input. When I manually enter the numbers (using Acrobat Reader), they are formatted correctly and the sum works fine, but when using PDFBox, they are not, i.e. ...
common-pile/stackexchange_filtered
How does the state of React work? My code is here: https://jsfiddle.net/woyuditan26/bgwrfLxh/ this.setState((prevState) => ({ tasks: prevState.tasks.concat(newTask), text: '' //// why the input text is not cleared when I clicked the button ? })); Why the input text is not cleared when I c...
common-pile/stackexchange_filtered
Schroedinger's label caption update I have some code in VBA that goes like this: Sub UserForm2_Activate() .... If [statement] then Label1.caption = x Label2.caption = x*y Else ... When I activate the UserForm with these labels from the other one (using UserForm2.Show) the results are Label1 = x, Label2 =...
common-pile/stackexchange_filtered
Typing function for resetting zustand stores I have zustand stores created using Car ID, and I needed the function to easily reset these stores (dozens at once). I was looking through the web for possible solutions and found one, but its very hard for me to type it, here is the function itself: const resetSet = new Set...
common-pile/stackexchange_filtered
How to path-based reverse proxy app service behind application gateway? I have an application gateway configured with my wildcard certificate that I want to use to proxy myapp.azurewebsites.net (an ASP.NET core application) behind myapp.mywebsite.net/mypath. I have an existing site running on myapp.mywebsite.net config...
common-pile/stackexchange_filtered
Loop to create dummies out of two df R for easier explanation I'm gonna use a smaller example. I have two DF: DF1: T01 T02 T03 T04 T05 1 15 20 48 25 5 2 12 18 35 30 12 3 13 15 50 60 42 DF2: MEDIAN SD T01 13 1.24 T02 18 2.05 T03 45 6.64 T04 30 ...
common-pile/stackexchange_filtered
build.gradle and project libs I have a project in android studio that uses a project library. My problem is the configuartion of the gradle files. I really tried a lot of solution that were posted here (define modul in project lib in settings as modul, sherlock example, setting right sourcesets ...), but I always ge...
common-pile/stackexchange_filtered
How to render infinite universe? I'm curious what are the best practices in game development industry to render 3d universe? To be more specific: The data points are given and static. Each point has position, color and size; The entire data set is much larger than available memory; User should be able to "zoom out" to...
common-pile/stackexchange_filtered
JHipster : how to customize bootstrap variables? I'm in a jhipster project using both Angular2 and bootstrap 4. On the jhipster web site, there's a page about how you can customize bootstrap variables, but I can't make this work with realtime changes. When I put my customized variables in vendor.scss, if I want to see ...
common-pile/stackexchange_filtered
Typescript with Lodash, Why allow to input wrong key name to function? I used typescript with lodash, for example _.OrderBY. I found TS allow us to put wrong key to lodash's function. import _ from "lodash"; interface Data { name: string; age: number; } const dataLists = [ { name: "A", age: 18 }, { name: "B",...
common-pile/stackexchange_filtered
Searching the point group of symmetry I am engaged in the field of quantum-chemical calculations using programs written by myself. I have found out that I have a problem in finding the point group symmetry of the molecule. The first idea that came up was to determine the possible symmetry elements by transforming the o...
common-pile/stackexchange_filtered
Do snakes get dizzy? I've seen snakes get captured in sacks and I've wondered if the snake would get dizzy if the sack were twirled around. I have not done any tests (and don't plan to) because snakes scare me. This doesn't seem to be opinion-based to me. Either snakes can get dizzy or they cannot. Am I missing som...
common-pile/stackexchange_filtered
PHP generate the the Particular NUmber Range using LOOP? I want to generate the number range like 00 01 02 03 04 05 06 therefore i make the script like for ($x = 00; $x <= 06; $x++) { echo $x: } but it give the output like 0 1 2 3 4 5 6 How to get the number series like 00 01 02 03 04 05 06.plz help me on this . Us...
common-pile/stackexchange_filtered
Given a fixed hash value (h) and private key (p), is it possible to find a nonce (k) that fits the following equation in ECC mathematics? Assuming secp256k1 curve and ECDSA parameters, I'm trying to see if there's a way to solve for $k$, where: $k = {-h\over r} -p$, where $k$ is the ECDSA nonce, $p$ is the private key...
common-pile/stackexchange_filtered
In React redux state array of objects i can't update the state it creates error A state mutation was detected between dispatches the component that dispatch the state const [personalInfo, setPersonalInfo] = useState([]); dispatch(addPersonalInfo(personalInfo)); action import * as types from './actionTypes'; export def...
common-pile/stackexchange_filtered
How to test Wake Lock I'm working on a fairly complex application and I am using alarms to wake the device when needed and to acquire a wake lock until the task is over. This happens in different places in code. I'm fairly certain my logic is correct but it's very hard to properly test it. ADB seems to hold a wake lock...
common-pile/stackexchange_filtered
Webkit browsers rendering CSS different than Mozilla Firefox...Why? I'm styling a form that was already marked up (made some markup changes), and I normally work in Firefox to style so I can use firebug and the web developer toolbar. On this project, I noticed that my styles are displaying quite differently for one par...
common-pile/stackexchange_filtered
How to create a `Observable` which observes both `Renamed` and `Changed` events from `FileSystemWatcher` I want to create a Reactive Observable, which can observe Renamed and Changed at the same time. I'm monitoring a folder for modified and renamed files with FileSystemWatcher. I only want to handle the event after it...
common-pile/stackexchange_filtered
HP Proliant Microserver Gen8: OS on a Micro SD or USB drive a good idea? I have an HP Proliant Microserver Gen8 and I want to install CentOS 7 on it, to run a Samba server. I've bought two 3TB HDDs for the storage. The OS should be separated from the storage HDDs. So my question is, if it is a good idea to install the ...
common-pile/stackexchange_filtered
Mysql update table using ubuntu terminal I have a CSV file that has 2 columns Name Email I have a table in my database that has the same columns + some extra columns. Now I would like to update my db table using that csv file. I mean like this UPDATE `mytable` SET `email` = 'csvemail' WHERE `name` = 'csvname' Can so...
common-pile/stackexchange_filtered
python function's arguments with default values get cached for list but not for other types Below code works the way it does because list "b" is cached at definition time and reused, unless the calling point passes a specific value which initializes a new list for that one particular call. >>> def app(a,b=[]): ... ...
common-pile/stackexchange_filtered
How can I add the x265 codec to ImageMagick in C# I would like to add the x265 codec to ImageMagick in a Visual Studio C# project targeting .Net 4.7.2 in order to access HEIC format files. I obtained the file x265.dll from the ShiftMediaProject file libx265_3.4_msvc16.zip from the but I cannot add it to the VS project ...
common-pile/stackexchange_filtered
What happens if we place source at different distance from the slit in Young's double slit experiment? In usual case in YDSE we set up in a way such that light start in phase from the two slits.Now what happens if the light starts at different phase from the two slits by placing source at different distance from the s...
common-pile/stackexchange_filtered
Sonar rule to report the use of Objects.isNull() and Objects.nonNull() in if-then statements The Javadoc for the methods Objects.isNull() and Objects.nonNull() clearly state their purpose. e.g. This method exists to be used as a Predicate, filter(Objects::nonNull) But I see developers starting to use these methods wi...
common-pile/stackexchange_filtered
Power Series Comprehension Can anyone recommend any particularly clear, simple, yet thorough sources of explanation of Power Series in general? I'm a Calculus II student and am a complete beginner with infinite sequences and series, power series, and working with the concept of infinity in this way. I have (or think I ...
common-pile/stackexchange_filtered
image not displaying in mail in queue - laravel In my mail template I used image path as below : <img src="{{ URL::to('/images/logo.png') }}" alt="logo" download="false" style="width:50%"> It is working with normal mail (without the queue) but not in mail in queue. By inspecting element in mail i found that when for n...
common-pile/stackexchange_filtered
What is the expansion of (1+x)^n where n = rational number & |x|>1. I was doing a math question which required use of expansion. I found this information: What if |x|>1? And what is the expansion of (x+y)^n where n is not necessarily a natural number? Do we have a formula for that? If $|x|>1$, then you can write $(1+...
common-pile/stackexchange_filtered
How do i return a structure defined and populated in C/C++ to java via JNI in android? Below mentioned is the function defined in C which i will be calling from java like this Getdevicedetails(string) : extern "C" JNIEXPORT jobject JNICALL Java_com_example_myapplicationforc_MainActivity_getdevicedetails(JNIEnv* env, j...
common-pile/stackexchange_filtered
How to load data from a different component after submititng form from another component in ReactJs I have an Event Model. in my event, people can indicate if they are attending an event by clicking a button, and when they indicate that they are attending an event by clicking a button, a Modal dialog will pop up to ask...
common-pile/stackexchange_filtered
how to remove space between textarea and parent div I have the following form which contains a textarea as shown: As you can see there is a space between the blue shaded area and the bottom of the parent div. How can I remove this space? html: <div class="bottomBox"> <h3>Free Quote Form</h3> <form ...
common-pile/stackexchange_filtered
How to SUM() a column from one Google Spreadsheets in another spreadsheet Has anyone been able to return the SUM() result of a column in one Google Spreadsheets to a different spreadsheet? I am trying the ImportRange(key, criteria) but I am not having any success. I am just bringing in the entire column and not the sum...
common-pile/stackexchange_filtered
Is the rank of an $n\times n$ Hermitian matrix $k-1$ if all of its principal minors of degree $k$ are zero? Is the rank of an $n\times n$ Hermitian matrix $\boldsymbol{H}$ equal to $k-1$ ($k<n$) if all its $k\times k$ principal minors are zero, and it has a nonzero $(k-1)\times(k-1)$ principal minor? I am looking for...
common-pile/stackexchange_filtered
UNPIVOT in sql server with two input values (converting from Oracle to sql server) in Oracle I have written a statement where I use UNPIVOT. That part looks like this: unpivot ((value, prev_value) for col in ( (title, prev_title) as 'title' , (stage, pr...
common-pile/stackexchange_filtered
How to compare two routes using google direction apis or some other apis for iPhone app I want to compare two routes to check if they are same or not in my iPhone app. There is a person X who wants to go to point A to point B and another person wants to go to point A1 to point B1. I can get a route between A to B us...
common-pile/stackexchange_filtered
Android Identify SMS message in Broadcast receiver listening for Delivered SMS action I have an Android app that sends a small queue of messages in a single batch. I am assuming that I can listen for the SENT action and that the send confirmation will be in the same order as the messages were presented to the SMS servi...
common-pile/stackexchange_filtered
Make substring() method ignore certain chars I want to create an animation that builds a string by always appending one more char. Like: 'H', 'He', 'Hel', 'Hell', 'Hello' For this, I've already created a simple method: Collection<String> states = new ArrayList<>(); String text = "§aTest §bTest2"; for (int i = 0...
common-pile/stackexchange_filtered
Xpath getting multiple img's in div I'm working with TFHpple and I would like to get all of the image url's in a single div tag, the number of images can very so it would need to be dynamic. Here is the HTML <div id="images" class="content"> <div class="galleria"> <img data-thumb="https://s3.amazonaws.com/nakedap...
common-pile/stackexchange_filtered
Handle Double.NaN from Java to C# using snakeyaml (Java) and YamlDotNet (C#) I'm using YAML to communicate between C# GUI and server side Java, which is working fine in general. However, if I pass a field that is a Double and the value is Double.NaN on Java side the Yaml passes as ".NaN", and when I come to deserializ...
common-pile/stackexchange_filtered
My spv node received in a nTx = 2 in headers message I am coding an spv node for dogecoin. I am syncing the headers and I am exceping to have nTx=0 for all the headers received but for one of the headers i have a nTx = 2 and some weird data following... { version: 6422786, previousHash: 'b7ac5cc3ca94d8b154661cba795fc4...
common-pile/stackexchange_filtered
Query to find all records in A that has no join records in B for specific criteria I am trying to construct a query to find all records in a PostgreSQL table (a) for which: There are no records at all in table b having state='ready' It doesn't matter the reason for no records in table b with the state state='ready' (...
common-pile/stackexchange_filtered
Passing a lambda with capture into another lambda causing the capture to always happen (?) Situation A lambda h() always accesses non constexpr variable k. If I use like if constexpr(false){h();} , k will never be captured. But if I pass h() into another function g like g(h), k will always be captured even the constexp...
common-pile/stackexchange_filtered
How to have multiples matches for a snippet in Vim's snipMate plugin (with a dropdown menu) snipmates expands div as <div id = " "> . I want snipmate to show a dropdown menu where I can choose between div id ="" and div class="" (after creating the second one). The documentation says: snippet trigger A description of s...
common-pile/stackexchange_filtered
ATM Javascript Issue I need to fix this code where instead of withdrawing the money when the money buttons are pressed, I need it to be withdrawn when the withdraw button is clicked after the amount has been chosen. Please help. Thank you. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/T...
common-pile/stackexchange_filtered
How connect MongoDB to Heroku on Mongoose? Why when i try to connect MongoDB to Heroku on Mongoose(in my node.js app) as written in docs(use: `var uri = 'mongodb://dbuser:dbpass@host:port/dbname'; mongoose.connect(uri);` )errorlog offers me use using MongoClient.connect with auth credentials.? Somebody, please, expl...
common-pile/stackexchange_filtered
Syntax error (missing operator) in query expression c# Can some one please help me to resolve the issue ? I am getting the syntax error while running this code. OleDbConnection cn = new OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=J:\CADFileLogger.accdb"); string cmdText = "INSERT INTO [tbl_Logger] (U...
common-pile/stackexchange_filtered
RPi Zero unable to boot Operating System I've been playing around for over a week now, and I have had no luck whatsoever in getting any operating system to boot onto my Pi Zero. I started by flashing an image of RetroPie, but that gave me different results every time I powered on. The most consistent error I got was ...
common-pile/stackexchange_filtered
HashMap inside of a list Kotlin (Android) I'm trying to represent a HashMap inside of a List in Kotlin. The list is structured as: daysOfWeekHashMapOptions = listOf( hashMapOf("key" to 0, "label" to "Monday"), hashMapOf("key" to 1, "label" to "Tuesday"), hashMapOf("key" to 2, "label" to "Wednesday"), ha...
common-pile/stackexchange_filtered
How to add an article with size to the card, if the seller isn't CDISCOUNT (0) I am currently facing a problem with my application, we use the cdiscount api, and to add a product to the card, if this product have an sizeId and the seller in'st CDISCOUNT it will generate a 500 error. How can i fixed that ? thank you fo...
common-pile/stackexchange_filtered
Are the p-values of the anova on an lme4 object one- or two-sided? If I run the following r code: m_train = lmer(y ~ x * z + (1|x), data=data) anova(m_train) Are the resulting F statistics one-sided or two-sided? Thank you very much in advance! One sided. The reasons are spelled out in answers to this question: http...
common-pile/stackexchange_filtered
Determine the splitting field (polynomial/degree) How to determine the splitting field $L$ of the polynomial $x^4-7x^2+10$ over $\mathbb{Q}$ and $[L:\mathbb{Q}]$? My way was: $x^4-7x^2+10=(x^2-2)(x^2-5)$ So the roots are $x_1=\sqrt{2}, x_2=-\sqrt{2}, x_3=\sqrt{5}$ and $x_4=-\sqrt{5}$ Then the splitting field is $L=\mat...
common-pile/stackexchange_filtered
How would i create a bookmarklet like the one provided with delicious So a user would add a "add bookmart to the website" bookmark on their bookmarks and when they click it, a page would open and it would take the URL of the website that they were on when they clicked the bookmark... If it matters, i'm trying to build ...
common-pile/stackexchange_filtered
Automatically generate symbolic name for enum values in clang compiler In C/C++, when an enumerator is defined, automatically generate a map of the symbolic names corresponding to the enum values. For example, given the following enumerator: enum Day { Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunda...
common-pile/stackexchange_filtered
How do I use another java project in my code? I am currently using the Eclipse IDE and want to import an external java project so that I can use it in something I am working on. I downloaded the directory of icePDF, found here, and would like to use the java class file "SwingViewBuilder.java" that is found in the direc...
common-pile/stackexchange_filtered
startUpdatingLocation of LocationManager through silent push notification I am creating app that needs to wake up in background at particular time . I have tried : UILocalNotification : But i Don't want to use UILocalNotification because it needs user interaction to tap on notification and than only app will wake up ...
common-pile/stackexchange_filtered
How to replicate statistical significance in STEPAR method of SAS Proc FORECAST? This is basically a trend model + Autoregressive Error model Figuring out the coefficients for the AR model is just a straightforward application of Yule-Walker equations. However, not sure about how they evaluate statistical significance ...
common-pile/stackexchange_filtered
azure-spring-apps-maven-plugin with environment variables I am trying to deploy on azure spring apps using azure-spring-apps-maven-plugin (v1.19.0) following is my configuration but somehow it is not updating environment variables in Azure Spring app. If I set environment variable manually from Azure portal then it is ...
common-pile/stackexchange_filtered
To 了 or not to 了 I'm Chinese learner and as everybody else I'm puzzled by the verbal aspect 了. My research into the subject gave such results: 了 belongs to a class of perfective aspect markers just as many other markers 过, verb duplication, RVC (verb resulative aspect) etc. 了 is a existential aspect marker (aka fac...
common-pile/stackexchange_filtered
The version of CKEditor could not be detected Possible Duplicate: CKEDITOR not working Drupal 7 When I try to enable CkEditor, I get the following error. I have already extracted the files in sites/all/libraries/ckeditor. Is there any problem with the version of this module? How can I fix this? I have already rea...
common-pile/stackexchange_filtered
Are consecutive zeros across multiple dimensions in multivariate time series a problem when estimating VARMA models? I want to estimate a VARMA model for a 14-dimensional multivariate time series (Fig. 1, 2). The goal is to investigate how the trajectory of my alleged output time series (messages per hour; Fig. 1, top ...
common-pile/stackexchange_filtered
iPad FormSheet/PageSheet modal view, when rotated fill entire screen.T I have a iPad application, which has a UITabBarController as the root controller. From one of the tabs, I have a UIToolBar which contains a UIBarButtonItem, when clicked launches a Modal View. The modal view appears in the correct size when first l...
common-pile/stackexchange_filtered
Formula for offsetting some additional percentage like an added fee Say I want to pay someone $100.00 but the service I use keeps 3% of the payment I make. Meaning they would only receive $97.00 since they would keep $3. If I increase my payment to $103 they would keep $3.09 meaning they would only receive $99.91. Is t...
common-pile/stackexchange_filtered
TOC formatting issue when headline close to numbering I've run into a scenario where if the TOC title is too close to the TOC numbering, it pulls the numbering inwards. Here you can see several examples where I started adding/removing one character at a time to see when it would incorrectly pull the numbering inward vs...
common-pile/stackexchange_filtered