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
59,314,030
How can I store user input in arrays and then print them out?
<p>I am a beginner programmer and I am making a little application for practice.</p> <p>You enter your budget, then you add an expense(name, amount) and it subtracts and tells you your current budget.</p> <p>I want to make it so you can see all of your expenses after each execution.</p> <p>I have tried to make for l...
<java>
2019-12-12 23:14:07
LQ_CLOSE
59,314,229
How to check string values in javascript
<p>I'm trying to compare the value of a string and if the first two values = @@ then call a div</p> <p>This is my code example but doesn't seem to work. Is this the correct approach or am I off mark. Be gentle, I'm new to javascript.</p> <pre><code>&lt;script type = "text/javascript"&gt; var str = "@@this is the line...
<javascript>
2019-12-12 23:41:00
LQ_CLOSE
59,317,463
How to use super() to call base class function in python 2.7.13?
<p>I have a multilevel inheritance (A->B->C). In base class i have a dictionary variable called "my_dict". From derived class, I am calling base class function by super().add_to_dict() to add some values. </p> <p>Below code works as expected in python 3.7. But in Python 2.7.13 it throws error. can some one help me to ...
<python><inheritance><super>
2019-12-13 06:50:05
LQ_CLOSE
59,317,913
Duplicate data php
<p>can I check the same data in input in form PHP? this is the program code, but what happens is the same data can still be entered and there is no data checking. I've tried in to change <code>if($query &gt;0)</code> bu the data can be input and be the same.</p> <pre><code>&lt;?php if(!defined('INDEX')) die(""); ...
<php><mysql>
2019-12-13 07:24:00
LQ_CLOSE
59,318,570
reg ex for searching filenames
<p>I want to select the files, whose names ends with <code>_90.jpeg|_180.jpeg|_270.jpeg|_90.jpg|_180.jpg|_270.jpg</code>.</p> <p>currently I am using the following approach</p> <pre class="lang-py prettyprint-override"><code>pattern = re.compile('_90.jpeg|_180.jpeg|_270.jpeg|_90.jpg|_180.jpg|_270.jpg') pattern.search...
<python><regex>
2019-12-13 08:17:30
LQ_CLOSE
59,320,282
Refactoring to one line statement bool value
<p>Is there a way to turn this into a one-liner it works as does what its meant to do but I can't help but think it could be one line as I am just simply returning a bool.</p> <pre><code>private bool RequiresTable() { return Settings.Filter.Criteria.Any(w =&gt; w.NameSpace == "XXX"); } </code></pre>
<c#>
2019-12-13 10:10:14
LQ_CLOSE
59,322,388
I want to parse part of my json data into table.Json is given below,I only want to get "Data"=[ ] part in my table
in this json, I want to parse only Data:[] part { "head": { "StatusValue": 200, "StatusText": "Success" }, "body": { "Data": [ { "payer_type_id": 1, "payer_type": "Self Pay" }, { "payer_type_id"...
<ios><json><swift><parsing><url>
2019-12-13 12:12:39
LQ_EDIT
59,323,509
Making an input icon (search icon) responsive
<p>Typical for a search bar, I've added a magnifying glass icon on the left side for UI purposes. On desktop it looks fine and stays at the position nicely. However, when switching to mobile the icon is repositioning itself according to the device width.</p> <p>I thought by increasing the <code>left</code> parameter f...
<html><css>
2019-12-13 13:25:19
LQ_CLOSE
59,323,993
long to wide format aggregate R tidyverse
<p>Hi given the following dataframe</p> <pre><code>library(tidyverse) df &lt;- data.frame(READS=rep(c('READa', 'READb', 'READc'),each=3) ,GENE=rep(c('GENEa', 'GENEb', 'GENEc'), each=3), COMMENT=rep(c('CommentA', 'CommentA', 'CommentA'),each=3)) &gt; df READS GENE COMMENT 1 READa GENEa CommentA 2 READa GENEa Comme...
<r><tidyverse>
2019-12-13 13:55:54
LQ_CLOSE
59,324,109
Angular Internal: What happens when we inherit a class
<p>Basically i searching to understand what happens when we inherit one class in another internally, also does it like bring performance issue incase if i inherit in n classes.</p>
<javascript><angular><class><inheritance><angular8>
2019-12-13 14:03:09
LQ_CLOSE
59,324,181
How to run the Go executable file generated after building the Go file?
<p>After I build the main.go file using <code>go build go.main</code>, I get the main executable file. How do I run the main file? If I do <code>go run main.go</code>, it automatically builds + runs the executable. But I want to know the command to run the already build executable file.</p>
<go>
2019-12-13 14:07:04
LQ_CLOSE
59,324,322
How to find the origin figure of an axis in Matplotlib
<p>Given an axis instance, is it possible to know to which figure instance does it belong?</p>
<python><matplotlib><plot>
2019-12-13 14:15:57
LQ_CLOSE
59,325,796
http POST not reaching backend
<p>I'm trying to pass an email value to the backend, but it never reaches the endpoint. I have the same url path being called, but <code>console.log("You've made it to the backend");</code> never outputs. Why is that? It's definitely hitting the angular service because Made It outputted to console no problem.</p> <p>a...
<node.js><angular>
2019-12-13 15:47:23
LQ_CLOSE
59,327,528
is there any way to run this applet code and why is my code wrong please help me guys
import java.applet.*; import java.awt.Graphics; public class App extends Applet { public void paint (Graphics g) { g.drawString ("Hello World", 20, 20); } }
<java><applet>
2019-12-13 17:48:50
LQ_EDIT
59,328,099
SWIFT ARKIT detect the hand and nails, and place the object on the nails?
<p>I would like to know how to detect a person’s hand and nails, and then use ARKIT to place an object on her nails. Frankly, I’ve been looking for information about it for several days in Google, I haven’t found anything that could help me. I would really appreciate if you could help me! Thanks a lot in advance!</p>
<ios><swift><swift4><arkit><swift5>
2019-12-13 18:35:13
LQ_CLOSE
59,328,570
Need resultset on following resulset in sql
I have result set as follows, **Employer_id Type Amount** 1 penalty 100 1 interest 120 2 penalty 50 2 interest 60 2 contribution 70 1 contribution 140 I need result as, **Employer_id penalty interest contribution** 1 100 120 140 2 50 60 70 Is it possible in sql? can anyone provide query if po...
<sql><sql-server>
2019-12-13 19:16:22
LQ_EDIT
59,329,045
How would I setup a HTML page to have a new title each new day?
<p>So my ultimate goal here is to have the site have a new title each day (24 hours).</p> <p>I am not a very experienced program, but, I am aware something similar could be done with JS.</p> <p>I saw this idea:</p> <pre><code>setInterval(function() { //change title //document.title = "Some new title"; }, 300...
<javascript><html>
2019-12-13 19:57:08
LQ_CLOSE
59,330,405
C# delete files based on text file
<p>Hy,</p> <p>I have a FilesToDelete.txt file filled with file paths like:</p> <pre><code>C:\Users\Me\Pics\file01.png C:\Users\Me\Pics\file03.png C:\Users\Me\Pics\file15.png etc... </code></pre> <p>How can I delete these files with C#? Thanks!</p>
<c#>
2019-12-13 22:08:28
LQ_CLOSE
59,330,441
When to use routing in Angular?
<p>I started building my first Angular app using routing with unique url for every "main" component. But then I discovered the material and really liked what the tabs are doing. </p> <p>What will be pros and cons of using angular routing together with Angular material when I can just render pages with mat-tab-group l...
<angular><angular-material><angular-routing>
2019-12-13 22:11:52
LQ_CLOSE
59,332,004
Error : [WinError 267] The directory name is invalid
**I tried this code in jupyter notebook, and this error occured.** *Error : [WinError 267] The directory name is invalid: 'plantdisease/PlantVillage/Pepper__bell___Bacterial_spot/0022d6b7-d47c-4ee2-ae9a-392a53f48647___JR_B.Spot 8964.JPG/'* I'm using python 3.6 in anaconda environment, I tried running this code bu...
<python><artificial-intelligence>
2019-12-14 03:11:09
LQ_EDIT
59,332,212
Microservices architecture best practises
<p>I don't know if this is the right platform for this question or not, either way, I am venturing into microservices, have been in for some time though not long and was stuck on the right architecture or rather, best practices:</p> <p>Which is better and why, having all services of a microservices architecture app in...
<docker><microservices>
2019-12-14 04:02:15
LQ_CLOSE
59,333,122
C++ - why does sizeof return the false value for an array when used as return value in a function
<p>I have a little problem regarding the size of an array (int, char, etc.). First of all I need to tell you, that I am a beginner in C++ with some background in some other programming languages. Now let us consider the following program: </p> <pre><code>int IntArrayLength(int Array[]){ return (sizeof(Array) / size...
<c++><arrays><int><sizeof>
2019-12-14 07:19:15
LQ_CLOSE
59,333,170
Can someone please tell me why my "name" class goes over my navigation menu on mobile please
<p>When viewed at mobile and tablet, my "name" class will conflict with my burger menu.</p> <p><a href="https://johnblairgraphicart.firebaseapp.com/" rel="nofollow noreferrer">https://johnblairgraphicart.firebaseapp.com/</a></p>
<html><css><class>
2019-12-14 07:29:07
LQ_CLOSE
59,333,186
How do i play an animation on a button press
<p>Im making my first game but I am stuck. I am making the main menu. I want to make it that when I press the start game button an animation plays and it starts that game. I have no idea where to start. The button to start the game works and I have created the animation and that works but I don't know how to combine th...
<c#><visual-studio><unity3d><animation><button>
2019-12-14 07:32:36
LQ_CLOSE
59,333,274
How do I add both a variable and a string into the same print statement?
<p>I'm trying to write a basic Python RPG for my friend, and I'm trying to make a stat generator. From what I learned in classes, I'm supposed to <code>print('Your ability score in this is ' + var1 + '.')</code></p> <p>Here's the entire code block where I'm getting the error.</p> <pre><code>Your elemental attack is '...
<python>
2019-12-14 07:47:17
LQ_CLOSE
59,334,179
How to run my python script parallely with another Java application on the same Linux box in Gitlab?
I have a jar file which needs to be continuosly running in the Git linux box but since this is a application which is continuosly running, the python script in the next line is not getting executed. How to run the jar application and then execute the python script simultaneously one after another? #.gitlab.ci-yml f...
<python><python-3.x><git><gitlab>
2019-12-14 10:17:00
LQ_EDIT
59,335,634
how to create a dict from row and sublist?
> I have this data : [enter image description here][1] [1]: https://i.stack.imgur.com/CmvIP.png I would like create a dictionary like : a={'Group':['Wo', 'Me','CHi']} but in the case column 'group' row 5 the value of column 'Me' is 2 ,how I can make to see its value like : a={5:[0, [1,1],0...
<python><pandas><dictionary>
2019-12-14 13:37:06
LQ_EDIT
59,340,503
ArrayList is allowing me to store items to it but not call them using .get(), says it isn't an ArrayList
<p>I am writing a program to simulate a restaurant menu system using the command design pattern. I made the construtor in my Menu class initialize an arraylist.</p> <pre><code>import java.util.ArrayList; public class Menu { public ArrayList&lt;MenuItem&gt; listOfMenuItems; public Menu() { listOfMenu...
<java><object><arraylist>
2019-12-15 01:17:49
LQ_CLOSE
59,340,505
Change the number and variety of data fields without altering methods?
<p>I'm including my Java assignment below. I'm a bit puzzled by the instructions. I am supposed to use a new data field. The class is supposed to only have one data field. I am not, however, supposed to alter the methods. I don't really have any idea how to do this and make it work without altering the methods.</p> <b...
<java><methods>
2019-12-15 01:18:34
LQ_CLOSE
59,340,526
.sort() giving me a NonType error for my function
<p>I'm trying to make a function that gives me the average of a list, excluding the maximum and minimum value. I want to sort my list but when I do, I get a 'NonType' error. Here's my code:</p> <pre><code>def ave_no_max_min(DataList): return sum(DataList.sort()[1:-1])/(len(DataList)-2) print(ave_no_max_min([2,4,3,...
<python><non-type>
2019-12-15 01:23:00
LQ_CLOSE
59,341,124
One last function before application closes? (Python)
Ok so look, I'm getting desperate since I've already been all over the internet trying to find the answer to this question. so sorry if this has been answered somewhere else, I couldn't find it just give me the link. So basically I have a python file that is constantly using the ```f.write()``` function to write t...
<python>
2019-12-15 03:57:26
LQ_EDIT
59,341,687
What's the best way to think about this?
<p>I am new to python and I have heard a lot about "Pythonic" work arounds to common tasks. I wrote the following script for a project I'm working on where it needed to pick a random string from a list of strings and break the string into a key and value. The script worked for that purpose but it got me wondering abou...
<python><random>
2019-12-15 06:27:48
LQ_CLOSE
59,342,211
Using time module in Python
<p>I have a text file named as 'time' and want to save the current date and time from the computer in the text file every-time the player plays the game(Snake and ladder). Please help me to figure it. I have tried making a function for it and add the current date in the file and append the new date and time in text fi...
<python><python-3.x><python-2.7>
2019-12-15 08:09:33
LQ_CLOSE
59,342,869
Is this structure valid?
<p>I want to create a compact method tu calculate the summ of the first 20 even numbers and the multiplication of the first 20 odd numbers. is this correct?</p> <pre><code>for(int i=0; i&lt;=20; i++) { (i % 2 == 0) ? (sumEven +=i;) : (productoImpares *= i;) } </code></pre>
<java>
2019-12-15 10:08:57
LQ_CLOSE
59,343,624
Multipurpose with python
<p>I need to improve a script that runs 3 python scripts in parallel at the same time, I have this script below ready, only it is jumping some scripts on the list, I don't know why this is happening.</p> <p>Code:</p> <pre><code>import sys import asyncio scriptspy = [ '/scipts/sp01.py', '/scipts/sp02.py', ...
<python><python-3.x><multithreading>
2019-12-15 11:50:57
LQ_CLOSE
59,343,927
How to read image from firebase using opencv python
Is there any idea for reading image from firebase using OpenCV Python ? Or do I have to download the pictures first and then do the cv.imread function from the local folder ? Is there any way that I could just cv.imread(link_of_picture_from_firebase) ???
<python><firebase><opencv><pyrebase>
2019-12-15 12:34:03
LQ_EDIT
59,345,771
two foreign keys referencing the same primary key.Is it in normal form?
Will the table be in normal form if in a table there are two foreign keys referencing the same primary key from another table?
<sql><database><database-normalization>
2019-12-15 16:23:55
LQ_EDIT
59,346,063
How to have multiple goroutines read the lines of a single file?
<p>I want to read a huge file, say > 1 GB, and have its lines processed by multiple worker goroutines.</p> <p>I'm worried that using a single goroutine (main) for reading the input lines will impose a bottleneck, when using a huge number of worker goroutines.</p> <p>How can I safely have multiple goroutines read the ...
<go>
2019-12-15 16:55:30
LQ_CLOSE
59,347,522
A Python Program that picks something from a list
<p>Sorry If there is already a question of this but I didn't find it. So is there function that picks something from a list but with percents like we have a list with a soda, a soup and a water bottle so the program must pick one of these but the chance it would pick the soup is 2% for the soda is 30% and for the water...
<python>
2019-12-15 19:50:55
LQ_CLOSE
59,349,126
How to implement the whitespace in my python 3.7 and implement In[1]:
**In[1]:** listofNumbers = [1, 2, 3, 4, 5, 6] for number in listofNumbers: print (number), if (number % 2 ==0): print (" is even") else : print(" is odd") print("All done.") I wanted my codes to print 1,2,3,4,5,6 and specific if each is even or odd, but it only brings the figures, no remarks,
<python>
2019-12-15 23:57:10
LQ_EDIT
59,349,954
JAVA EE SAVE ME PLEASE - PRIMEFACE ISSUES NETBEANS
sorry for the awlful error, I have some issue with java ee using netbeans and primefaces.This is my index.xhtml ``` <?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xh...
<jsf><primefaces><xhtml>
2019-12-16 02:46:43
LQ_EDIT
59,349,957
How to convert time in utc second and timezone offset in second to date string format in "yyyy-mm-dd" in java8?
I have a date in utc second and its time zone offset in sec. I would like to convert it to daten string in format yyyy-mm-dd using java8 ZoneOffset class. For example time = 1574962442, offset = 3600 --> date string in yyyy-mm-dd
<java><date><java-8><unix-timestamp><timezone-offset>
2019-12-16 02:47:28
LQ_EDIT
59,350,721
how can I run wordpress on GCP cloud run?
according to GCP https://cloud.google.com/wordpress/ but so far cloud run i the best option for no teche person however in order to run cloud run wordpresss must be on a container. using the vM with bitnami wordpress still need some kind technicals and management which don't want to deal with. on the other hand word...
<wordpress><google-app-engine><bitnami><google-cloud-run>
2019-12-16 04:52:53
LQ_EDIT
59,351,134
Which entity framework is used in visual studio 2012 with mvc 4 with windows os 7
I have seen there is different option when we add entity framework for database connection,but those options are not in mvc 4 in visual studio 2012. Can anyone tell what is the step by step procedure to use database in visual studio 2012 mvc4 on windows operating system 7
<c#><sql-server><asp.net-mvc><entity-framework><visual-studio-2012>
2019-12-16 05:47:36
LQ_EDIT
59,351,849
How to use a div tag to create a layout and make it responsive
<p>Hi I have tried craeting a layout below</p> <p><a href="https://i.stack.imgur.com/LqFgC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LqFgC.png" alt="enter image description here"></a></p> <p>I have created using a table tag. But the layout is not responsive . I want to use the div tag but i d...
<html><css><reactjs><sass>
2019-12-16 06:58:43
LQ_CLOSE
59,352,860
Making the for loop append on all the dataset in python
I'm trying to make the for loop append on all the dataset which is from the range of (0,8675) but it keeps getting error just working with 1 row def convert_emoticons(text): for emot in EMOTICONS: text = re.sub(u'('+emot+')', "_".join(EMOTICONS[emot].replace(",","").split()), text) return text ...
<python><function><for-loop>
2019-12-16 08:28:49
LQ_EDIT
59,353,078
Why should a python variable of type list should be defined first before assigning a value?
<p><code>x = 2</code></p> <p>creates an integer variable. </p> <p><code>y.append(3)</code></p> <p>gives an error message (name 'y' is not defined). </p> <p>In the first one a variable <code>x</code> can be assigned a value without first defining it, why can't we do the same thing with the lists (you have to first d...
<python>
2019-12-16 08:44:47
LQ_CLOSE
59,353,237
php mysql category subcategory list link
<p>I want to like this</p> <p>Category1</p> <p>--Subcat1</p> <p>--Subcat2</p> <p>Category2</p> <p>--Subcat2</p> <p>I have two tables tbl_cat and tbl_subcat</p> <p>tbl_cat(id,cat_name)</p> <p>tbl_subcat(id,<strong>cat_id</strong>,subcat_name) </p> <blockquote> <p>cat_id=tbl_cat.id</p> </blockquote> <p>how to...
<php><mysql>
2019-12-16 08:55:19
LQ_CLOSE
59,353,837
Split string to array - JavaScript - ES6
Hove I split this string to array with Javascript ES6 Syntax? let dataString = "<p>Lorem ipsum</p> <figure><img src="" alt=""></figure> <p>Lorem ipsum 2</p> <figure><img src="" alt=""></figure>" I want do my array look like this: let dataArray = ["<p>Lorem ipsum</p>", "<figure><img src="" alt=""></figu...
<javascript><ecmascript-6>
2019-12-16 09:33:28
LQ_EDIT
59,354,011
Remove text between two square brackets in javascript
<p>How can I change this:</p> <pre><code>This is a string [[remove]] this </code></pre> <p>To:</p> <pre><code>This is a string this </code></pre> <p>I managed to figure out how to remove a string between one set of brackets but I couldn't get it right with two:</p> <pre><code>var myString = "This is my string [rem...
<javascript><regex>
2019-12-16 09:44:35
LQ_CLOSE
59,355,775
Group by date and count average in JS
<p>I have a dataset with the timestamp and some params. It looks like that: </p> <pre><code>const resp = [ {date: 1576098000, responseBot: 0.47, responseManager: 2.0}, {date: 1576098000, responseBot: 1.50, responseManager: null}, {date: 1576098000, responseBot: 1.05, responseManager: 2.3}, {date: 15761...
<javascript><arrays><group-by><reduce>
2019-12-16 11:31:13
LQ_CLOSE
59,358,206
Calculating mortgage payments
I want to perform a calculation to know all the capital and interest payments of my loans. I managed to calculate for one loan, however, I want to get all the results in a table and probably do the calculation for each one with a for loop. I tried to get some functions that are already in R, but none of them worked....
<r><tidyr>
2019-12-16 14:01:36
LQ_EDIT
59,358,632
I'm new to python, why is the colon an invalid syntax?
<p>I'm very new to python, and am trying to build a heads or tails system. But whenever I add the colon to the end of the if statement, it states it as invalid syntax. Though, when I remove the colon, it states invalid syntax for the next line.</p> <pre><code>import random def coinToss ( coinFlip = random.choice([1, ...
<python>
2019-12-16 14:26:14
LQ_CLOSE
59,359,380
how to extract numbers from a equation given as a string in python?
<p>ex:- <strong>string</strong>="1x-2y-7" <strong>output</strong>=[1,-2,-7]</p> <p>I can get the number using <strong>isnumeric</strong> but I am not able to extract signs out of it </p>
<python><jupyter-notebook>
2019-12-16 15:13:01
LQ_CLOSE
59,361,839
Regex for remove domain in hostname
<p>I am trying to capture only the hostname within this date, but my regex is broken when inside the hostname, there are <code>.</code> because I remove the <strong>hostname domain</strong></p> <p><strong>REGEX</strong></p> <pre><code>^([^;@#.\s]+) </code></pre> <p><strong>DATA</strong></p> <pre><code>srvdata;172.2...
<python><regex>
2019-12-16 17:46:52
LQ_CLOSE
59,363,120
how to replace single escape char with double using sed
<p>I would like to replace single escape char \ with double \ using sed However when I use</p> <pre><code>`echo $regex | sed 's/\\/\\\\/g'` </code></pre> <p>it returns sed: -e expression #1, char 8: unterminated `s' command is there a solution for this?</p>
<regex><bash><sed>
2019-12-16 19:29:05
LQ_CLOSE
59,364,601
How to properly setState to array of objects?
<p>I have an array ob objects that creates <code>Close</code> buttons depending on how many there are of them. When i click <code>Close</code> button i would expect the array to be updated (removed) then the button element will disappear from screen. </p> <p>I have worked out in <code>console.log</code> but unable to ...
<javascript><arrays><reactjs>
2019-12-16 21:35:30
LQ_CLOSE
59,364,821
How to make item pairs from the same big list in python
<p>For example: [0,1,2,3] expected results [0,1], [0,2], [0,3], [1,2], [1,3], [2,3]</p>
<python><python-3.x>
2019-12-16 21:56:14
LQ_CLOSE
59,365,280
How does Ruby detect a carriage return in a string?
<p>I'm iterating through a large string that has several carriage returns. I'd like my logic to do something every time a carriage return is discovered (create a new ActiveRecord instance with all the string content before the carriage return). </p>
<ruby-on-rails><ruby><string><carriage-return>
2019-12-16 22:43:54
LQ_CLOSE
59,366,878
python for k, g in iterpools.groupby(str): list(g) will change in the 'if' statement
<p>As a newbie, I try to practice the function of groupby and see the result. However, I find a weird phenomenon。</p> <pre><code> str = 'hieeelalaooo' for k, g in groupby(str): print(list(k), list(g)) if True: print(list(k), list(g)) </code></pre> <p>The result shows that list(g) wi...
<python>
2019-12-17 02:38:17
LQ_CLOSE
59,367,657
Setter not working for boolean but work fine in string C#
<p><a href="https://i.stack.imgur.com/K5yV3.png" rel="nofollow noreferrer">Error description</a></p> <p>I don't know why setter is not working for bool variable but working fine with string variable. Is bool requires special setter for it?</p>
<c#><xamarin><getter-setter>
2019-12-17 04:31:09
LQ_CLOSE
59,368,182
PHP script to copy mysql column to another table
<p>Is there any easy way to copy one a column in a table to another table without changing the order ? I am a beginner here. I would be much thankful to you if you could supply in depth answer. </p>
<php><mysql>
2019-12-17 05:42:20
LQ_CLOSE
59,368,816
failed to download file from mysql server
I am new with JSP and servlets. Please help me with my problem. I have done code for uploading multiple files to MySQL database and it is successful. I have one jsp page("**filelist.jsp**") which contains all uploaded files by user. So I want to **Search** particular file using more filter options in jsp. I also tried ...
<javascript><html><mysql><jsp><servlets>
2019-12-17 06:40:09
LQ_EDIT
59,369,196
Trouble whit pip
Fatal error in launcher: Unable to create process using '"c:\program files (x86)\python38-32\python.exe" "C:\Program Files (x86)\Python38-32\Scripts\pip.exe" install virtualenv venv1'
<python><pip><virtualenv>
2019-12-17 07:10:03
LQ_EDIT
59,369,669
I have got too many sms from my php json sms api
<p>I have tried PHP JSON request on my web site. I use that for SMS sending purposes. But I have got many SMS.</p> <pre><code>&lt;?php // Your code here! // Takes raw data from the request $json = file_get_contents('URL'); // Converts it into a PHP object $data = json_decode($json,true); print_r($da...
<php><json><api>
2019-12-17 07:47:04
LQ_CLOSE
59,369,999
Download property for link?
<p>There is a following code:</p> <pre><code>var a = document.createElement("a"); a.href = url; a.download = fileName; document.body.appendChild(a); </code></pre> <p>What is property <code>download</code>, how does it work?</p>
<javascript>
2019-12-17 08:12:28
LQ_CLOSE
59,370,921
Checking if two values are approximately the same in python
<p>I have two functions which give me very small numbers. I want to define a <code>IF statements</code> in which If two values are <code>approximately</code> the same print them otherwise <code>pass</code></p> <pre><code>a = (x, y) b = (h, p) If a == b: print(a, b) else: pass </code></pre> <p>for this we cannot...
<python><numpy><if-statement><approximation>
2019-12-17 09:12:57
LQ_CLOSE
59,371,041
How to delete the folder from a http url using python
<p>i have a wifi enable camera. i can access the image from the ip address while enter in browser. while entering the ip address it shows the list of folders name in the home page. i have to delete one folder. <a href="https://i.stack.imgur.com/FTAtW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/F...
<python><http><url>
2019-12-17 09:20:36
LQ_CLOSE
59,371,666
sum of values for multiple rows with same name in r
<p>how to perform a sum of values for multiple rows with the same name in r and render a chart in plotly.i have tried a couple of methods like aggregate and tapply, none of them seems to be working for me, could anyone tell me where I am going wrong. </p> <pre><code>library(dplyr) #&gt; #&gt; Attaching packag...
<r>
2019-12-17 09:57:15
LQ_CLOSE
59,372,944
Way to override flex property to manually set width of span in HTML
<p>I wanted to manually set a width of a span to make a circular highlight on an element. But even when I set the width of the span, it stretches up end to end</p> <p>Its parent has flex basis property</p> <pre><code>element.style { flex-basis: 14.2857%; max-width: 14.2857%; overflow: hidden; } </cod...
<html><css>
2019-12-17 11:07:02
LQ_CLOSE
59,373,086
not able to insert empty integer value in microsoft sql server
INSERT INTO emp(EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) VALUES(7369,'SMITH','CLERK',7902,17-Dec-80,800,'',20) when i run the sql command select * from emp The COMM colums is 0 and not empty. i want the column(COMM) as empty. i have also set the columns as NULL. if n...
<sql><sql-server>
2019-12-17 11:15:26
LQ_EDIT
59,374,310
print everything in div tag selenium python3
Hello I am newbie at learning selenium. I am trying to scrape a website which has some info under its div tag like this ``` <div> id="searchResults" class="multiple-view-elements" <span>name</name> <span>info</name> <span>info</name> ---- <span>name</name> ...... ``` my code ``` print ('---------------...
<python-3.x><selenium><selenium-webdriver>
2019-12-17 12:31:29
LQ_EDIT
59,374,795
MS SQL SERVER - DEPARTMENT WISE SALARY WITHOUT USING GROUP BY
CREATE TABLE #Dept ( DeptName VARCHAR(30), Salary INT ) INSERT INTO #Dept VALUES ('A',100),('A',90),('A',80),('A',70),('A',60),('B',80),('B',20),('B',40) EXPECTED OUTPUT: DeptName Salary A 400 B 140
<sql><sql-server><tsql><sql-server-2008><sql-server-2012>
2019-12-17 13:00:32
LQ_EDIT
59,376,748
Assigning element values in an array without knowing the size of the array
<p>During my high school c++ course we were assigned an assignment to write a program that allows the user to input values that would be stored in an array without prompting the user for the array size. So if the user decides to enter 1,2,3 the array size would go from being unknown to three.</p>
<c++><arrays>
2019-12-17 14:51:36
LQ_CLOSE
59,376,774
.NET CORE - DDD + CrossCutting + External API
<p>I am developing a .NET Core project using the DDD, IoC, CrossCutting.</p> <p>The CrossCutting.IoC project, the responsible for register the project dependencies and performing the inversion of control function and this project has the reference of the other projects.</p> <p>Now the need has come to do an external ...
<asp.net-core><.net-core><domain-driven-design><inversion-of-control><cross-cutting-concerns>
2019-12-17 14:52:51
LQ_CLOSE
59,377,616
Access arraylist from another class inside main class
<p>I don't have any idea on how to make this since i'm a new in java. I want to display all my objects in the arraylist of my TimeSlot class into the main class. I've tried few ways like using for (int = 0; i &lt; bookingList.size(); i++) but still can't work. I'm getting nullPointerException so i dont know if there's ...
<java>
2019-12-17 15:41:25
LQ_CLOSE
59,378,119
Javascript - nested dictionary from array of strings separated with dots
<p>I have to <strong>translate</strong> an array <strong>to</strong> nested dictionary.</p> <p>In case i have a string array. each string combined from numbers that seprated by dots, and each number means a key in the translated dictionary. (except the last number)</p> <p>e.g.</p> <p>i have this array: <code>array =...
<javascript><angular><typescript>
2019-12-17 16:12:26
LQ_CLOSE
59,378,272
How to change column names from numbers to names
<p>I have a dataframe which looks like this:</p> <p><a href="https://i.stack.imgur.com/5Arqi.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5Arqi.jpg" alt="dataframe"></a></p> <p>I want to change the columnnames, for example: "2018-12-31 00:00:00" to "year_2018". How can I do that?</p>
<python><python-3.x><pandas><dataframe>
2019-12-17 16:22:42
LQ_CLOSE
59,378,401
How can i different json element with 2 parts in java script
``` Example json var json={ list:{ c1:"BTC", c2:"ETH", c3:"DOGE", c4:"LTC", c5:"BSV", c6:"XRB", c7:"SRB", c8:"WAVE", c9:"LINK", c10:"EOS" } } ``` **°I want that there is 10 element in this json i want that it can dive this json in 2 part in first part it will show first 5 element and in 2nd part i...
<javascript>
2019-12-17 16:30:40
LQ_EDIT
59,379,304
Bash issue with numbers in specific format
(Need in bash linux)I have a file with numbers like this 1.415949602 91.09582241 91.12042924 91.40270349 91.45625033 91.70150341 91.70174342 91.70660043 91.70966213 91.72597066 91.72876783 91.73986459 91.75429779 91.76781464 91.77196659 ...
<linux><awk><grep>
2019-12-17 17:29:27
LQ_EDIT
59,380,066
angular guard not returning data
I'm using google maps API to get maxLat,maxLng,minLat,minLng and then I want to resolve data from the database before create the component, this is for SEO metas and description the problem is, that the guard is resolving the data, but not resolving the component my app-routing.module.ts my GuardService.ts ````...
<angular><google-maps-api-3><rxjs><angular-router-guards>
2019-12-17 18:26:10
LQ_EDIT
59,380,152
How to run python code in hostgator every 30 minutes?
<p>I have hostgator shared plan. Need to put a python file in the web-host and make it run every 30 minutes.</p> <p>It is a long script, but please use a simple code instead to explain for example: a=1 a=a+1</p>
<python><linux><web-hosting>
2019-12-17 18:32:32
LQ_CLOSE
59,381,063
Cannot fetch data from mongo with java
i trying to fetch some data from mongo with netbeans but i get this error java.lang.IllegalStateException: state should be: open I have tried everything. This is the line that crashes: Document doctor = doctors.find(new Document("doctor_name", DocName.getText())).first(); Connects successfully and t...
<java><mongodb>
2019-12-17 19:42:02
LQ_EDIT
59,381,881
Cannot figure out "Unexpected token" in React
<p>I cannot figure out what the error means on line 42:18 Could someone explain, please.</p> <p><strong>Error Message:</strong></p> <blockquote> <p>Line 42:18: Parsing error: Unexpected token</p> </blockquote> <pre><code>render() { return ( &lt;div className="FlexContainer NavbarContainer"&gt; ...
<javascript><reactjs>
2019-12-17 20:49:57
LQ_CLOSE
59,386,024
call function in another aws lambda using existing call
Please refer the code snippet below: import awsgi import json from flask import ( Flask, jsonify, request ) app = Flask(__name__) @app.route('/') def index(): return jsonify(status=200, message='OK') @app.route('/tester') def tst(): ...
<python><amazon-web-services><flask><aws-lambda>
2019-12-18 05:34:02
LQ_EDIT
59,388,443
Converting A Non-Vuetify Element To Vuetify
<p>I am using a 3rd party payment processor that inserts text inputs into my form. The rest of my form is styled with vuetify (v-text-field). How can I convert a non-vuetify element into vuetify's version of it if the element gets added programmatically (i.e. I don't have control of the text field getting added since t...
<vue.js><vuetify.js>
2019-12-18 08:52:46
LQ_CLOSE
59,391,027
Error Invoking 'Customize'. Details: Object reference not set to an instand on an object
I'm using visual studio 2017 I have a popupmenu on my designer view where I have added a list of popup menu items. When I try to customize the menu items by clicking on popupmenu and then the customize button. Instead of displaying the popupmenu items it displays an error message saying "Error Invoking 'Customize'. Det...
<visual-studio><winforms><devexpress>
2019-12-18 11:25:59
LQ_EDIT
59,394,175
Regex for python that puts quotation marks around all 6-12 digit numbers in a text file
<p>I currently have the following regex that identifies 6-12 numbers:</p> <pre><code>regex_did = re.compile(r"\b\d{6,12}\b") </code></pre> <p>What would be the correct approach to put all matches between two quotation marks. For example <code>123456</code> should be replaced with <code>"123456"</code>.</p>
<python><regex>
2019-12-18 14:28:24
LQ_CLOSE
59,394,652
How can I convert this code into HTML only?
<p>how can I convert this HTML+CSS code into HTML only? I'm trying to use this in an email, so the CSS won't work.</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;style&gt; #u168 { z-index: 34; background-color: #57E8E8; padding-bottom: 7px; position: relative; margin-right: -10000px; margin-t...
<html><css>
2019-12-18 14:55:39
LQ_CLOSE
59,395,890
Intend not work in Recycleview.onclicklistener
This is my Adapter class i need to click the Recycleview list and go to the next page but Intend is not work in this class the app gets crashed how do i work with the intend in this ... package com.onebook.locationsaver; import android.app.Activity; import android.content.Context; impo...
<java><android><android-studio><android-layout><android-fragments>
2019-12-18 16:03:22
LQ_EDIT
59,396,069
Insert line in a specfic line in a file
<p>I have a very simple question but I don't find the answer ...</p> <p>I have a file (data.txt) it contains </p> <pre><code>A B C D E F </code></pre> <p>I just want to make function to insert line where I want in this file.</p> <p>Like : Insert('Bouh', 3)</p> <p>Render :</p> <pre><code>A B C D Bouh E F </code></...
<python>
2019-12-18 16:14:20
LQ_CLOSE
59,396,710
How can I make an Array of Objects from n properties of n arrays in JS?
<p>I have two arrays like this:</p> <pre class="lang-js prettyprint-override"><code>const opciones = ['A', 'B', 'C', 'D']; const valoracion = [true, false, false, false]; </code></pre> <p>And the, I want to create a new Array of Objects from these two arrays, like this:</p> <pre class="lang-js prettyprint-override">...
<javascript>
2019-12-18 16:49:06
LQ_CLOSE
59,400,459
Getting "best-guess" coordinates from a location name in Python
<p>I'm looking for a way to take a rough location string (ex. "Buddy's Pub in City, State"), and convert it to the best-guess set of coordinates. I've looked at GeoPy and Google's Geocoding API, but they are not exactly what I'm looking for. Any help would be appreciated.</p>
<python><location><coordinates><geocoding><estimation>
2019-12-18 21:53:23
LQ_CLOSE
59,400,475
How to add style to webp images
<p>my code looks like</p> <pre><code>&lt;picture&gt; &lt;source type="image/webp" srcset="img/photo.webp"&gt; &lt;source type="image/jpg" srcset="img/photo.jpg"&gt; &lt;img src="img/photo.jpg" alt=""&gt; &lt;/picture &gt; </code></pre> <p>I want to add class to this picture so I can use border-radius. how can I...
<html><css><webp>
2019-12-18 21:55:11
LQ_CLOSE
59,401,276
Me not understanding do while loops
<p>So i tried to make my first console aplication but it came to a bit of a bummer since i dont understand how a do while loop works</p> <pre><code>#include &lt;iostream&gt; int balance = 100; int pay = 30; int awnser; // Variables for the awnsers int withdrawal; int a = 1; int main() { do { std::cout ...
<c++><loops>
2019-12-18 23:15:20
LQ_CLOSE
59,402,452
How to calculate Min Max of Map<Strib,float>
[enter image description here][1] How to find Min max of Keys of a Map<String,float> [1]: https://i.stack.imgur.com/mbQ09.png
<java><dictionary><max><min>
2019-12-19 02:12:56
LQ_EDIT
59,403,593
kernel module problem in commercial software
<p>The security software I'm building contains a kernel module. because the kernel must process the packet.</p> <p>Do not use DKMS because it is commercial software.</p> <p>If the kernel version goes up, insmod doesn't work.</p> <p>What should I do? Do you have a good idea?</p>
<c><linux-kernel><kernel-module><insmod><commercial-application>
2019-12-19 05:09:06
LQ_CLOSE
59,404,138
Macbook won't stay as using Python3
When I change the alias for python using ***alias python='python3'*** in terminal, the python version will be changed to python3. But, when I close Atom and come back to the app later, it has gone back to python2. Can someone explain this please?
<python><python-3.x><bash>
2019-12-19 06:13:10
LQ_EDIT
59,404,719
I am trying to convert String date in long in android studio
I AM CONVERTING STRING DATE INTO LONG BUT I AM NOT UNDERSTANDING HOW TO RETURN THE LONG VALUE and how to convert a string into long and store in room database ``` package com.example.mybugetssimple; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; public class D...
<java><android><string><date><long-integer>
2019-12-19 07:03:50
LQ_EDIT
59,405,115
Put a set of characters into list in python
<p>Essentially I want to put characters inside a list so I can make the for loop work.</p> <p>Example characters (supposedly listed individually vertically. not like this showing as one line) N/A N/A None Test Dev</p> <p>I want to put these characters into a list like below a = [N/A, N/A, None, Test, Dev]</p> <p>Rea...
<python>
2019-12-19 07:32:28
LQ_CLOSE