Id
int64
34.6M
60.5M
Title
stringlengths
15
150
Body
stringlengths
33
36.7k
Tags
stringlengths
3
112
CreationDate
stringdate
2016-01-01 00:21:59
2020-02-29 17:55:56
Y
stringclasses
3 values
58,700,058
How to create a google map image mask overlay?
<p>I'm trying to create a google map "inside" an shape like in the example bellow. Could you please help me? <a href="https://i.stack.imgur.com/qsGHC.png" rel="nofollow noreferrer">Click to see Image</a></p>
<javascript><google-maps>
2019-11-04 19:43:36
LQ_CLOSE
58,701,583
How can i remove duplicate words unseparated in a python string?
string1 = "calvin kleinklein design dress" How can I remove the second duplicate "klein"? The result should look like string2 = "calvin klein design dress"
<python>
2019-11-04 21:50:06
LQ_EDIT
58,702,602
how I filter the input result from some words like kill, gun using simple python if statement
<p>I want to filter the x result to know which category would be appended to </p> <pre><code>def bot(): kids = [] adults = [] index = 0 x = input("enter movie name ") for side in x: if x == "gun" or x == "kill": kids.append(x) else: adults.append(x) ...
<python>
2019-11-04 23:45:10
LQ_CLOSE
58,702,616
Python code to cluster geographical locations(long/lat) which are within 30 min of commute to each other?
I am trying to cluster geographical locations(long / lat) where the distance between data points in a cluster should be less than or equal to 30 min from each other. I can calculate duration between two points using google map api. How can I cluster those sites which are within 30 minutes commute from each other ?
<python><api><maps><cluster-analysis><duration>
2019-11-04 23:46:30
LQ_EDIT
58,704,972
Access already opened Excel and Internet Explorer to get data
<p>there I'm trying to make a Robotic Process Automation(called RPA) using python. There are two windows; one is excel and the other is web.</p> <p>The Procedure is:</p> <ol> <li>Both excel and web must be opened before run the code(It never be changed, there are no alternatives)</li> <li>the data on the web is copie...
<python><excel><selenium><internet-explorer><openpyxl>
2019-11-05 05:24:42
LQ_CLOSE
58,707,505
Javascript - Show alert when specific radio button is checked on ID
<p>I need to show a alert when someone clicks on a radio button with a specific ID.</p> <p>This is the radio button:</p> <pre><code>&lt;input name="shipping_method" type="radio" class="validate-one-required-by-name" value="kerst_shipping_standard" id="s_method_kerst_shipping_standard"&gt; </code></pre> <p>And when s...
<javascript><alert>
2019-11-05 08:45:35
LQ_CLOSE
58,708,085
I am using fat arrow function in php
$mul2 = fn($x) => $x * 2; $mul2(3); I am getting an error at => Error- Unexpected => How do I resolve the error.
<php>
2019-11-05 09:20:30
LQ_EDIT
58,708,337
How to rename a text file using an integer variable in Python?
<p>I want to rename a file xyz.txt to 1.txt. Consider 1 as an integer variable in 1.txt.</p> <p>I have tried os.rename(old name, new name). But in the new name, I want to pass my integer variable + ".txt"</p>
<python>
2019-11-05 09:33:56
LQ_CLOSE
58,709,546
In python How can i return all tuples in liste?
so this is my list: list_tuple = [(x1,x2,x3)(x4,x5,x6)(x7,x8,x9)] and i'm want to return only all tuple so How can i retun all tuples this is what i try: for i in list_tuple: print(i) this is what he did x1,x2,x3 the result expected is (x1,x2,x2) (x4,x5,x6) (x7,x8,x9)
<python><list><tuples>
2019-11-05 10:37:53
LQ_EDIT
58,709,961
position: sticky and hurribble problem with edge browser
I use bootstrap 4 and .sticky-top class for stick div after scrolling. But the problem is in edge browser hide div and and unvisiable content of div. it's no matter work true .sticky-top class in edge just show this content and don't hide it.
<html><css><microsoft-edge>
2019-11-05 11:01:47
LQ_EDIT
58,713,265
Can you please help me find a problem in my code?
Im trying to do homework for my IT classes and we just started programming a bit. We have 2 classes, Main and Okej. It is just a simple code where the getters and setters have to check if the user input the right number. But the IF statements just do not work. Can you please help? package okej; import java.util.Sca...
<java><json>
2019-11-05 14:16:58
LQ_EDIT
58,714,366
How can I use a for loop inside an if condition? The condition is - If user input a value which is less than 10 then a list of 1-10 will be print
<p>The condition is - If user input a value which is less than 10 then a list of 1-10 will be print. </p> <p>I am able to take the input but the condition and loop is not working.</p>
<java><loops><if-statement>
2019-11-05 15:17:34
LQ_CLOSE
58,716,011
Ruby Data Types
<p>Which two of these three expressions are equal? Why?</p> <pre class="lang-rb prettyprint-override"><code>{ "city" =&gt; "Miami", "state" =&gt; "Florida" } { :city =&gt; "Miami", :state =&gt; "Florida" } { city: "Miami", state: "Florida" } </code></pre>
<ruby>
2019-11-05 16:54:27
LQ_CLOSE
58,718,261
VBA Excel Error 424 search textbox to display listbox, error display listbox header
Private Sub SearchCommand_Click() Dim i As Long Sheet1.Activate Me.ResultListbox.AddItem For a = 1 To 5 **Me.ResultListbox.List(0, a - 1) = Sheet1.Cells(1, a)** Next a Me.ResultListbox.Selected(0) = True End sub [enter image description here][1] [1]: https://i.stack.imgur.com/sZatD.png
<excel><vba>
2019-11-05 19:35:02
LQ_EDIT
58,719,352
Is there a "JOIN" query to show the first name and last name of the employees who do not work in the same locations with their manager
<p>I am stuck on a query to find employees who do not work at the same location as their manager based on the attached schema.</p> <p><a href="https://i.stack.imgur.com/tfYWm.png" rel="nofollow noreferrer">DB schema</a></p>
<sql>
2019-11-05 20:56:58
LQ_CLOSE
58,720,019
How do you end a method from code in another method?
<p>How do I end a method with logic in another method? It seems return only works in the method it is in.</p> <pre><code>private void BeAmazing (int number) { HandleNumber(number); Debug.Log("number is 3 or less"); } private void HandleNumber(int number) { if (number &gt; 3) { return; } } </code></p...
<c#>
2019-11-05 21:51:14
LQ_CLOSE
58,720,659
how to retrieving data from mysql and output json php?
<p>i Have this code to retrieving data from mysql and output json from php</p> <pre><code>&lt;?php header("Access-Control-Allow-Origin: *"); header('Content-Type: text/html; charset=utf-8'); include 'system/config.php'; $db=mysql_connect($DB_HOST, $DB_USER, $DB_PASS) or die('Could not connect'); mysql_select_db($DB_NA...
<php><mysql><json><mysqli>
2019-11-05 22:52:32
LQ_CLOSE
58,720,880
How to fix "Use Of Unassigned local variable in citra" when citra is defined? (with Object Oreinted Programming, bools, and switch statements)
<p>Recently I was attempting to make an advanced choose your own adventure game to practice my fresh new C# skills but I have came across a powerful error that is preventing me from continuing my project."Use Of Unassigned local variable in citra" on line 58 inside the story_Confirmation method is an error I came acros...
<c#>
2019-11-05 23:16:55
LQ_CLOSE
58,726,258
How to convet dict with object as value to dataframe?
I have a Dict with object as value and I want to create from it a DF (ignore the Nans) list_of_actors[key] = value key -> string value -> Actor() ``` class Actor: def __init__(self,title,link): self.link = link self.title = title self.count = 1 self.yearOfBirth ="NaN" self.co...
<python>
2019-11-06 08:52:38
LQ_EDIT
58,727,954
jquery prepend item once per div
I have tried searching and can only find half an answer for my issue. I have a dynamic select function and when a click is performed I want a prepend to happen but only once per div it within. ``` var selGroup = $(".selected-results > .results-group"); if (!$('.selected-results > .results-group > ...
<jquery><prepend>
2019-11-06 10:25:11
LQ_EDIT
58,731,184
ERRO[0043] failed to dial gRPC: unable to upgrade to h2c, received 501
<p>When I tried building my Dockerfile with <code>docker build -t myimage1 .</code> today I got this error:</p> <pre><code>ERRO[0043] failed to dial gRPC: unable to upgrade to h2c, received 501 context canceled </code></pre> <p>I have successfully built this image before although it was a couple of weeks ago. I am no...
<docker>
2019-11-06 13:22:39
HQ
58,731,802
Alt+D shortcut key unable to overriade in edge
I am unable to override the alt+d key in javascript edge browser remaining all browsers working
<javascript><jquery><microsoft-edge>
2019-11-06 13:56:27
LQ_EDIT
58,732,021
Symfony show newest posts except currently opened
<p>I have a template which renders newest posts. If I open one post from them, it is still showing it. I either need to get id of the currently opened post from the url or somehow filter the post in controller or with query builder. I won't provide any code for now because I don't know what you'll need to help me. Plea...
<symfony><url><get><unique><id>
2019-11-06 14:10:16
LQ_CLOSE
58,732,081
What CIDR address do not overlaps with 10.0.0.0/16?
<p>I ahve created aws VPC and try to create additional CIDR. I have always got overlaps error whever values I tried <code>/8</code>, <code>/0</code>, <code>/16</code>, <code>/32</code>:</p> <p><a href="https://i.stack.imgur.com/UU9aV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UU9aV.png" alt="en...
<amazon-web-services><networking><amazon-vpc><cidr>
2019-11-06 14:13:17
LQ_CLOSE
58,732,836
File Saveas xls to xlsx
I have an excel file in the **C** disk named **C:\Book1.xls** How can I saveas **C:\Book1.xls** to **C:\Book2.xlsx** ? Is it possible to use **System.IO.File.SaveAs** class?
<vb.net>
2019-11-06 14:52:46
LQ_EDIT
58,735,374
How to disable the "did you mean ..." suggestions in gcc?
Besides forced colors by default (which could be turned with `GCC_COLORS=`), newer gccs come with another irritating misfeature: they try to second-guess me, and drown warnings about real problems with "did you mean?" google / artificial stupidity -like spam garbage. Example: ``` $ gcc -Wall -c -o /dev/null -xc - ...
<c><gcc><compiler-warnings>
2019-11-06 17:15:03
LQ_EDIT
58,735,572
Is there a way to realize a function of type ((a -> b) -> b) -> Either a b?
<p>Propositions <code>(P -&gt; Q) -&gt; Q</code> and <code>P \/ Q</code> are equivalent.</p> <p>Is there a way to witness this equivalence in Haskell:</p> <pre><code>from :: Either a b -&gt; ((a -&gt; b) -&gt; b) from x = case x of Left a -&gt; \f -&gt; f a Right b -&gt; \f -&gt; b to :: ((a -&gt; ...
<haskell><logic>
2019-11-06 17:27:34
HQ
58,736,070
How can I implement social network login on Groovy/Grails?
<p>I am trying to implement Google and LinkedIn as well as regular mail login on my grails app.</p> <p>Do you have any recommendations on a plugin or any other particular way to do this?</p> <p>I'm using Grails 3.3.10.</p> <p>Thanks in advance</p>
<authentication><grails><groovy><spring-security><social>
2019-11-06 18:02:39
LQ_CLOSE
58,736,962
Python Flask- datetime.datetime has no attribute datetime
I keep having an issue with the module datetime at this section of the code whenever i run it, it should add the time to the alarm manager from the datetime-local input from the html part. But whenever the text and date are added an error of datetime.datetime is not an attribute of datetime. ``` import os import s...
<python>
2019-11-06 19:05:26
LQ_EDIT
58,737,731
Developing a messenger
<p>So I’m developing a chat messenger app like WhatsApp but I’m trying to decide the best way to get the messages between phones. A lecturer of mine mentioned using a router but I couldn’t understand how that would work. Any ideas ? </p>
<java><server><widget><chat><messenger>
2019-11-06 20:06:01
LQ_CLOSE
58,737,769
<androidx.fragment.app.FragmentContainerView> vs <fragment> as a view for a NavHost
<p>When using <code>androidx.fragment.app.FragmentContainerView</code> as a navHost instead of a regular <code>fragment</code> app is not able to navigate to a destination after orientation change.</p> <p>I get a following error: <code>java.lang.IllegalStateException: no current navigation node</code></p> <p>Is ther...
<android><navigation><android-architecture-components>
2019-11-06 20:09:25
HQ
58,738,756
Using reduce function fror json respone
I have the following JSON: ``` { "meta": { "totalPages": 13 }, "data": [{ "type": "articles", "id": "3", "attributes": { "title": "AAAAA", "body": "BBBB", "created": "2011-06-22T14:56:29.00z", "updated": "2011-06-22T14:56:28.00z" } }], "links": { "self": "http://example.c...
<javascript><ajax>
2019-11-06 21:28:46
LQ_EDIT
58,739,129
How to create reusable button component with vanilla js and sass?
<p>I have to make a reusable button component with vanilla js and scss, but I haven't done it yet. Can somebody explain how could I do it ? I am new at this so I don't know where to look for it.</p> <p>Update: Do I have to use javascript or can I use only HTML and SCSS/CSS for it?</p>
<javascript><html><css><sass><web-component>
2019-11-06 21:59:53
LQ_CLOSE
58,742,153
How can I get `sed`-like behavior from within python when running windows?
The beginnings of a solution are shown below. If someone would complete it and get it working, I would be eternally grateful. import subprocess import os import sys def sed(stryng, istream=None, ostream=None): if sys.platform == "linux": subprocess.run(["sed", stryng]...
<python><python-3.x><powershell><sed>
2019-11-07 04:50:52
LQ_EDIT
58,742,815
Swift 5: 'substring(to:)' is deprecated
<p>I`m newbie in Swift and I have simple code, that cut string from the end to special characters "$2F" and returned cutted off string:</p> <pre><code> let index2 = favUrlString.range(of: "%2F", options: .backwards)?.lowerBound favUrlString = index2.map(favUrlString.substring(to:))! </code></pre> <p>How I hav...
<swift><swift4><swift5>
2019-11-07 06:03:23
LQ_CLOSE
58,743,333
React app stuck on "Starting the development server"
<p>I have a react app created by create-react-app. After running npm start (the start script is present in package.json as "start": "react-scripts start") the console says Starting the development server as usual and fires up the browser. But after this both the console and the browser do absolutely nothing indefinitel...
<reactjs><npm><create-react-app><react-scripts>
2019-11-07 06:48:54
HQ
58,744,679
Library to build animation like slack-demo
<p>I want to build an animation like the one in <a href="https://slackdemo.com/?vst=.1wl4q6p32ubd8c0zflxmi0kfn#Team" rel="nofollow noreferrer">slack-demo</a> page. Basically I am trying to demonstrate a feature of my Application with animation. I can do so using Vanilla JS and CSS. But it will be a lot of code and diff...
<javascript><html>
2019-11-07 08:28:55
LQ_CLOSE
58,746,135
How do I fix this overflow problem without setting any height?
<p>I have been working on this interface for few days using bootstrap4 and I cant get this one div to get a scrollbar without setting height in px's. Also a guide toward managing one page design? Following is the link to the HTML code.</p> <p><a href="https://www.codeply.com/p/xm4bUOWFVh" rel="nofollow noreferrer">htt...
<html><css><bootstrap-4>
2019-11-07 09:56:29
LQ_CLOSE
58,746,632
The Drop down component is not shown
i am filtering certain cities into "citiesList" and then mapping them into dropdown component but the filter is done but map part is not excetued. citySearched= (cities,city)=>{ let citiesList= [...cities]; citiesList= citiesList.filter(c => c.name.toLowerCase().includes(city.toLowerCase())...
<reactjs>
2019-11-07 10:23:12
LQ_EDIT
58,747,128
ALGUIN ME PUEDE DECIR EL ERROR AL CREAR EL USUARIO?
CREATE USER PEDRO IDENTIFIED BY USER BDT02 DEFAULT TABLESPACE CURSOS TEMPORARY TABLESPACE CURSOS QUOTA 10M ON CURSOS QUOTA UNLIMITED ON CURSOS
<sql><oracle>
2019-11-07 10:49:33
LQ_EDIT
58,747,860
typdef ignored on Visual Studio 2017
Really simple, this photo explains the problem, Visual Studio 2017 error: **variable "InputCode" is not a type name** [![enter image description here][1]][1] [1]: https://i.stack.imgur.com/9Ojef.png
<c><visual-studio-2017>
2019-11-07 11:30:35
LQ_EDIT
58,747,894
C# tertiary operator solve
<p>Can any one tell me the meaning of the below C# code</p> <pre><code>true? para1:para2; </code></pre> <p>For example,</p> <pre><code>char x = 'A'; Console.WriteLine(true? x : 0); </code></pre> <p>The console prints 65</p> <p>I do not understand how it works.</p>
<c#>
2019-11-07 11:32:57
LQ_CLOSE
58,748,859
I want to find min/max value within for loop
<p>How to find the min / max value using for-loop. I searched this but did not find it.I want to some help.</p>
<java><for-loop>
2019-11-07 12:32:23
LQ_CLOSE
58,749,281
What is the difference betwwen the older alloctaor::construct and the new one and explicit constructor?
<p>As I know <code>std::allocator&lt;T&gt;::construct</code> takes only two parameters on older version of C++; the first is a pointer to raw, un-constructed memory in which we want to construct an object of type <code>T</code> and the second one is a value of element type to initialize that object. So the copy-constru...
<c++><allocator>
2019-11-07 12:58:04
HQ
58,749,505
what is the difference between jax-rpc and jax-ws web services?
<p>what is the difference between jax-rpc and jax-ws web services?</p> <p>How to migrate legacy code using jax-rpc to jax-ws?</p>
<java><jax-ws><jax-rpc>
2019-11-07 13:10:58
LQ_CLOSE
58,749,788
Hyperledger fabric Rich Query: How to count number of record filtered by selector?
I'm making smart contract with Golang and I want to use Rich Query to get total count of records from CouchDB filtered by some selector like: `{\"selector\":{\"doc_type\": \"person\"}}` It is similar to: `select count(*) from tb where ...` as SQL query but how to do it with CouchDB? Can somebody help me p...
<couchdb><hyperledger-fabric><hyperledger-chaincode>
2019-11-07 13:28:07
LQ_EDIT
58,751,275
How to use new c# 8.0 features in Razor views
<p>I've updated my ASP.NET Mvc 5 web application to use the new c# 8.0 features through Visual Studio 2019 and everything works fine until I try to use these new features inside a Razor view.</p> <p>For example, if I try to use the new switch expression:</p> <pre class="lang-cs prettyprint-override"><code>@{ View...
<c#><asp.net-mvc><razor>
2019-11-07 14:49:12
HQ
58,752,047
How to reverse value of string array?
<p>Let's say I have this array :</p> <pre><code>fruits: string[] = ['banana', 'strawberry', 'kiwi', 'apple']; </code></pre> <p>How can I do to have :</p> <pre><code>fruits = ['ananab', 'yrrebwarts', 'iwki', 'elppa']; </code></pre>
<javascript><angular><typescript>
2019-11-07 15:31:50
LQ_CLOSE
58,754,825
How to stop the loop when the same values appear in the list in Python?
[enter image description here][1] [1]: https://i.stack.imgur.com/RmOKX.png Above my task. I have to stop the loop when the same items appear in the list then sum them. def squareA(a,b): res = [] z = 0 while z!= 3: res.insert(0,(a + z)**2...
<python><python-3.x><list><math><while-loop>
2019-11-07 18:19:02
LQ_EDIT
58,756,840
How to you write this s = ( (n % 2 ) == 0 ? "0" : "1") +s; as an if-else statement?
<p>I have this method in java:</p> <pre><code>public static string intToBinary(int n) { string s = ""; while (n &gt; 0) { s = ( (n % 2 ) == 0 ? "0" : "1") +s; n = n / 2; } return s; } </code></pre> <p>I'd like to write it without the question mark. I tried this: </p> <pre><code>p...
<java>
2019-11-07 21:00:11
LQ_CLOSE
58,756,860
Update MySQL root password - Ubuntu
<p>I want to update my MySQL password from <code>I9O*Kez</code> ---> <code>SO123*</code></p> <p>I perform these </p> <pre><code>mysql -u root -pI9O*Kez service mysql stop mysqld_safe --skip-grant-tables &amp; mysql -uroot use mysql; delete from user where User='root'; CREATE USER 'root'@'%' IDENTIFIED BY 'SO123*...
<mysql><linux><ubuntu><mysql-error-1064>
2019-11-07 21:01:06
LQ_CLOSE
58,757,075
how to get the json response back in the front end that I am sending from my backend?
I am sending this from the backend. ``` return res.status(404).json({ message: "User does not exist" }); ``` and handling the error on the frontend within the catch of my axios, but when I log the 'err' I get a network error rather than the message. How do I get the message? ``` .catch(err => { ...
<javascript><node.js><reactjs><axios>
2019-11-07 21:20:58
LQ_EDIT
58,757,558
Xcode 11 XCUITest Failed to get matching snapshots: Error getting main window kAXErrorServerNotFound
<p>After building my app in Xcode 11 and running my suite of XCUITests I am getting many random failures with the following. </p> <p>Failed to get matching snapshots: Error getting main window kAXErrorServerNotFound</p> <p>No matter how long I increase timeouts the issues pop up intermittently. It seems to be having ...
<ios><xcode><xctest><xcode11><xcuitest>
2019-11-07 22:05:35
HQ
58,761,528
3 decimal precision in Java
<pre><code> Float x = 4; Float answer = 4/16; </code></pre> <p>The answer for this is <code>0.25</code>, but I want to display the answer upto <strong>3 decimal places</strong>, like <code>0.250</code>.</p> <p>How to achieve that? Please help?</p>
<java>
2019-11-08 06:30:47
LQ_CLOSE
58,761,696
How To Setup Contact Form in Wordpress
I am new to WordPress and PHP. I am creating website and now i want to setup the contact form in it. I just want to set only functionality of contact form...i create a form using bootstrap which i don't want to change it. it is a requirements! So i want to get your help in like when the user fill the contact-for...
<php><wordpress><smtp><contact-form>
2019-11-08 06:44:55
LQ_EDIT
58,763,200
how to switch values between integers?
<p>So I need to switch between A and B without using another integer.</p> <p>I was able to do this easily with a third integer (tmp). Is there any way to do this without it?</p> <pre><code>int a = 53, b = 12, tmp = 0; tmp = a; a = b; b = tmp; </code></pre>
<c>
2019-11-08 08:48:25
LQ_CLOSE
58,763,267
Why doesn't this code work ??<!DOCTYPE html> <html> <head> <base target="_top"> </head> <body> Hello, World! </body> </html>
Does not perform this operation. When you run the code, the program outputs a blank page, and should display Hello, World !. Please correct the error!
<html>
2019-11-08 08:52:34
LQ_EDIT
58,764,673
Can You explain how it works?
It would be awesome if someone could give me a proper explanation of the code :) Code is working and I like it, however as I am learning Java, need to understand every bit of it. Thanks! Checked StringBuilder() - seems fine, However part inside the loop is not quite clear. public class SquareDigit { ...
<java><math><stringbuilder>
2019-11-08 10:21:51
LQ_EDIT
58,765,445
How can I run a c++ script in debug in visual studio code?
<p>I have to run a c++ script in debug on Visual Studio Code, but I'm not able to do it. It says me that It is not able to find the file raise.c</p> <p>Unable to open 'raise.c': Unable to read file (Error: File not found (/build/glibc-B9XfQf/glibc-2.28/sysdeps/unix/sysv/linux/raise.c)).</p> <p>What is the problem?</p...
<c++><debugging><raise>
2019-11-08 11:11:17
LQ_CLOSE
58,766,245
When to use GO sync.Mutex with net/http and gorilla/mux?
As far as I know, the "net/http" package uses goroutines for the handlers. Is it necessary that I lock even a map with sync.Mutex in order to prevent possible bugs in the "nextId" function cause the function could count an old state of the map? Here is my example code: package main import ( ...
<go>
2019-11-08 12:03:32
LQ_EDIT
58,768,189
How do you make dnace moves in roblox studio
I have tryed lots of times to make it work but i just cant do it.
<lua>
2019-11-08 14:12:05
LQ_EDIT
58,768,890
HTML & CSS formatting bug when printing web page
I am attempting to print a web page via Ctrl-P or right-click print so I can save it as a PDF. Up until several minutes ago, this was working flawlessly. I have made some minor sizing edits to the grid I am working with on the page and now when I attempt to print, the web page is displaying some formatting glitches on...
<html><css>
2019-11-08 14:54:17
LQ_EDIT
58,769,580
To import Sass files, you first need to install node-sass
<p>Running create-react-app, I get the error in my create-react-app application:</p> <blockquote> <p>To import Sass files, you first need to install node-sass. Run <code>npm install node-sass</code> or <code>yarn add node-sass</code> inside your workspace.</p> </blockquote> <p>I do have node-sass installed. </p> ...
<node.js><sass><create-react-app><node-sass>
2019-11-08 15:35:16
HQ
58,769,678
Trying to download and install with apt-get with specified directory
<p>I am trying to do <code>sudo apt-get --download-only &lt;package_name&gt; ??target_directory??</code> but i want to specify the download location so that, in future i want to install my pre-downloaded package without internet connection with <code>sudo apt-get --no-download &lt;package_name&gt; ??target_directory??<...
<linux><ubuntu><debian><apt><apt-get>
2019-11-08 15:40:31
LQ_CLOSE
58,771,856
Quill Angular Error: NullInjectorError: No provider for InjectionToken config
<p>I updated all my node modules and when quill updated, all my editors broke in my application. The error "NullInjectorError: No provider for InjectionToken config!" appeared.</p> <p>I Have fixed this problem! Just wanted to share with other ppl who might be in the same boat.</p> <p>You need to add the QuillModule (...
<angular><quill><ngx-quill>
2019-11-08 18:16:27
HQ
58,773,784
Declare URL in Swift
<p>I'm trying to declare a URL variable but it's giving me the error:</p> <p><code>Cannot use instance member 'url' within property initializer; property initializers run before 'self' is available</code></p> <p>I'm trying to create a hard coded data so it's fine to write is inside the array, is there a way to do so?...
<swift>
2019-11-08 21:04:20
LQ_CLOSE
58,773,831
ConcurrentDictionary AddOrUpdate method(C#) throwing Index was outside the bounds of the array
Looks like objects are trying to get added to the HashSet at the same time and throwing this error. Is there any solution for this ? System.IndexOutOfRangeException: Index was outside the bounds of the array. at System.Collections.Generic.HashSet`1.SetCapacity(Int32 newSize, Boolean forceNewHashCodes) at Sys...
<c#><multithreading><hashset><concurrentdictionary>
2019-11-08 21:09:50
LQ_EDIT
58,774,579
Updating multiple MYSQL rows with one submit button
<p>i was trying to updating multiple MYSQL rows with one submit button,</p> <p>before i used to create submit for each row, but since i have a lot of rows now i need to update them all together</p> <p>index.php</p> <pre><code>&lt;?php if (mysqli_num_rows($row){ while($row1= mysqli_fetch_assoc($row){ id&lt;input t...
<php><mysql><loops><form-submit>
2019-11-08 22:34:53
LQ_CLOSE
58,777,256
I want create Object in array java
Shape[] sa = new Shape[10]; for(int i = 0; i < sa.length; i=i+2) { sa[i] = new Circle(); sa[i].setRadius(2); } so i wanted to set some part of the class "shape" to Class "Circle" but it kept giving me errors[enter image description here][1] [1]: https://i.stack.imgur.com/qayot.png
<java><arrays><loops><class><object>
2019-11-09 07:21:38
LQ_EDIT
58,777,299
Boostrap - My table can't read a local json file
i don't know, i can't read some json file ou put a table which read json data (internal or external source) Someone have an idea ? here is my link and script i used <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.6/css/bootstrap.min.css"> <link rel="s...
<javascript><html><bootstrap-4>
2019-11-09 07:30:36
LQ_EDIT
58,779,375
What does the output which I get from printf("%d") mean?
<p>I tried a code today and noticed that printf("%d") still have an output. On my computer I get a output of "1487504216". I would like to know why I gets a output and what the output means. The following is the code I have tried.</p> <pre><code>#include &lt;stdio.h&gt; int main() { printf("%d"); return 0; }...
<c><printf><stdio>
2019-11-09 12:39:58
LQ_CLOSE
58,779,800
get only last record based on ids
<p>I am building chat app and I want to display only last record as per users Like I have sent 1000s message but I have only chatted with 10 people then I need to get the name of 10 people and last message whether they sent me or I sent them at last</p> <p><a href="https://i.stack.imgur.com/Eafex.png" rel="nofollow no...
<php><mysql><database>
2019-11-09 13:36:01
LQ_CLOSE
58,779,906
Why does the expression 'a'>'b' return false in Python?
<p>print('a'>'b') Returns False similar to this print('a'>'A') Returns True</p>
<python><python-3.x>
2019-11-09 13:48:11
LQ_CLOSE
58,780,741
User lacks permission to complete this action. You need to have 'AddPackage'
<p>I get an error:</p> <pre><code>User XXX lacks permission to complete this action. You need to have 'AddPackage' </code></pre> <p>when trying to push a nuget package to Azure DevOps artifacts. I am the administrator This is the stage:</p> <pre><code> - stage: displayName: 'Release' condition: succeeded() ...
<azure-devops><nuget><azure-pipelines><azure-artifacts>
2019-11-09 15:34:45
HQ
58,780,873
How i can call a funcktion without click button ? (visual studio c# 2017)
How i can call a funcktion without click button ? when i opened a form, i want to run a function without click any button. How i can run funcktion ? ``` int sayfa = 1; int kapasite = 20; public Form2() { InitializeComponent(); } ...
<c#><winforms>
2019-11-09 15:48:38
LQ_EDIT
58,781,331
Delete all character in string by sequence solve with javascript
There is a string = "WORLD" now check to maintain the sequence W,O,R,L,D first delete W , then delete O, then delete R, then delete L, last delete D. You can use a delete button and a new word generator button. solve with javascript.
<javascript><string><button>
2019-11-09 16:37:15
LQ_EDIT
58,781,987
What are these errors while connecting to mySQL?
I am trying to make a user registration system using PDO in PHP and I'm unable to connect to the mySQL database. It always says access denied and there is some fatal error as well. I tried resetting mySQL and other things available on the internet but nothing worked. <?php class userClass { /* User Login */ ...
<php><mysql>
2019-11-09 17:54:38
LQ_EDIT
58,785,802
What does directly setting a pointer with a variable means?
<p>PS, I know what a pointer is and how to use one, but confused on one thing. I have already tried searching stackoverflow on this question:</p> <pre><code>int *ptr = 20 //why illegal or seg fault or crash? printf("%i", *ptr) // Seg Fault printf("%i", ptr) // Output -&gt; 20 printf("%p", &amp;ptr) // Returns a valid ...
<c++><c><pointers><data-structures>
2019-11-10 04:45:06
LQ_CLOSE
58,786,268
Why it can work in windows but can't work in Linux?
<p>My code is as follows.</p> <p>When I use Visual Studio to compile , debug and execute, it's right. And when I use 'gcc' to compile , it's also right, but it's wrong when execute in Linux. The memory is wrong when it run.</p> <p>And when print 'szBuf', the wrong is can't access the memory.</p> <p>I want to know wh...
<c><linux>
2019-11-10 06:26:32
LQ_CLOSE
58,786,695
How to address 'OSError: libc not found' raised on Gunicorn exec of Flask app inside Alpine docker container
<p>I'm working on a Flask application based on the Microblog app from Miguel Grinberg's mega-tutorial. Code lives here: <a href="https://github.com/dnilasor/quickgig" rel="noreferrer">https://github.com/dnilasor/quickgig</a> . I have a working docker implementation with a linked MySQL 5.7 container. Today I added an Ad...
<python><docker><sockets><flask><gunicorn>
2019-11-10 07:47:01
HQ
58,787,059
why my python cannot read files on my desktop
I'm new here and in python. There are 2 questions I'd like to ask: 1) I'm reading a .dat file on my desktop into my spider, but it shows No such file or directory: 'C:\\Desktop\\movies.dat', but if I put the file into the default folder, 'C:\\Users\\User\\.spyder-py3\\movies.dat', it can read the file successfully. I...
<python-3.x>
2019-11-10 08:54:54
LQ_EDIT
58,787,269
Gradle duplicate entry error: META-INF/MANIFEST.MF (Or how to delete a file from jar)
<p>I've cloned a github repository because I wanted to study the code, but when I tried to build it in Android Studio, I ran into some trouble. After adding the google maven repository (as prompted by Android Studio) and updating both the Gradle Plugin Version and the Grade Version (to 3.5.2 and to 5.4.1, respectively)...
<android><android-studio><gradle><build.gradle>
2019-11-10 09:21:34
HQ
58,787,325
Caret in sql server
Consider the below query: Select Case when left(‘152rew’,5) not like ‘%[^A-Za-z]%’ then ‘true’ else ‘false’ end How ^ this is working in above sql statement as it is returning false. Can someone help me with this?
<sql><sql-server>
2019-11-10 09:32:07
LQ_EDIT
58,787,362
i am getting an error: local variable 'get_input_args referenced before assignment
def main(): # TODO 0: Measures total program runtime by collecting start time start_time = time() # creates and retrieves command Line Arguments in_arg = get_input_args() # Function that checks command line arguments using in_arg check_command_line_arguments(in_arg) # Creates pet ...
<python-3.x>
2019-11-10 09:37:11
LQ_EDIT
58,789,832
A toast message is displaying on versions lower than Android M?
I have an Android app in production. Everything is working correctly but on Versions lower than Android M, in each activity i'm getting a toast message "not greater than M"? Is there anyone who can help me fixing this? I'm attaching a screenshot![![enter image description here][1]][1] [1]: https://i.stack.imgur....
<android><performance><android-layout><android-intent>
2019-11-10 14:53:45
LQ_EDIT
58,790,537
i wrote this code it all works until it comes to setting the color i dont know what is wrong pleaseee
from swampy.TurtleWorld import * import random world = TurtleWorld() Turtle_1 = Turtle() print('*****Welcome to Sehir Minesweeper*****') print('-----First Turtle-----') Turtle_1 = input('Please type the name of the first Turtle:') print('Turtle 1 is' +' ' + Turtle_1) T1_color = input('Plea...
<python><swampy>
2019-11-10 16:14:57
LQ_EDIT
58,793,066
How to summarize the employees by net revenue and not order date?
8. The sales director would like to reward the employees with net sales over $150,000 for the years 2015 and 2016 combined. The Sales Manager would like the resulting query to display the following columns: Employee ID, Employee Name (First and Last as one field), Total Net Sales per employee. (Both years should be com...
<sql>
2019-11-10 21:25:11
LQ_EDIT
58,794,164
Conemu doesn't work with wsl since windows update
<p>Since I have updated windows, my conemu terminal is giving me the following error each time a session is created: </p> <pre><code>wslbridge error: failed to start backend process note: backend error output: -v: -c: line 0: unexpected EOF while looking for matching `'' -v: -c: line 1: syntax error: unexpected end of...
<conemu><cmder>
2019-11-11 00:19:11
HQ
58,795,343
PHP: Mark as link values inside a string (a textarea string)
<p>I'm developing a wikipedia-like Web application. I want to show articles with the possibllity to link to other articles.</p> <p>The way to do it that I can think of, is to mark manually values as a sign for link, like this: " Hello |world| " ("world" would be the link for an article). later, i'll have to find insid...
<php><string><function>
2019-11-11 03:52:20
LQ_CLOSE
58,795,859
How to make custom text and styling
<p>I male website where user can make website profile. How can user from mywebsite can custom text and styling like make bold, coloring,etc ?</p>
<javascript><css><vue-cli-3>
2019-11-11 05:15:11
LQ_CLOSE
58,796,364
How to Remove Specific div using javascript
<p>can someone please tell me how to remove div element using javascript. I'm on a Shopify theme edit.</p> <p></p> <p>I need to this to be or </p>
<javascript><html><shopify><element>
2019-11-11 06:14:13
LQ_CLOSE
58,796,897
How to detect the presence of a scrollbar in the Dom using JavaScript?
<p>Is there a way to detect presence of scrollbar in the Dom measuring body height and window height in JavaScript? I want the syntax.</p>
<javascript><html><css>
2019-11-11 07:07:15
LQ_CLOSE
58,798,473
Simplify the following method
<p>The following method needs simplification so that lines become relatively small.</p> <pre><code> def rep(m): if m.group(0) == " " or m.group(0) == "_": return "[ _]" elif m.group(0) == "(" or m.group(0) == ")" or m.group(0) == "*" or m.group(0) == "+" or m.group(0) == "=" or m.group(0...
<python><python-3.x><methods>
2019-11-11 09:15:09
LQ_CLOSE
58,798,617
How can I prove wether a char in a string is equal to a spepcific char?
I would like to prove wether the first character in my string is equal to "@". How can I do this? I'm using c# ``` if (string[1] == "<character>") { Console.WriteLine("TRUE"); } ```
<c#><string><if-statement><character>
2019-11-11 09:24:14
LQ_EDIT
58,801,191
VBA Code to copy specific range cells from multiple sheets to one sheet
I am new to VBA Coding hence this question here. I have tried with few samples but didn't work out. I have a master excel workbook in one folder and 100+ child excel workbook in different folder. Every week I need to copy specific range of cells from 100 + child excel work books (sheet name is same for all child boo...
<excel><vba>
2019-11-11 12:17:49
LQ_EDIT
58,801,801
How do i get elements from a file and read them to a list in python
<p>What i am trying to do is read from a file, and insert the content from a file into a list in python 3. the file should look like this:</p> <pre><code>♥A ♣A ♥Q ♠Q </code></pre> <p>and the result i am expecting when i read from the file is that when i print the specific list is that it shows up like this </p> <pr...
<python><python-3.x>
2019-11-11 12:55:06
LQ_CLOSE
58,802,332
Multiple or single API calls?
<p>I'm currently building an application using NodeJS and VueJs.</p> <p>I've build an API end point that gives me all the data I need. For example it could give me</p> <ol> <li>Best Football Team</li> <li>Worst Football Team</li> <li>Team with most goals</li> <li>Team with least goals</li> </ol> <p>Is it better to h...
<javascript><node.js><vue.js><api-design>
2019-11-11 13:28:47
LQ_CLOSE
58,802,767
No “Proceed Anyway” option on NET::ERR_CERT_INVALID in Chrome on MacOS
<p>I try to get my local development in Chrome back running, but Chrome prevents that, with the message that the certificate is invalid. Even though it could not be the date of the certificate, as you can see in the screenshot of it:</p> <p><a href="https://i.stack.imgur.com/EDHew.png" rel="noreferrer"><img src="https...
<macos><google-chrome><ssl><localhost><macos-catalina>
2019-11-11 13:56:07
HQ
58,804,383
Não consigo enviar meu campo de data para o backend, está vindo como nulo! Uso o date-fns
- Tenho o meu frontend em React - Tenho o meu backend em Java - SpringBoot - O formato que meu backend entende é: 2011-10-05T14:48:00.000Z - Para isso, tentei usar o date-fns para enviar correto do front para o back, mas mesmo seguindo a documentação, minha data chega no backend como null e não cadastra. ...
<javascript><reactjs><parsing><date-fns>
2019-11-11 15:36:33
LQ_EDIT
58,805,519
MacOS Catalina UDID Copy for iPhone
<p>How to copy UDID of the iPhone?</p> <p><a href="https://i.stack.imgur.com/w8ZvE.png" rel="noreferrer"><img src="https://i.stack.imgur.com/w8ZvE.png" alt="enter image description here"></a></p> <p>I want to register my iPhone as a tester within the Apple store account. So followed the steps as per the above image.<...
<ios><iphone><macos><app-store-connect><itunes-store>
2019-11-11 16:50:52
HQ