text
stringlengths
70
452k
dataset
stringclasses
2 values
How can I automatically invite new enterprise members to a specific folder as collaborator? There's one special folder that I need everyone as collaborators. I can add all existing members but would like it be automatically done for all future new members. I know I could write an app using Box API to check for new mem...
common-pile/stackexchange_filtered
Uncaught TypeError: Object function () I wrote the following functions. At run time the browser complains about uncaught TypeError ...has no method 'init'. What's wrong of my code? function build_results_grid (response) { // build grid grid_ui.init(); } // build the results grid var grid_ui ...
common-pile/stackexchange_filtered
How does the CARDANO_NODE_SOCKET_PATH environment variable work for both the mainnet and testnet? According to the docs, cardano-cli and other Cardano software components need to know where the node socket file is located. We saved it to the path $HOME/cardano/db/node.socket in the previous example. The components rea...
common-pile/stackexchange_filtered
how to add multiple rows in mvc 4 and razor engine I am creating finance application in mvc 4 and razor. in that there is one module Journal. One Journal can have multiple entries. and Journal can not be created without Journal Entry. Following is my model using Sms.Core; using System; using System.Collections.Generic...
common-pile/stackexchange_filtered
Landing due to low fuel If an aircraft has to make emergency landing due to critically low fuel. Who is responsible pilot or maintenance crew? Are you adding about a specific country or regulations? Reponsible for what? For landing the plane? For assigning the blame? For taking the blame? For making sure it does...
common-pile/stackexchange_filtered
How do I theme the xscreensaver unlock screen? How can I replace ugly screensaver unlock screen in Xubuntu 11.10? Standard xscreensaver is very ugly. Is there any themes for unlock screen? The closest you can come to theming is to change the colours/fonts & date-time format. Anything more will probably need to rec...
common-pile/stackexchange_filtered
Why isn't setjmp in the std namespace when including <csetjmp>? The title say it all. After including <csetjmp>, longjmp and jmp_buf are in the std namespace, but setjmpis not. I verified this on MinGW4.5 and MSVC10. After looking into the <csetjmp> header, I could not figure out the reason of this choice. I was always...
common-pile/stackexchange_filtered
When to start testing a solo project? I'm building a solo project myself. (Java backend, Java AWT frontend. No lectures about AWT vs swing vs *wt, please :-)) It's fairly straightforward Primary server - keeps user information Content server - keeps content information Client - the user interface Client opens up and ...
common-pile/stackexchange_filtered
Code Composer Studio Skipping Breakpoints When Compiling with GNU I'm attempting to debug a program in Code Composer Studio compiling with the GNU toolchain rather than the default TI, it's my understanding that CCS by default only places CCS breakpoints which are not recognized by the GDB when working in a CCS project...
common-pile/stackexchange_filtered
Error with starting apache with port number 80 When starting my apache server with port number 80. i am using XAMPP. on my conputer not installed IIS. when i am trying diffrent port number XAMPP control panel opened, but phpMyadmin is not working properlly. guys plz tell me that where is actually engaged that port 80 ...
common-pile/stackexchange_filtered
How to turn a single-site app into a mantainable multi-site app without code changes? It's an application that we use internally at the office that I would like to offer as a hosted service for anyone. How can I do that without making major code changes? The first thing that occurs to me is to have the app select whi...
common-pile/stackexchange_filtered
万端 vs 完了 in this context I was listening to a song the other day when I saw this. The lyrics in question: [帰宅]{きたく}[完了]{かんりょう}。ダウンロード[完了]{かんりょう}。[配信]{はいしん}スタート。[準備]{じゅんび}[万端]{ばんたん}。 According to Jisho 万端 means all; everything To me, it makes it hard to understand why they say 準備万端 when faced with this definition. I...
common-pile/stackexchange_filtered
array object with empty field name In node-red i have array object in msg.payload. the array object is [{"":"This Pallet ID is already in Pick Request List"}] The array object has empty field name. please suggest how to retrieve value form the array. I have tried msg.payload[0][0], msg.payload[0].Value. But not working...
common-pile/stackexchange_filtered
is there a way to add a delay to a java program without using sleep? In my game i have some stats that i want to go down after a certain period of time but i cant use the sleep thing. Can someone give me an example of a better way of doing this? I've seen videos on something called the swing timer but none of the video...
common-pile/stackexchange_filtered
Create Session with JWT I'm currently working on a shop like project that uses React as frontend and Wordpress with Woocommerce as a backend. To authenticate with the API I use the JWT Authentication for WP REST API, which works great. The problem I'm facing is that I want to redirect to a checkout page that is not par...
common-pile/stackexchange_filtered
Is there a way to display plots as they build in Shiny instead of waiting for all of them? I have a Shiny Dashboard with many plots, all of which take multiple seconds to build. Once the last one builds, they all display. I would like instead for each plot to display as soon as it completes. I understand R is single-th...
common-pile/stackexchange_filtered
When is the new Improving Feedback for All Users message coming? In August, this blog post was made with an exciting update on a new closed question view for both the author and for public users. I was wondering if there is any word on when this new view is coming? The staff appeared to have been a bit busy lately... ...
common-pile/stackexchange_filtered
Slim 2.6.2 render() Only Works for Index.html I'm currently learning about the Slim framework over at TeamTreehouse.com, and ran into an issue that I haven't been able to resolve. At this point in the project, we have installed Slim via Composer and setup .htaccess and index.php files in our document root (which on my...
common-pile/stackexchange_filtered
SwiftUI: Button in Form I am creating a Form in SwiftUi with a section that is including a flexible number of instruction. Next to the last instruction TextField, I am showing a "+"-Button that is extending the instructions array with a new member: var body: some View { NavigationView { Form { ...
common-pile/stackexchange_filtered
header file isn't found by cmake I have a folder with only headers. In my config project I need some interfaces of the param project src CMakeList.txt - config - CMakeList.txt - param - CMakeList.txt - parameter.h This is inside my config CMakeList.txt project(config) file(GLOB_RECURSE SOURCES "${con...
common-pile/stackexchange_filtered
Cannot iimport org.gicentre.geomap.* I am using processing 3.And I am trying to add the gicentre geomap library to my processing libraries. I downloaded the geomap library from https://www.gicentre.net/geomap/. And extract it and move it under Processing/libraries. After this, I tried to run an example from this librar...
common-pile/stackexchange_filtered
Python Syntax error while execution I am getting a syntax error for the line below i am not sure why this error is getting generated as earlier it used to work fine and suddenly it started throwing this error myfile.write('\n'+str(serverAndInstance)+','+str(GCOverHead)+','+str(min(usedAfterGc))+','+str(max(usedAfterGc)...
common-pile/stackexchange_filtered
SwiftUI: Variable strings not exported for localization As per Apple documentation, this should work: If you initialize a text view with a string variable rather than a string literal, the view triggers the init(:) initializer instead, because it assumes that you don’t want localization in that case. If you do want to...
common-pile/stackexchange_filtered
Show that $\int_{1}^{x} \frac{\sin t}{t}dt -x +1 <0,\: x>1$? I made the following attempt but it did not feel convincing. I also learned afterward that differentiation is not allowed across inequalities. The original expression on the LHS is equivalent to $\frac{d}{dx}\int_{1}^{x}\left(\frac{\sin(t)}{t}-1\right)\:dt = ...
common-pile/stackexchange_filtered
Convert a .sql table into a SQLITE database? I have a database on my computer (localhost) holding thousands of records. I just want to convert the table containing those records into a database that can be accessed on Android. I heard of SQLite, but is there anyway to convert a .sql file to an SQLite database and store...
common-pile/stackexchange_filtered
Plotting functions on surfaces So I have a 2D surface which can be parameterized by a vector $X(u1,u2)$ which I am plotting with ParametricPlot3D[X, {u1,...}, {u2,...}] I have a scalar function, $f(u1,u2) \in [-fMax,fMax]$, which lives on this surface and I am trying to plot it as a heat map on the surface. I have trie...
common-pile/stackexchange_filtered
Sonar Qube plugin Failed to install on Mule Studio I tried to install sonar qube plugin from http://downloads.sonarsource.com/eclipse/eclipse/ in Mule Studio Version (3.5.0) with Mule runtime (3.4.0). For my requirement I cannot got with the latest version of studio. The following is the error message I am getting whe...
common-pile/stackexchange_filtered
Libgdx null Pointer I´m working on a Box2D Jump and run game and want the player to be teleported to the start when he hits a spike, but when he hits the spike, I get a null pointer exception. Heres my Contact class: public class WorldContactListener implements ContactListener { Player player; @Override public void b...
common-pile/stackexchange_filtered
How to add new ASP.NET table row by clicking button? I am using asp.net [ c# ] .. My question is about adding new row; if I click on that button (like every time I click on that button it will add new row) .. I thought its easy to do it .. but it is not there. Something is missing I don't know what. My code is [ Defa...
common-pile/stackexchange_filtered
Using RS utility to deploy report using database driven directories I am trying to use RS utility on my vb.net script to deploy report as I loop through my table that has a list of all the reports, folders, datasources, linked reports, roles and so on. Is it possible to call RS utility inside VB.net code or add extra ...
common-pile/stackexchange_filtered
Need more information for Network Time Protocol related daemons & commands I've been told to execute the ntpq command for some reason in my work. When I look for the command on a Unix-based machine, I found more commands with one daemon: [Web-01 ~]$ #ntp with <tab> key, lists commands prefixed with ntp, in a typical li...
common-pile/stackexchange_filtered
How to know location (x,y) postion of content in web browser window? I have a web view (web window). In JavaScript, we have a function window.scrollTo(x,y). So the content will move to (x,y) position. But now I want to do a opposite thing: Assume that I have an anchor tag. When the content go to that tag. I want to kno...
common-pile/stackexchange_filtered
How to smooth out noise of a mesh eigenvector? I have computed the eigenvectors of the cotan Laplacian of a mesh. It looks like this: I used ARPACK to get the output, as you can see, there's some lo level noise. What technique could I use to smooth things out? What are you showing us in the image? I am not sure I am ...
common-pile/stackexchange_filtered
Connect textbox text from a c# winForm to variable in static method I'm new to C# and am working on this project My code: private static void Anonymize(ElementList elementList) { string name = textBox3.Text; Anonimize(elementList.Get(DicomTag.PatientsName), PatientNames, "Patient Name " + name);...
common-pile/stackexchange_filtered
CLLocationManager sometimes provides wrong coordinates on iOS 13 Sometimes location manager gives GPS-point, which is located about hundreds meters, or several kilometers away from real device location. After it location manager continues provide us with wrong coordinates, which slowly became closer to real device loca...
common-pile/stackexchange_filtered
Selenium get value from Unicef material-ui currency TextField I need to verify a value which is in "Unicef material-ui currency textfield". I use bellow code to get the value within the textbox but the value is empty. var value = driver.FindElement(By.Id("txtCurrency")).Text; If you inspect the input field in bellow s...
common-pile/stackexchange_filtered
Ruby Nokogiri text search not working with br tags and others I'm using the Nokogiri gem in Ruby and running into some problems. I want to scrape addresses from webpages and there is no set format to the way the addresses will be displayed. I've got a list of postcodes and I want my Ruby script to return the node incl...
common-pile/stackexchange_filtered
HTML canvas.getContext performance I'm wondering how fast canvas.getContext("2d") is. Does it just return a property, or does it have to create something every time? In my code, I pass around canvases, not contexts, and I get the context every time, like so: function someFuncUsedPrettyOften(canvas) { let ctx = canvas...
common-pile/stackexchange_filtered
Why does query return no results I am trying to write a SQL query to fulfil the below requirements. All the naming conventions are correct for the tables, columns, and values. Yet my query does not return anything. Check if the SpecializationCode exists in the Specialization table. If it does not exist, insert the Spe...
common-pile/stackexchange_filtered
On what planar regions are the Earth, Moon.. for that matter, all astronomical bodies, placed in the Universe? When we are on Earth, we look UP in the Sky to see the Moon. How do we have to look at Earth from Moon.. Is it the way ? If so, how are these bodies actually placed in the space? Are all astronomical objects l...
common-pile/stackexchange_filtered
Orchard CMS Admin Error In the admin section of my Orchard CMS v1.8 site, I am getting two errors and I don't know if they are related or separate. When I try to go to the Modules page I get the following error. [DependencyResolutionException: None of the constructors found with 'Orchard.Environment.AutofacUtil.Dynami...
common-pile/stackexchange_filtered
Rails 3/jquery - Tabs rendering partials using ajax Using Rails 3 and jquery, I'm trying to setup a simple 3 tab navigation for my post#show page, rendering _post _comments and _related partials into the view when clicked. These partials don't have their own controller actions, currently. What would be the cleanest R...
common-pile/stackexchange_filtered
Kibana: vega-lite visualizations if data result is empty I'm trying to create a vega-lite visualization with a query. But if the result of the query is return empty, I get the "cannot read property 'xx' undefined" message. Some part of my visualization code is below: { $schema: https://vega.github.io/schema/vega-lite...
common-pile/stackexchange_filtered
Get canvas size from its context I'm building a few libraries for canvas graphing in javascript, and I was wondering if there was any way to get the size of the canvas from it's 2D context. I was looking for something like this. var size=ctx.size; scale=size/100; There are multiple canvas elements here, so I can't do ...
common-pile/stackexchange_filtered
Connection refused - connect(2) , while using fakes3 +paperclip+aws-sdk I am trying to test aws s3 file upload functionality with the help of paperclip gem,I have installed fakes3 gem and ran fakes3 using fakes3 -r ~/fakes3_root -p 4567; I am getting Connection refused - connect(2) error while uploading file. Here is m...
common-pile/stackexchange_filtered
NPM Package fails to compile in Clojurescript I am trying to use uber/react-map-gl with Clojurescript. I have added it the project.clj- :npm-deps {"@cljs-oss/module-deps" "^1.1.1" :react-map-gl "^3.3.0-alpha.5" :react "^16.4.1"} and npm installed it separately. When I require it from my ns - (:r...
common-pile/stackexchange_filtered
Opening downloaded programs on Windows 8.1 VERY slow When downloading files from the Internet in browsers such as Chrome it seems that they set a flag of some sort on the file telling Windows that the file was downloaded form the Internet and that it might not be safe. For a lot of files this does not cause a problem, ...
common-pile/stackexchange_filtered
Invertible Elements of $\mathbb Z[i] \subseteq \mathbb C$ How can we find all invertible elements of $\mathbb Z[i]=\{a+bi | a,b \in \mathbb Z\} \subseteq \mathbb C$? The idea is: let $u=a+bi$ be an invertible element and let $v=c+di$ be the inverse element of $u$ over $\mathbb Z[i]$. This implies that $uv=1$, but how d...
common-pile/stackexchange_filtered
How can I find pdf of this dirichlet distribution? $Y=(Y_1,\dotsb,Y_k)^t \sim Dirichlet(a_1,...,a_k,a_{k+1})$ when all $a_i = 1(i=1,\dotsb,k+1)$ I used definition to find pdf of this dirichlet distribution. $f(y)={\Gamma(k+1) \over {\Gamma(1) \dotsb \Gamma(1)}} (\prod{^k_{i=1}} {y_i}^{1-1}) (1-y_1-\dotsb -y_k)^{1-1} I...
common-pile/stackexchange_filtered
How do I know when garlic is ready to be harvested? I planted some garlic this spring and I am now wondering when I should harvest it. (I planted them between 60 and 90 days ago -- not quite sure when I put them in.) I pulled up one the other day and it didn't seem to have a head on it at all, just a stem and a very sm...
common-pile/stackexchange_filtered
How to get a mansory/pinterest layout with flexbox and flex-direction:row (not column) Please see this: Basically these are the conditions: I need the description box to be just below the title (so moved up, not alingned with the features box) I MUST use row, not column flex-direction (and I know this IS the problem)...
common-pile/stackexchange_filtered
Why sequential code outperfom parallel code in R I converted my serial code to parallel, but I don't know why parallel code takes longer than the sequential code. In sequential it takes only few seconds while in parallel it takes about 8 to 9 minutes. How can I improve my code? I was able to create a similar problem as...
common-pile/stackexchange_filtered
How to read some maths expression in English? Hi there! I am learning English and I wonder how to read this maths expression in English. can you identify a particular issue? Can you read this in your native language? Are there any simpler expressions that you can read, can you read any part of this expression? Plea...
common-pile/stackexchange_filtered
How do I display my sub-menu items on the same line? Since this is a CSS question, I'm going to post it here. I'm using the twenty twelve wordpress theme and at the moment my sub menu items each display on a separate line. How do I display all 4 menu items on the same line? try using float: left; in css Try this cs...
common-pile/stackexchange_filtered
Could the US military legally refuse to follow a legal, but unethical order? For example, if the president ordered the military to launch nukes to attack a country that poses no real threat, assuming its legal, can the military refuse to follow through on it on the grounds that it is immoral? How would an order to lau...
common-pile/stackexchange_filtered
return value only after function is finished/done I have a jQuery function/plugin that returns a value but there is a function that is called before returning that needs to be finished before returning or else the value returned is incorrect. If I put the return line inside function1().done, it doesn't seem to return ...
common-pile/stackexchange_filtered
How to separate size for variables in ggbiplot PCA I'm currently running a PCA (Principal component analysis) on a large dataset with 2000 observation and 21 variables, 20 of these variables are measurements I've done on fossils, and last 1 accounts for species. 7 of the 2000 observations are the fossils I want to incr...
common-pile/stackexchange_filtered
Update-AzureRmVmss : Required parameter 'adminPassword' is missing (null) I am trying to run a PowerShell vmss custom extension script on scale set. I get this error when it tries to run the Update-AzureRmVmss command Update-AzureRmVmss : Required parameter 'adminPassword' is missing (null). ErrorCode: InvalidParameter...
common-pile/stackexchange_filtered
Why is "ahavas haGer" commanded at least 36 times? We know that even in respect of gerim tzadikkim, many born Jews were distracted by concerns like "yichus"/race/background/minhagim and value those aspects of personality more than the middot and Torah of the ger, as is common in the chinuch/shidduch world. And we do ne...
common-pile/stackexchange_filtered
virtual method overridden issue with unique_ptr move semantics It looks like in below code snippet virtual method overridden is not happening with Adapter object and both Target and Adapter object is showing same output. #include <iostream> #include <memory> using namespace std; class Target ...
common-pile/stackexchange_filtered
Evaluating a multi-step forecasting model? The literature is a bit confusing for me on this one, from what I understand, a great deal of papers evaluate multi-step forecasting models on a single forecasting horizon on the hold out set. It seems a bit silly to me to evaluate the whole model on a single forecasting horiz...
common-pile/stackexchange_filtered
How to create a WCF web service within an ASP.NET application that can return instances of an interface as a transparent proxy My use-case: I already have a working ASP.NET application I would like to implement a new Web Service as part of that application I am supposed to use a WCF service (*.svc), not an ASP.NET web...
common-pile/stackexchange_filtered
Given one endpoint of diameter and diameter length of a circle, how to find the other end point of diameter.? I am trying to solve a coding question in which I need to get the endpoint of diameter, given is one end point and diameter length. (0,1) is point and 1 is diameter of circle. There's not a unique circle here....
common-pile/stackexchange_filtered
creating html paragraphs using javascript functions I am writing a small game in javascript. When the user presses a button, text is returned. I am getting the feeling that there is an easier way than writing: document.getElementById("logBox").innerHTML = "<p> X event is happening <p>" + document.getElementById('logBox...
common-pile/stackexchange_filtered
How to set up a scala project in IntelliJ IDEA that uses git libraries I would like to give IntelliJ IDEA a try, but I have no idea how to get going. I am simply trying to create a new project that uses Finagle Echo Server, hosted on github, as starting point. Assuming I'm starting with a clean install on Mac. I instal...
common-pile/stackexchange_filtered
How to stringify [object HTMLDivElement] to html string in javascript I have written following code to find and get the div element with id vcr_data from html string. When I try to append that div to html tag, it's getting printed as follows instead of the stringified div: ... <body>[object HTMLDivElement]</body></html...
common-pile/stackexchange_filtered
default behavior of cookies over SSL My web application is using SSL entirely. I wanted some info on following points : I just wanted to know that is there any chance of cookies shared on HTTP and not on secure https. Or if an application uses SSL then what will be default behavior of cookies. They will be shared over...
common-pile/stackexchange_filtered
Two affine subsets parallel to $U$ are equal or disjoint I am looking at a proposition on page 95 of the below reference. It states "two affine subsets parallel to $U$ are equivalent or disjoint". I think I understand what this statement means. But I don't understand how we make this English statement from the proposit...
common-pile/stackexchange_filtered
how to convert the player current time to seconds i want to convert AVPlayer current to minutes and seconds. Please suggest me how to convert Player Current time to minutes and seconds when i gone through the documentation of avplayer,i came to know that it returns cmtime Check Apple's documentation for CMTime: CMT...
common-pile/stackexchange_filtered
Extreme MacBook Pro Slowdown/Freeze My MacBook Pro (2007) on Lion has a strange behaviour. Sometimes Chrome browser stops working. When I then launch Safari, it can not load any web page. When I try to download a large file, it can be unresponsive. Sometimes working with PDF files (even small files) has the same resul...
common-pile/stackexchange_filtered
How do I print the SQL query of a view in front end? I have installed latest Drupal 8.1.1 also Devel module installed there is no any option for Display query log on devel setting page while it's present on D7 Devel module. I have created a view with relationship now I want to display SQL Query of that view at the fron...
common-pile/stackexchange_filtered
How do I properly setup a custom page layout - RefineryCMS 2.0.6 I have followed the instructions found on the Guides for building a custom layout: NOTE: The portfolio is an engine of my own, not the refinerycms-portfolio. config.layout_template_whitelist = ["application","portfolio"] config.use_layout_templates = tru...
common-pile/stackexchange_filtered
Best practices/patterns for generation PDF reports I have PDF generation feature in my app. I am using iTextPDF for generating reports, so it works well. The problem is not exactly in pdf generation but in approach. Currently PDF generation code looks horrible, hard-coded and not flexible, so there is a lot of duplicat...
common-pile/stackexchange_filtered
Flutter BloC flush streams on logout I am working with blocs and rxdart. There are some blocs that I don't instantiate "per-screen/widget" but globally in the app, since I need the same instance for the entire life of the app session. Therefore, I won't dispose them by closing the streams. When I log my user out, I wou...
common-pile/stackexchange_filtered
How i can encode some elements in MATLAB? I made two random numbers from 0 to 3. a=0; b=3; A=round(a+(b-a)*rand(1,1000)); B=round(a+(b-a)*rand(1,1000)); then i add every two bits of them. then i convert it to binary. SUM = A + B; binarySum = dec2bin(SUM); because i wanted to count transitions, i write this code: s...
common-pile/stackexchange_filtered
Adding up floats within lists containing a particular string category How can one add up float values connected to a particular category string that are in a list that contains strings and floats? For instance, in the example below, how would I sum the values of 'CategoryA'? List = [('CategoryA', 6.03), ('CategoryA', 1...
common-pile/stackexchange_filtered
How can I label terms in an equation using straight lines? Amsmath and mathtools provides two macros to label terms of an equation: \documentclass{article} \usepackage{amsmath} \usepackage{mathtools} \usepackage{amsfonts} \newcommand{\E}[3][]{\mathbb{\operatorname{E}}_{#2}#1[#3#1]} \newcommand{\KL}[2]{D_\mathrm{\oper...
common-pile/stackexchange_filtered
C# DetailsView get a value Im trying to get the userID out of my database put it into a DetailsView and get the value and set it to a label. Im getting an error that the the string is empty. public void SendButton_Click(object sender, EventArgs e) { labelID.Text = DetailsView1.Rows[0].Cells[1].Text; strVariabl...
common-pile/stackexchange_filtered
Using a 'superdll' within a set of DLLs I am redesigning the architecture of a program which interacts with hardware. Currently, it is in two parts, a dll and an exe. The exe handles the general process, and the dll handles the device drivers. Currently, the dll is very bloated and has loads of if/else statements about...
common-pile/stackexchange_filtered
Trying to figure out why empty files like /tmp/fc007620c1c8dcca are being created Example of the empty files created in /tmp: -rw------- 1 root wheel 0B Mar 27 00:57 fc007620c1c8dcca -rw------- 1 root wheel 0B Mar 27 01:00 fc007620c1c95a20 -rw------- 1 root wheel 0B Mar 27 01:01 fc007620c1c9c4e3 Thi...
common-pile/stackexchange_filtered
Multiple select in collection I would know how i can allow multiple selection on my field I have a simple_form field like this <%= f.input :activity, required: true, autofocus: true, label: "Votre Activité", collection: ["Vente", "Location", "Gestion", "Syndic"] %> In my controller devise_parameter_sanitizer.permit(:a...
common-pile/stackexchange_filtered
Sort an array of 0s, 1s and 2s (Further optimization) Below is a very simple code which sorts array of 0s, 1s and 2s. I believe it's time complexity is O(N), right? How can this algo be further improved to bring down time complexity to O(logN) or so? //Input: 0 2 1 2 0 //Output: 0 0 1 2 2 public static int[] Sort...
common-pile/stackexchange_filtered
NodeJS - securely connect to external redis server On my main server, I fetch data from an external/seperate redis server which is accessed through an api https://localhost:7000/api/?token=**** which works. However token and api is not secure. And since I want to have redis server to be separate, this technique isn't ...
common-pile/stackexchange_filtered
UILabel added programmatically showing blur text on iphone 6 int dx = (int)CGRectGetMaxX(coverView.frame)+10; int dy = (int)self.frame.size.width-CGRectGetMaxX(coverView.frame)-5; titleView = [[UILabel alloc] initWithFrame:CGRectMake(dx, padding,dy , 20)]; titleView.center = [self roundedCenterPoint:titleView.center]; ...
common-pile/stackexchange_filtered
Word or expression for Undermining your authority by being too strict I have the sense that if an authority, be it a person or otherwise (e.g. a parent or some religious text), is extremely strict on some issues, they might come to be seen as unreasonable generally. This would have the effect of undermining their influ...
common-pile/stackexchange_filtered
Purpose of the Perturbation function in Convex Optimization I am trying to get into convex optimization. But I could not find a clear explanation on why we dirsturb the objective function $f:\mathbb{R}^d \rightarrow \mathbb{R}$ like this: $$F(x,u): \mathbb{R}^d\times\mathbb{R}^m\rightarrow \mathbb{R} \\ F(x,0)=f(x)$$ I...
common-pile/stackexchange_filtered
SQL how do I INSERT INTO a tables from other seperate tables I want to insert values into a table ,with values coming from separate tables as well as a php file,but i also need there to be a where clause. I have no idea how to do this so any help would be appriated. The current SQL to get an idea whats going on is: INS...
common-pile/stackexchange_filtered
Getting incompatible integer to pointer conversion error in program. Unsure how/why exactly this is occurring but looking for an explanation I'm trying to count how many dashes "-" there are in char p[]. I loop over the string, and use the strcmp function to compare what is at the p[i] location to "-". The strcmp funct...
common-pile/stackexchange_filtered
Do I need to sign the code for automatic updates? I'm using electron-release-server. In the code: const server = 'https://release.%2A%2A%2A%2A%2A%2Aru/' const url = ${server}/update/win64/0.0.0/stable/RELEASES autoUpdater.setFeedURL({ url }) app.whenReady().then(() => { createWindow(); autoUpdater.checkForUpdat...
common-pile/stackexchange_filtered
VueJS - dynamic button component? I'd like to have a dropdown button in the top right of a bunch of pages across my web app - but not all of them. The button's options need to be specific to the page the button is on. For example, the button on the "Contacts" page needs to have options like, "New Contact", "Delete Con...
common-pile/stackexchange_filtered
Abstracting pointer-to-member-function: safety and alternatives In this problem, assume that we have handled all pointers in a nice, careful manner - to prevent question bloat I don't want to include my cleanup code here! Let's say we have two classes, Foo and Bar with class definitions as follows: class Foo { publ...
common-pile/stackexchange_filtered
How can I detect mouse input on an Area2D node in Godot (viewport and shape_idx error)? After testing out a few other engines I've settled into Godot for my game development learning process and have really appreciated the conciseness of GDScript, the node/inheritance structure, and the way observer events are covered ...
common-pile/stackexchange_filtered
Summing up the numbers based on a particular column value in a list I have a list which displays the leave history of the users in a department. Now, I want to consolidate the data in this list in such a way that I want to calculate the total number of leaves availed by each user. For example, a user has availed leaves...
common-pile/stackexchange_filtered
How to disable IE11 WebBrowser control scaling I have spent 2 days trying to solve this problem, and finally, I ask you, dear StackoverFlowers. I am developing an application for 27' multi-touch screens on C# 4.5 and I need a WebBrowser element within it. A user should only be able to pan the page by Y-axis and click o...
common-pile/stackexchange_filtered
SQL Server Management Studio 2012 vs. Visual Studio 2012 I'm going to move to 2012 version of both Visual Studio and SQL Server. Hence, I have a question related to comparison of VS2012 and SSMS 2012. First-of-all, I've read the topic «Why should I use Visual Studio 2010 over SSMS for my database development?», but sin...
common-pile/stackexchange_filtered
How to enter a character in a C program in windows without display on screen and also without pausing the screen? I'm trying to make a game program in C. How to get a char or input without displaying and pausing the screen? Please look up the curses or ncurses libraries. Also multi theading There is nothing like tha...
common-pile/stackexchange_filtered
Dynamic dropdowns - for sales contact management exercise I am trying to figure out a method in Google spreadsheets where I would be able to display information of contacts after I have selected 2 more criterias before. So imagine it this way: You see a dropdown menu in a cell - with the names of account owners - if yo...
common-pile/stackexchange_filtered
Does cp (copy) pre-allocate space with fallocate()? When copying large files (1-2 GB per file) between file systems, file fragmentation can happen if the destination file system is nearly full. Our C++ application code uses fallocate() to pre-allocate space when creating and writing data files but I'm wondering how the...
common-pile/stackexchange_filtered
we are losing data in elastic search cluster We make a poc with ElasticSearch but while doing it, we lost data in clustered enviroment. We use ES 2.4.0. Can anyone say what we are missing? Our scenario is: Open Elastic Server-1 and Server-2 with the configurations below, they are in a cluster. Index document over Ser...
common-pile/stackexchange_filtered
How to drop Materialized view in Azure Synapse Analytics How to drop materialized view in Azure Synapse Analytics ? I tried DROP MATERIALIZED VIEW [schema_name].[table_name] but it did not work. I also attempted to find the doc regarding this but surprisingly, there are none. What does "but it did not work" mean? Use...
common-pile/stackexchange_filtered