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,692,473
how to keep redirection history of duplicates<p>scrapys duplication filter ignores already seen urls/requests. So far, so good.</p> <hr> <p><strong>The Problem</strong></p> <p>Even if a request is dropped I still want to keep the redirection history. </p> <p>Example:</p> <ul> <li>Request 1 : B</li> <li>Request 2 :...
<p>I figured out a way to handle those 'hidden' redirects:</p> <ol> <li>Catch the signal 'request_dropped' from 'from_crawler':</li> </ol> <pre> @classmethod def from_crawler(cls, crawler, *args, **kwargs): spider = super(YourSpider, cls).from_crawler(crawler, *args, **kwargs) crawler.signals....
how to keep redirection history of duplicates
redirect|scrapy|duplicates
0
69
2
53,707,216
53,707,216
0
true
2018-12-09T12:49:28.203Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to keep redirection history of duplicates<p>scrapys duplication filter ignores already seen urls/requests. So far, so good.</p> <hr> <p><strong>The Pro...
53,667,685
Categorize data preserving all values<p>I've got a big set of data, usually a shape <code>&gt; (700000, 5)</code>, on which I want to perform multi-parameter regression. All of the variables are dependent on each other. So to start with the multi-parameter regression, I need to split the data into sub-groups of discret...
<p>New and much better answer, provided by jorisvandenbossche (thanks!) while filing the bug report: I can simply set the index with the required intervals. I guess sometimes just thinking the direct and easy way works best...</p> <pre><code>df_grpd = df.set_index([pd.cut(df.temp_a, np.arange(0, 100, 5)), # categoric...
Categorize data preserving all values
python|pandas|pandas-groupby|categorical-data
0
73
1
53,708,219
53,708,219
0
true
2018-12-07T10:29:57.100Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Categorize data preserving all values<p>I've got a big set of data, usually a shape <code>&gt; (700000, 5)</code>, on which I want to perform multi-parameter...
53,709,062
How to safely change the unique key with Entitiy Framework - Database First<p>I have a table with some component data where I have added and auto-generated Id as the primary key. But the component has a unique property, and I would like to switch to use that and delete the autogenerated column. The unique property has ...
<p>When you update your model from the database, EF looks for the primary key and uses that - it does not matter what you name the column. (there is no logic in EF that looks for a column with "id" in the name)</p> <p>So you'll be fine. Update your database, then update EF from your database and it should pick up on t...
How to safely change the unique key with Entitiy Framework - Database First
c#|visual-studio|entity-framework|tsql
0
18
1
53,709,118
53,709,118
0
true
2018-12-10T15:46:32.350Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to safely change the unique key with Entitiy Framework - Database First<p>I have a table with some component data where I have added and auto-generated I...
53,708,127
Includes not filtering as expected in Angular 5<p>I am trying to filter using includes to show states from addresses of a building. For example i want to show Washington only once even if it has ten buildings situated there</p> <pre><code>for (let i=0; i&lt;=this.professional.hospital.length; i++) { if(this.pr...
<pre><code>for (let i=0; i&lt;this.professional.hospital.length; i++) { if(this.professional.hospital[i].address &amp;&amp; this.professional.hospital[i].address.length &gt; 0) { if (!this.states.find(x =&gt; x.value == this.professional.hospital[i].address[0].state)) { this.states.p...
Includes not filtering as expected in Angular 5
typescript|include|angular5
0
19
1
53,709,219
53,709,219
0
true
2018-12-10T14:50:49.830Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Includes not filtering as expected in Angular 5<p>I am trying to filter using includes to show states from addresses of a building. For example i want to sho...
53,707,282
Condition for MAX(Booking) within a specific period<p>I have a query that is looping between core working hours(7:30-16:30). This query returns the most recent bookings per group till date but I can't seem to figure out the condition to make sure the most recent returned was that recorded as of the loop time, </p> <p...
<p>Solved by adding <code>DATE</code> to the while condition</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>DECLARE @STARTTIME dateTIME = dateadd(day, datediff(day, 0, ge...
Condition for MAX(Booking) within a specific period
sql|sql-server
0
65
3
53,709,426
53,709,426
0
true
2018-12-10T14:01:19.017Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Condition for MAX(Booking) within a specific period<p>I have a query that is looping between core working hours(7:30-16:30). This query returns the most rec...
53,639,750
How can I make my filter work as an "and" instead of "or" when there are multiple values?<p>I have a working filter with two limitations.</p> <p>1: It works as an 'or' instead of an 'and' when there are multiple values.</p> <p>e.g.</p> <pre><code>filterArr = {'claim_number': null, 'status': 'Approved', 'patient': 'J...
<p>This is the answer I ultimately ended up using. I found it to be the most straightforward.</p> <pre><code>@Input() filters: Array&lt;any&gt;; allRows: Array&lt;any&gt; = []; applyFilters() { this.rows = this.allRows; this.rows = this.rows.filter(row =&gt; { for (let filter of this.filters) { ...
How can I make my filter work as an "and" instead of "or" when there are multiple values?
javascript|arrays|filter|angular-reactive-forms
0
48
2
53,709,919
53,709,919
0
true
2018-12-05T19:51:30.967Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I make my filter work as an "and" instead of "or" when there are multiple values?<p>I have a working filter with two limitations.</p> <p>1: It works...
53,709,800
i need to click unordered links in the below URL using selenium, python<p>In the below URL i need to click the message icon links which containing 'svg' tags inside it. <a href="https://www.sciencedirect.com/science/article/pii/S0898656817301687" rel="nofollow noreferrer">https://www.sciencedirect.com/science/article/p...
<p>You can avoid implementing extra logic. Try below instead:</p> <pre><code>tags = driver.find_elements_by_xpath('//a[contains(@class, "author")]//*[local-name()="svg"]') if tags: # Links found for tag in tags: tag.click() else: # Links not found # Do something else </code></pre>
i need to click unordered links in the below URL using selenium, python
python|selenium|web-scraping
0
24
1
53,710,150
53,710,150
0
true
2018-12-10T16:31:27.163Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: i need to click unordered links in the below URL using selenium, python<p>In the below URL i need to click the message icon links which containing 'svg' tags...
53,708,406
Sum-up and then calculate vs. calculate and then sum-up (SSAS-MDX)<p>I have a cube in SSAS multidimensional mode. </p> <p>I have created a calculating measure in visual studio called "Total Cost". The formula is:</p> <pre><code>[Measures].[Unit Cost]*[Measures].[Qty] </code></pre> <p>It is in the lowest level of gra...
<p>In your SSAS project ->datasource view, you need to add a named calculation. This would be "[Unit Cost]*[Qty]". Now add this named calculation as a Measure in your Cube. This do the job. This problem was already addressed in the following link. https://stackoverflow.com/questions/53554284/how-to-mult...
Sum-up and then calculate vs. calculate and then sum-up (SSAS-MDX)
ssas|mdx
0
57
1
53,710,202
53,710,202
0
true
2018-12-10T15:07:38.210Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Sum-up and then calculate vs. calculate and then sum-up (SSAS-MDX)<p>I have a cube in SSAS multidimensional mode. </p> <p>I have created a calculating measu...
53,687,590
How change text in label used in UserControl when they have Class?<p>I make Notofication class look like this</p> <pre><code> public class NotificationService : ViewModelBase, INotificationService { public async Task ShowNotification (string content) { NotificationContent = content; ShowHide...
<p>Solved. I move UserControl to MainWindow, and in NotificationService use this </p> <pre><code> var notification = App.Current.Windows.Cast&lt;Window&gt;().FirstOrDefault(window =&gt; window is MainWindow) as MainWindow; notification.Noti_Lab.Content = content; </code></pre>
How change text in label used in UserControl when they have Class?
c#|wpf|mvvm|data-binding
0
39
1
53,712,015
53,712,015
0
true
2018-12-08T22:24:55.800Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How change text in label used in UserControl when they have Class?<p>I make Notofication class look like this</p> <pre><code> public class NotificationSe...
53,711,830
React Native - Redux ~ Props updating when not getting called<p>I am experiencing an issue with React Native whilst using Redux.</p> <p>I am using a Redux state to show/hide a modal from one component to the other. As this seems to be the best solution considering that it is cross component.</p> <p>I have the modal o...
<p>The issue lay within all of my reducers.</p> <p>At the end of each reducer case statement I did a default which set the state to be the <code>initialState</code> which was defined at the top of the reducer.</p> <p>I needed to change this to return <code>state</code> instead.</p> <pre><code>const modalsReducer = (...
React Native - Redux ~ Props updating when not getting called
javascript|reactjs|react-native|redux
0
48
1
53,712,167
53,712,167
0
true
2018-12-10T18:47:47.173Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: React Native - Redux ~ Props updating when not getting called<p>I am experiencing an issue with React Native whilst using Redux.</p> <p>I am using a Redux s...
53,690,713
External Access to localhost Xampp files<p>I am using no-ip for generating a domain name .</p> <p>I have already set-up port-forwarding(<strong>I am using D-link</strong>) and it is successfully forwarding to localhost.(<code>http://localhost</code>)</p> <p>But I would want it to forward to a file in htdocs in xampp ...
<p>Try this. You need this to be your index file in your htdocs folder.</p> <pre><code>&lt;?php if (!empty($_SERVER['HTTPS']) &amp;&amp; ('on' == $_SERVER['HTTPS'])) { $uri = 'https://'; } else { $uri = 'http://'; } $uri .= $_SERVER['HTTP_HOST']; header('Location: '.$uri.'/folder/fi...
External Access to localhost Xampp files
networking|xampp|portforwarding
0
56
1
53,712,812
53,712,812
0
true
2018-12-09T08:49:23.823Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: External Access to localhost Xampp files<p>I am using no-ip for generating a domain name .</p> <p>I have already set-up port-forwarding(<strong>I am using D...
53,696,316
Alchemy CMS - new module not showing in the left sidebar<p>I have followed this <a href="https://guides.alchemy-cms.com/create_modules.html" rel="nofollow noreferrer">guide</a> to generate a new module called Users. I have updated the <code>icon</code> to be:</p> <h3>config/initializers/alchemy_user.rb</h3> <p><code>im...
<p>With the help of the guys from Alchemy CMS on their Slack channel I was able to resolve this.</p> <p>I had a typoo in <code>alchemy_user.rb</code> and was missing a rule in <code>UserAbility</code>.</p> <h3>alchemy_user.rb</h3> <p>Instead</p> <pre><code>Alchemy::Modules.register_module({ controller: '/admin/user...
Alchemy CMS - new module not showing in the left sidebar
ruby-on-rails|alchemy-cms
0
52
1
53,713,973
53,713,973
0
true
2018-12-09T20:20:31.300Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Alchemy CMS - new module not showing in the left sidebar<p>I have followed this <a href="https://guides.alchemy-cms.com/create_modules.html" rel="nofollow no...
53,714,501
can't get my program to return to main loop<p>I can't get the bottom part of this code to work. I want the user to be able to type "back" and return to the main menu. Is there anyone that can help, and that can explain why it wont work the way I have done it here?</p> <p>I have tried more versions of the same thing, ...
<p>You may want to change <code>writetxtfile()</code> to:</p> <pre><code>def writetxtfile(): try: openfile = input("Enter the .txt file name, or type 'back' to go back to menu: ") if openfile == "back": return else: with open(openfile, 'r') as rf: f_c...
can't get my program to return to main loop
python
0
31
1
53,714,617
53,714,617
0
true
2018-12-10T22:15:17.097Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: can't get my program to return to main loop<p>I can't get the bottom part of this code to work. I want the user to be able to type "back" and return to the m...
53,715,919
How do I ensure only my enterprise devices can sync from google drive sync or file stream<p>This is a bit of a long shot, I am looking for suggestions in regards to ensuring that only devices from my corporate network are able to run the google sync tool. Its imperative that my corporate files/assets cannot be synced t...
<blockquote> <p>Google Drive is a free cloud storage service that lets any user with a Google account upload files -- documents, photos and videos -- to the cloud. Any user with the necessary credentials or permissions can access uploaded files from any location. Users may configure folders and files uploaded...
How do I ensure only my enterprise devices can sync from google drive sync or file stream
google-cloud-platform|google-drive-api|cloud-security
0
30
1
53,716,437
53,716,437
0
true
2018-12-11T00:59:51.290Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do I ensure only my enterprise devices can sync from google drive sync or file stream<p>This is a bit of a long shot, I am looking for suggestions in reg...
53,646,362
How to add more than one Google chart on a page from the same Google spreadsheet but different range<p>My Google Sheet Data Looks like this </p> <p><a href="https://i.stack.imgur.com/gs96y.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gs96y.png" alt="Data"></a></p> <p>I am trying to create a Das...
<p>The following code helped me to achieve what i wanted. </p> <p>Code 1</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-js lang-js prettyprint-override"><code>function doGet(e) { return HtmlService .create...
How to add more than one Google chart on a page from the same Google spreadsheet but different range
javascript|google-apps-script|charts|google-visualization|linechart
0
70
1
53,716,954
53,716,954
0
true
2018-12-06T07:19:18.883Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to add more than one Google chart on a page from the same Google spreadsheet but different range<p>My Google Sheet Data Looks like this </p> <p><a href...
53,716,780
Javascript interactive card being glitchy<p>I made an interactive card. When grabbing the object with the mouse and moving it, it flies right back to where it was. Then it will "stick" to the mouse cursor. click to release. I would like a smoother click and drag. The rest of the card works fine. Thanks for the he...
<p>To make it work, append this to the bottom of your <code>dragElement</code> function:</p> <pre><code>elmnt.ondragstart = function() { return false; }; </code></pre> <p>This will cancel browser's default behaviour with drag 'n drop for images.</p>
Javascript interactive card being glitchy
javascript
0
35
1
53,717,470
53,717,470
0
true
2018-12-11T03:08:06.710Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Javascript interactive card being glitchy<p>I made an interactive card. When grabbing the object with the mouse and moving it, it flies right back to where ...
53,705,597
E_SMS_USER_TABLEFILESDELETEDDIRECTLY error in U-SQL<p>When we are trying to run a normal U-SQL job using azure data factory, which was executing perfectly fine earlier, suddenly failing with the below error for every table being referred in the U-SQL job. </p> <blockquote> <p>E_SMS_USER_TABLEFILESDELETEDDIRECTLY </...
<p>The error is misleading. The issue was due to lack of permissions. </p> <p>When I changed the account being used to connect to Azure Data Lake Analytics(ADLA), in the ADLA linked service in Azure data factory, I was able to successfully execute the job without issues. </p>
E_SMS_USER_TABLEFILESDELETEDDIRECTLY error in U-SQL
runtime-error|azure-data-lake|u-sql
0
56
1
53,717,949
53,717,949
0
true
2018-12-10T12:23:52.133Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: E_SMS_USER_TABLEFILESDELETEDDIRECTLY error in U-SQL<p>When we are trying to run a normal U-SQL job using azure data factory, which was executing perfectly fi...
53,700,384
Flink - how to export flink's kafka connector offsets via JMX Reporter?<p>According to <a href="https://ci.apache.org/projects/flink/flink-docs-stable/monitoring/metrics.html" rel="nofollow noreferrer">here</a>, I enable JMX Exporter's and was able to connect to it to see some metrics: jobmanager.Status, jobmanager.job...
<p>I found the answer. JMX port config in <strong>flink-conf.yaml</strong> should be a range (9250-9260), not 1 port number. Flink needs at least 2 ports to export metrics for JobManager and TaskManager at the same time.</p> <pre><code>metrics.reporter.jmx.class: org.apache.flink.metrics.jmx.JMXReporter metrics.report...
Flink - how to export flink's kafka connector offsets via JMX Reporter?
apache-flink|flink-streaming
0
298
1
53,718,225
53,718,225
0
true
2018-12-10T06:16:07.453Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Flink - how to export flink's kafka connector offsets via JMX Reporter?<p>According to <a href="https://ci.apache.org/projects/flink/flink-docs-stable/monito...
53,648,373
Customized Hyperledger Explorer is possible...?<p>I successfully completed a hyperledger composer and working it well. I just created explorer for the same network using the git <a href="https://github.com/hyperledger/blockchain-explorer" rel="nofollow noreferrer">https://github.com/hyperledger/blockchain-explorer</a>....
<p>Hyperledger Explorer has to traverse the blockchain to build its view of the ledger (stored in a PostgreSQL DB). If you have a large number of blocks, this can take some time. However, once this has been built, new blocks should be picked up as fast as your network can supply them.</p> <p>However, if you want to lo...
Customized Hyperledger Explorer is possible...?
node.js|hyperledger
0
275
2
53,720,105
53,720,105
0
true
2018-12-06T09:37:31.850Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Customized Hyperledger Explorer is possible...?<p>I successfully completed a hyperledger composer and working it well. I just created explorer for the same n...
53,720,106
What aspects of resource isolation have been done in aws aurora?<p>I want to known what kinds of resource isolation in AWS Aurora have been done, such as: cpu/memory/disk iops/bandwidth. And I'm not found relevant information in aurora official website. Can someone tell me? </p>
<p>I have find that every instance class has its resource limition. URL: <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.DBInstanceClass.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.DBInstanceClass.html</a></p>
What aspects of resource isolation have been done in aws aurora?
database|amazon-web-services|amazon-aurora
0
15
1
53,720,594
53,720,594
0
true
2018-12-11T08:27:59.500Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: What aspects of resource isolation have been done in aws aurora?<p>I want to known what kinds of resource isolation in AWS Aurora have been done, such as: cp...
53,719,652
Can we indexing all the fields in document in Elastic Search<p>I am a newbie to elastic search. Now I am trying to create a mapping for an index. Dynamic mapping creates the mapping for all the fields in the document. So is there any performance improvement in indexing that only indexing the required properties(Propert...
<p>Explicitly defining mappings for fields helps in the following ways:</p> <ul> <li>Mapping a field between, say, Text and String improves the search efficiency since the a field with "Text" is analyzed but with a String is not. </li> <li>Text fields are indexed whereas String fields are not. This impacts the size of...
Can we indexing all the fields in document in Elastic Search
c#|elasticsearch|nest|elastic-stack
0
53
1
53,721,415
53,721,415
0
true
2018-12-11T07:57:02.910Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Can we indexing all the fields in document in Elastic Search<p>I am a newbie to elastic search. Now I am trying to create a mapping for an index. Dynamic map...
53,684,412
Getting 'matches' array data within a 'query' from an API and displaying the information<p>I am having trouble displaying data from querying an API endpoint. The error message is <code>ERROR TypeError: Cannot read property 'name' of undefined</code>. I understand that I have to jump to display the "matches" array but h...
<pre><code>&lt;div *ngFor="let employee of employees"&gt; &lt;p&gt;{{ employee.name }}&lt;/p&gt; &lt;/div&gt; </code></pre> <p>Moved the closing tag.</p>
Getting 'matches' array data within a 'query' from an API and displaying the information
html|angular|typescript|api
0
37
2
53,721,890
53,721,890
0
true
2018-12-08T16:14:23.967Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Getting 'matches' array data within a 'query' from an API and displaying the information<p>I am having trouble displaying data from querying an API endpoint....
53,711,426
"Invalid classification data: expect label value"<p>I'm trying to train a model using deep learning in java, when I start training the train data it gives an error </p> <pre><code>Invalid classification data: expect label value (at label index column = 0) to be in range 0 to 1 inclusive (0 to numClasses-1, with numCla...
<p>problem solved: Change the third parameter of <code>RecordReaderDataSetIterator</code> in<br> <code>DataSetIterator testIter = new RecordReaderDataSetIterator(rrTest, batchSize,0, 2);</code> from 0 to 2; because the data set has three columns and the index of the class label is 2 because its the third column.</p> ...
"Invalid classification data: expect label value"
java|neural-network|deeplearning4j
0
62
1
53,722,581
53,722,581
0
true
2018-12-10T18:17:46.983Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: "Invalid classification data: expect label value"<p>I'm trying to train a model using deep learning in java, when I start training the train data it gives an...
53,721,710
Ansible render variable from set variable<p>I want to use <code>jinja2's template</code> for generate configuration. But I'm stuck with this. I use <code>set</code> for create new variable, after that I need to use fallowing string as new variable for rendering. My sample code which show what I want to achieve: </p> <...
<p>I found some death simple workaround, but if someone has 'native' answer it would be great.</p> <p>So: <strong>play.yml</strong> </p> <pre><code>- hosts: localhost gather_facts: no vars: x: a y: 1 a1b: 'super_variable' tasks: - name: templating template: src: test.j2 ...
Ansible render variable from set variable
ansible|jinja2|ansible-template
0
309
1
53,723,164
53,723,164
0
true
2018-12-11T10:06:13.503Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Ansible render variable from set variable<p>I want to use <code>jinja2's template</code> for generate configuration. But I'm stuck with this. I use <code>set...
53,724,119
move element to top when click each buttons<p>I have list and each list has "move top" button. when click "move top" button, div element shoul be move to top(in DOM).</p> <p>But I am getting little trouble to make it.</p> <p>Also when using keyboard tabbing to the button and press enter key, the focus has to be keep ...
<p>You are prepending the wrong item. You need to prepend the parent <code>div</code> of the button, not the button itself. Also, you need to prepend to the <code>.wrap</code> div, which is the button's <code>parent parent</code> rather than to the button's parent which is just the <code>div</code> wrapping the button....
move element to top when click each buttons
javascript|jquery
0
47
1
53,724,196
53,724,196
0
true
2018-12-11T12:20:27.603Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: move element to top when click each buttons<p>I have list and each list has "move top" button. when click "move top" button, div element shoul be move to top...
53,724,142
How to initialise interface properties in complex interfaces<p>I want to initialise the properties in a function. I am having the following error. What is wrong with my code?</p> <blockquote> <p>Type '{ ErrorMessage: string; Label: string; Name: string; Text: string; }' is not assignable to type 'IUserProps'. ...
<ul> <li>According to your typse <code>IUserState</code> has a property <code>user</code> that has those properties. You omitted that.</li> <li>Also <code>IUserProps</code> and <code>IUserState</code> are identical but you nest them which does not make logical sense. I removed <code>IUserProps</code>.</li> </ul> <p><a...
How to initialise interface properties in complex interfaces
typescript
0
20
1
53,724,209
53,724,209
0
true
2018-12-11T12:22:00.097Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to initialise interface properties in complex interfaces<p>I want to initialise the properties in a function. I am having the following error. What is ...
53,713,484
What does Metis: Unused theorems mean in this context?<p><strong>I'm very new to Isabelle, so apologies if this question is poorly formed.</strong></p> <p>I'm trying to prove the following:</p> <pre><code>record Point = x :: nat y :: nat definition cond :: "Point ⇒ Point ⇒ " where "cond point1 point2 ...
<p>I can comment on some of the practical aspects related to your problem. I believe, the warning is self-explanatory. Normally, you can delete the unused theorems and <code>metis</code> is still able to prove the theorem of interest (see <code>cond_proof_metis</code> in the code listing below).</p> <p>The lemma <code>...
What does Metis: Unused theorems mean in this context?
isabelle|formal-verification
0
294
1
53,725,075
53,725,075
0
true
2018-12-10T20:53:27.970Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: What does Metis: Unused theorems mean in this context?<p><strong>I'm very new to Isabelle, so apologies if this question is poorly formed.</strong></p> <p>I...
53,649,139
Single `c_cpp_properties.json` for multiple folders?<p>In a VS Code workspace I have several folders included. </p> <pre><code>{ "folders": [ { "path": "C:\\folder1" }, { "path": "C:\\folder2" }, { "path": "C:\\folder3" } ...
<p>Generaly this seems not to be possible.<br> The only way is to have all directories share the same root direcory, and then to place a <code>.vscode</code> directory inside this root: </p> <pre><code>c:/root_dir/ c:/root_dir/folder1 c:/root_dir/folder2 c:/root_dir/folder3 c:/root_dir/.vscode c:/root_dir/.vscode/c...
Single `c_cpp_properties.json` for multiple folders?
visual-studio-code|vscode-settings
0
583
1
53,725,222
53,725,222
0
true
2018-12-06T10:20:12.083Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Single `c_cpp_properties.json` for multiple folders?<p>In a VS Code workspace I have several folders included. </p> <pre><code>{ "folders": [ ...
53,724,239
Why is my If statement not working properly?<p>So I'm building a simple MikroC program that sets PORTB.B0 if PORTA.B0 is equaled to 1</p> <pre><code>void main() { PORTA.B0=1; while(1){ if(PORTA.B0){ PORTB.B0=1; } } } </code></pre> <p>However it doesn't give me anything PortB.B0 isn't equal to 1...
<p>Just try if(PORTA.B0==1). This should work.</p>
Why is my If statement not working properly?
mikroc
0
74
2
53,725,718
53,725,718
0
true
2018-12-11T12:27:41Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why is my If statement not working properly?<p>So I'm building a simple MikroC program that sets PORTB.B0 if PORTA.B0 is equaled to 1</p> <pre><code>void ma...
53,715,342
How can I extract the API details for the current day only?<p>I have the following bit of code, which gives me all the information about IBM in dictionary format, but it includes the same information for many different dates far behind the current date. How would I extract the information for the CURRENT date only?</p>...
<p>The trick here is to parse each small block of text by date. The "itemDelimiter" can be set to any string, and looking at the contents of the url call, I would use the string "{,".</p> <p>Now you can, for example:</p> <pre><code> on mouseUp put url("https://www.alphavantage.co/query function=TIME_SERIES_DAILY&a...
How can I extract the API details for the current day only?
date|livecode
0
279
2
53,726,078
53,726,078
0
true
2018-12-10T23:40:12.410Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I extract the API details for the current day only?<p>I have the following bit of code, which gives me all the information about IBM in dictionary fo...
53,725,661
How to correctly call an event handler function in a parent component with a parameter in ReactJS?<p>I have a function in a component which I want to call in a child component.</p> <p>This is the function in the parent component:</p> <pre><code>handleFilterGroupsQuery = queryObject =&gt; { return queryObject; } <...
<p>You have 2 options. Just remove additional {} in function binding to your child component or use return:</p> <pre><code> handleFilterGroupsQuery={(queryObject) =&gt; this.handleFilterGroupsQuery(queryObject)} </code></pre> <p>or</p> <pre><code> handleFilterGroupsQuery={(queryObject) =&gt; { return this.handleFilt...
How to correctly call an event handler function in a parent component with a parameter in ReactJS?
javascript|reactjs|event-handling
0
54
2
53,726,333
53,726,333
0
true
2018-12-11T13:58:23.027Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to correctly call an event handler function in a parent component with a parameter in ReactJS?<p>I have a function in a component which I want to call in...
53,726,550
Change Location Grid<p>I am using kendo ui , I want to change grid location , but I can't. In the below , my grid in below of the input field, I want to put near right side to Delivery Notes + my grid </p> <p><a href="https://i.stack.imgur.com/FxRms.png" rel="nofollow noreferrer">example</a></p> <p>I want to add near...
<p>You can use <code>display: flex</code> to solve all the problems you need to deal with to get what you want.</p> <p>See the attached snippet for a demo.</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...
Change Location Grid
css|kendo-ui|grid
0
26
1
53,727,138
53,727,138
0
true
2018-12-11T14:44:24.090Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Change Location Grid<p>I am using kendo ui , I want to change grid location , but I can't. In the below , my grid in below of the input field, I want to put ...
53,727,170
Azure Stream Analytics Tool for Visual Studio in 2019 preview<p>I am just creating an Azure Stream Analytics using <a href="https://docs.microsoft.com/en-us/azure/stream-analytics/stream-analytics-quick-create-vs" rel="nofollow noreferrer">Azure Stream Analytics Tool for Visual Studio</a> in 2019 preview version, but i...
<p>Well, it seems like the extensions are not supported in the new Visual Studio yet. But it is not a blocker, we can still use the option "Provide data source settings manually" and complete the configuration.</p> <p><a href="https://i.stack.imgur.com/KPXHX.jpg" rel="nofollow noreferrer"><img src="https://i.stack.img...
Azure Stream Analytics Tool for Visual Studio in 2019 preview
azure|azure-iot-hub|azure-stream-analytics|stream-analytics|visual-studio-2019
0
68
2
53,727,171
53,727,171
0
true
2018-12-11T15:20:02.937Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Azure Stream Analytics Tool for Visual Studio in 2019 preview<p>I am just creating an Azure Stream Analytics using <a href="https://docs.microsoft.com/en-us/...
53,560,371
Prestashop 1.7 custom popup on product page<p>I'm trying to create a custom pop-up in Prestashop 1.7 as there in this example - <a href="https://www.samsung.com/uk/smartphones/galaxy-a9/buy/" rel="nofollow noreferrer">https://www.samsung.com/uk/smartphones/galaxy-a9/buy/</a></p> <p>The following is the screenshot of t...
<p>So, I figured out how to do this. This has to be done by building a custom module. <a href="http://validator.prestashop.com" rel="nofollow noreferrer">Click here</a> to create a skeleton for your custom module. The folder structure would look something as shown below.</p> <p><a href="https://i.stack.imgur.com/4t5qZ...
Prestashop 1.7 custom popup on product page
php|prestashop|prestashop-1.7
0
840
1
53,727,249
53,727,249
0
true
2018-11-30T15:26:51.927Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Prestashop 1.7 custom popup on product page<p>I'm trying to create a custom pop-up in Prestashop 1.7 as there in this example - <a href="https://www.samsung....
53,555,620
MEAN app: cannot update variable in Angular component and UI<p>I have a MEAN app. I am trying to use geolocation from the backend using <a href="https://www.npmjs.com/package/node-geocoder" rel="nofollow noreferrer">node-geocoder</a> but I cannot update my testgeocode variable with the geocoding results. </p> <p>The c...
<p>The solution was to move </p> <pre><code>response.json(promise) </code></pre> <p>to inside the .then() in server.js as follows: </p> <pre><code>// Geocoding using node-geocoder router.route('/geopromise').get((req, res) =&gt; { geocoder.geocode('29 champs elysée paris') .then(data =&gt; { res.json(data); ...
MEAN app: cannot update variable in Angular component and UI
node.js|angular|rxjs
0
38
1
53,727,351
53,727,351
0
true
2018-11-30T10:25:40.937Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: MEAN app: cannot update variable in Angular component and UI<p>I have a MEAN app. I am trying to use geolocation from the backend using <a href="https://www....
53,661,357
SQL Select XML from table like serialized Dictionary<string, object)<p>I have an XML structure that I got by serializing a Dictionary in C#. I'm doing this to add one AdditionalSettings column to a table versus multiple additional columns and this works great.</p> <p>The XML structure is like this:</p> <pre><code>&l...
<p>I finally gave up trying to find a way to do this with a SQL Query, though if anyone does figure this out I am still interested to know the answer.</p> <p>What I ended up doing was to write a C# Windows Forms application (because I like to launch the code I want with a button as opposed to a more common console app...
SQL Select XML from table like serialized Dictionary<string, object)
sql|xml|dictionary|serialization
0
55
2
53,727,484
53,727,484
0
true
2018-12-06T23:47:24.190Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: SQL Select XML from table like serialized Dictionary<string, object)<p>I have an XML structure that I got by serializing a Dictionary in C#. I'm doing this ...
53,676,010
KVM/Qemu allocated memory not showing in guest<p>So we have a RHEL 7.6 workstation with 128 gigs of ram. The OS sees all the ram and 80 cors (40 HT)</p> <p>We have 1 guest with 8 CPUs and 32gigs of ram running RHEL 7.6 workstation as well.</p> <p>We are trying to create another guest with 64 CPUs and 80 gigs of ram. ...
<p>The issue was related to using uefi bios and the OVMF.x86_64 package. Once we went back to a normal bios and no nvram, the issue went away.</p> <p>Hope this helps someone :). Joe</p>
KVM/Qemu allocated memory not showing in guest
memory|qemu|kvm
0
321
1
53,727,595
53,727,595
0
true
2018-12-07T19:51:42.963Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: KVM/Qemu allocated memory not showing in guest<p>So we have a RHEL 7.6 workstation with 128 gigs of ram. The OS sees all the ram and 80 cors (40 HT)</p> <p>...
53,727,658
doesn't replace all occurrences<p>I tried replacing three words in this string by regular expression. But I only get the last replacements not the whole three.</p> <pre><code>import re input_txt='The quick brown fox jumps over the lazy dog.' dic={'The':'THE', 'fox':'FOX', 'dog':'DOG'} for i,j in dic.items(): output...
<p>You just need to change the output2 for input_txt, overwriting it instead of creating a new variable.</p>
doesn't replace all occurrences
regex|python-3.x
0
40
2
53,727,841
53,727,841
0
true
2018-12-11T15:45:46.200Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: doesn't replace all occurrences<p>I tried replacing three words in this string by regular expression. But I only get the last replacements not the whole thre...
53,726,476
pretty printing a binary search tree<p>I am trying to print a binary search tree in "graphical" way (The <code>prettyPrint</code> function does that). My <code>node</code> class looks like this:</p> <pre><code>class Node: def __init__(self, dataValue): self.dataValue = dataValue self.leftChild = No...
<p>Your code is incomplete and not really a minimal reproducible example. But it looks like </p> <p>Here you copy the binary_search_tree object</p> <pre><code>tree = deepcopy(self) </code></pre> <p>And then assume that tree is your root object aka a Node</p> <pre><code>queue.enqueue(tree) # self = root </code></pr...
pretty printing a binary search tree
python|binary-search-tree|pretty-print
0
264
1
53,727,998
53,727,998
0
true
2018-12-11T14:40:06.133Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: pretty printing a binary search tree<p>I am trying to print a binary search tree in "graphical" way (The <code>prettyPrint</code> function does that). My <co...
53,727,884
Repetion while importing data from XML ( Simple XML Parser ) PHP<p>I am trying to extract data from an XML as below</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>&lt;lis...
<p>One problem I can see happening is that you never clear out the <code>$images</code> array each time round the loops, so this will mean that instead of building up a list of images for this listing, they will accumulate for all listings. So simple reset the array for each property listing...</p> <pre><code>foreach...
Repetion while importing data from XML ( Simple XML Parser ) PHP
php|arrays|simplexml
0
57
1
53,728,164
53,728,164
0
true
2018-12-11T15:58:33.043Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Repetion while importing data from XML ( Simple XML Parser ) PHP<p>I am trying to extract data from an XML as below</p> <p><div class="snippet" data-lang="j...
53,549,452
DQS Task on SSIS is freezing at [DQS Cleansing] Information: The DQS Cleansing component sent 9637 records to the DQS server<p>I'm trying to make some tests to verify a DQS SSIS task execution. When I run the task, a simple OLEDB source, a DQS Transform, and a OLEDB destination, the package freezes at this point. It is...
<p>Seems to be that the issue came with an update for Microsoft Windows Sever. Reinstalled DQS Server, Uploaded the backup DQS file and it was running back again. Keep backups after every knowledge discovery, these are the only way to restore them after this issue.</p>
DQS Task on SSIS is freezing at [DQS Cleansing] Information: The DQS Cleansing component sent 9637 records to the DQS server
ssis|data-cleaning
0
75
1
53,728,247
53,728,247
0
true
2018-11-30T00:13:47.963Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: DQS Task on SSIS is freezing at [DQS Cleansing] Information: The DQS Cleansing component sent 9637 records to the DQS server<p>I'm trying to make some tests ...
53,710,116
D-Bus - 'ServiceUnknown' exception encountered while calling a remote procedure<p>I'm trying to call the remote procedure <code>DisplayFolderAndSelect()</code> of Thunar file manager from my own program:</p> <pre><code>import dbus bus = dbus.SessionBus() obj = bus.get_object('org.xfce.Thunar', '/org/xfce/FileManager')...
<p>I think it is an OS-related issue, restarting D-Bus service solved the problem</p>
D-Bus - 'ServiceUnknown' exception encountered while calling a remote procedure
python|python-2.7|dbus|xfce|thunar
0
583
1
53,728,298
53,728,298
0
true
2018-12-10T16:50:22.167Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: D-Bus - 'ServiceUnknown' exception encountered while calling a remote procedure<p>I'm trying to call the remote procedure <code>DisplayFolderAndSelect()</cod...
53,720,580
How do Channels differ from Samples/Dimension?<p>I am a confused about the definition of "channels" in various types of data. </p> <p>In CNN, why Color Image is classified as 2D-data with 3 channels RGB (Deep Learning, Ian Goodfellow et al) but not 3D-data?</p> <p>In a paper on LSTM with time-series data here (sectio...
<p>Each pixel is a feature which has 3 channels, but there are 2D of these features. in a sense you are right there are more than 2D features but spatially it is 2D. This is important because convolution operation takes is sliding filters over spatial dimensions.</p> <p>Similarly, characters can be considered as feat...
How do Channels differ from Samples/Dimension?
nlp|conv-neural-network|dimensions
0
55
1
53,728,423
53,728,423
0
true
2018-12-11T09:00:25.903Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do Channels differ from Samples/Dimension?<p>I am a confused about the definition of "channels" in various types of data. </p> <p>In CNN, why Color Imag...
53,714,744
GoogleAppScript TeamDrives<p>I have this code :</p> <pre><code>var params = { supportsTeamDrives: true, includeTeamDriveItems: true }; var pageToken folders = Drive.Files.list({ q: "title = 'ADSD'", maxResults: 100, pageToken: pageToken, params: { supportsTeamDrives: true, includeTeamDriveItems: ...
<p>I found the answer. The parameters must be in the request and not in "parameters".</p> <pre><code>var pageToken do { folders = Drive.Files.list({ pageSize: 10, //fields: 'nextPageToken, files(id, name)', includeTeamDriveItems: true, supportsTeamDrives: true, q: "title = 'ADSD'" ...
GoogleAppScript TeamDrives
google-apps-script|google-drive-api
0
74
1
53,728,446
53,728,446
0
true
2018-12-10T22:36:45.987Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: GoogleAppScript TeamDrives<p>I have this code :</p> <pre><code>var params = { supportsTeamDrives: true, includeTeamDriveItems: true }; var pageToken f...
53,715,095
Swift tapCreate() auto enable after disabled<p>I have created tap with:</p> <pre><code> guard let eventTap = CGEvent.tapCreate(tap: .cgSessionEventTap, place: .headInsertEventTap, options: .defaultTap, ...
<p>Found a way to get a notification when the user logs back in. This is only triggered when the user who launched the app logs back in. In <code>applicationDidFinishLaunching</code>, I have added:</p> <pre><code>NSWorkspace.shared().notificationCenter.addObserver(self, selector: #selector(self.rebuildEventChains(aNot...
Swift tapCreate() auto enable after disabled
macos|swift3
0
71
1
53,729,171
53,729,171
0
true
2018-12-10T23:11:46.967Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Swift tapCreate() auto enable after disabled<p>I have created tap with:</p> <pre><code> guard let eventTap = CGEvent.tapCreate(tap: .cgSessionEventTap, ...
53,726,571
returning a value from .getAttribute while inside spec<p>I have a function inside a pageObject class :</p> <pre><code>async getSingleIdFromDrawerUsing(test1, test2) { await browser.wait(async () =&gt; { return await element(by.xpath('//h3[.="' + test1 + '"]/..' + '//something//div[@attr1"' + test2 + ...
<p>I'm not sure why you even need <code>browser.wait()</code> in your function. You should just be able to do this:</p> <pre><code>async getSingleIdFromDrawerUsing(test1, test2) { return element(by.xpath('//h3[.="' + test1 + '"]/..' + '//something//div[@attr1"' + test2 + '"]')).getAttribute('attr2'); } </c...
returning a value from .getAttribute while inside spec
xpath|protractor
0
25
1
53,729,437
53,729,437
0
true
2018-12-11T14:45:19.053Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: returning a value from .getAttribute while inside spec<p>I have a function inside a pageObject class :</p> <pre><code>async getSingleIdFromDrawerUsing(test1...
53,710,509
feed data to fitDataset()<p>I'm trying to fit a model using fitDataset(). I can train using the &quot;normal&quot; approach, with a for loop and getting random batches of data (20000 data points).</p> <p>I'd like to use the fitDataset() and be able to use the entire dataset and not rely on &quot;randomness&quot; of my ...
<p><strong>Solved it</strong></p> <p>so after a lot of trial an error i found a way to make it work.</p> <p>So, i had an input shape of [6, 5], meaning an array with 6 arrays of 5 floats each.</p> <pre><code>[[[0.3467378, 0.3737, 0.4781905, 0.90665, 0.68142351], [0.44003019602788285, 0.3106, 0.4864576, 0.90193448, 0...
feed data to fitDataset()
tensorflow-datasets|tensorflow.js
0
832
2
53,729,612
53,729,612
0
true
2018-12-10T17:15:18.060Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: feed data to fitDataset()<p>I'm trying to fit a model using fitDataset(). I can train using the &quot;normal&quot; approach, with a for loop and getting rand...
53,721,013
Overloaded method value trigger with alternatives for '=> Unit' parameter<p>I just upgraded <a href="https://github.com/lihaoyi/scala.rx" rel="nofollow noreferrer">Scala.rx</a> version 0.3.2 to 0.4.0 and suddenly I get the following errors on my <code>trigger</code>s:</p> <pre><code>overloaded method value trigger wit...
<p>Note <code>MyRx.trigger { () =&gt;</code> in the error message. First, you need to remove the <code>() =&gt;</code> part (it may be on the next line after <code>{</code> as well).</p> <p><code>=&gt; Unit</code> as a parameter type is a by-name parameter, it automatically turns a block like <code>{ ...; jQuery("#pag...
Overloaded method value trigger with alternatives for '=> Unit' parameter
scala|scala.js|scala.rx
0
46
1
53,729,629
53,729,629
0
true
2018-12-11T09:26:29.497Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Overloaded method value trigger with alternatives for '=> Unit' parameter<p>I just upgraded <a href="https://github.com/lihaoyi/scala.rx" rel="nofollow noref...
53,728,558
Install gstreamer using cerbero<p>I am on ubuntu 18.04 on a x86_64 machine and I cant seem to install gstreamer using cerbero. I followed the instructions here: <a href="https://gstreamer.freedesktop.org/documentation/installing/building-from-source-using-cerbero.html" rel="nofollow noreferrer">https://gstreamer.freede...
<p>I found out I didn't set the path properly. set the libraries here</p> <pre><code>export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/gstreamer/lib </code></pre> <p>and the binary path here:</p> <pre><code>export PATH=/opt/gstreamer/bin:$PATH </code></pre> <p>apparently you are not supposed to install the debs:</p> <b...
Install gstreamer using cerbero
build|gstreamer
0
807
1
53,730,898
53,730,898
0
true
2018-12-11T16:36:57.050Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Install gstreamer using cerbero<p>I am on ubuntu 18.04 on a x86_64 machine and I cant seem to install gstreamer using cerbero. I followed the instructions he...
53,729,274
How can I always show the main page when I click the tab bar in swift4?<p>I have the code to go to the next page and show the tabbar when I click the button.</p> <pre><code>@IBAction func moveBtn(_ sender: Any) { guard let next = self.storyboard?.instantiateViewController(withIdentifier: "nextPage") as? nextPa...
<p>Add this to your <code>nextPageCon</code> view controller:</p> <pre><code>override func viewWillDisappear(_ animated: Bool) { super.viewWillDisappear(animated) self.presentingViewController?.dismiss(animated: false, completion: nil) } </code></pre> <p>When you present <code>nextPageCon</code> and then navi...
How can I always show the main page when I click the tab bar in swift4?
ios|swift
0
29
1
53,730,906
53,730,906
0
true
2018-12-11T17:24:26.643Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I always show the main page when I click the tab bar in swift4?<p>I have the code to go to the next page and show the tabbar when I click the button....
53,729,615
Trying to convert a JLabel to JList using a setCellRenderer<p>I am trying to convert the data that I am storing in my Jlabel into a JList using the "topicPostArea.setCellRenderer" method within the code, reason being that I have some delete functionality that requires the data to be stored in a list before I can delete...
<p>Swing components, by default, display the string form of each data object. So, you can remove the cell renderer, and provide a toString method in your MRQueueTopicCreate class:</p> <pre><code>public class MRQueueTopicCreate implements Entry { // ... @Override public String toString() { return ...
Trying to convert a JLabel to JList using a setCellRenderer
java|javaspaces|jini
0
38
1
53,731,059
53,731,059
0
true
2018-12-11T17:45:34.013Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Trying to convert a JLabel to JList using a setCellRenderer<p>I am trying to convert the data that I am storing in my Jlabel into a JList using the "topicPos...
53,730,080
ASP.Net and DotNetNuke -- why does a customer AuthorizeAttribute override ValidateAntiForgeryToken?<p>I have a custom AuthorizationAttribute:</p> <pre><code>public class CodeWomplerAuthorizeAttribute : AuthorizeAttribute { protected override bool AuthorizeCore(HttpContextBase httpContext) { return Ses...
<p>Here is one way:</p> <pre><code>protected override bool AuthorizeCore(HttpContextBase httpContext) { var cookie = httpContext.Request.Cookies[AntiForgeryConfig.CookieName]; AntiForgery.Instance.Validate(cookie?.Value, httpContext.Request.Headers["__RequestVerificationToken"]);` protected override bool Autho...
ASP.Net and DotNetNuke -- why does a customer AuthorizeAttribute override ValidateAntiForgeryToken?
asp.net|overriding|dotnetnuke|authorize
0
46
1
53,731,356
53,731,356
0
true
2018-12-11T18:15:43.447Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: ASP.Net and DotNetNuke -- why does a customer AuthorizeAttribute override ValidateAntiForgeryToken?<p>I have a custom AuthorizationAttribute:</p> <pre><cod...
53,730,554
DiagrammeR: Devise a graph from a dataframe<p><strong>Objective</strong> (In the R environment): extract <strong><em>nodes and edges</em></strong> from a dataframe to use them for modeling a graph!!</p> <p>I am trying to learn how to work with DiagrammeR or any other graph modeling libraries in order to get a graph su...
<p>You can do this with the <code>igraph</code> package. Your data frame is an adjacency matrix and igraph contains a function to make that into a graph. My code below adds a layout to position the vertices in the positions that you indicated in your sample graph. </p> <pre><code>## Your data df = read.table(text="a b...
DiagrammeR: Devise a graph from a dataframe
r|dataframe|graph|diagrammer
0
262
1
53,731,403
53,731,403
0
true
2018-12-11T18:49:23.530Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: DiagrammeR: Devise a graph from a dataframe<p><strong>Objective</strong> (In the R environment): extract <strong><em>nodes and edges</em></strong> from a dat...
53,723,531
How to check existing versions in Test Flight<p>I'm uploading the new version to the TF, but getting the error, that this version is already exists. When looking to the TF console at the <a href="https://appstoreconnect.apple.com" rel="nofollow noreferrer">https://appstoreconnect.apple.com</a> there are no builds at al...
<p>If go to ITC (AppStoreConnect) -> App -> Functions there would be shown all builds.</p>
How to check existing versions in Test Flight
ios|xcode|testflight
0
60
1
53,731,412
53,731,412
0
true
2018-12-11T11:46:54.083Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to check existing versions in Test Flight<p>I'm uploading the new version to the TF, but getting the error, that this version is already exists. When loo...
53,731,651
Django ImageField is empty<p>I am trying to create a form that uses ajax to create a new user. All the other fields work, besides the ImageField. I don't get a error when submitting, but the image will still not save. </p> <p>Github Repo: <a href="https://github.com/VijaySGill/matching-app" rel="nofollow noreferrer">h...
<p>I suggest using the following method:</p> <pre><code>class UserProfile(models.Model): user = models.OneToOneField(User, on_delete=models.CASCADE) gender = models.CharField(max_length=6, blank=False) dateOfBirth = models.DateField(null=True, blank=False) bio = models.TextField(max_length=500, blank=T...
Django ImageField is empty
python|django
0
2,610
2
53,732,490
53,732,490
0
true
2018-12-11T20:12:11.843Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Django ImageField is empty<p>I am trying to create a form that uses ajax to create a new user. All the other fields work, besides the ImageField. I don't get...
53,726,648
react-native-multiple-select how to populate with data stored<p>I need to use it in the profile screen with the data already populated to update. </p> <h3>Library versions</h3> <pre><code>{ "@expo/samples": "2.1.1", "@mapbox/geo-viewport": "^0.4.0", "expo": "^30.0.1", "react": "16.3.1", "react-nat...
<p>The solution is simple. Inside the selected data need to add only the id in string like this</p> <pre><code>userData.therapyType.map(function(index, elem) { therapy_type_selected.push(index.id.toString()); }) </code></pre>
react-native-multiple-select how to populate with data stored
javascript|reactjs|react-native
0
288
1
53,732,593
53,732,593
0
true
2018-12-11T14:49:39.737Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: react-native-multiple-select how to populate with data stored<p>I need to use it in the profile screen with the data already populated to update. </p> <h3>L...
53,732,969
Pandas group by<p>I have a dataframe like so - </p> <pre><code> Name Id 7 Retail 1980 8 Retail 1980 9 Retail 1980 10 Retail 1980 11 Retail 1980 </code></pre> <p>When I run this</p> <pre><code>df.groupby('Name') </code></pre> <p>I expect </p> <pre><code> Name Id 1 Retail 1980 </code></...
<p>IIUC, I believe you want <code>first()</code>. Just using <code>df.groupby('Name')</code> will return a groupby object. You can use the <code>groups</code> property of the groupby object to return a dictionary of the groups:</p> <pre><code>df.groupby('Name') df.groupby('Name').groups df.groupby('Name').first() </...
Pandas group by
pandas|pandas-groupby
0
27
1
53,733,046
53,733,046
0
true
2018-12-11T21:59:47.947Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Pandas group by<p>I have a dataframe like so - </p> <pre><code> Name Id 7 Retail 1980 8 Retail 1980 9 Retail 1980 10 Retail 1980 11 Retai...
53,731,838
Rails template error implicit conversion string to string Heroku<p>I have a function that looks at a stored string, converts to date, and outputs as formatted string:</p> <pre><code> def due_date() d = Configurable[:payment_due_date] Date.parse(d).to_formatted_s(:long) end </code></pre> <p>And a line in a...
<p>This was an effect of the Configurable Engine gem updating from 0.4.8 to 0.5. I haven't yet been able to work out exactly why that should be--but locking back on 0.4.8 resolves the issue.</p>
Rails template error implicit conversion string to string Heroku
ruby-on-rails|heroku
0
36
2
53,733,809
53,733,809
0
true
2018-12-11T20:26:11.533Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Rails template error implicit conversion string to string Heroku<p>I have a function that looks at a stored string, converts to date, and outputs as formatte...
53,732,697
Pong Game in Javascript<p>I am trying to do three things with the following Pong game code:</p> <ol> <li><p>Make the black line in the center dashed</p></li> <li><p>Make the score bigger and in a different font</p></li> <li><p>stop the paddles from going off the board</p></li> </ol> <p>Here is the Html part: </p> <p...
<p>to make your line in the middle dashed, you can't simply replace the <code>fillRect</code> with <code>setLineDash</code>. This will only set a property of a line you have yet to draw. you can draw a dashed line like this for example:</p> <pre><code>gameboard.lineWidth = 5; gameboard.beginPath(); gameboard.setLineDa...
Pong Game in Javascript
javascript|html|css
0
1,056
1
53,733,935
53,733,935
0
true
2018-12-11T21:37:08.593Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Pong Game in Javascript<p>I am trying to do three things with the following Pong game code:</p> <ol> <li><p>Make the black line in the center dashed</p></li...
53,733,396
Having trouble making a mobile keyboard<p>I am making a mobile keyboard. I was having trouble on the javascript. I know that I have a mistake in the javascript because the keyboard does not type. This is my javascript:</p> <pre><code>$(function() { var $write = $('#write'), shift = false, capslock = false; /...
<p>Try this for your buttons.</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-js lang-js prettyprint-override"><code>var count=0; $(function() { var $write = $('#write'), shift = false, c...
Having trouble making a mobile keyboard
javascript|jquery|html|css|keyboard
0
61
2
53,734,342
53,734,342
0
true
2018-12-11T22:35:37.130Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Having trouble making a mobile keyboard<p>I am making a mobile keyboard. I was having trouble on the javascript. I know that I have a mistake in the javascri...
53,717,284
invalid subscript type 'list' Azure Machine Learning<p><strong>PROBLEM</strong> </p> <p>I deployed my experiments in Azure Machine Learning as a Web Service. The experiments ran without error. </p> <p>But when testing using <code>REQUEST/RESPONSE</code>, I'm getting the error below:</p> <blockquote> <p>Execute R S...
<p><strong>FIXED</strong></p> <p><strong>Problem:</strong></p> <p>Some R codes don't work if input data is limited (e.g 1-2 rows only)</p> <p><strong>Solution:</strong></p> <p>Load data by <code>Batch</code> instead of <code>REQUEST/RESPONSE</code></p>
invalid subscript type 'list' Azure Machine Learning
r|lapply|azure-machine-learning-studio
0
53
1
53,734,837
53,734,837
0
true
2018-12-11T04:13:37.417Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: invalid subscript type 'list' Azure Machine Learning<p><strong>PROBLEM</strong> </p> <p>I deployed my experiments in Azure Machine Learning as a Web Service...
53,735,260
Is this AES encrypt safe?<p>Here is my question: </p> <pre><code>two AES key: k1 and k2 use k1 to encrypt k2 generate c and k2 encrypt k1 generate d, publish c and d </code></pre> <p>Is this safe? Can any hacker got k1 or k2 from c and d?</p>
<p>Yes this is safe. Both <code>c</code> and <code>d</code> are the result of a key unknown to the attacker being used to encrypt a message that is also unknown to the attacker. It is as safe as AES is in any other practical scenario.</p>
Is this AES encrypt safe?
encryption
0
43
1
53,735,324
53,735,324
0
true
2018-12-12T02:34:02.830Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Is this AES encrypt safe?<p>Here is my question: </p> <pre><code>two AES key: k1 and k2 use k1 to encrypt k2 generate c and k2 encrypt k1 generate d, publ...
53,731,761
Passing a structre from Python to C++ OR passing a numpy array instead of file address to Yolo<p>I am trying pass in-memory images to Yolo rather than file addresses.</p> <p>In the <a href="https://github.com/pjreddie/darknet/blob/master/src/image_opencv.cpp" rel="nofollow noreferrer">source code</a> it reads the imag...
<p>Well I managed to do it in this way:</p> <p>here is how you can convert a numpy array to image format:</p> <pre><code>import darknet as dn def array_to_image(arr): arr = arr.transpose(2,0,1) c = arr.shape[0] h = arr.shape[1] w = arr.shape[2] arr = (arr/255.0).flatten() data = dn.c_array(dn....
Passing a structre from Python to C++ OR passing a numpy array instead of file address to Yolo
python|c++|data-structures|yolo
0
791
1
53,735,662
53,735,662
0
true
2018-12-11T20:20:18.753Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Passing a structre from Python to C++ OR passing a numpy array instead of file address to Yolo<p>I am trying pass in-memory images to Yolo rather than file a...
53,717,492
tf api usage : stop_if_no_decrease_hook<p>I wanna use stop_if_no_decrease_hook tf api in object detection.</p> <p>But I can't stop training process.</p> <pre><code>early_stopping = tf.contrib.estimator.stop_if_no_decrease_hook( estimator, metric_name='loss', max_steps_without_decrease=5, min_steps=0 )...
<pre><code>import numpy as np import tensorflow as tf import logging from tensorflow.python.training import session_run_hook class EarlyStoppingHook(session_run_hook.SessionRunHook): """Hook that requests stop at a specified step.""" def __init__(self, monitor='val_loss', min_delta=0, patience=0, mode=...
tf api usage : stop_if_no_decrease_hook
tensorflow
0
832
1
53,736,292
53,736,292
0
true
2018-12-11T04:43:12.900Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: tf api usage : stop_if_no_decrease_hook<p>I wanna use stop_if_no_decrease_hook tf api in object detection.</p> <p>But I can't stop training process.</p> <p...
53,736,592
How to make point unit align in css?<p>How do I make a css like the image below. If there is an easy way, happy to change div structure.</p> <p><a href="https://i.stack.imgur.com/o2vSV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/o2vSV.png" alt="enter image description here"></a></p> <p>I tried ...
<p>I added <code>display: flex</code> to your container so now each span takes the container height, and also set <code>line-height</code> to be equal to the font size, which will make you text stick to the top.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div c...
How to make point unit align in css?
css
0
29
2
53,736,808
53,736,808
0
true
2018-12-12T05:28:04.763Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to make point unit align in css?<p>How do I make a css like the image below. If there is an easy way, happy to change div structure.</p> <p><a href="htt...
53,737,350
When i click on button then data loaded below the previous page<p><a href="https://i.stack.imgur.com/igCxI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/igCxI.png" alt="enter image description here"></a>I want to load content on new fresh page after clicking on button. </p> <p>After clicking on c...
<p>Path is not set correctly.</p> <pre><code>const AppRouter= ()=&gt;( &lt;BrowserRouter&gt; &lt;div&gt; &lt;Header/&gt; &lt;Switch&gt; &lt;Route path="/quotation" component={Quotation} exact={true}/&gt; &lt;Route path="/form" component={CreateQuotation} exact={true}/&gt; &lt;/Switch&gt;...
When i click on button then data loaded below the previous page
reactjs|react-router-dom
0
37
2
53,737,866
53,737,866
0
true
2018-12-12T06:36:55.107Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: When i click on button then data loaded below the previous page<p><a href="https://i.stack.imgur.com/igCxI.png" rel="nofollow noreferrer"><img src="https://i...
53,735,062
Web3js raw transaction is being sent twice<p>I am sending a raw transaction to <code>Ropsten</code> test network with <code>web3</code> module in node. The <code>web3</code> code lives on an <code>express</code> back end. Here is the code:</p> <p>var express = require("express"); var router = express.Router();</p> <p...
<p>This doesn't answer why the double transaction was happening, but a work around is to put <code>next()</code> at the end of the code. hmmm....</p>
Web3js raw transaction is being sent twice
express|web3|web3js
0
280
1
53,737,974
53,737,974
0
true
2018-12-12T02:07:07.230Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Web3js raw transaction is being sent twice<p>I am sending a raw transaction to <code>Ropsten</code> test network with <code>web3</code> module in node. The <...
53,649,182
get updated data after edting and redirect to another route<p>In have two <code>Angular 6 Components</code>: <code>DetailsProduct</code> and <code>EditProduct</code>. When I edit a product, I'm redirected to the page of the Details about the product. My problem is, when I go back to Details, the new data I have saved a...
<p>The solution is:</p> <pre><code>EditProduct() { let url = this.baseUrl + `/products/${this.id}`; this.httpClient.put(url, JSON.stringify(query), httpOptions).subscribe( response =&gt; { this.goToDetails(); console.log(response); this.successMessage = true;}, err ...
get updated data after edting and redirect to another route
typescript|angular6|angular-routing
0
41
1
53,738,627
53,738,627
0
true
2018-12-06T10:22:15.920Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: get updated data after edting and redirect to another route<p>In have two <code>Angular 6 Components</code>: <code>DetailsProduct</code> and <code>EditProduc...
53,732,737
Running 2 bottle apps at the same time using multiprocess.Pool<p>I came into a situation where I need to run 2 applications (on a different port) at the same time. I understand this is probably not the best idea/design but please bear with me.</p> <p>The main problem is that <code>bottle.run</code> is blocking. The ob...
<p>Turns out the appropriate way to tackle this is to use <code>Bottle.mount</code>. This works perfectly:</p> <pre><code>import bottle parent_app = bottle.Bottle() child_app = bottle.Bottle() @parent_app.route('/') def index_app1(): return 'parent_app' @child_app.route('/') def index_app2(): return 'chil...
Running 2 bottle apps at the same time using multiprocess.Pool
python|bottle
0
293
1
53,738,859
53,738,859
0
true
2018-12-11T21:40:49.533Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Running 2 bottle apps at the same time using multiprocess.Pool<p>I came into a situation where I need to run 2 applications (on a different port) at the same...
53,731,986
Custom sonar rule for annotation parameters check<p>I have a task to create custom rule using SonarJava. Rule purpose is checking methods. If method is annottated with @Test it also needs to have @TestInfo annotation with not empty testCaseId parameter.</p> <p>This is what I have prepared:</p> <pre><code>public class...
<p>I figured it out. I switched to using Tree.Kind.ANNOTATION. This is the code for search of needed argument:</p> <pre><code>Arguments arguments = annotationTree.arguments(); if (!arguments.isEmpty()) { for (int i = 0; i &lt; arguments.size(); i++) { String parameter = ...
Custom sonar rule for annotation parameters check
annotations|sonarqube|squid
0
571
1
53,739,008
53,739,008
0
true
2018-12-11T20:36:54.433Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Custom sonar rule for annotation parameters check<p>I have a task to create custom rule using SonarJava. Rule purpose is checking methods. If method is annot...
53,739,070
Check Permissions with REST/Java in Cumulocity<p>is there an efficient way to check if an user has access to an managed object by comparing his effective inventory roles with a list of managed objects maybe? Or do I have to check each managed object with an API call?</p> <p>Regards Stefan</p>
<p>There is an API that will give you the inventory roles for a user</p> <pre><code>/user/{{tenant}}/users/{{username}}/roles/inventory </code></pre> <p>However keep in mind that the IDs listed in the response are the groups that the user has access to and not the full list of devices. You will still need to check wh...
Check Permissions with REST/Java in Cumulocity
cumulocity
0
59
1
53,739,910
53,739,910
0
true
2018-12-12T08:41:27.800Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Check Permissions with REST/Java in Cumulocity<p>is there an efficient way to check if an user has access to an managed object by comparing his effective inv...
53,740,099
Generate multiple dates from age segments<p>Current code:</p> <p>Here I give the different segments; 0-20 years old, 21-45 years old, 46-65 years old and 66-100 years old.</p> <pre><code>dob020 &lt;- seq(today() - years(20), today(), by = "day") dob2145&lt;- seq(today() - years(45), today() - years(20), by = "day") d...
<p>You can't do this in one <code>sample</code>, you need to sample them separately and then combine them</p> <pre><code>n &lt;- 100 prob &lt;- c(0.15,0.40, 0.35, 0.10) c(sample(dob020, n*prob[1]), sample(dob2145, n*prob[2]), sample(dob4665, n*prob[3]), sample(dob66100, n*prob[4])) </code></pre>
Generate multiple dates from age segments
r|date|lubridate
0
37
1
53,740,350
53,740,350
0
true
2018-12-12T09:41:09.690Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Generate multiple dates from age segments<p>Current code:</p> <p>Here I give the different segments; 0-20 years old, 21-45 years old, 46-65 years old and 66...
53,738,517
How to define nested array in Mongoose Schema<p>I want to define the Model schema below:</p> <pre><code>var myLoc = Schema({ extent : { type: String, coordinates: [ [ [Number, Number], [Number, Number], [Number, Number], [N...
<p>You can create a mongoose schema as follows</p> <pre><code>const MyLocationSchema = new Schema({ extent: { type: { type: String, }, coOrdinates: [[[Number]]] } }); module.exports = MyLocation = mongoose.model('MyLocation', MyLocationSchema); </code></pre> <p>Here, I am ...
How to define nested array in Mongoose Schema
mongodb|mongoose
0
41
1
53,740,695
53,740,695
0
true
2018-12-12T08:02:36.210Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to define nested array in Mongoose Schema<p>I want to define the Model schema below:</p> <pre><code>var myLoc = Schema({ extent : { type: String, ...
53,724,327
How to connect to Azure Cosmos DB from Service Fabric Mesh<p>I'm trying to create an application that connects to a Cosmos DB and runs on Service Fabric Mesh. I've created a simple console application that tries to make the connection</p> <pre><code>var client = new Microsoft.Azure.Documents.Client.DocumentClient(new ...
<p>This is a known bug - open Dockerfile and add EXPOSE 80 to the first section, i.e.</p> <p><code> FROM ... WORKDIR ... EXPOSE 80 </code></p> <p>then networking starts working.</p>
How to connect to Azure Cosmos DB from Service Fabric Mesh
c#|azure|azure-cosmosdb|azure-service-fabric-mesh
0
549
1
53,741,996
53,741,996
0
true
2018-12-11T12:33:19.977Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to connect to Azure Cosmos DB from Service Fabric Mesh<p>I'm trying to create an application that connects to a Cosmos DB and runs on Service Fabric Mesh...
53,742,098
Avoid counting unfiltered results using COUNTIFS formula<p>I have an excel sheet that I am working on that lists all the incidents reported in the office. There are multiple sheets, the original data sheet and others that extract that data.</p> <p>I have a formula that currently counts how many incidents were logged a...
<p>This could work:</p> <pre><code>=SUMPRODUCT(SUBTOTAL(3,OFFSET(GES_OOH_Incidents!C1,ROW(GES_OOH_Incidents!C:C)-ROW(GES_OOH_Incidents!C1),0)),(GES_OOH_Incidents!C:C="Call")*(GES_OOH_Incidents!D:D="Advertising")) </code></pre> <p>It's a slow formula applied on whole columns though.</p> <p><a href="https://www.excelf...
Avoid counting unfiltered results using COUNTIFS formula
excel
0
49
1
53,743,019
53,743,019
0
true
2018-12-12T11:31:11.090Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Avoid counting unfiltered results using COUNTIFS formula<p>I have an excel sheet that I am working on that lists all the incidents reported in the office. Th...
53,708,632
Highcharts transform JSON into data without losing informations<p>I got a JSON with this format : </p> <pre><code>[{"date":1508473800525,"total":150,"class1":55,"class2":36},{...},{...}] </code></pre> <p>I want to use it in this example : <a href="https://www.highcharts.com/stock/demo/responsive" rel="nofollow norefe...
<p>You should save <code>class1</code> and <code>class2</code> properties to a particular point object in the data array. Each point will be an object like that:</p> <pre><code> { x: jsonPoint.date, y: jsonPoint.total, class1: jsonPoint.class1, class2: jsonPoint.class2 } </code></pre> <p>This appro...
Highcharts transform JSON into data without losing informations
javascript|json|highcharts
0
31
2
53,743,234
53,743,234
0
true
2018-12-10T15:20:55.320Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Highcharts transform JSON into data without losing informations<p>I got a JSON with this format : </p> <pre><code>[{"date":1508473800525,"total":150,"class1...
53,702,586
Runtime alert in azure function<p>I want to set up an alert if the function is executed for more than 10 seconds. I use Application Insights. What condition will allow me to get this exception when creating an alert? <a href="http://joxi.ru/5mdkzzEIkyvDg" rel="nofollow noreferrer">http://joxi.ru/5mdkzzEIkyvDg</a></p>
<p>It's workerd: in resourse group I selected Application Insights, but not my function app, and then in condition I can select "duration my function"</p>
Runtime alert in azure function
azure-functions
0
49
1
53,743,257
53,743,257
0
true
2018-12-10T09:18:47.960Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Runtime alert in azure function<p>I want to set up an alert if the function is executed for more than 10 seconds. I use Application Insights. What condition ...
53,743,058
save array values and pass it to the next page<p>I have an array in homePage ts and view it to html as well but I need when the user clicks on them passing this data to another page</p> <pre><code>adsProfile() { this.navCtrl.push(AdsProfilePage, {Name :this.name,Address:this.address}); } </code></pre> <p>I need to ...
<p>In <code>AdsProfilePage</code> you have to write:</p> <pre><code>name:string; address:string; constructor(public navParams: NavParams) { this.name = navParams.data.Name; this.address = navParams.data.Address; } </code></pre>
save array values and pass it to the next page
angular|ionic3
0
28
2
53,743,289
53,743,289
0
true
2018-12-12T12:28:56.953Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: save array values and pass it to the next page<p>I have an array in homePage ts and view it to html as well but I need when the user clicks on them passing t...
53,505,940
Retrieve properties from nested collections of a type with Fluent Syntax<p>I am trying to create a way for adding into a collection, properties selected from a type using Fluent syntax. I currently have the following:</p> <p><strong>SelectablePropertiesBuilder</strong></p> <pre><code>public class SelectableProperties...
<p><strong><em>Finally I found a way for achieving my purpose by using a singleton and an inherited SelectablePropertiesBuilder. I've also improved the syntax, you can see the full implementation here:</em></strong></p> <ul> <li><strong>Builder</strong>: <a href="https://github.com/ChustaSoft/CommonNET/blob/master/Chu...
Retrieve properties from nested collections of a type with Fluent Syntax
c#|asp.net|.net|.net-core|nuget
0
33
1
53,743,783
53,743,783
0
true
2018-11-27T18:26:05.127Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Retrieve properties from nested collections of a type with Fluent Syntax<p>I am trying to create a way for adding into a collection, properties selected from...
53,740,675
Fixed element under iOS navigation toolbar<p>I have a fixed navigation element at the top of a page which I am trying to move whenever the iOS safari navigation (URL address) toolbar appears such that it is not covered by it.</p> <p>I am deriving the height of the toolbar by first acquiring the real page height using ...
<p>I found a solution. You have to monitor the last scroll direction.</p> <p>If the last scroll direction is <code>up</code> then <code>top: 0</code> is never covered by the toolbar.</p> <p>If the last scroll direction is <code>down</code> then <code>top</code> should be <code>top: Math.min(toolbarHeight, window.page...
Fixed element under iOS navigation toolbar
javascript|html|ios|css
0
51
1
53,743,919
53,743,919
0
true
2018-12-12T10:12:03.440Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Fixed element under iOS navigation toolbar<p>I have a fixed navigation element at the top of a page which I am trying to move whenever the iOS safari navigat...
53,744,104
Python package both as application and as lib<p>I am aware there already is a question like this however I am working on this for over an hour now and I can't get it to work at all.</p> <p>I have a package that has unit tests using nosetests, and certain classes are importable. I have the following structure:</p> <pr...
<p>Your code is perfectly fine. The problem is you are trying to run the code in wrong way.</p> <p>You should not have to modify <code>sys.path</code> in order to run your tests (or in general any <code>sys.path.insert(...)</code> is a code smell. In 99% of the cases there are better alternatives).</p> <p>You should ...
Python package both as application and as lib
python|import|python-import
0
38
1
53,744,388
53,744,388
0
true
2018-12-12T13:26:59.017Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Python package both as application and as lib<p>I am aware there already is a question like this however I am working on this for over an hour now and I can'...
53,744,065
How can i select particular items of array with Bash<p>I have an array which i want to create a new array based on that, which contains just my particular selected items by index number.</p> <p>for example i want to have an array which contains just <code>two</code> and <code>five</code> or with index number <code>[2,...
<p>You would need a loop:</p> <pre><code>indices=(1 3) for i in "${indices[@]}"; do # or for i in 1 3, if you want to hard-code the indices array2+=("${array[i]}") done </code></pre>
How can i select particular items of array with Bash
bash
0
35
2
53,745,017
53,745,017
0
true
2018-12-12T13:25:20.037Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can i select particular items of array with Bash<p>I have an array which i want to create a new array based on that, which contains just my particular se...
53,745,172
Is there any method to put multiple error types into one objects by @ExceptionHandler<p>This is my first time to raised out question in the stackoverflow. I would like to ask whether there is a method to throw back multiple error types at the same time into one object to users by @ExceptionHandler?</p> <p>For example,...
<p>You could implement a custom Validator (<a href="https://docs.spring.io/spring/docs/4.1.x/spring-framework-reference/html/validation.html" rel="nofollow noreferrer">https://docs.spring.io/spring/docs/4.1.x/spring-framework-reference/html/validation.html</a>) and in the validate method reject the values.</p> <p>Afte...
Is there any method to put multiple error types into one objects by @ExceptionHandler
java|spring-boot|exception-handling
0
45
1
53,746,061
53,746,061
0
true
2018-12-12T14:26:11.400Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Is there any method to put multiple error types into one objects by @ExceptionHandler<p>This is my first time to raised out question in the stackoverflow. I ...
53,746,189
javascript object group by with different properties<p>my question is simple,</p> <p>My input is </p> <pre><code>[ { department_id: '28', linear_meter: 6 }, { department_id: '56', linear_meter: 19 }, { department_id: '28', square_meters: 20.28 }, { department_id: '56', square_meters: 18.28827 } ] </code></pre> ...
<p>well the object may not have the item so you are adding a number to undefined. Easiest thing is just use Object.assign() to copy over the properties. </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-js lang-js p...
javascript object group by with different properties
javascript|object|properties|reduce
0
28
2
53,746,308
53,746,308
0
true
2018-12-12T15:22:25.190Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: javascript object group by with different properties<p>my question is simple,</p> <p>My input is </p> <pre><code>[ { department_id: '28', linear_meter: 6...
53,657,600
Angular 4 routing in lazy loaded feature module<p>I am using Angular 4.1.3. Our application started small, but have grown enough to require the use of feature modules. So, I started breaking it up in modules. I have the following setup:</p> <p><code> - app.module - app-routing.module --- feature-a.module </code></...
<p>I am not sure if this is the best way to handle this, but I ended up adding this to app-routing.module.ts:</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-js lang-js prettyprint-override"><code>{ path: 'page1', ...
Angular 4 routing in lazy loaded feature module
angular-routing
0
31
1
53,747,228
53,747,228
0
true
2018-12-06T18:28:21.370Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Angular 4 routing in lazy loaded feature module<p>I am using Angular 4.1.3. Our application started small, but have grown enough to require the use of featu...
53,747,286
Windows OS support in Azure VS AWS any list<p>Is there anyway I can get to know what are all the windows OS support available in Azure when compared with AWS.</p> <p>I wanted to create VM in azure with win7, win8 and win10 OS versions is it possible? And also creating EC2 with same OS's is possible?</p>
<p>Here is the list for AWS:</p> <p><a href="https://aws.amazon.com/windows/resources/amis/" rel="nofollow noreferrer">https://aws.amazon.com/windows/resources/amis/</a></p> <p>And the I think this is right for Azure:</p> <p><a href="https://azuremarketplace.microsoft.com/en-us/marketplace/apps?filters=virtual-machi...
Windows OS support in Azure VS AWS any list
amazon-web-services|amazon-ec2|azure-vm-templates
0
44
1
53,747,933
53,747,933
0
true
2018-12-12T16:24:44.010Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Windows OS support in Azure VS AWS any list<p>Is there anyway I can get to know what are all the windows OS support available in Azure when compared with AWS...
53,747,901
raise InvalidIndexError: Filling the columns of one data-frame with another multilevel data-frame<p>I have two data-frames. df1 is multilevel data-frame and df2 another data-frame which I want fill by matching its existing rows with multiple levels of df1.</p> <p>This works fine because it does not have duplicate rows...
<p>A <code>MultiIndex</code> can be indexed with a tuple. Form <code>tuples</code> from <code>df2</code> and slice <code>df1</code>:</p> <pre><code>df1.loc[[tuple(x) for x in df2.values]] step 0 step 1 step 2 step 3 step 4 D1 E1 S1 0.372621 0.211435 0.162299 0.149502 0.104143 S2 0....
raise InvalidIndexError: Filling the columns of one data-frame with another multilevel data-frame
python-3.x|pandas|indexing
0
25
1
53,747,977
53,747,977
0
true
2018-12-12T17:00:03.550Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: raise InvalidIndexError: Filling the columns of one data-frame with another multilevel data-frame<p>I have two data-frames. df1 is multilevel data-frame and ...
53,747,840
Laravel + Ajax, proper way to present data to html<p>I am trying to better understand how to correctly/properly present the data from my database to my page. I currently have working AJAX, I can post and retrieve it. What I don't understand is how to show it on the page as I need. IE:</p> <p>I can show it using <code...
<p>You can use span :</p> <pre><code>&lt;div id="note"&gt;&lt;/div&gt; &lt;p&gt;By: &lt;span id="firstname"&gt;{{show firstname}}&lt;/span&gt; &lt;span id="lastname"&gt;{{show lastname}}&lt;/span&gt;&lt;/p&gt; </code></pre>
Laravel + Ajax, proper way to present data to html
html|css|ajax|laravel
0
28
1
53,748,238
53,748,238
0
true
2018-12-12T16:56:33.633Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Laravel + Ajax, proper way to present data to html<p>I am trying to better understand how to correctly/properly present the data from my database to my page....
53,747,707
How to get security group permissions for a given user/group in C#<p>I'm trying to find out what permissions a user has to a given security group. For example do the have Read, Read/Write, Admin, etc...</p> <p>I get the list of groups they belong to but can't figure out how to get the permissions for those groups.</p>...
<p><code>GetAuthorizationGroups()</code> will give you a list of <code>GroupPrincipal</code> objects. However, <code>GroupPrincipal</code> doesn't expose the object's permissions. It does use <code>DirectoryEntry</code> behind the scenes, which you can get access to using:</p> <pre><code>var groupDe = (DirectoryEntry)...
How to get security group permissions for a given user/group in C#
c#|active-directory
0
284
1
53,748,777
53,748,777
0
true
2018-12-12T16:49:25.740Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to get security group permissions for a given user/group in C#<p>I'm trying to find out what permissions a user has to a given security group. For exampl...
53,746,695
Placing a repeater inside an AjaxToolKit Accordion<p>I am trying to use a repeater inside an AjaxToolKit Accordion. This is necessary because I need pagination within my DataList using a SQL stored procedure. It works fine if I place the repeater outside of the AjaxToolKit Accordion, but I need to place the repeater in...
<p>I found the solution. Place the repeater inside separate content tags and within the accordion's content tags. Also, no need to call the repeater by an outside repeater through code behind as stated above. I removed the outside repeater. It's working now.</p> <pre><code>&lt;content&gt;repeater goes here&lt;/content...
Placing a repeater inside an AjaxToolKit Accordion
c#|asp.net|accordion|repeater|ajaxcontroltoolkit
0
292
1
53,749,786
53,749,786
0
true
2018-12-12T15:51:39.487Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Placing a repeater inside an AjaxToolKit Accordion<p>I am trying to use a repeater inside an AjaxToolKit Accordion. This is necessary because I need paginati...
53,749,583
Error when trying to build Rmarkdown site<p>I am trying to build a <code>rmarkdown</code> site for a final class project. I am getting an odd error in the build window. I reinstalled <code>stringi</code> and made sure it was installed/loaded. Any ideas on how to get a round this? I am currently using <code>version 1.24...
<p>I had to delete the package and then reinstall it with the following contingencies. </p> <p>install.packages("stringi",type="mac.binary")</p>
Error when trying to build Rmarkdown site
r|markdown|r-markdown
0
41
1
53,749,990
53,749,990
0
true
2018-12-12T18:53:45.470Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Error when trying to build Rmarkdown site<p>I am trying to build a <code>rmarkdown</code> site for a final class project. I am getting an odd error in the bu...
53,686,278
virt-install hangs - GPU Passthrough for Virtual Machines<p>I want to run VMs that uses host's GPU. For that, I followed <a href="https://www.server-world.info/en/note?os=Ubuntu_18.04&amp;p=kvm&amp;f=11" rel="nofollow noreferrer">this docs</a> to enable modules/grub configurations. Looks like I successfully configured,...
<p>Ok, I see the problem, the GPU is already being used by host(my laptop) i.e it is busy. So, when I run <code>virt-install</code> command, it hangs forever which is no wonder.</p> <p>In order to resolve the issue, switch your X11 to use CPU. I use Ubuntu Mate 18.06 which has handy tool to switch like in below screen...
virt-install hangs - GPU Passthrough for Virtual Machines
virtual-machine|gpu|qemu|kvm
0
779
1
53,750,904
53,750,904
0
true
2018-12-08T19:41:48.390Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: virt-install hangs - GPU Passthrough for Virtual Machines<p>I want to run VMs that uses host's GPU. For that, I followed <a href="https://www.server-world.in...
53,750,774
Towers of Hanoi alphabetical rings<p>I'm trying to figure out a little twist on the Towers of Hanoi puzzle. </p> <p>I have the Towers of Hanoi puzzle algorithm figured out, however, my goal is to instead of using numbers for for the rings, I am to use letters up to 26 (A..Z).</p> <p>I am also tasked with calling the ...
<p>The problem is in the first If-statement in the <code>towersOfHanoi(...)</code>. You put the static string as:</p> <blockquote> <p>"Move disk <em><strong>1</strong></em> from " + fromTow + " to " + toTow</p> </blockquote> <p>Also, a more convenient way of printing the character in correspondance to <em>n</em> is...
Towers of Hanoi alphabetical rings
java
0
73
1
53,750,972
53,750,972
0
true
2018-12-12T20:21:19Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Towers of Hanoi alphabetical rings<p>I'm trying to figure out a little twist on the Towers of Hanoi puzzle. </p> <p>I have the Towers of Hanoi puzzle algori...
53,749,083
API: GET-request with user_id or name+region<p>In my API I have a GET /users/ which gets me an array of all documents in users-collection. And I have a GET /users/:user_id which gets me a user. I also want to have a GET /users/name.region which gets me one user. Is this possible?</p> <p>Do I have to use query params l...
<p>Usually having something different than <code>GET users/:id</code> will break most popular REST guides like <a href="https://cloud.google.com/apis/design/resource_names" rel="nofollow noreferrer">Google's Resource Name specs</a>. </p> <p>What would be much better to do is have a <code>GET users/search</code> end-po...
API: GET-request with user_id or name+region
rest|api|express|request
0
314
2
53,751,120
53,751,120
0
true
2018-12-12T18:18:46.783Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: API: GET-request with user_id or name+region<p>In my API I have a GET /users/ which gets me an array of all documents in users-collection. And I have a GET /...
53,751,257
JSON returns an object but turns into a bool once assigned to a variable<p>I am integrating broadcasting to a messenger both right now, following the messenger platform API: <a href="https://developers.facebook.com/docs/messenger-platform/send-messages/broadcast-messages" rel="nofollow noreferrer">https://developers.fa...
<p>From the manual for <a href="http://docs.php.net/manual/en/function.curl-exec.php" rel="nofollow noreferrer">curl_exec</a>:</p> <blockquote> <p>Returns <strong>TRUE</strong> on success or <strong>FALSE</strong> on failure. However, if the <strong>CURLOPT_RETURNTRANSFER</strong> option is set, it will return the r...
JSON returns an object but turns into a bool once assigned to a variable
php|json|facebook-messenger-bot
0
75
1
53,751,324
53,751,324
0
true
2018-12-12T20:59:32.040Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: JSON returns an object but turns into a bool once assigned to a variable<p>I am integrating broadcasting to a messenger both right now, following the messeng...
53,751,212
Using Jquery in Razor View<p>I'm stuck on a issue where I need to insert a jquery variable in a Razor View. For instance I have the following code:</p> <pre><code>$(document).ready(function () { var options = { pages: @Html.Raw(Json.Encode(ViewBag.Array)) , singlePageMode: true ...
<p>Use <code>Array#map()</code> to return the array of objects needed</p> <pre><code> var options = { pages: @Html.Raw(Json.Encode(ViewBag.Array)) , singlePageMode: true }; options.pages = options.pages.map(function(url){ return { src: url }; }); $("#pdfbox").flipBook(option...
Using Jquery in Razor View
jquery|.net|visual-studio|razor-pages
0
42
2
53,751,433
53,751,433
0
true
2018-12-12T20:56:22.427Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Using Jquery in Razor View<p>I'm stuck on a issue where I need to insert a jquery variable in a Razor View. For instance I have the following code:</p> <pre...
53,749,788
Using XmlSerializer to deserialize in an extensible fashion with arbitrary elements<p>I am using XmlSerializer to deserialize XML responses from a remote API. There are a number of standard predefined classes, and I have built up classes for these. The key part of the response looks like this:</p> <pre><code>&lt;dat...
<p>I have determined one way to do this, though of course there may be better ones.</p> <p>As I mentioned above, set up a handler for OnUnknownElement:</p> <pre><code>XmlDeserializationEvents events = new XmlDeserializationEvents(); events.OnUnknownElement = delegate(object sender, XmlElementEventArgs args) { if ...
Using XmlSerializer to deserialize in an extensible fashion with arbitrary elements
c#|xmlserializer
0
53
1
53,751,548
53,751,548
0
true
2018-12-12T19:07:51.140Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Using XmlSerializer to deserialize in an extensible fashion with arbitrary elements<p>I am using XmlSerializer to deserialize XML responses from a remote API...
53,752,198
2SXC App and Content modules have different version numbers after upgrade. Can't repair upgrade or upgrade to latest version<p>DNN 7.4.2</p> <p>Over a year ago, we upgraded from 2SXC 8.8.0 to 9.2.0. The upgrade took a really long time because have a pretty big DNN instance with many portals. We only use 2SXC on a coup...
<p>It was missing IIS_IUSRS (default IIS user) in the folder so my colleague added it and it resolved the issue.</p>
2SXC App and Content modules have different version numbers after upgrade. Can't repair upgrade or upgrade to latest version
dotnetnuke|2sxc
0
34
1
53,752,393
53,752,393
0
true
2018-12-12T22:14:53.623Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: 2SXC App and Content modules have different version numbers after upgrade. Can't repair upgrade or upgrade to latest version<p>DNN 7.4.2</p> <p>Over a year ...
53,733,618
How to get newest SDK version for Buildozer<p>I rebuilt Ubuntu and I don't have my old SDK files. I used <code>~/.buildozer/android/platform/android-sdk-20/tools/android</code> in my terminal to try downloading them via the SDK manager (as seen in the picture shows) but I only see the SDK targeting APIs of 19 and lower...
<p>I deleted the SDK inside of the .buildozer file, then changed <code>android.sdk = 23</code> in buildozer.spec. It appears that buildozer automatically downloads the specified sdk.</p>
How to get newest SDK version for Buildozer
android|sdk|kivy|buildozer
0
297
1
53,753,025
53,753,025
0
true
2018-12-11T22:59:37.077Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to get newest SDK version for Buildozer<p>I rebuilt Ubuntu and I don't have my old SDK files. I used <code>~/.buildozer/android/platform/android-sdk-20/t...
53,752,301
Target search results number in variable<p>I'm trying to target the number of search results on our website for each search term so that I can see how many results each one pulls in. </p> <p>I'm working off of <a href="https://mixedanalytics.com/blog/number-search-results-google-analytics-gtm/" rel="nofollow noreferre...
<p>You would probably get away with a custom Javascript variable like this:</p> <pre><code>function() { return document.querySelector('.search-results-text strong').innerText.split(" ")[0]; } </code></pre> <p>The querySelector with the CSS selector gets the Element, innerText is the text without the markup, the split...
Target search results number in variable
javascript|google-tag-manager
0
21
1
53,753,070
53,753,070
0
true
2018-12-12T22:24:16.633Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Target search results number in variable<p>I'm trying to target the number of search results on our website for each search term so that I can see how many r...