input_text_instruct
stringlengths
288
45.8k
output_text
stringlengths
37
33.2k
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Abuse of <A> tag<p>As I understand it, the <code>&lt; A &gt;</code> tag is the "anchor" tag, and it has three purposes:</p> <p>1) Describe and name an item ...
<p>With the use of jQuery you can <code>on('click',callback)</code> any element.</p> <p>Using only the <code>a</code> element may be for accessibility purposes (telling screen readers, for example, that this element is to do something interesting).</p>
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Pandas merge dataframes with different datato achieve specific output<p>I'm experimenting with pandas, and facing with merge problem, f.e</p> <p>print df</p...
<p>You need to do a merge with "outer" mode:</p> <pre><code>df2 = df.merge(df_to merge, how='outer', left_on="0", right_on="0") </code></pre> <p>and rename your columns :</p> <pre><code>df2.columns = range(4) </code></pre> <p>which gives:</p> <pre><code> 0 1 2 3 0 plot_title title1 t...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: JQuery.on() piles up<p>Why </p> <pre><code>JQuery.on('sameEventName.',function(){...}); </code></pre> <p>piles up depending how many time the code works? A...
<p>I guess you want to achieve behaviour where even with multiple clicks, only 1 event listener is present. Although the following it's not ideal, but it's the most simple workaround. Use <a href="http://api.jquery.com/off/" rel="nofollow"><code>.off</code></a> function to remove previous event listener.</p> <pre><cod...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Toastr Growl is not showing up after a successful AJAX call<p>Working through my JavaScript code, I'm able to get the alert for malformed URLs working but wh...
<p>So you want to show the same toast whether there is a malformed url or a successful ajax call.</p> <p>If I understood correctly then when I look at your code you seem to be putting the toastr.options only if the regex.test is unsuccessful</p> <p>To test I would move the options outside the if(!re.test...)?</p>
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why does WriteFile not run more than once?<p>Here's my code in which I've got on an infinite loop (to my knowledge)</p> <pre><code>while(true) { DWORD T...
<p>The Flag <code>CREATE_NEW</code> in CreateFile prevents the update of the file because <code>CreateFile</code> fail with <code>ERROR_FILE_EXISTS</code>. Use <code>OPEN_ALWAYS</code> instead. Also it will always truncate. <strong>Replace</strong> <code>GENERIC_WRITE</code> with <code>FILE_APPEND_DATA</code> if you wa...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to configure Android Google Tag Manager v4 with Google Analytics (Universal Analytics)<p>I'm trying to use Google Tag Manager to report screenviews and e...
<p>Ok, it was my fault. There was two problems.</p> <ol> <li><p>Fields to set were wrong In order to track the screen in GA it's necessary to set the <a href="https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters#cd" rel="nofollow noreferrer">Screen Name's Measurement protocol parameter</...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Get item in array according to the value of a key within the item<p>Suppose I have an array like this:</p> <pre><code>$myArray = [ [ 'id' =&gt; 1, 'name...
<p>you can use <em>array_filter()</em> function:</p> <pre><code>&lt;?php $myArray = [ ['id' =&gt; 1, 'name' =&gt; 'Some Name'], [ 'id' =&gt; 2, 'name' =&gt; 'Some Other Name' ] ]; $filterData = array_filter($myArray, function ($data) { return $data['name'] == "Some Other Name"; }); var_dump(...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Change variable values with one switch statement<p>Is there any way to go through multiple variables and change their values with switch statement?</p> <p>l...
<p>Use an array which has the keys called 'variable1', etc</p> <pre><code>$array = array(); list( $array['variable1'],$array['variable2'],$array['variable3']) = explode( '.', $variable ); </code></pre> <p>Then:</p> <pre><code>for ($i = 1; $i &lt;= 3; $i++) { switch ($array['variable'.$i]) { case "1":...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to select a case of a table by clicking it without using id or class?<p>what I want to do is write code so that when we click on a cell it will change it...
<p>This of course could be refactored, but I guess this is what you want to achieve.</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>let rows = document.querySelector("table")...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Export questionnaire(KMQuestionnaireRun) results to XML<p>How can I access the results of a questionnaire/s (KMQuestionnaireRun type) of a client to export t...
<p><strong>Short answer</strong>, aka "The fish"</p> <p>The results are stored in tables <code>KMVirtualNetworkAnswerTable</code> and <code>KMVirtualNetworkAnswerLine</code></p> <p><strong>Long answer</strong>, aka "Let me tell you how to fish":</p> <p>You already figured out that each time a questionnaire is done, ...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to get eMail data when clicking an email, using Outlook API in C#<p><br> I am using .NET 4.0 on a Win7 64bit machine.<br> I am trying to get email detail...
<p>In the ItemLoad event handler you can subscribe to the item-level events such as <a href="https://msdn.microsoft.com/en-us/library/office/ff865989.aspx" rel="nofollow">Open</a>, <a href="https://msdn.microsoft.com/en-us/library/office/ff862748(v=office.15).aspx" rel="nofollow">Read</a>, <a href="https://msdn.microso...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to create 2 tables with foreign and primary key in sql fiddle?<p>2 tables are RetailOutlet and SalesMan, both are connected by ROID, ROID is primary, uni...
<p>To properly test, I added some salesmen:</p> <pre><code>INSERT INTO `SalesMan` (`sid`, `sname`, `manager`, `id`) VALUES ('1', 'john', 'fingao', '2'), ('2', 'bekc', 'dilda', '3'), ('3', 'aaa', 'elda', '4'), ('4', 'erjan', 'rrrrokcks', '1'), ('5', 'john', 'fingao', '1'), ('6', 'benny', 'fingao', '1'), (...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Render Vue inside appended element<p>I am making some chrome extension and it worked in jquery but because of some reactivity, I needed to switch to Vuejs.</...
<p><code>#random12345</code> selector means that it looks for an element with <code>id</code> attribute equal to <code>random12345</code>.</p> <p>It should be:</p> <pre><code>el.id = 'random12345'; </code></pre>
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Whether method cancel() in java.util.concurrent.Future should be blocking?<p>I'm trying to implement <code>Future&lt;&gt;</code> interface in my project. But...
<blockquote> <p>Do I understand something incorrectly?</p> </blockquote> <p>I believe so. <code>Future</code> is not a job control API; it is an abstraction over the concept of a value which may not yet have been computed. By cancelling a <code>Future</code> you simply waive your interest in that value; the rest is ...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Firebase auth.currentUser is null when loading the page, user loaded when authstatechange called after some milli seconds of page load<p>I am using React wit...
<p>When the page loads Firebase restores the user's credentials from local storage and checks with the server whether they are still valid. Since this is a call to the server, it may take some time and happens asynchronously. This is the reason it is normal that <code>firebase.auth().currentUser</code> is <code>null</c...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: az aks install-connector fails with "--name unknown parameter"<p>I am trying to install a test Kubernetes cluster. I the latest version of Azure CLI on my c...
<p>It caused by helm 3. Actually the CLI command <code>az aks install-connector</code> will use helm 3 to install the chart that shows in it. But the helm 3 does not have the flag <code>--name</code>, see the <a href="https://helm.sh/docs/helm/helm_install/#options" rel="nofollow noreferrer">helm 3 commands</a>. So it ...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Search for a word pattern at the beginning and at the end of dataframe lines<p>I am handling the following dataframe:</p> <pre><code> import pandas as p...
<p><code>.apply()</code> isn't necessary here. This solution also uses proper <code>NaN</code> values, not strings.</p> <pre class="lang-py prettyprint-override"><code>import pandas as pd df = pd.DataFrame({'Column_01': ['Sensor with 0005-fdk', 'Sensor with RX simpleleak', 'Actuador',...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Neo4J: Renaming property keys<p>I just got started on Neo &amp; tried to look for prior questions on this topic. I need help to rename one of the property ke...
<p>Yes, you want to <code>SET</code> a new property <code>name</code> with the value of the old property <code>title</code>. And then <code>REMOVE</code> the old property <code>title</code>. Something like this...</p> <pre><code>MATCH (c:Category) WHERE c.name IS NULL SET c.name = c.title REMOVE c.title </code></pre> ...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Pairwise analysis of two groups transpoing dataframe using pivot_wider<p>I have the following dataframe</p> <pre><code>a &lt;- structure(list(Sample_1 = st...
<p>You need to use <code>pivot_longer</code> instead of <code>pivot_wider</code> since <code>summarise</code> works on columns. Then convert all values to numeric (they are factors in your example):</p> <pre><code>a_longer = a %&gt;% pivot_longer(c(-Genus,-Group)) %&gt;% mutate(value = as.numeric(as.character(...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: White space right from page on small screens only (Safari on desktop and Chrome on mobile phone)<p>There is a white space on the right side of every page on ...
<p><a href="https://i.stack.imgur.com/018Qj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/018Qj.png" alt="enter image description here"></a> Please check the image u are using a "row" there remove that. That was there is a horizontal scroll showing</p>
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to extract unstructured excel file data(dashboard data) and export it to as structured clean data<p>I have a lots of excel files that has data in dashboa...
<p>You need to:</p> <ol> <li>specify columns letters that you wont to extract. </li> <li>set number of rows that you need to skip</li> <li>rename columns</li> </ol> <pre><code>import pandas as pd df = pd.read_excel('claim.xls', skiprows=range(1, 11), usecols = "C,E,G,J,N,R,V,Z,AD,AH,AL,AP,AT") df.columns = ['Enc. ...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Sub Menu Sensitive In Chrome But Fine In Firefox<p>I'm only a year in to Web Design. I've been learning menus at Lynda.com and specifically have a problem cr...
<p>Add the following to each section of your CSS:</p> <pre><code>ul.SubMenu { margin-top: 2em; } nav ul li a { float: left; } nav ul li { display: block; } </code></pre>
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Architecture tip on how to deal with Premium accounts, plan duration and renewal<p>I'm creating a website which has a premium user feature. I'm thinking on h...
<p>It looks good to me. It is simple and solves your problem.</p> <p><strong>Hint 1</strong>: Depending on the semantics of your <code>premium</code> and <code>expires</code> fields, you do not need both. You can just change your <code>user-&gt;isPremium()</code> to check if the expires date has passed. Make sure you ...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Jquery/Javascript check my word is valid or not.<p>I am designing an simple application, which plays with words. every time a user types a word, i need to v...
<p>Perhaps this might be usefule - <a href="http://dreamsteep.com/projects/the-english-open-word-list.html" rel="nofollow">http://dreamsteep.com/projects/the-english-open-word-list.html</a></p> <p>An open list of english words</p>
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Change row property in datagridview based on string from cell, VB.NET<p>I am currently working in VB.NET visual express 2013. I am using an sql Database on m...
<pre><code>With DGVSchedule For gridrow As Integer = 0 To .RowCount - 1 If .Rows(gridrow).Cells(9).Value.ToString.Contains("TAILSHELF") Then .Rows(gridrow).DefaultCellStyle.BackColor = Color.Orange End If Next End With </code></pre>
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Function inside component in reactjs<p>I have the following snippet of code</p> <pre><code>return ( &lt;InputMask mask="99:99" *some ot...
<p>So firstly a quick definition. Here's some JSX where I'm using <em>children</em>:</p> <pre><code>&lt;MyComponent&gt; &lt;b&gt; This bold element &lt;/b&gt; And this text are children of MyComponent. &lt;/MyComponent&gt; </code></pre> <p>Inside MyComponent is a regular render method, except importan...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Alternative to Collectors.groupingBy() for scala<p>In Java I have something like:</p> <pre><code>Collectors.groupingBy((Re r) -&gt; return r.pName) </code><...
<p>Java lambdas are "implementors" of arbitrary functional interfaces (in this particular case <code>Collectors.groupingBy()</code> accepts <code>java.util.function.Function</code>. Scala anonymous functions, however, are instances of some class implementing <code>scala.FunctionX</code> trait. Consequently, you can't u...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I Get the results of the nested query in the form of entities with EF<blockquote> <p>I have some models in my project:</p> <pre><code>**Model Serv...
<p>From your SQL query and the model design , there is a one-to-one relationship between <code>ServiceDeliveryDoc</code> and <code>LegalEntity</code> , many-to-many relationship between <code>ServiceDeliveryDoc</code> and <code>ServiceRegistry</code> . For <a href="https://docs.microsoft.com/en-us/ef/core/querying/rela...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Selection a bool through randomizer<p>I have a total of 6 booleans and the only thing separating them is a number. They're named checker0 though 5.</p> <p>S...
<p>Every time you find yourself in a situation when you name three or more variables <code>checkerN</code> you know with a high degree of probability that you've missed a place in code where you should have declared an array. This becomes especially apparent when you need to choose one of <code>N</code> based on an int...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: For, delims, DIR, SET in batch files<p>Can someone please help me understand command file syntax</p> <pre><code>@echo off setlocal enableextensions pushd c:...
<p><code>Pushd</code> changes the current directory to "C:\Test".</p> <p><code>dir /b /a-d /o-d /tw</code> is used to list files. <code>/b</code> shows only the file names (bare info). <code>/a-d</code> excludes directories. <code>/o-d</code> sorts by date (newest first). <code>/tw</code> sets "last write time" as sor...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: python plotnine: how to change color scale<p>i have the following plot with the code below, but I keep in the color legend, it does not separate well that I ...
<p>For bars it is <code>scale_fill_gradient</code>, but for points you use <code>scale_color_gradient</code>. Not every sure what you mean by more separated color scales. Maybe you can start with below:</p> <pre><code>from sklearn.datasets import load_iris import pandas as pd data = load_iris() df = pd.DataFrame(data...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Nested dictionary sorting by values in sub dictionary and then length of subdictionary<p>As a newbie I'm struggling with the sorting of a nested dictionary. ...
<p>I would first pass through an intermediate representation to associate the size the group the element belongs to the element in order to use it in the sorting.</p> <pre><code>&gt;&gt;&gt; l2 = [(k,el,d[k][el],len(v)) for k,v in d.items() for el in v] &gt;&gt;&gt; l2 [('Red', 'Pesho', 10000, 1), ('Blue', 'Pesho', 10...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Class not found android.permission.INTERNET Ionic / Android<p>When I try to launch my application on my smartphone (Samsung Galaxy J5) after the build, my ap...
<p>In Android Permissions are added to AndroidMenifest.xml file inside your android platform folder. </p> <p>If you want your application to use internet go to your </p> <blockquote> <p>YourProject\platforms\android\app\src\main\AndroidManifest.xml</p> </blockquote> <p>File and add blow Code:</p> <p><code>&lt;use...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Working with dates in Access using pyodbc giving "Too few parameters" error<p>I am using Python with a pyodbc import.</p> <p>I am using Microsoft Office 201...
<p>To </p> <ol> <li>save yourself the hassle of finding the applicable date delimiter, and </li> <li>promote good coding practice </li> </ol> <p>you should simply use a <em>parameterized query</em> like this:</p> <pre class="lang-python prettyprint-override"><code>db = pyodbc.connect(connStr) crsr = db.cursor() sql ...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Collectionview deselect selcted row when selecting new row in swift<p>I am doing a sample collectionView project in swift.It shows 10 rows vertically.I chang...
<p>Convert this code to swift you will get result:</p> <pre><code>-(void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath { UICollectionViewCell *cell = [collectionView cellForItemAtIndexPath:indexPath]; cell.backgroundColor = [UIColor magentaColor]; } -(void)c...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: JavaFX + Javascript : How to inject a Java object to an AMD module<p>While experimenting JavaFX + HTML5/JS, and I've come across AMD modules (RequireJS).</p>...
<p>From Java, it is possible to access a RequireJS module with something like:</p> <pre class="lang-java prettyprint-override"><code>WebView webView = new WebView(); WebEngine engine = webView.getEngine(); engine.load("path/to/index.html"); // Assuming that somewhere in 'index.html', the loading of "module/logger" is...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: What is “pivot table” in eloquent-relationships?<p>Reading Laravel 6 eloquent-relationships docs at <a href="https://laravel.com/docs/6.x/eloquent-relationsh...
<p>Think you have two tables like <code>users</code>, and <code>roles</code> if you want to make a relationship between them then you need to declare <code>Many To Many</code> relationships because the single role have many users and single users have many roles. for defining <code>Many To Many</code> relationships bet...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why navbar-right doesn't work neither float right<p>The navbar-right doesn't work and I looked over other questions with the same problem but couldn't find a...
<p>Assuming that you're using bootstrap for this, If what you want is to align the nav bar to the right most of the page, you should change the <code>&lt;ul class="navbar-nav mr-auto navbar-right"&gt;</code> to <code>&lt;ul class="navbar-nav ml-auto navbar-right"&gt;</code>. In bootstrap mr-auto adds margin to the rig...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Make Refit supply a parameter in the query string automatically<p>I'm using Refit to generate a client for a web service. </p> <p>All the URLs of my Web API...
<p>Finally, I created an <code>HttpMessageHandler</code> that intercepts the requests and injects the "api_key" in the querystring with the following code:</p> <h1>Service creation</h1> <pre><code>service = RestService.For&lt;IMyService&gt;(new HttpClient(new QuerystringInjectingHttpMessageHandler(("api_key", token))...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Serial communication in Qt creator<p>I came across the following error described below, how can I rectify this sort of error and why does this error is gener...
<p>If you have using just Qt then use QSerialPort otherwise you can use windows API createfile(), readfile() ,writefile() in Windows Platform. You can take other information in: <a href="http://support.microsoft.com/KB/115831" rel="nofollow noreferrer">http://support.microsoft.com/KB/115831</a> or this post in Stackov...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Tensorflow should I separate object sides?<p>I'm working on a project that uses tensorflow to detect a specific object. That object can be laying on a table ...
<p>Good way to start AI or Data Science projects is to start from easiest solution (although it might generate worse results) and then incrementally make it more and more complex.</p> <p>Therefor personally I would separate them into 2 different labels <code>your_object_front</code> and <code>your_object_back</code>. ...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Retrieve data in Pandas<p>I am using pandas and uproot to read data from a .root file, and I get a table like the following one:</p> <p><a href="https://i.s...
<p>I made some mock data since you didn't provide yours in any easy format. I think this is what you are looking for.</p> <pre><code>import pandas as pd df = pd.DataFrame.from_records( [ [[1,2,3], [4,5,6]], [[4,6,5], [7,8,9]] ], columns=['LepPt', 'LepLepld'] ) df['max_LepPt'] = [max(i) for i in...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: cannot use type []rune as type rune in append<pre><code>package main var lettersLower = []rune("abcdefghijklmnopqrstuvwxyz") var lettersUpper = []rune("ABCD...
<p>It's because <a href="http://golang.org/ref/spec#Appending_and_copying_slices"><code>append</code> doesn't take a list to append, but rather one or more <em>items</em> to append</a>. You can adapt to this with a <code>...</code> on the second argument to <code>append</code>:</p> <pre><code>package main import "fmt...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Netbeans Plugin Develpment<p>I need to work on a Netbeans Addon for self for a programming language. The plugin should support following:</p> <ul> <li>Code ...
<p>For syntax highlighting: <a href="http://wiki.netbeans.org/SyntaxColoringANTLR" rel="nofollow">http://wiki.netbeans.org/SyntaxColoringANTLR</a></p> <p>Project templates: <a href="https://platform.netbeans.org/tutorials/nbm-povray-4.html" rel="nofollow">https://platform.netbeans.org/tutorials/nbm-povray-4.html</a></...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Universal Image Loader not loading image for specific link<p>I started to use Universal Image Loader instead of Picasso, to avoid the image-not-loading probl...
<p>It seems like the image is corrupted as downloading and opening it in photoshop also throws error. You can also see the bottom part of the image for blurry pixels.</p> <p>Although there is one more case that I know of when image loading fails is when loading an image in CMYK color format. Android doesn't support CM...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Is the underscore.js IIFE syntax valid?<p>I just took a look at the <a href="http://underscorejs.org/underscore.js" rel="nofollow">underscore.js source code<...
<p>If you're asking about the location of the outer <code>)</code> specifically, then whether it's located immediately after the closing brace or after the entire expression <a href="https://stackoverflow.com/questions/5938802/are-function-and-function-functionally-equal-i">doesn't matter for the most part</a>. Either ...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: AnimatedContainer is breaking other animation<p>I am using animation to rotate gradient at the same time when user press on container i want to increase the ...
<p>If you swap your <code>AnimatedContainer</code> with the other parent <code>Container</code>, both of your animations will work:</p> <pre><code>return Scaffold( appBar: AppBar( title: Text(""), ), body: AnimatedContainer( duration: Duration(milliseconds: 100), width: _playButtonSize, height: _...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Add AzureDevOps Search as Chrome/Chromium 'Other search engine'<p>I want to add <a href="https://docs.microsoft.com/en-us/azure/devops/project/search/code-se...
<p>Cool idea! This works for me for scoping it to just a repository</p> <pre><code>https://dev.azure.com/COLLECTION-NAME/_search?action=contents &amp;text=%s &amp;type=code &amp;lp=code-Project &amp;filters=ProjectFilters%7Besmith.dev%7DRepositoryFilters%7Besmith.dev%7D &amp;pageSize=25 &amp;result=? </code></pre>
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Avoid double quote confusion when generating CSV files?<p>I am pushing some strings to a CSV file:</p> <pre><code>csv_string = CSV.generate({col_sep: ";", r...
<p>This is correct, a double quote is escaped with another double quote. From <a href="https://www.rfc-editor.org/rfc/rfc4180" rel="nofollow noreferrer">RFC 4180</a>:</p> <blockquote> <p>If double-quotes are used to enclose fields, then a double-quote appearing inside a field must be escaped by preceding it with anothe...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Powershell compare variable1 with variable2<p>I am trying the following:</p> <pre><code>Variable1 = 'jack' , 'brody' , 'zack' Variable2 = 'zack' </code></pr...
<p>You can use the following:</p> <pre><code>$variable3 = Compare-Object -ReferenceObject $variable1 -DifferenceObject $variable2 -Property SamAccountName -PassThru </code></pre> <p>When using <a href="https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/compare-object?view=powershell-7" re...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how do I dump the attribute route tables in MVC5?<p>I'm trying to find an attribute routing problem in MVC5. Since the page isn't loading (404) the tools out...
<p>Try to use <a href="http://haacked.com/archive/2008/03/13/url-routing-debugger.aspx/" rel="nofollow">Route Debugger</a>. </p> <blockquote> <p>This utility displays the route data pulled from the request of the current request in the address bar. So you can type in various URLs in the address bar to see which ...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Bootstrap 4.3 Make Navbar Static at Top of the Page AND Transparent<p>I have done my best checking and googling everywhere for info before asking here... Hop...
<p>Thank you for all the ideas and input everyone, it kinda got me rethinking how I set the whole thing up.</p> <p>While playing around with some elements (in the end, it always comes down to targeting the right classes), I found the solution.<br><br></p> <p><a href="https://i.stack.imgur.com/Ky7RU.jpg" rel="nofollow...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Unsure as to why buttons will not align adjacent to each other in Java FX<p>I am new to java fx. I am creating a basic GUI which is meant to look like this: ...
<p>What happens here is that your TextField is set in the top-left corner (0,0), but only spans a single column. You can see that the cancel Button, which is in the bottom right corner (1,1), starts where the TextField stops (if you look only at the x-position).</p> <p>There is a debug option for GridPanes so you can ...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Using system.linq.dynamic to join tables<p>Is there a way to use system.linq.dynamic to join tables using a string for the tablename ?</p> <p>It seems like ...
<p>You can use Reflection to retrieve the tables from the <code>DataContext</code>.</p> <p>With these extension methods defined:</p> <pre><code>public static class ObjectExt { public static object GetValue(this object obj, string memberName) =&gt; obj.GetType().GetPropertyOrField(memberName).GetValue(obj)...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Google Maps v3 custom marker icon is in center and does not keep its position on map<p>I am trying to implement <strong>FontAwesome</strong> icons as a marke...
<p>You are missing <code>marker.style.position = 'absolute';</code></p> <pre><code>if (!marker) { marker = this.marker = document.createElement('div'); marker.className = 'marker'; marker.style.position = 'absolute'; // &lt;snip&gt; </code></pre> <p>To get the markers to drag with the map, you also need to br...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: CCPhysicsBody Collision not working in cocos2d-swift v3.4<p>Here is code:</p> <pre><code>@interface MainScene : CCNode&lt;CCPhysicsCollisionDelegate&gt; </c...
<p>you are probably going to 'palm-forehead' , took me a while too :(</p> <p>For both body A and body B the two lines below</p> <pre><code>sprite.physicsBody.collisionGroup=@"Group1"; sprite.physicsBody.collisionType=@"typeA"; </code></pre> <p>are executed while physicsBody is still nil. Move the lines under the lin...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Advantage of using @classmethod instead of type(self) in Python?<p>Is there an advantage in using a <code>@classmethod</code> (and <code>cls</code>) instead ...
<p>In the first case you are evaluating type of the object and then creating an object out of it which will be slower than using <code>classmethod</code> because <code>cls</code> is directly passed down to the function and there is no need to evaluate the type. Another difference is that to invoke a <code>classmethod</...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Cannot pull or clone from Bonobo Git Server<p>I'm trying to use Bonobo git server to store my own projects. However, I'm running into trouble cloning, pullin...
<p>So I finally worked out what the problem was. The computers I use at work have separate proxy settings. Some use no proxy, others use a work provided proxy. When using the work provided proxy, machine local addresses don't work (e.g. django development server / localhost fail), but there's better coverage for WAN si...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: 'int?' is not identical to 'Uint8' in swift<pre><code>func add(numbers: Int...) -&gt; Int? { var total:Int? for i in numbers { total +=...
<p>The error you're getting might be a little deceiving. The underlying issue here is that you declared a variable <code>total</code> of type <code>Int?</code>, but never actually assigned it a value. Since <code>total</code> hasn't been given an integer value, it doesn't make sense to try to increment it by <code>i</c...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Split string mixed input into range of single values<p>I have an input which allows multiple IDs. They can be entered like this: </p> <pre><code>[ 1000, 10...
<p>The easiest solution would be to use a real range/select-option for user (?) input instead. Then you would use that range to select every value from the database table.</p> <p>If you cannot use a real range/select-option, then you could convert the string to one as shown below.</p> <pre><code>DATA: bukrs_string ...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to make spaces wider in vim?<p>I recently installed the window manager awesome, and started to use xterm. While configuring the font, I came accross this...
<p>The only hack I can think of is replacing every space character with its double-width companion, U+3000 ideographic space:</p> <pre><code>:%s/ /\=nr2char(0x3000)/g </code></pre> <p>You could use <code>:autocmd</code>s to undo this before, and redo after saving, but I wouldn't recommend this.</p> <p>Unfortunately,...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Django sum based on foreignkey relationship (3 models involved)<p>I have the following question: I have 3 models: Contrato, Movimiento and MovimientoDato, I ...
<p><strong>Yes</strong>, you can <a href="https://docs.djangoproject.com/en/dev/ref/models/querysets/#django.db.models.query.QuerySet.annotate" rel="nofollow noreferrer"><strong><code>.annotate(..)</code></strong> [Django-doc]</a> the <code>Contrato</code> queryset with:</p> <pre><code>from django.db.models import <b>...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: G Suite: Can a Google Group be the owner of a folder in Drive?<p>Can a Google Group be set as the <em>owner</em> of a folder in Drive? Or is it the case tha...
<p>The owner of a file can only be a single user, not a Group.</p> <p>If you try to create a Permission on Drive API with <code>"role": "owner"</code> and <code>"type": "group"</code>, you will get the following error:</p> <blockquote> <p>Sorry, ownership can only be transferred to another user in the same domain a...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Adding to div with jQuery & HTML<p>So I'm having some issues with my code. I'm trying to remove a link (a) and then after that add a new link (a) with differ...
<p>I think you had an issue with your quotations. Here's a revised version of your JS:</p> <pre><code>$('#edit-username').click(function() { var text = $('.text-info-username').text(); var input = $('&lt;input type="text" placeholder="' + text + '" id="editTextBox" /&gt;'); $('.text-info-username').text('').appen...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Profile a C Program - Time Shell Command<p>I have created two sorting algorithms, one of selection sort and of insertion sort. I am to do profiling of these ...
<p>If you are running on unix system, simply run your program using time</p> <p># time <code>&lt;command&gt;</code></p> <p>It should print something like this </p> <p>real 0m0.181s [ This is the total time taken ]</p> <p>user 0m0.001s [ Time spent in user mode ]</p> <p>sys 0m0.002s [ Time sp...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to replace multiple NaN rows in pandas dataframe with a single NaN<p>I have a time series, where one of the columns contains mostly NaN. The dataframe is...
<p>Use <a href="http://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#boolean-indexing" rel="nofollow noreferrer"><code>boolean indexing</code></a> with compare by <a href="http://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Series.shift.html" rel="nofollow noreferrer"><code>Series.shift</co...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Add fake data to a List<p>So I try to create a fake list of item</p> <pre><code>var items = new List&lt;Item&gt;(); var item = new Item { Name = "A"; ...
<p>The problem in your code is </p> <ol> <li>You created an <code>item</code> object with <code>Name</code> property as "A"</li> <li>you inserted the same object into three spaces of the collection but all pointing to the same object</li> <li>You changed the <code>Name</code> property to "B".</li> <li>You inserted the...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: LINQ Error unable to cast object of type 'system.datetime' to type 'system.string'<p>I am executing this code where i am getting the error.</p> <p>Here is t...
<p>Your <code>innerdt</code> table contains a column which is of type <code>DateTime</code> but when you query it via <code>r.Field&lt;string&gt;("ggg")</code> you want to convert it to a string. </p> <p>This is where the problem is; method <code>Field</code> casts the value of the field to the value of the type you s...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Windows CMD - Rename files based on folder name<p>File structure: Dashboards > Individual Folders [Spencer Farris, Tyler Manson, Alexis Gibb, Ashley Edminsto...
<p>For command line in same folder (top-level folder tree):</p> <hr> <pre><code>cd /d "c:\folder_target\" &amp; for /d /r %i in (*)do ren "%i\Dashboards.xlsx" "%~ni Dashboards.xlsx" </code></pre> <hr> <p>For bat/cmd file:</p> <hr> <pre><code>@echo off cd /d "c:\folder_target\" For /D /R %%i in (*)do ren "%%i\Das...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to change width of a plot while zooming with tkinter toolbar<p>I have a problem with the zoom of the <code>NavigationToolbar2Tk</code> from <code>tkinter...
<p>You could updated the plot when the limits of the x-axis change (like in this <a href="https://stackoverflow.com/questions/31490436/matplotlib-finding-out-xlim-and-ylim-after-zoom">question</a>)</p> <pre class="lang-py prettyprint-override"><code>def on_xlims_change(axes): # Get the current limits of the x axis...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to set text left of relatvie layout in android<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmlns:android="http://schemas.an...
<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:weightSum="1" android:id="@+id/rl_main" android:layout_width="fill_parent" android:layout_height="wrap_content" android:backgro...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Racket Sum of Perfect Roots Implementation<p>I am trying to write a Racket function that takes in a list of numbers as the input, and outputs the sum of the ...
<p>Racket actually has a built-in math library, and the <code>math/number-theory</code> module provides a convenient <a href="http://docs.racket-lang.org/math/number-theory.html?q=number%20theory#%28def._%28%28lib._math%2Fnumber-theory..rkt%29._perfect-square%29%29" rel="nofollow"><code>perfect-square</code> function</...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Concatenate Two Cells in Excel Using Python Openpyxl And For loop<p>I want to concatenate two cells in excel by using openpyxl . But i am struggling to get t...
<p>The issue is that your string formatting in in this section is expecting 2 values rather than 1 in the concatenate function.</p> <pre><code>'=CONCATENATE(A{},",",B{})'.format(row_num) </code></pre> <p>I could achieve your desired behaviour with this</p> <pre><code>import openpyxl wk=openpyxl.load_workbook("path_t...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Using sed selectively to delete lines<p>I have a text file (say file)</p> <pre><code>Name aaa bbb ccc Name xxxx Name yyyy tttt </code></pre> <p>I want to r...
<p>Use this:</p> <pre><code>sed '1!{/Name/d}' file </code></pre> <p>The previous command applies to all lines except of the first line.</p>
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I generate a square wave plot of a pulse train of multiple signals from the data in a csv file (in Linux)?<p>For instance, given the data in a text f...
<p>The answer I ended up with was:</p> <pre><code> file_info = os.stat( self.__outfile) if file_info.st_size: x,y,z,a = np.genfromtxt( self.__outfile, delimiter=',',unpack=True ) fig = plt.figure(self.__outfile) ax = fig.add_subplot(111) fig.canvas.draw() test_array = [(...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Using Scala pattern matching to extract XML elements with a certain name, regardless of content<p>Given the following XML elements --</p> <pre><code>val nod...
<p>You can use the <code>Elem</code> object to match:</p> <pre><code>nodes collect { case b @ Elem(_, "bar", _, _, _*) =&gt; b } </code></pre> <p>The source for <code>Elem</code> is <a href="https://github.com/scala/scala/blob/v2.10.4/src/library/scala/xml/Elem.scala" rel="nofollow">here</a>, so you can see the defin...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: All Typescript Variables Are Accessible In All Files?<p>File A:<code>var x: number = 5;</code></p> <p>File B:<code>var x = function (): number { return 5; }...
<p>It's expected behavior. Use modules to separate variables in different files</p> <pre><code>// file 1 module First { var x = 3; } // file 2 module Second { var x = function (): number { return 5; }; } </code></pre> <p>See also TypeScript <a href="http://www.typescriptlang.org/Handbook#modules" rel="nofol...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Unit testing with OCMockito mocking UIImage<p>So I am attempting to start developing in a more test driven manner learning to use tests and such and as such ...
<p>Don't be seduced by mock object frameworks, not even OCMockito. When you're first starting with tests, I recommend <em>not</em> using any mocking framework. Instead, do it all yourself. After you get tired of typing similar things over and over, then see if a mock object framework will help.</p> <p>When I want a te...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Mongo DB aggregate - keep results even if match didn't find result<p>I'm trying to make an aggregate pipeline where I know that the last match won't find a r...
<p>You could do that by using <a href="https://docs.mongodb.com/manual/reference/operator/aggregation/addFields/index.html" rel="nofollow noreferrer">$addFields</a> &amp; <a href="https://docs.mongodb.com/manual/reference/operator/aggregation/cond/index.html" rel="nofollow noreferrer">$cond</a> which conditionally adds...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Error on installing Rattle in Ubuntu<p>I'm trying to install Rattle in Ubuntu 14.04, but I'm getting this error:</p> <pre><code>Error in loadNamespace(name)...
<p>Acording to <a href="http://rattle.togaware.com/rattle-install-troubleshooting.html" rel="noreferrer">http://rattle.togaware.com/rattle-install-troubleshooting.html</a></p> <p>the source of Rattle if you have that problem in ubuntu, it is solved by doing this</p> <pre><code>wajig install libgtk2.0-dev </code></pre...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Regex to add <li> tag using OCMOD<p>I want to add a menu in opencart admin page using OCMOD. I want to modify the menu in <code>menu.tpl</code> file but I th...
<p>The best way to do this is to use just a standard search and specify the <code>&lt;/ul&gt;</code> you want to using the <code>index</code> in your <code>&lt;add&gt;</code> tag specifying which of them is the right one to place the content before/after. Remember that other extensions can do the same and add sub-menus...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to insert an xml file in a single cell of sql table<p>I have a .xml file in my computer and i want it to be inserted in a single column and single cell o...
<p>Go to this link "<a href="http://www.php-mysql-tutorial.com/wikis/mysql-tutorials/uploading-files-to-mysql-database.aspx" rel="nofollow">http://www.php-mysql-tutorial.com/wikis/mysql-tutorials/uploading-files-to-mysql-database.aspx</a>" </p> <p>This is a tutorial where you can insert xml file into database and also...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Setting the theme for an android app dynamically with setTheme()<p>I have an activity that extends ActionBarActivity (extended to be able to display the acti...
<p><em>Figured out my problem:</em></p> <p>I had been initially taking out the theme attribute in the application tag in the manifest.</p> <p>Setting an application wide theme in your manifest application tag seems to be required in order for setTheme() to work properly. Then you are able to override that application...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: PHP header_redirect with multiple variables<p>I am writing a PHP script that will redirect based on a link like this:</p> <pre><code>header_redirect($_GET['...
<p>You can solve this problem using some encryption and decryption trick, I have used <code>base64_encode</code> and <code>base64_decode()</code> function to solve your problem. </p> <p><strong>Step1: in your html page</strong></p> <pre><code>&lt;?php $redirectUrl = base64_encode('other_page.php?category=1234&amp;lim...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Function inside a function for scoping<p>I am confused about this code how is this working although it looks simple but i am not getting the point of its wor...
<p>Try to understand how closure works in JavaScript, then you will be able to understand.</p> <p>Closure can simply be defined as "In JavaScript, the inner function has the access to all the variables defined outside of that functions."</p> <p>Try understanding the concepts before trying to understand the code.</p>
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Launching FragmentActivity From Fragment<p>I'm having problems getting the below code to Work. When I hit the Image button it crashes the app. Can some one p...
<p>I'm pretty sure the problem is with <code>getActivity()</code> returning <code>null</code>.</p> <p>Override <code>OnAttach</code> and store a reference to attached activity:</p> <pre><code>Activity activity; @Override public void onAttach(Activity activity) { super.onAttach(activity); this.activity = acti...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: CIGaussianBlur takes too much processing<p>I am trying to apply CIGaussianBlur effect on Game Pause screen. Here is my code:</p> <pre><code>effectsNode = SK...
<p>Are you applying the effect on each frame? You should apply it only once and then save the result, and show that result during pause. You can see an example of this in <a href="https://stackoverflow.com/questions/22490818/how-do-i-blur-a-scene-in-spritekit">this post</a></p>
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: select records where value < avg() - incorrect results<p>I'm doing some basic exercises on NORTHWND db. I wanted to execute the following code:</p> <pre><co...
<p>To apply a filter to an aggregate formula you use the <code>HAVING</code> keyword:</p> <pre><code>SELECT SUM(SaleAmount) AS SaleAmount, CompanyName FROM [Sales Totals by Amount] GROUP BY CompanyName HAVING sum(SaleAmount) &gt; ( Select AVG(SaleAmount) as SaleAmount FRO...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: What is the correct way to detect new Microsoft Edge v80 (Blink) via Javascript?<p>As latest version of Microsoft Edge is <a href="https://en.wikipedia.org/w...
<p>I suggest you use <strong>window.navigator</strong> userAgent to check whether the browser is Microsoft Chromium Edge or MS edge (EdgeHtml).</p> <p>The Edge (EdgeHtml) browser userAgent:</p> <blockquote> <p>mozilla/5.0 (windows nt 10.0; win64; x64) applewebkit/537.36 (khtml, like gecko) chrome/70.0.3538.102 sa...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Linker errors with Boost on Mac (OSX 10.10.02 | Xcode 6.1.1)<p>Recently I started working with Boost on Windows for a project. It needs to be cross-platform ...
<p>I found the answer. After the header- and library paths are added to the projects search paths you need to go to "Build Phases". There you need to add the individual libraries you need to the "link libraries to binary" subsection. You can find the necessary files in the lib folder (in the boost folder).</p> <p>You ...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Applying a negative skew has no effect on the inner HTML<pre><code>&lt;div class="navbar-wrapper"&gt; &lt;div id="navbar" class="navbar"&gt; &lt;...
<blockquote> <p><a href="http://www.w3.org/TR/css-transforms-1/#terminology" rel="nofollow noreferrer"><strong>CSS Transforms Module Level 1</strong></a></p> <p>A transformable element is an element whose layout is governed by the CSS box model which is either a block-level or <a href="http://www.w3.org/TR/CSS2/visuren...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Was the "interface" keyword removed from Dart?<p>Just to be sure, has Dart removed explicitly defining an <code>interface</code> now in favor of implicitly d...
<p>Yes. The interface keyword was removed from Dart. Instead all classes have <a href="https://www.dartlang.org/docs/dart-up-and-running/ch02.html#implicit-interfaces">implicit interfaces</a>. So if you want to define an interface you can use an abstract class instead.</p> <p>See this <a href="http://news.dartlang.org...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Scala Standalone WS with Authentication<p>I would like to use the WS client from play framework without an running PlayApplication. So I imported the WS lib ...
<p>Well... that's because the Scala language promotes the idea of <code>immutability</code>, and hence Keeping this spirit <code>WsRequestHolder</code> is also kind of <code>immutable</code>. So... <code>withHeaders</code> does not mutate the current <code>WsRequestHolder</code> but returns a new instance of <code>WsRe...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Date picker in BIRT 3.7 not working<p>After using the following guide I am unable to get the date picker to work other than in BIRT's report viewer.</p> <p>...
<p>The Web Viewer uses the FramesetFragment.jsp and the HTML view uses the RequesterFragment.jsp. If you update the RequesterFragment.jsp with the same code as what you added to the FramesetFragment.jsp it should solve your problem. You'll still want to add it to the end of the HEAD tag. I'd suggest also adding the c...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Maven Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean Failed to delete access_log<p>I'm trying to run simple struts project usin...
<p>I've seen this sort of error whenever there's a process that's holding a lock on a file in some subfolder that Maven is trying to clean. Check that your Tomcat instance is really stopped (look for java processes in Task Manager that shouldn't be there). I've also created this issue for myself by opening the access ...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I compare a cell array with some values and return true if at least 1 value is found<p>I was at a job interview and I got a test to compare some cell...
<p>Here's a formula that will work in Excel 2013+.</p> <pre><code>=IF(COUNT(FILTERXML("&lt;t&gt;&lt;s&gt;" &amp; SUBSTITUTE(SUBSTITUTE($A1," ",""),",","&lt;/s&gt;&lt;s&gt;") &amp; "&lt;/s&gt;&lt;/t&gt;","//s[.&gt;=9 and .&lt;= 12]"))&gt;0,1,2) </code></pre> <p>It splits the values on the comma, and returns only those...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Copying and pasting text from windows to a remote linux file<p>I have an amazon ec2 instance hosting ubuntu 14.04. I need to copy a paste a win 7 textfile on...
<p>Cut and paste are an operation on the local operating system so your remote linux box is not going to support it directly.</p> <p>That said, your terminal emulation will accept a paste operation (usually with <code>Shift-Insert</code> on Windows if I recall), so you can just go into insert mode in <code>vi</code> a...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Getting error with too many values to unpack (expected2 )<p>I want to return two different value from my function how can i rewrite my code to return the two...
<p>In this line,</p> <pre><code>fea1, fea2 = build_feature_matrix_S(sentences) </code></pre> <p>python is expecting 2 variables to be returned, a tuple, and both of your return statements in the function build_feature_matrix_S() doesn't do that, returning more than 2.</p> <pre><code> feature_freq = pd.DataFrame(f...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Hanging script and cmd won't close<p>I am trying to run a python script via cmd prompt on my work PC (Windows 7, Python 2.7). The script requires filepaths f...
<p>The filepaths I was pulling files from were through ClearCase directories. It turned out that I simply had to reinstall ClearCase. There must have been some configuration issue that was causing the cmd to hang and thus forcing a hard reboot. It's good to point out that I am no longer experiencing this problem and th...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to cancel a customers stripe subscription at the end of period?<p>The functionality I want is if a customer with a subscription cancels their subscriptio...
<p>The issue with your code is that you've included the <code>cancel_at_period_end</code> in the <a href="https://stripe.com/docs/api/subscriptions/object#subscription_object-metadata" rel="nofollow noreferrer"><code>metadata</code></a> of the Subscription object. That's just a simple key -> value store for storing arb...