qid int64 1 74.7M | question stringlengths 15 58.3k | date stringlengths 10 10 | metadata list | response_j stringlengths 4 30.2k | response_k stringlengths 11 36.5k |
|---|---|---|---|---|---|
52,942,575 | I've running project and its really gigantic, it contain almost 1000 files and 4 Custom (own built) framework and almost 10 others added via Pods.
I've gone through [Migrating Your Objective-C Code to Swift](https://developer.apple.com/documentation/swift/migrating_your_objective-c_code_to_swift) and also [Migrate wit... | 2018/10/23 | [
"https://Stackoverflow.com/questions/52942575",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/671060/"
] | Your approach of converting Objective-C to Swift is wrong! Apple also took time to adopt Swift completely in their frameworks and the news is in 2018, 85% of the frameworks are converted to Swift, so the point is they has also taken nearly 3 years to get it done!
The biggest problem is that Swift is still evolving and... | Here's a different perspective from the other answers. I have a project of similar size to the original poster (250 classes, 7 MB of source code). I don't want the mental load of maintaining a hybrid of two different programming languages long-term. And after converting about 30 classes, I found myself spending most of... |
52,942,575 | I've running project and its really gigantic, it contain almost 1000 files and 4 Custom (own built) framework and almost 10 others added via Pods.
I've gone through [Migrating Your Objective-C Code to Swift](https://developer.apple.com/documentation/swift/migrating_your_objective-c_code_to_swift) and also [Migrate wit... | 2018/10/23 | [
"https://Stackoverflow.com/questions/52942575",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/671060/"
] | Your approach of converting Objective-C to Swift is wrong! Apple also took time to adopt Swift completely in their frameworks and the news is in 2018, 85% of the frameworks are converted to Swift, so the point is they has also taken nearly 3 years to get it done!
The biggest problem is that Swift is still evolving and... | Reference [Swiftify](https://swiftify.com/converter/code/)
Step 1: Make sure you have latest version of Xcode (Recommended Xcode 11 & newer).
Step 2: [Sign](https://swiftify.com/signin/) or [Sign Up](https://swiftify.com/signin/) to site to download the app.
Step 3: Download and install Swiftify for Xcode.
Step 4: ... |
52,942,575 | I've running project and its really gigantic, it contain almost 1000 files and 4 Custom (own built) framework and almost 10 others added via Pods.
I've gone through [Migrating Your Objective-C Code to Swift](https://developer.apple.com/documentation/swift/migrating_your_objective-c_code_to_swift) and also [Migrate wit... | 2018/10/23 | [
"https://Stackoverflow.com/questions/52942575",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/671060/"
] | I recently converted [SVProgressHUD](https://github.com/SVProgressHUD/SVProgressHUD) to swift using [Swiftify](https://swiftify.com/#/converter/code/). The converted code can be found at [here](https://github.com/Swiftify-Corp/IHProgressHUD).
The major takeaways would be:
1. To start the code conversion one file at ... | Here's a different perspective from the other answers. I have a project of similar size to the original poster (250 classes, 7 MB of source code). I don't want the mental load of maintaining a hybrid of two different programming languages long-term. And after converting about 30 classes, I found myself spending most of... |
52,942,575 | I've running project and its really gigantic, it contain almost 1000 files and 4 Custom (own built) framework and almost 10 others added via Pods.
I've gone through [Migrating Your Objective-C Code to Swift](https://developer.apple.com/documentation/swift/migrating_your_objective-c_code_to_swift) and also [Migrate wit... | 2018/10/23 | [
"https://Stackoverflow.com/questions/52942575",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/671060/"
] | I recently converted [SVProgressHUD](https://github.com/SVProgressHUD/SVProgressHUD) to swift using [Swiftify](https://swiftify.com/#/converter/code/). The converted code can be found at [here](https://github.com/Swiftify-Corp/IHProgressHUD).
The major takeaways would be:
1. To start the code conversion one file at ... | Reference [Swiftify](https://swiftify.com/converter/code/)
Step 1: Make sure you have latest version of Xcode (Recommended Xcode 11 & newer).
Step 2: [Sign](https://swiftify.com/signin/) or [Sign Up](https://swiftify.com/signin/) to site to download the app.
Step 3: Download and install Swiftify for Xcode.
Step 4: ... |
52,942,575 | I've running project and its really gigantic, it contain almost 1000 files and 4 Custom (own built) framework and almost 10 others added via Pods.
I've gone through [Migrating Your Objective-C Code to Swift](https://developer.apple.com/documentation/swift/migrating_your_objective-c_code_to_swift) and also [Migrate wit... | 2018/10/23 | [
"https://Stackoverflow.com/questions/52942575",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/671060/"
] | Reference [Swiftify](https://swiftify.com/converter/code/)
Step 1: Make sure you have latest version of Xcode (Recommended Xcode 11 & newer).
Step 2: [Sign](https://swiftify.com/signin/) or [Sign Up](https://swiftify.com/signin/) to site to download the app.
Step 3: Download and install Swiftify for Xcode.
Step 4: ... | Here's a different perspective from the other answers. I have a project of similar size to the original poster (250 classes, 7 MB of source code). I don't want the mental load of maintaining a hybrid of two different programming languages long-term. And after converting about 30 classes, I found myself spending most of... |
1,185,592 | I've asked this somewhere else, but the people there don't seem to understand what I am talking about.
When I go to the PECL website, all extensions found there are inside TGZ files.
Which is not a problem, any modern archiving program can open it.
Inside is always a .tar file and inside that are the source files.... | 2009/07/26 | [
"https://Stackoverflow.com/questions/1185592",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/80907/"
] | If there is not .dll provided, you have to compile it :-(
There was a pecl4win website some time ago, but it's down ; and the new <http://windows.php.net/> does not have extensions on it yet *(there is work going on, but windows is not **the** platform of choice for PHP developpers, nor core-developpers, so it's not g... | Plugins are almost always implemented using a shared library (a.k.a. dynamic library), containing functions which are dynamically loaded at runtime. On Windows, shared libraries are DLLs, which is why all the extensions (i.e. plugins) for PHP have come in the form of one or more DLL files. If you are given the source c... |
1,185,592 | I've asked this somewhere else, but the people there don't seem to understand what I am talking about.
When I go to the PECL website, all extensions found there are inside TGZ files.
Which is not a problem, any modern archiving program can open it.
Inside is always a .tar file and inside that are the source files.... | 2009/07/26 | [
"https://Stackoverflow.com/questions/1185592",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/80907/"
] | If there is not .dll provided, you have to compile it :-(
There was a pecl4win website some time ago, but it's down ; and the new <http://windows.php.net/> does not have extensions on it yet *(there is work going on, but windows is not **the** platform of choice for PHP developpers, nor core-developpers, so it's not g... | There **ARE** pecl library collections for Windows, and they're either appended (as a separate link) on PHP download page (named X.Y.Z-win32-pecl.zip or similar), or linked somehow (for example, the latest PHP5 can use PECL from the previous 5.X setup, and it says so on the download page).
If all You get is source cod... |
1,185,592 | I've asked this somewhere else, but the people there don't seem to understand what I am talking about.
When I go to the PECL website, all extensions found there are inside TGZ files.
Which is not a problem, any modern archiving program can open it.
Inside is always a .tar file and inside that are the source files.... | 2009/07/26 | [
"https://Stackoverflow.com/questions/1185592",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/80907/"
] | There **ARE** pecl library collections for Windows, and they're either appended (as a separate link) on PHP download page (named X.Y.Z-win32-pecl.zip or similar), or linked somehow (for example, the latest PHP5 can use PECL from the previous 5.X setup, and it says so on the download page).
If all You get is source cod... | Plugins are almost always implemented using a shared library (a.k.a. dynamic library), containing functions which are dynamically loaded at runtime. On Windows, shared libraries are DLLs, which is why all the extensions (i.e. plugins) for PHP have come in the form of one or more DLL files. If you are given the source c... |
4,120,944 | Mathematica will gladly tell me that the integral
$$ I\left[y,a\right]=\int\_{y}^{\infty}dx\,e^{-x^{2}}\mathrm{erf}\left(ax\right)$$
where $\mathrm{erf}(x)=\frac{2}{\sqrt{\pi}}\int\_{0}^{x}dt\,e^{-t^{2}}$ is the error function,
can be written as
$$ I\left[y,a\right]=-\frac{1}{2} \sqrt{\pi } \left(4 T\left(\sqrt{2} a... | 2021/04/29 | [
"https://math.stackexchange.com/questions/4120944",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/180260/"
] | This is not a full answer, more of a note. Using integration by parts, notice that:
$$\int\_0^\infty e^{-x^2}\operatorname{erf}(ax)\,dx=\frac{\sqrt{\pi}}{2}-\int\_0^\infty e^{-x^2}\operatorname{erf}\left(\frac xa\right)\,dx$$
and you can try to split your integral up into:
$$\int\_y^\infty=\int\_0^\infty-\int\_0^y$$
-... | Let $n \ge 1$ be an integer and let $\vec{a} \in {\mathbb R}^n$ and $y \in {\mathbb R}\_+$. Then
the integral in question can be thought of as a vector argument Owen's T function. In other words we have:
\begin{eqnarray}
T[h,\vec{a}] &:=& \int\limits\_y^\infty \left(\prod\limits\_{i=1}^n \frac{1}{2}\operatorname{erf} ... |
26,086,762 | Now, i'm trying to understand how Angular.js working with "Angular.js in 60 Minutes" by Dan Wahlin. And i stuck with this code, which in browser must look like this: <http://oi59.tinypic.com/25im4cy.jpg>
My code:
index.html
```
<!DOCTYPE html>
<html lang="en" ng-app="demoApp">
<head>
<meta charset="UTF-8">
<... | 2014/09/28 | [
"https://Stackoverflow.com/questions/26086762",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4088603/"
] | This is because you have *not* done two things:
* Include the `ngRoute` module as a dependency when you declare `angular.module('demoApp', [])`
* Include `angular-route.js` script code in your project.
I created [this JSFiddle](http://jsfiddle.net/467px16e/) from your code to show it working, just with the `View1` te... | ```
<body ng-app='demoApp'>
<div>
<div ng-view></div>
</div>
</body>
<script type="text/ng-template" id="View1.html">
<div class="container">
Name
<input type="text" data-ng-model="filter.name"/>
<ul>
<li ng-repeat="cust in customers | filter:filter.name | orderBy:'name">{{cust.name... |
59,359,767 | I have a dataset that has zero's on all the column. I need to remove the rows that has zero's. But I would like to retain the other rows. Also, I do not want to disrupt the grouping variable.
```
Participant Media B C D
A1 C11 0.5 0 0
A1 C12 0.4 0.3 0
A1 C13 0 ... | 2019/12/16 | [
"https://Stackoverflow.com/questions/59359767",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11962863/"
] | What you attempted to use is valid for CMD.EXE, but in PowerShell, `type` is an alias for `Get-Content`, which expects a valid device or file. However, the null device is *not* available in PowerShell, although a *variable* `$null` will return the desired value. You should instead use
```
New-Item -Path . -Name "file.... | I didn't get a satisfactory answer so I searched the command list for PowerShell on Microsoft's website.
Use
```
Set-Content -path D:\\Main\file.js
```
Then it will ask for values \*(e.g. [-Value0], [-Value1], ...)." Values are what what you want to type in the file e.g. [-Value0] will contain what will be in the ... |
2,523,075 | How to generate page numbers like the below using javascript/jquery?
If the 5 th page is selected i have to show 3,4 and 6,7 and also 1,last page with prev,next...
Any suggestion....
**EDIT:**
How to work with json data that use these pagination div? (ie) My json data contains 50 records
I want to 10 in page 1 and s... | 2010/03/26 | [
"https://Stackoverflow.com/questions/2523075",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/207556/"
] | What you are looking for is called "pagination" and there's (as always) a jQuery plugin that does the job for you:
<http://d-scribe.de/webtools/jquery-pagination/demo/demo_options.htm>
(Download it [here](http://plugins.jquery.com/project/pagination))
---
**Edit:** Since you don't seem to be able to get it working,... | yeah @SLaks is right. nothing too crazy here. You will have 2 variables currentPageNumber and lastPageNumber.
```
$("div.paginator").append("<a...>prev</a>");
$("div.paginator").append("<a...>1</a>");
for (x = (currentPageNumber - 2; x <= (currentPageNumber + 2); x++) {
$("div.paginator").append("<a...>"+ x +"</a... |
2,523,075 | How to generate page numbers like the below using javascript/jquery?
If the 5 th page is selected i have to show 3,4 and 6,7 and also 1,last page with prev,next...
Any suggestion....
**EDIT:**
How to work with json data that use these pagination div? (ie) My json data contains 50 records
I want to 10 in page 1 and s... | 2010/03/26 | [
"https://Stackoverflow.com/questions/2523075",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/207556/"
] | What you are looking for is called "pagination" and there's (as always) a jQuery plugin that does the job for you:
<http://d-scribe.de/webtools/jquery-pagination/demo/demo_options.htm>
(Download it [here](http://plugins.jquery.com/project/pagination))
---
**Edit:** Since you don't seem to be able to get it working,... | Use [THIS](http://plugins.jquery.com/project/jquery-pagination) or [THAT](http://plugins.jquery.com/project/jPaginate) plugin. They're both easy html pagination plugins. Put everything in the html at once and paginate with one of those. |
2,523,075 | How to generate page numbers like the below using javascript/jquery?
If the 5 th page is selected i have to show 3,4 and 6,7 and also 1,last page with prev,next...
Any suggestion....
**EDIT:**
How to work with json data that use these pagination div? (ie) My json data contains 50 records
I want to 10 in page 1 and s... | 2010/03/26 | [
"https://Stackoverflow.com/questions/2523075",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/207556/"
] | What you are looking for is called "pagination" and there's (as always) a jQuery plugin that does the job for you:
<http://d-scribe.de/webtools/jquery-pagination/demo/demo_options.htm>
(Download it [here](http://plugins.jquery.com/project/pagination))
---
**Edit:** Since you don't seem to be able to get it working,... | Add two new hidden inputs
```
<input type='hidden' id='current_page' />
<input type='hidden' id='show_per_page' />
```
Next add an empty div to create pagination controls
```
<!-- An empty div which will be populated using jQuery -->
<div id='page_navigation'></div>
$(document).ready(function(){
//how mu... |
2,523,075 | How to generate page numbers like the below using javascript/jquery?
If the 5 th page is selected i have to show 3,4 and 6,7 and also 1,last page with prev,next...
Any suggestion....
**EDIT:**
How to work with json data that use these pagination div? (ie) My json data contains 50 records
I want to 10 in page 1 and s... | 2010/03/26 | [
"https://Stackoverflow.com/questions/2523075",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/207556/"
] | yeah @SLaks is right. nothing too crazy here. You will have 2 variables currentPageNumber and lastPageNumber.
```
$("div.paginator").append("<a...>prev</a>");
$("div.paginator").append("<a...>1</a>");
for (x = (currentPageNumber - 2; x <= (currentPageNumber + 2); x++) {
$("div.paginator").append("<a...>"+ x +"</a... | Use [THIS](http://plugins.jquery.com/project/jquery-pagination) or [THAT](http://plugins.jquery.com/project/jPaginate) plugin. They're both easy html pagination plugins. Put everything in the html at once and paginate with one of those. |
2,523,075 | How to generate page numbers like the below using javascript/jquery?
If the 5 th page is selected i have to show 3,4 and 6,7 and also 1,last page with prev,next...
Any suggestion....
**EDIT:**
How to work with json data that use these pagination div? (ie) My json data contains 50 records
I want to 10 in page 1 and s... | 2010/03/26 | [
"https://Stackoverflow.com/questions/2523075",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/207556/"
] | yeah @SLaks is right. nothing too crazy here. You will have 2 variables currentPageNumber and lastPageNumber.
```
$("div.paginator").append("<a...>prev</a>");
$("div.paginator").append("<a...>1</a>");
for (x = (currentPageNumber - 2; x <= (currentPageNumber + 2); x++) {
$("div.paginator").append("<a...>"+ x +"</a... | Add two new hidden inputs
```
<input type='hidden' id='current_page' />
<input type='hidden' id='show_per_page' />
```
Next add an empty div to create pagination controls
```
<!-- An empty div which will be populated using jQuery -->
<div id='page_navigation'></div>
$(document).ready(function(){
//how mu... |
51,891,599 | I am trying to upload multiple files with single input and i wanted to limit the total size of all files to be less than 100 MB. How can i do it?
This is my code:
```html
<?php
if(isset($_POST['submit'])){
if(count($_FILES['upload']['name']) > 0){
for($i=0; $i<count($_FILES['upload']['name']); $i++) ... | 2018/08/17 | [
"https://Stackoverflow.com/questions/51891599",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10045456/"
] | If you just want to get the size of all uploaded files into your code, you can use [`array_sum()`](http://php.net/manual/function.array-sum.php), there is no need to use a loop.
```
$totalFileSize = array_sum($_FILES['upload']['size']);
```
this will give you the size in bytes of all files. then you can compare it ... | Use a variable to calculate it inside the loop. I have put **$total\_file\_size** variable to do that below.
```
<?php
if(isset($_POST['submit'])){
if(count($_FILES['upload']['name']) > 0){
$total_file_size = 0;
for($i=0; $i<count($_FILES['upload']['name']); $i++) {
$total_file_size += $_FILES['u... |
60,701,936 | i want send Welcome notification when user sign in using Cloud-Function with firebase auth
so i m using nodejs CLI and run the code
my index.js file
'use strict';
```
const functions = require('firebase-functions');
const nodemailer = require('nodemailer');
// Configure the email transport using the def... | 2020/03/16 | [
"https://Stackoverflow.com/questions/60701936",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12454906/"
] | If you have enabled 2-factor authentication on your Google account you can't use your regular password to access Gmail programmatically. You need to generate an app-specific password and use that in place of your actual password.
Steps:
Log in to your Google account
Go to My Account > Sign-in & Security > App Passwor... | You need to use an application password for this purpose. This issue will arise when 2 Step verification is turned-on for your Gmail account. You can bypass it by using app password. here is how to generate an app password.
1. Select your profile icon in the upper-right corner of Gmail, then select Manage Google Accou... |
60,701,936 | i want send Welcome notification when user sign in using Cloud-Function with firebase auth
so i m using nodejs CLI and run the code
my index.js file
'use strict';
```
const functions = require('firebase-functions');
const nodemailer = require('nodemailer');
// Configure the email transport using the def... | 2020/03/16 | [
"https://Stackoverflow.com/questions/60701936",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12454906/"
] | If you have enabled 2-factor authentication on your Google account you can't use your regular password to access Gmail programmatically. You need to generate an app-specific password and use that in place of your actual password.
Steps:
Log in to your Google account
Go to My Account > Sign-in & Security > App Passwor... | Generate a password from <https://security.google.com/settings/security/apppasswords> and use that password instead. |
60,701,936 | i want send Welcome notification when user sign in using Cloud-Function with firebase auth
so i m using nodejs CLI and run the code
my index.js file
'use strict';
```
const functions = require('firebase-functions');
const nodemailer = require('nodemailer');
// Configure the email transport using the def... | 2020/03/16 | [
"https://Stackoverflow.com/questions/60701936",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12454906/"
] | If you have enabled 2-factor authentication on your Google account you can't use your regular password to access Gmail programmatically. You need to generate an app-specific password and use that in place of your actual password.
Steps:
Log in to your Google account
Go to My Account > Sign-in & Security > App Passwor... | UPD: You can't do this on localhost. I try. Because it's not a secure connection. |
60,701,936 | i want send Welcome notification when user sign in using Cloud-Function with firebase auth
so i m using nodejs CLI and run the code
my index.js file
'use strict';
```
const functions = require('firebase-functions');
const nodemailer = require('nodemailer');
// Configure the email transport using the def... | 2020/03/16 | [
"https://Stackoverflow.com/questions/60701936",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12454906/"
] | If you have enabled 2-factor authentication on your Google account you can't use your regular password to access Gmail programmatically. You need to generate an app-specific password and use that in place of your actual password.
Steps:
Log in to your Google account
Go to My Account > Sign-in & Security > App Passwor... | in Gmail, Enable 2-Step-Verification.
Then create App password & use it on SMTP |
60,701,936 | i want send Welcome notification when user sign in using Cloud-Function with firebase auth
so i m using nodejs CLI and run the code
my index.js file
'use strict';
```
const functions = require('firebase-functions');
const nodemailer = require('nodemailer');
// Configure the email transport using the def... | 2020/03/16 | [
"https://Stackoverflow.com/questions/60701936",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12454906/"
] | You need to use an application password for this purpose. This issue will arise when 2 Step verification is turned-on for your Gmail account. You can bypass it by using app password. here is how to generate an app password.
1. Select your profile icon in the upper-right corner of Gmail, then select Manage Google Accou... | Generate a password from <https://security.google.com/settings/security/apppasswords> and use that password instead. |
60,701,936 | i want send Welcome notification when user sign in using Cloud-Function with firebase auth
so i m using nodejs CLI and run the code
my index.js file
'use strict';
```
const functions = require('firebase-functions');
const nodemailer = require('nodemailer');
// Configure the email transport using the def... | 2020/03/16 | [
"https://Stackoverflow.com/questions/60701936",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12454906/"
] | You need to use an application password for this purpose. This issue will arise when 2 Step verification is turned-on for your Gmail account. You can bypass it by using app password. here is how to generate an app password.
1. Select your profile icon in the upper-right corner of Gmail, then select Manage Google Accou... | UPD: You can't do this on localhost. I try. Because it's not a secure connection. |
60,701,936 | i want send Welcome notification when user sign in using Cloud-Function with firebase auth
so i m using nodejs CLI and run the code
my index.js file
'use strict';
```
const functions = require('firebase-functions');
const nodemailer = require('nodemailer');
// Configure the email transport using the def... | 2020/03/16 | [
"https://Stackoverflow.com/questions/60701936",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12454906/"
] | You need to use an application password for this purpose. This issue will arise when 2 Step verification is turned-on for your Gmail account. You can bypass it by using app password. here is how to generate an app password.
1. Select your profile icon in the upper-right corner of Gmail, then select Manage Google Accou... | in Gmail, Enable 2-Step-Verification.
Then create App password & use it on SMTP |
60,701,936 | i want send Welcome notification when user sign in using Cloud-Function with firebase auth
so i m using nodejs CLI and run the code
my index.js file
'use strict';
```
const functions = require('firebase-functions');
const nodemailer = require('nodemailer');
// Configure the email transport using the def... | 2020/03/16 | [
"https://Stackoverflow.com/questions/60701936",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12454906/"
] | Generate a password from <https://security.google.com/settings/security/apppasswords> and use that password instead. | UPD: You can't do this on localhost. I try. Because it's not a secure connection. |
60,701,936 | i want send Welcome notification when user sign in using Cloud-Function with firebase auth
so i m using nodejs CLI and run the code
my index.js file
'use strict';
```
const functions = require('firebase-functions');
const nodemailer = require('nodemailer');
// Configure the email transport using the def... | 2020/03/16 | [
"https://Stackoverflow.com/questions/60701936",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12454906/"
] | Generate a password from <https://security.google.com/settings/security/apppasswords> and use that password instead. | in Gmail, Enable 2-Step-Verification.
Then create App password & use it on SMTP |
10,810,926 | Is the following python code valid?
```
class Test:
def __init__(self):
self.number = 5
def returnTest(self):
return Test()
``` | 2012/05/30 | [
"https://Stackoverflow.com/questions/10810926",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/863553/"
] | Yes it is valid. The class is defined by the time you create an object and call the `returnTest` method.
```
In [2]: x = Test()
In [3]: y = x.returnTest()
In [4]: y
Out[4]: <__main__.Test instance at 0x1e36ef0>
In [5]:
```
However, in cases where a method acts like a factory, you might want to consider using th... | Yes, it's valid. `returnTest` will not be run until it is called. It does not create an infinite loop, since the method is not called on the newly created object. |
10,810,926 | Is the following python code valid?
```
class Test:
def __init__(self):
self.number = 5
def returnTest(self):
return Test()
``` | 2012/05/30 | [
"https://Stackoverflow.com/questions/10810926",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/863553/"
] | Yes it is valid. The class is defined by the time you create an object and call the `returnTest` method.
```
In [2]: x = Test()
In [3]: y = x.returnTest()
In [4]: y
Out[4]: <__main__.Test instance at 0x1e36ef0>
In [5]:
```
However, in cases where a method acts like a factory, you might want to consider using th... | Yes. It's a valid python code. Many programming languages allow to return an instance of a class being defined. Think to the **singleton** pattern. |
10,810,926 | Is the following python code valid?
```
class Test:
def __init__(self):
self.number = 5
def returnTest(self):
return Test()
``` | 2012/05/30 | [
"https://Stackoverflow.com/questions/10810926",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/863553/"
] | Yes it is valid. The class is defined by the time you create an object and call the `returnTest` method.
```
In [2]: x = Test()
In [3]: y = x.returnTest()
In [4]: y
Out[4]: <__main__.Test instance at 0x1e36ef0>
In [5]:
```
However, in cases where a method acts like a factory, you might want to consider using th... | Yes, it works but it appears that returnTest() is always the same instance of Test.
```
class Test:
def __init__(self):
self.number = 5
def returnTest(self):
return Test()
t = Test()
print t
print t.returnTest()
print t.returnTest()
$ python te.py
<__main__.Test instance at 0xb72bd28c>
<__main__.Test in... |
10,810,926 | Is the following python code valid?
```
class Test:
def __init__(self):
self.number = 5
def returnTest(self):
return Test()
``` | 2012/05/30 | [
"https://Stackoverflow.com/questions/10810926",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/863553/"
] | Yes, it's valid. `returnTest` will not be run until it is called. It does not create an infinite loop, since the method is not called on the newly created object. | Yes. It's a valid python code. Many programming languages allow to return an instance of a class being defined. Think to the **singleton** pattern. |
10,810,926 | Is the following python code valid?
```
class Test:
def __init__(self):
self.number = 5
def returnTest(self):
return Test()
``` | 2012/05/30 | [
"https://Stackoverflow.com/questions/10810926",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/863553/"
] | Yes, it's valid. `returnTest` will not be run until it is called. It does not create an infinite loop, since the method is not called on the newly created object. | Yes, it works but it appears that returnTest() is always the same instance of Test.
```
class Test:
def __init__(self):
self.number = 5
def returnTest(self):
return Test()
t = Test()
print t
print t.returnTest()
print t.returnTest()
$ python te.py
<__main__.Test instance at 0xb72bd28c>
<__main__.Test in... |
10,810,926 | Is the following python code valid?
```
class Test:
def __init__(self):
self.number = 5
def returnTest(self):
return Test()
``` | 2012/05/30 | [
"https://Stackoverflow.com/questions/10810926",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/863553/"
] | Yes, it works but it appears that returnTest() is always the same instance of Test.
```
class Test:
def __init__(self):
self.number = 5
def returnTest(self):
return Test()
t = Test()
print t
print t.returnTest()
print t.returnTest()
$ python te.py
<__main__.Test instance at 0xb72bd28c>
<__main__.Test in... | Yes. It's a valid python code. Many programming languages allow to return an instance of a class being defined. Think to the **singleton** pattern. |
67,035,082 | I Just Started Making a Discord Bot. I Wanna Make a Command Where You Can Type -queue duos to Queue a Game With Others Who Also Want to. However, My Add Role Command Is Completely Unresponsive and Doesn't Give a Role or Error When I Type The Command Into Discord.
```
import discord
import os
#run the Bot and a messag... | 2021/04/10 | [
"https://Stackoverflow.com/questions/67035082",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15507350/"
] | As I can see you were trying to do this in an event. For that you need to identify the `author` of the `message` and then assign a role to it. You make a few mistakes in your code, because another function **does not** belong in an event.
**Have a look at the following code:**
```py
from discord.utils import get
@cl... | Because you defined but didn't called the role function.
I suppose you saw a tutorial using discord.ext.commands and tried to create a command.
I recommend you to use discord.ext.commands.Bot instead of discord.Client.
It is a subclass of Client so you can do the same.
Example:
```py
import discord
from di... |
67,035,082 | I Just Started Making a Discord Bot. I Wanna Make a Command Where You Can Type -queue duos to Queue a Game With Others Who Also Want to. However, My Add Role Command Is Completely Unresponsive and Doesn't Give a Role or Error When I Type The Command Into Discord.
```
import discord
import os
#run the Bot and a messag... | 2021/04/10 | [
"https://Stackoverflow.com/questions/67035082",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15507350/"
] | As I can see you were trying to do this in an event. For that you need to identify the `author` of the `message` and then assign a role to it. You make a few mistakes in your code, because another function **does not** belong in an event.
**Have a look at the following code:**
```py
from discord.utils import get
@cl... | Your problem is, that this isn't registered as command. You should do it with special conditions for the role command and register it outside with [`@client.command()`](https://discordpy.readthedocs.io/en/latest/ext/commands/api.html#decorators) (for what you would have to "migrate" to [`commands.Bot()`](https://discor... |
38,730,563 | My question is in regard of best practice / preferred readability in Angular 1.X with ng-show and ng-hide.
When using ng-hide and ng-show, is it advised to stick to one and to alternate the value I am evaluating or should i alternate between the two in order to keep the value in the expression the same?
See the fol... | 2016/08/02 | [
"https://Stackoverflow.com/questions/38730563",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1255713/"
] | `ng-hide` and `ng-show` both work in different ways. They are essentially CSS classes which either hide or show the specified div, depending on how the value evaluates.
```
<!-- when $scope.myValue is truthy (element is visible) -->
<div ng-show="myValue"></div>
```
if myValue evaluates to true then the div would be... | Whether or not you use `ng-hide` or `ng-show` should be based on how you want the page to appear by default. If you are controlling the visibility of an element that will be hidden by default and only shown after the user completes some action (like selecting a sport), then you want to use `ng-show`. If the element is ... |
20,843,792 | I'm making a C# console application for my college course and I've got an issue where I (or anybody else on the course) don't know what's wrong. In fact the tutor's not sure why it's happening.
I'll show you part of the code to see if anyone can help.
Probably a good idea to mention that I'm new to C# and programming... | 2013/12/30 | [
"https://Stackoverflow.com/questions/20843792",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3146971/"
] | If you add `Console.ReadLine()` at the end, the window will stay open until you press the `enter` key. Otherwise, once it's completed, it'll close the command window. | It sounds like you're missing a `Console.ReadLine()` at the end of your program. When you run a console app in Visual Studio it's normal behavior for the window to be closed once the program finishes, unless there's code (like a `Console.ReadLine()`) to keep the program running.
IF you ran the program directly from a ... |
20,843,792 | I'm making a C# console application for my college course and I've got an issue where I (or anybody else on the course) don't know what's wrong. In fact the tutor's not sure why it's happening.
I'll show you part of the code to see if anyone can help.
Probably a good idea to mention that I'm new to C# and programming... | 2013/12/30 | [
"https://Stackoverflow.com/questions/20843792",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3146971/"
] | If you add `Console.ReadLine()` at the end, the window will stay open until you press the `enter` key. Otherwise, once it's completed, it'll close the command window. | >
> No "Press any key to continue" that I've seen in other applications I've made.
>
>
>
Why would there be? That doesn't happen unless you write code to make it happen:
```
Console.WriteLine("Press any key to continue");
Console.ReadKey(true);
```
Visual Studio used to put code to do that into the default temp... |
50,583,374 | ```
SELECT artist.name, recording.name, MAX(recording.length)
FROM recording
INNER JOIN (artist_credit
INNER JOIN (artist_credit_name
INNER JOIN artist
ON artist_credit_name.artist_credit=artist.id)
ON artist_credit_name.artist_... | 2018/05/29 | [
"https://Stackoverflow.com/questions/50583374",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9863958/"
] | In general, if you have more then one TextView in a single line it is not trivial to align the first TextView to the left. I have used a Guideline for this pourpose and it works perfectly. If you remove the GuideLine it doesn't works.
Here is the xml:
```
<TextView
android:id="@+id/textView1"
android:layout_w... | Try this:
```
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/textView"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:gravity="right"
app:layout_constraintLeft_toLeftOf="parent"
... |
50,583,374 | ```
SELECT artist.name, recording.name, MAX(recording.length)
FROM recording
INNER JOIN (artist_credit
INNER JOIN (artist_credit_name
INNER JOIN artist
ON artist_credit_name.artist_credit=artist.id)
ON artist_credit_name.artist_... | 2018/05/29 | [
"https://Stackoverflow.com/questions/50583374",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9863958/"
] | Unfortunately, we are missing the whole XML of your layout, but let's assume you have something like this:
```
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
and... | Try this:
```
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/textView"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:gravity="right"
app:layout_constraintLeft_toLeftOf="parent"
... |
50,583,374 | ```
SELECT artist.name, recording.name, MAX(recording.length)
FROM recording
INNER JOIN (artist_credit
INNER JOIN (artist_credit_name
INNER JOIN artist
ON artist_credit_name.artist_credit=artist.id)
ON artist_credit_name.artist_... | 2018/05/29 | [
"https://Stackoverflow.com/questions/50583374",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9863958/"
] | 1. Make the TextView match parent with:
```
android:layout_width="0dp"
```
2. Then define the textAlignment property:
```
android:textAlignment="viewEnd"
```
Example, align right in a left to right language:
```
<TextView
android:id="@+id/tv_item"
style="@style/text_highlight_small_title"
andro... | Unfortunately, we are missing the whole XML of your layout, but let's assume you have something like this:
```
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
and... |
50,583,374 | ```
SELECT artist.name, recording.name, MAX(recording.length)
FROM recording
INNER JOIN (artist_credit
INNER JOIN (artist_credit_name
INNER JOIN artist
ON artist_credit_name.artist_credit=artist.id)
ON artist_credit_name.artist_... | 2018/05/29 | [
"https://Stackoverflow.com/questions/50583374",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9863958/"
] | **Solution:**
use this xml code
```
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_paren... | In general, if you have more then one TextView in a single line it is not trivial to align the first TextView to the left. I have used a Guideline for this pourpose and it works perfectly. If you remove the GuideLine it doesn't works.
Here is the xml:
```
<TextView
android:id="@+id/textView1"
android:layout_w... |
50,583,374 | ```
SELECT artist.name, recording.name, MAX(recording.length)
FROM recording
INNER JOIN (artist_credit
INNER JOIN (artist_credit_name
INNER JOIN artist
ON artist_credit_name.artist_credit=artist.id)
ON artist_credit_name.artist_... | 2018/05/29 | [
"https://Stackoverflow.com/questions/50583374",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9863958/"
] | 1. Make the TextView match parent with:
```
android:layout_width="0dp"
```
2. Then define the textAlignment property:
```
android:textAlignment="viewEnd"
```
Example, align right in a left to right language:
```
<TextView
android:id="@+id/tv_item"
style="@style/text_highlight_small_title"
andro... | **Solution:**
use this xml code
```
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_paren... |
50,583,374 | ```
SELECT artist.name, recording.name, MAX(recording.length)
FROM recording
INNER JOIN (artist_credit
INNER JOIN (artist_credit_name
INNER JOIN artist
ON artist_credit_name.artist_credit=artist.id)
ON artist_credit_name.artist_... | 2018/05/29 | [
"https://Stackoverflow.com/questions/50583374",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9863958/"
] | use this xml code
```
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextV... | Use design because it is much easier than xml [video file](https://imgur.com/a/z7lki8C) |
50,583,374 | ```
SELECT artist.name, recording.name, MAX(recording.length)
FROM recording
INNER JOIN (artist_credit
INNER JOIN (artist_credit_name
INNER JOIN artist
ON artist_credit_name.artist_credit=artist.id)
ON artist_credit_name.artist_... | 2018/05/29 | [
"https://Stackoverflow.com/questions/50583374",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9863958/"
] | Unfortunately, we are missing the whole XML of your layout, but let's assume you have something like this:
```
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
and... | Try this:
```
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:con... |
50,583,374 | ```
SELECT artist.name, recording.name, MAX(recording.length)
FROM recording
INNER JOIN (artist_credit
INNER JOIN (artist_credit_name
INNER JOIN artist
ON artist_credit_name.artist_credit=artist.id)
ON artist_credit_name.artist_... | 2018/05/29 | [
"https://Stackoverflow.com/questions/50583374",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9863958/"
] | Unfortunately, we are missing the whole XML of your layout, but let's assume you have something like this:
```
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
and... | use this xml code
```
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextV... |
50,583,374 | ```
SELECT artist.name, recording.name, MAX(recording.length)
FROM recording
INNER JOIN (artist_credit
INNER JOIN (artist_credit_name
INNER JOIN artist
ON artist_credit_name.artist_credit=artist.id)
ON artist_credit_name.artist_... | 2018/05/29 | [
"https://Stackoverflow.com/questions/50583374",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9863958/"
] | Try this:
```
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/textView"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:gravity="right"
app:layout_constraintLeft_toLeftOf="parent"
... | Try this:
```
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:con... |
50,583,374 | ```
SELECT artist.name, recording.name, MAX(recording.length)
FROM recording
INNER JOIN (artist_credit
INNER JOIN (artist_credit_name
INNER JOIN artist
ON artist_credit_name.artist_credit=artist.id)
ON artist_credit_name.artist_... | 2018/05/29 | [
"https://Stackoverflow.com/questions/50583374",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9863958/"
] | Unfortunately, we are missing the whole XML of your layout, but let's assume you have something like this:
```
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
and... | In general, if you have more then one TextView in a single line it is not trivial to align the first TextView to the left. I have used a Guideline for this pourpose and it works perfectly. If you remove the GuideLine it doesn't works.
Here is the xml:
```
<TextView
android:id="@+id/textView1"
android:layout_w... |
3,409,919 | [c# linq]
i have 2 datasources, 1 coming from an xml document and 1 coming from an sql server database, both return an `IEnumerable<EventsDetails>` is it possible to bind both of these lists to a single repeater? | 2010/08/04 | [
"https://Stackoverflow.com/questions/3409919",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/310787/"
] | You're probably looking for something like this, if you want to use LINQ:
```
var both= list1.Union(list2);
```
Then `both` is your data source. | Create a new list containing both. Or an object implementing IEnumetator which first returns elements from the first, then from the second list. |
10,223,065 | I get the following errors when I try to run my Android program.
Please explain me What really `adb` is, and how to restart it?
I am getting the following error
```
The connection to adb is down, and a severe error has occured.
You must restart adb and Eclipse.
``` | 2012/04/19 | [
"https://Stackoverflow.com/questions/10223065",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/475247/"
] | ADB stands for **Android Debug Bridge**.
Android Debug Bridge (adb) is a versatile command line tool that lets you communicate with an emulator instance or connected Android-powered device.

In depth details can be found [here](http://opensourceforg... | I saw this problem on Eclipse, and it reported that I needed to 'reset adb from the Device's view'. The adb kill&restart-server sequence didn't work for me, **but I was successful with just disabling and then re-enabling the 'USB debugging' check box in the phone's Settings->Developer Options** |
10,223,065 | I get the following errors when I try to run my Android program.
Please explain me What really `adb` is, and how to restart it?
I am getting the following error
```
The connection to adb is down, and a severe error has occured.
You must restart adb and Eclipse.
``` | 2012/04/19 | [
"https://Stackoverflow.com/questions/10223065",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/475247/"
] | adb is [Android Debug Bridge](http://developer.android.com/guide/developing/tools/adb.html).
To restart adb by command line:
```
adb kill-server
adb start-server
```
To restart adb in Eclipse:
1. Window > Show View > Other... > Android/Devices
2. When the view is showing: View Menu of "Devices" > Reset adb | [Android Debug Bridge](http://developer.android.com/guide/developing/tools/adb.html)
====================================================================================
Android Debug Bridge (adb) is a versatile command line tool that lets you communicate with an emulator instance or connected Android-powered device. ... |
10,223,065 | I get the following errors when I try to run my Android program.
Please explain me What really `adb` is, and how to restart it?
I am getting the following error
```
The connection to adb is down, and a severe error has occured.
You must restart adb and Eclipse.
``` | 2012/04/19 | [
"https://Stackoverflow.com/questions/10223065",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/475247/"
] | ADB stands for **Android Debug Bridge**.
Android Debug Bridge (adb) is a versatile command line tool that lets you communicate with an emulator instance or connected Android-powered device.

In depth details can be found [here](http://opensourceforg... | i also came across with this problem, i got this error **please ensure that adb is correctly located “Users/semihozkoroglu/ADT/sdk/platform-tools/adb” and can be executed**
Click devices dropdown - > reset adb, its works..
 |
10,223,065 | I get the following errors when I try to run my Android program.
Please explain me What really `adb` is, and how to restart it?
I am getting the following error
```
The connection to adb is down, and a severe error has occured.
You must restart adb and Eclipse.
``` | 2012/04/19 | [
"https://Stackoverflow.com/questions/10223065",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/475247/"
] | adb is [Android Debug Bridge](http://developer.android.com/guide/developing/tools/adb.html).
To restart adb by command line:
```
adb kill-server
adb start-server
```
To restart adb in Eclipse:
1. Window > Show View > Other... > Android/Devices
2. When the view is showing: View Menu of "Devices" > Reset adb | ADB stands for **Android Debug Bridge**.
Android Debug Bridge (adb) is a versatile command line tool that lets you communicate with an emulator instance or connected Android-powered device.

In depth details can be found [here](http://opensourceforg... |
10,223,065 | I get the following errors when I try to run my Android program.
Please explain me What really `adb` is, and how to restart it?
I am getting the following error
```
The connection to adb is down, and a severe error has occured.
You must restart adb and Eclipse.
``` | 2012/04/19 | [
"https://Stackoverflow.com/questions/10223065",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/475247/"
] | adb is [Android Debug Bridge](http://developer.android.com/guide/developing/tools/adb.html).
To restart adb by command line:
```
adb kill-server
adb start-server
```
To restart adb in Eclipse:
1. Window > Show View > Other... > Android/Devices
2. When the view is showing: View Menu of "Devices" > Reset adb | i also came across with this problem, i got this error **please ensure that adb is correctly located “Users/semihozkoroglu/ADT/sdk/platform-tools/adb” and can be executed**
Click devices dropdown - > reset adb, its works..
 |
10,223,065 | I get the following errors when I try to run my Android program.
Please explain me What really `adb` is, and how to restart it?
I am getting the following error
```
The connection to adb is down, and a severe error has occured.
You must restart adb and Eclipse.
``` | 2012/04/19 | [
"https://Stackoverflow.com/questions/10223065",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/475247/"
] | adb is [Android Debug Bridge](http://developer.android.com/guide/developing/tools/adb.html).
To restart adb by command line:
```
adb kill-server
adb start-server
```
To restart adb in Eclipse:
1. Window > Show View > Other... > Android/Devices
2. When the view is showing: View Menu of "Devices" > Reset adb | ADB is a Android Debug Bridge.
Following for more Details ADB
<http://www.addictivetips.com/mobile/what-is-adb-and-how-to-install-it-android/>
<http://developer.android.com/guide/developing/tools/adb.html>
Close And Open Eclipse,Adb is automatically restarted..!
Thanks..! |
10,223,065 | I get the following errors when I try to run my Android program.
Please explain me What really `adb` is, and how to restart it?
I am getting the following error
```
The connection to adb is down, and a severe error has occured.
You must restart adb and Eclipse.
``` | 2012/04/19 | [
"https://Stackoverflow.com/questions/10223065",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/475247/"
] | i also came across with this problem, i got this error **please ensure that adb is correctly located “Users/semihozkoroglu/ADT/sdk/platform-tools/adb” and can be executed**
Click devices dropdown - > reset adb, its works..
 | ADB is a Android Debug Bridge.
Following for more Details ADB
<http://www.addictivetips.com/mobile/what-is-adb-and-how-to-install-it-android/>
<http://developer.android.com/guide/developing/tools/adb.html>
Close And Open Eclipse,Adb is automatically restarted..!
Thanks..! |
10,223,065 | I get the following errors when I try to run my Android program.
Please explain me What really `adb` is, and how to restart it?
I am getting the following error
```
The connection to adb is down, and a severe error has occured.
You must restart adb and Eclipse.
``` | 2012/04/19 | [
"https://Stackoverflow.com/questions/10223065",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/475247/"
] | adb is [Android Debug Bridge](http://developer.android.com/guide/developing/tools/adb.html).
To restart adb by command line:
```
adb kill-server
adb start-server
```
To restart adb in Eclipse:
1. Window > Show View > Other... > Android/Devices
2. When the view is showing: View Menu of "Devices" > Reset adb | I saw this problem on Eclipse, and it reported that I needed to 'reset adb from the Device's view'. The adb kill&restart-server sequence didn't work for me, **but I was successful with just disabling and then re-enabling the 'USB debugging' check box in the phone's Settings->Developer Options** |
10,223,065 | I get the following errors when I try to run my Android program.
Please explain me What really `adb` is, and how to restart it?
I am getting the following error
```
The connection to adb is down, and a severe error has occured.
You must restart adb and Eclipse.
``` | 2012/04/19 | [
"https://Stackoverflow.com/questions/10223065",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/475247/"
] | ADB stands for **Android Debug Bridge**.
Android Debug Bridge (adb) is a versatile command line tool that lets you communicate with an emulator instance or connected Android-powered device.

In depth details can be found [here](http://opensourceforg... | ADB is a Android Debug Bridge.
Following for more Details ADB
<http://www.addictivetips.com/mobile/what-is-adb-and-how-to-install-it-android/>
<http://developer.android.com/guide/developing/tools/adb.html>
Close And Open Eclipse,Adb is automatically restarted..!
Thanks..! |
10,223,065 | I get the following errors when I try to run my Android program.
Please explain me What really `adb` is, and how to restart it?
I am getting the following error
```
The connection to adb is down, and a severe error has occured.
You must restart adb and Eclipse.
``` | 2012/04/19 | [
"https://Stackoverflow.com/questions/10223065",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/475247/"
] | [Android Debug Bridge](http://developer.android.com/guide/developing/tools/adb.html)
====================================================================================
Android Debug Bridge (adb) is a versatile command line tool that lets you communicate with an emulator instance or connected Android-powered device. ... | I saw this problem on Eclipse, and it reported that I needed to 'reset adb from the Device's view'. The adb kill&restart-server sequence didn't work for me, **but I was successful with just disabling and then re-enabling the 'USB debugging' check box in the phone's Settings->Developer Options** |
39,403,497 | I am trying to do hyperledger fabric(setting up the environment) and it required docker. I tried searching the internet of solving to install docker but it was to no avail. The following is the errors encountered when I tried to install dockers.
At git bash(git) I tried to use `sudo apt-get install docker-engine`. But... | 2016/09/09 | [
"https://Stackoverflow.com/questions/39403497",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6601784/"
] | Maybe the [direct package download for `libsystemd-journal0`](http://packages.ubuntu.com/trusty/libsystemd-journal0) can help you.
You can download certain deb file then install it using `dpkg` command, but there may still be some dependency problems. So you'd better modify your `/etc/apt/source.list` file according t... | Add backports to your apt repo :
"deb <http://ftp.de.debian.org/debian> wheezy-backports main"
and perform a :
```
sudo apt-get update
```
Afterwards,
```
sudo apt-get install docker-engine
```
should complete fine. |
39,403,497 | I am trying to do hyperledger fabric(setting up the environment) and it required docker. I tried searching the internet of solving to install docker but it was to no avail. The following is the errors encountered when I tried to install dockers.
At git bash(git) I tried to use `sudo apt-get install docker-engine`. But... | 2016/09/09 | [
"https://Stackoverflow.com/questions/39403497",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6601784/"
] | Clean up the invalid package repository:
```
cd ../../etc/apt/sources.list.d
sudo rm docker.list
```
Then add the repository and update:
```
sudo apt-add-repository 'deb https://apt.dockerproject.org/repo ubuntu-xenial main'
sudo apt-get update
sudo apt-get install docker-engine
``` | Add backports to your apt repo :
"deb <http://ftp.de.debian.org/debian> wheezy-backports main"
and perform a :
```
sudo apt-get update
```
Afterwards,
```
sudo apt-get install docker-engine
```
should complete fine. |
39,403,497 | I am trying to do hyperledger fabric(setting up the environment) and it required docker. I tried searching the internet of solving to install docker but it was to no avail. The following is the errors encountered when I tried to install dockers.
At git bash(git) I tried to use `sudo apt-get install docker-engine`. But... | 2016/09/09 | [
"https://Stackoverflow.com/questions/39403497",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6601784/"
] | Update the repos in sourcelist file and run `apt-get update` that will fix the issue,
deb <https://packages.docker.com/1.12/apt/repo/> ubuntu-xenial main
deb <http://apt.dockerproject.org/repo/> ubuntu-trusty main | Add backports to your apt repo :
"deb <http://ftp.de.debian.org/debian> wheezy-backports main"
and perform a :
```
sudo apt-get update
```
Afterwards,
```
sudo apt-get install docker-engine
```
should complete fine. |
39,403,497 | I am trying to do hyperledger fabric(setting up the environment) and it required docker. I tried searching the internet of solving to install docker but it was to no avail. The following is the errors encountered when I tried to install dockers.
At git bash(git) I tried to use `sudo apt-get install docker-engine`. But... | 2016/09/09 | [
"https://Stackoverflow.com/questions/39403497",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6601784/"
] | idk if this works but try this:
```
sudo apt update
```
and,
```
sudo apt-get update
```
then,
```
sudo apt install docker.io
```
Enter your sudo password whenever prompted/required or better login in as root.
I've tried this when i was installing docker in my linux distro. (kali).
Hope this works for you too.... | Add backports to your apt repo :
"deb <http://ftp.de.debian.org/debian> wheezy-backports main"
and perform a :
```
sudo apt-get update
```
Afterwards,
```
sudo apt-get install docker-engine
```
should complete fine. |
39,403,497 | I am trying to do hyperledger fabric(setting up the environment) and it required docker. I tried searching the internet of solving to install docker but it was to no avail. The following is the errors encountered when I tried to install dockers.
At git bash(git) I tried to use `sudo apt-get install docker-engine`. But... | 2016/09/09 | [
"https://Stackoverflow.com/questions/39403497",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6601784/"
] | Clean up the invalid package repository:
```
cd ../../etc/apt/sources.list.d
sudo rm docker.list
```
Then add the repository and update:
```
sudo apt-add-repository 'deb https://apt.dockerproject.org/repo ubuntu-xenial main'
sudo apt-get update
sudo apt-get install docker-engine
``` | Maybe the [direct package download for `libsystemd-journal0`](http://packages.ubuntu.com/trusty/libsystemd-journal0) can help you.
You can download certain deb file then install it using `dpkg` command, but there may still be some dependency problems. So you'd better modify your `/etc/apt/source.list` file according t... |
39,403,497 | I am trying to do hyperledger fabric(setting up the environment) and it required docker. I tried searching the internet of solving to install docker but it was to no avail. The following is the errors encountered when I tried to install dockers.
At git bash(git) I tried to use `sudo apt-get install docker-engine`. But... | 2016/09/09 | [
"https://Stackoverflow.com/questions/39403497",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6601784/"
] | Maybe the [direct package download for `libsystemd-journal0`](http://packages.ubuntu.com/trusty/libsystemd-journal0) can help you.
You can download certain deb file then install it using `dpkg` command, but there may still be some dependency problems. So you'd better modify your `/etc/apt/source.list` file according t... | Update the repos in sourcelist file and run `apt-get update` that will fix the issue,
deb <https://packages.docker.com/1.12/apt/repo/> ubuntu-xenial main
deb <http://apt.dockerproject.org/repo/> ubuntu-trusty main |
39,403,497 | I am trying to do hyperledger fabric(setting up the environment) and it required docker. I tried searching the internet of solving to install docker but it was to no avail. The following is the errors encountered when I tried to install dockers.
At git bash(git) I tried to use `sudo apt-get install docker-engine`. But... | 2016/09/09 | [
"https://Stackoverflow.com/questions/39403497",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6601784/"
] | Maybe the [direct package download for `libsystemd-journal0`](http://packages.ubuntu.com/trusty/libsystemd-journal0) can help you.
You can download certain deb file then install it using `dpkg` command, but there may still be some dependency problems. So you'd better modify your `/etc/apt/source.list` file according t... | idk if this works but try this:
```
sudo apt update
```
and,
```
sudo apt-get update
```
then,
```
sudo apt install docker.io
```
Enter your sudo password whenever prompted/required or better login in as root.
I've tried this when i was installing docker in my linux distro. (kali).
Hope this works for you too.... |
39,403,497 | I am trying to do hyperledger fabric(setting up the environment) and it required docker. I tried searching the internet of solving to install docker but it was to no avail. The following is the errors encountered when I tried to install dockers.
At git bash(git) I tried to use `sudo apt-get install docker-engine`. But... | 2016/09/09 | [
"https://Stackoverflow.com/questions/39403497",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6601784/"
] | Clean up the invalid package repository:
```
cd ../../etc/apt/sources.list.d
sudo rm docker.list
```
Then add the repository and update:
```
sudo apt-add-repository 'deb https://apt.dockerproject.org/repo ubuntu-xenial main'
sudo apt-get update
sudo apt-get install docker-engine
``` | Update the repos in sourcelist file and run `apt-get update` that will fix the issue,
deb <https://packages.docker.com/1.12/apt/repo/> ubuntu-xenial main
deb <http://apt.dockerproject.org/repo/> ubuntu-trusty main |
39,403,497 | I am trying to do hyperledger fabric(setting up the environment) and it required docker. I tried searching the internet of solving to install docker but it was to no avail. The following is the errors encountered when I tried to install dockers.
At git bash(git) I tried to use `sudo apt-get install docker-engine`. But... | 2016/09/09 | [
"https://Stackoverflow.com/questions/39403497",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6601784/"
] | Clean up the invalid package repository:
```
cd ../../etc/apt/sources.list.d
sudo rm docker.list
```
Then add the repository and update:
```
sudo apt-add-repository 'deb https://apt.dockerproject.org/repo ubuntu-xenial main'
sudo apt-get update
sudo apt-get install docker-engine
``` | idk if this works but try this:
```
sudo apt update
```
and,
```
sudo apt-get update
```
then,
```
sudo apt install docker.io
```
Enter your sudo password whenever prompted/required or better login in as root.
I've tried this when i was installing docker in my linux distro. (kali).
Hope this works for you too.... |
39,403,497 | I am trying to do hyperledger fabric(setting up the environment) and it required docker. I tried searching the internet of solving to install docker but it was to no avail. The following is the errors encountered when I tried to install dockers.
At git bash(git) I tried to use `sudo apt-get install docker-engine`. But... | 2016/09/09 | [
"https://Stackoverflow.com/questions/39403497",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6601784/"
] | idk if this works but try this:
```
sudo apt update
```
and,
```
sudo apt-get update
```
then,
```
sudo apt install docker.io
```
Enter your sudo password whenever prompted/required or better login in as root.
I've tried this when i was installing docker in my linux distro. (kali).
Hope this works for you too.... | Update the repos in sourcelist file and run `apt-get update` that will fix the issue,
deb <https://packages.docker.com/1.12/apt/repo/> ubuntu-xenial main
deb <http://apt.dockerproject.org/repo/> ubuntu-trusty main |
3,526 | >
> You are smarter than me.
>
>
> You are smarter than I am.
>
>
>
Is there any difference between these two? One of my friends told me first sentence is wrong, but the second one is correct. But he could not explain me the reason. So is it true? Iff so, why? | 2013/03/06 | [
"https://ell.stackexchange.com/questions/3526",
"https://ell.stackexchange.com",
"https://ell.stackexchange.com/users/91/"
] | This used to be a contentious point in the world of English usage. But it's been decided in favor of agreeing that both are acceptable and idiomatic. "Than" can be used as a conjunction or a preposition. When used as a preposition, *[than](http://www.merriam-webster.com/dictionary/than)* takes an object, which can be a... | The Columbia Guide to Standard American English agrees with Bill Franke's answer.
In fact that guide reads:
>
> Than is both a subordinating conjunction, as in "She is wiser than I am", and a preposition, as in "She is wiser than me". Since the following verb **am** is often dropped or “understood,” we regularly hea... |
46,796,231 | I have a text element in my window and I would like it be blink or appear and disappear for every few seconds or milli seconds.
My code is:
```
import QtQuick 2.6
import QtQuick.Window 2.2
Window {
visible: true
width: 640
height: 480
title: qsTr("Hello World")
Text {
id: my_text
... | 2017/10/17 | [
"https://Stackoverflow.com/questions/46796231",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7193815/"
] | The task is easily solved with a [`Timer`](http://doc.qt.io/qt-5/qml-qtqml-timer.html).
```
import QtQuick 2.6
import QtQuick.Window 2.2
Window {
visible: true
width: 640
height: 480
title: qsTr("Hello World")
Text {
id: my_text
font.pixelSize: 30
text: "Hello"
}
... | Another solution using `OpacityAnimator`:
```
import QtQuick 2.6
import QtQuick.Window 2.2
Window {
visible: true
width: 640
height: 480
title: qsTr("Hello World")
Text {
anchors.centerIn: parent
id: my_text
text: "Hello"
font.pixelSize: 30
OpacityAnimato... |
49,226,031 | As for the Vala language cross-platform to know the bitness of the system? | 2018/03/11 | [
"https://Stackoverflow.com/questions/49226031",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9058627/"
] | `sizeof(void*)` will be 8 for 64-bit systems and 4 for 32 bit systems. Also, 2 for 16 bit systems, but I don't even know that glib will work there. | The whole point of GLib is to avoid having to do platform specific code.
However according to you comment you want to do something like download platform specific packages.
First of all it would be better to use a system or user package manager to do that, since they already know how to achieve that ([DRY principle](... |
29,626,617 | I am setting up a new dev server, and moving some old projects to this. I opened up one of the older web projects. Setup the publish settings to use Web Deploy just like I have done for many projects. However, on this one I am getting the following error when clicking the preview.
>
> Error 3 The "NormalizeServiceUrl... | 2015/04/14 | [
"https://Stackoverflow.com/questions/29626617",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4585103/"
] | I found a post about a similar problem. This led me to open the vbproj file. I looked at a project of ours that looked fine.
It had these 3 lines in the vbproj file.
```
<Import Project="$(MSBuildBinPath)\Microsoft.VisualBasic.targets" />
<Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.target... | In case of incorrect import for VS 2019,
project line to fix:
```
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
```
fixed
```
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v16.0\WebApplications\Microsoft.WebApplicat... |
29,626,617 | I am setting up a new dev server, and moving some old projects to this. I opened up one of the older web projects. Setup the publish settings to use Web Deploy just like I have done for many projects. However, on this one I am getting the following error when clicking the preview.
>
> Error 3 The "NormalizeServiceUrl... | 2015/04/14 | [
"https://Stackoverflow.com/questions/29626617",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4585103/"
] | I also had this error in Visual Studio 2013. It looks like the project wasn't upgraded properly from VS 2010. I changed this line:
```
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
```
To (v10.0 => v12.0):
```
<Import Project="$(MSBuild... | In case of incorrect import for VS 2019,
project line to fix:
```
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
```
fixed
```
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v16.0\WebApplications\Microsoft.WebApplicat... |
2,875,282 | I have a .NET solution containing following projects:
* web application (WAP)
* web deployment (WDP, .wdproj)
* wix setup (WIX, .wixproj)
In the WDP I've used a custom MSBuild task (SetEnvVar) to set some env. variables for further use in the build process. After setting them I can use them without prob.
in the WDP ... | 2010/05/20 | [
"https://Stackoverflow.com/questions/2875282",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/346252/"
] | is it possible your SetEnvVar task sets the environment variables for a single process instead of globally (which it should do to be safe btw)? In that case, it's likely that the WIX thingie is started as a different process in some way, so with it's own private copy of the current global environment set. | Here are the significant parts of the project files:
**WDP (.wdproj)**
```
<Target Name="AfterBuild">
<SetEnvVar Variable="MAJOR" Value="$(MajorNumber)" />
<SetEnvVar Variable="MINOR" Value="$(MinorNumber)" />
<SetEnvVar Variable="REVISION" Value="$(RevisionNumber)" />
<SetEnvVar Variable="BUILD" Valu... |
160,106 | Some Banished knowledge bases (I think the game for one) seem to imply that herbalist/gatherer likes old untouched forests to do their work, but a lot of people recommend a forester to keep a dense forest cover next to your gatherer/etc (The wiki says both of these things, I believe).
So which is it? Is a forester a b... | 2014/03/14 | [
"https://gaming.stackexchange.com/questions/160106",
"https://gaming.stackexchange.com",
"https://gaming.stackexchange.com/users/10308/"
] | **"Old Growth" versus "New Growth" is not an actual mechanic.** The only thing that matters for gatherers and herbalists are tree *density* (since this determines yields / spawnings of the smaller plants).
While I'm not certain on the absolute value of not having a cutting forester overlap a herbalist / gatherer, you ... | A forester is not a bad thing at all, in fact you can set your forester to only Plant trees and not cut any down in order to provide the largest amount of "Mature" trees in the area, which will help you maximize the output from your Herbalist/Gatherers.
Personally I let my foresters run on Plant only until I have a ni... |
424,464 | I am trying to develop an off grid solar monitoring system. In order to measure solar input current I am using a 50 A/75 mV shunt with an Adafruit ADS1115 (VDD=5 V).
However, when I connected A0, A1 of the ADS1115, I fried the IC. I have already fried two ADS1115 ICs.
I have attached my connection diagram for your r... | 2019/02/26 | [
"https://electronics.stackexchange.com/questions/424464",
"https://electronics.stackexchange.com",
"https://electronics.stackexchange.com/users/193011/"
] | No, the whole needs to be compliant.
If device A is UL compliant and device B is UL compliant, it doesn't impy A+B UL compliant. It has to be tested/proved.
Moreover, if device A is UL compliant, but device B is **not** UL compliant, this doesn't imply A+B is **not** UL compliant. | The short answer as @Huisman said is yes, the cart will likely still need to be Listed (Listed is the correct term for approved, compliant etc. Not super important, but correct).
As you alluded to, there are exceptions based on the input power to the device. I don't know which standard golf carts are evaluated to, my ... |
424,464 | I am trying to develop an off grid solar monitoring system. In order to measure solar input current I am using a 50 A/75 mV shunt with an Adafruit ADS1115 (VDD=5 V).
However, when I connected A0, A1 of the ADS1115, I fried the IC. I have already fried two ADS1115 ICs.
I have attached my connection diagram for your r... | 2019/02/26 | [
"https://electronics.stackexchange.com/questions/424464",
"https://electronics.stackexchange.com",
"https://electronics.stackexchange.com/users/193011/"
] | UL does not approve anything. They publish standards, maintain a list of products that they have tested and/or evaluated to determine that they meet those and other applicable standards, and authorize products that have been listed to be marked with the UL label. In the USA, they are one of several nationally recognize... | No, the whole needs to be compliant.
If device A is UL compliant and device B is UL compliant, it doesn't impy A+B UL compliant. It has to be tested/proved.
Moreover, if device A is UL compliant, but device B is **not** UL compliant, this doesn't imply A+B is **not** UL compliant. |
424,464 | I am trying to develop an off grid solar monitoring system. In order to measure solar input current I am using a 50 A/75 mV shunt with an Adafruit ADS1115 (VDD=5 V).
However, when I connected A0, A1 of the ADS1115, I fried the IC. I have already fried two ADS1115 ICs.
I have attached my connection diagram for your r... | 2019/02/26 | [
"https://electronics.stackexchange.com/questions/424464",
"https://electronics.stackexchange.com",
"https://electronics.stackexchange.com/users/193011/"
] | UL does not approve anything. They publish standards, maintain a list of products that they have tested and/or evaluated to determine that they meet those and other applicable standards, and authorize products that have been listed to be marked with the UL label. In the USA, they are one of several nationally recognize... | The short answer as @Huisman said is yes, the cart will likely still need to be Listed (Listed is the correct term for approved, compliant etc. Not super important, but correct).
As you alluded to, there are exceptions based on the input power to the device. I don't know which standard golf carts are evaluated to, my ... |
55,293,320 | I am trying to run my first springboot application but facing some issues.
In my application file, this is my code
```
package com.clog.ServiceMgmt;
import java.util.List;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframew... | 2019/03/22 | [
"https://Stackoverflow.com/questions/55293320",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2809686/"
] | Had same problem few days ago. Try to change spring-boot-starter-parent version to 2.1.3.RELEASE, thats resolved my problem. | I had this error happen in a Spring Boot project where I added a custom dependency that made use of Spring (not Spring Boot). The issue in my custom dependency was that it had the following plugin configuration:
```
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId... |
55,293,320 | I am trying to run my first springboot application but facing some issues.
In my application file, this is my code
```
package com.clog.ServiceMgmt;
import java.util.List;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframew... | 2019/03/22 | [
"https://Stackoverflow.com/questions/55293320",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2809686/"
] | from [spring-projects-github](https://github.com/spring-projects/spring-boot/issues/18190)
" proxyBeanMethods is new in 5.2 and I can see 5.1.2.RELEASE in some elements of the stack."
do a dependency:tree and double check that spring match >= 5.2, I had a similar issue and one library brought 5.1 overriding v5.2 from... | Had same problem few days ago. Try to change spring-boot-starter-parent version to 2.1.3.RELEASE, thats resolved my problem. |
55,293,320 | I am trying to run my first springboot application but facing some issues.
In my application file, this is my code
```
package com.clog.ServiceMgmt;
import java.util.List;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframew... | 2019/03/22 | [
"https://Stackoverflow.com/questions/55293320",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2809686/"
] | Had same problem few days ago. Try to change spring-boot-starter-parent version to 2.1.3.RELEASE, thats resolved my problem. | I removed the following dependency
```
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot</artifactId>
<version>2.2.1.RELEASE</version>
</dependency>
```
And the code was up like magic |
55,293,320 | I am trying to run my first springboot application but facing some issues.
In my application file, this is my code
```
package com.clog.ServiceMgmt;
import java.util.List;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframew... | 2019/03/22 | [
"https://Stackoverflow.com/questions/55293320",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2809686/"
] | Had same problem few days ago. Try to change spring-boot-starter-parent version to 2.1.3.RELEASE, thats resolved my problem. | use this in your main springboot application class :@SpringBootApplication(proxyBeanMethods = false)
this will work . |
55,293,320 | I am trying to run my first springboot application but facing some issues.
In my application file, this is my code
```
package com.clog.ServiceMgmt;
import java.util.List;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframew... | 2019/03/22 | [
"https://Stackoverflow.com/questions/55293320",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2809686/"
] | from [spring-projects-github](https://github.com/spring-projects/spring-boot/issues/18190)
" proxyBeanMethods is new in 5.2 and I can see 5.1.2.RELEASE in some elements of the stack."
do a dependency:tree and double check that spring match >= 5.2, I had a similar issue and one library brought 5.1 overriding v5.2 from... | I had this error happen in a Spring Boot project where I added a custom dependency that made use of Spring (not Spring Boot). The issue in my custom dependency was that it had the following plugin configuration:
```
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId... |
55,293,320 | I am trying to run my first springboot application but facing some issues.
In my application file, this is my code
```
package com.clog.ServiceMgmt;
import java.util.List;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframew... | 2019/03/22 | [
"https://Stackoverflow.com/questions/55293320",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2809686/"
] | use this in your main springboot application class :@SpringBootApplication(proxyBeanMethods = false)
this will work . | I had this error happen in a Spring Boot project where I added a custom dependency that made use of Spring (not Spring Boot). The issue in my custom dependency was that it had the following plugin configuration:
```
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId... |
55,293,320 | I am trying to run my first springboot application but facing some issues.
In my application file, this is my code
```
package com.clog.ServiceMgmt;
import java.util.List;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframew... | 2019/03/22 | [
"https://Stackoverflow.com/questions/55293320",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2809686/"
] | from [spring-projects-github](https://github.com/spring-projects/spring-boot/issues/18190)
" proxyBeanMethods is new in 5.2 and I can see 5.1.2.RELEASE in some elements of the stack."
do a dependency:tree and double check that spring match >= 5.2, I had a similar issue and one library brought 5.1 overriding v5.2 from... | I removed the following dependency
```
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot</artifactId>
<version>2.2.1.RELEASE</version>
</dependency>
```
And the code was up like magic |
55,293,320 | I am trying to run my first springboot application but facing some issues.
In my application file, this is my code
```
package com.clog.ServiceMgmt;
import java.util.List;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframew... | 2019/03/22 | [
"https://Stackoverflow.com/questions/55293320",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2809686/"
] | from [spring-projects-github](https://github.com/spring-projects/spring-boot/issues/18190)
" proxyBeanMethods is new in 5.2 and I can see 5.1.2.RELEASE in some elements of the stack."
do a dependency:tree and double check that spring match >= 5.2, I had a similar issue and one library brought 5.1 overriding v5.2 from... | use this in your main springboot application class :@SpringBootApplication(proxyBeanMethods = false)
this will work . |
55,293,320 | I am trying to run my first springboot application but facing some issues.
In my application file, this is my code
```
package com.clog.ServiceMgmt;
import java.util.List;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframew... | 2019/03/22 | [
"https://Stackoverflow.com/questions/55293320",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2809686/"
] | use this in your main springboot application class :@SpringBootApplication(proxyBeanMethods = false)
this will work . | I removed the following dependency
```
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot</artifactId>
<version>2.2.1.RELEASE</version>
</dependency>
```
And the code was up like magic |
136,429 | How do you increase Cache size? think QGIS is falling-over as haven't given it enough...
image to export 1080 x 800 mm!
Would like at least 120 dpi or 200 : ) | 2015/02/23 | [
"https://gis.stackexchange.com/questions/136429",
"https://gis.stackexchange.com",
"https://gis.stackexchange.com/users/47940/"
] | There is no rendering cache in that sense. QGIS will use all the RAM memory that it can. The only limit might be if you're on a 32bit Windows. Then QGIS will only be able to use 4GB RAM. | Not sure I understand about the cache issue but you can set the **export resolution** if that's what you mean:
 |
38,907,297 | I have 2 tables:
```
original {ID, FirstName, LastName}
and
dummy {ID(NULL), FirstName, LastName}
```
I have to insert into t2.ID the original.ID but only if the FirstName and LastName from both tables are the same. Now, i've tried:
1.Error Code: 1054. Unknown column 't2.FirstName' in 'where clause'
```
I... | 2016/08/11 | [
"https://Stackoverflow.com/questions/38907297",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/716136/"
] | Version 1 is just plain wrong - you'll insert a new row, not update the existing row.
Version 2 is close, you just need a join to "original":
```
UPDATE dummy
SET ID = original.ID
FROM dummy
INNER JOIN original
ON dummy.FirstName =original.FirstName
AND dummy.LastName = original.LastName;
``` | You need to perform a join on first and last name between the "original" and "dummy" tables and then update the ID
Try this..
```
Update a
Set a.ID = b.ID
From dummy a
Join original b
On a.firstname = b.firstname
And b.lastname = b.firstname
```
You were trying to filter based on columns in the "original" table but... |
68,002,130 | I'm trying to show list from `GraphQl` and my query is working and getting data in future but `AsyncSnapshot` showing always null.
I debugged the code and every value is coming without any exception.
This is my `FutureBuilder` to load list
```
Expanded(
child: FutureBuilder<InventoryListData>(
... | 2021/06/16 | [
"https://Stackoverflow.com/questions/68002130",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7357920/"
] | You should assign **getInventory**() to variable in **initstate**
```
var data;
initState() {
// at the beginning, all users are shown
data = getInventory();
super.initState();
}
```
And then use **StreamBuilder** instead of future
```
Expanded(
child: StreamBuilder<InventoryListData>(
... | The problem is that every time you call `getInventory()` it's creating a new `Future`, so with every rebuild you start fetching again.
Take a look at the [documentation](https://api.flutter.dev/flutter/widgets/FutureBuilder-class.html) for the `FutureBuilder` class:
>
> The future must have been obtained earlier, e.... |
5,334,589 | I have a vector class that has it's `Equals(object obj)` method overridden so that I can compare them.
```
public class Vector3f
{
public float x,y,z;
public Vector3f(float x, float y, float z)
{
this.x = x;
this.y = y;
this.z = z;
}
public static Vector3f operator +(Vector3f... | 2011/03/17 | [
"https://Stackoverflow.com/questions/5334589",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/186359/"
] | Your problem must be a rounding/truncation error. It happens all the time with floating point operations, specially subtraction. When you test for equality, instead of a==b, use a-b < SmallConstant. You could also try using double precision or Decimal, although truncation errors will eventually return, but you might ma... | You are probably seeing the problem because you are using floats. Floats by their nature are not precise. Unless you need to use float for some reason, I would change my class to use Decimals instead.
Hope this helps. |
5,334,589 | I have a vector class that has it's `Equals(object obj)` method overridden so that I can compare them.
```
public class Vector3f
{
public float x,y,z;
public Vector3f(float x, float y, float z)
{
this.x = x;
this.y = y;
this.z = z;
}
public static Vector3f operator +(Vector3f... | 2011/03/17 | [
"https://Stackoverflow.com/questions/5334589",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/186359/"
] | Your problem must be a rounding/truncation error. It happens all the time with floating point operations, specially subtraction. When you test for equality, instead of a==b, use a-b < SmallConstant. You could also try using double precision or Decimal, although truncation errors will eventually return, but you might ma... | If you debug the app you will see the following:
1.1f - 1.0f = 0.100000024
0.1 can't be represented in binary exactly. It would be like trying to write out 1/3 in base 10 exactly, you cant do it because [it goes on forever](http://docs.python.org/tutorial/floatingpoint.html). [There is another similar question](https... |
5,334,589 | I have a vector class that has it's `Equals(object obj)` method overridden so that I can compare them.
```
public class Vector3f
{
public float x,y,z;
public Vector3f(float x, float y, float z)
{
this.x = x;
this.y = y;
this.z = z;
}
public static Vector3f operator +(Vector3f... | 2011/03/17 | [
"https://Stackoverflow.com/questions/5334589",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/186359/"
] | If you debug the app you will see the following:
1.1f - 1.0f = 0.100000024
0.1 can't be represented in binary exactly. It would be like trying to write out 1/3 in base 10 exactly, you cant do it because [it goes on forever](http://docs.python.org/tutorial/floatingpoint.html). [There is another similar question](https... | You are probably seeing the problem because you are using floats. Floats by their nature are not precise. Unless you need to use float for some reason, I would change my class to use Decimals instead.
Hope this helps. |
390,954 | If $u,v,w$ and $z$ are distinct elements in $R$, then
{$(1,u,u^2,u^3), (1,v,v^2,v^3), (1,w,w^2,w^3), (1,z,z^2,z^3)$} is a linearly independent subset of $R^4$.
Is that true or false?
I even can't start the first step.. | 2013/05/14 | [
"https://math.stackexchange.com/questions/390954",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/73517/"
] | I make multiple use of the rule: $\log\_a x=b\implies a^b=x$
The first problem is already addressed in one of the other answers, but when you see $\log\_{3x}(81)=2$, you should think $(3x)^2=9x^2=81\implies x=3$
As for the second problem, since $4^2=16$, we know that $\log\_4 16=2$ and we can make the following simpl... | $$\log\_{3x}(81)=2$$
$$(3x)^{\log\_{3x}(81)}=(3x)^{2}$$
$$81=9x^2$$
$$9=x^2$$
$$3=x$$ |
70,801,758 | I have created a project that when the page opens, it asks the user to accept his location. When the user accepts, a google maps window opens, displaying the user's current location as well as the coordinates:
[](https://i.stack.imgur.com/5WyQ6.png)
... | 2022/01/21 | [
"https://Stackoverflow.com/questions/70801758",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17427411/"
] | [`/#{1,6}.+(?=\n)/g`](https://regex101.com/r/n6XQub/1)
* `#{1,6}` ... matches the character `#` at least once or as sequence of maximum 6 equal characters.
* `.+` matches any character (except for line terminators) at least once and as many times as possible (greedy)
* does so until the [*positive lookahead*](https://... | The issue is that you are using a literal for the regex and should not double escape the backslash, so you can write it as `(?<!#)#{1,6} (.*?)(\r(?:\n)?|\n)`
You can shorten the pattern capturing what you want and match the trailing newline instead of using a lookbehind assertion.
```
(#{1,6} .*)\r?\n
```
Retrievin... |
20,987,153 | I'm trying to have a SKNode move onto the screen on command. I've set up the following SKAction chain so that 1) The node moves up and offscreen, then 2) the node moves down into a starting place, then 3) starts moving around. I've used the following code to try and implement this:
```
SKAction *moveUp = [SKAction... | 2014/01/08 | [
"https://Stackoverflow.com/questions/20987153",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/252216/"
] | It does not seem like you understand how runAction is executed.
Using
```
[node runAction:moveUp completion:^{
NSLog(@"RUNNING MOVE DOWN");
[node setHidden: NO];
[node runAction: moveDown];
}];
```
will not just define a completion to be done at the end of the action, but it runs th... | The completion block runs after the action is finished. So, if you want to move up, then move down, then move around, you need to write the following code:
```
[node runAction:moveUp completion:^{
[node runAction:moveDown completion:^{
NSLog(@"STARTING MOVEMENT");
}];
}];
```
What you... |
20,987,153 | I'm trying to have a SKNode move onto the screen on command. I've set up the following SKAction chain so that 1) The node moves up and offscreen, then 2) the node moves down into a starting place, then 3) starts moving around. I've used the following code to try and implement this:
```
SKAction *moveUp = [SKAction... | 2014/01/08 | [
"https://Stackoverflow.com/questions/20987153",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/252216/"
] | It does not seem like you understand how runAction is executed.
Using
```
[node runAction:moveUp completion:^{
NSLog(@"RUNNING MOVE DOWN");
[node setHidden: NO];
[node runAction: moveDown];
}];
```
will not just define a completion to be done at the end of the action, but it runs th... | I know it's been marked as answered but though I'd offer up an alternative.
An alternative option would be to simply sequence the Actions with just one completion handler
for example (could just be written as a one liner if you wanted):
```
NSArray *actions = @[moveUp, [SKAction unhide], moveDown];
SKAction *action ... |
44,286,642 | I am making a django app that can hold info about items i have on ebay.
So, each user would have multiple ebay accounts.
For example:
user1 would have access to ebay1, ebay2, ebay3 account.
How can I get appid, certid, devid and token for each account?
The best would be to click 'add ebay account' and in new window wi... | 2017/05/31 | [
"https://Stackoverflow.com/questions/44286642",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/468807/"
] | I used code from this repo: <https://github.com/luke-dixon/django-ebay-accounts>
with fix from: [here](https://github.com/luke-dixon/django-ebay-accounts/commit/f4913039b452cef9315f3f4deced89f09203afb4) it works great | You simply login to the developer account and then Click User Tokens.
next click Get a User Token Here.
login to each account you need a token for
your APPID, CertId, and DevID always stay the same.. |
44,286,642 | I am making a django app that can hold info about items i have on ebay.
So, each user would have multiple ebay accounts.
For example:
user1 would have access to ebay1, ebay2, ebay3 account.
How can I get appid, certid, devid and token for each account?
The best would be to click 'add ebay account' and in new window wi... | 2017/05/31 | [
"https://Stackoverflow.com/questions/44286642",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/468807/"
] | ```
InvalidHeader at /ebay_accounts/begin_create Header value 3 must be of type str or bytes, not <class 'int'>
```
you have to append the str to your data you send so str("whatever") | You simply login to the developer account and then Click User Tokens.
next click Get a User Token Here.
login to each account you need a token for
your APPID, CertId, and DevID always stay the same.. |
58,322,528 | So far, I've encountered the issue "variable x is accessed within inner class,needs to be declared final. I am able to initialize the CheckBox's but I am unable to set a listener to them after initialization in the loop. Below is my code so far.
```
for(int i=0;i<checkBox_fiber_ID.length;i++){
int temp=get... | 2019/10/10 | [
"https://Stackoverflow.com/questions/58322528",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8633966/"
] | That decoding strategy has nothing to do with numbers being represented as strings. What you need to do is to implement `init(from:)` and convert from string there
```
class MyClass : Codable {
var decimal: Double?
enum CodingKeys: String, CodingKey {
case decimal = "test"
}
required init(fro... | I believe that a cleaner solution is declare value not like a string but like a value:
```
"test": 0.007
```
having a struct like that:
```
struct Stuff {
var test: Decimal
}
```
and then:
```
let decoder = JSONDecoder()
let stuff = try decoder.decode(Stuff.self, from: json)
```
otherwise you can use t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.