qid int64 1 74.7M | question stringlengths 0 58.3k | date stringlengths 10 10 | metadata list | response_j stringlengths 2 48.3k | response_k stringlengths 2 40.5k |
|---|---|---|---|---|---|
234,104 | Is there a way I can uninstall programs without the graphical interface and doing it via CMD? | 2011/01/17 | [
"https://superuser.com/questions/234104",
"https://superuser.com",
"https://superuser.com/users/63442/"
] | Every program that properly installs itself according to Microsoft's guidelines makes a registry entry in `HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall`. Usually, the key for the program will be its GUID, or else the name of the program. Within that key will be an entry called `UninstallString`. This contai... | A VBScript script will help you to uninstall the require program.
To use this script you will require software name which is located in your registry.
Just enter the application name in the script and run it with admin privileges; it will uninstall the application. But this will only work for a window-based applicati... |
234,104 | Is there a way I can uninstall programs without the graphical interface and doing it via CMD? | 2011/01/17 | [
"https://superuser.com/questions/234104",
"https://superuser.com",
"https://superuser.com/users/63442/"
] | Every program that properly installs itself according to Microsoft's guidelines makes a registry entry in `HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall`. Usually, the key for the program will be its GUID, or else the name of the program. Within that key will be an entry called `UninstallString`. This contai... | If a program uses Windows Installer, you can use one of the following commands:
```
msiexec /q /x <ProductCodeGuid>
msiexec /q /x <PathToMsi>
```
However, you're likely have neither the product code nor the original MSI file used for installation.
Other than that, there is no generic uninstall command, since instal... |
234,104 | Is there a way I can uninstall programs without the graphical interface and doing it via CMD? | 2011/01/17 | [
"https://superuser.com/questions/234104",
"https://superuser.com",
"https://superuser.com/users/63442/"
] | If a program uses Windows Installer, you can use one of the following commands:
```
msiexec /q /x <ProductCodeGuid>
msiexec /q /x <PathToMsi>
```
However, you're likely have neither the product code nor the original MSI file used for installation.
Other than that, there is no generic uninstall command, since instal... | A VBScript script will help you to uninstall the require program.
To use this script you will require software name which is located in your registry.
Just enter the application name in the script and run it with admin privileges; it will uninstall the application. But this will only work for a window-based applicati... |
234,104 | Is there a way I can uninstall programs without the graphical interface and doing it via CMD? | 2011/01/17 | [
"https://superuser.com/questions/234104",
"https://superuser.com",
"https://superuser.com/users/63442/"
] | Every program that properly installs itself according to Microsoft's guidelines makes a registry entry in `HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall`. Usually, the key for the program will be its GUID, or else the name of the program. Within that key will be an entry called `UninstallString`. This contai... | If you know where the MSI installer file is you can use:
>
> Msiexec /uninstall Application.msi /quiet
>
>
> |
234,104 | Is there a way I can uninstall programs without the graphical interface and doing it via CMD? | 2011/01/17 | [
"https://superuser.com/questions/234104",
"https://superuser.com",
"https://superuser.com/users/63442/"
] | You can invoke the correct uninstaller without knowing the GUID, etc. by using WMIC.
To see a list of the names of the programs as known internally by Windows:
```
wmic product get name
```
Look for your product name. It probably matches the one listed in the *"Programs and Features"* control panel, but not always.... | Check this out, this is using a batch find the software's UninstallString registry key and then uninstall the software silently which is **much more reliable compare to wmic** I found.
<https://community.spiceworks.com/topic/2143980-deploy-or-upgrade-java-8-via-shutdown-script-remove-old-javas>
```
::It extracts softw... |
234,104 | Is there a way I can uninstall programs without the graphical interface and doing it via CMD? | 2011/01/17 | [
"https://superuser.com/questions/234104",
"https://superuser.com",
"https://superuser.com/users/63442/"
] | If you know where the MSI installer file is you can use:
>
> Msiexec /uninstall Application.msi /quiet
>
>
> | A VBScript script will help you to uninstall the require program.
To use this script you will require software name which is located in your registry.
Just enter the application name in the script and run it with admin privileges; it will uninstall the application. But this will only work for a window-based applicati... |
234,104 | Is there a way I can uninstall programs without the graphical interface and doing it via CMD? | 2011/01/17 | [
"https://superuser.com/questions/234104",
"https://superuser.com",
"https://superuser.com/users/63442/"
] | If you have PowerShell 3 (or higher) installed, you can issue a WMI call to get all programs named a certain thing (or 'like' a certain thing, to do wildcard searches), and then call the `Uninstall` method for each of them:
`(Get-WmiObject -Query "SELECT * FROM Win32_Product WHERE Name like '%Partial Name%'").uninstal... | The correct answer is above, but for Windows X64 installs you will also need to check:
```
HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\
``` |
234,104 | Is there a way I can uninstall programs without the graphical interface and doing it via CMD? | 2011/01/17 | [
"https://superuser.com/questions/234104",
"https://superuser.com",
"https://superuser.com/users/63442/"
] | You can invoke the correct uninstaller without knowing the GUID, etc. by using WMIC.
To see a list of the names of the programs as known internally by Windows:
```
wmic product get name
```
Look for your product name. It probably matches the one listed in the *"Programs and Features"* control panel, but not always.... | If you know where the MSI installer file is you can use:
>
> Msiexec /uninstall Application.msi /quiet
>
>
> |
73,582,163 | How can I assign a property (in this case `status.val`) to a variable in `ng-repeat` so that I can apply translation to it like the one used above `translation.status`?
Can I do something like `ng-repeat="status in statusList; a=status.val"` ?
```
<div>
<label for="status">{{translation.status}}</label>
<select c... | 2022/09/02 | [
"https://Stackoverflow.com/questions/73582163",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19137202/"
] | VENDOR\_CODE is not shown because you are grouping by VENDOR.V\_NAME. This means that there can be more than one value in VENDOR\_CODE. This is not possible in SQL. For example, you could use MAX(VENDOR.VENDOR\_CODE) to get the highest VENDOR\_CODE. | VENDOR\_CODE is not shown because you are grouping by VENDOR.V\_NAME. This means that there can be more than one value in VENDOR\_CODE. This is not possible in SQL.
For example, you could use MAX(VENDOR.VENDOR\_CODE) to get the highest VENDOR\_CODE.
A list of possible functions with examples can be found [here](http... |
6,051,837 | I am trying to integrate some js project into my vaadin app. And I tried the methods to invoke external javascript code, only successed on some easy/javascript.
I tried the NativeJs lib
and the code is:
```
NativeJS nativeJScomponent = new NativeJS();
nativeJScomponent.setJavascript("alert('foo');");
nativeJScomponen... | 2011/05/18 | [
"https://Stackoverflow.com/questions/6051837",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/760062/"
] | ```
Window window = new Window("");
window.executeJavascript("javascript:testFunctionCall();");
``` | have you looked and tried to run the source in <http://uilder.virtuallypreinstalled.com/run/Calling_External_JavaScript/> |
6,051,837 | I am trying to integrate some js project into my vaadin app. And I tried the methods to invoke external javascript code, only successed on some easy/javascript.
I tried the NativeJs lib
and the code is:
```
NativeJS nativeJScomponent = new NativeJS();
nativeJScomponent.setJavascript("alert('foo');");
nativeJScomponen... | 2011/05/18 | [
"https://Stackoverflow.com/questions/6051837",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/760062/"
] | The correct way to do this is to implement `AbstractJavaScriptComponent`. This allows you to include a plain Javascript file in your project and control that library from the server side through RPC calls and shared state.
An easy tutorial can be found [here](https://vaadin.com/blog/-/blogs/vaadin-7-loves-javascript-c... | have you looked and tried to run the source in <http://uilder.virtuallypreinstalled.com/run/Calling_External_JavaScript/> |
6,051,837 | I am trying to integrate some js project into my vaadin app. And I tried the methods to invoke external javascript code, only successed on some easy/javascript.
I tried the NativeJs lib
and the code is:
```
NativeJS nativeJScomponent = new NativeJS();
nativeJScomponent.setJavascript("alert('foo');");
nativeJScomponen... | 2011/05/18 | [
"https://Stackoverflow.com/questions/6051837",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/760062/"
] | ```
Window window = new Window("");
window.executeJavascript("javascript:testFunctionCall();");
``` | The correct way to do this is to implement `AbstractJavaScriptComponent`. This allows you to include a plain Javascript file in your project and control that library from the server side through RPC calls and shared state.
An easy tutorial can be found [here](https://vaadin.com/blog/-/blogs/vaadin-7-loves-javascript-c... |
44,297 | I am having a confusion whether an opportunity can exists without products. If such an opportunity exists then what would be the use of it in the context of business perspective? If i recall correctly that an opportunity amount is the sum of the cost price of the opportunity line items, is that correct? Any suggestions... | 2014/07/16 | [
"https://salesforce.stackexchange.com/questions/44297",
"https://salesforce.stackexchange.com",
"https://salesforce.stackexchange.com/users/4195/"
] | Opportunities without products are a normal use case.
For example, a business that doesn't really care to forecast by product as it develops 'opportunities' - simply knowing the customer name + amount + stage + close date is sufficient.
The Opportunity.amount must be entered by the user rather than calculated as a RS... | Yes, an opportunity can exist without products but the Amount would need to either be manually populated or populated via a workflow rule/trigger(only auto updates when products do exist). We do not use the standard products and use a workflow rule to update the Amount field based on a rollup of a custom object. |
17,873,393 | I try to use window.open but so far it doesn't work
```
<script type="text" language="javascript">
function win1(j){
window.open("ctry.php?j=" + j,"Window1","menubar=no,width=460,height=360,toolbar=no");
}
</script>
<?php
for($j = 1; $j <= 2; $j++){
?>
<a href="javascript:win1('<?php echo $j;?>')"
onMous... | 2013/07/26 | [
"https://Stackoverflow.com/questions/17873393",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2152947/"
] | Replace `<script type="text" language="javascript">` with `<script type="text/javascript" language="javascript">` | Your JS action is to be on onclick action, not on href, try this elow code
```
<a href="#" onclick="win1('<?php echo $j;?>')"
onMouseOver="self.status='Open A Window'; return true;"><b>Open Window</b></a>
``` |
17,873,393 | I try to use window.open but so far it doesn't work
```
<script type="text" language="javascript">
function win1(j){
window.open("ctry.php?j=" + j,"Window1","menubar=no,width=460,height=360,toolbar=no");
}
</script>
<?php
for($j = 1; $j <= 2; $j++){
?>
<a href="javascript:win1('<?php echo $j;?>')"
onMous... | 2013/07/26 | [
"https://Stackoverflow.com/questions/17873393",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2152947/"
] | use this
```
<script type="text/javascript" language="javascript">
function win1(j){
window.open("ctry.php?j=" + j,"Window1","menubar=no,width=460,height=360,toolbar=no");
}
</script>
<?php
for($j = 1; $j <= 2; $j++){
?>
<a href="javascript:void(0)" onMouseOver="self.status='Open A Window'; return true;" onCli... | Your JS action is to be on onclick action, not on href, try this elow code
```
<a href="#" onclick="win1('<?php echo $j;?>')"
onMouseOver="self.status='Open A Window'; return true;"><b>Open Window</b></a>
``` |
17,873,393 | I try to use window.open but so far it doesn't work
```
<script type="text" language="javascript">
function win1(j){
window.open("ctry.php?j=" + j,"Window1","menubar=no,width=460,height=360,toolbar=no");
}
</script>
<?php
for($j = 1; $j <= 2; $j++){
?>
<a href="javascript:win1('<?php echo $j;?>')"
onMous... | 2013/07/26 | [
"https://Stackoverflow.com/questions/17873393",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2152947/"
] | Are you putting this code inside body tag or inside head? Cause you cannot put html in head | Your JS action is to be on onclick action, not on href, try this elow code
```
<a href="#" onclick="win1('<?php echo $j;?>')"
onMouseOver="self.status='Open A Window'; return true;"><b>Open Window</b></a>
``` |
17,873,393 | I try to use window.open but so far it doesn't work
```
<script type="text" language="javascript">
function win1(j){
window.open("ctry.php?j=" + j,"Window1","menubar=no,width=460,height=360,toolbar=no");
}
</script>
<?php
for($j = 1; $j <= 2; $j++){
?>
<a href="javascript:win1('<?php echo $j;?>')"
onMous... | 2013/07/26 | [
"https://Stackoverflow.com/questions/17873393",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2152947/"
] | use this
```
<script type="text/javascript" language="javascript">
function win1(j){
window.open("ctry.php?j=" + j,"Window1","menubar=no,width=460,height=360,toolbar=no");
}
</script>
<?php
for($j = 1; $j <= 2; $j++){
?>
<a href="javascript:void(0)" onMouseOver="self.status='Open A Window'; return true;" onCli... | Replace `<script type="text" language="javascript">` with `<script type="text/javascript" language="javascript">` |
17,873,393 | I try to use window.open but so far it doesn't work
```
<script type="text" language="javascript">
function win1(j){
window.open("ctry.php?j=" + j,"Window1","menubar=no,width=460,height=360,toolbar=no");
}
</script>
<?php
for($j = 1; $j <= 2; $j++){
?>
<a href="javascript:win1('<?php echo $j;?>')"
onMous... | 2013/07/26 | [
"https://Stackoverflow.com/questions/17873393",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2152947/"
] | Replace `<script type="text" language="javascript">` with `<script type="text/javascript" language="javascript">` | Are you putting this code inside body tag or inside head? Cause you cannot put html in head |
17,873,393 | I try to use window.open but so far it doesn't work
```
<script type="text" language="javascript">
function win1(j){
window.open("ctry.php?j=" + j,"Window1","menubar=no,width=460,height=360,toolbar=no");
}
</script>
<?php
for($j = 1; $j <= 2; $j++){
?>
<a href="javascript:win1('<?php echo $j;?>')"
onMous... | 2013/07/26 | [
"https://Stackoverflow.com/questions/17873393",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2152947/"
] | use this
```
<script type="text/javascript" language="javascript">
function win1(j){
window.open("ctry.php?j=" + j,"Window1","menubar=no,width=460,height=360,toolbar=no");
}
</script>
<?php
for($j = 1; $j <= 2; $j++){
?>
<a href="javascript:void(0)" onMouseOver="self.status='Open A Window'; return true;" onCli... | Are you putting this code inside body tag or inside head? Cause you cannot put html in head |
247,859 | I have this problem that one of our landing page(Wiki) in our sharepoint site has a dashboard that is getting data from a non sharepoint site and you need to login in order to view this. But not all of our users has that account. So we created a dummy account that needs to be inputted in order to view the dashboard. Wh... | 2018/08/28 | [
"https://sharepoint.stackexchange.com/questions/247859",
"https://sharepoint.stackexchange.com",
"https://sharepoint.stackexchange.com/users/76768/"
] | **No solution from SharePoint side**, also JS doesn't help in this situation,
You should manage the security from the dashboard side by allowing the **SSO** or the anonymous access to the dashboard URL! | This is an inherently flawed plan of approach. You need to consider the risk of exposing that user name and password to anyone with access to that page.
Your are attempting to circumvent a security mechanism. SharePoint nor JS will assist you. |
247,859 | I have this problem that one of our landing page(Wiki) in our sharepoint site has a dashboard that is getting data from a non sharepoint site and you need to login in order to view this. But not all of our users has that account. So we created a dummy account that needs to be inputted in order to view the dashboard. Wh... | 2018/08/28 | [
"https://sharepoint.stackexchange.com/questions/247859",
"https://sharepoint.stackexchange.com",
"https://sharepoint.stackexchange.com/users/76768/"
] | **No solution from SharePoint side**, also JS doesn't help in this situation,
You should manage the security from the dashboard side by allowing the **SSO** or the anonymous access to the dashboard URL! | Is this Sharepoint BI Dashboard, or the Dashboard is created by separate product? If the earlier you should look into concept of using Unattended Account. If it is 3-rd party product you should look at their API documentation how to properly integrate it. Like previous answers trying to embed credentials in the JS is v... |
71,036,838 | I came across this piece of code
```
int a = 10; ---> i)
int *p = &a; ---> ii)
int *(&q) = p; ---> iii)
```
Here in statement `iii)`, `q` seems to look like a pointer having the same value as `p`(after resolving)([reason](https://stackoverflow.com/q/53935936/10454814)). However, while we are still defining, `&q... | 2022/02/08 | [
"https://Stackoverflow.com/questions/71036838",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10454814/"
] | It is correct: you need to use a stack; I add an easy example:
[Example](https://i.stack.imgur.com/7g5Mr.png)
```
SizedBox(
width: 400,
height: 400,
child: Stack(
children: [
Positioned(
top: 0,
child: ClipRRect(
borderRadius: BorderRadius.circ... | You could use a Stack Widget with the CirlceAvatar widgets as positioned children, but in this case given that you also have to take into account if there is enough space to accomodate all items and display a count for unseen children, I would recommend using the [overflow\_view](https://pub.dev/packages/overflow_view)... |
52,487,433 | We have been using Amplify and Cognito to register our users for an Angular6 application deployed to Lambda. The client wanted to transition from email to username as primary user identification. So we created a new user pool / client. I don't have visibility into the configuration settings, I was simply given new user... | 2018/09/24 | [
"https://Stackoverflow.com/questions/52487433",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2359010/"
] | That error is probably originating from the fact that the app client you are connected to has an associated secret key. When you create a user pool app client, it generates a secret by default:
[](https://i.stack.imgur.com/X7qfJ.png)
Right now, with R... | The solution is to pass secret\_hash along with the adminAuthInitiate Request. And to calculate the secret hash you can use the following method:
```
public static String calculateSecretHash(String userPoolClientId, String userPoolClientSecret, String userName) {
final String HMAC_SHA256_ALGORITHM = "HmacSHA256";
... |
40,165,879 | when activating youtube subtitles, if you try to select a word in the caption of subtitles witch identified in the DOM by `id="caption-window-1"` , the first thing noticed is that : it is not selectable, so to make it selectable, i run this script in the js console using the developer tool on chrome browser:
```
(fun... | 2016/10/20 | [
"https://Stackoverflow.com/questions/40165879",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7050356/"
] | Run this script in the console:
```
setInterval(make_subtitles_selectable, 250);
function make_subtitles_selectable(){
elem=document.querySelector("span.ytp-caption-segment:not([selectable='true']");
if(elem!=null){
elem.style.userSelect="text";
elem.style.cursor="text";
elem.setAttribu... | The problem is that the textfield is draggable to allow the user position the field anywhere on the screen so it conflicts with what you're trying to do. You could instead just record and push the text to an array and parse it after the video is done.
The snippet is not very elegant but should get you started:
```
va... |
40,165,879 | when activating youtube subtitles, if you try to select a word in the caption of subtitles witch identified in the DOM by `id="caption-window-1"` , the first thing noticed is that : it is not selectable, so to make it selectable, i run this script in the js console using the developer tool on chrome browser:
```
(fun... | 2016/10/20 | [
"https://Stackoverflow.com/questions/40165879",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7050356/"
] | Run this script in the console:
```
setInterval(make_subtitles_selectable, 250);
function make_subtitles_selectable(){
elem=document.querySelector("span.ytp-caption-segment:not([selectable='true']");
if(elem!=null){
elem.style.userSelect="text";
elem.style.cursor="text";
elem.setAttribu... | You need to install [capturing](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener) event listeners that call [stopPropagation](https://developer.mozilla.org/en-US/docs/Web/API/Event/stopPropagation) on the event to intercept it before the youtube javascript can process them and supress the d... |
40,165,879 | when activating youtube subtitles, if you try to select a word in the caption of subtitles witch identified in the DOM by `id="caption-window-1"` , the first thing noticed is that : it is not selectable, so to make it selectable, i run this script in the js console using the developer tool on chrome browser:
```
(fun... | 2016/10/20 | [
"https://Stackoverflow.com/questions/40165879",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7050356/"
] | Run this script in the console:
```
setInterval(make_subtitles_selectable, 250);
function make_subtitles_selectable(){
elem=document.querySelector("span.ytp-caption-segment:not([selectable='true']");
if(elem!=null){
elem.style.userSelect="text";
elem.style.cursor="text";
elem.setAttribu... | that is what i'm trying to do :
[screenshot](https://i.stack.imgur.com/g5Oo1.png) |
40,165,879 | when activating youtube subtitles, if you try to select a word in the caption of subtitles witch identified in the DOM by `id="caption-window-1"` , the first thing noticed is that : it is not selectable, so to make it selectable, i run this script in the js console using the developer tool on chrome browser:
```
(fun... | 2016/10/20 | [
"https://Stackoverflow.com/questions/40165879",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7050356/"
] | Run this script in the console:
```
setInterval(make_subtitles_selectable, 250);
function make_subtitles_selectable(){
elem=document.querySelector("span.ytp-caption-segment:not([selectable='true']");
if(elem!=null){
elem.style.userSelect="text";
elem.style.cursor="text";
elem.setAttribu... | Three years since this question active. Personally I think I have solved this question
<https://gist.github.com/iamwwc/8bf9d1ea3aa38120a9ed07014cd5d73e>
The script has done following things
1. add 'user-select:none' css to subtitle make it selectable
2. add a event listener on player, stopPropagation when click, tou... |
40,165,879 | when activating youtube subtitles, if you try to select a word in the caption of subtitles witch identified in the DOM by `id="caption-window-1"` , the first thing noticed is that : it is not selectable, so to make it selectable, i run this script in the js console using the developer tool on chrome browser:
```
(fun... | 2016/10/20 | [
"https://Stackoverflow.com/questions/40165879",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7050356/"
] | Run this script in the console:
```
setInterval(make_subtitles_selectable, 250);
function make_subtitles_selectable(){
elem=document.querySelector("span.ytp-caption-segment:not([selectable='true']");
if(elem!=null){
elem.style.userSelect="text";
elem.style.cursor="text";
elem.setAttribu... | thx to people above I made a little adjustments to
be able select multiple words like a text.
here script for tampermonkey/etc..
```
// ==UserScript==
// @name make youtube caption selectable
// @namespace none
// @version 0.2
// @description Use this script if you want be able to select youtube capti... |
82,249 | I want to understand what is the purpose of doing localization while an aircraft is flying? What sensors are used by the instruments that do this localization of an aircraft? Is there more than one way to do the localization? Can we do localization without using a GPS? How is magnetic heading used to do localization? | 2020/11/13 | [
"https://aviation.stackexchange.com/questions/82249",
"https://aviation.stackexchange.com",
"https://aviation.stackexchange.com/users/52409/"
] | By first principles, one simply expects the pressure difference to be thrust $T$ divided by disc area $\pi r^2$. Due to the fact that the propeller "sucks" ahead and "blows" behind itself, we'd expect to see about half of this pressure difference as a pressure drop ahead of the propeller and the other half as a pressur... | Welcome.
<https://en.wikipedia.org/wiki/Pratt_%26_Whitney_Canada_PT6>
From Wikipedia, the compression ratio of the PT6 varies between 7 and 10.8, depending on the version. Please note the trend between compression ratio and engine power, due to this, I think the Caravan's engine (-114A) has a compression ratio of 7. ... |
66,548,805 | I need to set all default Ids to int, but I only implemented a new user class. I am using Microsoft.AspNetCore.Identity and not Microsoft.AspNet.Identity
my user is :
```
public class User : IdentityUser
{
public string FirstName { get; set; }
public string LastName { get; set; }
}
```
the DBAccessContext.c... | 2021/03/09 | [
"https://Stackoverflow.com/questions/66548805",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15307080/"
] | The function `fuzzCalcDivide` is not returning the result of the comparison. You should just return the result of the operation as follows:
```
function fuzzCalcDivide(fuzzCheck) {
return fuzzCount.Numb % fuzzCheck === 0
}
``` | Your fuzzCalcDivide is not returning anything
```
function fuzzCalcDivide(fuzzCheck) {
return (fuzzCount.Numb % fuzzCheck === 0)
}
``` |
60,689,276 | for example if i wanted to reference this JS link:
`import https://embed.twitch.tv/embed/v1.js;`
I can reference it in an HTML file like this:
`<script src="https://embed.twitch.tv/embed/v1.js"></script>`
But is there a way to reference it in a JavaScript?
I'm trying to use more of it's attributes within my code ba... | 2020/03/15 | [
"https://Stackoverflow.com/questions/60689276",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8395165/"
] | well.. if you are using webpack as your module bundler, then following piece of code is responsible for code splitting.. Just remove the code responsible for splitting into chunks.
```
optimization: {
// splitChunks: {
// cacheGroups: {
// commons: {
// test: /[\\/]node_modules[... | If you are using webpack, it does this automatically for you (If you use [dynamic](https://webpack.js.org/guides/code-splitting/#dynamic-imports) import or set [chunks](https://webpack.js.org/guides/code-splitting/#splitchunksplugin)).
But if want to do this manually, you could create a [script](https://developer.moz... |
26,660,576 | I have written a program that doesn't do anything usefull, this is `static void Main(string[] args)`:
```
int a = 0;
a++; // ... for another 2048 times
// not in a for loop or something
// just this a++ 2048 times
```
It's written in a default Console Application class,
Yes. It just does that.
It's exacly... | 2014/10/30 | [
"https://Stackoverflow.com/questions/26660576",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2622807/"
] | This is affected by the internal structure of a PE32 file, the file format for Windows EXE and DLL files. Sections in this file have a minimum size. Actually controlled by a setting in your project. Project + Properties, Build tab, Advanced button, File Alignment setting. Any C# project will have this set at 512 bytes,... | Binary files tend to be whole disk block size. 12800 happens to be 512\*25.
Try adding at least 512 characters worth of data to ensure that you need another block. |
291,696 | Are there any differences between Pokémon Sun & Moon? Obviously there are changes in the Pokémon you can catch in either version as well as the legendaries, so including those are there also additional changes such as NPC changes, areas you can visit, specific mechanics? | 2016/11/19 | [
"https://gaming.stackexchange.com/questions/291696",
"https://gaming.stackexchange.com",
"https://gaming.stackexchange.com/users/18916/"
] | In terms of gameplay, the difference is that whilst playing Pokémon Sun, the in-game weather will be day, during real life daytime. Playing Moon during the day however will have a night weather effect.
Before you buy one, you should conisder two things:
1. When you are going to be playing the game.
2. Which lighting y... | Apart from the specific pokémon and legendaries, the main difference is the shift in time. The time of the clock would be exactly the same as the in-game time in Pokémon Sun, while it is shifted by 12 hours (i.e., AM would turn to PM and vice versa) in Pokémon Moon.
Apart from that, there are other differences such as... |
291,696 | Are there any differences between Pokémon Sun & Moon? Obviously there are changes in the Pokémon you can catch in either version as well as the legendaries, so including those are there also additional changes such as NPC changes, areas you can visit, specific mechanics? | 2016/11/19 | [
"https://gaming.stackexchange.com/questions/291696",
"https://gaming.stackexchange.com",
"https://gaming.stackexchange.com/users/18916/"
] | Serebii has a summary of all of the differences between the two versions.
>
> In Pokemon Sun the first totem pokemon you encounter is Gumshoos whilst in Moon you encounter an aloan Raticate.
>
>
> In Pokemon Sun you have the ability to meet and battle Kiawe whilst in Moon you can meet and battle Mallow.
>
>
> You... | In terms of gameplay, the difference is that whilst playing Pokémon Sun, the in-game weather will be day, during real life daytime. Playing Moon during the day however will have a night weather effect.
Before you buy one, you should conisder two things:
1. When you are going to be playing the game.
2. Which lighting y... |
291,696 | Are there any differences between Pokémon Sun & Moon? Obviously there are changes in the Pokémon you can catch in either version as well as the legendaries, so including those are there also additional changes such as NPC changes, areas you can visit, specific mechanics? | 2016/11/19 | [
"https://gaming.stackexchange.com/questions/291696",
"https://gaming.stackexchange.com",
"https://gaming.stackexchange.com/users/18916/"
] | Serebii has a summary of all of the differences between the two versions.
>
> In Pokemon Sun the first totem pokemon you encounter is Gumshoos whilst in Moon you encounter an aloan Raticate.
>
>
> In Pokemon Sun you have the ability to meet and battle Kiawe whilst in Moon you can meet and battle Mallow.
>
>
> You... | Apart from the specific pokémon and legendaries, the main difference is the shift in time. The time of the clock would be exactly the same as the in-game time in Pokémon Sun, while it is shifted by 12 hours (i.e., AM would turn to PM and vice versa) in Pokémon Moon.
Apart from that, there are other differences such as... |
1,086 | We have ~500 biomedical documents each of some 1-2 MB. We want to use a non query-based method to rank the documents in order of their unique content score. I'm calling it "unique content" because our researchers want to know from which document to start reading. All the documents are of the same topic, in the biomedic... | 2014/09/07 | [
"https://datascience.stackexchange.com/questions/1086",
"https://datascience.stackexchange.com",
"https://datascience.stackexchange.com/users/3232/"
] | You could use Topic Modeling as described in this paper:
<http://faculty.chicagobooth.edu/workshops/orgs-markets/pdf/KaplanSwordWin2014.pdf>
They performed Topic Modeling on abstracts of patents (limited to 150 words). They identified papers as "novel" if they were the first to introduce a topic, and measured degree o... | Here's a simple initial approach to try:
1. Calculate the [TF-IDF](http://en.wikipedia.org/wiki/Tf%E2%80%93idf) score of each word in each document.
2. Sort the documents by the average TF-IDF score of their words.
3. The higher the average TF-IDF score, the more unique a document is with respect to the rest of the co... |
14,459,523 | I need to style the table as a zebra, styling even rows of tables, I used the css `:nth-of-type(even)`. But for example when I need to hide some of the stylized elements of the table is lost. What's the easiest way to create a dynamic styling as a zebra for a table?
```
<!DOCTYPE html>
<html>
<head>
<script type="te... | 2013/01/22 | [
"https://Stackoverflow.com/questions/14459523",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1918311/"
] | When you hiding elemment, its still there (just hidden), so thats why you have this problem.
Ill suggest you to create simple script against css `:nth-of-type(even)` selectors. First, two clases:
```
.table_odd { color: yellow; }
.table_even {color: white; }
```
Now crete function:
```
function refrestTableColorin... | ```
table tr[@display=block]:nth-of-type(even){background: yellow;}
```
will this work?
Disclaimer:untested |
14,459,523 | I need to style the table as a zebra, styling even rows of tables, I used the css `:nth-of-type(even)`. But for example when I need to hide some of the stylized elements of the table is lost. What's the easiest way to create a dynamic styling as a zebra for a table?
```
<!DOCTYPE html>
<html>
<head>
<script type="te... | 2013/01/22 | [
"https://Stackoverflow.com/questions/14459523",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1918311/"
] | When you hiding elemment, its still there (just hidden), so thats why you have this problem.
Ill suggest you to create simple script against css `:nth-of-type(even)` selectors. First, two clases:
```
.table_odd { color: yellow; }
.table_even {color: white; }
```
Now crete function:
```
function refrestTableColorin... | instead of **hide()** you can use **remove()** for this. Write like this:
```
$('input[type="submit"]').click(function(){
$(".hidden").remove();
});
```
Check this <http://jsfiddle.net/fhbgM/> |
848,844 | Our old 32TB RAID6 (net capacity: 26TB) system is showing its age and requires an upgrade,
so we are currently thinking about building up a new 100TB system.
The storage is mostly used for our user's home directorie, for sharing project data (working with media, so projects can get up to 1TB) and for
The old storage... | 2017/05/08 | [
"https://serverfault.com/questions/848844",
"https://serverfault.com",
"https://serverfault.com/users/118549/"
] | Go ZFS. If you want Debian ZoL is your best friend.
<https://github.com/zfsonlinux/zfs/wiki/Debian> | RAID 6 is far from obsolete - RAID 5 is however. I'm not a fan of single-controller storage, single point of failure you see, but if you're happy with that then by all means carry on with something similar to what you have now. Of course what you may well choose to go for now is some form of flash-based front-end - eit... |
848,844 | Our old 32TB RAID6 (net capacity: 26TB) system is showing its age and requires an upgrade,
so we are currently thinking about building up a new 100TB system.
The storage is mostly used for our user's home directorie, for sharing project data (working with media, so projects can get up to 1TB) and for
The old storage... | 2017/05/08 | [
"https://serverfault.com/questions/848844",
"https://serverfault.com",
"https://serverfault.com/users/118549/"
] | Go ZFS. If you want Debian ZoL is your best friend.
<https://github.com/zfsonlinux/zfs/wiki/Debian> | Honestly it seems like you describe something similar to Linus's workload, maybe smaller file sizes but same linux based OS and large size requirements. Take a look at his [storeanator review](https://youtu.be/uykMPICGeqw) and give the [guys at 45drives](https://www.45drives.com/) a look see. |
848,844 | Our old 32TB RAID6 (net capacity: 26TB) system is showing its age and requires an upgrade,
so we are currently thinking about building up a new 100TB system.
The storage is mostly used for our user's home directorie, for sharing project data (working with media, so projects can get up to 1TB) and for
The old storage... | 2017/05/08 | [
"https://serverfault.com/questions/848844",
"https://serverfault.com",
"https://serverfault.com/users/118549/"
] | RAID 6 is far from obsolete - RAID 5 is however. I'm not a fan of single-controller storage, single point of failure you see, but if you're happy with that then by all means carry on with something similar to what you have now. Of course what you may well choose to go for now is some form of flash-based front-end - eit... | Honestly it seems like you describe something similar to Linus's workload, maybe smaller file sizes but same linux based OS and large size requirements. Take a look at his [storeanator review](https://youtu.be/uykMPICGeqw) and give the [guys at 45drives](https://www.45drives.com/) a look see. |
50,800,399 | I would like to wait all task, but some of them can be null. It is a code like that:
```
Task<MyType1> myTask1 = getData01Async();
Task<MyTyp2> myTask2 = null;
Task<MyType3> myTask3 = null;
if(myVariable == true)
{
myTask2 = getData02Async();
}
else
{
myTask3 = getData03Async();
}
wait Task.WhenAll(myTask1, ... | 2018/06/11 | [
"https://Stackoverflow.com/questions/50800399",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1068094/"
] | Use a collection to track the tasks that aren't `null`. Then pass that list to `Task.WhenAll` method like below:
```
var tasks = new List<Task>();
Task<MyType1> myTask1 = getData01Async();
tasks.Add(myTask1);
Task<MyTyp2> myTask2 = null;
Task<MyType3> myTask3 = null;
if(myVariable == true)
{
myTask2 = getData02... | To build on what @UweKeim suggested, why not simply filter out the null tasks when you pass them to the `WhenAll`.
```
public async Task FilterNullTasks()
{
Task<string> myTask1 = Task.Delay(1000).ContinueWith(tsk => string.Empty);
Task<int> myTask2 = null;
Task<bool> myTask3 = null;
await Task.WhenAl... |
50,800,399 | I would like to wait all task, but some of them can be null. It is a code like that:
```
Task<MyType1> myTask1 = getData01Async();
Task<MyTyp2> myTask2 = null;
Task<MyType3> myTask3 = null;
if(myVariable == true)
{
myTask2 = getData02Async();
}
else
{
myTask3 = getData03Async();
}
wait Task.WhenAll(myTask1, ... | 2018/06/11 | [
"https://Stackoverflow.com/questions/50800399",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1068094/"
] | Well, depending on your scenario you *could* assign completed tasks or put them in an array/list and then pass this list to `WhenAll`:
```
Task<MyType1> myTask1 = getData01Async();
Task<MyType2> myTask2 = Task.FromResult((MyType2) null);
Task<MyType3> myTask3 = Task.FromResult((MyType3) null);
...
await Task.WhenAll... | To build on what @UweKeim suggested, why not simply filter out the null tasks when you pass them to the `WhenAll`.
```
public async Task FilterNullTasks()
{
Task<string> myTask1 = Task.Delay(1000).ContinueWith(tsk => string.Empty);
Task<int> myTask2 = null;
Task<bool> myTask3 = null;
await Task.WhenAl... |
50,800,399 | I would like to wait all task, but some of them can be null. It is a code like that:
```
Task<MyType1> myTask1 = getData01Async();
Task<MyTyp2> myTask2 = null;
Task<MyType3> myTask3 = null;
if(myVariable == true)
{
myTask2 = getData02Async();
}
else
{
myTask3 = getData03Async();
}
wait Task.WhenAll(myTask1, ... | 2018/06/11 | [
"https://Stackoverflow.com/questions/50800399",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1068094/"
] | Just filter the null tasks out:
```
await Task.WhenAll(new Task[] { task1, task2, task3 }.Where(i => i != null));
``` | To build on what @UweKeim suggested, why not simply filter out the null tasks when you pass them to the `WhenAll`.
```
public async Task FilterNullTasks()
{
Task<string> myTask1 = Task.Delay(1000).ContinueWith(tsk => string.Empty);
Task<int> myTask2 = null;
Task<bool> myTask3 = null;
await Task.WhenAl... |
57,979,230 | I'am vuejs-datepicker . I'm trying to print the selected date which is stored in a variable in data. Initially the value of the variable is empty. vuejs-datepicker supports the selected event. so when the event is triggering, I mean if date is selected the selected event get triggered. but does not print ta current sel... | 2019/09/17 | [
"https://Stackoverflow.com/questions/57979230",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12037871/"
] | >
> when i entered first date it printed null. when i entered date second time it printed the time entered first time
>
>
>
Yes because the selected event is fired before the Vue [`nextTick`](https://v2.vuejs.org/v2/api/#Vue-nextTick) function which updates the `v-model`.
Please below code and working [codesandbo... | For future visitors - simply make the post request within the Vue nextTick() like so:
```
dateSelected () {
...
this.$nextTick(() => {/* post call here */})
}
``` |
38,074,948 | I want to write a `regex` for extracting numbers from the following text (that is part of a bigger text):
```
switchport trunk allowed vlan 206,220,23,234,250,262,21,283,2086,296,305,323
switchport trunk allowed vlan add 334,340,342,365,380,404,41,414,42,421,434
switchport trunk allowed vlan add 461,472,499,509,29,... | 2016/06/28 | [
"https://Stackoverflow.com/questions/38074948",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4935588/"
] | The reason why it's deprecated is that previous Swagger versions (1.x) used the `@Api` description annotation to group operations.
In the Swagger 2.0 specification, the notion of `tags` was created and made a more flexible grouping mechanism. To be API compliant, the `description` field was retained so upgrades would ... | An old question but may help using swagger 3
```
@Configuration
@EnableSwagger2
public class SwaggerConfig {
// Swagger configuration
@Bean
public Docket api() {
return new Docket(DocumentationType.SWAGGER_2)
.apiInfo( this.apiInfo())
.select()
.apis... |
38,074,948 | I want to write a `regex` for extracting numbers from the following text (that is part of a bigger text):
```
switchport trunk allowed vlan 206,220,23,234,250,262,21,283,2086,296,305,323
switchport trunk allowed vlan add 334,340,342,365,380,404,41,414,42,421,434
switchport trunk allowed vlan add 461,472,499,509,29,... | 2016/06/28 | [
"https://Stackoverflow.com/questions/38074948",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4935588/"
] | I found two solutions for Spring Boot application:
***1. [Swagger 2](https://www.baeldung.com/swagger-2-documentation-for-spring-rest-api) based:***
Firstly, use the `tags` method for specify the tags definitions in your `Docket` bean:
```java
@Configuration
@EnableSwagger2
public class Swagger2Config {
public ... | I tried above solutions but they didn't work for me.
To add a title and description to the documentation you create **ApiInfo** and **Contact** objects like in example below.
Then you simply add **apiInfo** object to your Swagger Docket.
```
import springfox.documentation.service.ApiInfo;
import springfox.documentati... |
38,074,948 | I want to write a `regex` for extracting numbers from the following text (that is part of a bigger text):
```
switchport trunk allowed vlan 206,220,23,234,250,262,21,283,2086,296,305,323
switchport trunk allowed vlan add 334,340,342,365,380,404,41,414,42,421,434
switchport trunk allowed vlan add 461,472,499,509,29,... | 2016/06/28 | [
"https://Stackoverflow.com/questions/38074948",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4935588/"
] | This is the correct way to add description to your Swagger API documentation for Swagger v1.5:
```java
@Api(tags = {"Swagger Resource"})
@SwaggerDefinition(tags = {
@Tag(name = "Swagger Resource", description = "Write description here")
})
public class ... {
}
``` | I tried above solutions but they didn't work for me.
To add a title and description to the documentation you create **ApiInfo** and **Contact** objects like in example below.
Then you simply add **apiInfo** object to your Swagger Docket.
```
import springfox.documentation.service.ApiInfo;
import springfox.documentati... |
38,074,948 | I want to write a `regex` for extracting numbers from the following text (that is part of a bigger text):
```
switchport trunk allowed vlan 206,220,23,234,250,262,21,283,2086,296,305,323
switchport trunk allowed vlan add 334,340,342,365,380,404,41,414,42,421,434
switchport trunk allowed vlan add 461,472,499,509,29,... | 2016/06/28 | [
"https://Stackoverflow.com/questions/38074948",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4935588/"
] | I found two solutions for Spring Boot application:
***1. [Swagger 2](https://www.baeldung.com/swagger-2-documentation-for-spring-rest-api) based:***
Firstly, use the `tags` method for specify the tags definitions in your `Docket` bean:
```java
@Configuration
@EnableSwagger2
public class Swagger2Config {
public ... | An old question but may help using swagger 3
```
@Configuration
@EnableSwagger2
public class SwaggerConfig {
// Swagger configuration
@Bean
public Docket api() {
return new Docket(DocumentationType.SWAGGER_2)
.apiInfo( this.apiInfo())
.select()
.apis... |
38,074,948 | I want to write a `regex` for extracting numbers from the following text (that is part of a bigger text):
```
switchport trunk allowed vlan 206,220,23,234,250,262,21,283,2086,296,305,323
switchport trunk allowed vlan add 334,340,342,365,380,404,41,414,42,421,434
switchport trunk allowed vlan add 461,472,499,509,29,... | 2016/06/28 | [
"https://Stackoverflow.com/questions/38074948",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4935588/"
] | I found two solutions for Spring Boot application:
***1. [Swagger 2](https://www.baeldung.com/swagger-2-documentation-for-spring-rest-api) based:***
Firstly, use the `tags` method for specify the tags definitions in your `Docket` bean:
```java
@Configuration
@EnableSwagger2
public class Swagger2Config {
public ... | This is the correct way to add description to your Swagger API documentation for Swagger v1.5:
```java
@Api(tags = {"Swagger Resource"})
@SwaggerDefinition(tags = {
@Tag(name = "Swagger Resource", description = "Write description here")
})
public class ... {
}
``` |
38,074,948 | I want to write a `regex` for extracting numbers from the following text (that is part of a bigger text):
```
switchport trunk allowed vlan 206,220,23,234,250,262,21,283,2086,296,305,323
switchport trunk allowed vlan add 334,340,342,365,380,404,41,414,42,421,434
switchport trunk allowed vlan add 461,472,499,509,29,... | 2016/06/28 | [
"https://Stackoverflow.com/questions/38074948",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4935588/"
] | I tried above solutions but they didn't work for me.
To add a title and description to the documentation you create **ApiInfo** and **Contact** objects like in example below.
Then you simply add **apiInfo** object to your Swagger Docket.
```
import springfox.documentation.service.ApiInfo;
import springfox.documentati... | I found that the following works by combining both the `@Api` and `@Tag` annotations building off of [this answer](https://stackoverflow.com/a/38113193/2066723).
The value within the tags field of the `@Api` annotation needs to match the value within the name field of the `@Tag` annotation.
```java
@Api(tags = "Cont... |
38,074,948 | I want to write a `regex` for extracting numbers from the following text (that is part of a bigger text):
```
switchport trunk allowed vlan 206,220,23,234,250,262,21,283,2086,296,305,323
switchport trunk allowed vlan add 334,340,342,365,380,404,41,414,42,421,434
switchport trunk allowed vlan add 461,472,499,509,29,... | 2016/06/28 | [
"https://Stackoverflow.com/questions/38074948",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4935588/"
] | The reason why it's deprecated is that previous Swagger versions (1.x) used the `@Api` description annotation to group operations.
In the Swagger 2.0 specification, the notion of `tags` was created and made a more flexible grouping mechanism. To be API compliant, the `description` field was retained so upgrades would ... | I too wondered what to do about uses of the deprecated `description` (showing up as warnings in my IDE).
Well, on closer inspection it turned out that `description` **is not used anywhere in Swagger UI**. After that the solution (in our case\*) became clear: simply remove those descriptions.
(\*In our codebase, wit... |
38,074,948 | I want to write a `regex` for extracting numbers from the following text (that is part of a bigger text):
```
switchport trunk allowed vlan 206,220,23,234,250,262,21,283,2086,296,305,323
switchport trunk allowed vlan add 334,340,342,365,380,404,41,414,42,421,434
switchport trunk allowed vlan add 461,472,499,509,29,... | 2016/06/28 | [
"https://Stackoverflow.com/questions/38074948",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4935588/"
] | I found two solutions for Spring Boot application:
***1. [Swagger 2](https://www.baeldung.com/swagger-2-documentation-for-spring-rest-api) based:***
Firstly, use the `tags` method for specify the tags definitions in your `Docket` bean:
```java
@Configuration
@EnableSwagger2
public class Swagger2Config {
public ... | The reason why it's deprecated is that previous Swagger versions (1.x) used the `@Api` description annotation to group operations.
In the Swagger 2.0 specification, the notion of `tags` was created and made a more flexible grouping mechanism. To be API compliant, the `description` field was retained so upgrades would ... |
38,074,948 | I want to write a `regex` for extracting numbers from the following text (that is part of a bigger text):
```
switchport trunk allowed vlan 206,220,23,234,250,262,21,283,2086,296,305,323
switchport trunk allowed vlan add 334,340,342,365,380,404,41,414,42,421,434
switchport trunk allowed vlan add 461,472,499,509,29,... | 2016/06/28 | [
"https://Stackoverflow.com/questions/38074948",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4935588/"
] | This is the correct way to add description to your Swagger API documentation for Swagger v1.5:
```java
@Api(tags = {"Swagger Resource"})
@SwaggerDefinition(tags = {
@Tag(name = "Swagger Resource", description = "Write description here")
})
public class ... {
}
``` | I found that the following works by combining both the `@Api` and `@Tag` annotations building off of [this answer](https://stackoverflow.com/a/38113193/2066723).
The value within the tags field of the `@Api` annotation needs to match the value within the name field of the `@Tag` annotation.
```java
@Api(tags = "Cont... |
38,074,948 | I want to write a `regex` for extracting numbers from the following text (that is part of a bigger text):
```
switchport trunk allowed vlan 206,220,23,234,250,262,21,283,2086,296,305,323
switchport trunk allowed vlan add 334,340,342,365,380,404,41,414,42,421,434
switchport trunk allowed vlan add 461,472,499,509,29,... | 2016/06/28 | [
"https://Stackoverflow.com/questions/38074948",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4935588/"
] | I tried above solutions but they didn't work for me.
To add a title and description to the documentation you create **ApiInfo** and **Contact** objects like in example below.
Then you simply add **apiInfo** object to your Swagger Docket.
```
import springfox.documentation.service.ApiInfo;
import springfox.documentati... | I too wondered what to do about uses of the deprecated `description` (showing up as warnings in my IDE).
Well, on closer inspection it turned out that `description` **is not used anywhere in Swagger UI**. After that the solution (in our case\*) became clear: simply remove those descriptions.
(\*In our codebase, wit... |
60,742,336 | I know that "models" is a module of package django.db, But why we inherit like `class Foo(models.Model):` while the all required fields like CharField, IntegerField, etc. are part of models, what does the subclass Model do here exactly?
I am new to OOP and Django so any resources and answers are heavily appreciated an... | 2020/03/18 | [
"https://Stackoverflow.com/questions/60742336",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12814260/"
] | I'm not sure what weekday is doing here. Isn't it just extract the time and add one hour?
```
hours = df['Datetime'].dt.hour
df['TimeSlot'] = hours.astype(str) + "-" + hours.add(1).astype(str)
```
Output:
```
Datetime Transaction Item TimeSlot
0 2016-10-30 09:58:00 1 X 9-10
1 2016-1... | No problem for weekday, once you have converted the `Datetime` column to a true Timestamp type:
```
dt = pd.to_datetime(df['Datetime'])
df['Weekday'] = dt.dt.dayofweek
```
The slot is `_hour_-_hour+1_` except when you are about to change day where it becomes `23-0`.
You could do:
```
start_hour = dt.dt.hour
end_ho... |
145,948 | I'm looking for a clean way to centralize user management. The setup:
* About 10-30 linux machines (Ubuntu 10.04 LTS server)
* Maybe 10-30 users for now.
The requirements (hopes and expectations):
* A single place for the administrator to manage user accounts, passwords and the list of machines each user has access ... | 2010/05/27 | [
"https://serverfault.com/questions/145948",
"https://serverfault.com",
"https://serverfault.com/users/44142/"
] | Google has led you down the right track. Ideally you want both LDAP for the central user management and Kerberos for it's added security and SSO.
LDAP alone will get you centralized user management but users will still have to re-authenticate with each service they are connecting too. That's where Kerberos comes in wh... | I've found the [Spinlock](http://techpubs.spinlocksolutions.com/dklar/) guides excellent for this; I've used them to set up an SSO environment with ssh ticket forwarding for a development office of about 30 developers. There are a lot of different components to this and it's somewhat of a bear to manage - you'll want a... |
71,891,586 | I want create design with image with button in same line but text not come middle of text
html and css code as follow:
```css
.block-title
{
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
align-content: space-between;
flex-direction: row;
}
.blo... | 2022/04/16 | [
"https://Stackoverflow.com/questions/71891586",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18379293/"
] | Maybe Something like this?
```css
.block-title
{
display: flex;
flex-wrap: wrap;
justify-content: space-evenly;
align-items: center;
flex-direction: row;
background-color:beige;
padding:10px 20px;
}
.block-title strong{
flex-grow: 1;
}
.c-btn {
background-color:#f65f73;
color:whi... | For this you need to set `justify-content: space-between;` as opposed to center |
71,891,586 | I want create design with image with button in same line but text not come middle of text
html and css code as follow:
```css
.block-title
{
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
align-content: space-between;
flex-direction: row;
}
.blo... | 2022/04/16 | [
"https://Stackoverflow.com/questions/71891586",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18379293/"
] | Maybe Something like this?
```css
.block-title
{
display: flex;
flex-wrap: wrap;
justify-content: space-evenly;
align-items: center;
flex-direction: row;
background-color:beige;
padding:10px 20px;
}
.block-title strong{
flex-grow: 1;
}
.c-btn {
background-color:#f65f73;
color:whi... | Are you trying to do this?
```css
.block-title
{
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
align-content: space-between;
flex-direction: row;
}
.block-title strong{
flex-grow: 1;
}
.btn-1 {
background-color: #df3232;
}
.btn-1 .round {
background-colo... |
71,891,586 | I want create design with image with button in same line but text not come middle of text
html and css code as follow:
```css
.block-title
{
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
align-content: space-between;
flex-direction: row;
}
.blo... | 2022/04/16 | [
"https://Stackoverflow.com/questions/71891586",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18379293/"
] | Maybe Something like this?
```css
.block-title
{
display: flex;
flex-wrap: wrap;
justify-content: space-evenly;
align-items: center;
flex-direction: row;
background-color:beige;
padding:10px 20px;
}
.block-title strong{
flex-grow: 1;
}
.c-btn {
background-color:#f65f73;
color:whi... | You can assign to the button: `float:right;`
```css
button {
float:right;
}
```
```html
<div class="block-title">
<strong>Shop By Category</strong>
<button class="c-btn">View Profile</button>
</div>
```
### update
```css
button {
float:right;
}
.c-btn {
border: none;
background-color: magenta;
padding: ... |
22,085,245 | Running a simple str\_replace that seems to have sound parts, but when I run the str\_replace with these parts, the output is incorrect.
```
foreach($x->query("//img") as $node)
{
$absoluteImage = make_absolute($node->getAttribute("src"), $url);
$iterateImage = str_replace($node->getAttribute("src"), $abso... | 2014/02/28 | [
"https://Stackoverflow.com/questions/22085245",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/591626/"
] | You're running the string replace on the entire block of HTML every time you go through the loop. Because you have the same image appearing multiple times, it gets replaced every time you hit that same image in the loop.
One solution would be to alter it to include the quotes around the attribute, so that it will only... | You could try doing a quick regex for any url containing an underscore perhaps:
```
// Dirty absolute URL
$abs = "$host$path/$url";
if (preg_match('/(_)/', $url)) $abs = "$url";
``` |
66,929,656 | I recently started to use Azure with the goal to host this:
1. A Python Web API
2. A Blazor Web App
This is just for testing and I dont care about authentication, database or performance.
The 1-Year trial already expired for me (I tried it once and never used it...).
1. Is it possible to host my scenario in Azure f... | 2021/04/03 | [
"https://Stackoverflow.com/questions/66929656",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3675331/"
] | Depending on the Azure service, you can use free or cheap options for hosting.
Your web apps can run in an `App Service Plan` with the tier Free where you have 60 of minutes free daily. You can use both `Windows` and `Linux` to host your application however please note that `Free Tier` option is only available when yo... | No, I don't think they have a free tier. IIRC they give you some starting credits to try stuff, and then you have to pay. |
66,929,656 | I recently started to use Azure with the goal to host this:
1. A Python Web API
2. A Blazor Web App
This is just for testing and I dont care about authentication, database or performance.
The 1-Year trial already expired for me (I tried it once and never used it...).
1. Is it possible to host my scenario in Azure f... | 2021/04/03 | [
"https://Stackoverflow.com/questions/66929656",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3675331/"
] | "Pay as you go" is a type of subscription.
You pay for the resources that you use. Except for the resources that are free.
For example a VNET and a resource group do not cost anything.
There is also a free tier to the App Service Plan, that allows you to run app services for free. | No, I don't think they have a free tier. IIRC they give you some starting credits to try stuff, and then you have to pay. |
66,929,656 | I recently started to use Azure with the goal to host this:
1. A Python Web API
2. A Blazor Web App
This is just for testing and I dont care about authentication, database or performance.
The 1-Year trial already expired for me (I tried it once and never used it...).
1. Is it possible to host my scenario in Azure f... | 2021/04/03 | [
"https://Stackoverflow.com/questions/66929656",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3675331/"
] | Depending on the Azure service, you can use free or cheap options for hosting.
Your web apps can run in an `App Service Plan` with the tier Free where you have 60 of minutes free daily. You can use both `Windows` and `Linux` to host your application however please note that `Free Tier` option is only available when yo... | "Pay as you go" is a type of subscription.
You pay for the resources that you use. Except for the resources that are free.
For example a VNET and a resource group do not cost anything.
There is also a free tier to the App Service Plan, that allows you to run app services for free. |
101,860 | Does anyone know if there are any USB network adapters out there that have both wired and wireless networking capability? Far-fetched, I know, but thought I'd ask.
Background: Some of our users have locked down laptops that we also include unlocked virtual machines running on VMware Player. Sometimes the users have a ... | 2010/01/28 | [
"https://superuser.com/questions/101860",
"https://superuser.com",
"https://superuser.com/users/16950/"
] | Different parts of the /afs space is served from different servers. You can find out what volume a path is in by running `fs examine` on it, then running `vos examine` on that volume name will give you what server(s) it is served from. The whole tree is made up of volumes mounted inside of other volumes, so run `fs exa... | Run `fs whereis <file>` ([manpage](http://docs.openafs.org/Reference/1/fs_whereis.html)) to see on what server(s) a file resides. If you want to know in what cell a file resides, run `fs whichcell <file>` ([manpage](http://docs.openafs.org/Reference/1/fs_whichcell.html)). To see the disk space available on the relevant... |
54,971,424 | I am attempting to decode an array of strings, where in the returned JSON is an array of strings but also contains nested arrays
Like:
```
{ "people": ["Alice", "Bob"],
"departments": [["Accounts", "Sales"]]
}
```
My Swift code:
```
let decoder = JSONDecoder()
let model = try decoder.decode([String:[String]].self... | 2019/03/03 | [
"https://Stackoverflow.com/questions/54971424",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4883632/"
] | You just need to create the appropriate structure and pass it to the decoder:
```
struct Root: Decodable {
let people: [String]
let departments: [[String]]
}
```
---
```
let decoder = JSONDecoder()
do {
let model = try decoder.decode(Root.self, from: dataResponse)
print(model.people) // ["Alic... | If you don't want to create structs (need just a piece of data, for example) here is an approach to consider.
```
let jsonData = """
{ "people": ["Alice", "Bob"],
"departments": [["Accounts", "Sales"]],
"stores": [["Atlanta", "Denver"]]
}
""".data(using: .utf8)
if let jsonObject = try? JSONSerialization.jsonObject(w... |
11,526 | I want to install a vim plugin, this plugin needs a `+python` feature, so when I open vim and type `:version` it displays `-python`. How can I make it enable?.
Thanks. | 2017/02/24 | [
"https://vi.stackexchange.com/questions/11526",
"https://vi.stackexchange.com",
"https://vi.stackexchange.com/users/11437/"
] | You need to compile Vim yourself or get a prebuilt Vim package that was compiled with Python support.
If you're on a Debian based system, the easiest way is to download the vim-gnome or vim-gtk package from `apt` (`apt install vim-gtk` for instance). Other distros might have a similar package with python support buil... | If, like me, despite having compiled `vim` with `python3` support, you get an error that `python3` support is missing, make sure it loads the correct `dll`.
### Check feature exists
```
:version
```
```
...
+python3/dyn
...
```
### Python3 is missing during runtime
```
:echo has('python3')
```
```
0
```
### ... |
11,526 | I want to install a vim plugin, this plugin needs a `+python` feature, so when I open vim and type `:version` it displays `-python`. How can I make it enable?.
Thanks. | 2017/02/24 | [
"https://vi.stackexchange.com/questions/11526",
"https://vi.stackexchange.com",
"https://vi.stackexchange.com/users/11437/"
] | For Windows you can always grab the very latest patched version of Vim 8.x compiled against the latest external libraries here: [Vim downloads](https://tuxproject.de/projects/vim/x64/)
At the time of posting the most current versions:
Latest compiled update: 2017-02-23
Vim version: 8.0.0363 [Official patch log](ftp:... | For those using anaconda python, some additional modifications are requited. They might want to compile vim as well, especially if you want code-completion. Here is the configure command:
Modified configure command for anaconda:
----------------------------------------
```
./configure --enable-terminal --enable-gui=... |
11,526 | I want to install a vim plugin, this plugin needs a `+python` feature, so when I open vim and type `:version` it displays `-python`. How can I make it enable?.
Thanks. | 2017/02/24 | [
"https://vi.stackexchange.com/questions/11526",
"https://vi.stackexchange.com",
"https://vi.stackexchange.com/users/11437/"
] | You need to compile Vim yourself or get a prebuilt Vim package that was compiled with Python support.
If you're on a Debian based system, the easiest way is to download the vim-gnome or vim-gtk package from `apt` (`apt install vim-gtk` for instance). Other distros might have a similar package with python support buil... | On Mac OS X, you can use `homebrew` to install first python and then vim, which vim will support python.
I use MBP, the vim support `python/dyn` installed by the above way, but not including `python3`.
---
# Delete wrong ans 2017.2.28 10:38AM # |
11,526 | I want to install a vim plugin, this plugin needs a `+python` feature, so when I open vim and type `:version` it displays `-python`. How can I make it enable?.
Thanks. | 2017/02/24 | [
"https://vi.stackexchange.com/questions/11526",
"https://vi.stackexchange.com",
"https://vi.stackexchange.com/users/11437/"
] | You need to compile Vim yourself or get a prebuilt Vim package that was compiled with Python support.
If you're on a Debian based system, the easiest way is to download the vim-gnome or vim-gtk package from `apt` (`apt install vim-gtk` for instance). Other distros might have a similar package with python support buil... | For a server instalation without GUI use `vim-nox` instead.
`apt install vim-nox` |
11,526 | I want to install a vim plugin, this plugin needs a `+python` feature, so when I open vim and type `:version` it displays `-python`. How can I make it enable?.
Thanks. | 2017/02/24 | [
"https://vi.stackexchange.com/questions/11526",
"https://vi.stackexchange.com",
"https://vi.stackexchange.com/users/11437/"
] | In order to support python-mode you need to have +python AND +python3. This should get you there (at least on macOS):
```
./configure --prefix=/opt/local --with-features=huge --enable-pythoninterp --enable-python3interp
make
sudo make install
``` | Since this could be misinterpreted with enable the python3 feature, I consider useful mention this link for an installation according to your needs
**Here are excellent guides for: [\*nix & windows](https://github.com/Valloric/YouCompleteMe/wiki).**
*Note*: Pay attention to every character in the ./configure instruct... |
11,526 | I want to install a vim plugin, this plugin needs a `+python` feature, so when I open vim and type `:version` it displays `-python`. How can I make it enable?.
Thanks. | 2017/02/24 | [
"https://vi.stackexchange.com/questions/11526",
"https://vi.stackexchange.com",
"https://vi.stackexchange.com/users/11437/"
] | Solution 1 :
============
* Install `vim-gtk` package
```
sudo apt install vim-gtk
```
* Set Vim as a default editor
```
sudo update-alternatives --install /usr/bin/editor editor /usr/bin/vim.gtk 1
sudo update-alternatives --set editor /usr/bin/vim.gtk
sudo update-alternatives --install /usr/bin/vi vi /u... | For Windows you can always grab the very latest patched version of Vim 8.x compiled against the latest external libraries here: [Vim downloads](https://tuxproject.de/projects/vim/x64/)
At the time of posting the most current versions:
Latest compiled update: 2017-02-23
Vim version: 8.0.0363 [Official patch log](ftp:... |
11,526 | I want to install a vim plugin, this plugin needs a `+python` feature, so when I open vim and type `:version` it displays `-python`. How can I make it enable?.
Thanks. | 2017/02/24 | [
"https://vi.stackexchange.com/questions/11526",
"https://vi.stackexchange.com",
"https://vi.stackexchange.com/users/11437/"
] | Solution 1 :
============
* Install `vim-gtk` package
```
sudo apt install vim-gtk
```
* Set Vim as a default editor
```
sudo update-alternatives --install /usr/bin/editor editor /usr/bin/vim.gtk 1
sudo update-alternatives --set editor /usr/bin/vim.gtk
sudo update-alternatives --install /usr/bin/vi vi /u... | On Mac OS X, you can use `homebrew` to install first python and then vim, which vim will support python.
I use MBP, the vim support `python/dyn` installed by the above way, but not including `python3`.
---
# Delete wrong ans 2017.2.28 10:38AM # |
11,526 | I want to install a vim plugin, this plugin needs a `+python` feature, so when I open vim and type `:version` it displays `-python`. How can I make it enable?.
Thanks. | 2017/02/24 | [
"https://vi.stackexchange.com/questions/11526",
"https://vi.stackexchange.com",
"https://vi.stackexchange.com/users/11437/"
] | For Windows you can always grab the very latest patched version of Vim 8.x compiled against the latest external libraries here: [Vim downloads](https://tuxproject.de/projects/vim/x64/)
At the time of posting the most current versions:
Latest compiled update: 2017-02-23
Vim version: 8.0.0363 [Official patch log](ftp:... | Since this could be misinterpreted with enable the python3 feature, I consider useful mention this link for an installation according to your needs
**Here are excellent guides for: [\*nix & windows](https://github.com/Valloric/YouCompleteMe/wiki).**
*Note*: Pay attention to every character in the ./configure instruct... |
11,526 | I want to install a vim plugin, this plugin needs a `+python` feature, so when I open vim and type `:version` it displays `-python`. How can I make it enable?.
Thanks. | 2017/02/24 | [
"https://vi.stackexchange.com/questions/11526",
"https://vi.stackexchange.com",
"https://vi.stackexchange.com/users/11437/"
] | Solution 1 :
============
* Install `vim-gtk` package
```
sudo apt install vim-gtk
```
* Set Vim as a default editor
```
sudo update-alternatives --install /usr/bin/editor editor /usr/bin/vim.gtk 1
sudo update-alternatives --set editor /usr/bin/vim.gtk
sudo update-alternatives --install /usr/bin/vi vi /u... | You need to install a Python version on your system with the same bitness (either 32-bit or 64-bit) as your vim. Python needs to be in your PATH. If you can run it by typing `python` on a command prompt you should be good in this regard. Finally vim needs to be compiled to support python, but in my experience most are.... |
11,526 | I want to install a vim plugin, this plugin needs a `+python` feature, so when I open vim and type `:version` it displays `-python`. How can I make it enable?.
Thanks. | 2017/02/24 | [
"https://vi.stackexchange.com/questions/11526",
"https://vi.stackexchange.com",
"https://vi.stackexchange.com/users/11437/"
] | Solution 1 :
============
* Install `vim-gtk` package
```
sudo apt install vim-gtk
```
* Set Vim as a default editor
```
sudo update-alternatives --install /usr/bin/editor editor /usr/bin/vim.gtk 1
sudo update-alternatives --set editor /usr/bin/vim.gtk
sudo update-alternatives --install /usr/bin/vi vi /u... | For those using anaconda python, some additional modifications are requited. They might want to compile vim as well, especially if you want code-completion. Here is the configure command:
Modified configure command for anaconda:
----------------------------------------
```
./configure --enable-terminal --enable-gui=... |
35,259,487 | This problem easier to understand with code than with words:
```
Map<Integer, Parent> objectMap = new HashMap<Integer, Parent>();
Parent myParent;
Child1 myChild1;
Child2 myChild2;
//A lot more myChilds
objectMap.put(1, myChild1);
objectMap.put(2, myChild2);
//Place all the myChilds
myChild1 = new Child1(); //Cons... | 2016/02/07 | [
"https://Stackoverflow.com/questions/35259487",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5120619/"
] | How about this?
```
Parent finalObject;
if (condition) {
finalObject = new Child1();
} else {
finalObject = new Child2();
}
```
Or, even better, this?
```
Parent finalObject = condition? new Child1() : new Child2();
``` | Don't construct both objects. Only construct the object you need.
```
Parent finalObject;
if (condition) {
finalObject = new Child1();
} else {
finalObject = new Child2();
}
``` |
35,259,487 | This problem easier to understand with code than with words:
```
Map<Integer, Parent> objectMap = new HashMap<Integer, Parent>();
Parent myParent;
Child1 myChild1;
Child2 myChild2;
//A lot more myChilds
objectMap.put(1, myChild1);
objectMap.put(2, myChild2);
//Place all the myChilds
myChild1 = new Child1(); //Cons... | 2016/02/07 | [
"https://Stackoverflow.com/questions/35259487",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5120619/"
] | Don't construct both objects. Only construct the object you need.
```
Parent finalObject;
if (condition) {
finalObject = new Child1();
} else {
finalObject = new Child2();
}
``` | You should use the factory pattern :
```
public interface Factory<T> {
T create();
}
```
...
```
Factory<T> factory;
if (condition) {
factory = FACTORY1;
} else {
factory = FACTORY2;
}
object = factory.create()
``` |
35,259,487 | This problem easier to understand with code than with words:
```
Map<Integer, Parent> objectMap = new HashMap<Integer, Parent>();
Parent myParent;
Child1 myChild1;
Child2 myChild2;
//A lot more myChilds
objectMap.put(1, myChild1);
objectMap.put(2, myChild2);
//Place all the myChilds
myChild1 = new Child1(); //Cons... | 2016/02/07 | [
"https://Stackoverflow.com/questions/35259487",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5120619/"
] | Don't construct both objects. Only construct the object you need.
```
Parent finalObject;
if (condition) {
finalObject = new Child1();
} else {
finalObject = new Child2();
}
``` | First check your condition and then inside the if or else statement call the constructor.
if(condition)
finalobject = new myChild1();
else
finalobject = new myChild2(); |
35,259,487 | This problem easier to understand with code than with words:
```
Map<Integer, Parent> objectMap = new HashMap<Integer, Parent>();
Parent myParent;
Child1 myChild1;
Child2 myChild2;
//A lot more myChilds
objectMap.put(1, myChild1);
objectMap.put(2, myChild2);
//Place all the myChilds
myChild1 = new Child1(); //Cons... | 2016/02/07 | [
"https://Stackoverflow.com/questions/35259487",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5120619/"
] | How about this?
```
Parent finalObject;
if (condition) {
finalObject = new Child1();
} else {
finalObject = new Child2();
}
```
Or, even better, this?
```
Parent finalObject = condition? new Child1() : new Child2();
``` | You should use the factory pattern :
```
public interface Factory<T> {
T create();
}
```
...
```
Factory<T> factory;
if (condition) {
factory = FACTORY1;
} else {
factory = FACTORY2;
}
object = factory.create()
``` |
35,259,487 | This problem easier to understand with code than with words:
```
Map<Integer, Parent> objectMap = new HashMap<Integer, Parent>();
Parent myParent;
Child1 myChild1;
Child2 myChild2;
//A lot more myChilds
objectMap.put(1, myChild1);
objectMap.put(2, myChild2);
//Place all the myChilds
myChild1 = new Child1(); //Cons... | 2016/02/07 | [
"https://Stackoverflow.com/questions/35259487",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5120619/"
] | How about this?
```
Parent finalObject;
if (condition) {
finalObject = new Child1();
} else {
finalObject = new Child2();
}
```
Or, even better, this?
```
Parent finalObject = condition? new Child1() : new Child2();
``` | First check your condition and then inside the if or else statement call the constructor.
if(condition)
finalobject = new myChild1();
else
finalobject = new myChild2(); |
4,240,241 | Let $I \subseteq \mathbb{R}$ be an open interval e that $a \in I$. Assume that $f:I\to \mathbb{R}$ is a function. Suppose that constants $K > 0$ and $L \in \mathbb{R}$ exist, such that $|f(x)-L| \leq K|x-a|$, for every $x \in I$. Show that $\lim\limits\_{x \to a} f(x) = L.$
I've been trying to prove this, but wasn't a... | 2021/09/02 | [
"https://math.stackexchange.com/questions/4240241",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/917878/"
] | **HINT**
What is the definition of limit? Here it is:
\begin{align\*}
\lim\_{x\to a}f(x) = L \Longleftrightarrow (\forall\varepsilon > 0)(\exists\delta\_{\varepsilon} > 0)(\forall x\in I)(0 < |x - a| < \delta\_{\varepsilon} \Rightarrow |f(x) - L| < \varepsilon)
\end{align\*}
where $a$ is an accumulation point of $I$... | Think about it this way, |f(x)-L| is bounded by K|x-a|, so take the limit as x approaches a.
This is $\lim\_{x\rightarrow a} |f(x)-L| \leq \lim\_{x\rightarrow a}K|x-a|$, now you got to evalute limits and remember that the absolute value function is continuous. |
8,227 | I'm new here and I saw one can buy them e.g. in Germany at bitcoin.de via an online transaction, by paying Euros. Is the same possible in Romania (do you need a €-bank account for that?) and if so, is there some (online) exchange service best suited for that? | 2013/03/07 | [
"https://bitcoin.stackexchange.com/questions/8227",
"https://bitcoin.stackexchange.com",
"https://bitcoin.stackexchange.com/users/3221/"
] | There are no exchanges yet that accept RON (Romanian Leu).
There are individuals in Romania who trade bitcoins for face-to-face cash trade:
* <https://localbitcoins.com/country/RO> <-- But be careful of the listings who are not local, wanting to trade online instead.
Also there is the #Bitcoin-otc marketplace and t... | I found a website that is selling directly, you can check it out under <https://bitcoinx.ro/> |
8,227 | I'm new here and I saw one can buy them e.g. in Germany at bitcoin.de via an online transaction, by paying Euros. Is the same possible in Romania (do you need a €-bank account for that?) and if so, is there some (online) exchange service best suited for that? | 2013/03/07 | [
"https://bitcoin.stackexchange.com/questions/8227",
"https://bitcoin.stackexchange.com",
"https://bitcoin.stackexchange.com/users/3221/"
] | There are no exchanges yet that accept RON (Romanian Leu).
There are individuals in Romania who trade bitcoins for face-to-face cash trade:
* <https://localbitcoins.com/country/RO> <-- But be careful of the listings who are not local, wanting to trade online instead.
Also there is the #Bitcoin-otc marketplace and t... | You can check out a list of exchanges that accept customers from Romania over here: <https://bitcoinnews.ro/cumpara-bitcoin>
If I remember correctly there's one international exchange that accepts RON as well and that's LakeBTC. I haven't seen any reviews of it though so use with caution. |
8,227 | I'm new here and I saw one can buy them e.g. in Germany at bitcoin.de via an online transaction, by paying Euros. Is the same possible in Romania (do you need a €-bank account for that?) and if so, is there some (online) exchange service best suited for that? | 2013/03/07 | [
"https://bitcoin.stackexchange.com/questions/8227",
"https://bitcoin.stackexchange.com",
"https://bitcoin.stackexchange.com/users/3221/"
] | There are no exchanges yet that accept RON (Romanian Leu).
There are individuals in Romania who trade bitcoins for face-to-face cash trade:
* <https://localbitcoins.com/country/RO> <-- But be careful of the listings who are not local, wanting to trade online instead.
Also there is the #Bitcoin-otc marketplace and t... | See if [bitstamp](https://bitstamp.net) or [kraken](https://www.kraken.com) work for you. Both accept SEPA transfers. There are also some other European exchanges listed [here](https://bitcoin.org/en/exchanges). |
8,227 | I'm new here and I saw one can buy them e.g. in Germany at bitcoin.de via an online transaction, by paying Euros. Is the same possible in Romania (do you need a €-bank account for that?) and if so, is there some (online) exchange service best suited for that? | 2013/03/07 | [
"https://bitcoin.stackexchange.com/questions/8227",
"https://bitcoin.stackexchange.com",
"https://bitcoin.stackexchange.com/users/3221/"
] | You can check out a list of exchanges that accept customers from Romania over here: <https://bitcoinnews.ro/cumpara-bitcoin>
If I remember correctly there's one international exchange that accepts RON as well and that's LakeBTC. I haven't seen any reviews of it though so use with caution. | I found a website that is selling directly, you can check it out under <https://bitcoinx.ro/> |
8,227 | I'm new here and I saw one can buy them e.g. in Germany at bitcoin.de via an online transaction, by paying Euros. Is the same possible in Romania (do you need a €-bank account for that?) and if so, is there some (online) exchange service best suited for that? | 2013/03/07 | [
"https://bitcoin.stackexchange.com/questions/8227",
"https://bitcoin.stackexchange.com",
"https://bitcoin.stackexchange.com/users/3221/"
] | You can check out a list of exchanges that accept customers from Romania over here: <https://bitcoinnews.ro/cumpara-bitcoin>
If I remember correctly there's one international exchange that accepts RON as well and that's LakeBTC. I haven't seen any reviews of it though so use with caution. | See if [bitstamp](https://bitstamp.net) or [kraken](https://www.kraken.com) work for you. Both accept SEPA transfers. There are also some other European exchanges listed [here](https://bitcoin.org/en/exchanges). |
21,643,038 | I have an app where I am showing map where I will be showing the driver area allocated to him.
Client want this area will be highlighted with some color.
Sample can be as below.

Any idea how this can be done?
What I was planning to do is having i... | 2014/02/08 | [
"https://Stackoverflow.com/questions/21643038",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1066828/"
] | I didn't thought this would be so easy...
Below link will do the trick I was looking for...
<http://www.shawngrimes.me/2011/04/adding-polygon-map-overlays/> | you can see HTML "map" tag with "area":
<http://www.w3schools.com/tags/tag_area.asp> |
21,643,038 | I have an app where I am showing map where I will be showing the driver area allocated to him.
Client want this area will be highlighted with some color.
Sample can be as below.

Any idea how this can be done?
What I was planning to do is having i... | 2014/02/08 | [
"https://Stackoverflow.com/questions/21643038",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1066828/"
] | Something you may want to try for performance reasons is to use [TileMill](http://tilemill.com) to parse the source data (KML, SHP, etc.) and render out raster tiles, possibly with alpha transparency so that they can be used as a true overlay. Then, you could use those tiles in MapKit or something like [Mapbox](http://... | you can see HTML "map" tag with "area":
<http://www.w3schools.com/tags/tag_area.asp> |
21,643,038 | I have an app where I am showing map where I will be showing the driver area allocated to him.
Client want this area will be highlighted with some color.
Sample can be as below.

Any idea how this can be done?
What I was planning to do is having i... | 2014/02/08 | [
"https://Stackoverflow.com/questions/21643038",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1066828/"
] | I didn't thought this would be so easy...
Below link will do the trick I was looking for...
<http://www.shawngrimes.me/2011/04/adding-polygon-map-overlays/> | Something you may want to try for performance reasons is to use [TileMill](http://tilemill.com) to parse the source data (KML, SHP, etc.) and render out raster tiles, possibly with alpha transparency so that they can be used as a true overlay. Then, you could use those tiles in MapKit or something like [Mapbox](http://... |
19,451,057 | My input is:
```
cat input
1
4
-2
```
I want to subtract some value (e.g., `2`) from column 1. If result is `> 0` print it or else print `0`. In other words, I don't want any negative numbers.
My try is:
```
awk '{NUMBER=$1-2} if (NUMBER > 0) print NUMBER; else print 0'
```
But I am probably m... | 2013/10/18 | [
"https://Stackoverflow.com/questions/19451057",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1286528/"
] | This can be an option:
```
$ awk '{$1=$1-2>0?$1-2:0; print $1}' file
0
2
0
```
`$1=$1-2>0?$1-2:0` is a ternary operator and is read like this:
```
Set $1 to:
if ($1-2 > 0)
==> $1-2
else ==> 0
```
and then it is printed out `print $1`. | With this:
```
awk '{NUMBER=$1-2} if (NUMBER > 0) print NUMBER; else print 0'
```
you're putting the `if...` statement in the condition part of the awk body instead of the action part because it's not enclosed in curly brackets. This is the correct syntax for what you wrote:
```
awk '{NUMBER=$1-2; if (NUMBER > 0) p... |
12,472,540 | What i need to do is kind of a very restricted backup.
I've created a lot of small programs which i've put in my test package. In case the system goes down i'd like to keep my data. I also don't want to trouble the basis guys.
Firstly: is it a bad idea what i'm trying to achieve (cuz i really don't know much about SA... | 2012/09/18 | [
"https://Stackoverflow.com/questions/12472540",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1037251/"
] | It's generally not necessary. SAP R/3 systems are usually mission-critical. If they go down, hit the basis administrators. If they take the system down without backing it up first and notifying everyone, hit them with a very large spiked club.
There are ways to download individual components ([SAPlink](http://www.sapl... | Two approaches:
1. [SAPLink](https://wiki.scn.sap.com/wiki/display/ABAP/SAPlink)
More old-school way which uses files called **nuggets** for transferring objects between systems in a plain-text mode.
Supported on most systems [since version 4.6c](https://docs.oracle.com/cd/E52090_13/otn/pdf/eip/E51847_01.pdf).
2. ... |
30,860,024 | I want to show a pop up to the user, if he wants to delete some files or not, and before the user uninstalls my application (standalone java application).
I searched for a solution, but I only found some android solutions, which are not useful for me.
I need a pure java solution or I need to know, if there is another... | 2015/06/16 | [
"https://Stackoverflow.com/questions/30860024",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5013996/"
] | 1) Node is using Javascript so it is single threaded and non-blocking.
2) If i understand correctly what you mean.. yes you can have a single file application. Which probably make your life miserable when the app grows big.
3) Yes.This variable will be accessible through out the file. For details and code, regarding ... | 1) Node.JS is not single threaded. It uses multiple threads. But the JavaScript virtual machine (V8 in most of the cases) is single threaded (in a way, there are ways to make threads and processes). So any call served by JavaScript is mostly single threaded. However, you could create threads, processes and workers unde... |
58,653,294 | I am new in machine learning as well as python programming, I want to implement algorithm from scratch using numpy only which is perceptron learning rule on linnerud dataset.
If perceptron does not converge will need to run for 1000 iterations and also need to test this algorithm on the Linnerrud dataset using all 3 a... | 2019/11/01 | [
"https://Stackoverflow.com/questions/58653294",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11111798/"
] | It works for me after modifying few parts in code
```
import numpy as np
import matplotlib.pyplot as plot
import os
from numpy import arange
from sklearn.datasets import load_linnerud
dataN = dataset.get('data')
target = dataset.get('target')
chinup = []
for i in dataN:
chinup.append(i[0])
median = np.median(c... | ```
median = np.sum(chinup) / 20 --> 9.45 (it is mean)
median = np.median(chinup) -->11.5 (it is median)
```
median is not mean, they are different
and you plot `plot.plot([0,20],[0,0])`, why this linear regression is put at this position of this case? and it has with 0 slope? or you just draw it with your idea... |
58,653,294 | I am new in machine learning as well as python programming, I want to implement algorithm from scratch using numpy only which is perceptron learning rule on linnerud dataset.
If perceptron does not converge will need to run for 1000 iterations and also need to test this algorithm on the Linnerrud dataset using all 3 a... | 2019/11/01 | [
"https://Stackoverflow.com/questions/58653294",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11111798/"
] | It works for me after modifying few parts in code
```
import numpy as np
import matplotlib.pyplot as plot
import os
from numpy import arange
from sklearn.datasets import load_linnerud
dataN = dataset.get('data')
target = dataset.get('target')
chinup = []
for i in dataN:
chinup.append(i[0])
median = np.median(c... | for i in target:
chinup.append(i[0])
median = np.median(chinup)
this median is 176,it is wrong
should be:
for i in data:
chinup.append(i[0])
median = np.median(chinup)
this median is 11.5
in load\_linnerud dataset: 'target\_names': ['Weight', 'Waist', 'Pulse'],and 'feature\_names': ['Chins', 'Situps', 'Jumps']
if y... |
56,008,327 | The below SQL code is supposed to return a concatenated string of first and last name, but it always returns 0's. Does anyone know why (PS I'm a complete NEWB to programming)?
Everything else in my code I've tested and it's working fine, but for some reason the two varchars don't want to return a string. Also, I trie... | 2019/05/06 | [
"https://Stackoverflow.com/questions/56008327",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11460232/"
] | You don't have to use the `+` operator. Try this:
```sql
SELECT
f.name,
CONCAT( m.firstname, " ", m.surname ) AS mem_name
FROM `Bookings` b
JOIN `Members` m ON m.memid = b.memid
JOIN `Facilities` f ON b.facid = f.facid
WHERE f.name LIKE '%Tennis%'
LIMIT 0, 30
``` | At times, the concat function does not take multiple arguments. try nesting your columns that are to be concatenated. Also, use a `,` instead of plus.
```
SELECT
f.name,
CONCAT(CONCAT( m.firstname, ' '), m.surname ) AS mem_name
FROM `Bookings` b
JOIN `Members` m ON m.memid = b.memid
JOIN `Facilities` f ON... |
22,455,038 | I have the TestComplete VB code that returns cell in an excel file that contains the value specified in the code.
The problem is that the words searched by the code in the excel are not the exact match of the value specified in the code.
In vba, Replacing "xlPart" with "xlWhole" gives a solution to my problem.
I wan... | 2014/03/17 | [
"https://Stackoverflow.com/questions/22455038",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3173444/"
] | The code below solved my problem of finding the cell that contains the exact match of the value am searching for.
```
Function FindCell(sheet, searchRange, Value, returnWhat)
Dim CellPosition, c, Search_In
Dim i, CellArray()
If searchRange = "Entire_Sheet" then
Set Search_In = sheet.Cells
else
Set Searc... | This code works in **VBA** don't know about **VB**:
```
Function FindCell(sheet As Worksheet, searchRange As String, Valuee As Variant, returnWhat As String) As Long
Dim CellPosition, c, Search_In, r
CellPosition = -9999
If searchRange = "Entire_Sheet" Then
Set Search_In = sheet.Cells
Else
Set Search_In =... |
3,299,621 | Goal per subject.
code snip:
```
var canvas= document.getElementById('myCanvas');
var ctx= canvas.getContext('2d');
canvas.width= 520;
canvas.height= 405;
ctx.font = "15pt Verdana";
ctx.lineWidth = 1;
// text 1
ctx.fillText("me and my dog puddie", 210, 90);
// text 2
ctx.fillText("you and many many crazy nuts",... | 2010/07/21 | [
"https://Stackoverflow.com/questions/3299621",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/330887/"
] | This is some old python code on my hard drive. There might be bugs but it should show the basic idea:
```
class Translator:
def transformInt(self, x):
translateNumbers(0,[str(x)])
def threeDigitsNumber(self,number):
snumber=self.twoDigitsNumber(number/100)
if number/100!=0:
... | This is [part of Common Lisp](http://www.lispworks.com/documentation/HyperSpec/Body/22_cba.htm)!
[Here's how GNU CLISP does it](http://www.google.com/codesearch/p?hl=ja#-kmSHZF0HiY/pub/OpenBSD/distfiles/clisp-2.25.tar.bz2%7CZxaEhw9MqWQ/clisp-2.25/src/format.lisp&q=format%20lang:lisp%20format-cardinal&l=602), and [here... |
3,299,621 | Goal per subject.
code snip:
```
var canvas= document.getElementById('myCanvas');
var ctx= canvas.getContext('2d');
canvas.width= 520;
canvas.height= 405;
ctx.font = "15pt Verdana";
ctx.lineWidth = 1;
// text 1
ctx.fillText("me and my dog puddie", 210, 90);
// text 2
ctx.fillText("you and many many crazy nuts",... | 2010/07/21 | [
"https://Stackoverflow.com/questions/3299621",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/330887/"
] | That didn't take long. This is an implementation written in Java.
<http://snippets.dzone.com/posts/show/3685>
Code
====
```java
public class IntToEnglish {
static String[] to_19 = { "zero", "one", "two", "three", "four", "five", "six",
"seven", "eight", "nine", "ten", "eleven", "twelve", "thirt... | This is [part of Common Lisp](http://www.lispworks.com/documentation/HyperSpec/Body/22_cba.htm)!
[Here's how GNU CLISP does it](http://www.google.com/codesearch/p?hl=ja#-kmSHZF0HiY/pub/OpenBSD/distfiles/clisp-2.25.tar.bz2%7CZxaEhw9MqWQ/clisp-2.25/src/format.lisp&q=format%20lang:lisp%20format-cardinal&l=602), and [here... |
3,299,621 | Goal per subject.
code snip:
```
var canvas= document.getElementById('myCanvas');
var ctx= canvas.getContext('2d');
canvas.width= 520;
canvas.height= 405;
ctx.font = "15pt Verdana";
ctx.lineWidth = 1;
// text 1
ctx.fillText("me and my dog puddie", 210, 90);
// text 2
ctx.fillText("you and many many crazy nuts",... | 2010/07/21 | [
"https://Stackoverflow.com/questions/3299621",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/330887/"
] | This link provides a detailed explanation of what looks to be a nice approach:
<http://www.blackwasp.co.uk/NumberToWords.aspx> | One way to accomplish this would be to use look up tables. It would be somewhat brute force, but easy to setup. For instance, you could have the words for 0-99 in one table, then a table for tens, hundreds, thousands, etc. Some simple math will give you the index of the word you need from each table. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.