question_id
int64
37.6M
73.2M
input_text
stringlengths
88
52.4k
output_text
stringlengths
37
35.6k
title
stringlengths
15
150
tags
stringlengths
1
107
q_score
int64
-19
397
view_count
int64
3
879k
answer_count
int64
1
21
accepted_answer_id
int64
37.6M
73.8M
answer_id
int64
37.6M
73.8M
a_score
int64
-5
1.29k
is_accepted
bool
1 class
creation_date
stringlengths
20
24
input_text_instruct
stringlengths
251
52.6k
53,510,812
(Imacross) Extract Text from _Xpath_ no extract content from Class under Javascript<p>Using this code under imacros 9.0.3 running on Firefox 55 works very well extracting the text from the class</p> <pre><code>TAG XPATH="//div[contains(@class,'col-md-12 text-center alert alert-danger')]" EXTRACT=TXT </code></pre> <p>...
<p>Hope the following script should work:</p> <pre><code>var macro; macro = "CODE:"; macro += 'TAG XPATH="//div[contains(@class,\'col-md-12 text-center alert alert-danger\')]" EXTRACT=TXT' + "\n"; iimPlay(macro); iimDisplay(iimGetExtract()); </code></pre>
(Imacross) Extract Text from _Xpath_ no extract content from Class under Javascript
javascript|xpath|text|extract|imacros
0
60
1
53,572,469
53,572,469
0
true
2018-11-28T01:41:08.897Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: (Imacross) Extract Text from _Xpath_ no extract content from Class under Javascript<p>Using this code under imacros 9.0.3 running on Firefox 55 works very we...
53,572,452
How can I know the user closes tab or browser in html?<p>I´m working on a webapp MVC and want to know when the user closes the browser tab, in order to destroy his session. I´m working with jsp (html, js) and java for the internal code. Some ideas?</p>
<p>You can use <code>window.onunload</code> function from javascript</p> <pre><code>window.unload = function () { //doSomething } </code></pre> <p>or add an eventlistener to the <code>unload</code> event of the window in following way:</p> <pre><code>window.addEventListener('unload', function() { // doSomething ...
How can I know the user closes tab or browser in html?
javascript|java|html|jsp
0
52
2
53,572,501
53,572,501
0
true
2018-12-01T15:46:36.693Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I know the user closes tab or browser in html?<p>I´m working on a webapp MVC and want to know when the user closes the browser tab, in order to destr...
53,572,862
SQL Check Contraint for list of rules<p>I'm hoping someone will be able to help me with this. I'd like to create Check constraints for different categories of drivers license and the minimum age to qualify. For example</p> <pre><code>Category - Age AM - 16 A2 - 18 A - 24 </code></pre> <p...
<p>The <code>age()</code> function returns an <code>INTERVAL</code> and therefore cannot be used in a comparison with an integer (e.g. <code>[interval] &gt; 16</code>).</p> <p>However you can extract the <em>year</em> component of the interval using the <code>extract()</code> function, and that can be compared to an i...
SQL Check Contraint for list of rules
sql|postgresql
0
45
2
53,572,922
53,572,922
0
true
2018-12-01T16:34:24.747Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: SQL Check Contraint for list of rules<p>I'm hoping someone will be able to help me with this. I'd like to create Check constraints for different categories o...
53,573,255
c ++ - friendship implemetation with method or common function two files<p>when I have two .h classes where you have to implement your methods into two corresponding cpps classes. as it happens in the same file when I have:</p> <pre><code> class test { int a; int b; public: friend int sum (); }; i...
<p>There is just one class in this example.</p> <p>The friend keyword in this example just declares that the external function (in this case <code>sum</code>) is allowed to access private attributes/methods of the class that it has friendship with. It is a normal function, not a method, thus something like this: <code...
c ++ - friendship implemetation with method or common function two files
c++
0
28
1
53,573,506
53,573,506
0
true
2018-12-01T17:20:51.327Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: c ++ - friendship implemetation with method or common function two files<p>when I have two .h classes where you have to implement your methods into two corre...
53,574,076
Sockets not communicate even if no exception are launched<p>I'm trying to send a string from the client to the server, but even if all the code compiles without errors and no exception are thrown, nothing is sent. This is my server:</p> <pre><code> String nomeAccount = ""; try { //PHASE 1: T...
<p>A couple of problems are</p> <ul> <li>PrintWriter eats any Exceptions throws. You wouldn't see them if they were thrown.</li> <li>The purpose of using <code>PrintWriter</code> instead of a plain <code>Writer</code> is to use <code>println</code>, <code>print</code> or <code>printf</code></li> <li>unless you print a...
Sockets not communicate even if no exception are launched
java|string|sockets|reader
0
13
1
53,574,145
53,574,145
0
true
2018-12-01T18:58:30.260Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Sockets not communicate even if no exception are launched<p>I'm trying to send a string from the client to the server, but even if all the code compiles with...
53,574,153
create smoother curve for exponential function<p>I have x,y (<code>order</code>, <code>Hill</code>) data and want to fit my data smoothly, however my curves look not smooth. I am using <code>curve_fit</code> function and <code>matplotlib</code></p> <p>my code looks following:</p> <pre><code>def func(x, a, b, c): ...
<p>You need to define a fine x-mesh to plot the continuous smooth line as following. This is done using, for example, <code>linspace</code> as <code>order_fine = np.linspace(order[0], order[-1], 100)</code> and then passing <code>order_fine</code> to your plot function using the fit coefficients <code>*popt</code></p> ...
create smoother curve for exponential function
python|matplotlib
0
258
1
53,574,390
53,574,390
0
true
2018-12-01T19:06:56.040Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: create smoother curve for exponential function<p>I have x,y (<code>order</code>, <code>Hill</code>) data and want to fit my data smoothly, however my curves ...
53,574,408
Omit additional matches in dataframe with string search pandas<p>I'm trying to iterate through a list of stock names and prices. 'AAPL_high' works, as there is no other stock that shares a common name. </p> <p>However, on 'F_high', the code below finds 'F_high', and lists additional stocks containing the string, ex. '...
<p>To match the string in dataframe. You can do.</p> <pre><code>stocks_of_interest = ['AAPL_high', 'F_high'] # from listed stocks print out just their correlations df = pd.read_csv('test.csv') for i in stocks_of_interest: print(i) indiv = df.iloc[np.where(df['level_0'].values==i)] ...
Omit additional matches in dataframe with string search pandas
python|pandas|dataframe|filter
0
18
1
53,574,538
53,574,538
0
true
2018-12-01T19:39:59.910Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Omit additional matches in dataframe with string search pandas<p>I'm trying to iterate through a list of stock names and prices. 'AAPL_high' works, as there ...
53,575,242
Matching words from a library in one column and two shorter coulmn then merging these two data frames in r<p>I have a question regarding matching words from a library (my original data has 2000 rows) in one column to another column (13 rows). I am dealing with NA values and filling in for unequal rows. However, there a...
<p>I think you are missing <code>by.x</code> and <code>by.y</code> parameters:</p> <pre><code># merge data - full join dd &lt;- merge(x = df, y = df2, by.x = 'words', by.y = 'library', all.x = T) # add column from df dd$library &lt;- as.character(df2$library[match(dd$words, df2$library)]) print(dd) words...
Matching words from a library in one column and two shorter coulmn then merging these two data frames in r
r
0
22
1
53,575,372
53,575,372
0
true
2018-12-01T21:30:39.807Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Matching words from a library in one column and two shorter coulmn then merging these two data frames in r<p>I have a question regarding matching words from ...
53,574,857
Can a VST plugin save the incoming audio to an external wav file (separately from the DAW)?<p>I am trying to add some functionality to Pro Tools, but the only way I have figured to get a hook into the system is by making an audio plugin. Normally a VST allows you to add processing to some audio, but is there a way to ...
<p>Yes. The plugin is fed the audio in chunks and could save them to disk. Based on the routing in the DAW it sees only part of the total mix, unless it's a master plugin. </p>
Can a VST plugin save the incoming audio to an external wav file (separately from the DAW)?
audio|vst
0
44
1
53,575,436
53,575,436
0
true
2018-12-01T20:40:25.190Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Can a VST plugin save the incoming audio to an external wav file (separately from the DAW)?<p>I am trying to add some functionality to Pro Tools, but the onl...
53,575,440
Adding element to array and using that array again<p>For a class I have to create a program that asks a user for a password, and if they enter one that isn't already listed, add it to the list and allow them to enter it again and be correct. I tried writing a method to duplicate the array and add the new password but i...
<p>Your first mistake that you are using local variable for passwords, so it always initialized when you are calling method.</p> <p>Second that you are checking password twice: first check and then loop condition check.</p> <p>So recommend you to use one filed instead of local variable for passwords, and perform only...
Adding element to array and using that array again
java|arrays|loops|passwords
0
43
3
53,575,525
53,575,525
0
true
2018-12-01T22:02:48.180Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Adding element to array and using that array again<p>For a class I have to create a program that asks a user for a password, and if they enter one that isn't...
53,541,096
How do I associate data with a SignalR connection in .NET Core?<p>In my old SignalR (pre-Core) project, I used to have a <code>static ConcurrentDictionary&lt;string, MyConnectionClass&gt; Connections = new ...;</code> to represent my individual connections with additional data acquired during the connection life time.<...
<blockquote> <p>Now, I'm wondering if I should use the HubConnectionContext as a key. Is it safe to use? Will that instance always be associated with the connection id for as long as the connection is viable?</p> </blockquote> <p>No. The implementation described by that article actually uses:</p> <ol> <li><p><a hre...
How do I associate data with a SignalR connection in .NET Core?
asp.net-core-mvc|signalr-hub|asp.net-core-signalr
0
290
1
53,576,905
53,576,905
0
true
2018-11-29T14:20:32.957Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do I associate data with a SignalR connection in .NET Core?<p>In my old SignalR (pre-Core) project, I used to have a <code>static ConcurrentDictionary&lt...
53,576,805
how to create proper dimensional array using php json<p>i have two table, Car and Vendor</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-html lang-html prettyprint-override"><code>table: Car -----------------------...
<pre><code>$json = '[ { "carBrand": "Volvo", "carID": "1" }, [ { "vendorID": "1", "vendorName": "Jusoh Trading" }, { "vendorID": "2", "vendorName": "Ibrahim and Sons" } ], { "carBrand": "BMW", "carID": "2" }, [ { "vendorID": "3", "ven...
how to create proper dimensional array using php json
php|arrays|json|codeigniter|multidimensional-array
0
31
1
53,577,174
53,577,174
0
true
2018-12-02T02:27:42.567Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to create proper dimensional array using php json<p>i have two table, Car and Vendor</p> <p><div class="snippet" data-lang="js" data-hide="false" data-c...
53,577,002
Python will not open a module within my .py file<p>I was working on some code which retrieves a line in a text file ("save[#]) with the format: "[name],[boolean or integer value]" (The aim is to be able to retrieve it for save states of a game) The issue is that whenever I try to return a value from my module I get th...
<p>Don't include the <code>.py</code> in the import. This tries to import a module named <code>py</code> inside the package named <code>retrieve</code>, which is probably not what you meant. </p> <pre><code>import retrieve as retrieve_module def retrieve(): if retrieve_module.check("test", 1) == True: ret...
Python will not open a module within my .py file
python-3.x
0
23
1
53,577,208
53,577,208
0
true
2018-12-02T03:13:19.717Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Python will not open a module within my .py file<p>I was working on some code which retrieves a line in a text file ("save[#]) with the format: "[name],[boo...
53,576,460
Runtime application<p>Can I use heroku for nodejs application, which must be running always? Now I want create telegram bot without webhook and it must be running always.</p> <pre><code>const TelegramBot = require('node-telegram-bot-api'); const token = 'MY TELEGRAM BOT KEY'; const bot = new TelegramBot(token, {pollin...
<p>Yes, Deploying and running Node.js apps on Heroku is much easier than we think. You can find a guide about realtime Node.js app on Heroku <a href="https://devcenter.heroku.com/articles/node-websockets" rel="nofollow noreferrer">here</a> </p> <p>You have to use a paid plan to run realtime apps. As we know the free H...
Runtime application
node.js|heroku|runtime|telegram
0
23
1
53,577,386
53,577,386
0
true
2018-12-02T01:07:06.027Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Runtime application<p>Can I use heroku for nodejs application, which must be running always? Now I want create telegram bot without webhook and it must be ru...
53,577,336
Text to image php script doesn't execute when inside Wordpress plugin<p>I have a theme builder that I'm working on, and have a problem that I cannot figure out. I have a text to image (png) script that works great outside of my WP plugin submit forms, but when inside, it will not execute.</p> <p>I've used var_dump on ...
<p>Solved.</p> <p>Inside of text-to-image.php,</p> <p>I was using the code</p> <pre><code>$font = "./fonts/$arrayoffontsrandomized.tff"; </code></pre> <p>Apparently the path was no accurate. Changing to:</p> <pre><code>$font = dirname(__FILE__) . "/fonts/$arrayoffontsrandomized.ttf"; </code></pre> <p>Solved the i...
Text to image php script doesn't execute when inside Wordpress plugin
php|wordpress|image|text|themes
0
59
1
53,577,477
53,577,477
0
true
2018-12-02T04:14:08.017Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Text to image php script doesn't execute when inside Wordpress plugin<p>I have a theme builder that I'm working on, and have a problem that I cannot figure o...
53,577,426
Get Name From Another Table MySQL<p>I have two table in my database called</p> <blockquote> <p>number_list and number_status</p> </blockquote> <p>I am currently getting perfect result using below query</p> <pre><code>SELECT * FROM number_status WHERE number = '".$_SESSION['number1']."' OR number = '".$_SES...
<p>You can use a join query as follows</p> <pre><code>SELECT s.id, s.number, l.name FROM number_list l JOIN number_status s ON l.number=s.number WHERE s.number = '".$_SESSION['number1']."' OR s.number = '".$_SESSION['number2']."' ORDER BY l.id DESC LIMIT $start, $limit </code></pre> <p>or you can directly get the ...
Get Name From Another Table MySQL
php|mysql
0
64
1
53,577,674
53,577,674
0
true
2018-12-02T04:33:49.620Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Get Name From Another Table MySQL<p>I have two table in my database called</p> <blockquote> <p>number_list and number_status</p> </blockquote> <p>I am cu...
53,577,717
Python-Storing input variables in a loop with different names per iteration<p>Here is a simple loop. It is a while loop, but I don't care if it is a for loop or other.</p> <pre><code>answer="y" counter=1 while answer=="y": number=int(input("Enter number: ")) answer=input("Want to continue? ") counter=count...
<p>It's not ideal to have variables created <code>n</code> number of times to hold values entered in every iteration. There comes the need of something like a list which can hold <code>n</code> items:</p> <pre><code>answer = "y" numbers = [] while answer.lower() == "y": numbers.append(int(input("Enter number: "))...
Python-Storing input variables in a loop with different names per iteration
python|loops
0
2,577
3
53,577,747
53,577,747
0
true
2018-12-02T05:36:16.407Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Python-Storing input variables in a loop with different names per iteration<p>Here is a simple loop. It is a while loop, but I don't care if it is a for loop...
53,560,845
TFS WorkItemRelation Attributes Object?<p>In reference to this document: <a href="https://docs.microsoft.com/en-us/rest/api/azure/devops/wit/work%20items/get%20work%20item%20template?view=azure-devops-rest-4.1#workitemrelation" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/rest/api/azure/devops/wit/work%20...
<p>The attribute is the object type which helps us to identify the detailed properties of the workitem relationship types,</p> <p>You can easily get the definition of the attributes from <a href="https://docs.microsoft.com/en-us/rest/api/azure/devops/wit/work%20item%20relation%20types/get?view=azure-devops-rest-4.1" r...
TFS WorkItemRelation Attributes Object?
tfs|azure-devops|tfs-workitem
0
514
1
53,577,847
53,577,847
0
true
2018-11-30T15:54:59.780Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: TFS WorkItemRelation Attributes Object?<p>In reference to this document: <a href="https://docs.microsoft.com/en-us/rest/api/azure/devops/wit/work%20items/get...
53,577,205
Getting Shared Preferences in Async Task Class<p>I am trying to build an app, which takes the patient id as a shared preference and uses that id in another activity for getting the records of that id. In Main Activity I set the Shared Preferences, and it sets the value correctly. However, in FetchSinglePatientData, I a...
<p>I resolved my problem with changing my code below:</p> <pre><code>SharedPreferences sharedPref = getSharedPreferences("patientId", Context.MODE_PRIVATE); </code></pre> <p>with</p> <pre><code>SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getApplicationContext()); </code></pre> <p>It is t...
Getting Shared Preferences in Async Task Class
java|android|android-studio|android-asynctask|sharedpreferences
0
1,310
3
53,577,919
53,577,919
0
true
2018-12-02T03:48:15.910Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Getting Shared Preferences in Async Task Class<p>I am trying to build an app, which takes the patient id as a shared preference and uses that id in another a...
53,397,930
Error in RStudio while running decision tree (mac)<p>I am running a CART decision tree on a training set which I've tokenized using quanteda for a routine text analysis task. The resulting DFM from tokenizing was turned into a dataframe and appended with the class attribute I am predicting for.</p> <p>Like many DFMs, ...
<p>In the end, I found that macs don't have this same command line option since the mac version of RStudio uses all available memory by default. </p> <p>So the way I fixed this is by decreasing the complexity of the task by reducing the sparsity. I cleaned the document-term matrix by removing all tokens that did not o...
Error in RStudio while running decision tree (mac)
r|rstudio
0
58
1
53,578,288
53,578,288
0
true
2018-11-20T16:59:30Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Error in RStudio while running decision tree (mac)<p>I am running a CART decision tree on a training set which I've tokenized using quanteda for a routine te...
53,577,516
Why is running on android device using adb recommended?<p>The <a href="https://facebook.github.io/react-native/docs/running-on-device.html" rel="nofollow noreferrer">docs</a> provides 2 methods on how to connect to development server: using adb reverse and via wifi. It also says the former is recommended.</p> <p>Is th...
<p>There's no disadvantage to using WiFi. Go for it. I think they recommended only because it's easier to set up, so they get less questions about it.</p>
Why is running on android device using adb recommended?
react-native
0
25
1
53,578,435
53,578,435
0
true
2018-12-02T04:53:45.643Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why is running on android device using adb recommended?<p>The <a href="https://facebook.github.io/react-native/docs/running-on-device.html" rel="nofollow nor...
53,573,462
Kivy - A row is being duplicated/mirrored and I can't see the cause<p>First post here with a simple question that will be obvious to your well trained eyes. I have been staring at a piece of code from your site for a couple of hours and encountered an issue that I cannot find an answer for anywhere!</p> <p><a href="ht...
<p>I've worked it out, for anyone encounters the same problem.</p> <p>When we build the App:</p> <p>class test(App):</p> <pre><code>def build(self): self.root = Builder.load_file('test.kv') return self.root </code></pre> <p>The Builder.load_file loads the file in twice as it's already being called on self.r...
Kivy - A row is being duplicated/mirrored and I can't see the cause
python|python-3.x|kivy|kivy-language
0
34
1
53,578,491
53,578,491
0
true
2018-12-01T17:47:13.023Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Kivy - A row is being duplicated/mirrored and I can't see the cause<p>First post here with a simple question that will be obvious to your well trained eyes. ...
53,578,577
How is the android app is automatically updated,W/o me updating it on playstore?<p>How is the application updating, even if i didnt updated it?. Like, Amazon:- The shopping list gets updated, clothes are changed,etc. How is the interface changed?</p>
<p>You might want to take a step back and look at REST-APIs, Databases and Network requests.</p> <p>Essentially your app is asking the server for Data about items and Displays this information on your screen. The app itself doesn't hold any product information itself. I has to query the amazon server every time.</p>
How is the android app is automatically updated,W/o me updating it on playstore?
android|android-studio|android-layout|uiview
0
29
1
53,578,610
53,578,610
0
true
2018-12-02T08:19:11.020Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How is the android app is automatically updated,W/o me updating it on playstore?<p>How is the application updating, even if i didnt updated it?. Like, Amazon...
53,577,917
Makefile share a target by overriding build variable<p>I have a makefile, a part of which which looks like this:</p> <pre><code>.PHONY: all all: master dispatcher .PHONY: master master: BUILDTARGET=master master: buildbin ## Builds master .PHONY: dispatcher dispatcher: BUILDTARGET=dispatcher dispatcher: buildbin ...
<p>You can't use dependencies like this, <code>buildbin</code> is just another target and will be remade at most once per invocation. You can fix this as follows:</p> <pre><code>.PHONY: all master dispatcher all: master dispatcher master: BUILDTARGET=master dispatcher: BUILDTARGET=dispatcher master dispatcher: @...
Makefile share a target by overriding build variable
makefile|gnu-make
0
31
1
53,578,613
53,578,613
0
true
2018-12-02T06:18:29.037Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Makefile share a target by overriding build variable<p>I have a makefile, a part of which which looks like this:</p> <pre><code>.PHONY: all all: master disp...
53,578,786
About evaluation method of classification<p>I am still a beginner studying machine learning for the first time. I am dealing with problem of 4 class classification in my research. I would like to calculate accuracy, precision and recall. Since the number of data is small (about 30), the score is affected by how to be d...
<p>First of all, welcome to SO!</p> <p>30 samples is indeed tiny data. Instead of k-fold CV, consider doing <a href="https://scikit-learn.org/stable/modules/generated/sklearn.model_selection.LeaveOneOut.html" rel="nofollow noreferrer">leave-one-out CV</a> where you train your model <code>n</code> times on <code>n-1</c...
About evaluation method of classification
python|machine-learning|scikit-learn|classification
0
57
1
53,578,835
53,578,835
0
true
2018-12-02T08:51:08.150Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: About evaluation method of classification<p>I am still a beginner studying machine learning for the first time. I am dealing with problem of 4 class classifi...
53,579,180
Finding particular text from string and match it with database<p>I have a website where people can create recipe and while creating recipe they can put ingredients into steps and I want the ingredients added in every step to be highlighted and match with database so that I can change the weight and link it with ingredi...
<pre><code>$text="Pour 1 cup of the cream into a saucepan and add the sugar, salt. Scrape the seeds of the vanilla bean into the pot and then add the vanilla pod to the pot. Warm the mixture over medium heat, just until the sugar dissolves. Remove from the heat and add the remaining cream, milk, and vanilla. Stir to co...
Finding particular text from string and match it with database
php|mysql|regex
0
64
1
53,579,658
53,579,658
0
true
2018-12-02T10:00:31.057Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Finding particular text from string and match it with database<p>I have a website where people can create recipe and while creating recipe they can put ingre...
53,556,776
MySQL Join with denormalized join attribute<p>I need to perform a database join where unfortunately the database structure is not in the first normal form. I cannot change the table structure/layout because this is application generated and I can only create read-only queries to fetch data for my own statistic componen...
<p>I found out that MySQL supports a <code>FIND_IN_SET</code> function where you can pass a string to search and a list to be searched.</p> <p>Hence, a query which works is:</p> <pre><code>SELECT v.description as description, COUNT(*) as count FROM report r JOIN vehicles v ON FIND_IN_SET(v.vid, r.vehicles) GROUP BY (...
MySQL Join with denormalized join attribute
mysql|join|database-normalization
0
17
1
53,580,191
53,580,191
0
true
2018-11-30T11:35:58.317Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: MySQL Join with denormalized join attribute<p>I need to perform a database join where unfortunately the database structure is not in the first normal form. I...
53,580,821
Is it possible to have two same styles with different values?<p>I need to have different styles in my app, because it has two languages, so the font and sizes are different. Is it possible to have these two styles and the app use the style that is related to the selected language, and when the language is changed, it c...
<p>By using below code, you can do this</p> <pre><code>res/ values/ styles.xml (Default style) values-ar/ styles.xml (Specific style for Arabic) </code></pre>
Is it possible to have two same styles with different values?
android|styles
0
55
1
53,581,360
53,581,360
0
true
2018-12-02T13:40:30.597Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Is it possible to have two same styles with different values?<p>I need to have different styles in my app, because it has two languages, so the font and size...
53,573,770
Awk merge the result of three files into a single file and delimit by any character<p>I use awk to replace the space delimiter between each field so it becomes one field. I want to merge the output from processing any number of file into a resulting file, delimited by space.</p> <pre><code>awk -v OFS='^' '{for(i=1; i&...
<p>Don't do what you're trying to do, you're really messing up your files. In particular <code>^</code> is a terrible choice of a character to introduce since it's a regexp metachar and so would make any further processing much more difficult than it has to be. Why not just leave the blank chars in the input alone (con...
Awk merge the result of three files into a single file and delimit by any character
awk
0
67
2
53,581,709
53,581,709
0
true
2018-12-01T18:23:27.057Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Awk merge the result of three files into a single file and delimit by any character<p>I use awk to replace the space delimiter between each field so it becom...
53,573,658
Angularfire2, Firestore Document Retrieval Issue (using .get, possibly related to ngOnChanges)<p>My application structure has 1 service and 2 components:</p> <p>Service: Holds all of the firestore connections ViewComponent: Gets a list from the service and displays it ItemManagementComponent: Displays a form and allow...
<p><strong>The Problem</strong> As a total novice, I use a lot of code examples to get things to work, and then try to figure out WHY it worked etc. In this instance, the code snippet I found was using JSON.stringify to set the documentID value. Without realizing the consequences, I left it in.</p> <pre><code>let cur ...
Angularfire2, Firestore Document Retrieval Issue (using .get, possibly related to ngOnChanges)
angular|firebase|google-cloud-firestore|angularfire2|ngonchanges
0
39
1
53,581,810
53,581,810
0
true
2018-12-01T18:10:27.753Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Angularfire2, Firestore Document Retrieval Issue (using .get, possibly related to ngOnChanges)<p>My application structure has 1 service and 2 components:</p>...
53,471,464
Consume Zimbra Get Calendar REST Api in Java<p>I get this error when I consume the REST Api of Zimbra on Android: must Athenticate java.lang.RuntimeException: Failed : HTTP error code : 401 at ZimbraREST.main(ZimbraREST.java:33). However I am absolutely sure that my login and my password are the good ones and my co...
<p>Ok so I had to authenticate the user with the code below:</p> <pre><code> // Authentication part ------------------- String userpass = email_adress + ":" + password; conn.setRequestProperty("X-Requested-With", "Curl"); String basicAuth = "Basic " + new String(android.util.Base64.encod...
Consume Zimbra Get Calendar REST Api in Java
java|android|rest|api|zimbra
0
282
1
53,581,847
53,581,847
0
true
2018-11-25T20:12:05.807Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Consume Zimbra Get Calendar REST Api in Java<p>I get this error when I consume the REST Api of Zimbra on Android: must Athenticate java.lang.RuntimeException...
53,581,824
Python : Can't check file's content<p>I want to check if a string is in a file or not, but i can't seem to get it to work.</p> <pre><code>file = open("test.txt","r+") username = 'user' password = 'password' if username+password in file: print("true") else: print("false") </code></pre> <p>and the file contai...
<pre><code>file = open("test.txt","r+").read() </code></pre> <p>will return the file contents to <code>file</code>. Just doing <code>file = open("test.txt","r+")</code> will return a file-like object, you actually have to read the content of the file from the object.</p>
Python : Can't check file's content
python
0
63
2
53,581,854
53,581,854
0
true
2018-12-02T15:42:04.760Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Python : Can't check file's content<p>I want to check if a string is in a file or not, but i can't seem to get it to work.</p> <pre><code>file = open("test....
53,575,308
tomcat 9 service opens handle(?) on tomcat 9 command line instance<p>myapp on tomcat 9 service is here: C:\Program Files\Apache Software Foundation\Tomcat 9.0\webapps\myapp</p> <p>myapp on tomcat 9 on command line is here: C:\apache-tomcat-9.0.8\webapps\myapp</p> <p>both run fine separatly (on separate ports, http co...
<p>never mind. found this in my logback.xml </p> <pre><code>&lt;property name="DEV_HOME" value="C:/apache-tomcat-9.0.8/webapps/ews/WEB-INF/logs" /&gt; </code></pre>
tomcat 9 service opens handle(?) on tomcat 9 command line instance
tomcat
0
18
1
53,582,396
53,582,396
0
true
2018-12-01T21:41:02.200Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: tomcat 9 service opens handle(?) on tomcat 9 command line instance<p>myapp on tomcat 9 service is here: C:\Program Files\Apache Software Foundation\Tomcat 9....
53,582,369
How I can use variable as parameter in html thymeleaf<p>I'm using in my HTML Thymeleaf</p> <pre><code>&lt;h1 class="timer count-title count-number" data-to="${atendida}" data-speed="1000"&gt;&lt;/h1&gt; </code></pre> <p>but <code>data-to="${atendida}"</code> doesn't work. My controller:</p> <pre><code>modelAndView.a...
<p><code>&lt;h1 class="timer count-title count-number" data-speed="1000" th:attr="data-to=${atendida}"&gt;&lt;/h1&gt;</code></p>
How I can use variable as parameter in html thymeleaf
javascript|html|spring|thymeleaf
0
295
2
53,582,426
53,582,426
0
true
2018-12-02T16:39:34.437Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How I can use variable as parameter in html thymeleaf<p>I'm using in my HTML Thymeleaf</p> <pre><code>&lt;h1 class="timer count-title count-number" data-to=...
53,568,306
Deleting file that find using uri don't work<p>I want to build a File Manager.I get list of all files using <code>ContentResolver</code>.For example I get all audio file in this way:</p> <pre><code> private void getMusic(){ ContentResolver contentResolver=getContentResolver(); Uri songUri= MediaStore.Audio....
<p>Finally I find the solution.I should deleted file using <code>ContentResolver</code>. I done it this way:</p> <pre><code>private void deleteItem(model item){ switch (type){ case AUDIOS:{ int b=getContentResolver().delete( MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, ...
Deleting file that find using uri don't work
java|android|file|uri|delete-file
0
32
1
53,583,074
53,583,074
0
true
2018-12-01T06:21:59.860Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Deleting file that find using uri don't work<p>I want to build a File Manager.I get list of all files using <code>ContentResolver</code>.For example I get al...
53,573,705
Using @Value in PersistanceConfig<p>I am trying to database config dynamicly in dependence to environment. I would like to use @Value to get database info.</p> <p>My Config file is:</p> <pre><code> @Configuration @EnableTransactionManagement @ComponentScan(basePackages = "service") @PropertySource("classpath:appli...
<p>Problem was pretty stupid. I had my configurations file in root of project, not root of src java folder.</p>
Using @Value in PersistanceConfig
properties|configuration|spring-data-jpa
0
22
1
53,583,276
53,583,276
0
true
2018-12-01T18:15:51.743Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Using @Value in PersistanceConfig<p>I am trying to database config dynamicly in dependence to environment. I would like to use @Value to get database info.</...
53,581,920
What is the fastest bounding box prediction algorithm?<p>What is the fastest bounding box prediction algorithm without the classification?</p> <p>For example, I have a flat surface with objects on top of it. I don't to need to know the type of the objects, I need only their bounding boxes. Something like pixel wise se...
<p>I think that what you are looking for are models for <strong>"salient object detection"</strong> ("dealing with locating and segmenting the most salient object or region in a scene"). The output of such a model is a map of the same size as the input image, where each pixel's value is the probability that it is part ...
What is the fastest bounding box prediction algorithm?
computer-vision
0
66
1
53,583,401
53,583,401
0
true
2018-12-02T15:51:32.103Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: What is the fastest bounding box prediction algorithm?<p>What is the fastest bounding box prediction algorithm without the classification?</p> <p>For exampl...
53,583,342
Cannot write in logs folder even after correct permissions<p>I am getting the error <code>The stream or file "/opt/lampp/htdocs/project/storage/logs/laravel-date.log" could not be opened: failed to open stream: Permission denied</code></p> <p>I have tried setting the permissions as both <code>777</code> and <code>775<...
<p>Okay, so I read through a comment in <a href="https://laracasts.com/discuss/channels/general-discussion/laravel-framework-file-permission-security" rel="nofollow noreferrer">here</a> and changed my directory permissions to <code>777</code> for <code>app</code> and <code>public</code> folders. <code>775</code> for <c...
Cannot write in logs folder even after correct permissions
laravel-5.5|permission-denied
0
36
1
53,583,438
53,583,438
0
true
2018-12-02T18:33:08.267Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Cannot write in logs folder even after correct permissions<p>I am getting the error <code>The stream or file "/opt/lampp/htdocs/project/storage/logs/laravel-...
53,501,119
Spring Security / Application to Application / JWT bearer<p>I am working on securise the "WebFlux" endpoints of my application using Spring Security 5.1.1.RELEASE. What I would like to achieve is the following scenario :</p> <ul> <li><strong>Authentication Server</strong> : I am using Keycloak as an authentication ser...
<p>I finally manage to perform an implementation of a OAuth2 authentication process using Spring Security OAuth2 libs (client and resource-server) for a machine-to-machine scenario.</p> <p>Please find the demo sources and some explanation at this link : <a href="https://github.com/Brico87/spring-security-oauth2-m2m" r...
Spring Security / Application to Application / JWT bearer
spring-security-oauth2
0
784
1
53,583,620
53,583,620
0
true
2018-11-27T13:44:33.940Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Spring Security / Application to Application / JWT bearer<p>I am working on securise the "WebFlux" endpoints of my application using Spring Security 5.1.1.RE...
53,584,352
How to properly pass variables through different functions PYTHON<p>I am working on a hangman game for a couple days. I am currently making the functions. I've researched how to pass a local variable to another function, but it doesn't seem to be working. I am assuming the problem is with <strong>theme = start().</stro...
<p>First of all, <code>string.casefold() == "History"</code> will never be true because <code>casefold</code> acts as a <code>lower</code> but more aggressive. Just change "History" to "history" and it'll work.</p> <p>Second, you might want to look into <a href="http://www.jesshamrick.com/2011/05/18/an-introduction-to...
How to properly pass variables through different functions PYTHON
python
0
51
1
53,584,388
53,584,388
0
true
2018-12-02T20:33:55.740Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to properly pass variables through different functions PYTHON<p>I am working on a hangman game for a couple days. I am currently making the functions. I'...
53,584,026
Toggle the cinema mode on Youtube with Javascript<p>I am trying to enable the cinema mode on Youtube using the <a href="https://developers.google.com/youtube/iframe_api_reference" rel="nofollow noreferrer">Youtube Player API</a>. I can do things such as playing the video and changing the volume:</p> <pre><code>myPlaye...
<p>I managed to click the button programmatically:</p> <pre><code>&gt;&gt; collection = document.getElementsByClassName('ytp-size-button') &gt;&gt; button = collection.item(0) &gt;&gt; button.click() </code></pre> <p>I didn't find a way to get the current state (enabled/disabled).</p> <p><strong>EDIT:</strong></p> ...
Toggle the cinema mode on Youtube with Javascript
javascript|youtube|youtube-javascript-api
0
1,055
4
53,584,715
53,584,715
0
true
2018-12-02T19:53:19.943Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Toggle the cinema mode on Youtube with Javascript<p>I am trying to enable the cinema mode on Youtube using the <a href="https://developers.google.com/youtube...
53,584,835
Min function while using strings in python<p>I'm using chisquare test for my data. I'm appending them in a loop in that way: My <code>.txt</code> file looks like below, it has 180 rows with strings like that. Now I want to find the minimum value from those 180 rows, which is contained in parentesis, like in example bel...
<p>Ok, so I've found a way to solve this problem. Code below:</p> <pre><code> o = chisquare(f_obs=fin, f_exp=y) rows = str(Date) + str(Start_time_hours_format) + str(Start_time_minutes_format) + " Chi for {} degree model ".format(r) + str(o[0:1]) print(rows) table.append(rows) with open('measurements.t...
Min function while using strings in python
string|python-3.x|list|min
0
67
2
53,585,273
53,585,273
0
true
2018-12-02T21:33:37.483Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Min function while using strings in python<p>I'm using chisquare test for my data. I'm appending them in a loop in that way: My <code>.txt</code> file looks ...
53,585,104
python- list of tuples loop; check if any tuple element is in the next tuple<p>I have a list of tuples like:</p> <p><code>list=[('Jim','Pam'),('Jim','Homer'),('Bart','Marge')]</code></p> <p>I am trying to compare the elements of the current tuple with the elements of the next tuple and print "back to back". </p> <p>...
<p>You can zip <code>list</code> with <code>list[1:]</code> to get all adjacent pairs.</p> <pre><code>for a, b in zip(lst, lst[1:]): if any(x in b for x in a): print("back to back") </code></pre>
python- list of tuples loop; check if any tuple element is in the next tuple
python-3.x|list|tuples
0
260
1
53,585,276
53,585,276
0
true
2018-12-02T22:13:35.223Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: python- list of tuples loop; check if any tuple element is in the next tuple<p>I have a list of tuples like:</p> <p><code>list=[('Jim','Pam'),('Jim','Homer'...
53,578,653
How to bind event for Canvas content?<p>I have <code>Canvas</code> panel with gradient background color, and i want to add there some buttons with png images. Using canvas is only one solution to make good transparent textured buttons. I am using <code>create_image</code> method but it returns int and i cant bind event...
<p>Canvas does this with tags:</p> <pre><code>tab.create_image(x, y, image=img, tags='item') tab.tag_bind('item', '&lt;Button-1&gt;', click) </code></pre>
How to bind event for Canvas content?
python|events|button|canvas|tkinter
0
33
1
53,585,671
53,585,671
0
true
2018-12-02T08:28:10.497Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to bind event for Canvas content?<p>I have <code>Canvas</code> panel with gradient background color, and i want to add there some buttons with png images...
53,585,801
how to pass only one argument with click in python?<p>I am new using <a href="https://pypi.org/user/mitsuhiko/" rel="nofollow noreferrer">click package</a>. I have a function with two arguments and I want to pass only one of them using click, the argument <code>i</code> is passed inside of the statement if.</p> <pre><...
<p>You can just wrap the relevant code in a "command" function and use a closure over the <code>filename</code> variable:</p> <pre><code>import click import matplotlib.animation as animation import matplotlib.pyplot as plt @click.command() @click.argument('filename') def main(filename): fig = plt.figure() ax...
how to pass only one argument with click in python?
python|arguments
0
53
1
53,585,975
53,585,975
0
true
2018-12-02T23:55:09.830Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to pass only one argument with click in python?<p>I am new using <a href="https://pypi.org/user/mitsuhiko/" rel="nofollow noreferrer">click package</a>. ...
53,566,980
Jaspersoft Studio JDBC to Sql Server not liking dates<p>I have tried server variances of the following script in an attempt to pull date from sql-server into a jasper report studio project with no luck. The following produced no errors but a warning that "Date is not recognized as a built in function name. Do you want ...
<p>It ended up that JDBC was lying when it said the code had errors. the following code did work.</p> <pre><code> SELECT * FROM (SELECT '' AS id3, ISNULL(ROUND(SUM(amount),0),0) FORMAT(purchase_date, 'MMM yy') AS Date_db_3, DATEADD(month, -3, getdate()) AS Date_3 FROM SALES WHERE YEAR(purchase_date) = YEAR(DATEADD(m...
Jaspersoft Studio JDBC to Sql Server not liking dates
sql|sql-server|jasper-reports
0
61
1
53,585,986
53,585,986
0
true
2018-12-01T01:24:44.977Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Jaspersoft Studio JDBC to Sql Server not liking dates<p>I have tried server variances of the following script in an attempt to pull date from sql-server into...
53,585,871
Sampling from a 2d numpy array<p>I was wondering if there was a reasonably efficient way of sampling from a 2d numpy array. If I have a generic array:</p> <pre><code>dims = (4,4) test_array = np.arange(np.prod(dims)).reshape(*dims) test_array array([[ 0, 1, 2, 3], [ 4, 5, 6, 7], [ 8, 9, 10, 11], ...
<p>You could use <code>np.random.choice</code> + <code>np.unravel_index</code> to assign directly to your array.</p> <pre><code>test_array[ np.unravel_index(np.random.choice(np.prod(dims), 2, replace=False), dims) ] = 100 </code></pre>
Sampling from a 2d numpy array
python-3.x|numpy|numpy-ndarray
0
45
1
53,586,422
53,586,422
0
true
2018-12-03T00:08:12.110Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Sampling from a 2d numpy array<p>I was wondering if there was a reasonably efficient way of sampling from a 2d numpy array. If I have a generic array:</p> <...
53,586,677
Hibernate query not returning fresh data<p>I have a controller as follows:</p> <pre><code>SessionFactory sessionFactory = HibernateUtil.getSessionFactory(); Transaction tx = null; Session session = sessionFactory.openSession(); session.flush(); tx=session.beginTransaction(); List&lt;Plane&gt; allPlanes = session....
<p>You can’t make changes to the database outside of JPA and expect JPA to know about it. </p> <p>There is a way to get hibernate to reset, but you will have to have your database trigger and then send message over the network, or call a function manually.</p> <p>On my systems, I have a manual reset that I invoke fr...
Hibernate query not returning fresh data
java|mysql|hibernate
0
558
2
53,586,791
53,586,791
0
true
2018-12-03T02:28:24.067Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Hibernate query not returning fresh data<p>I have a controller as follows:</p> <pre><code>SessionFactory sessionFactory = HibernateUtil.getSessionFactory();...
53,497,315
How to update documents in SolrCloud using MapReduceIndexerTool?<p>I am trying to index data to SolrCloud using <a href="https://www.cloudera.com/documentation/enterprise/latest/topics/search_mapreduceindexertool.html" rel="nofollow noreferrer">MapReduceindexerTool</a>. I am successfully indexing using MapReduceindexer...
<p>I found this <a href="https://grokbase.com/t/lucene/solr-user/1456vfs4tx/update-existing-documents-using-mapreduceindexertool" rel="nofollow noreferrer">post</a>,and currently the tool can only insert documents and cannot update or delete existing SOLR documents.It seems like there is no plan to make it possible to ...
How to update documents in SolrCloud using MapReduceIndexerTool?
mapreduce|solrcloud
0
49
1
53,587,089
53,587,089
0
true
2018-11-27T10:13:11.840Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to update documents in SolrCloud using MapReduceIndexerTool?<p>I am trying to index data to SolrCloud using <a href="https://www.cloudera.com/documentati...
53,587,383
The "Previous" button is locked if any page except the last one is open<p>In general, let's say you have a pagination with a limit of 3 and with a step of 3. And at the moment you have 5 pages. Suppose we are on page 1, the “Previous” button is locked (this is how it should be), the “Next” button is working (everythin...
<p>With your current logic, the Previous button is only enabled when <code>noMore</code> is true - that is, on the last page. You don't want to use the same boolean variable for both the Previous and Next buttons, or they will never be enabled at the same time. Instead, try <code>[disabled]="offset &lt;= 0"</code> for ...
The "Previous" button is locked if any page except the last one is open
angular
0
26
1
53,588,537
53,588,537
0
true
2018-12-03T04:13:37.043Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: The "Previous" button is locked if any page except the last one is open<p>In general, let's say you have a pagination with a limit of 3 and with a step of 3...
53,523,501
Filtering REST api calls<p>I'm facing difficulty in finding out REST Api calls being made in browser as there are so many calls being shown in network tab like for image,html etc..How to filter only rest api calls being made using chrome Dev tools? </p>
<p>There is a filter option available in Chrome Dev tools There you can select Ajax which the rest API call you make.</p>
Filtering REST api calls
google-chrome|google-chrome-devtools
0
291
1
53,588,582
53,588,582
0
true
2018-11-28T16:00:45.283Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Filtering REST api calls<p>I'm facing difficulty in finding out REST Api calls being made in browser as there are so many calls being shown in network tab l...
53,588,881
Run functions when current time is outside user metadata database times<p>I have a somewhat complicated time equation that had been driving me mental!</p> <p>What I have so far is:</p> <pre><code>$current = time(); // UTC time $user_in = '8:00 am'; // local time $user_out = '4:00 pm'; // local time $gmt_off = '...
<p>Just use <a href="http://php.net/manual/en/function.date-default-timezone-set.php" rel="nofollow noreferrer"><code>date_default_timezone_set</code></a> and <a href="http://php.net/manual/en/function.strtotime.php" rel="nofollow noreferrer"><code>strtotime</code></a> to get your timestamp values, and they will all be...
Run functions when current time is outside user metadata database times
php|datetime|comparison
0
29
1
53,589,416
53,589,416
0
true
2018-12-03T06:57:39.757Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Run functions when current time is outside user metadata database times<p>I have a somewhat complicated time equation that had been driving me mental!</p> <...
53,586,681
How can I concatenate columns and sum values from two data frames in Julia?<p>I have two data frames (left data frame is 1, the other is 2) and I want to get the final data frame based on the below conditions:</p> <p>1.Group Col2 by Col1, for example, A 566,788,888,999,1212</p> <p>2.In data frame 2, I can find that t...
<p>Is this what you want?</p> <pre><code>using DataFrames m1 = ["A" 566 1 "A" 788 2 "A" 888 3 "A" 999 4 "A" 1212 5 "B" 700 6 "B" 701 7 "B" 702 8 "B" 703 9 "B" 704 10 "B" 705 ...
How can I concatenate columns and sum values from two data frames in Julia?
julia|julian-date
0
283
1
53,589,684
53,589,684
0
true
2018-12-03T02:28:31.027Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I concatenate columns and sum values from two data frames in Julia?<p>I have two data frames (left data frame is 1, the other is 2) and I want to get...
53,494,839
Cordova Code Push - multi-catch statement is not supported in -source 1.6<p>Similar to <a href="https://stackoverflow.com/questions/41943950/multi-catch-statement-is-not-supported-in-source-1-6-use-source-7-or-higher-t">multi-catch statement is not supported in -source 1.6 (use -source 7 or higher to enable multi-catch...
<p>New release fixed this issue. <a href="https://github.com/Microsoft/cordova-plugin-code-push/releases/tag/v1.11.15" rel="nofollow noreferrer">https://github.com/Microsoft/cordova-plugin-code-push/releases/tag/v1.11.15</a></p> <p>Update your <code>cordova-plugin-code-push</code> to <code>1.11.15</code> or latest ver...
Cordova Code Push - multi-catch statement is not supported in -source 1.6
java|cordova|code-push
0
65
1
53,590,048
53,590,048
0
true
2018-11-27T07:39:05.677Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Cordova Code Push - multi-catch statement is not supported in -source 1.6<p>Similar to <a href="https://stackoverflow.com/questions/41943950/multi-catch-stat...
53,588,969
why the first included class is recognized but the second included class is not?<p>Hi I have 2 classes named Search and Search2. When I include them in the mainwindow.h in qt, only the first included class is recognized and the second one is not. In other words if I first include search2.h then search.h, it will not re...
<p>Now excatly sure if this is the reason, but in your second class you added the same header definition: </p> <pre><code>#ifndef SEARCH_H instead of #ifndef SEARCH2_H </code></pre>
why the first included class is recognized but the second included class is not?
qt|class|header-files
0
51
1
53,590,869
53,590,869
0
true
2018-12-03T07:05:49.427Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: why the first included class is recognized but the second included class is not?<p>Hi I have 2 classes named Search and Search2. When I include them in the m...
53,499,109
Zuul error filter: set response status dependent on error<p>I am using <a href="https://github.com/Netflix/zuul" rel="nofollow noreferrer">Netflix Zuul v2.0</a> as an authentication proxy, i.e. I am using a "pre" filter to add a JWT token to the request header. </p> <p>The problem that I have is the following: when th...
<p>Upgrading to Zuul 2.0.1.RELEASE <a href="https://github.com/spring-cloud/spring-cloud-netflix/issues/2965" rel="nofollow noreferrer">resolved the problem</a>. When the request resource is unavailable a <a href="https://github.com/dev-priporov/spring-cloud-netflix/commit/1ba7b305e75b379b4f1365464b441811cdf0a24d" rel=...
Zuul error filter: set response status dependent on error
httpresponse|netflix-zuul
0
1,024
1
53,591,313
53,591,313
0
true
2018-11-27T11:54:10.133Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Zuul error filter: set response status dependent on error<p>I am using <a href="https://github.com/Netflix/zuul" rel="nofollow noreferrer">Netflix Zuul v2.0<...
53,589,767
Check if location layer was changed. Yandex MapKit 3.0<p>How to check if i change camera location for disable anchor? I dont see solution in <a href="https://github.com/yandex/mapkit-android-demo/tree/master/src/main/java/com/yandex/mapkitdemo" rel="nofollow noreferrer">examples</a> or <a href="https://tech.yandex.ru/m...
<p>I found the solution.</p> <pre><code>public class WorkFragment extends BaseFragment implements ..., CameraListener { @Override public void onCreate(){ ... mapView.getMap().addCameraListener(this); .... } @Override public void onCameraPositionChanged(Map map, CameraPosition cameraPosition, CameraUpd...
Check if location layer was changed. Yandex MapKit 3.0
android|geolocation|mapkit|yandex|yandex-maps
0
512
1
53,591,713
53,591,713
0
true
2018-12-03T08:11:37.047Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Check if location layer was changed. Yandex MapKit 3.0<p>How to check if i change camera location for disable anchor? I dont see solution in <a href="https:/...
53,480,195
LinkExtractor using scrapy in python<p>I am trying to read a index page to scrape quotes categories from a quote site to learn scrapy. Im new to this!</p> <p>Im able to read individual pages (categories) with my code, however I would like to read a index page to read the quote pages. </p> <p>The <code>def parse_item<...
<p>I have figured this issue out. Whilst there was probably a way to resolve this issue with the <code>Rule(LinkExtractor</code>, I instead used cascade of response.css queries to follow the links on the topics page. </p> <p>This is the final working version...</p> <pre><code>import scrapy class QuotesBrainy(scrapy....
LinkExtractor using scrapy in python
python|scrapy|spyder
0
1,309
2
53,591,756
53,591,756
0
true
2018-11-26T11:32:03.430Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: LinkExtractor using scrapy in python<p>I am trying to read a index page to scrape quotes categories from a quote site to learn scrapy. Im new to this!</p> <...
53,410,238
How to filter on Apache Edgent and also show the values which were filtered?<p>I am using Apache Edgent (Java framework) to poll values from a HCSR04 ultrasonic sensor on a Raspberry Pi every 3 seconds. I use a filter to not get values from 50cm to 80cm.</p> <pre><code> UltrasonicStream sensor = new UltrasonicStre...
<p>I implemented like this:</p> <pre><code>UltrasonicStream sensor = new UltrasonicStream(); DirectProvider dp = new DirectProvider(); Topology topology = dp.newTopology(); TStream&lt;Double&gt; tempReadings = topology.poll(sensor, 3, TimeUnit.SECONDS); TStream&lt;Double&gt; filteredReadings = tempReadings.filter(...
How to filter on Apache Edgent and also show the values which were filtered?
apache-edgent
0
39
2
53,592,037
53,592,037
0
true
2018-11-21T10:38:08.217Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to filter on Apache Edgent and also show the values which were filtered?<p>I am using Apache Edgent (Java framework) to poll values from a HCSR04 ultras...
53,592,230
How to retrieve the value of switch and pass into Object?<p>I am trying to get the value of a switch and pass it to an object in a view controller.</p> <p>Below is the code of my view controller. I have created a label, switch outlet, and switch action. </p> <pre><code>@IBOutlet weak var firstTimeConducting: UILabel!...
<p>The error is pretty clear:</p> <p>In Interface Builder there is a dead connection to a selector <code>first_TimeConduct</code>. Most likely you renamed the action method.</p> <p>Search for <code>first_TimeConduct</code> with <kbd>⇧⌘F</kbd> and delete the connection.</p>
How to retrieve the value of switch and pass into Object?
swift|uiswitch|unrecognized-selector
0
43
1
53,592,432
53,592,432
0
true
2018-12-03T10:50:41.433Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to retrieve the value of switch and pass into Object?<p>I am trying to get the value of a switch and pass it to an object in a view controller.</p> <p>B...
53,588,506
My question is about XML data in SQL Server - need to understand this SQL function below<p>Here is a function which my application is using to set a data of a table (grid) as it is in a normal header fields. For example if I choose YES in a header every data in that grid and row if it is NO it will change into YES. But...
<p>Your title tells me, that you want to understand this function. But the question in the text is</p> <blockquote> <p>How can i get the XML string for this.</p> </blockquote> <p>Well, to answer this first: This was best at the sender. But you can start the <em>"SQL-Server-Profiler"</em> and monitor the queries fly...
My question is about XML data in SQL Server - need to understand this SQL function below
sql|sql-server|xml
0
25
1
53,592,920
53,592,920
0
true
2018-12-03T06:24:37.227Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: My question is about XML data in SQL Server - need to understand this SQL function below<p>Here is a function which my application is using to set a data of ...
53,592,186
Modify and flatten values from Pandas dataframe<p>Here is the dataframe I am working with: </p> <pre><code> 0 0 380.143752 1 379.942595 2 379.589472 3 379.816187 4 379.622086 5 379.299071 6 379.559615 </code></pre> <p>dtypes gives this:</p> <pre><code>0 float64 dtype: object </code></pre> <p>Yo...
<p>A <strong>Transpose of the dataframe</strong> should give you what you need.</p> <pre><code>newdf = (pd.DataFrame(df)).T </code></pre> <p>This will still have headers though but you can use the data in your normal operations ignoring the header and index</p> <p>e.g. write to a csv file</p> <pre><code>newdf.to_c...
Modify and flatten values from Pandas dataframe
python|pandas|dataframe|flatten|columnsorting
0
75
2
53,592,969
53,592,969
0
true
2018-12-03T10:48:04.517Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Modify and flatten values from Pandas dataframe<p>Here is the dataframe I am working with: </p> <pre><code> 0 0 380.143752 1 379.942595 2 379....
53,590,523
Jqgrid server side data not loaded in the second Jquery tab<p>I have a html file and a js file using jqgrid and jquery tabs having 3 table tabs. Server side data was loaded properly in the 1st tab but NOT loaded in the 2nd and 3rd tab. Please suggest what I'm missing here.</p> <pre><code>$('#tabs').tabs({ // inside Aj...
<p>You have a error in your html definition in case you use html4 or html 5 - the div tag can not have self closing tag. - i.e the definition should be changed to:</p> <pre><code>&lt;div id="gridWrapper"&gt; &lt;div id="tabs"&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="#tabs-1"&gt;Tab1&lt;/a&gt;&lt;/li&gt; ...
Jqgrid server side data not loaded in the second Jquery tab
javascript|jquery|jqgrid|jquery-ui-tabs
0
42
1
53,593,670
53,593,670
0
true
2018-12-03T09:11:04.490Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Jqgrid server side data not loaded in the second Jquery tab<p>I have a html file and a js file using jqgrid and jquery tabs having 3 table tabs. Server side ...
53,591,315
Apache still loads test page when the log says it has rewritten the request to a php file<p>I have configured an apache virtualhost to point localhost to /var/www/html/mysite/public which contains a htaccess file rewriting all request to handle.php in the same dir, I know the htaccess file works because syntax errors i...
<p>This was because my apache was in a docker container and docker was preventing apache reading dirs that didn't exist, strace was extremely useful in debugging this. See <a href="https://github.com/moby/moby/issues/1295" rel="nofollow noreferrer">https://github.com/moby/moby/issues/1295</a></p>
Apache still loads test page when the log says it has rewritten the request to a php file
php|apache|.htaccess|mod-rewrite
0
21
1
53,595,083
53,595,083
0
true
2018-12-03T10:00:05.200Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Apache still loads test page when the log says it has rewritten the request to a php file<p>I have configured an apache virtualhost to point localhost to /va...
53,561,596
this.setState refuses to run<p>here is the function that runs on Submit: </p> <pre><code> signup(user = {}) { this.setState({loading: true}); axios.post( '/users.json', { user }) .then(response =&gt; { this.props.propagateSignIn(response.data) this.setState({ error: null, ...
<p>as @sebink said When you create a ref, make sure it refers to the right component. In my case, <code>this.email.current.value,</code> actually refers to an input from another component as I split my Component into several ones and forgot to change some refs. </p>
this.setState refuses to run
reactjs|axios
0
41
2
53,595,212
53,595,212
0
true
2018-11-30T16:42:15.367Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: this.setState refuses to run<p>here is the function that runs on Submit: </p> <pre><code> signup(user = {}) { this.setState({loading: true}); axio...
53,593,983
Place <a> over the border ? Mail Newsletter<p>I want to put the <code>&lt;a&gt;</code> tag over the border like the image, but it must be responsive in outlook 2013. </p> <p>Outlook doesn't support <code>Max-Height</code> , paddings only in table elements ( <code>td</code>, <code>th</code>, <code>tr</code> ) , any que...
<p>Here it is, an working example of what you are looking for:</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;style&gt; button:focus { outline: none; cursor: pointer } body { font-family: 'Arial'; } &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;table style="padding-left:28px;padd...
Place <a> over the border ? Mail Newsletter
html|css|email|outlook|newsletter
0
73
2
53,595,242
53,595,242
0
true
2018-12-03T12:35:50.360Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Place <a> over the border ? Mail Newsletter<p>I want to put the <code>&lt;a&gt;</code> tag over the border like the image, but it must be responsive in outlo...
53,596,953
how to implement two aggregate functions on the same column mysql<pre><code>SELECT max(sum(`orderquantity`)), `medicinename` FROM `orerdetails` WHERE `OID`= ( SELECT `OrderID` FROM `order` where `VID` = 5 AND `OrerResponse` = 1 ) GROUP BY `medicinename` </code></pre> <p>i want to get the...
<p>You don't need <code>Max()</code> here. Instead sort your recordset by that <code>Sum('orderquantity')</code> descending, and take the first record returned:</p> <pre><code>SELECT sum(`orderquantity`) as sumoforderqty, `medicinename` FROM `orerdetails` WHERE `OID`= ( SELECT `OrderID` FROM `order...
how to implement two aggregate functions on the same column mysql
mysql|database
0
17
1
53,597,005
53,597,005
0
true
2018-12-03T15:35:12.177Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to implement two aggregate functions on the same column mysql<pre><code>SELECT max(sum(`orderquantity`)), `medicinename` FROM `orerdetails` WHERE `OID`...
53,596,549
Trying to create a leaderboard using Firebase backend and sorting data doesn't retrieve data correctly (Swift 4.2)<p>Im currently trying to implement a leaderboard in my app using a UITableView and a Firebase Database backend, I need to be able to sort data according to highest score and display the Username and score ...
<p>If you request the result of a query as a value, you get a single snapshot that has all the nodes that match your query. To get to each individual node, you need to loop over the children of that snapshot:</p> <pre><code>highScoreDB.observeSingleEvent(of: .value) { (snapshot) in for score in snapshot.children.all...
Trying to create a leaderboard using Firebase backend and sorting data doesn't retrieve data correctly (Swift 4.2)
ios|swift|firebase|firebase-realtime-database|uikit
0
535
2
53,597,038
53,597,038
0
true
2018-12-03T15:13:13.167Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Trying to create a leaderboard using Firebase backend and sorting data doesn't retrieve data correctly (Swift 4.2)<p>Im currently trying to implement a leade...
53,596,507
Error migrating truffle rinkeby [Cannot read property 'bind' of undefined]<p>I'm trying to deploy/migrate contract to rinkeby network, while using command: truffle deploy --reset --network=rinkeby </p> <p>It loads the keys and afterwards throws error:</p> <pre><code>C:\Users\marti\AppData\Roaming\npm\node_modules\tru...
<p>Okay so the issue was comming from the truffle-hdwallet-provider version.</p> <p>changing the ver from : 1.0.0-web3one.2 to : 0.0.6</p> <p>solved the issue</p>
Error migrating truffle rinkeby [Cannot read property 'bind' of undefined]
ethereum|solidity|truffle
0
303
1
53,597,093
53,597,093
0
true
2018-12-03T15:10:19.143Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Error migrating truffle rinkeby [Cannot read property 'bind' of undefined]<p>I'm trying to deploy/migrate contract to rinkeby network, while using command: t...
53,525,208
Problem executing Angular Universal with lodash-es as a dependency<p>I am converting my existing Angular project with an Express backend to Angular Universal. I am facing an error</p> <pre><code>&lt;Project&gt;\node_modules\lodash-es\cloneDeep.js:1 (function (exports, require, module, __filename, __dirname) { import b...
<p>There was an error in the webpack merge configuration.</p> <pre><code>"customWebpackConfig": { "path": "./universal-webpack.config.js", "mergeStrategies": { "externals": "replace" } } </code></pre> <p>is the correct configuration object where I replaced <code>"mergeStrategies": { "loaders": "replace" }</co...
Problem executing Angular Universal with lodash-es as a dependency
angular|webpack|angular-cli
0
272
1
53,597,315
53,597,315
0
true
2018-11-28T17:42:12.267Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Problem executing Angular Universal with lodash-es as a dependency<p>I am converting my existing Angular project with an Express backend to Angular Universal...
53,543,003
How to do equivalent of Flask Safe in ajax call<p>I cannot seem to replicate the equivalent functions in my Ajax call as I can in regular Javascript on my main HTML page. I am using Python/Flask as the back-end. Is there a similar way to use the {{ variable | safe }} syntax in AJAX to get similar results?</p> <p>My sa...
<p>It turns out in the AJAX call, the result is being passed back as a string and not a JSON object, therefore, to convert it, I wrote this </p> <pre><code>$.getJSON('/get_data', {}, function(data) { console.log(JSON.parse(data.result)); } </code></pre> <p>and my results were as expected</p>
How to do equivalent of Flask Safe in ajax call
javascript|python|json|ajax|flask
0
59
1
53,597,360
53,597,360
0
true
2018-11-29T16:00:43.337Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to do equivalent of Flask Safe in ajax call<p>I cannot seem to replicate the equivalent functions in my Ajax call as I can in regular Javascript on my ma...
53,583,807
Webpack is unable to find imports that TypeScript (apparently) finds<p>Background: I started from the (works fine for me) <a href="https://docs.microsoft.com/en-us/aspnet/core/tutorials/signalr-typescript-webpack?view=aspnetcore-2.1&amp;tabs=visual-studio" rel="nofollow noreferrer">ASP.NET Core example of SignalR and w...
<p><a href="https://webpack.js.org/concepts/module-resolution/" rel="nofollow noreferrer">After reading up on webpack module resolution</a>, another solution is to switch from module references to either absolute or relative path references.</p> <p><strong>Changes:</strong><br> <strong>tsconfig.json:</strong></p> <pr...
Webpack is unable to find imports that TypeScript (apparently) finds
typescript|webpack|box2d
0
3,395
2
53,598,497
53,598,497
0
true
2018-12-02T19:27:55.270Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Webpack is unable to find imports that TypeScript (apparently) finds<p>Background: I started from the (works fine for me) <a href="https://docs.microsoft.com...
53,599,918
error reading data from the pre-filled database<p>I have a database that lies in assets/databases/. I use the library <a href="https://github.com/jgilfelt/android-sqlite-asset-helper" rel="nofollow noreferrer">android-sqlite-asset-helper</a> Tried to archive the database, did not help. The error all the same gets out<...
<p>Instead of <code>private static String DB_NAME = "databases/brodsky.db";</code></p> <p>You should use <code>private static String DB_NAME = "brodsky.db";</code></p> <p>SQliteAssetHelper includes the following in the readme file :-</p> <blockquote> <p>Extend SQLiteAssetHelper as you would normally do SQLiteOpenH...
error reading data from the pre-filled database
android|sqlite|android-contentprovider
0
34
1
53,600,650
53,600,650
0
true
2018-12-03T18:42:16.937Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: error reading data from the pre-filled database<p>I have a database that lies in assets/databases/. I use the library <a href="https://github.com/jgilfelt/a...
53,598,683
asp.net MVC Read URL Query parameter<p>I am relatively new to dotnet core, I am trying to read an Id value from the url using <code>[FromQuery]</code> attribute but it keeps coming in as a 0.</p> <p>I am making a <code>POST</code> request to "/api/Sponsors/UploadImage/-1"</p> <p>here is my action</p> <pre><code> ...
<p>It's always 0 because that's the default value for a number in C#. You are not passing a query string in your url that is the problem, so the default is 0.</p> <p>Your URL should look like this... </p> <p><strong>/api/sponsors/uploadimage?id=1</strong></p>
asp.net MVC Read URL Query parameter
c#|asp.net|rest|post|.net-core
0
44
1
53,600,699
53,600,699
0
true
2018-12-03T17:17:26.843Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: asp.net MVC Read URL Query parameter<p>I am relatively new to dotnet core, I am trying to read an Id value from the url using <code>[FromQuery]</code> attrib...
53,584,296
MSDeploy - Transform configuration twice in the same deploy<p>In my <code>web.config</code> file i have two sections that can tranforem at deploy.</p> <ol> <li>Environment settings (include connection string...)</li> <li>Authentication (include use Auth or not)</li> </ol> <p>Both sections are independent. So what i...
<p>I add to my msdeploy command <code>deployProfile</code> parameter (that contains the auth replacement\add) and a <code>configuration</code> parameter (include the environment changes).</p> <p>this two parameters make the <code>.config</code> file to pass two transformations.</p>
MSDeploy - Transform configuration twice in the same deploy
xml|web-config|msdeploy|web.config-transform
0
18
1
53,600,934
53,600,934
0
true
2018-12-02T20:25:50.757Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: MSDeploy - Transform configuration twice in the same deploy<p>In my <code>web.config</code> file i have two sections that can tranforem at deploy.</p> <ol>...
53,600,559
LabelListAttribute example?<p>I have a field in a Database that is set as a varchar(1), and it is bound to a non editable textbox in acumatica. I would like it so that when the value of the field is equal to 'A', the value displayed in the textbox in Acumatica is something longer such as 'Apple'. The user will not be e...
<p>For the use case you are describing you should indeed use a <code>PXDropDown</code> control bounded to a DAC field decorated with <code>PXStringList</code> attribute as described in T100 Configuring a Combo Box example.</p>
LabelListAttribute example?
acumatica
0
51
1
53,601,051
53,601,051
0
true
2018-12-03T19:27:23.707Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: LabelListAttribute example?<p>I have a field in a Database that is set as a varchar(1), and it is bound to a non editable textbox in acumatica. I would like ...
53,584,770
How to call a different variable from a single jade mixin?<p>I have 6 cards to display in one side a title and a list. As they all have the same structure, I am creating a mixin using Jade. So as each card displays a different list, I need to create different variables, one for each list. Is it possible, and if so, ho...
<p>Parameters in Pug mixins work just like they do in JavaScript functions—if you pass a variable as an argument, you can access the value of that variable using the parameter's name, instead of the name of the original variable.</p> <p>As such, you could just name the parameter in your mixin <code>benefits</code>, an...
How to call a different variable from a single jade mixin?
variables|pug
0
60
1
53,601,331
53,601,331
0
true
2018-12-02T21:25:05.237Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to call a different variable from a single jade mixin?<p>I have 6 cards to display in one side a title and a list. As they all have the same structure, I...
53,547,136
Calling an Oracle Stored Procedure with multiple row return from Spring<p>I am working on an application using Java, Eclipse, and Spring. We have an Oracle database that we are connecting to using JDBC.</p> <p>Currently the application is using adhoc queries in the application to the database. Most of these were done ...
<p>There is a basic error with my methodology for this. The way in which I was attempting to return multiple rows is wrong. As pointed out by someone in my linked question. So the ways that I was attempting to access it were also wrong. When I limited the return to a single row the following was successful.</p> <p>Fir...
Calling an Oracle Stored Procedure with multiple row return from Spring
java|spring|oracle|stored-procedures
0
1,050
1
53,601,423
53,601,423
0
true
2018-11-29T20:34:05.593Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Calling an Oracle Stored Procedure with multiple row return from Spring<p>I am working on an application using Java, Eclipse, and Spring. We have an Oracle d...
53,544,577
Shiny R: RowReorder, reordering all values not only first one<p>I have simple <code>Shiny app</code> with <code>DT table</code></p> <pre><code>library(shiny) library(DT) iris2 = head(iris, 30) server &lt;- function(input, output) { output$tb &lt;-DT::renderDataTable(server=FALSE,{ datatable( ...
<p>One has to add the row names and sort the table on them, as mentioned in the <a href="https://github.com/rstudio/DT/issues/624" rel="nofollow noreferrer">github issue</a>. The working solutions requires only adding <code>order = list(list(0, 'asc'))</code> in the <code>DT options</code>:</p> <pre><code>library(shin...
Shiny R: RowReorder, reordering all values not only first one
r|shiny|dt
0
261
1
53,602,000
53,602,000
0
true
2018-11-29T17:30:43.517Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Shiny R: RowReorder, reordering all values not only first one<p>I have simple <code>Shiny app</code> with <code>DT table</code></p> <pre><code>library(shiny...
53,601,741
Python, OpenCV :How to use features extracted via ORB for a classification model?<p>I have a set of a couple thousand images (I'm starting with 40 pictures for a test) and I want to build a classifier that can tell what object is in the picture. Like, is this a picture of my dog, a picture of my neighbors dog or a pict...
<p><code>RandomForestClassifier</code> as well as the majority of conventional ML algorithms can deal only with scalar features. So, in order to use on your data you need to flatten it, e.g. <code> import numpy as np np.flatten(features.values)</code></p>
Python, OpenCV :How to use features extracted via ORB for a classification model?
python|opencv|machine-learning|data-science
0
822
1
53,602,060
53,602,060
0
true
2018-12-03T20:56:32.400Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Python, OpenCV :How to use features extracted via ORB for a classification model?<p>I have a set of a couple thousand images (I'm starting with 40 pictures f...
53,585,153
Creating a process that creates a thread which again updates a global variable<p>Currently, I am trying to spawn a process in a Python program which again creates threads that <strong>continuously update</strong> variables in the process address space. So far I came up with this code which runs, but the update of the v...
<p>Thanks to the previous answer, I figured out that it's best to implement a process class and define "thread-functions" within this class. Now, the threads can access a shared variable and manipulate this variable without the need of using "thread.join()" and terminating a thread.</p> <p>Below is a minimal example i...
Creating a process that creates a thread which again updates a global variable
python|python-3.x|multithreading|multiprocessing
0
52
2
53,602,077
53,602,077
0
true
2018-12-02T22:20:18.763Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Creating a process that creates a thread which again updates a global variable<p>Currently, I am trying to spawn a process in a Python program which again cr...
53,549,676
Bootstrap example Carousel code not switching slides<p>I've been researching for over an hour and I cannot get this example code from the Bootstrap website for a Carousel working... the only thing I changed are the image sources. What am I doing wrong? If it helps, this will be in a component in an Angular project.</p>...
<p>What I ended up doing is putting the above code (waiting for the document to be ready) and moving the imports of Bootstrap from the module with the carousel to index.html. Thanks!</p>
Bootstrap example Carousel code not switching slides
javascript|html|css|twitter-bootstrap|carousel
0
57
2
53,602,080
53,602,080
0
true
2018-11-30T00:44:33.113Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Bootstrap example Carousel code not switching slides<p>I've been researching for over an hour and I cannot get this example code from the Bootstrap website f...
53,584,575
Should I handle a lot of UI on one screen with fragments? [android]<p>I'm new to android development and I want to know how to properly use fragments and activities. As far as I've learned it's better to make single activity applications and mine is just that. However, I have a lot of UI on my screen. The app is suppo...
<p>Different people have different opinions about how many activities should be used in an app. However, with that being said most do generally agree that you should have one main activity and everything else should be a fragment. The whole idea behind doing this is to make you code more modular and reusable (just like...
Should I handle a lot of UI on one screen with fragments? [android]
android|user-interface|android-activity|fragment
0
40
1
53,602,081
53,602,081
0
true
2018-12-02T21:00:59.447Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Should I handle a lot of UI on one screen with fragments? [android]<p>I'm new to android development and I want to know how to properly use fragments and ac...
53,545,510
Publishing expo hangs in azure pipelines<p>Working on a react-native application and am trying to set up a pipeline to autodeploy to our QA environment. I think I have everything set up reasonably well and the npm commands work locally.</p> <p>I have set up an azure pipeline and the pipeline runs. It looks like the co...
<p>Found this discussion: <a href="https://forums.expo.io/t/exp-cli-exp-login-hangs-in-bitbucket-pipelines/11676/14" rel="nofollow noreferrer">https://forums.expo.io/t/exp-cli-exp-login-hangs-in-bitbucket-pipelines/11676/14</a></p> <p>Upgraded the build to node 10.x and it worked.</p> <p>New azure-pipelines.yml (roug...
Publishing expo hangs in azure pipelines
react-native|azure-devops|expo|azure-pipelines-build-task
0
1,601
1
53,602,164
53,602,164
0
true
2018-11-29T18:36:00.453Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Publishing expo hangs in azure pipelines<p>Working on a react-native application and am trying to set up a pipeline to autodeploy to our QA environment. I th...
53,602,202
Cumulative histogram over the frames<p>I had normalized data of histogram stored in separate files. How do I plot the cumulative histogram?</p> <pre><code>{Frame 1}(filename) -1.114060000000000050e-01 0.000000000000000000e+00 -1.140599999999999947e-02 0.000000000000000000e+00 8.859400000000000608e-02 0.000000000000000...
<p>You can use <code>plt.hist</code>, which has both the argument <code>density</code> (which normalizes) and <code>cumulative</code>, to plot the cumulative histogram:</p> <pre><code>plt.hist(a, density = True ,cumulative=True) plt.show() </code></pre>
Cumulative histogram over the frames
python|pandas|numpy|scipy|data-analysis
0
68
1
53,602,307
53,602,307
0
true
2018-12-03T21:30:33.977Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Cumulative histogram over the frames<p>I had normalized data of histogram stored in separate files. How do I plot the cumulative histogram?</p> <pre><code>{...
53,600,427
formatting dynamic folder path within JSON<p>looking for basic code format help.</p> <p>I want to replace this code:</p> <pre><code>{ "name": "BlobConnect", "properties": { "linkedServiceName": { "referenceName": "BlobConnect", "type": "LinkedServiceReference" }, "type": "AzureBlob", "...
<pre><code>{ "name": "BlobConnect", "properties": { "linkedServiceName": { "referenceName": "BlobConnect", "type": "LinkedServiceReference" }, "type": "AzureBlob", "typeProperties": { "fileName": "", "folderPath": { "value": "@concat('timtesting/', formatdatet...
formatting dynamic folder path within JSON
json|azure|azure-data-factory
0
47
1
53,602,699
53,602,699
0
true
2018-12-03T19:17:57.560Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: formatting dynamic folder path within JSON<p>looking for basic code format help.</p> <p>I want to replace this code:</p> <pre><code>{ "name": "BlobConnect"...
53,603,129
R apply, return inputs as well as outputs<p>In R, is there a way to return a dataframe-like structure that includes the inputs as well as the outputs using an apply or lapply call? </p> <p>Example: </p> <pre><code>input1 &lt;- c(1:3) input2 &lt;- c(101:103) apply(data.frame(input1, input2), 1, function(x) {return (x[...
<p>We can use base R's <code>transform</code></p> <pre><code>df &lt;- data.frame(input1, input2) transform(df, output = apply(df, 1, function(x) x['input1'] + x['input2'])) # input1 input2 output #1 1 101 102 #2 2 102 104 #3 3 103 106 </code></pre>
R apply, return inputs as well as outputs
r
0
33
2
53,603,160
53,603,160
0
true
2018-12-03T22:49:40.943Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: R apply, return inputs as well as outputs<p>In R, is there a way to return a dataframe-like structure that includes the inputs as well as the outputs using a...
53,509,627
Custom annotation call outs<p>I am trying to make the annotation call out box as it would have no colour and be completely transparent.</p> <p>the code is the following:</p> <pre><code>import Foundation import MapKit class CustomPin: NSObject, MKAnnotation { var coordinate: CLLocationCoordinate2D var ti...
<p>I've looked a little and I don't think Apple has anything you can do directly to the callout appearance other than modifying left and right accessoryViews. I think you have to create your own custom callouts.</p> <p>Check this out if you're trying to make your own Custom Callouts: <a href="https://github.com/robert...
Custom annotation call outs
swift|mapkit|mkannotation|mkannotationview|mapkitannotation
0
59
1
53,603,283
53,603,283
0
true
2018-11-27T23:09:43.343Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Custom annotation call outs<p>I am trying to make the annotation call out box as it would have no colour and be completely transparent.</p> <p>the code is t...
53,587,345
undefined is not an object (evaluating '_this2.props.navigation') Or Inconsistent results in comparison to other navigation<p>I have an error regarding this piece of code whenever I clicked on one of the rendered rows.</p> <pre><code>renderRow(task, sectionID, rowID, hightlightRow) { return ( &lt;Touchable...
<p>I found a solution. Apparently, <code>ListView</code> acts as its own component. So by passing the <code>this.props.navigation</code> to one of the parameters used to render the rows, the function can now be used to call to go to other pages.</p> <p>An example:</p> <pre><code>this.getSomeData().then((response)=&gt...
undefined is not an object (evaluating '_this2.props.navigation') Or Inconsistent results in comparison to other navigation
reactjs|react-native|react-navigation
0
51
2
53,603,316
53,603,316
0
true
2018-12-03T04:09:14.490Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: undefined is not an object (evaluating '_this2.props.navigation') Or Inconsistent results in comparison to other navigation<p>I have an error regarding this ...
53,604,420
Is there a way to get the list of resources deleted by shrinkResources?<p>As the title states, is there a way to know what resources was deleted by shrinkResources?</p> <p>Thanks in advance :)</p>
<p>Apparently this could be done!</p> <p>You could read about it <a href="https://developer.android.com/studio/build/shrink-code" rel="nofollow noreferrer">here</a> under <strong>Troubleshoot resource shrinking</strong>!</p> <p>To check for deleted resources, <code>resources.txt</code> is generated under <code>&lt;mo...
Is there a way to get the list of resources deleted by shrinkResources?
android|shrinkresources
0
41
1
53,604,593
53,604,593
0
true
2018-12-04T01:31:07.910Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Is there a way to get the list of resources deleted by shrinkResources?<p>As the title states, is there a way to know what resources was deleted by shrinkRes...
53,604,257
Is it possible to create pdf file by naming it as .pdf in eclipse?<p>I am using SVN via eclipse. Now I have to commit a pdf file and I am wondering if I can make it by making a file and naming it as XXX.pdf. I usually have made txt files in this way, but I am not sure if pdf files can work in this way too? I appreciate...
<p>No. It doesn't work that way. </p>
Is it possible to create pdf file by naming it as .pdf in eclipse?
eclipse|pdf
0
26
1
53,604,707
53,604,707
0
true
2018-12-04T01:09:20.293Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Is it possible to create pdf file by naming it as .pdf in eclipse?<p>I am using SVN via eclipse. Now I have to commit a pdf file and I am wondering if I can ...
53,591,277
IFrame with html content in IE11 gives navigation to the webpage was cancelled<p>I have an IFrame with src set to the html content that I receive from a web service. This html content has meta </p> <p><code>http-equiv="x-ua-compatible" content="IE=Edge"</code> </p> <p>in the head but in IE11, I am getting "Navigation...
<p>You may receive this error message when a site or program is in a different Internet Explorer Security Zone. </p> <p>You can try to disable the protected mode to check whether it solves your issue or not.</p> <p>Further, You can try to set the IE security to low level and make a test again.</p> <p>You can also tr...
IFrame with html content in IE11 gives navigation to the webpage was cancelled
html|internet-explorer|iframe|internet-explorer-11|src
0
1,069
1
53,605,398
53,605,398
0
true
2018-12-03T09:57:50.350Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: IFrame with html content in IE11 gives navigation to the webpage was cancelled<p>I have an IFrame with src set to the html content that I receive from a web ...
53,595,134
Dock Fill affects flood fill result<p>I'm writing a drawing program like MS Paint. The canvas is a panel and is placed in another one so I can use scrollbars. For the fill operation I implemented flood fill algorithm. To store the drawing I create a bitmap and on paint event I draw that bitmap to the screen.</p> <p>If...
<p>Just figured out that my index calculation is wrong: instead of using <code>bmpData.Stride</code>, I use <code>img.Width</code> and hence my code accessed the image padding, which contains uninitialized data. The canvas panel just changed that data by chance. Another bug is in the order of color bytes, I use red-gre...
Dock Fill affects flood fill result
c#|drawing
0
41
1
53,605,875
53,605,875
0
true
2018-12-03T13:44:31.963Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Dock Fill affects flood fill result<p>I'm writing a drawing program like MS Paint. The canvas is a panel and is placed in another one so I can use scrollbars...
53,605,805
Reporting Services inconsistent results between text output and preview<p>We are running MS Reporting Services 2012. We have a simple query that only passes in a date to run. When the query is run in the Data tab, the correct results are displayed, however when the same query is run in the Preview tab all the columns, ...
<p>I created a new report from scratch and this seems to have fixed it.</p>
Reporting Services inconsistent results between text output and preview
reporting-services
0
30
2
53,606,163
53,606,163
0
true
2018-12-04T04:41:29.680Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Reporting Services inconsistent results between text output and preview<p>We are running MS Reporting Services 2012. We have a simple query that only passes ...
53,587,663
Login with root credentials on Mongodb container created using Docker compose<p>I am creating a docker container for a mongod server following the suggestions made <a href="https://docs.docker.com/samples/library/mongo/#-via-docker-stack-deploy-or-docker-compose" rel="nofollow noreferrer">here</a>. My docker compose fi...
<p>In the end I was only missing the authdb flag, so the following mongo command solved my issue:</p> <pre><code>mongo -u "admin" -p "admin" --authenticationDatabase 'admin' </code></pre>
Login with root credentials on Mongodb container created using Docker compose
mongodb|docker|docker-compose
0
1,087
2
53,606,320
53,606,320
0
true
2018-12-03T04:51:50.997Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Login with root credentials on Mongodb container created using Docker compose<p>I am creating a docker container for a mongod server following the suggestion...
53,603,018
Can you calculate the rate of a present value annuity due with np.rate without a future value?<p>Using <a href="https://www.wolframalpha.com/input/?i=7253.93%20%3D%201000*(1-(1%2Br)%5E(-9))%2Fr,%20solve%20for%20r" rel="nofollow noreferrer">wolfram alpha</a> the future value is not required to iteratively find the rate ...
<p>I was not understanding the cash flow. I needed to ensure the <code>PMT</code> was a negative cash flow. Therefore:</p> <pre><code>In [21]: np.rate(10, -1000, 8253.93, 0, when=1) Out[21]: 0.04545455285667707 </code></pre>
Can you calculate the rate of a present value annuity due with np.rate without a future value?
python|numpy
0
280
2
53,607,977
53,607,977
0
true
2018-12-03T22:37:50Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Can you calculate the rate of a present value annuity due with np.rate without a future value?<p>Using <a href="https://www.wolframalpha.com/input/?i=7253.93...
53,608,143
JavaScript recursion returning a promise never resolving<p>In JavaScript, I have an array of objects being some tasks to do. I iterate through this array with a <code>for</code> loop with <code>await</code>, calling a function <code>doOneTask</code> with returns a <code>Promise</code>.</p> <p>That works pretty well as...
<p>After having completed the question, but just before posting, something came into my mind: In the setup above, I don't resolve the very same promise object when I finally reach success, but for each function call a new promise object is generated. My solution/workaround is quite simple: use <code>q</code> the promis...
JavaScript recursion returning a promise never resolving
javascript|recursion|async-await
0
43
2
53,608,144
53,608,144
0
true
2018-12-04T07:55:51.560Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: JavaScript recursion returning a promise never resolving<p>In JavaScript, I have an array of objects being some tasks to do. I iterate through this array wit...
53,553,631
iOS: In App Auto-Renewable Subscription error while purchase<p>I have successfully implemented the in app purchases for consumable products. And it is working great. </p> <p>Now i'm getting "Can't connect to iTunes store" when i'm trying to confirm the auto- renewable subscription. Is there anything special that we sh...
<p>Found the solution after a lot of hit and try. I was missing <strong>period of subscription</strong> on iTunes connect.</p>
iOS: In App Auto-Renewable Subscription error while purchase
ios|in-app-purchase|sandbox
0
47
1
53,608,403
53,608,403
0
true
2018-11-30T08:11:51.113Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: iOS: In App Auto-Renewable Subscription error while purchase<p>I have successfully implemented the in app purchases for consumable products. And it is workin...
53,498,308
django-mptt's MPTTModel inheritance issue<p>Met unexpected behaviour with model inheritance.</p> <p>I launch this code in django shell:</p> <pre><code>import mptt from django.db import models class MyTreeQuerySet(mptt.querysets.TreeQuerySet): pass class MyTreeManager( models.Manager.from_queryset(MyTreeQue...
<p>found solution for myself: we should use <code>mptt.managers.TreeManager.from_queryset</code> instead of <code>dj_models.Manager.from_queryset</code>. I suppose it because <code>MPTTModel.__new__</code> has some magic with it's managers list patching. I didn't dig in.</p> <pre><code>import mptt from django.db impor...
django-mptt's MPTTModel inheritance issue
python|inheritance|django-orm|django-mptt
0
301
1
53,609,046
53,609,046
0
true
2018-11-27T11:06:58.427Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: django-mptt's MPTTModel inheritance issue<p>Met unexpected behaviour with model inheritance.</p> <p>I launch this code in django shell:</p> <pre><code>impo...
53,608,884
RAILS: What is the expected concurrent visitor limits for 16CPU & 30GB VPS<p>Today I have prepared a digital marketing campaing which increased the number of visitors to my site suddenly. My site responsiveness became degregaded and when I check the CPU &amp; Mem Allocations, I have seen that unicorn workers are eating...
<p>I'm not sure this question is suitable for SO since there isn't a clear answer. It's extremely difficult to answer without having detailed access to your app/code. I'm also not sure that there is a "typical ecommerce app". Your app's performances depends a lots on the way your database is setup, the way your queries...
RAILS: What is the expected concurrent visitor limits for 16CPU & 30GB VPS
ruby-on-rails
0
15
1
53,609,101
53,609,101
0
true
2018-12-04T08:48:16.567Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: RAILS: What is the expected concurrent visitor limits for 16CPU & 30GB VPS<p>Today I have prepared a digital marketing campaing which increased the number of...