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,123,830 | How can i scrape member emails from a private group on facebook without being added to the group | I want to scrape emails of the members of a particular group on facebook but I can't see them (the group is private) because I am not a member of the group and I would not accepted anytime soon.
| <facebook><web><web-scraping> | 2019-12-01 08:26:27 | LQ_EDIT |
59,124,470 | how to write comlpete dictionary in existing csv file in loop using python | I want to write the dictionary in existing CSV in the new column within the loop.
My sample code :
`for loop:
keys = []
values = []
dictionary = {}`
for loop:
dictionary = dict(zip(keys,values)
####**write code for inserting dictionary in csv file in first loop.**
My... | <python><pandas><csv><dictionary> | 2019-12-01 10:02:29 | LQ_EDIT |
59,124,611 | Unwrap a list of list | <p>I have this list:</p>
<pre><code>fxrate =
[[['9.6587'], ['9.9742'], ['9.9203'], ['10.1165'], ['10.1087']],
[['10.7391'], ['10.8951'], ['11.1355'], ['11.561'], ['11.7873']],
[['8.61'], ['8.9648'], ['9.0155'], ['9.153'], ['9.1475']]]
</code></pre>
<p>I would like to make a list like this by using Python:</p>
<pr... | <python><parsing><list-comprehension> | 2019-12-01 10:22:59 | LQ_CLOSE |
59,125,594 | Am working on a site using django framework and i got this AttributeError telling me 'str' object has no attribute 'get' | <p>`AttributeError at /polls/ </p>
<p>'str' object has no attribute 'get' </p>
<p>Request Method: GET</p>
<p>Request URL: <a href="http://127.0.0.1:8000/polls/" rel="nofollow noreferrer">http://127.0.0.1:8000/polls/</a></p>
<p>Django Version: 2.0.2</p>
<p>Exception Type: AttributeError</p>
<p>Excep... | <python><django> | 2019-12-01 12:41:34 | LQ_CLOSE |
59,125,782 | When I define a function of reverse. It not only reverses the digits but it prints it thrice. How can I get only one reversed answered? | '''
def reverse_int():
num=(input("Enter a 3-digit number: "))
for number in num:
print (num[::-1])
reverse_int()
'''
| <python><function><loops><for-loop><user-input> | 2019-12-01 13:04:19 | LQ_EDIT |
59,126,043 | Flask-SQLAlchemy import error. "Imported but unused" | <p>I used sqlacodegen to extract the a .py file containing classes of my db tables. I am using pythonanywhere. However for all the imports it is showing that "imported but unused".</p>
<p>You can see though column has been used, it shows the sqlalchemy.Column imported but unused.</p>
<p>Am I doing anything wrong here... | <sqlalchemy><flask-sqlalchemy><python-import><pythonanywhere><sqlacodegen> | 2019-12-01 13:37:13 | LQ_CLOSE |
59,128,625 | Create own widget in C# and add to Table | <p>I learning to create android app in C# (VisualStudio) and I need create table with my own widget.
I upload data for my server SQL. Any idea how can I do this?</p>
<p><a href="https://i.stack.imgur.com/3290t.png" rel="nofollow noreferrer">Presentation</a></p>
| <c#><android><xamarin> | 2019-12-01 18:28:01 | LQ_CLOSE |
59,128,749 | How would I go about having a chat update after loading? | <p>I've tried searching on here for a bit to try and find someone with a similar question. I haven't quite yet gotten into implementing the actual retrieval and insertion into the database for the chat messages but I would like to know ahead of time what I'll need to do. You see, on several websites there is updates do... | <javascript><php><html> | 2019-12-01 18:44:27 | LQ_CLOSE |
59,129,200 | python core programming concepts for beginers | alphabet = 'abcdefghijklmnopqrstuvwxyz'
orig_list = [ "bat", "act", "cat", "rat", "abs" ]
for i in alphabet:
for j in orig_list:
for l in j:
print(l)
I very new to programming and am currently struggling with this concept. So in this example, I am using a for loop and having j iterate... | <python> | 2019-12-01 19:34:22 | LQ_EDIT |
59,132,278 | Please help insertion sort java | int size, i, j, temp;
int arr[] = new int[50];
Scanner scan1 = new Scanner(System.in);
System.out.print("Enter Array Size : ");
size = scan1.nextInt();
System.out.print("Enter Array Elements : ");
for(i=0; i<... | <java> | 2019-12-02 03:25:18 | LQ_EDIT |
59,133,517 | When i want to install the MySQL i faced this issue "root account password" i forgot it | [This is when installation of MySQL and its request the root password but i forgot the password][1]
[1]: https://i.stack.imgur.com/GQl2E.png | <mysql> | 2019-12-02 06:14:30 | LQ_EDIT |
59,135,068 | two and digit output not working in even/odd filter in python | {
def even_odd_filter(oe):
odd_list = []
even_list = []
total = []
for i in oe:
i = int(i)
if i % 2 == 0:
even_list.extend(str(i))
else:
... | <python> | 2019-12-02 08:29:18 | LQ_EDIT |
59,135,718 | Portfolio gallery without "all" filter | <p>I'm currently working on a portfolio gallery, I found one on w3schools: <br><br><a href="https://www.w3schools.com/howto/howto_js_portfolio_filter.asp" rel="nofollow noreferrer">https://www.w3schools.com/howto/howto_js_portfolio_filter.asp</a></p>
<p>My only question is, is it possible to remove the "show all" filt... | <javascript><html><css> | 2019-12-02 09:15:06 | LQ_CLOSE |
59,137,740 | Font-Awesome 5 - CSS Pseudo-elements, how to mirror/rotate icon | <p>I am using css pseudo elements to render icons (<a href="http://jsfiddle.net/4Rakx/4633/" rel="nofollow noreferrer">jsfiddle</a>)</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-css lang-css prettyprint-overri... | <css><font-awesome><font-awesome-5> | 2019-12-02 11:12:47 | LQ_CLOSE |
59,139,456 | Why am I needing to replace List.of() with Arrays.asList()? | <p>I've read <a href="https://stackoverflow.com/questions/46579074/what-is-the-difference-between-list-of-and-arrays-aslist">What is the difference between List.of and Arrays.asList?</a></p>
<p>What I'm not getting is why, after some dependency upgrades in my Maven pom.xml, suddenly all my</p>
<pre><code>List.of(FLIG... | <java><arrays><dependencies><package><java-11> | 2019-12-02 13:01:01 | LQ_CLOSE |
59,141,102 | How do I make a user input of a picture with javascript? | <p>I have been working on my website and cant for the love of god find a way to actualy do this. I tried with but i cant get the picture to upload to my site. I dont know how to acess the information thats in the input. Is it even possible?</p>
| <javascript> | 2019-12-02 14:34:27 | LQ_CLOSE |
59,141,416 | Why using the symbol "$" in Angular | <p><a href="https://i.stack.imgur.com/p7705.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/p7705.png" alt="enter image description here"></a></p>
<p>Based on the picture with the white selection.</p>
<p>I don't understand why you need to use the symbol "$". (<a href="https://www.twilio.com/blog/pr... | <angular><visual-studio-code> | 2019-12-02 14:53:56 | LQ_CLOSE |
59,141,771 | How to add multi users feature to a Delphi app? | <p>Am currently developing a Delphi app for desktop (Data Base: Access) that needs the multi users feature (each user will have his Permissions, history of transactions). </p>
<p><strong>How can i do that ?</strong> </p>
<p>I found <a href="http://sforsuresh.in/implemention-of-user-permission-with-php-mysql-bitwise-... | <database><delphi><ms-access><multi-user> | 2019-12-02 15:13:20 | LQ_CLOSE |
59,146,450 | get codebar from image in python | I need to get the information in this barcode with the python pyzbar library, but it does not recognize it, should I make any improvement before using pyzbar?
[BarCode][1]
[1]: https://i.stack.imgur.com/D8Jk7.jpg | <python><image><opencv><noise-reduction> | 2019-12-02 20:49:16 | LQ_EDIT |
59,146,473 | Error on dump or dd laravel adding a character before result | <p>All request and dumps in laravel add a ^before a result, that's only do that in dd or dump</p>
<p><a href="https://i.stack.imgur.com/Apq0X.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Apq0X.png" alt="exemple of error"></a></p>
<p><a href="https://i.stack.imgur.com/1f26t.png" rel="noreferrer"><img src=... | <php><laravel><laravel-5> | 2019-12-02 20:50:46 | HQ |
59,146,491 | Emergency - I just reset --hard to my initial commit, is there a way to get my previous commits back, or is the whole project lost? | <p>I haven't pushed to a remote repo yet. I am just so used to being able to pull from one that I didn't even think that there may not be a way to go back.</p>
| <git> | 2019-12-02 20:52:36 | LQ_CLOSE |
59,146,517 | How can omit a column that comparing two columns attributes of two different csv files? | Hej stack overflow coders
I am looking for a solution for this case: expecting a solution from coders of python, Mysql and MongoDB.
Case :To extend a column (col_F) in file2 values comparing file 1 and file, by line to line and column to column !!
- We have one relationship between two files(file1 and file2),... | <mysql><python-3.x><better-sqlite3> | 2019-12-02 20:55:12 | LQ_EDIT |
59,146,632 | Why can't I open a tab with a html-button while being on the chrome web store? | <p>I have got a page in my frontend with different buttons, all buttons, on their own, work perfectly, but if I click the button that opens an extension in the chrome web store and click on another button afterwards, the page doesn't open.</p>
<p>Here is an exmaple of what I am talking about. If you click the buttons ... | <javascript><html><google-chrome> | 2019-12-02 21:02:58 | HQ |
59,146,790 | Java Unable to add a new list item | <p>I am generating a list from the Registery using the code below.</p>
<pre><code> List<String> options = Arrays.asList(Advapi32Util.registryGetStringArray(HKEY_LOCAL_MACHINE, key, value)
</code></pre>
<p>Later on in the code I want to add to this list However the add method is not working.</p>
<p>The followi... | <java><list> | 2019-12-02 21:17:18 | LQ_CLOSE |
59,146,854 | React: Parsing error in my functional component | <p>I installed babel-eslint and added <code>"parser": "babel-eslint"</code> but I'm still getting parsing error.</p>
<p>My package.json is:</p>
<pre><code>{
"name": "listassign",
"version": "0.1.0",
"private": true,
"dependencies": {
"bootstrap": "^4.4.1",
"react": "^16.12.0",
"react-dom": "^16.12... | <javascript><reactjs> | 2019-12-02 21:22:02 | LQ_CLOSE |
59,147,032 | Why does my while loop never end in my number guess game in C++? | <p>I am very new to programming and i am just messing around to try getting this guess a number game working, why once you guess the correct number or run of of lives does it continue?
Thanks!</p>
<pre><code> int rand_number{5};
int guess_number{};
int try_number{};
int player_lifes{5};
... | <c++><game-development> | 2019-12-02 21:38:17 | LQ_CLOSE |
59,148,320 | Non-invocable member 'Http SessionState.Timeout' cannot be used like a method | <pre><code> protected void Button1_Click(object sender, EventArgs e)
{
Session["Email"] = "sssaundatti@gmail.com";
Session.Timeout("200");
</code></pre>
<blockquote>
<p>Non-invocable member 'Http SessionState.Timeout' cannot be used like a method</p>
</blockquote>
<pre><code> }
</code></pre>... | <c#> | 2019-12-02 23:49:24 | LQ_CLOSE |
59,148,730 | JAVA - Create object from generic class | I want to create objects from different classes extending the same class. Can you explain how it will work. Examples would be nice.
Thank you.
class MainClass{
private <T extends DataPoint> void someMethod(Class<T> clazz) {
new clazz();//<-- create object of class (did not work)
... | <java><class> | 2019-12-03 00:51:40 | LQ_EDIT |
59,149,866 | How can I update a dataclass in place? | <p>Given two instances of the same dataclass, how can I update the first one in-place with values from the second one?</p>
<p>i.e.</p>
<pre class="lang-py prettyprint-override"><code>@dataclass
class Foo:
a: str
b: int
f1 = Foo("foo", 1)
f2 = Foo("bar", 2)
# Update in place, so that f1.a == f2.a, f1.b == f2... | <python><python-dataclasses> | 2019-12-03 03:40:03 | LQ_CLOSE |
59,149,877 | Visual Studio Code PHP Intelephense Keep Showing Not Necessary Error | <p>After the latest update of PHP Intelephense that I get today, the intelephense keep showing an error for an undefined symbol for my route (and other class too), there is no error like this before and it's bothering me.</p>
<p>Here is the error screenshot :</p>
<p><a href="https://i.stack.imgur.com/DQ8AW.png" rel="... | <php><laravel><visual-studio-code> | 2019-12-03 03:42:02 | HQ |
59,150,967 | Sorted() in lambda's not working as intended - Java 8 | <p>While learning lambda's, I found sorted method is not working as intended.</p>
<p>The following program is giving <code>[1, 33, 2, 4, 5, 11]</code> as an output, however I am expecting a sorted output.</p>
<p>Strange thing is when I replace the <code>[33, 2, 1, 4, 5, 11]</code> with <code>[ 3, 1,2, 4, 5]</code> e... | <java><sorting><lambda><java-8> | 2019-12-03 05:56:30 | LQ_CLOSE |
59,151,771 | Importing pb.go file in a golang project? | How can i import my generated `pb.go` file so I can call the methods in them? I visited all the examples for go and they all seem to import with `github.com/...`
**Example.go**
```
import (
"github.com/go-chi/chi"
chiMiddleware "github.com/go-chi/chi/middleware"
"google.golang.org/grpc"
"net/http"
"githu... | <go><protocol-buffers> | 2019-12-03 07:05:43 | LQ_EDIT |
59,152,169 | integer expected got float(how to fix this issue ) | i am facing this problem in the code below. i couldn't understand how to fix it
please give me a solution
as am a beginner and don't know how to fix it
i can just analyze where it arises
w = curses.newwin(sh, sw, 0, 0)
w.keypad(1)
... | <python><typeerror> | 2019-12-03 07:35:08 | LQ_EDIT |
59,152,224 | Sub-string splitting with php | <p>I have a string 33#math#indonesia#Primary 2, and want to be separated into like this 33,math,indonesia,primary 2 into four parts
<a href="https://i.stack.imgur.com/p3WrU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/p3WrU.png" alt="enter image description here"></a></p>
| <php><string><split> | 2019-12-03 07:39:14 | LQ_CLOSE |
59,152,384 | Java scripts working locally but not on webserver. (Uncaught ReferenceError: jQuery is not defined) | I have a problem for which I have been searching the net for hours, but I can't find the solution.
I wrote a webpage with JQuery included. It runs file locally (as a file), but on the webserver, it keeps giving me an error: 'Uncaught ReferenceError: jQuery is not defined'. When I debug the html when loaded in chrome l... | <javascript><jquery> | 2019-12-03 07:50:20 | LQ_EDIT |
59,153,979 | Social Media Icons disappeared on my Online Website while they appeared on my offline website | <p>Social Media Icons disappeared on my Online Website while they appeared on my offline website:</p>
<p><a href="https://i.stack.imgur.com/PU3l7.png" rel="nofollow noreferrer">Icons appear in yellow circles in my Offline Website</a></p>
<p><a href="https://i.stack.imgur.com/SbSRk.png" rel="nofollow noreferrer">Icons... | <css><font-awesome><offline-browsing> | 2019-12-03 09:32:51 | LQ_CLOSE |
59,155,518 | How do you hide deprecated warnings in vscode for c++? | <p>I'm using commands such as printf() and scanf() a lot, and its really annoynig to declare in each new program that i want to make.</p>
<p>Is there an easy way to just go into the settings, like in the linter or something, and tell vscode to just eat my shorts instead of bugging me with these warnings?</p>
| <c++><visual-studio-code><printf><warnings><deprecated> | 2019-12-03 10:57:30 | LQ_CLOSE |
59,156,203 | How to handle and get values from dynamic tags from xml file in VBA macro | I have an xml file with 3 levels. Some of the tags are dynamic.*(Please check below xml file)*
I have to validate whether the tag "price" is present in all nodes or not and also need to get value of "price tag". I also need to fetch a value of every node present in xml file.
**My final outcome should be like below ... | <excel><xml><vba> | 2019-12-03 11:35:45 | LQ_EDIT |
59,156,546 | How do you create an Android View Pager with dot Indicator with Number? | Probably many of you Also Me have problem with creating ViewPager with bottom dots With Number, like this:
[![enter image description here][1]][1]
[1]: https://i.stack.imgur.com/832wV.png
How do you create such an Android ViewPager With Dot and Number? | <android><android-viewpager><viewpagerindicator> | 2019-12-03 11:55:08 | LQ_EDIT |
59,158,700 | How to Move Button Text? | <p>Button text by default is centered horizontally and centered vertically. How do you vertically align the button text to the top? </p>
<p>I've inspected the element and it has 0 padding. </p>
<p>vertical-align: text-top; does not work.</p>
| <html><css> | 2019-12-03 13:54:30 | LQ_CLOSE |
59,159,063 | Unable to insert a row into my Bug_Project table | <p>I am writing a database in oracle and am i little stuck with the following error code:</p>
<pre><code>Error starting at line : 95 in command -
INSERT INTO Bug_Project(Bug_ID, Project_ID) VALUES (00, 00)
Error at Command Line : 95 Column : 33
Error report -
SQL Error: ORA-00904: "PROJECT_ID": invalid identifier
0090... | <sql><oracle> | 2019-12-03 14:13:35 | LQ_CLOSE |
59,162,999 | How to reverse an array without a loop or creating new array | <pre><code>class ReverseArrayElements1
{
public static void main ( String[] args )
{
int[] values = {10, 20, 30, 40};
int temp;
System.out.println( "Original Array: " + values[0] + "\n" + values[1] +
"\n" + values[2] + "\n" + values[3] );
// reverse the order of the nu... | <java><arrays><reverse> | 2019-12-03 18:07:53 | LQ_CLOSE |
59,163,141 | Raycast in Three.js with only a projection matrix | <p>I'm rendering some custom layers using Three.js in a Mapbox GL JS page following <a href="https://docs.mapbox.com/mapbox-gl-js/example/add-3d-model/" rel="noreferrer">this example</a>. I'd like to add raycasting to determine which object a user has clicked on.</p>
<p>The issue is that I only get a projection matrix... | <three.js><mapbox-gl-js><raycasting> | 2019-12-03 18:19:36 | HQ |
59,163,722 | printing sum of integer and a char* | <p>Consider the c snippet:</p>
<pre><code>#include<stdlib.h>
int main()
{
printf(2+"Roomy");
return 0;
}
</code></pre>
<p>Output given is skipping 1st 2 characters of the string.i.e.,omy </p>
<p>So can anyone explain what is going on with the addition?</p>
| <c> | 2019-12-03 19:01:26 | LQ_CLOSE |
59,163,854 | Can someone help me solve this syntax error? | <p>Hi I am trying the code below on a php page. I keep getting syntax error due to the single quotes around the parameter 'London' of the function openCity() shown below.</p>
<pre><code>echo '<button class="tablinks" onclick="openCity(event, 'London')">London</button>';
</code></pre>
<p>If I remove the si... | <javascript><php><syntax> | 2019-12-03 19:11:09 | LQ_CLOSE |
59,164,552 | how to fox an object not to move out of frame in java | Fix this code in such way that rectangle does not move out of frame bounds
frame size is (400,400)
public void moveRectangle(int dx, int dy) {
rect.translate(dx * RECT_WIDTH, dy * RECT_HEIGHT);
repaint();
} | <java> | 2019-12-03 20:05:53 | LQ_EDIT |
59,164,818 | angular application not updating in realtime when article deleted or created | Angular application doesn't update in real time when I delete
deleteArticle(id){
this.articleService.deleteArticle(id).subscribe((article: Article)=>{
console.log("Article deleted, ", article);
});
}
The article gets deleted but I then need to refresh the browser to see the result?! | <angular><typescript> | 2019-12-03 20:26:24 | LQ_EDIT |
59,166,894 | Boolean not inheriting | <p>I created a boolean method in a super class, but when I call on that method to use it in the sub class, it is giving me a type mismatch error saying it can't convert a boolean to A. I'm probably missing something minor, but is there another way to use the method in an inherited class? </p>
<pre><code>public class A... | <java><inheritance><methods> | 2019-12-03 23:27:27 | LQ_CLOSE |
59,168,380 | How To Secure My Api Used For Customer Login Without Making It Vulnerable To Others | <p>I am very new to development with angularjs.
I am creating a user login system using angularjs.
I created a user login system using angularjs using json data.
But using my api link in controllers is vulnerable to anyone who is inside the source code to my login page.</p>
<p>I want to secure my api to be unvulnerab... | <php><json><angularjs><security><authentication> | 2019-12-04 03:07:23 | LQ_CLOSE |
59,168,503 | how to get string most appears in text file c | <p>how do I get the string that appears most frequently in a text file in c?</p>
<p>I need to create an algorithm that gets a string that has been cited more often in a text file and then writes it, but I have no idea where to start</p>
| <c> | 2019-12-04 03:23:18 | LQ_CLOSE |
59,169,766 | Is there a shortcut way to create a new object if an object is null? | <p>I have some simple code:</p>
<pre><code> public static void InitializeScreenTimeStopwatch()
{
if (ScreenTimeStopwatch == null)
ScreenTimeStopwatch = new Stopwatch();
}
</code></pre>
<p>Is there a simple way that this code can be refactored using the ? operator that's now with the lat... | <c#> | 2019-12-04 05:59:00 | LQ_CLOSE |
59,169,945 | what is the best way to save json in app in iOS? | <p>I am using a json that is very big. it takes lot of time to fetch it as api response. I want to fetch it once and save it locally, so that I can use it in my app. I want to save it in a file but the question is where should I store this file. </p>
| <swift> | 2019-12-04 06:15:52 | LQ_CLOSE |
59,171,638 | how can I use console.log for number division | <p>I try multiple times, but it keeps saying error. Please help</p>
<p>Prompt the user for a number.
Use console.log to display either</p>
<p>This number is divisible by 3 </p>
<p>or </p>
<p>This number isn't divisible by 3 </p>
<p>whichever is correct. </p>
| <javascript> | 2019-12-04 08:18:55 | LQ_CLOSE |
59,172,813 | how to get month from date in javascript? | <p>I'm trying to get month from my date variable.</p>
<pre><code>date=Date.now();
console.log(date);
>>2019-12-04T08:55:48.972Z
</code></pre>
<p>I want to get the month from this date but when I'm using getMonth(), I'm getting error.</p>
<pre><code>console.log(date.getMonth());
error:- getMonth is not a func... | <javascript> | 2019-12-04 09:35:06 | LQ_CLOSE |
59,173,339 | angularjs directive to angular6 component/directive | <p>I have one angularjs directive as part of old application, I would like to convert that into angular6, As I dont know angularJS and currently working with angular6 version, could anybody please help me with pointer ? below is angularjs code.</p>
<pre><code>define(function (require, exports, module) {
'use stric... | <angularjs><angular> | 2019-12-04 10:01:14 | LQ_CLOSE |
59,173,471 | How to convert String to Date with a specific format in java | <p>I have a requirement to convert String to Date (in dd-MM-yyyy format). But dateformat.parse gives the format with seconds. I need to convert the String date to Date in the same format as mentioned above.</p>
| <java><date> | 2019-12-04 10:07:26 | LQ_CLOSE |
59,173,944 | How do I send data from fragment to another activity | <p>In my app, i have an activity that have recyclerview inside a fragment and the recycleview retrieve data from cloud store Firebase. I want to open new activity that will retrieve the data according to the link(that display on the recycler view) user has clicked.
How do i get the data and display it in new activity?... | <java><android><android-fragments><google-cloud-firestore> | 2019-12-04 10:33:29 | LQ_CLOSE |
59,174,342 | Parse error: syntax error, unexpected 'endwhile' (T_ENDWHILE), expecting end of file in C:\xampp\htdocs\demology\errors.php on line 11 | <p>//I get the above error when I try to run my registeration page</p>
<pre><code><div>
<?php foreach ($errors as $error): ?>
<p> <?php echo $error; ?></p>
<?php endforeach; ?>
</div>
</code></pre>
| <php> | 2019-12-04 10:54:57 | LQ_CLOSE |
59,175,128 | Using PHP to split url | <p>I'm trying to split my url and have them in two variables.</p>
<p>For Example:</p>
<p>url = <a href="https://example.com/page@01" rel="nofollow noreferrer">https://example.com/page@01</a></p>
<p>I want to be able split this url into two and create two variable.</p>
<pre><code>$part_1 = example.com;
$part_2 = pag... | <php><split> | 2019-12-04 11:36:10 | LQ_CLOSE |
59,178,070 | why multiple condition in python while loop are not working? | <p>I can't seem to find the problem in code...<br></p>
<pre><code>user_decision = ""
while not user_decision == "yes" or not user_decision == "no":
user_decision = input("You want to Join?: Please answer (yes/no): ")
else:
if user_decision == "yes":
print("test")
else:
print("test")
</code>... | <python><while-loop><multiple-conditions> | 2019-12-04 14:15:38 | LQ_CLOSE |
59,178,329 | How to check if input string is a hash of algorhitms from list: ["md5", "sha1", "sha256"] | <p>I have to write method like this:</p>
<pre><code>boolean isHash(String str){
...
}
</code></pre>
<p>Method should return true if input string is <code>md5</code> hash or <code>sha1</code> hash or <code>sha256</code> hash.</p>
<p>Is it possible to implement such method ?</p>
| <java><cryptography><md5><sha1><sha256> | 2019-12-04 14:29:15 | LQ_CLOSE |
59,178,966 | Two arrays into one Dictinary C# | <p>I would like to create a</p>
<p><code>Dictionary<string, int[]> dict</code></p>
<p>out of two arrays(different length):</p>
<pre><code>string[] keys = { "A", "B", "A", "D", "C","E" };
string[] values = { green, blue, yellow};
</code></pre>
<p>The results:</p>
<pre><code>["A"] = {green}
["B"] = {blue}
["D... | <c#><arrays><dictionary> | 2019-12-04 15:04:03 | LQ_CLOSE |
59,179,041 | How to resolve undefined Input Angular? | <p>There is input data in component:</p>
<pre><code> @Input() pupil: Pupil;
</code></pre>
<p>Before rendering this data in template I need to map it:</p>
<pre><code> ngOnChanges() {
this.pupil.photo = Helper.getPhoto(this.pupil);
}
</code></pre>
<p>But I get error cause <code>this.pupil</code> in undefined, ... | <angular><angular6><angular7><angular8> | 2019-12-04 15:08:19 | LQ_CLOSE |
59,179,901 | Changing the value of a copy also changes the value of the original | <p>Changing the value of a variable b, which is a copy of a, also changes the value of a.</p>
<pre><code>a = [[0]]
b = a.copy()
print("a before", a)
b[0][0] = 1
print("a after ", a)
</code></pre>
<p>prints:</p>
<pre><code>a before [[0]]
a after [[1]]
</code></pre>
<p>Although this works:</p>
<pre><code>a = [0]... | <python><list><variables><copy> | 2019-12-04 15:52:48 | LQ_CLOSE |
59,180,598 | constraint satisfaction problem missing one constraint | <p>I'm a lab practises tutor at the university, based on last year student comments, we wanted, my boss and I, to address them. My boss chose to go with writing a C script and I pick python (python-constraint) to try to resolve our problem. </p>
<h2>Informations</h2>
<ul>
<li>There are 6 sessions</li>
<li>There are 4... | <python><algorithm><python-constraint> | 2019-12-04 16:30:08 | HQ |
59,180,696 | 'KeyPressEventArgs' does not contain defintion for KeyCode' error in visual studio | Im trying to make a key press event in visual studio windows forms but getting this error. Any ideas?
```
private void Form1_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyCode = Keys.E)
{
// The Code when key 'E' is pressed
}
... | <c#> | 2019-12-04 16:34:58 | LQ_EDIT |
59,180,794 | Im getting "division by zero" error in python and I dont have a clue why | I dont know why but, python says that ```( (x1[0]*(len(x1)-1)) + (x2[0]*(len(x2)-1)) + (x3[0]*(len(x3)-1)))``` equals 0, which shouldnt in my opinion. I've tested that code, separately, without it being a divisor, and it didnt output 0 value.
```
def av(x):
c = 0
alist = x
alist.pop(0)
for a in al... | <python-3.x> | 2019-12-04 16:40:02 | LQ_EDIT |
59,181,332 | App is rendering larger than viewport when I try to apply dynamic css sizing attributes | <p>I have tried applying 100vh to the divs root/body/application (these are my top 3 level divs) and my app continues to render larger than the viewport or browser window. I am using display: flex on the child divs.</p>
<p>I am trying to just get the app to fit the window.</p>
| <javascript><css><window><viewport><sizing> | 2019-12-04 17:06:59 | LQ_CLOSE |
59,181,485 | Why i don`t have attribute textinput? | I have python 3.7 and it just doesn`t shows me textinput and numinput as an attribute. It works great with turtle.onclick() or ondrag but attributes textinput and numinput just disappeared
How can I fix this? | <python><turtle-graphics> | 2019-12-04 17:16:13 | LQ_EDIT |
59,181,865 | How to loop python script over at end | <p>So I have the following test script I am playing with.</p>
<pre><code>import time
year = time.strftime('%Y')
name = input('What is your name? ')
dob = input('What is your DOB ')
age = int(year) - int(dob)
print(f'{name}, You are {age} years old.')
</code></pre>
<p>How do I start this script over after it prints ... | <python><python-3.x> | 2019-12-04 17:38:01 | LQ_CLOSE |
59,183,612 | How to convert all String's to lower case in a collection of type HashSet <String>? | <p>I am not sure of best way to convert all Strings in a collection to lowercase. Any thoughts?</p>
<pre><code> private Set<String> email;
if(userEmail instanceof Collection) {
this.email = new HashSet<String>((Collection<String>) userEmail);
model.put("userEmail", this.email); //... | <java><string><collections><hashset><lowercase> | 2019-12-04 19:44:54 | LQ_CLOSE |
59,183,754 | Creating a hyperlink from a file name read from input file to write to a output text file | <p>I would like to convert the text name of each of the several files listed on the input text file (compatible with NotePad) to a hyperlink and would like to use the file name as the text display associated with each hyperlink and write the result with the hyperlinks to an output text file (also compatible with NotePA... | <vb.net><vbscript><hyperlink> | 2019-12-04 19:54:33 | LQ_CLOSE |
59,184,688 | CSV module - how to open a file that everyday has a different name due to date change? | this is my very first post here and I am on the beggining of my adventure with Python, sorry for any mistakes I have made.
I am working on an automation of reporting to my collaborators.
I am pulling the report though API with the following code :
***code***
import requests
from datetime impor... | <python><csv> | 2019-12-04 21:06:25 | LQ_EDIT |
59,184,816 | I wanted to ask about how to prevent audio, video and image files from appearing on other websites and running it only on my own site | <p>I will simply explain
I don't want audio, video, and images to work only on my site
Whoever has this experience I hope to benefit us</p>
| <javascript><php><file><security> | 2019-12-04 21:19:21 | LQ_CLOSE |
59,185,892 | to replace the space with a comma | <p>I have a some txt file like this:</p>
<pre><code>a,b,c,d:
1 2 3 4
process:
1 2 3 4 5 6 7 8 9
</code></pre>
<p><strong>Do I fill in any spaces with a comma with python-pandas or python-file function?</strong></p>
| <python><pandas><file> | 2019-12-04 23:09:07 | LQ_CLOSE |
59,186,077 | how to convert an object into Int64? | I am trying to merge two dataframes. because they are not the same type of data, I try to convert it into one. But I get the following error, can someone help me with this?[enter image description here][1]
[1]: https://i.stack.imgur.com/W1JkV.png | <python><dataframe> | 2019-12-04 23:29:12 | LQ_EDIT |
59,186,408 | Why install symfony version 4? | <p>I want to install version 4 symfony ,
but when I use the compose composer-project symfony / website-skeleton demo,
it is version 5 downloaded by default ?</p>
| <symfony4> | 2019-12-05 00:13:13 | LQ_CLOSE |
59,188,650 | Which argument in a function is called first? | <p>I cannot figure out the reason why I am getting this result. I am not the order in which the function calls it's arguments. I would assume that it would start at the first argument and go until the last. Here's the code...</p>
<pre><code>#include <stdio.h>
int addmeup(int a, int b, int c){
printf("a:%d\... | <c> | 2019-12-05 05:15:06 | LQ_CLOSE |
59,189,023 | What is the best The IMDB REST API? Wher e can I get it from? | <p>I want access to IMDB REST API. How can I get it?</p>
| <amazon><netflix><imdb> | 2019-12-05 05:50:36 | LQ_CLOSE |
59,189,480 | What do these characters in Swift mean <>. If I wrapped a keyword In them, what would that mean exactly | <p>For example if I have:</p>
<pre><code>var hostingController: UIHostingController<Content>! = nil
</code></pre>
<p>What does it example mean when I put content inside the greater than and less than signs?</p>
| <swift><swiftui> | 2019-12-05 06:30:48 | LQ_CLOSE |
59,190,408 | Table View Data Source in MVVM-C | <p>where should I put UITableView Data Sources (I am using RxDataSources) when using MVVM-C architecture?</p>
| <swift><mvvm><rx-swift><rxdatasources> | 2019-12-05 07:45:11 | LQ_CLOSE |
59,193,055 | list comprehension even list elements instead of loop and how to refer only to the index | <p>I want to use list comp' instead of a loop.
Let's sat I have a list of lists and I want only the even index elements.
Eg: [[a,a], [b,b], [c,c],[g,g]] to..... [[a,a], [c,c]]</p>
<p>This doesn't work</p>
<pre><code>
a = [i for i in the_list if i % 2 == 0)]
</code></pre>
| <python><python-requests> | 2019-12-05 10:26:18 | LQ_CLOSE |
59,193,529 | How to create a denormalized dataframe with the value and type coming from a set of other variables in R | <p>So I have the following dataframe:</p>
<pre><code>> data.frame(id=c(1,2),a=c(10,11),b=c(20,21))
id a b
1 10 20
2 11 21
</code></pre>
<p>I want to create a denormalized dataframe that takes the values of two or more columns and creates two columns, one for the column that the value comes from, and other with... | <r><dataframe> | 2019-12-05 10:50:41 | LQ_CLOSE |
59,195,271 | MSSQL Linux Server Issue: SQL Server only supports SAFE assemblies | <p>We recently came across an issue when trying to register some custom SQL CLR assemblies we have created on SQL Server 2017 v14.0.3238.1.</p>
<p>First of all, these assemblies require that they have External Access Permission, as they call external APIs. It seems that this issue is only appearing when trying to run ... | <c#><sql-server><linux><clr> | 2019-12-05 12:32:16 | LQ_CLOSE |
59,195,483 | Multiplocation 2 two numbers | I have an assignment to build a function that multiplies 2 numbers ( int and double ) and without using * or '-'
Can only use '+' '/' and '%'.
I noticed alot of people are using shifting methos but i cant use without because we didnt learn it yet.
And as much as i can do it without 1 while loop easily the trick is i... | <c><multiplication> | 2019-12-05 12:44:07 | LQ_EDIT |
59,197,257 | How to sum a value per day and then GROUP BY YEARWEEK | If i have a database with 2 columns, date and piece and i want to first count piece per day and then group by week. How wrong is my code and how to do it?
SELECT date, piece,
(SELECT date, COUNT(piece)
FROM t1
WHERE piece > 10
GROUP BY date
) AS sum
FROM t1
GROUP BY YEA... | <mysql><date><count><sum> | 2019-12-05 14:24:28 | LQ_EDIT |
59,201,827 | Trying to create a view in SQL server 2014 to read the table data in a different format | I am using SQL Server 2014.
Table 'X' consists of a column 'Desc2' in which data is in the format
'VT000379_001: Low Low Alarm Limit 5'
'VT000379_001_001: Low Low Alarm Limit 5' .
I am trying to create a view to remove the '_001' , so the result should be as follows.
'VT000379: Low Low Alarm Limit 5' ... | <sql><sql-server><tsql> | 2019-12-05 19:08:25 | LQ_EDIT |
59,205,875 | Error when trying to publish an azure function from Visual Studio | <p>I get the following error message when I try to publish my function using Visual Studio, any idea how to fix this?</p>
<blockquote>
<p>System.AggregateException: One or more errors occurred. --->
System.Exception: Publish has encountered an error. We were unable to
determine the cause of the error. Check the ... | <visual-studio><azure><azure-functions> | 2019-12-06 02:10:28 | HQ |
59,206,364 | Rewritre URL htaccsess using GET method | I have a page name ***detail.php*** which handle variable from ```GET``` method and the URL displayed will be like ```domain.com/detail.php?v=tEDdwXC2dkq```, but I want change it into ```domain.com/detail?v=tEDdwXC2dkq```.
***.htaccess***
```
RewriteEngine On
RewriteRule ^domain.com/detail.php?v=(.+)$ domain.com/... | <php><.htaccess><mod-rewrite><url-rewriting> | 2019-12-06 03:17:16 | LQ_EDIT |
59,207,009 | changed project from xampp folder to another folder and deleted previous xampp version | changed a working project folder to another folder and I have given permission too but now it wont work
also it shows following error when I login
file_put_contents(D:\Videos\htdocs\salesapp\storage\framework\views/34f87b7f19f81a3c49159deded5ed0b821a7e81d.php): failed to open stream: No such file or directory
... | <php><laravel> | 2019-12-06 04:44:14 | LQ_EDIT |
59,207,965 | Is there visibility issue in golang? | <p>For example, if I update a global variable in one goroutine, then read the variable in another goroutine, can I get the newest value?</p>
<p>Another question is, can "atomic.Load*" and "atomic.Store*" ensure visibility?</p>
| <go> | 2019-12-06 06:26:48 | LQ_CLOSE |
59,210,197 | problem in understanding axises in clustering | what is these two axis (Dim1(30.3%) & Dim2(19.7%)) mean?
[![enter image description here][1]][1]
[1]: https://i.stack.imgur.com/vJvnX.png | <cluster-analysis> | 2019-12-06 09:22:40 | LQ_EDIT |
59,210,250 | How to concatenate this array | <p>How do i concatenate these two arrays to get the expected output?</p>
<pre class="lang-js prettyprint-override"><code>let bidder= [
[1,2,3,4],
[5,6,7,8]
]
let arr1 = [9,10,11,12]
</code></pre>
<p>expected result</p>
<pre class="lang-js prettyprint-override"><code>[
(4) [...],
(4) [...],
(4) [...],
]
</code>... | <javascript><ecmascript-6> | 2019-12-06 09:25:42 | LQ_CLOSE |
59,211,416 | How to number values in string array with int | <p>I have some strings in string array.
Now I wanna to give before first string prefix 1: string..etc</p>
<p>Example:</p>
<pre><code>Test
Test
Test
</code></pre>
<p>Expected result:</p>
<pre><code>1. Test
2. Test
3. Test
</code></pre>
<p>Is that even possible? Thanks!</p>
| <c#> | 2019-12-06 10:33:22 | LQ_CLOSE |
59,211,750 | iteration in javascript, nodejs | <p>I have data like : - </p>
<pre><code>[
{"title": "A Hug Is Warm","id": "69","level": "4","act_title": "Alphabet","act_id": "69_1d"},
{"title": "A Hug Is Warm","id": "69","level": "4","act_title": "Recording","act_id": "69_rec"},
{"title": "A Hug Is Warm","level": "4","id": "69","act_title": "Print","act_id": "69_pr... | <javascript><node.js><multidimensional-array> | 2019-12-06 10:54:24 | LQ_CLOSE |
59,212,935 | how to save a Dataset[row] as text file in spark? | <p>I would like to save a Dataset[Row] as text file with a specific name in specific location.
Can anybody help me?</p>
<p>I have tried this, but this produce me a folder (LOCAL_FOLDER_TEMP/filename) with a parquet file inside of it:
Dataset.write.save(LOCAL_FOLDER_TEMP+filename)</p>
<p>Thanks</p>
| <scala><apache-spark> | 2019-12-06 12:11:52 | LQ_CLOSE |
59,213,014 | Count by ID if value is lower than and set the value 1 | <p>I have a problem.
My table is <strong>tableXYZ</strong>
I have a row <strong>a</strong> where i set the year.
I have a row <strong>b</strong> where i need to set value 1 if the year from row <strong>a</strong> is lower than 2019 and 0 if is > 2019.</p>
<p>After all i need to make a count from row <strong>b</strong>... | <sql> | 2019-12-06 12:17:46 | LQ_CLOSE |
59,213,519 | opposite of if condition | <p>I am trying to rewrite my if else statement so I skip the //do nothing part but I can't get my around to find the opposite of the if statement.</p>
<p>someone please help?!</p>
<pre><code>if (decision.equals("repay")){
String riskClass = null;
if (doc.hasItem("riskclass")){
... | <java><if-statement> | 2019-12-06 12:49:48 | LQ_CLOSE |
59,213,848 | Why these parameters applied? | <p>Applying class="container" to div causes a problem with width of div. The index takes properties from _grid.cscc. </p>
<p>It should be 100% width.</p>
<p><a href="https://i.stack.imgur.com/KGgXA.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KGgXA.jpg" alt="enter image description here"></a></p... | <html><css><bootstrap-4> | 2019-12-06 13:09:18 | LQ_CLOSE |
59,213,960 | How to create parameters with arrays? | <p>I'm trying to set a parameter as an array, but I get "unexpected token..." at {name[2]}.</p>
<pre><code>// javascript
const name = ['Jin', 'Kazuya', 'Heiachi']
function Intro(name, profession, city) {
document.write("My name is " + name + ", I'm a" + profession + " from" + city);
}
Intro({name[2]}, ' salesma... | <javascript> | 2019-12-06 13:16:26 | LQ_CLOSE |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.