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,499,245 | using Rstudio, how to import xlsx file larger than 100MB? | <p>How to work with excel file larger than 100 MB, I already imported but it doesn't running the shiny app?</p>
| <r><shiny><readxl> | 2019-12-27 10:21:27 | LQ_CLOSE |
59,499,943 | "starts with" does not work (python regex) | <p>I have this string:</p>
<pre><code>m = 'Film/6702-BRINGING-UP-BABY" da'
</code></pre>
<p>and the following regax, that tries to find words that start with 'd':</p>
<pre><code> movie = re.findall(r'^d.*', m)
print(movie)
</code></pre>
<p>the result is:</p>
<pre><code>[]
</code></pre>
<p>and I can not understan... | <python><regex> | 2019-12-27 11:13:56 | LQ_CLOSE |
59,501,312 | Remove empty string from list (Spark Dataframe) | <p>Current Dataframe</p>
<pre><code>+-----------------+--------------------+
|__index_level_0__| Text_obj_col|
+-----------------+--------------------+
| 1| [ ,entrepreneurs]|
| 2|[eat, , human, poop]|
| 3| [Manafort, case]|
| 4| [Sunar, Khatris,... | <apache-spark><pyspark> | 2019-12-27 13:12:03 | LQ_CLOSE |
59,502,524 | Python is not recognized as internal or external command | <p>even though i have added the path variable i am unable to run the command </p>
<p>cmd <a href="https://i.stack.imgur.com/lfi7U.png" rel="nofollow noreferrer">1</a></p>
<p>path variable
<a href="https://i.stack.imgur.com/daf87.png" rel="nofollow noreferrer">2</a></p>
| <python><cmd> | 2019-12-27 15:01:17 | LQ_CLOSE |
59,503,468 | Prevent bootstrap form to submut with "Enter" | I can not prevent the form to submit if the user press `ENTER` on an input. I found [that way](https://stackoverflow.com/questions/895171/prevent-users-from-submitting-a-form-by-hitting-enter) but I have some taginputs that need to trigger the `ENTER` key to allow free values.
Here is a snippet with the code.
**Q... | <javascript><jquery><forms><form-submit><enter> | 2019-12-27 16:28:56 | LQ_EDIT |
59,504,264 | Downcasting a slice of interfaces to a sub-interface slice | <p>I'm trying to get better at using interfaces in Go to describe specific functionality, and using interface composition to write better, more understandable code. I ran into this problem which seems like it would be a common use case of go interfaces, yet I can't seem to figure out the proper syntax to use for this a... | <go> | 2019-12-27 17:45:40 | LQ_CLOSE |
59,505,676 | How can I call a method from another class with constructors? | <p>I have two classes with a constructor. How can I call a method from one class to another?</p>
| <java> | 2019-12-27 20:21:06 | LQ_CLOSE |
59,505,953 | Can anyone help me with the below code as it is working fine without flask in local system but not with FLASK? | <p>Code is running fine with local system but I'm getting the following error whenever I try to submit data to my Flask form:</p>
<p>Error: Method Not Allowed The method is not allowed for the requested URL.</p>
<p>Relevant parts of my code are as follows:</p>
<pre><code>pytesseract.pytesseract.tesseract_cmd = 'C:\\... | <flask><jupyter-notebook><python-tesseract> | 2019-12-27 20:56:59 | LQ_CLOSE |
59,505,966 | Confirmation Email for publishing pdf | <p>I have a question about developing a webapi. I want to send someone an email with an confirmation Link and If he clicks on it he should be redirected to a thanks page and get a second email with a pdf. </p>
<p>Unfortunatly I have no idea how to create the confirmation link. I can use every web language as php and n... | <php><node.js><html-email><email-confirmation><webapi> | 2019-12-27 20:57:56 | LQ_CLOSE |
59,508,036 | Cannot invoke equals(string) on the primitive type char | <p>In the if statement in my User class it says cannot invoke equals(String) on the primitive type char what is the problem?</p>
<p><a href="https://i.stack.imgur.com/R4lDe.png" rel="nofollow noreferrer">My rock paper scissors code</a></p>
| <java><if-statement><project> | 2019-12-28 04:10:47 | LQ_CLOSE |
59,508,277 | Hi everyone, when i make the math of any number * 1% it gives me a long number, i wanted to cut it down to 2 decimal C# WPF conversion | <p>My question here is how can i convert the result of the math into a two decimal result?{
private void BtnAjoutInteret_Click(object sender, RoutedEventArgs e)//When i press the ok button</p>
<pre><code> try
{
for (int i = 1; i < clients.ListesClients.Count; i++)// For all the bank c... | <c#><wpf> | 2019-12-28 05:03:47 | LQ_CLOSE |
59,509,247 | Why is my Javascript Switch Statement is not working? | <p>So, firstly i wrote the input prompt to achieve data ( don't know what kind of data is this? Number? ) then i calculate it with function and return it. I intend to categorize the calculation result and return it to user as an comment and status. But it won't work. Is it because the variable i used isn't right and th... | <javascript> | 2019-12-28 08:21:47 | LQ_CLOSE |
59,509,602 | JSON to C# class issue | <p>I'm new to JSON and I'm trying to convert JSON data to C# class, but I always get errors when converting to C# entity class. Can someone tell me how to properly convert the following JSON data to C# class? Thank you very much! orz</p>
<pre><code>[
{
"place_id":121943890,
"licence":"Data © OpenSt... | <c#><json> | 2019-12-28 09:23:29 | LQ_CLOSE |
59,509,863 | In ES6, export let m = 1; and m =1 expoort m ; why the former is true, the latter is false? | ```
export let m = 1;
```
```
let m =1;
expoort m;
```
I know the export of ES6 Module need to be an interface. The former export an interface,and the latter export number 1.
I want to know why the former export an interface? I guess priority of operations, but I am not sure.
Thanks.
| <javascript> | 2019-12-28 10:02:54 | LQ_EDIT |
59,510,005 | How to link one JS file to two HTML files? | <p>I have two HTML files, both are linked to one JS file. The first HTML file can be manipulated by the js but the other way around for the second one. Does this mean I need separate JS files for the two? </p>
| <javascript><html> | 2019-12-28 10:23:36 | LQ_CLOSE |
59,510,084 | How to display an element on hovering a different element | <p>I know this question has been asked many times but I could not find the answer based on my requirement. The screenshot here is from flat icon. So when i hover an icon two icons appear which I can click. How to achieve that?<a href="https://i.stack.imgur.com/XquMH.jpg" rel="nofollow noreferrer"><img src="https://i.st... | <html><css> | 2019-12-28 10:33:38 | LQ_CLOSE |
59,510,225 | create a sitting arrangement using javascript(node.js) | <p>I have given a row of seats. Each seat is either occupied by a woman (denoted by xx) or a man (denoted by xy).</p>
<p>The objective is to find the minimum number of seat exchanges required such that the men and women are seated alternately.</p>
<p><strong>Input Format</strong></p>
<p>The first line of input consi... | <javascript> | 2019-12-28 10:51:54 | LQ_CLOSE |
59,510,556 | Why is my javascript calculator not working? | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Calculator</title>
<style>
input
{
height:100px;
width:150px;
border-radius:10px;
border-style:none;
background-color:black;
color:white;
}
... | <javascript><html> | 2019-12-28 11:42:52 | LQ_EDIT |
59,510,604 | opening directory without know its name : Linux shell | Im writting a script in which user inputs the directory in which he wants to find a specific string inside .txt files, but I dont know how to open every directorys inside the given directory withot knowing their names.
For example this is a directory which user specifies:
Project/
AX/include/
... | <linux><bash><shell><directory-listing> | 2019-12-28 11:48:33 | LQ_EDIT |
59,513,562 | Why does Python return this? | <p>If <code>my_string = "This is MY string!"</code>, why does <code>print(my_string[0:7:5])</code> return "Ti" and not
"T i" because there is a space between 'This' and 'is'?</p>
| <python><python-3.x> | 2019-12-28 18:08:22 | LQ_CLOSE |
59,514,158 | Can i use Meteor.js WITHOUT any React and Angular and Blaze? I want use my own library | <p>Can i use Meteor.js <strong>WITHOUT</strong> any React and Angular and Blaze? I want use my own library</p>
| <angular><reactjs><user-interface><blaze> | 2019-12-28 19:23:47 | LQ_CLOSE |
59,514,307 | How to make javascript execute a php file | <p>In where do i add when the timer gets to 0 it exectues a php file for example joined.php and how would i make it so that it also counts days</p>
<pre><code> <script>
var myreset = [21,37,00]; // at what time to reset - 19:40:00
var mycountdown = startCountdown();
function startCountdown(){
var enddat... | <javascript><php> | 2019-12-28 19:43:12 | LQ_CLOSE |
59,515,884 | What goes in to the parentheses of studentList.addStudent()? | <p>So I have a <strong>GUI</strong> class with the <code>addStudent()</code> method that is meant to call the method: <code>addStudent(Student aNewStudentObj)</code> of the <strong>Manager</strong> class to then create an object of the <strong>Student</strong> class using the information inputted by the user. This obje... | <java><linked-list> | 2019-12-28 23:55:50 | LQ_CLOSE |
59,515,929 | Create Shapes on a website given an input in Javascript | <p>Suppose I have an array in Javascript with integer values: <code>[10, 20, 30, 40, 50]</code>. My goal is to have rectangles side by side that have a width of 10 pixels and a height of the pixels specified in the array. In this case, I would have a rectangle 10 pixels by 10 pixels. Right of the 10x10 rectangle is a r... | <javascript><html><css> | 2019-12-29 00:08:16 | LQ_CLOSE |
59,516,654 | Some array elements do not engage in newly chunked, different string length element array | I am trying to convert a string array into new string array, changing the word count of each elements by appending sibling items accordingly. But the problem I am having is some part of previous array is not converting as required.
**Here is my code so far :**
```
$text_array = ['He needs to cultivate in order', ... | <php><arrays><chunks> | 2019-12-29 03:29:00 | LQ_EDIT |
59,521,129 | Rolling Regression OLS Statsmodels | https://www.statsmodels.org/dev/examples/notebooks/generated/rolling_ls.html
So running the
from statsmodels.regression.rolling import RollingOLS
command
but says module
ModuleNotFoundError: No module named 'statsmodels.regression.rolling'
anyone else having this problem? | <python><statsmodels> | 2019-12-29 16:20:23 | LQ_EDIT |
59,521,936 | i have a list index of range eror | This code work for the first line in the document but fail in the second trial , and i don't know why . i tied to see in similar question but i don't found solution
```
carac=":"
fichier = open("test", "r")
for i in range(2):
time.sleep(0.5)
chaine = fichier.readline().split(carac)
print(chaine... | <python><selenium> | 2019-12-29 17:59:46 | LQ_EDIT |
59,527,370 | getting java.lang.IllegalArgumentException: width and height must be > 0 error while initializing Mat in android | I am trying to initialize Mat and this is my code
Mat imgRgba = new Mat();
final Bitmap bitmap =
Bitmap.createBitmap(imgRgba.width(), imgRgba.height(), Bitmap.Config.RGB_565);
Utils.matToBitmap(imgRgba, bitmap);
I have tried this too
Bitmap.createBit... | <android><opencv><mat> | 2019-12-30 07:47:29 | LQ_EDIT |
59,528,014 | Getting an error in a program to encrypt text using Caesar Cipher (Python) | Caesar Cipher is a simple way of encryption that shifts a character a number of places in front of it. For example, ABC with a Rotation of 1 would be BCD. In this program, however, the list of all characters include special characters in a random order, i.e.
```1234567890-=qwertyuiopasdfghjklzxcvbnm,./~!@#$%^&*()_+|... | <python><encryption> | 2019-12-30 08:51:44 | LQ_EDIT |
59,532,664 | failed to deploy Travis CI `Python` | I got the below error when tried to run the build in `travis`. I'm new to travis and following some websites to create the builds for `Python` project.
```=========================== 2 passed in 0.02 seconds ===========================
The command "coverage run -m pytest test.py" exited with 0.
3.23s$ coverage htm... | <python><python-3.x><travis-ci> | 2019-12-30 14:49:15 | LQ_EDIT |
59,534,999 | How to tell PHP to use SameSite=None for cross-site cookies? | <p>According to the article here <a href="https://php.watch/articles/PHP-Samesite-cookies" rel="noreferrer">https://php.watch/articles/PHP-Samesite-cookies</a> and PHP documenation at <a href="https://www.php.net/manual/en/session.security.ini.php" rel="noreferrer">https://www.php.net/manual/en/session.security.ini.php... | <php><session><cookies><session-cookies><php-7.3> | 2019-12-30 18:05:24 | HQ |
59,535,331 | How Display 3 Posts in one Loop ??? Laravel | <pre><code> <?php $i=1; ?>
<?php $dayes = DB::table('days')->where('Doc',$item->id)->get(); ?>
@foreach($dayes as $DAY)
<?php $timess = DB::table('times')->where('days_id',$DAY->id)->get(); ?>
... | <laravel> | 2019-12-30 18:31:48 | LQ_CLOSE |
59,536,464 | Can anyone help me with my SQL statement? | I assigned the code below to an commandbutton.
When i execute it, it returns an error(3061)
CurrentDb.Execute "INSERT INTO tblVerlof(Aanmaakdatum, VerlofDatum, VerlofReden, Aantal, me.VerlofPoule, Notitie, Status)VALUES(now(), me.startdatum, 2, me.txturen, me.verlofpoule, me.txttitel, 2)"
Is someone able ... | <sql><vba><ms-access> | 2019-12-30 20:24:19 | LQ_EDIT |
59,536,489 | AWS Subnet CIDR in confliction | <p>What's IP does not conflict with 172.31.0.0/16. I'm not a networking guy and would like to get this resolved.
I'm getting this error.
CIDR Address overlaps with existing Subnet CIDR: 172.31.0.0/20</p>
| <amazon-web-services><subnet> | 2019-12-30 20:27:04 | LQ_CLOSE |
59,539,391 | Is there any library to convert seconds to days/hours/miniutes in java? | <p>I just want to convert seconds to proper time format.</p>
<p>e.g. if it is 30 seconds, then it is just displayed as 30 seconds.
if it is 80 seconds, it will be displayed as 1 minute 20 seconds
It is similar when it is larger than one hour and one day.</p>
<p>Of course it is simple to implement by myself, just just... | <java><time> | 2019-12-31 03:58:13 | LQ_CLOSE |
59,540,607 | Store \ in java string variable(Special Character) | <h1>I want to store \ in a string variable #</h1>
<p>String var= "\" ;</p>
<pre><code>public class Main
{
public static void main(String[] args) {
String var="\"
System.out.println(var);
}
}
</code></pre>
| <java> | 2019-12-31 06:47:06 | LQ_CLOSE |
59,542,248 | Problem with Python Task that contains variable count | <p>CAN YOU HELP ME WITH THIS PYTHON TASK====1.based on the variable: str1="one two three twenty one thirty one fifty one" and the help of one or more string management methods, you are asked to check if it contains more than twice the string 'one'. If yes, then the program should say "More than Two". IF not , then the ... | <python> | 2019-12-31 09:38:19 | LQ_CLOSE |
59,543,150 | Can I configure my browser to let my web app receive a right-click instead of the browser itself? | <p>I want to be able to use a right-click in a single page (react) app. Every time I right click, the browser handles it instead of letting my app handle it. This seems to happen with Chrome and Safari. Is there a way to tell either browser to pass the right-click to the web app?</p>
| <reactjs><browser><right-click> | 2019-12-31 10:56:42 | LQ_CLOSE |
59,543,209 | Sorting Multidimensional slices in golang | Wanted to sort a nested slice (asc to desc) based on int values ,however the slice remains unaffected.
Below is the short snippet of what I was trying.
```
type Rooms struct {
type string
total string
}
CombinedRooms := make([][]Rooms)
// sort by price
for i, _ := range CombinedRooms {
sort.... | <sorting><go> | 2019-12-31 11:02:07 | LQ_EDIT |
59,543,371 | wpf binding not refreshing if equals and gethashcode (NO IPROPERTYCHANGED NEEDED!) | <p>My WPF binding is not working because my viewmodel has overwritten Equals and GetHashCode. If i comment it out (region Object-Stuff), everything works fine.</p>
<p>Further info about my reasons: All my viewmodels have an Id. I load data with Id=1 and set the datacontext. Later i reload the data (same id, but other ... | <wpf><binding><equals><gethashcode> | 2019-12-31 11:17:07 | LQ_CLOSE |
59,543,782 | Increment State Count in Mapping Function | Goal is to increment the count in the mapping function while keeping track of the new value in state. "charlie" isn't updating, even on re-renders of the component, and subsequent runs of mapData. Meanwhile, every re-render/run of mapData continues to print the updated count outside "charlie".
My code looks roughly li... | <javascript><reactjs><react-hooks> | 2019-12-31 11:52:43 | LQ_EDIT |
59,547,011 | Why is Hackerrank showing segmentation error for the following C code? | <p><strong>Hackerrank Problem Description:</strong></p>
<p>You are given the pointer to the head node of a linked list and an integer to add to the list. Create a new node with the given integer. Insert this node at the tail of the linked list and return the head node of the linked list formed after inserting this new... | <c> | 2019-12-31 17:32:03 | LQ_CLOSE |
59,547,407 | What does "*&n" mean in double-pointer c++? | <p>here it is the code that the teacher gave me to solve in a quiz. can you explain to me what is the *&n do or print out?</p>
<p>first of all: is it even possible to have such a thing?</p>
<pre class="lang-cpp prettyprint-override"><code>int x = 5;
int* p = &x;
int** n = &p;
std::cout << *&n;
... | <c++> | 2019-12-31 18:23:19 | LQ_CLOSE |
59,547,630 | What are the random non-hexadecimal characters in a sequence of hexadecimals? | <p>I have a sequence of characters from an rdf file I opened with python.</p>
<pre><code>...\x00\x08\x00\x00\x80\xdc\xc0\x00\t{\x00\x00\xa3p\x00\xe2\xc00...
</code></pre>
<p>I understand that these are hexadecimals. However, there are some that do not compute as hexadecimals, such as xa3p. What are they and why are t... | <python-3.x><hex><rdf> | 2019-12-31 18:56:16 | LQ_CLOSE |
59,548,189 | Regex to test an expression | <p>I have this expression:</p>
<pre><code>/width*$/.test(oldStyle)
</code></pre>
<p>And oldStyle has this inside of it:</p>
<pre><code>width:90%;height:inherit;padding-left:20px;
</code></pre>
<p>The expression should return true as i have tested it in a online JavaScript regex expression tool.</p>
<p>Why is this ... | <javascript><regex> | 2019-12-31 20:22:28 | LQ_CLOSE |
59,548,488 | How to take particular key value pairs from json array | <p>I have a large amount of data in JSON array format.
A shorter version of which is as shown below</p>
<pre><code>[{"Item": "Item1", "Unit CP": 100, "Unit SP": 150, "Quantity": 1, "TotalSP": 150},
{"Item": "Item2", "Unit CP": 50, "Unit SP": 70, "Quantity": 7, "TotalSP": 490},
{"Item": "Item3", "Unit CP": 1000, "Unit ... | <javascript><arrays><json> | 2019-12-31 21:14:50 | LQ_CLOSE |
59,549,056 | If number have inside number string | <p>i want to find stable number if have inside long number in database with php.</p>
<p>For example: </p>
<pre><code>Stable number: 150
Number list: 1568940, 545198650, 15580
</code></pre>
<p>Can i find number of inside that number list. </p>
<p>Like this: </p>
<pre><code> (1)(5)6894(0) = 150 have that 150 stri... | <php><mysql> | 2019-12-31 23:11:00 | LQ_CLOSE |
59,549,059 | The server cannot started because one or more of the ports are invalid [TomCat in Eclipse] | <p>When i open my file list-student.jsp. I experienced the following error:
"Starting Tomcat v9.0 Server at localhost has encountered a problem. The server cannot be started because one or more of the ports are invalid. Open the server editor and correct invalid ports."</p>
<p>I tried to go server tab and change the p... | <jsp><tomcat><servlets> | 2019-12-31 23:11:45 | HQ |
59,549,226 | What does control input do? | <p>I’m trying to learn vanilla JavaScript using JavaScript30 and on a video I was watching, there was a statement saying document.queryselectorAll(’.controls input’); I’ve tried looking this up, but I cannot find it anywhere. Can anyone tell me what this means?</p>
| <javascript><css> | 2020-01-01 00:02:06 | LQ_CLOSE |
59,550,699 | I don't know what i did wrong, the program returns some weird and incomplete string | I was tring to to write a function that deletes whitespaces from a string but the output is not reasonable at all. I need help fam!
char * deleteSpace(char *String, int n) {
int i;
char *withoutSpaces;
withoutSpaces = calloc(n, sizeof (char));
for (i = 0; i < n - 1; i++) {
if (St... | <c><arrays><string><algorithm> | 2020-01-01 07:22:24 | LQ_EDIT |
59,551,022 | whats does if(variable ) means in c language? | I m currently preparing for gate , I have come across a question
#include<stdio.h>
main()
{
static int var=6;
printf("%d\t",var--);
if(var)
main();
}
output is 6 5 4 3 2 1
i wanna know why it terminated after 1??
| <c><if-statement> | 2020-01-01 08:31:58 | LQ_EDIT |
59,553,010 | Regex for specific characters | <p>I'm trying to refactor this piece of code:</p>
<pre><code>if(!RenamePCTextBox.Text.Any(c => c == '\\' || c == '/' || c == ':' || c == '*' || c == '?' || c == '"' || c == '<' || c == '>' || c == '|' || c == '.' || c == ' ' || c == ',' || c == '~' || c == '!' || c == '@' || c == '#' || c == '$' || c == '%' |... | <c#><regex> | 2020-01-01 13:38:05 | LQ_CLOSE |
59,553,430 | I want to display variables in table format that should be perfectly align in python | <p>I want to make a table in python</p>
<pre><code>+----------------------------------+--------------------------+
| name | rank |
+----------------------------------+--------------------------+
| {} | [] |
+-----------... | <python> | 2020-01-01 14:42:22 | LQ_CLOSE |
59,553,720 | Error when trying to install a module using pip, | I am attempting to download the discord.py module using pip, but I keep getting a syntax error like this ```>>> py -3 -m pip install -U discord.py
File "<stdin>", line 1
py -3 -m pip install -U discord.py
^
SyntaxError: invalid syntax``` I made sure pip was installed and tried downloading the mod... | <python> | 2020-01-01 15:30:44 | LQ_EDIT |
59,554,242 | Is it possible to do this? | Admittedly im not a great coder
------------------------------------
So Im making a project for school and Its a dice game, This snippet of my code is like a catch 22
I need to define a variable otherwise it flags, so I do this but then every time the button is run it changes the value to zero instead of increas... | <python> | 2020-01-01 16:40:57 | LQ_EDIT |
59,554,473 | Files missing in Google Cloud Platform | <p>I'm surprised to learn that all my files under the home directory got deleted. Please help.</p>
<p>This is on my Google cloud service. I use to see files via ssh and/or gcloud command line. Now, I see all files under my HOME gone.</p>
<p>That's very disappointing.</p>
| <file><google-cloud-platform> | 2020-01-01 17:09:55 | LQ_CLOSE |
59,555,185 | How do I correctly use GGPLOT in R? | <p>I am trying to plot a CSV file in GGPLOT in R, but I'm still very new to R… </p>
<p>The goal is to plot a bar chart with countries on one axis (Column A(Country) and a comparison of 4 values (Columns b-e (col.b, col.c, col.d, col.e) </p>
<p>right now I have: </p>
<pre><code>library(ggplot2)
dataset <- read.cs... | <r><ggplot2> | 2020-01-01 18:47:36 | LQ_CLOSE |
59,555,244 | Javascript - combine two arrays in every possible way | <p>If I have two arrays:</p>
<pre><code>var arrOne = ['a','b','c']
var arrTwo = ['1','2','3']
</code></pre>
<p>How can I get a new array from this that will mix every value like so:</p>
<pre><code>var result = ['a1','a2','a3','b1','b2','b3','c1','c2','c3']
</code></pre>
| <javascript> | 2020-01-01 18:57:27 | LQ_CLOSE |
59,555,578 | How can I get a specific field within my table where the ID is the max id? | <p>I'm not sure how to create an sql procedure to get a JobID as LastJobID where the ID is the max.</p>
<p>My procedure looks like this as of right now : <code>`SELECT MAX( ID ) as LastJobID FROM jobs;`</code></p>
<p>But I need something like this: <code>`SELECT JobID as LastJobID FROM jobs where MAX( ID );`</code></... | <mysql> | 2020-01-01 19:44:40 | LQ_CLOSE |
59,555,840 | How do I extract a javascript variable from a .js file with python? | <p>I'm trying to extract the JSON data in the variable chartData. This is stored in a .js file which generates a chart for my solar system. I want to extract this data so i can store it in a separate database.</p>
<p>However I cant seem to find a way how to extract the JSON data with python.</p>
<p>This is the .js fi... | <javascript><python> | 2020-01-01 20:23:09 | LQ_CLOSE |
59,556,049 | Just starting looking into python, Want to as about beautiful soup | So I was trying to get the web crawling element in Google drive. What I want is the date the file was modified.
And I use F12 to find the elements, got the following selector
body > div.ndfHFb-c4YZDc.ndfHFb-c4YZDc-AHmuwe-Hr88gd-OWB6Me.ndfHFb-c4YZDc-vyDMJf-aZ2wEe.ndfHFb-c4YZDc-i5oIFb.ndfHFb-c4YZDc-TSZdd > div.ndfH... | <html><beautifulsoup><python-requests> | 2020-01-01 20:58:10 | LQ_EDIT |
59,556,363 | Handling window pop up with selenium | <p>I am currently working on a bot that logs into instagram, I currently have the script to log in and turn on notifications but when then I get a window pop the code does not click on allow. I have been stuck for quite some time. Thank you in advance for your help. <a href="https://i.stack.imgur.com/M1P9L.png" rel="no... | <python-3.x><selenium><selenium-webdriver> | 2020-01-01 21:46:19 | LQ_CLOSE |
59,556,527 | Can someone explain me this? It's about arrays and some handling of an if statement inside of array | <p>I don't understand the part of the if statement in this piece of code.
And is it possible to write this with using if and else if?</p>
<pre><code>int klein(int A[], int n, int& i, int X)
{
int j;
int kl = -1;
i = -1;
for(j = 0; j < n; j++)
{
if(A[j] > X && (kl == -1 ... | <c++> | 2020-01-01 22:14:40 | LQ_CLOSE |
59,556,658 | Python Class property question about how check if the name is isalpha() in the setter? | can anyone help me out with this requirement? I have been trying to fix it, but not succefful.
I would really appreciate if someone can help me out thanks.
name: property returns capitalized name and setter checks the name isalpha() and if true store the name in the object otherwise store ‘Unknown’
eid: proper... | <python><python-3.x><properties> | 2020-01-01 22:35:47 | LQ_EDIT |
59,557,427 | Quick Pandas Exercise | <p>I have a dataset like this:</p>
<pre><code>ID Type Value
01 A $10
01 B $12
01 C $14
02 B $20
02 C $21
03 B $11
</code></pre>
<p>I want to convert this into:</p>
<pre><code>ID TypeA TypeB TypeC
01 $10 $12 $14
02 $0 $20 $21
03 $0 $11 $0
</code></pre>
<p>The only solution that I have... | <python><pandas> | 2020-01-02 01:21:57 | LQ_CLOSE |
59,557,597 | Initialized array by indices of elements in ascending order | <p>I have 2 arrays in C program. A1, A2 with size 1500, 780 respectively. Type of each array is
integer (int). How can I initialized A1 by the indices of elements in ascending order, A2 - by the indices too, but in descending order?.</p>
<pre><code>int A1[1500]
int A2[780]
</code></pre>
| <c> | 2020-01-02 01:58:03 | LQ_CLOSE |
59,557,688 | Why does golang time function fail on certain dates | <p>I have checked the other suggestions for fixing this problem and they don't work.</p>
<p>The current code seems to work until you enter a different date and then I get random failures like below.</p>
<p>The code is as follows:</p>
<pre><code>yy, mm, dd = 11, 27, 2019
s_yy, s_mm, s_dd = 11, 1, 2019
e_yy, e_mm, e_d... | <go> | 2020-01-02 02:15:59 | LQ_CLOSE |
59,558,072 | I want a table cell to completely cover up the entire screen in ios Swift? | The problem here is I want the UITable cell to fully take the view of the cell and once I swipe down the other cell has to appear. What I have here is the other cell also appears on the same UITable screen. As you can see the title of the other news also can be seen in the UITableView. I want the first data to cover up... | <ios><swift><uitableview> | 2020-01-02 03:43:26 | LQ_EDIT |
59,559,083 | How to use string C data type in PIC C Compiler | How to use `string` in [CCS](https://ccsinfo.com/forum/viewtopic.php?p=205898)?
I tried:
```
#include<string.h>
```
>But I still have error with it:
```
string myString = "My String"; // Error
``` | <c++><c><pic> | 2020-01-02 06:20:05 | LQ_EDIT |
59,559,433 | Java is the front end technology and php is the back end technology. how could I connect both? | <p>My company is suppose to create an android application along with it's website. I will be handling the website part. So I need to use php as both app's and site's back end. For site i know to do with php. But for app, how could i connect java and php? </p>
| <java><php><backend> | 2020-01-02 06:55:21 | LQ_CLOSE |
59,561,032 | rails, how to get specific string from a sentences | i want to ask what is best method on rails to get specific string from a sentences?
example i have
"My working time is: 3 hours and the job is finished"
"Bla2 time is: 6 hours and the job is still pending"
"Bla bla bla time is: 7 hours and the job is finished"
i want to take the number after words "time is: "
... | <ruby> | 2020-01-02 09:32:12 | LQ_EDIT |
59,561,105 | create a variants of products | Im looking for an **efficient way** to group a different types of products variants.
I have this json file, and inside each product I have an different type of attributes.
**attributes:** [
{title: color, labels: [{title: red}, {title: blue}]},
{title: brand, labels: [{title: nike}, {title: rebook}]},
{tit... | <javascript><json><object> | 2020-01-02 09:37:40 | LQ_EDIT |
59,561,158 | How git manage to store the files branch wise? | <p>Suppose, In my repository, I have two branches i.e Master and development. I've created the development branch from master and now I added some new files to the development branch and after committing those changes on local, I switched to the <strong>Master branch</strong>. Now, here we don't see the new files which... | <git> | 2020-01-02 09:42:20 | LQ_CLOSE |
59,562,621 | Retrieving Data from PHP table | <p>I have data in MYSQL database and I want to display a record per page on my website. How would I do this?</p>
<p>The URL would correspond to each record</p>
<p>Thank you!</p>
| <php> | 2020-01-02 11:32:14 | LQ_CLOSE |
59,563,034 | Pythod Code to Print multiple user input string in one string | <p>I have a python code below:</p>
<pre><code>import os
import glob
NumberofAlphabets = input('Enter Number of Alphabets:')
NF = int(NumberofAlphabets)
Input = 1
while Input < NF+1:
AlphabetName = input('Enter Alphabet Name:')
tempF += AlphabetName
Input += 1
print(tempF)
</code></pre>
<p>i want result... | <python> | 2020-01-02 12:01:22 | LQ_CLOSE |
59,565,141 | Do importable libraries exist for common mathematical operations (e.g. min, max and mean) in C or C++? | <p>I'm a Python programmer starting to learn C / C++. One issue I'm finding, however, is that the C languages seem to lack a lot of "basic" mathematical operations. For example, even finding the min, max or mean of an array.</p>
<p>Consider finding the maximum value of an array as an example. I appreciate this is an "... | <python><c++><c><max><shared-libraries> | 2020-01-02 14:37:34 | LQ_CLOSE |
59,565,871 | How can I validate email in this PHP contact form? | <p>is there a way to validate an email in this form without rewriting it completely? It'd be great if I could just add something to this. I'm new to PHP and this form is taken from mmtuts video. If you know how to help, I'd be glad if you did.</p>
<pre><code><?php
if (isset($_POST['submit'])) {
$name = $_POST[... | <php><validation><email><contact-form> | 2020-01-02 15:28:10 | LQ_CLOSE |
59,566,508 | How should we upgrade from AngularJS 1.6.4 to the latest Angular version? | <p>I'm working on a quite large enterprise software application (web-based). We're using Angular 1.6.4 since ... forever. Due to different reasons, we want to / have to upgrade from this old version to a new Angular version. I'm thinking of Angular 8 (?).</p>
<p>First off, I noticed that there is Angular-CLI. Is this ... | <javascript><html><angularjs><angular> | 2020-01-02 16:15:27 | LQ_CLOSE |
59,568,452 | Swift Detect Every Time Device Orientation Changes | <p>I'm creating an iPhone game in Xcode with the latest version of Swift. Why I'm asking this question is when the user flips the phone and changes the orientation, is there any way I can detect that, so I can change the placing, size, etc. of things?</p>
| <swift> | 2020-01-02 18:44:16 | LQ_CLOSE |
59,568,511 | Cannot convert LocalDate to Timestamp | <p>I'm trying to convert a LocalDate to Timestamp but it keeps saying: <code>valueOf(java.lang.String) in Timestamp cannot be applied to (java.time.LocalDateTime)</code></p>
<p>What I'm doing:</p>
<pre><code>LocalDate date = LocalDate.of(year, month+1, day);
Timestamp ts = Timestamp.valueOf(date.atTime(LocalTime.MIDN... | <java><timestamp><localdate> | 2020-01-02 18:48:52 | LQ_CLOSE |
59,568,983 | I need complete C++ Implementation of General Tree with arbitrary number of nodes | I am googling from the last two days to find complete C++ implementation of general tree but I only found the binary tree implementation that is why I am posting my question here. | <c++><data-structures><tree> | 2020-01-02 19:32:13 | LQ_EDIT |
59,569,078 | Get Azure DevOps server (on-premise) data using Power Bi desktop connector | I want to show analytics using power bi desktop from my azure devops server which is deployed on premise but unable to connect while the error shows analytics extension is not available for on premise server of devops. I also found the Odata endpoint method but is it possible to do it using connector? Please suggest. | <azure-devops><powerbi> | 2020-01-02 19:40:34 | LQ_EDIT |
59,570,474 | How to increase The maximum size of one packet in MySQL Server | <p>**While trying to import full world database to mysql server i have occurred error attached , **
<a href="https://i.stack.imgur.com/NAQON.png" rel="nofollow noreferrer"> Screen</a>
@Bogir[rus] have found solution for Me but i still want to share how to resolve this problem.</p>
<p>Open mysql shell and enter SET G... | <mysql> | 2020-01-02 21:50:16 | LQ_CLOSE |
59,570,532 | How to remove all fields from a Javascript object that match a regex? | I have the following JS object:
let obj = {
'a': 1,
'a-gaboom': 1,
'b': 1,
'b-gaboom': 1
}
I want to delete all fields that end with "gaboom". I could do it with `delete obj.a-gaboom; delete obj.b-gaboom`, but is there a way to do it with a regex? | <javascript><regex><algorithm><object> | 2020-01-02 21:56:54 | LQ_EDIT |
59,571,268 | How can i find excactly how many lowercases come after an uppercase? | For example: "He Is a small man" has 2 lowercases come after an uppercase. I have tried google but i haven't found anything similar there. | <python> | 2020-01-02 23:21:11 | LQ_EDIT |
59,571,302 | expand an array of arrays to an array of objects | <p>I have an array of arrays and I need to make the first member in each nested array into a key, and make an array of objects from the rest. Where each odd member after the first is key and an even member is value.</p>
<p>See the example: note that the original nested arrays always have an odd number or members (or e... | <javascript> | 2020-01-02 23:25:48 | LQ_CLOSE |
59,573,246 | I want to know about print type explicitly | <p>Print type like %s, %d, %x, %p, ...
I understand these things roughly. But when I have to choose one of these, I can't pick similar two of these. For example, when I try to print address of variable, I can have %p or %08X, they will be certainly different in special case. I want to know definition of these print ty... | <c> | 2020-01-03 04:34:57 | LQ_CLOSE |
59,574,228 | How to randomise text in c#? | <p>I want to make a c# program which generates random numbers, but I can't find how to.
The code I've come up with so far:</p>
<pre><code>using System;
namespace DigitalDice
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("[1]");
}
}
}
</code></pre... | <c#> | 2020-01-03 06:39:43 | LQ_CLOSE |
59,576,606 | How to unzip abc.txt.gz file in react js? |
- hi i am having problem to read a .gz file compressed by *php code:*
- i am using $compressed = gzcompress('Compress me', 9); in php for
compressing in .gz
- In php i am able to uncompress, but *i dont know if there is any way
to read .gz file in react js*. I am new to this. **Thanks in advance.** | <reactjs> | 2020-01-03 10:07:05 | LQ_EDIT |
59,578,071 | How to extract linked images out of a html page with PHP/regexp | <p>I'm looking for some PHP code or a rexeg expression (i'm not that skilled about regexp) to extract from a html file just the linked images. In other words, just the chunk of html that looks like:</p>
<pre><code><a href=...><img src=...></a>
</code></pre>
<p>I know how to extract images and links ... | <php><html><regex><image><extract> | 2020-01-03 11:46:50 | LQ_CLOSE |
59,578,789 | I want to check whether the user has entered something | <p>I am facing a problem that is is follows:
a] How to check whether the user has entered something against the scanf statement.
b] How to run a part of code repeatedly without goto function or what is the replacement for goto.</p>
| <c> | 2020-01-03 12:38:19 | LQ_CLOSE |
59,578,857 | Regex on numbers - python | <p>I am new to regex and I need some help please. I have a dataframe in which I got column with amount, which is in most cases something like 869,850.0 and I need only rows where the number is ending with 950.00 or 999.00 I dont need something like 999.1 . I did not came up with any idea how to filer these values in pa... | <python><regex><pandas> | 2020-01-03 12:42:46 | LQ_CLOSE |
59,579,700 | How to write very complex SQL in a clean and maintainable way? | <p>I'm in the database migration project.</p>
<p>I have to write very complex SQL in a maintainable way. The previous query is almost spaghetti.</p>
<p>I wanna make a view in the database but I have no authority. </p>
<p>So what I am thinking about is making a bridged database that is from the query result of the da... | <java><sql><oracle> | 2020-01-03 13:47:27 | LQ_CLOSE |
59,579,929 | Branching Systems Differences | <p>There are 3 different branching systems <em>Feature Branch, Release Branch,</em> and <em>Hotfix Branch</em></p>
<p>What is the difference between them and what are they used for?</p>
| <git> | 2020-01-03 14:04:55 | LQ_CLOSE |
59,579,958 | JavaScript How to declare 16 length array with default 0 value quick? | <p><code>let array1 = Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);</code>
how to make like this array with shortest way ? is it possible to make shorter way ?
thank you for your answers.</p>
| <javascript><arrays> | 2020-01-03 14:06:12 | LQ_CLOSE |
59,581,370 | How do I convert a list to Uppercase | I am new to coding and I need help with this coding problem .
my problem is that I need to convert the "letter_guessed" input to lower case ,if its upper case and if the uppercase letter is already exists inside the list as a lower case it will return false but I cant get to do it .
I have tried using isupper(),up... | <python><python-3.x> | 2020-01-03 15:42:22 | LQ_EDIT |
59,581,476 | Why is reinitializing a variable out of method in class is an error? Why cant compiler just read and reassign the value to it? | <p>Like here why reinitializing variable i is an error?</p>
<pre><code>class deleteme
{
int i=5;
i=33;
public static void main(String args[])
{
}
}
</code></pre>
| <java> | 2020-01-03 15:49:51 | LQ_CLOSE |
59,581,515 | String objects and storage | <p>How many objects will be created in the following code and where they will be stored?</p>
<pre><code>String s = "abc"; // line 1
String s1 = new String("abc"); // line 2
String str1 = new String("efg"); //line 3
</code></pre>
| <java><string><heap-memory><string-pool> | 2020-01-03 15:52:52 | LQ_CLOSE |
59,584,551 | If dictionary value exists multiple times in list of dicts, delete specific dict from list | <p>I have a function that returns a list of dictionaries like this:</p>
<pre><code>[{'Status': 'Deleted', 'Name': "My First Test"}, {'Status': 'Modified', 'Name': "My First Test"}]
</code></pre>
<p>As you can see, "My First Test" is in there twice. Normally this wouldn't be an issue, however, based on what I know ab... | <python><list><dictionary> | 2020-01-03 19:51:53 | LQ_CLOSE |
59,585,763 | How much do you have to pay for publishing apps? | <p>I saw you have to pay a developer fee to publish your apps on the google play store and the app store. For the app store you pay $99 and for the google play store $25. But do you have to pay this amount for each app you publish ? Or is this for your account once in a lifetime or do you have to pay this amount each y... | <android><ios><google-play><app-store><publish> | 2020-01-03 21:51:24 | LQ_CLOSE |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.