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,434,485 | Problems passing a string from one view to the controller ASP.NET MVC5<p>I have a problem in the parameter query from my view to the controller</p>
<p>from this controller sent to the view</p>
<p>Controller1</p>
<pre><code> [HttpPost]
[ValidateAntiForgeryToken]
Public ActionRelieve DetailPlannelEmployee (int... | <p>This is about routing.</p>
<p>@Url.Action("actionName","controllerName", "routeValue")</p>
<p>By default, it should be like "{controller=Home}/{action=Index}/{id?}"</p>
<p>Ref. <a href="https://docs.microsoft.com/en-us/aspnet/core/mvc/controllers/routing?view=aspnetcore-2.1" rel="nofollow noreferrer">https://docs... | Problems passing a string from one view to the controller ASP.NET MVC5 | javascript|c#|asp.net|asp.net-mvc|asp.net-mvc-4 | -1 | 72 | 3 | 53,445,680 | 53,445,680 | 0 | true | 2018-11-22T15:51:01.853Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Problems passing a string from one view to the controller ASP.NET MVC5<p>I have a problem in the parameter query from my view to the controller</p>
<p>from ... |
53,453,048 | How to get different data from the same table with months as parameters?<p>I have a table in Oracle where a price for an article and a date are included but I need the price of the article from the last month and the current month to see the difference. </p>
<p>What I need is to pass the last month as paremeter and ge... | <p>You can use the following SQL statement :</p>
<pre><code>select article,
max(decode(to_char("date",'mm/yyyy'),to_char(sysdate,'mm/yyyy'),nvl(price,0)))
as current_price,
to_char(sysdate,'mm/yyyy') as current_month,
max(decode(to_char("date",'mm/yyyy'),to_char(add_months(sysdate,-1),'mm/... | How to get different data from the same table with months as parameters? | sql|database|oracle | -1 | 45 | 2 | 53,453,175 | 53,453,175 | 0 | true | 2018-11-23T21:20:19.690Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to get different data from the same table with months as parameters?<p>I have a table in Oracle where a price for an article and a date are included but ... |
53,453,461 | how can i create a geometrical progress program multiple of 10<p>I want to write a program in Python 3 that includes a myprice function which returns X values that geometrically progress starting from 1.. I want the value of X which is the number of values to be 3 and the geometrical progress to be 10.. so that my prog... | <p>@techUser. You can write something like the following:</p>
<pre><code>def myprice(x, geometrical_factor=10):
"""
A generator of a geometrical progression. The default factor is 10.
The initial term is 'start = 1';
Parameter:
x : int
number of terms to generate
geometrical_factor: int... | how can i create a geometrical progress program multiple of 10 | python|yield | -1 | 21 | 2 | 53,453,603 | 53,453,603 | 0 | true | 2018-11-23T22:20:13.833Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
how can i create a geometrical progress program multiple of 10<p>I want to write a program in Python 3 that includes a myprice function which returns X value... |
53,453,699 | How to input 2 or 4 equations as a equation system and use it as a variable in C#? Maybe could convert from MATLAB?<p>so I came upon an issue. I have not programmed in C# much, so I don't know how could I input 2 or 4 equations as a equation system, which I could use in my program as a variable for solving the equation... | <p>You can use <a href="https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/delegates/" rel="nofollow noreferrer">delegates</a></p>
<pre><code>namespace Stackoverflow
{
public class Function
{
public delegate int X(int param);
public static double Operation(X x)
{
... | How to input 2 or 4 equations as a equation system and use it as a variable in C#? Maybe could convert from MATLAB? | c#|matlab|function|equation | -1 | 42 | 1 | 53,453,757 | 53,453,757 | 0 | true | 2018-11-23T22:59:18.860Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to input 2 or 4 equations as a equation system and use it as a variable in C#? Maybe could convert from MATLAB?<p>so I came upon an issue. I have not pro... |
53,459,306 | How to get the string value of the item selected from a listview<p>I have a custom adaptor that is fills a listview with artists names. I want to click on the listview artist and it will return me the list of songs by the artist. I want to get the string value of the artist when i click on the listview and compare it a... | <pre><code>Song selectedSong = songs.get(i); // this will object of data of the selected song
</code></pre>
<p>then use </p>
<pre><code>selectedSong.getArtist();
</code></pre>
<p>and it will return you the artist of the song that you selected</p> | How to get the string value of the item selected from a listview | android|android-studio | -1 | 44 | 2 | 53,459,384 | 53,459,384 | 0 | true | 2018-11-24T14:45:39.773Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to get the string value of the item selected from a listview<p>I have a custom adaptor that is fills a listview with artists names. I want to click on th... |
53,464,493 | Move selected option line to the last<p>I am trying to force the selected option on a select tag to be on the last index when it is pressed or chosen. So far, the only pure Javascript solution that I saw is this one : <a href="https://stackoverflow.com/questions/2788010/move-option-to-top-of-list-with-javascript">Move ... | <p>What if you removed the selected option and used the append method to insert it as the last child into the select:</p>
<pre><code>var select = document.getElementById("combo-box");
var option = select.options[select.selectedIndex];
select.removeChild(option);
select.append(option);
</code></pre> | Move selected option line to the last | javascript|html | -1 | 53 | 1 | 53,464,548 | 53,464,548 | 0 | true | 2018-11-25T03:49:45.007Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Move selected option line to the last<p>I am trying to force the selected option on a select tag to be on the last index when it is pressed or chosen. So far... |
53,468,762 | OpenXml and strange behavior<p>I have the following code:</p>
<pre><code> for (int r = 0; r < rows.Count(); r++)
{
var cells = rows[r].Elements<Cell>().ToList();
for (int c = 0; c < cells.Count(); c++)
{
SharedString... | <p>Found, that when cell stores a number, then <code>CellValue</code> has value of cell and <code>DataType</code> is null, otherwise <code>DataType</code> has value and <code>CellValue</code> stores index. So, this code works fine:</p>
<pre><code> for (int r = 0; r < rows.Count(); r++)
{
... | OpenXml and strange behavior | c#|excel|cell|openxml | -1 | 19 | 1 | 53,468,921 | 53,468,921 | 0 | true | 2018-11-25T14:59:27.810Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
OpenXml and strange behavior<p>I have the following code:</p>
<pre><code> for (int r = 0; r < rows.Count(); r++)
{
... |
53,477,620 | Store Unicoded string into file using python<p><strong>temp.XML</strong></p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<PubmedArticleSet>
<LastName>Nalivaĭko</LastName>
<ForeName>Anthony V</ForeName>
</PubmedArticleSet>
</code></pre>
<p><strong>MY CODE</strong... | <p>You can open the file for writing with the desired encoding like so:</p>
<pre><code>open('output1.xml','w', encoding='utf-8')
</code></pre>
<p>Then you can write out your unicode string as normal.</p>
<p>The output file:</p>
<pre><code><LastName>Nalivaĭko</LastName>
</code></pre> | Store Unicoded string into file using python | python | -1 | 35 | 1 | 53,477,769 | 53,477,769 | 0 | true | 2018-11-26T09:00:02.047Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Store Unicoded string into file using python<p><strong>temp.XML</strong></p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<PubmedArticleSet>... |
53,428,846 | ArcGIS Feature Layer exceeds limit<p>I'm new to ArcGIS.
I've been using it to publish a Roads Layer service on our ArcGIS server.
Everything seems to be working whenever I upload a Feature Class of a small area as a service. The roads appear on my web app, and everyone is happy.
Now, the service should support the enti... | <p>I have found the solution:
In ArcGIS Javascript v4.9, When creating the FeatureLayer Object, this property should be added:</p>
<pre><code>definitionExpression: [query object]
</code></pre>
<p>for example:</p>
<pre><code> this.layer = new FeatureLayer({
url: this.featureServiceUrl,
rendere... | ArcGIS Feature Layer exceeds limit | arcgis | -1 | 293 | 1 | 53,479,171 | 53,479,171 | 0 | true | 2018-11-22T10:27:25.310Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
ArcGIS Feature Layer exceeds limit<p>I'm new to ArcGIS.
I've been using it to publish a Roads Layer service on our ArcGIS server.
Everything seems to be work... |
53,482,089 | Always getting deadlock with channels<p>I'm learning to work with Go channels, and I'm always getting deadlocks. What might be wrong with this code? Printer randomly stops working when array sizes are unequal; I guess it would help to somehow notify printer that receiver stopped working. Any ideas how to fix it? My cod... | <p>The Sender generates (I think 28 messages) . Roughly half the first 20 of these go to one of gp1 and gp2. Printer and Printer2 then unload the messages</p>
<p>Trouble is, the way that Receiver splits the messages depends on if the number received is odd or even. But you aren't controlling for this. If one of the... | Always getting deadlock with channels | go|channels | -1 | 58 | 2 | 53,482,341 | 53,482,341 | 0 | true | 2018-11-26T13:23:11.283Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Always getting deadlock with channels<p>I'm learning to work with Go channels, and I'm always getting deadlocks. What might be wrong with this code? Printer ... |
53,487,311 | How do I find the backend generated code in weka?<p>I am using weka for classification.
If I use Naive Bayes for classification of datasets, how can I see the backend code of the naive bayes algorithm in weka??</p>
<p>Is there any way??</p> | <p>Weka is open source, so you can see their code at <a href="https://svn.cms.waikato.ac.nz/svn/weka/" rel="nofollow noreferrer">their repository</a> as stated in <a href="https://www.cs.waikato.ac.nz/ml/weka/svn.html" rel="nofollow noreferrer">their website</a>. The naive bayes part is <a href="https://svn.cms.waikato... | How do I find the backend generated code in weka? | machine-learning|classification|weka | -1 | 33 | 1 | 53,487,402 | 53,487,402 | 0 | true | 2018-11-26T18:51:28.727Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do I find the backend generated code in weka?<p>I am using weka for classification.
If I use Naive Bayes for classification of datasets, how can I see th... |
53,487,513 | Mysql order by and group by query<p>I have an SQL table and I made an SQL query which orders by latest update and groups by <code>fleetID</code> afterwards.</p>
<p>The table is in this image:</p>
<p><img src="https://i.stack.imgur.com/Hwb4U.png" alt="table"></p>
<p>The query should return <strong>lines 3 and 5</stro... | <p>You don't have a valid SQL statement -- even if your version of MySQL happens to accept it.</p>
<p>If you want the last update date for each fleet, then you want to <em>filter</em> the data, not <em>aggregate</em> it. That calls for <code>where</code>, not <code>group by</code>:</p>
<pre><code>select t.*
from tes... | Mysql order by and group by query | jquery|mysql|sql | -1 | 39 | 1 | 53,487,537 | 53,487,537 | 0 | true | 2018-11-26T19:07:21.800Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Mysql order by and group by query<p>I have an SQL table and I made an SQL query which orders by latest update and groups by <code>fleetID</code> afterwards.<... |
53,379,434 | Not able to create Point to Site connection with Virtual WAN<p>I've following the steps in the article mentioned below, however, the section where it describes how to <strong>Create a P2S configuration</strong> can't be followed because I don't see an option for <strong>Add point-to-site config</strong> under the Virtu... | <p>Currently, creating a point-to-site connection using Azure Virtual WAN is <strong>Preview</strong> version. You need to navigate to the <a href="https://aka.ms/azurevirtualwanpreviewfeatures" rel="nofollow noreferrer">Azure portal (Preview)</a> and sign in with your Azure account. You will see it.</p>
<p><a href="h... | Not able to create Point to Site connection with Virtual WAN | azure-vpn | -1 | 304 | 1 | 53,494,875 | 53,494,875 | 0 | true | 2018-11-19T17:01:09.323Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Not able to create Point to Site connection with Virtual WAN<p>I've following the steps in the article mentioned below, however, the section where it describ... |
53,363,777 | Show user information firebase with google sign in button?<p>I am trying to <strong>retrieve</strong> the <em>user's information (name, email, etc)</em> once they sign in with google using firebase. I have been looking through the docs but can't find anything for Swift.</p> | <p>Directly From <a href="https://firebase.google.com/docs/auth/ios/manage-users" rel="nofollow noreferrer">Firebase Doc</a></p>
<pre><code>let user = Auth.auth().currentUser
if let user = user {
// The user's ID, unique to the Firebase project.
// Do NOT use this value to authenticate with your backend server,
... | Show user information firebase with google sign in button? | ios|swift|firebase-authentication|google-authentication | -1 | 62 | 1 | 53,363,879 | 53,363,879 | 1 | true | 2018-11-18T17:44:23.287Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Show user information firebase with google sign in button?<p>I am trying to <strong>retrieve</strong> the <em>user's information (name, email, etc)</em> once... |
53,372,034 | Optional hash option in Ruby class<p>I'm trying to configure a driver with Capybara where an options hash is only used via an environment variable.</p>
<pre><code>Capybara.register_driver :chrome do |app|
opts = Selenium::WebDriver::Chrome::Options.new
opts.add_argument '--start-maximized'
opts.add_argument '--disable... | <p>You can set any of the <code>Capabilities</code> keys via <code>#[]=</code>, with the key in snake case so</p>
<pre><code>...
caps = Selenium::WebDriver::Remote::Capabilities.new(accept_insecure_certs: true, proxy: proxy)
caps['browser_name'] = 'chrome' if ENV['extra_args']
...
</code></pre>
<p>would work but the... | Optional hash option in Ruby class | ruby|cucumber|capybara | -1 | 73 | 2 | 53,373,561 | 53,373,561 | 1 | true | 2018-11-19T09:51:20.990Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Optional hash option in Ruby class<p>I'm trying to configure a driver with Capybara where an options hash is only used via an environment variable.</p>
<pre... |
53,375,290 | How can I use custom ngTemplate<p>I want to create small component with one custom / optional template - it would be nice if I can made it similar to Kendo</p>
<pre><code><kendo-combobox>
<ng-template kendoComboBoxFooterTemplate>
<h4>{{listItems.length}} sizes available</h4>
<... | <p>you can use <code>@ContentChild()</code> to get your component body content,try this </p>
<pre><code>import { ContentChild } from '@angular/core';
@Component({...})
export class YourComponent {
@ContentChild(TemplateRef) contentChild: TemplateRef<any>;
</code></pre>
<p>and in your template you can check <c... | How can I use custom ngTemplate | angular | -1 | 32 | 1 | 53,375,367 | 53,375,367 | 1 | true | 2018-11-19T13:04:32.790Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I use custom ngTemplate<p>I want to create small component with one custom / optional template - it would be nice if I can made it similar to Kendo</... |
53,378,493 | Programatically accessing elements of a custom view<p>I am using a 3rd party library for an android activity, this library:
<a href="https://github.com/pavlospt/CircleView" rel="nofollow noreferrer">https://github.com/pavlospt/CircleView</a></p>
<p>And I have this implementation in my activity:</p>
<pre><code><com... | <p>You have to use <code>setTitleText("Your Text")</code>.</p>
<pre><code>CircleView yourcircleview = (CircleView)findViewById(R.id.yourcircleview);
yourcircleview.setTitleText("Your Text");
</code></pre>
<p>If you are using a Fragment, you have to use <code>findViewById</code> with your <code>view</code>. </p>
<p>L... | Programatically accessing elements of a custom view | java|android | -1 | 36 | 3 | 53,378,741 | 53,378,741 | 1 | true | 2018-11-19T16:03:28.663Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Programatically accessing elements of a custom view<p>I am using a 3rd party library for an android activity, this library:
<a href="https://github.com/pavlo... |
53,380,010 | Will a tensorflow model give different results if trained in a previous version<p>I have a tensorflow model trained in tf version 1.1 and python 2.7. I'm running it in tf version 1.10 and python 3.6. After feeding the same data into the model in both versions, the outputs are slightly different. Of 512 outputs, 7 do no... | <p>Since your Tensorflow code may contain internal random number generator, you might check if you forgot to seed the random generator with the tf.random.set_random_seed(seed) function.</p> | Will a tensorflow model give different results if trained in a previous version | python|python-3.x|python-2.7|tensorflow | -1 | 292 | 1 | 53,380,055 | 53,380,055 | 1 | true | 2018-11-19T17:41:51.777Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Will a tensorflow model give different results if trained in a previous version<p>I have a tensorflow model trained in tf version 1.1 and python 2.7. I'm run... |
53,380,695 | null reference when declaring a class as a window resource<p>I have problems with accessibility to a class, from the MainWindow code behind.</p>
<p>I have written this class:</p>
<pre><code>namespace WpfApp1.Management
{
public class BookManagement : INotifyPropertyChanged
{ ...
</code></pre>
<p>which is ref... | <p>It is part of your <code>MainWindow</code>'s resources, not part of the application:</p>
<pre><code><Window.Resources>
<mangmt:BookManagement x:Key="bookManagement" />
</Window.Resources>
</code></pre>
<p>Use this to retrieve it instead: </p>
<pre><code>Application.Current.MainWindow.Resourc... | null reference when declaring a class as a window resource | c#|wpf|xaml|mainwindow | -1 | 41 | 1 | 53,380,783 | 53,380,783 | 1 | true | 2018-11-19T18:33:17.753Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
null reference when declaring a class as a window resource<p>I have problems with accessibility to a class, from the MainWindow code behind.</p>
<p>I have w... |
53,380,622 | How do i modify BigCommerce Files from my my pc?<p>I am working on a BigCommerce website and i'm using the online editor to modify HTML files but i can't modify js files because they are read only files
How can I work on my pc and sync modifications with the website .???</p> | <p>if you are modifying theme files, and you are using a Stencil theme, then you can download the theme's files, edit them locally and add them back to the site. </p>
<p>See:</p>
<ul>
<li><a href="https://developer.bigcommerce.com/stencil-docs/getting-started/installing-stencil" rel="nofollow noreferrer">Installing S... | How do i modify BigCommerce Files from my my pc? | bigcommerce | -1 | 33 | 1 | 53,381,038 | 53,381,038 | 1 | true | 2018-11-19T18:28:12.140Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do i modify BigCommerce Files from my my pc?<p>I am working on a BigCommerce website and i'm using the online editor to modify HTML files but i can't mod... |
53,384,976 | Passing array unsigned in a function recursion in C<p>How do I use array as argument in recursion?</p>
<p>The procedure</p>
<pre><code>void divide(int arr[], int i, int j, int max, int min){
//Deklarasi
int min1, min2, max1, max2, k;//Algoritma
//1 Elemen
if(i == j){
min = arr[i];
max = arr[i];
}
else{
//... | <p>When you call <code>divide</code>, you need to pass <code>arr</code>, not <code>arr[j]</code>. <code>arr[j]</code> is just a single element of the array. Also you may want to pass in your min and max as pointers so that you actually get the new values in your main function.</p> | Passing array unsigned in a function recursion in C | c | -1 | 38 | 1 | 53,385,030 | 53,385,030 | 1 | true | 2018-11-20T01:29:54.937Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Passing array unsigned in a function recursion in C<p>How do I use array as argument in recursion?</p>
<p>The procedure</p>
<pre><code>void divide(int arr[... |
53,387,139 | Match once but not repetitions<p>I have the following code to match:</p>
<blockquote>
<p>String(s) in which <code>.</code> is not present consecutively, it can be alternatively</p>
</blockquote>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="true">
<div class="snippet-code"... | <p>Match a whole string with no consecutive dots:</p>
<pre><code>/^(?!.*\.\.).*$/
</code></pre> | Match once but not repetitions | javascript|regex|match | -1 | 50 | 1 | 53,387,161 | 53,387,161 | 1 | true | 2018-11-20T06:05:32.783Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Match once but not repetitions<p>I have the following code to match:</p>
<blockquote>
<p>String(s) in which <code>.</code> is not present consecutively, i... |
53,389,141 | How can I tell if the list order changed when I sort by different properties of the list?<p>If I have a list of dicts and I sort the list by two different keys, how can I tell if the resulting list order is the same for both keys?</p>
<p>For instance I have a list such as:</p>
<pre><code>rename_operations = [
{'b... | <p>I believe you can just use <code>==</code></p>
<pre><code>rename_operations1 = [
{'before_rename': 'DSCF_1.jpg', 'after_rename': '20181200_123112.jpg'},
{'before_rename': 'DSCF_2.jpg', 'after_rename': '20181200_123212.jpg'},
{'before_rename': 'DSCF_3.jpg', 'after_rename': '20181200_123312.jpg'},
{'b... | How can I tell if the list order changed when I sort by different properties of the list? | python | -1 | 20 | 1 | 53,389,190 | 53,389,190 | 1 | true | 2018-11-20T08:42:37.540Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I tell if the list order changed when I sort by different properties of the list?<p>If I have a list of dicts and I sort the list by two different ke... |
53,396,808 | Yii2. How to build subexpression<p>How can i build query with subexpression, without using <code>yii\db\Expression</code> and raw sql. For example this:</p>
<pre><code>SELECT * FROM user WHERE archived = 3 AND ((group = 2 AND status = 3) OR (group = 3 AND status = 2));
</code></pre> | <p>You can build such condition using array expressions:</p>
<pre><code>$users = (new Query())
->from('user')
->where(['archived' => 3])
->andWhere([
'or',
[
'group' => 2,
'status' => 3,
],
[
'group' => 3,
... | Yii2. How to build subexpression | yii2 | -1 | 37 | 1 | 53,398,925 | 53,398,925 | 1 | true | 2018-11-20T15:54:16.010Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Yii2. How to build subexpression<p>How can i build query with subexpression, without using <code>yii\db\Expression</code> and raw sql. For example this:</p>
... |
53,410,949 | Why does padding lead to jumpy animation?<p>Why does the <code>::before</code> pseudo element jump during a height transition when I apply top and bottom padding to its parent?</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="sn... | <p>If you have padding on an element, then apply position absolute on one of it's children the padding amount will be added as an offset to that child element. </p>
<p>Say you have <code>padding-top:10px;</code>, it'll become <code>top:10px</code>, i think some browsers do rest this.</p>
<h1>DEMO</h1>
<p><div class=... | Why does padding lead to jumpy animation? | html|css | -1 | 550 | 3 | 53,411,885 | 53,411,885 | 1 | true | 2018-11-21T11:16:29.467Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why does padding lead to jumpy animation?<p>Why does the <code>::before</code> pseudo element jump during a height transition when I apply top and bottom pad... |
53,419,557 | ngx-formly template "pdfviewer" using inside my custom input template<p>I create a ngx-formly template to choose pdf file and visualize it with inside using another template "custom input file"</p>
<p>This is the main form declaration:</p>
<pre><code>fields: FormlyFieldConfig[] = [
{
key: 'pdfsource',
type:... | <p>I found this solutions:</p>
<p><a href="https://stackblitz.com/edit/ngx-formly-ui-bootstrap-mcvzfp" rel="nofollow noreferrer">https://stackblitz.com/edit/ngx-formly-ui-bootstrap-mcvzfp</a>
<a href="https://ngx-formly-ui-bootstrap-mcvzfp.stackblitz.io" rel="nofollow noreferrer">https://ngx-formly-ui-bootstrap-mcvzfp... | ngx-formly template "pdfviewer" using inside my custom input template | angular|ng-bootstrap | -1 | 552 | 1 | 53,428,713 | 53,428,713 | 1 | true | 2018-11-21T19:50:50.887Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
ngx-formly template "pdfviewer" using inside my custom input template<p>I create a ngx-formly template to choose pdf file and visualize it with inside using ... |
53,437,178 | Woocommerce remove free_gift from cart item count<p>I have a function which sets a maximum order quantity of items in cart to 16. So user cannot checkout with more than 16 items.</p>
<p>I am also running a plugin which adds a <code>free_gift</code> key to the <code>$cart_item array</code> when a coupon is added.</p>
... | <p>Try the following, that will remove your custom free item from cart items count:</p>
<pre><code>add_action( 'woocommerce_check_cart_items', 'max_allowed_cart_items' );
function max_allowed_cart_items() {
// Only run in the Cart or Checkout pages
if( is_cart() || is_checkout() ) {
// Set the maximum... | Woocommerce remove free_gift from cart item count | php|wordpress|woocommerce|cart|hook-woocommerce | -1 | 568 | 2 | 53,437,806 | 53,437,806 | 1 | true | 2018-11-22T19:37:30.970Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Woocommerce remove free_gift from cart item count<p>I have a function which sets a maximum order quantity of items in cart to 16. So user cannot checkout wit... |
53,447,707 | Range Empty for Dynamic Chart VBA<p>I'm trying to create a dynamic sourcedata on a chart in VBA as this can vary depending on the data being pulled in via a macro. So far I have:</p>
<pre><code>Set Rng = Sheets("Mapping Tables").Range("J13", Sheets("Mapping Tables").Range("J13").End(xlDown).End(xlToRight)).Select
... | <p>Try this.</p>
<pre><code>Sub test()
Dim Rng As Range
Dim obj As ChartObject
Set Rng = Sheets("Mapping Tables").Range("J13", Sheets("Mapping Tables").Range("J13").End(xlDown).End(xlToRight))
Set obj = Worksheets("Vintage").ChartObjects("Vintage_1")
With obj.Chart
.SetSourceData Rng, Plot... | Range Empty for Dynamic Chart VBA | excel|vba | -1 | 46 | 2 | 53,448,406 | 53,448,406 | 1 | true | 2018-11-23T13:34:39.090Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Range Empty for Dynamic Chart VBA<p>I'm trying to create a dynamic sourcedata on a chart in VBA as this can vary depending on the data being pulled in via a ... |
53,454,716 | How to get array values certain condition<p>There is something I want to ask to take the array value based on <strong><em>the biggest score</em></strong> in score keys and <strong><em>the smallest strlen</em></strong> in word keys, this sample array:</p>
<pre><code><?php
$data = array(
'0' => array('score' =&g... | <p>You can use <code>usort</code> to sort your array by <code>score</code> and then word length, and then your desired result will be in <code>$data[0]</code>. Note that we rank equal word lengths higher so that we return the first one of the shortest length that we see in the array.</p>
<pre><code>usort($data, functi... | How to get array values certain condition | php|arrays | -1 | 60 | 3 | 53,454,786 | 53,454,786 | 1 | true | 2018-11-24T02:36:07.420Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to get array values certain condition<p>There is something I want to ask to take the array value based on <strong><em>the biggest score</em></strong> in ... |
53,452,753 | CUDA kernel fails to launch after making simple code changes inside the kernel<p>I have a templated CUDA kernel for calculating and setting values at the interface between 2 computational meshes. The values are calculated using 3 separate contributions, obtained from class member functions with class instances passed t... | <p>Right, seems I found the answer to my problem.</p>
<p>Looking at the generated errors I get "Too many resources requested for launch".</p>
<p>I've reduced the number of threads per block from 512 to 256 and the kernel runs fine now.</p> | CUDA kernel fails to launch after making simple code changes inside the kernel | cuda|scientific-computing | -1 | 72 | 1 | 53,456,616 | 53,456,616 | 1 | true | 2018-11-23T20:44:53.353Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
CUDA kernel fails to launch after making simple code changes inside the kernel<p>I have a templated CUDA kernel for calculating and setting values at the int... |
53,458,009 | Angular - passing function between components<p>Here is my issue skeleton: <a href="https://stackblitz.com/edit/angular-jk8dsj" rel="nofollow noreferrer">https://stackblitz.com/edit/angular-jk8dsj</a></p>
<p>I have two problems in this task:</p>
<ol>
<li><p>I want to add element in app.component, when I clicking the ... | <p>Create two <code>@Output</code> properties on the child component and then use them like this:</p>
<pre><code>import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
@Component({
selector: 'app-key-value',
templateUrl: './key-value.component.html',
styleUrls: ['./key-value.component.c... | Angular - passing function between components | javascript|angular | -1 | 572 | 1 | 53,458,061 | 53,458,061 | 1 | true | 2018-11-24T12:11:00.290Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Angular - passing function between components<p>Here is my issue skeleton: <a href="https://stackblitz.com/edit/angular-jk8dsj" rel="nofollow noreferrer">htt... |
53,459,279 | why initAutocomplete function is not hitting for search place in google map<p>I want to implement a search box in my webpage which includes a fullscreen map. I followed this link <a href="https://developers.google.com/maps/documentation/javascript/examples/places-searchbox" rel="nofollow noreferrer">https://developers.... | <p>I get a javascript error <code>"initAutocomplete is not a function"</code> with the posted code (<a href="http://jsfiddle.net/geocodezip/16er8mz3/" rel="nofollow noreferrer">fiddle</a>). <code>InitAutocomplete</code> is local to the anonymous function run by the jquery <code>ready</code> function, but is never call... | why initAutocomplete function is not hitting for search place in google map | javascript|jquery|html|google-maps | -1 | 2,085 | 1 | 53,459,490 | 53,459,490 | 1 | true | 2018-11-24T14:41:42.627Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
why initAutocomplete function is not hitting for search place in google map<p>I want to implement a search box in my webpage which includes a fullscreen map.... |
53,459,646 | Aligning two buttons on the same line works, but not divs<p>I have a simple banner with a text and two buttons. Each one is inside one div. I want to replace the buttons with two <code><div></code>. When I try this the UI broke. This is my code</p>
<pre><code>#wrapper {
background-color: gray;
... | <p>Well, It is happening because input element is an inline element while div is not.
so you only need to add is</p>
<p>div#button1, div#button2{display: inline-block;}</p> | Aligning two buttons on the same line works, but not divs | html|css | -1 | 46 | 3 | 53,459,824 | 53,459,824 | 1 | true | 2018-11-24T15:28:17.750Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Aligning two buttons on the same line works, but not divs<p>I have a simple banner with a text and two buttons. Each one is inside one div. I want to replace... |
53,454,341 | Concatenate or join of dynamic array when importing multiple ranges<p>I have a set of hyperlinks to other sheets that will change as new links are added or subtracted. I am looking to write a function that will import the same range from all of these sheets. The sheets are all based on the same template.</p>
<p>I am a... | <p>Google Sheets built-in functions can't convert a TEXT value into formula. This could be done only by using Google Apps Script or the Google Sheets API.</p>
<p>The method to be used is <a href="https://developers.google.com/apps-script/reference/spreadsheet/range#setformulaformula" rel="nofollow noreferrer">setFormu... | Concatenate or join of dynamic array when importing multiple ranges | arrays|google-apps-script|google-sheets|google-sheets-formula|importrange | -1 | 269 | 1 | 53,462,357 | 53,462,357 | 1 | true | 2018-11-24T01:06:36.547Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Concatenate or join of dynamic array when importing multiple ranges<p>I have a set of hyperlinks to other sheets that will change as new links are added or s... |
53,462,964 | extract the column values that bigger than all the values of other column | python pandas<p>I have a dataframe <code>df</code> that has multiple values:</p>
<pre><code>df = pd.read_csv('file1.tsv', names=['c1'], header=None, skiprows=0, sep='\t')
c1
0.94774
0.8367
0.21637
0.8474
0.384784
</code></pre>
<p>And another... | <p>If it is bigger than all, it is bigger than the maximum value:</p>
<pre><code>df[df['c1'] > dn['c1'].max()]
# c1
#0 0.94774
#1 0.83670
#3 0.84740
</code></pre> | extract the column values that bigger than all the values of other column | python pandas | python|pandas|dataframe | -1 | 22 | 1 | 53,462,991 | 53,462,991 | 1 | true | 2018-11-24T22:38:32.773Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
extract the column values that bigger than all the values of other column | python pandas<p>I have a dataframe <code>df</code> that has multiple values:</p>
... |
53,469,001 | When would you use a stack as opposed to a regular linked list or a regular queue as opposed to a priority queue in real life?<p>In my CS2 class, we are learning a lot of syntax for stacks, queues, and linked lists. Despite this, we haven't actually learned any applications of them or been told how to tell when we shou... | <p>Stacks, queues, priority queues are very versatile data structures. </p>
<p>You can find their uses in Competitive Programming, Processors, Operating Systems, and a lot more places I have not yet explored.</p>
<p>As a Computer Science student, you will learn more about it in the future, when you take up courses li... | When would you use a stack as opposed to a regular linked list or a regular queue as opposed to a priority queue in real life? | java|linked-list|stack|queue|computer-science | -1 | 23 | 1 | 53,469,128 | 53,469,128 | 1 | true | 2018-11-25T15:28:49.347Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
When would you use a stack as opposed to a regular linked list or a regular queue as opposed to a priority queue in real life?<p>In my CS2 class, we are lear... |
53,470,870 | Convert simple line of batch file to bash<p>To run the program <code>zandronum.exe</code> with the file <code>brutalv21.pk3</code>, the instructions for windows give this piece of batch file code:</p>
<pre><code>@echo off
start zandronum.exe -file brutalv21.pk3
</code></pre>
<p>But I downloaded <code>zandronum</code... | <p>The syntax is simple:</p>
<pre><code>./filename -Arguments
</code></pre>
<hr>
<p>So, you have to write:</p>
<pre><code>./zandronum -file brutalv21.pk3
</code></pre> | Convert simple line of batch file to bash | bash|batch-file | -1 | 49 | 2 | 53,470,947 | 53,470,947 | 1 | true | 2018-11-25T19:01:36.553Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Convert simple line of batch file to bash<p>To run the program <code>zandronum.exe</code> with the file <code>brutalv21.pk3</code>, the instructions for wind... |
53,473,444 | .htaccess redirect to 404 page using shared hosting with 2 different domains<p>I am using 2 different domains on the same GoDaddy Hosting Plan. <br>
So I have a addon of my main domain <b><a href="http://sethjfreeman.xyz" rel="nofollow noreferrer">http://sethjfreeman.xyz</a></b> set to redirect to <b><a href="http://re... | <pre><code>ErrorDocument 404 /404.html
</code></pre>
<p>Just do that and it will redirect to the 404.html for the url you are using given that the file is in root folder in both sites</p> | .htaccess redirect to 404 page using shared hosting with 2 different domains | .htaccess|redirect | -1 | 32 | 1 | 53,473,480 | 53,473,480 | 1 | true | 2018-11-26T00:37:42.070Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
.htaccess redirect to 404 page using shared hosting with 2 different domains<p>I am using 2 different domains on the same GoDaddy Hosting Plan. <br>
So I hav... |
53,473,885 | Finding out how many times a user is processed?<p>I'm having some trouble with a part of an assignment. I have to see how many times an employee is processed in my program, after the loop runs once it asks the user if they would like to process another. If they enter y for yes and then they enter n for end after the se... | <p>You can achieve this by simply having "int employeesProcessed = 0;" outside of you while loop then add "employeesProcessed++;" directly after "if (choice.equalsIgnoreCase("Y"))" so that each time your program is asked to process an employ you add 1 to your int that is keeping track of how many employees you have pro... | Finding out how many times a user is processed? | java|loops|methods | -1 | 26 | 1 | 53,473,958 | 53,473,958 | 1 | true | 2018-11-26T02:01:11.393Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Finding out how many times a user is processed?<p>I'm having some trouble with a part of an assignment. I have to see how many times an employee is processed... |
53,475,373 | CSS Only Table with DIVs. How to NOT scroll the top row<p>I have a pure DIV table using the display: table, table-row, table-cell style of format.
I have the whole table scrolling, but the header row, scrolls as well as the detail rows.</p>
<p>Are there methods available to indicate that the header row (1st row) shoul... | <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-css lang-css prettyprint-override"><code>section {
position: relative;
border: 1px solid #000;
padding-top: 37px;
background: #ff0000;
}
.container {
overf... | CSS Only Table with DIVs. How to NOT scroll the top row | html|css | -1 | 61 | 2 | 53,478,470 | 53,478,470 | 1 | true | 2018-11-26T05:49:13.137Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
CSS Only Table with DIVs. How to NOT scroll the top row<p>I have a pure DIV table using the display: table, table-row, table-cell style of format.
I have the... |
53,483,619 | Retrofit with Dagger 2 - android<p>I am using from bellow sample:</p>
<p><a href="https://medium.com/@iammert/new-android-injector-with-dagger-2-part-1-8baa60152abe" rel="nofollow noreferrer">New Android Injector with Dagger 2</a></p>
<p>How can I define my <code>SQLite Connection</code> and <code>retrofit</code> and... | <p>Here is an example how you can do it. Hope this would help.</p>
<pre><code>@Module
class AppModule(val app: Context) {
@Provides
@Singleton
fun provideContext(): Context = app
@Provides
@Singleton
fun provideDatabase(context: Context): Database = Room.databaseBuilder(context, Database::clas... | Retrofit with Dagger 2 - android | android|retrofit2|dagger-2 | -1 | 65 | 1 | 53,483,855 | 53,483,855 | 1 | true | 2018-11-26T14:48:19.447Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Retrofit with Dagger 2 - android<p>I am using from bellow sample:</p>
<p><a href="https://medium.com/@iammert/new-android-injector-with-dagger-2-part-1-8baa... |
53,383,392 | Is it possible to run the QuickBooks SDK in Excel?<p>This is a bit of an abstract question but I hope someone can share some insight into this because Google isn't getting me any clear answers. I've been tasked with importing and exporting data between an Excel app and QuickBooks with a few requirements:</p>
<ol>
<li>... | <p>The most simple approach is to dump building a add-in for Office (a lot of pain – just racks up billable hours for no good reason - creates starving children around the world - don't bother).</p>
<p>The most simple approach is to build a COM object in .net. That com object can then be consumed by ANY software that ... | Is it possible to run the QuickBooks SDK in Excel? | c#|excel|visual-studio|wcf|quickbooks | -1 | 273 | 1 | 53,487,511 | 53,487,511 | 1 | true | 2018-11-19T22:12:59.953Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Is it possible to run the QuickBooks SDK in Excel?<p>This is a bit of an abstract question but I hope someone can share some insight into this because Google... |
53,491,861 | I am trying to open a bunch of websites that are stored in a list and each opening is delayed by 1 second<p>Here is the code:</p>
<pre><code>import webbrowser as url
import os
import time
os.system('ipconfig /flushdns')
urllist = ['url1','url2','url3','url4','url5','url6','url7','url8','url9']
for elem in urllist:
... | <p>You are almost there. Try this</p>
<pre><code>urllist = ['url1','url2','url3','url4','url5','url6','url7','url8','url9']
for elem in urllist:
# print(urllist)
print(elem)
</code></pre>
<p>Output</p>
<pre><code>url1
url2
url3
url4
url5
url6
url7
url8
url9
</code></pre> | I am trying to open a bunch of websites that are stored in a list and each opening is delayed by 1 second | python|python-3.x | -1 | 29 | 1 | 53,491,889 | 53,491,889 | 1 | true | 2018-11-27T02:23:51.127Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
I am trying to open a bunch of websites that are stored in a list and each opening is delayed by 1 second<p>Here is the code:</p>
<pre><code>import webbrows... |
53,494,700 | constructor calling the base class with braces<p>I am trying to compile this piece of code:</p>
<pre><code> Server(uint16_t port, NetworkManager nmanager)
: TCPServer(port, nmanager){} : TCPServer(port, nmanager)
</code></pre>
<p>but I don't understand why two constructor calls for base class. Can someone please expl... | <p>This code cannot be compiled, because it's not valid C++. When defining a constructor, there can be <em>one</em> sequence of member initializers (including base class constructor calls). The snippet is more likely to be correct when you change it to</p>
<pre><code> Server(uint16_t port, NetworkManager nmanager)
... | constructor calling the base class with braces | c++|inheritance|constructor | -1 | 43 | 1 | 53,494,735 | 53,494,735 | 1 | true | 2018-11-27T07:29:07.987Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
constructor calling the base class with braces<p>I am trying to compile this piece of code:</p>
<pre><code> Server(uint16_t port, NetworkManager nmanager)
:... |
53,391,708 | invalid_json in curl using variable in POST<p>Can someone plz tell me, when I launch just curl with POST some json data it works, but when I'm trying to add variable in json and cycle <code>for</code>, bash returns <code>invalid_json</code>.</p>
<p>I've read that bash variables are untyped so why I got this error?</p>... | <p>you need <a href="https://www.tldp.org/LDP/abs/html/quotingvar.html" rel="nofollow noreferrer">double quotes</a> to do variable interpolation in bash:</p>
<pre><code>curl -X POST -d "{\"api_token\": \"test_api\", \"id\": $var}" 'https://api_test.com/'
</code></pre> | invalid_json in curl using variable in POST | json|bash|variables|curl | -1 | 55 | 1 | 53,391,822 | 53,391,822 | 2 | true | 2018-11-20T11:10:24.083Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
invalid_json in curl using variable in POST<p>Can someone plz tell me, when I launch just curl with POST some json data it works, but when I'm trying to add ... |
53,416,436 | How to handle encoding when using Win32::Console::ANSI in a module?<p><a href="https://metacpan.org/pod/Win32::Console::ANSI" rel="nofollow noreferrer">Win32::Console::ANSI</a> enables by default a ANSI(Win) to OEM(Dos) mapping. When I use <code>Win32::Console::ANSI</code> in a CPAN module should I keep this mapping or... | <p><a href="https://metacpan.org/pod/Win32::Console::ANSI#Escape-sequences-for-Select-Character-Set" rel="nofollow noreferrer">The documentation</a> outlines the reason this is the default:</p>
<blockquote>
<p>It is useful because one types the script with a Windows-based editor
(using a Windows codepage) and the ... | How to handle encoding when using Win32::Console::ANSI in a module? | windows|perl|encoding | -1 | 48 | 1 | 53,421,229 | 53,421,229 | 2 | true | 2018-11-21T16:24:48.457Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to handle encoding when using Win32::Console::ANSI in a module?<p><a href="https://metacpan.org/pod/Win32::Console::ANSI" rel="nofollow noreferrer">Win32... |
53,429,679 | Can't understand what sample function is doing<p>I am looking at code given below:</p>
<pre><code>### forward sampling
ForwardSimulation <- function(start_state,Rate_matrix,length_time){
## Size of state space
nSt <- nrow(Rate_matrix)
## State space
StSp <- 1:nSt
## Choose state at time=0 from init... | <p>They do the same as <code>-X[1]</code> does in</p>
<pre><code>X[2] <- sample(StSp[-X[1]], 1, prob = Rate_matrix[X[1], -X[1]])
</code></pre>
<p>In case the question is about negative indices in general, note that</p>
<pre><code>1:3
# [1] 1 2 3
(1:3)[-1]
# [1] 2 3
</code></pre>
<p>That is, we return the origina... | Can't understand what sample function is doing | r | -1 | 46 | 1 | 53,430,215 | 53,430,215 | 2 | true | 2018-11-22T11:11:10.890Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Can't understand what sample function is doing<p>I am looking at code given below:</p>
<pre><code>### forward sampling
ForwardSimulation <- function(star... |
53,458,450 | why I must write the code with four backslashes instead of two?<p>I want to write the code like that document.querySelector('#foo\bar'); and it does not work</p>
<pre><code> <div id="foo\bar"></div>
<div id="foo:bar"></div>
<script>
document.querySelector('#foo\\\\bar'); // Mat... | <p>JavaScript string syntax uses the backslash as an escaping mechanism for special characters. In order to get a string to end up with a <em>single</em> backslash, you have to double it.</p>
<p>Then, CSS selector syntax for <code>querySelector()</code> <em>also</em> uses the backslash character as a special escape se... | why I must write the code with four backslashes instead of two? | javascript|dom|jsdom | -1 | 36 | 1 | 53,458,472 | 53,458,472 | 2 | true | 2018-11-24T13:06:58.657Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
why I must write the code with four backslashes instead of two?<p>I want to write the code like that document.querySelector('#foo\bar'); and it does not work... |
53,472,342 | Why assignment to the function type gives an error?<p>I'm reading <a href="https://stackoverflow.com/a/6293420/7813604">this answer - about function name as pointer</a>, in the post the author said why it's not compiled is not known, which is my question, I want to know why. (Please don't annoy the author or I will ang... | <p>Since <code>function</code> is typedefed as a function type, when you declare a "variable" of type <code>function</code>, it actually declares a function, not a variable. Functions can't be assigned to, so this behaviour makes perfect sense.</p> | Why assignment to the function type gives an error? | c++|function | -1 | 62 | 1 | 53,472,367 | 53,472,367 | 2 | true | 2018-11-25T21:50:40.157Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why assignment to the function type gives an error?<p>I'm reading <a href="https://stackoverflow.com/a/6293420/7813604">this answer - about function name as ... |
53,472,345 | Xcode is forcing me to unwrap a value that is not optional<p>I am creating a basic blog app using Swift and Firebase to practice my programming skills.</p>
<p>Here's my user model:</p>
<pre><code>class UserProfile {
var uid: String
var username: String
var photoURL: URL
init(uid: String, username: Str... | <p>The problem is not with <code>photoURL</code>. The problem is that despite properly unwrapping the optional property <code>line</code>, you mistakenly attempt to use the still optional <code>self.line</code>. Because that is optional, <code>self.line?.author.photoURL</code> as a whole is optional.</p>
<p>Simply cha... | Xcode is forcing me to unwrap a value that is not optional | swift|firebase|option-type | -1 | 47 | 1 | 53,472,373 | 53,472,373 | 2 | true | 2018-11-25T21:51:31.917Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Xcode is forcing me to unwrap a value that is not optional<p>I am creating a basic blog app using Swift and Firebase to practice my programming skills.</p>
... |
53,479,084 | How to get only some informations from json response?<p>Openweatherapi returns json like this:</p>
<pre><code>{"coord":{"lon":-0.13,"lat":51.51},"weather":[{"id":300,"main":"Drizzle","description":"light intensity drizzle","icon":"09d"}],"base":"stations","main":{"temp":280.32,"pressure":1012,"humidity":81,"temp_min":... | <p>You can project the return value of your api call with the rxjs <code>map</code> method. You usually should to this in your service:</p>
<pre><code> return this.http
.get(environment.ApiUrl, {params: httpParams})
.pipe(map((data: any) =>
{
/** Build your custom object to return **/... | How to get only some informations from json response? | angular|typescript|api|angular7|openweathermap | -1 | 62 | 1 | 53,479,175 | 53,479,175 | 2 | true | 2018-11-26T10:25:26.317Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to get only some informations from json response?<p>Openweatherapi returns json like this:</p>
<pre><code>{"coord":{"lon":-0.13,"lat":51.51},"weather":[... |
53,491,572 | Changing Data Shape in Excel<p>I have a column (or row) comprised of 11 rows (columns):</p>
<pre><code>1
2
3
4
a
b
c
5
6
7
8
</code></pre>
<p>I want to reference this column/row in another sheet but I only want it to have numerical values AND I want it to have a minimum shape. Meaning I want it to come out as:</p>
... | <p>Use following formula to do that.</p>
<pre><code>=INDEX($A$1:$A$11,AGGREGATE(15,6,ROW($A$1:$A$11)/ISNUMBER($A$1:$A$11),ROW(1:1)))
</code></pre>
<p><a href="https://i.stack.imgur.com/vIF2G.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vIF2G.png" alt="enter image description here"></a></p> | Changing Data Shape in Excel | excel | -1 | 66 | 1 | 53,492,621 | 53,492,621 | 2 | true | 2018-11-27T01:42:54.693Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Changing Data Shape in Excel<p>I have a column (or row) comprised of 11 rows (columns):</p>
<pre><code>1
2
3
4
a
b
c
5
6
7
8
</code></pre>
<p>I want to ref... |
53,500,052 | Why is the pattern is being matched incorrectly to my input?<p>The Pattern:
<code>^<p .*>&nbsp;</p>$</code></p>
<p>The Input:
<code><p style="margin-bottom: 15px; padding: 0px; text-align: justify; font-family: 'Open Sans', Arial, sans-serif; font-size: 14px; background-color: #ffffff;" class="Mso... | <p>Regular Expressions are generally "greedy". That means that they will match as much as possible.</p>
<p>Your expressing include <code>.*</code> which will match any characters 0 or more times. That includes all the <code><p>...</p></code> which are in the middle.</p>
<p>Also, the expression is trying t... | Why is the pattern is being matched incorrectly to my input? | html|regex|pattern-matching | -1 | 53 | 2 | 53,500,144 | 53,500,144 | 2 | true | 2018-11-27T12:45:51.843Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why is the pattern is being matched incorrectly to my input?<p>The Pattern:
<code>^<p .*>&nbsp;</p>$</code></p>
<p>The Input:
<code><p ... |
53,501,781 | 'raise' causes SyntaxError<p>I have this script:</p>
<pre><code>#!/usr/bin/python
import sys
import ast
def main(argv):
for line in sys.stdin:
try:
rules, scores = line.split('\t')
scores = ast.literal_eval(scores)
print '\t'.join([rules, str(any(scores))])
except:
sys.stderr.write('... | <p>It looks like you're trying to <code>eval("")</code> because your <code>[1]</code> is missing behind the <code>\t</code> on which you <code>split</code>. It's in your first command but not in the one that throws an error.</p>
<p>Raise is not causing the syntax error, <code>eval("")</code> is causing a syntax error,... | 'raise' causes SyntaxError | python | -1 | 63 | 1 | 53,501,942 | 53,501,942 | 2 | true | 2018-11-27T14:21:31.970Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
'raise' causes SyntaxError<p>I have this script:</p>
<pre><code>#!/usr/bin/python
import sys
import ast
def main(argv):
for line in sys.stdin:
try:
... |
53,359,549 | Requests.post error| TypeError: post() takes at least 1 argument (1 given)<p>I'm using Python 2.7.10 64-bit.
In the update_jira_field method, I'm getting the following error:</p>
<blockquote>
<p>TypeError: post() takes at least 1 argument (1 given)</p>
</blockquote>
<p>I tried also <code>requests.put()</code>, comb... | <p>You try to pass in a named parameter named <code>endpoint</code>, but the correct name is <code>url</code>. It whould work if you change the line to</p>
<pre><code>response = requests.post(endpoint, headers = headers, auth = auth, data = payload)
</code></pre> | Requests.post error| TypeError: post() takes at least 1 argument (1 given) | python|python-requests|typeerror|jira-rest-api | -1 | 316 | 1 | 53,359,650 | 53,359,650 | 3 | true | 2018-11-18T09:44:02.693Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Requests.post error| TypeError: post() takes at least 1 argument (1 given)<p>I'm using Python 2.7.10 64-bit.
In the update_jira_field method, I'm getting the... |
53,472,184 | How to plot the Wolfram Alpha grid? [MATLAB]<p>I would like to plot for any function this grid :</p>
<p>This is the special case for f(z) -> 1/z</p>
<p><a href="https://i.stack.imgur.com/mfpVe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mfpVe.png" alt="enter image description here"></a></p>
<p... | <p>Try the code below. I have updated the answer to show the lines in different colors.</p>
<pre><code>clear
clc
N = 101;
x = linspace(-1, 1, N);
y = x;
[X,Y] = meshgrid(x,y);
Z = X + Y*1i;
f = 1./Z;
U = real(f);
V = imag(f);
%Plot transformed mesh
hold off
plot(U,V,'b-');
hold on
plot(U',V','r-');
xlim([-5,5]);... | How to plot the Wolfram Alpha grid? [MATLAB] | matlab|wolframalpha | -1 | 269 | 1 | 53,474,820 | 53,474,820 | 3 | true | 2018-11-25T21:28:53.480Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to plot the Wolfram Alpha grid? [MATLAB]<p>I would like to plot for any function this grid :</p>
<p>This is the special case for f(z) -> 1/z</p>
<p><a ... |
53,359,644 | angular ng-template with nativescript is really weird buggy<p>Sorry for that not so concrete title but starting with angular + NS I experience so much weird exceptional behavior that really wonders me.</p>
<p>That works <strong>ok</strong>:</p>
<pre><code><StackLayout>
<ListView [items]="items" class="li... | <p>I would recommend you to go through the basics of {N} documentation to avoid further confusions. </p>
<p>Your app is totally native here therefore you can't use HTML tags those are specific to Web Browsers. You must use the standard {N} UI widgets, to make text bold, you must use the <code>fontWeight</code> propert... | angular ng-template with nativescript is really weird buggy | nativescript|nativescript-angular | -1 | 271 | 1 | 53,359,931 | 53,359,931 | 0 | true | 2018-11-18T09:55:20.307Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
angular ng-template with nativescript is really weird buggy<p>Sorry for that not so concrete title but starting with angular + NS I experience so much weird ... |
53,380,297 | Prev/Next object based on search string in Swift<p>I got the follwing code from another answer but wanted to change is slightly to include a searchable string. I get an error at the following <code>where: { $0.id == searchString }</code>, which says <code>Ambiguous reference to member '=='</code>. I assume this is due... | <p>The code can work only if <code>Iterator.Element</code> has an <code>id</code> property, otherwise the <code>==</code> operator can't be applied. </p>
<p>So add a protocol and an appropriate constraint:</p>
<pre><code>protocol HasId {
var id : String { get }
}
extension BidirectionalCollection where Iterator.... | Prev/Next object based on search string in Swift | arrays|swift | -1 | 43 | 1 | 53,380,471 | 53,380,471 | 0 | true | 2018-11-19T18:02:50.480Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Prev/Next object based on search string in Swift<p>I got the follwing code from another answer but wanted to change is slightly to include a searchable strin... |
53,367,513 | Prepros failed to process Sass file version "GLIBCXX_3.4.20" not found on Ubuntu 14.04<p>To learn and use Sass, I installed <strong>Prepros</strong> On <strong>Ubuntu 14.04</strong> LTS. But every time i try to process an scss file (sass file) I get this error notification </p>
<pre><code>Failed to Process File sass/s... | <blockquote>
<p>version "GLIBCXX_3.4.20" not found</p>
</blockquote>
<p>The problem is that your <code>libstdc++.so.6</code> is too old.</p>
<p>Versions of <code>libstdc++</code> and their ABI's are documented <a href="https://gcc.gnu.org/onlinedocs/libstdc++/manual/abi.html" rel="nofollow noreferrer">here</a>. <co... | Prepros failed to process Sass file version "GLIBCXX_3.4.20" not found on Ubuntu 14.04 | sass|ubuntu-14.04|prepros | -1 | 840 | 1 | 53,424,247 | 53,424,247 | 0 | true | 2018-11-19T02:25:48.580Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Prepros failed to process Sass file version "GLIBCXX_3.4.20" not found on Ubuntu 14.04<p>To learn and use Sass, I installed <strong>Prepros</strong> On <stro... |
53,431,129 | DevOps Continuos Delivery for Java Script<p>Can i use Jenkins integration for DevOps Continuos Delivery Pipeline for JavaScript code builds?
I am trying to build/propose a solution for integrating Jenkins tool and to remove manual code build and deployments to remove the manual effort for my team.</p> | <p>Generally in Jenkins, you can use the below:</p>
<p>Build -> Automated Test -> Dev Deploy -> QA Approval -> QA Deploy</p>
<p>The Seed Job is the one which will be creating other Jenkins job automatically but the seed job itself will be configured manually. The Seed Job will read the DSL script, parse those and cre... | DevOps Continuos Delivery for Java Script | devops | -1 | 30 | 1 | 53,431,372 | 53,431,372 | 0 | true | 2018-11-22T12:32:55.733Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
DevOps Continuos Delivery for Java Script<p>Can i use Jenkins integration for DevOps Continuos Delivery Pipeline for JavaScript code builds?
I am trying to b... |
53,451,171 | PHP - RegEx - Find words which begins and ends equally<p>I try to find hashtags in </p>
<pre><code>some words
#one #two
#three#four#five
</code></pre>
<p>by such an expression</p>
<pre><code>(#.*?)(\s|#|$)
</code></pre>
<p>But can't find #four</p>
<p><a href="https://i.stack.imgur.com/KpPVL.jpg" rel="nofollow nore... | <p>You can find all hashtags with this simple regex where there is absolutely no overlapping problem as you are facing in your current regex,</p>
<pre><code>#\w+
</code></pre>
<p><a href="https://regex101.com/r/YcBzPI/1" rel="nofollow noreferrer">Demo</a></p>
<p>Also, if you think your hashtag word can contain some ... | PHP - RegEx - Find words which begins and ends equally | php|regex | -1 | 46 | 1 | 53,451,199 | 53,451,199 | 0 | true | 2018-11-23T17:59:34.253Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
PHP - RegEx - Find words which begins and ends equally<p>I try to find hashtags in </p>
<pre><code>some words
#one #two
#three#four#five
</code></pre>
<p>b... |
53,453,313 | Wordpress remove user registration for custom implementation<p>I am integrating a user verification feature into a plugin I am developing whereby a user must verify their email address by clicking a link sent to them.</p>
<p>It is based on code provided on <a href="https://github.com/wp-plugins/email-verification-for-... | <p>The standar way to do that is through a field in the table users that is set to true for example whenever the user have validated his email via your link.</p>
<p>And with this field you control that if the field is not validated you dont let them sign in on you website.
So in order to apply this you need to find th... | Wordpress remove user registration for custom implementation | php|wordpress | -1 | 45 | 1 | 53,453,360 | 53,453,360 | 0 | true | 2018-11-23T21:55:35.517Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Wordpress remove user registration for custom implementation<p>I am integrating a user verification feature into a plugin I am developing whereby a user must... |
53,465,036 | ios UITabBarcontroller custom , How can I achieve the following tabbar architect<p><a href="https://i.stack.imgur.com/oNrVB.png" rel="nofollow noreferrer">iPad custom tabbar image</a> <a href="https://i.stack.imgur.com/SK8uv.png" rel="nofollow noreferrer">iPhone custom tabbar image</a> </p>
<p>iPhone => How to... | <p>This should be totally custom. I would use <code>UIStackView</code> and change its <code>direction</code> to <code>.horizontal</code> on iPhones, and to <code>.vertical</code> on iPad.</p>
<p>The dots is just a button with image you can add to the stackView.</p> | ios UITabBarcontroller custom , How can I achieve the following tabbar architect | ios|uitabbarcontroller | -1 | 26 | 1 | 53,465,981 | 53,465,981 | 0 | true | 2018-11-25T05:54:44.930Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
ios UITabBarcontroller custom , How can I achieve the following tabbar architect<p><a href="https://i.stack.imgur.com/oNrVB.png" rel="nofollow noreferrer">iP... |
53,359,245 | Python - Class calling not working when passing parameter<p>I wrote a class and everything works fine until i try to pass a parameter through calling a variable.</p>
<p>Let me show you:</p>
<p><strong>INSTANCE ONE - ARGUMENTS PASSED DIRECTLY</strong></p>
<pre><code>a = Statements("AAPL","income_statement", "FY", ["2... | <p>Your assumption is wrong, it is not the external variable that causes the error. You are querying different tickers: <code>"AAPL"</code> vs <code>"MMM"</code></p>
<p>The error is in the data you process - you got <code>None</code>'s somewhere. </p>
<p>If you use </p>
<pre><code>e = Statements("MMM","income_statem... | Python - Class calling not working when passing parameter | python|python-3.x|python-requests | -1 | 40 | 1 | 53,359,303 | 53,359,303 | 1 | true | 2018-11-18T08:56:09.913Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Python - Class calling not working when passing parameter<p>I wrote a class and everything works fine until i try to pass a parameter through calling a varia... |
53,363,028 | Firebase function - http get parameters with acentuation<p>I have a firebase function doing a http GET. There are 3 parameters and all works ok but if one of the parameters contains acentuation the Firebase console don't show any error but the the GET is not executed. In this case, the problem is with Parameter03. </p>... | <p>Whenever you build a URL, you should properly escape all the query string components so that they contain <a href="https://stackoverflow.com/questions/2366260/whats-valid-and-whats-not-in-a-uri-query">only valid characters</a>. That's what <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/G... | Firebase function - http get parameters with acentuation | javascript|node.js|http|google-cloud-functions | -1 | 66 | 1 | 53,364,434 | 53,364,434 | 1 | true | 2018-11-18T16:24:57.403Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Firebase function - http get parameters with acentuation<p>I have a firebase function doing a http GET. There are 3 parameters and all works ok but if one of... |
53,376,162 | Migrating RecyclerView from Activity to Fragment - can't use findViewById<p>I copied the following code from the MainActivity to a separate fragment, but I can't get <code>findViewById</code> to work:
I get "cannot resolve method findViewById(int)"
these are the related files:</p>
<p>**Also as a beginner, could you le... | <p>Here's your problem:</p>
<pre><code>return inflater.inflate(R.layout.fragment_my, container, false);
</code></pre>
<p>You cannot add more code after the return statement. You will need to take the reference of the inflated view and use it to find the reference of child views.</p>
<pre><code>View rootView = inflat... | Migrating RecyclerView from Activity to Fragment - can't use findViewById | android | -1 | 73 | 3 | 53,376,216 | 53,376,216 | 1 | true | 2018-11-19T13:55:07.367Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Migrating RecyclerView from Activity to Fragment - can't use findViewById<p>I copied the following code from the MainActivity to a separate fragment, but I c... |
53,391,106 | How to use hotjar with ember ?<p>I need to use hotjar for work, but i have some difficulties to set it up. The project is an ember project, and i have found this project to integrate hotjar : <a href="https://github.com/byrnedo/ember-hotjar" rel="nofollow noreferrer">https://github.com/byrnedo/ember-hotjar</a></p>
<p>... | <blockquote>
<p>Uncaught TypeError: this.get(...).push is not a function</p>
</blockquote>
<p>Is a result of you attempting to call <code>.push</code> on a function. As in, from your <code>console.log</code>, we can see that <code>this.get('_hj')</code> is a function, and you attempted to call <code>.push</code> on ... | How to use hotjar with ember ? | javascript|ember.js|statistics|hotjar | -1 | 260 | 1 | 53,393,883 | 53,393,883 | 1 | true | 2018-11-20T10:36:02.083Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to use hotjar with ember ?<p>I need to use hotjar for work, but i have some difficulties to set it up. The project is an ember project, and i have found ... |
53,395,109 | Calculates how often a value appears in c language<p>how to find how often the number appears??</p>
<p>my code :</p>
<pre><code>#include <stdio.h>
int main(){
int count,same,n=7,a,max;
max = 0;
printf("Input Number : \n");
for(int i=1; i<=n; i++){
scanf("%d",a);
if(i == 1){
max = a;
}
... | <p>Two problems here. First is how you call <code>scanf</code>:</p>
<pre><code>scanf("%d",a);
</code></pre>
<p>The <code>%d</code> format specifier expects and <em>address</em> of an <code>int</code>, but you're instead passing an <code>int</code>. Change this to:</p>
<pre><code>scanf("%d", &a);
</code></pre>
... | Calculates how often a value appears in c language | c|loops|numbers | -1 | 48 | 1 | 53,395,207 | 53,395,207 | 1 | true | 2018-11-20T14:24:04.013Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Calculates how often a value appears in c language<p>how to find how often the number appears??</p>
<p>my code :</p>
<pre><code>#include <stdio.h>
i... |
53,395,228 | Optimising drawing graphs from a model: code architecture<p>OK, I have a question about how to lay out code efficiently. </p>
<p>I have a model written in python which generates results which I use to produce graphs in matplotlib. As written, the model is contained within a single file, and I have 15 other run-files, ... | <p>I think you are close to find what you want.</p>
<p>If calculations take some time, store results in files to process later without recalculation.</p>
<p>The most important: separate code from configuration, instead of copy pasting variations of such mixture.</p>
<p>If the model takes parameters, define a model c... | Optimising drawing graphs from a model: code architecture | python|matplotlib|architecture | -1 | 42 | 1 | 53,415,731 | 53,415,731 | 1 | true | 2018-11-20T14:29:57.237Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Optimising drawing graphs from a model: code architecture<p>OK, I have a question about how to lay out code efficiently. </p>
<p>I have a model written in p... |
53,418,456 | How can I append an alement after another element?<pre><code><div>
<label for="form_username" class="required">Username</label>
<input type="text" id="form_username" name="form[username]" required="required" class="form-control">
</div>
</code></pre>
<p>I try to append an element to... | <p>Since your input tag has an id <code>form_username</code>, you don't have to use <code>[name]</code> attribute as a selector anymore.</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-overri... | How can I append an alement after another element? | jquery|append|insertafter | -1 | 47 | 2 | 53,418,525 | 53,418,525 | 1 | true | 2018-11-21T18:30:38.080Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I append an alement after another element?<pre><code><div>
<label for="form_username" class="required">Username</label>
<i... |
53,420,906 | Where can read about available commands i can use as a script in my gitlab CI yml file?<p>Basically, i'm getting started with gitlab's continuous integration, but having a hard time looking for a guide or documentation that would help me write scripts for the file.</p>
<p>Where can i read about operators, conditionals... | <p>First of all read the <a href="https://docs.gitlab.com/ee/ci/quick_start/" rel="nofollow noreferrer">Quick start</a></p>
<p>Here is everything about yml file: <a href="https://docs.gitlab.com/ee/ci/yaml/" rel="nofollow noreferrer">Configuration of your jobs with .gitlab-ci.yml</a></p>
<p>I can recommend to use CI ... | Where can read about available commands i can use as a script in my gitlab CI yml file? | scripting|continuous-integration|gitlab|gitlab-ci | -1 | 38 | 1 | 53,426,751 | 53,426,751 | 1 | true | 2018-11-21T21:45:36.343Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Where can read about available commands i can use as a script in my gitlab CI yml file?<p>Basically, i'm getting started with gitlab's continuous integration... |
53,444,048 | why div is under the image<p>i want to put the div above the image, but i don't know why it is always under it event if i set the z-index attribute</p>
<p>my code likes:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-... | <p>Use relative positioning to be able to use z-index. Then you can use <code>top</code> as well which is a bit more robust than negative margins in my experience.</p>
<p>Default positioning is <code>static</code> which does not honour <code>z-index</code>.</p>
<p><div class="snippet" data-lang="js" data-hide="false"... | why div is under the image | html|css|bootstrap-4 | -1 | 47 | 2 | 53,444,167 | 53,444,167 | 1 | true | 2018-11-23T09:38:44.703Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
why div is under the image<p>i want to put the div above the image, but i don't know why it is always under it event if i set the z-index attribute</p>
<p>m... |
53,449,693 | how can i add a 3rd condition if last two conditions are satisfied, within Google sheet<p>I'm trying to figure out if it is possible to add a 3rd condition if the first two conditions are satisfied.</p>
<p>So, I've attached a reference sheet, and here is what I want to do; if a certain email address (from the sheet At... | <p>I changed your sheet directly. </p>
<p>One formula that works is this:</p>
<pre><code>=ArrayFormula(if(isnumber(ArrayFormula(match(B$1&$A2,'Login response'!$D:$D&'Login response'!$B:$B,0))),TRUE,FALSE))
</code></pre>
<p>And perhaps an even better one is this:</p>
<pre><code>=if(countifs('Login response'!... | how can i add a 3rd condition if last two conditions are satisfied, within Google sheet | google-sheets|google-sheets-formula | -1 | 31 | 1 | 53,449,819 | 53,449,819 | 1 | true | 2018-11-23T15:56:42.903Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
how can i add a 3rd condition if last two conditions are satisfied, within Google sheet<p>I'm trying to figure out if it is possible to add a 3rd condition i... |
53,452,253 | Custom Database Connection Object: Should i use a general one (singleton) or one per object instance?<p>What is the best practice: To create just one single static class (Singleton) that provide all needed connection to the database or create one object per DAO instance?
Note that my project access more than one databa... | <p>The details you provided do not indicate that using a Singleton pattern is a good idea; on the contrary, as you already discovered, it will likely cause issues with multi-threaded apps. Most database engines support connection pools and the overhead of opening/closing connections should be minimal. Do not open the c... | Custom Database Connection Object: Should i use a general one (singleton) or one per object instance? | c#|repository-pattern|dao|data-access-layer|data-access | -1 | 535 | 2 | 53,452,435 | 53,452,435 | 1 | true | 2018-11-23T19:48:47.990Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Custom Database Connection Object: Should i use a general one (singleton) or one per object instance?<p>What is the best practice: To create just one single ... |
53,467,343 | How to delete rows below the last row contains a specified string (last match)? by VBA<p>Hi I'm searching and trying to merge some VBA codes to overcome my problem but haven't been succesfull so far. What i want to do is search specific words in a Column (i.e. "XxX" this a just a part of that cell) and find the last ma... | <p>Try:</p>
<pre><code>Option Explicit
Sub delAfter()
Const sFind As String = "XxX"
Dim WS As Worksheet, R As Range
'Find last sFind
Set WS = Worksheets("sheet2") 'or ActiveSheet or whatever
With WS.Cells
Set R = .Find(what:=sFind, _
after:=.Item(1, 1), _
LookIn:=xlValues, _
loo... | How to delete rows below the last row contains a specified string (last match)? by VBA | excel|vba|match | -1 | 1,037 | 2 | 53,467,724 | 53,467,724 | 1 | true | 2018-11-25T12:16:48.383Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to delete rows below the last row contains a specified string (last match)? by VBA<p>Hi I'm searching and trying to merge some VBA codes to overcome my p... |
53,476,926 | How to edit a function on child theme?<p>I've this function on <code>function.php</code>'s main theme:</p>
<pre><code>if(!function_exists('eagle_booking_append_booking_button_menu') && eagle_booking_get_option('eagle_booking_header_button')):
add_filter( 'wp_nav_menu_items', 'eagle_booking_append_booking_... | <p>For that first you need to remove the filter applied by the parent theme and then define it again in child theme as follows:</p>
<p><strong>Child Theme functions.php</strong></p>
<pre><code>add_action( 'init', 'remove_my_action');
function remove_my_action() {
remove_filter( 'wp_nav_menu_items', 'eagle_booking... | How to edit a function on child theme? | php|wordpress|function|wordpress-theming | -1 | 41 | 2 | 53,477,306 | 53,477,306 | 1 | true | 2018-11-26T08:09:12.347Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to edit a function on child theme?<p>I've this function on <code>function.php</code>'s main theme:</p>
<pre><code>if(!function_exists('eagle_booking_app... |
53,481,433 | How to change the title in an Electron Notification?<p>Now I'm making windows app by using ElectronJS. After packaging app, I tested app.</p>
<p>But the title of notification is "Electron". How can I set the title of notification to my app name?</p> | <p><a href="https://electronjs.org/docs/tutorial/notifications" rel="nofollow noreferrer">Notifications</a> says all about it.</p>
<p>From main process</p>
<pre><code>new Notification({
title: 'My Title',
body: 'Lorem Ipsum Dolor Sit Amet'
})
</code></pre>
<p>From renderer process</p>
<pre><code>new Notificatio... | How to change the title in an Electron Notification? | node.js|notifications|electron|chromium | -1 | 2,588 | 2 | 53,482,747 | 53,482,747 | 1 | true | 2018-11-26T12:46:16.247Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to change the title in an Electron Notification?<p>Now I'm making windows app by using ElectronJS. After packaging app, I tested app.</p>
<p>But the tit... |
53,381,335 | Purge local user form Azure<p>Couldn't find exactly what I was looking for in the forum...</p>
<p>I was testing AD Sync with a virtual domain controller. I have since deleted the virtual domain controller and need to remove the users from Azure AD. How is that done? "Delete Users" is not allowable when the user is fro... | <blockquote>
<p>"Delete Users" is not allowable when the user is from a local AD</p>
</blockquote>
<p>For the on-premise synced objects, you could not manage or remove from the Azure AD. </p>
<p>If you want to remove the synced users and turn off the AD Sync, you could follow this way:</p>
<ol>
<li>Install the <a ... | Purge local user form Azure | azure|active-directory | -1 | 56 | 2 | 53,389,955 | 53,389,955 | 2 | true | 2018-11-19T19:25:40.167Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Purge local user form Azure<p>Couldn't find exactly what I was looking for in the forum...</p>
<p>I was testing AD Sync with a virtual domain controller. I ... |
53,355,865 | Permission displayName with brackets in ABP<p>I'm using AspNet Boilerplate and I don't know why when add new permission in querys the displayName comes with brackets.</p>
<p><a href="https://i.stack.imgur.com/iSVbg.png" rel="nofollow noreferrer">Problem image here</a> </p>
<p><a href="https://i.stack.imgur.com/KZDz7... | <p>You have missed the translation in your localization file, as mentioned on <a href="https://aspnetboilerplate.com/Pages/Documents/Localization#server-side" rel="nofollow noreferrer">https://aspnetboilerplate.com/Pages/Documents/Localization#server-side</a>:</p>
<blockquote>
<p>If a given string is not defined any... | Permission displayName with brackets in ABP | c#|aspnetboilerplate | -1 | 315 | 1 | 53,355,921 | 53,355,921 | 3 | true | 2018-11-17T21:48:15.557Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Permission displayName with brackets in ABP<p>I'm using AspNet Boilerplate and I don't know why when add new permission in querys the displayName comes with ... |
53,371,858 | Attempt to invoke virtual method 'java.lang.String com.register.register.file.User.getName()' on a null object reference<p><img src="https://i.stack.imgur.com/KPnyv.jpg" alt="enter image description here"></p>
<p>Can not able to retrieve data from firebase database</p>
<p>I am trying to retrieve username from firebas... | <p>try this</p>
<pre><code> String name;
String Uid;
FirebaseUser uid = FirebaseAuth.getInstance().getCurrentUser();
Uid = uid.getUid();
mDatabase.child("Users").child(Uid).addValueEventListener(new ValueEventListener() {
@Override
public void onDataChange... | Attempt to invoke virtual method 'java.lang.String com.register.register.file.User.getName()' on a null object reference | android|nullpointerexception | -1 | 1,086 | 1 | 53,372,147 | 53,372,147 | 0 | true | 2018-11-19T09:41:23.900Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Attempt to invoke virtual method 'java.lang.String com.register.register.file.User.getName()' on a null object reference<p><img src="https://i.stack.imgur.co... |
53,381,665 | Why I Can't Run React Native Project (Transform Error)<p>I can't run this project.</p>
<pre><code>import React, { Component } from 'react';
import { View, Text, ImageBackground, Dimensions} from 'react-native';
const {width, height} = Dimensions.get('window');
class Form extends Component {
render() {
return... | <p>First, are you really talking about a ReactJS application in the web browser rather than ReactNative on a Mobile Device? This error often deals with Babel.</p>
<p>Also, I wouldn't name your class Form. Be more specific. What type of form?</p>
<p>Delete your node_modules folder.</p>
<p>Then execute these on your... | Why I Can't Run React Native Project (Transform Error) | reactjs|react-native | -1 | 66 | 1 | 53,381,723 | 53,381,723 | 0 | true | 2018-11-19T19:49:29.530Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why I Can't Run React Native Project (Transform Error)<p>I can't run this project.</p>
<pre><code>import React, { Component } from 'react';
import { View, ... |
53,402,422 | Vertical Scrollbar is stuck to the page<p>On most common browsers and any websites the "scrollbar" vanishes on idle or when you are not scrolling. However, on my website it seems to be stuck to the page. I've been stuck on this problem for a couple days and just can't seem to figure it out.</p>
<p>I've tried the most ... | <p>You have the scrollbar styled with CSS in shopping_5.css line 3281. So simply remove the following styles:</p>
<pre><code>::-webkit-scrollbar {
width: 10px;
height: 10px; }
::-webkit-scrollbar-thumb {
background: 0 0;
background-color: rgba(77, 82, 86, 0.25);
border: 2px solid transparent;
border-radiu... | Vertical Scrollbar is stuck to the page | html|css|scrollbar|overflow | -1 | 1,585 | 2 | 53,402,489 | 53,402,489 | 0 | true | 2018-11-20T22:16:43.493Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Vertical Scrollbar is stuck to the page<p>On most common browsers and any websites the "scrollbar" vanishes on idle or when you are not scrolling. However, o... |
53,419,116 | Question about high level architecture required to process and visualize fitness app data (From Apple Health for example) using google cloud services?<p>I'm working on a project where I am tasked to use google cloud services to process and visualize fitness data. For example, I have exported some apple health data from... | <p>This question is currently off-topics by the rule of <a href="https://stackoverflow.com/help/on-topic">StackOverflow</a>, as it does not contain any problems to resolve. See point 4-5.</p>
<p>As a high-level advice, I do not see why it should not be possible based on the services you mentioned but you would need to... | Question about high level architecture required to process and visualize fitness app data (From Apple Health for example) using google cloud services? | google-cloud-platform | -1 | 63 | 1 | 53,422,580 | 53,422,580 | 0 | true | 2018-11-21T19:17:22.883Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Question about high level architecture required to process and visualize fitness app data (From Apple Health for example) using google cloud services?<p>I'm ... |
53,445,510 | VBA Get one or more links from web (from cells)<p>I need this for my job. Someone wrote us a macro. This macro contains a module that take links from cells and download the files.
However. Problem is that it must be 2 rows or more that contain links.
This is nonsense for me/us as we often just download one link/file ... | <p>Hard to say without knowing/seeing the layout of the sheet.</p>
<p>I'll guess/assume that row 1 of the <code>Links</code> worksheet contains headers, and that the data itself (that you want to loop through) begins from row 2.</p>
<pre><code>Option Explicit
Sub DownloadFilefromWeb()
Dim strSavePath As String
... | VBA Get one or more links from web (from cells) | excel|vba | -1 | 62 | 2 | 53,446,488 | 53,446,488 | 0 | true | 2018-11-23T11:05:26.107Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
VBA Get one or more links from web (from cells)<p>I need this for my job. Someone wrote us a macro. This macro contains a module that take links from cells a... |
53,457,207 | What does the command String imageName( "../data/HappyFish.jpg" ); do?<p>I am a total beginner in OpenCV. I was learning a program to load and display an image where the below statement is used.
String imageName( "../data/HappyFish.jpg" ); //by default
what does this statement do? </p> | <p>This statement is the folder directory of the image file HappyFish.jpg in the OpenCV example Load and Display an Image. Simply it is used with imread to indicate the location where our image file is located. </p>
<pre><code> image = imread( imageName, IMREAD_COLOR ); // Read the file
</code></pre> | What does the command String imageName( "../data/HappyFish.jpg" ); do? | opencv | -1 | 74 | 1 | 53,458,080 | 53,458,080 | 0 | true | 2018-11-24T10:26:58.053Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
What does the command String imageName( "../data/HappyFish.jpg" ); do?<p>I am a total beginner in OpenCV. I was learning a program to load and display an ima... |
53,462,915 | Regex to Match Multiple Matches in Same Line With Optional Text Between<p>I'm fairy novice at RegEx, but I've written a regular expression that handles most of my use cases:</p>
<p><a href="https://regex101.com/r/H53QK1/2" rel="nofollow noreferrer"><code>(\d*\.?\-?\d+)\s*\|\s*\[Link\]\(*https:\/\/redd\.it\/(\w+)\/*</c... | <p>It looks like you should make the <code>[Link]</code> part optional, and some of the delimiting characters:</p>
<p><a href="https://regex101.com/r/H53QK1/4" rel="nofollow noreferrer"><code>(\d+(?:[.-]\d+)?)[|\]\s]*(?:\[Link\]\()?https:\/\/redd\.it\/(\w+)</code></a></p> | Regex to Match Multiple Matches in Same Line With Optional Text Between | regex | -1 | 36 | 2 | 53,463,216 | 53,463,216 | 0 | true | 2018-11-24T22:29:30.183Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Regex to Match Multiple Matches in Same Line With Optional Text Between<p>I'm fairy novice at RegEx, but I've written a regular expression that handles most ... |
53,360,599 | Divide a csv file into four different files<p>I have a dataset <code>dataset.csv</code> and an array <code>v</code>, which have the same number of rows. An example of dataset:</p>
<pre><code>1 1 1 2 3
2 2 1 2 3
3 1 1 1 1
4 2 2 2 1
5 2 2 3 2
6 1 2 3 2
7 2 1 2 2
8 ... | <p>Use <code>split</code></p>
<pre><code>out <- split(df1, v)
out
#$`1`
# V1 V2 V3 V4 V5
#1 1 1 1 2 3
#6 6 1 2 3 2
#8 8 1 1 3 2
#$`2`
# V1 V2 V3 V4 V5
#3 3 1 1 1 1
#7 7 2 1 2 2
#$`3`
# V1 V2 V3 V4 V5
#4 4 2 2 2 1
#5 5 2 2 3 2
#$`4`
# V1 V2 V3 V4 V5
#2 2 2 1 2 3
#9 9 ... | Divide a csv file into four different files | r|csv | -1 | 31 | 1 | 53,360,680 | 53,360,680 | 1 | true | 2018-11-18T11:57:17.103Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Divide a csv file into four different files<p>I have a dataset <code>dataset.csv</code> and an array <code>v</code>, which have the same number of rows. An e... |
53,367,998 | change levels of column names of a matrix for plotting heatmap<p>I have my matrix and I'm ready to plot a heatmap using the <code>pheatmap</code> package in R.</p>
<p>My matrix is like:</p>
<pre><code>Name A B C
Apple 1 2 3
Banana 4 5 6
Pear 7 8 9
</code></pre>
<p>If I don't cluster the column, the heatmap will orde... | <p>Just re-order the columns of your matrix manually.</p>
<pre><code>mat <- as.matrix(data.frame(df[, -1], row.names = df[, 1]))
library(pheatmap)
pheatmap(mat[, c("B", "C", "A")], cluster_rows = F, cluster_cols = F)
</code></pre>
<p><a href="https://i.stack.imgur.com/QXyW1.png" rel="nofollow noreferrer"><img src... | change levels of column names of a matrix for plotting heatmap | r|heatmap|levels|columnname|pheatmap | -1 | 773 | 1 | 53,368,333 | 53,368,333 | 1 | true | 2018-11-19T03:39:11.437Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
change levels of column names of a matrix for plotting heatmap<p>I have my matrix and I'm ready to plot a heatmap using the <code>pheatmap</code> package in ... |
53,373,356 | Clicking a Button if a text field contains "\r" / carriage return<p>i am absolutely new to Android development, i have found one example i am learning from.</p>
<p>i want to perform a Button Click or in this Case: <code>onClickDone</code> when a <code>\r</code> / carriage return was in the inputTitle Textbox.</p>
<p... | <p>I think you might be looking for a TextWatcher. You can assign it to an EditText:</p>
<pre><code>inputTitle.addTextChangedListener(new TextWatcher() {
@Override
public void beforeTextChanged(CharSequence s, int start, int count, int after) {
}
@Override
public void onTextCh... | Clicking a Button if a text field contains "\r" / carriage return | android|button|text|return|contains | -1 | 58 | 2 | 53,374,124 | 53,374,124 | 1 | true | 2018-11-19T11:10:29.823Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Clicking a Button if a text field contains "\r" / carriage return<p>i am absolutely new to Android development, i have found one example i am learning from.<... |
53,444,797 | Reference error with module reveal pattern<p>Below is a sample code using js module reveal pattern</p>
<pre><code>let appDashBoardFunctions = (()=> {
let openModal = ()=> {
document.getElementById('addMemberPopup').classList.add('open');
};
let closeModal = ()=> {
document.get... | <p>When you assign a <em>string</em> to <code>onclick</code> (whether in Javascript or in an HTML attribute), the interpreter only looks at the function name <em>on click</em>, essentially as an <code>eval</code> string - any variable inside an <code>onclick</code> string has to be <em>global</em> (assigned to <code>wi... | Reference error with module reveal pattern | javascript|html | -1 | 29 | 1 | 53,444,847 | 53,444,847 | 1 | true | 2018-11-23T10:20:08.290Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Reference error with module reveal pattern<p>Below is a sample code using js module reveal pattern</p>
<pre><code>let appDashBoardFunctions = (()=> {
... |
53,467,599 | flexbox justify-content multiple tags underneath eachother<p>I have a <code>div</code> with a <code>h1</code> and <code>h2</code> tag in it, my goal is to center them horizontally and vertically I am using flexbox but this is how my code acts</p>
<pre><code> --------------
| |
| h1h2 |
| ... | <p>Give <code>flex-direction: column;</code>. As by default, the flex layout is direction is <code>row</code></p>
<pre><code>.announcement {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
</code></pre> | flexbox justify-content multiple tags underneath eachother | html|css|flexbox | -1 | 54 | 1 | 53,467,628 | 53,467,628 | 1 | true | 2018-11-25T12:49:37.340Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
flexbox justify-content multiple tags underneath eachother<p>I have a <code>div</code> with a <code>h1</code> and <code>h2</code> tag in it, my goal is to ce... |
53,494,525 | Value showing empty in browser , but its available in Database<p>Once we click on Download button, we are trying to download complete order details in pdf.... here <strong>100452121</strong> is orderid, <strong>xpress</strong> is shipping name & <strong>14104918100111</strong> is tracking id....</p>
<p>we set cond... | <p>In file xpressdownload.php you defined variable $orderid incorrectly.</p>
<pre><code>if(isset($_GET['orderId']) && $_GET['orderId']!='')
{
$orderid=$_GET['orderId'];
}
else
{
echo 2;
}
$orderid='';
</code></pre>
<p>First, you are checking whether $_GET['orderId'] exists and if yes, you give the val... | Value showing empty in browser , but its available in Database | php | -1 | 51 | 1 | 53,495,064 | 53,495,064 | 1 | true | 2018-11-27T07:16:32.460Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Value showing empty in browser , but its available in Database<p>Once we click on Download button, we are trying to download complete order details in pdf...... |
53,360,731 | Issue with Laravel Lazy Eager Loading<p>I have issue with taking data from database based on hasMany relations and send it to api in Larave.
Below code, Laravel do not give me product of Customer where Customer id = $id. I don't know why, I can't send $id next to $query. If I write number in '' I have good answear but ... | <p>If you want to use a variable inside the <code>with</code> method, you have to type <code>use($id)</code> after the <code>function($query)</code> like this code below.</p>
<pre><code>$products = Product::where('name','like','%'.$request->q.'%')
->orWhere('symbol', 'like', '%'.$request->q.'%')
->... | Issue with Laravel Lazy Eager Loading | laravel|api|eloquent | -1 | 64 | 1 | 53,360,902 | 53,360,902 | 2 | true | 2018-11-18T12:13:44.460Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Issue with Laravel Lazy Eager Loading<p>I have issue with taking data from database based on hasMany relations and send it to api in Larave.
Below code, Lara... |
53,481,063 | Firebase how to stop Listener<p>Can I stop datasnapshot when my global boolean is true without waiting ending execution of listener and without limitToFirst. I have some verification in event listener because I need to verify some data and I need make ending in listener</p> | <p>You can remove the reference's listener with <code>removeEventListener</code>. </p>
<p>For example: <code>ref.removeEventListener(listener);</code></p>
<p><code>ref</code> = Reference you initially set the listener on. </p>
<p><code>listener</code> = The listener (e.g. <code>this</code> if called within the liste... | Firebase how to stop Listener | android|firebase|firebase-realtime-database | -1 | 1,545 | 1 | 53,483,822 | 53,483,822 | 3 | true | 2018-11-26T12:23:48.543Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Firebase how to stop Listener<p>Can I stop datasnapshot when my global boolean is true without waiting ending execution of listener and without limitToFirst... |
53,485,153 | Finding specific words in a column<p>I'm trying to use findall function to find 4 specific words in a string in a column of a dataframe.</p>
<pre><code>df = pd.DataFrame({'case':('Case1','Case2','Case3','Case4'),
'text':('good boy', 'bad girl', 'yoghurt', 'good girl yoghurt')})
case text
0 ... | <p>You can use <a href="https://pandas.pydata.org/pandas-docs/stable/generated/pandas.Series.str.findall.html" rel="nofollow noreferrer"><code>str.findall</code></a> with the <code>|</code> regex operator (meaning "or")</p>
<pre><code>df['new_column'] = df.text.str.findall('good|yoghurt')
>>> df
case ... | Finding specific words in a column | python|regex|pandas|findall | -1 | 1,342 | 2 | 53,485,179 | 53,485,179 | 3 | true | 2018-11-26T16:17:30.073Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Finding specific words in a column<p>I'm trying to use findall function to find 4 specific words in a string in a column of a dataframe.</p>
<pre><code>df =... |
53,430,068 | filing in TRUE/FALSE in column of dataframe A based on information in dataframe B<p>I searched for other topics, but didn't find anything which was really matching what I was looking for. </p>
<p>My dataframes:</p>
<p><code>UN_match</code> excerpt:</p>
<pre><code>country country_code emissions sector_code year... | <p>Something like this, with <code>dplyr</code>, maybe:</p>
<pre><code>library(dplyr)
UN_match %>% left_join(ETS_match) %>% # join the data
mutate(smaller1.AA = value < emissions, TRUE, FALSE) %>% # add the true false
select(country, country_code, value, year,... | filing in TRUE/FALSE in column of dataframe A based on information in dataframe B | r|dataframe | -1 | 40 | 3 | 53,430,302 | 53,430,302 | 4 | true | 2018-11-22T11:34:07.183Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
filing in TRUE/FALSE in column of dataframe A based on information in dataframe B<p>I searched for other topics, but didn't find anything which was really ma... |
53,444,788 | promises scope using await and async<pre><code> var accountA;
var accountB;
accounts = async () => {
accountA = await server.loadAccount(Apub)
console.log(accountA)
accountB = await (server.loadAccount(Bpub))
}
accounts()
console.log(accountA);
</code></pre>
<p>... | <p>Although you are using <code>await</code> inside the function you are not waiting till it you get a response while you call <code>accounts</code> which is an async function </p>
<pre><code>var accountA;
var accountB;
accounts = async () => {
accountA = await server.loadAccount(Apub)
console.log(account... | promises scope using await and async | javascript|node.js|async-await|es6-promise | -1 | 537 | 2 | 53,444,870 | 53,444,870 | 4 | true | 2018-11-23T10:19:37.767Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
promises scope using await and async<pre><code> var accountA;
var accountB;
accounts = async () => {
accountA = await server.lo... |
53,399,920 | Response from AWS to variable<p>I am new in shell scripting and I want to write response from amazon event to a variable </p>
<p>I've tried this </p>
<pre><code>response=`aws logs put-log-events --log-group-name vpn --log-stream-name 111 --log-events file://$FILE_name$d.json --sequence-token 4959018045246159838711766... | <p>Replace your last "`"</p>
<p>with " 2>&1`" (with a leading white space) to get stdout and stderr to your variable.</p> | Response from AWS to variable | bash|shell|amazon-web-services|ubuntu | -1 | 59 | 1 | 53,400,124 | 53,400,124 | 0 | true | 2018-11-20T19:09:21.047Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Response from AWS to variable<p>I am new in shell scripting and I want to write response from amazon event to a variable </p>
<p>I've tried this </p>
<pre>... |
53,403,631 | HttpsURLConnection 400 Bad Request error occured<p>I need to convert below Swift code to Java.
Swift code works.
But, Java code is not worked.</p>
<p>HttpsURLConnection has failed.</p>
<p>responseCode: 400 (HttpsURLConnection.getResponseCode())</p>
<p>message2: Bad Request (HttpsURLConnection.getResponseMessage())</... | <p>Your JSON request body is incorrect. It produce <code>{"to": zxc}</code> which is an invalid json. Change it to</p>
<pre><code>String str = "{\"to\": \"" + token + "\", \"notification\": { \"body\": \"" +
message + "\", \"badge\": \"1\"}}";
</code></pre> | HttpsURLConnection 400 Bad Request error occured | java|android|ios|swift|firebase | -1 | 268 | 1 | 53,404,734 | 53,404,734 | 0 | true | 2018-11-21T00:27:21.830Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
HttpsURLConnection 400 Bad Request error occured<p>I need to convert below Swift code to Java.
Swift code works.
But, Java code is not worked.</p>
<p>HttpsU... |
53,465,854 | How can I set a formula to return "X", when 3 conditions are not matching?<p>I'll try to be specific. In the attached reference trix (Google sheet), there are 3 sheets, </p>
<ol>
<li>Login Sheet- where an email address, logs in on a certain date</li>
<li>Schedule- schedule of the email address, for a week</li>
<li>Att... | <p>You can add another condition in your function to check for absence
replace your function from </p>
<pre><code>=Ifs(Vlookup($A2,Roster!$A:$E,4,0)="Leave", "Leave",
Vlookup($A2,Roster!$A:$E,4,0)="Off", "Off",
countifs('Login response'!$D:$D,D$1,'Login response'!$B:$B,$A2,'Login response'!$C:$C,"login")>0,"Present... | How can I set a formula to return "X", when 3 conditions are not matching? | excel|google-sheets|excel-formula|google-sheets-formula | -1 | 29 | 1 | 53,466,104 | 53,466,104 | 0 | true | 2018-11-25T08:32:49.807Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I set a formula to return "X", when 3 conditions are not matching?<p>I'll try to be specific. In the attached reference trix (Google sheet), there ar... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.