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 |
|---|---|---|---|---|---|
10,572 | Consider a Robinson Crusoe economy. Let $c$ be consumption and let $l$ be leisure. Our utility function is defined as
$$U(c,l)$$
Geometrically, I think we can say his indifference curve should be concave up, so therefore $\frac{dc}{dl} >0$ and $\frac{d^2c}{dl^2} >0$.
Typically we have a production function $$y = f... | 2016/02/07 | [
"https://economics.stackexchange.com/questions/10572",
"https://economics.stackexchange.com",
"https://economics.stackexchange.com/users/2679/"
] | The ratio of government debt to GDP is a useful indicator because, broadly, the larger a country's GDP, the larger is the tax revenue the government could *potentially* raise to service the debt while maintaining other government expenditure at an acceptable level. Thus a very high debt / GDP ratio would raise doubts a... | I believe your understanding of budget and GDP is a bit off. Comparing debt with GDP is more adequate, as GDP measures the country's production level, while budget is just an estimate. At least where I live, what is budgeted for the upcoming year is not always accomplished in the end, as there are gaps and things that ... |
63,568,813 | for example
```
public class Main
{
public static void main(String[] args) {
int[] arr = new int[args.length];
for (int i = 0; i < args.length; i++)
{
arr[i] = Integer.parseInt(args[i]);
}
printarr pp = new printarr();
pp.pnt(arr... | 2020/08/24 | [
"https://Stackoverflow.com/questions/63568813",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14160027/"
] | You may check the string at [this link](https://r12a.github.io/uniview/?charlist=%F0%9D%95%BE%F0%9D%96%8D%F0%9D%96%8E%F0%9D%96%97%F0%9D%96%94%F0%9D%96%93#title) and you will see that the "" string consists of characters belonging to `\p{L}` category. Your regex starts with `[^А-я\w\d`, which means it matches any chars ... | You can make it so it only matches the type you need. Instead of the string type that you don't need.
This should work `[А-я\w\d\"+\"\n\"+\" ,.?!ё/@#:()]` |
401,950 | *I want to say up front, that this question involves minor modification (transient surge/current suppression) to the power supply side of a power tool. Usually I'd be the last to do anything like this (and never have). But in this case, my basic knowledge of electronics suggests that a trivial component inline with or ... | 2018/10/18 | [
"https://electronics.stackexchange.com/questions/401950",
"https://electronics.stackexchange.com",
"https://electronics.stackexchange.com/users/149027/"
] | What you are looking for is called an "electronic circuit breaker". Since it sounds like you're not qualified to design such a thing from scratch, it would probably be best to look for commercial products under that designation.
The key issue for you is that you need something that will allow the normal start-up surge... | You can choose a 10 or 12A breaker and mount in a electric box with a socket and plug.
<https://www.amazon.co.uk/Wylex-NHXB10-Single-Circuit-Breaker/dp/B075NPNYYV/ref=zg_bs_1938267031_9?_encoding=UTF8&psc=1&refRID=EA1QB085ATFXXF57A6RN> |
401,950 | *I want to say up front, that this question involves minor modification (transient surge/current suppression) to the power supply side of a power tool. Usually I'd be the last to do anything like this (and never have). But in this case, my basic knowledge of electronics suggests that a trivial component inline with or ... | 2018/10/18 | [
"https://electronics.stackexchange.com/questions/401950",
"https://electronics.stackexchange.com",
"https://electronics.stackexchange.com/users/149027/"
] | The term "surge suppressor" is used to describe something that protects against a surge in VOLTAGE, i.e. a problem with the line voltage coming from your utility service. What you are talking about would be something that operates on CURRENT. The technology is called is a "Current Sensing Relay" (CSR), also sometimes c... | You can choose a 10 or 12A breaker and mount in a electric box with a socket and plug.
<https://www.amazon.co.uk/Wylex-NHXB10-Single-Circuit-Breaker/dp/B075NPNYYV/ref=zg_bs_1938267031_9?_encoding=UTF8&psc=1&refRID=EA1QB085ATFXXF57A6RN> |
15,629,037 | This is probably a fairly obvious question, but I just can't figure it out.
I am trying to write a function that squares the even numbers in a list. When I try to run it, I am getting an error about my use of the even function. How can I fix this?
```
module SquareEvens where
squareEvens :: [Integer] -> [Integer]
s... | 2013/03/26 | [
"https://Stackoverflow.com/questions/15629037",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2030543/"
] | The code works fine if you change `even n` to `even ns`:
```
squareEvens n = [ns * ns | ns <- n, even ns]
```
But note that the convention is to use the plural to name the list and the singular to name an element from that list. So swap `n` and `ns` to follow idiomatic Haskell usage:
```
squareEvens ns = [n * n | n... | As you can see, it's easy to get variable names wrong. So why not do it without?
```
squareEvens = map (^2) . filter even
```
I think this is clearer than the comprehension. You can read it from right to left: Keep only the even numbers, then square them. |
5,446,644 | I have a listbox where I create a Itemtemplate with a DataTemplate. I want to be able to write events for the checkboxes and buttons in the datatemplate but they do not seem to be firing.
Here is my xaml and basically I just tried to display a messagebox.show("worked") in the event function.
```
<ListBox x:Name="Lis... | 2011/03/27 | [
"https://Stackoverflow.com/questions/5446644",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/678552/"
] | Because the items are defined within a DataTemplate they are not hooked up to the code-behind for the parent class. If you want to handle events for templated items, then you should consider using commands instead. If you don't know what commands are (and therefore unlikely to know what MVVM is), then you should check ... | For starters you need to remove the name from all the controls in the template. If you have 10 items in the list you will have 10 sets of controls with the same name which won't work. |
5,446,644 | I have a listbox where I create a Itemtemplate with a DataTemplate. I want to be able to write events for the checkboxes and buttons in the datatemplate but they do not seem to be firing.
Here is my xaml and basically I just tried to display a messagebox.show("worked") in the event function.
```
<ListBox x:Name="Lis... | 2011/03/27 | [
"https://Stackoverflow.com/questions/5446644",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/678552/"
] | I agree that using commands is the best approach.
However if you still want to assess controls placed inside the ItemTemplate/DataTemplate (and subscribe to some events), then you can do this by using the VisualTreeHelper. | For starters you need to remove the name from all the controls in the template. If you have 10 items in the list you will have 10 sets of controls with the same name which won't work. |
5,446,644 | I have a listbox where I create a Itemtemplate with a DataTemplate. I want to be able to write events for the checkboxes and buttons in the datatemplate but they do not seem to be firing.
Here is my xaml and basically I just tried to display a messagebox.show("worked") in the event function.
```
<ListBox x:Name="Lis... | 2011/03/27 | [
"https://Stackoverflow.com/questions/5446644",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/678552/"
] | Because the items are defined within a DataTemplate they are not hooked up to the code-behind for the parent class. If you want to handle events for templated items, then you should consider using commands instead. If you don't know what commands are (and therefore unlikely to know what MVVM is), then you should check ... | I agree that using commands is the best approach.
However if you still want to assess controls placed inside the ItemTemplate/DataTemplate (and subscribe to some events), then you can do this by using the VisualTreeHelper. |
35,410,277 | I suddently get a 502 Bad gateway error and I don't understand why this error appear. This error appear moreover only for 1 single page!!...
The exact error in my Nginx log is :
```
Upstream prematurely closed FastCGI stdout while reading response header from upstream [..] upstream: "fastcgi://unix:/var/run/php5-fpm... | 2016/02/15 | [
"https://Stackoverflow.com/questions/35410277",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3899560/"
] | Strangely enough, this is what worked for me after chasing down a mysterious 502 Bad Gateway error:
* Change `error_reporting` setting in `php-fpm` ini like this:
`error_reporting = ~E_ALL`
* Then restart `php-fpm` and `nginx`
This worked for me after trying the suggested nginx settings above to no avail. I don't ha... | I did the following to server nginx config:
```
client_body_timeout 1200;
client_header_timeout 600;
```
and added zend\_extension to php fpm php.ini:
```
zend_extension = xdebug.so
``` |
35,410,277 | I suddently get a 502 Bad gateway error and I don't understand why this error appear. This error appear moreover only for 1 single page!!...
The exact error in my Nginx log is :
```
Upstream prematurely closed FastCGI stdout while reading response header from upstream [..] upstream: "fastcgi://unix:/var/run/php5-fpm... | 2016/02/15 | [
"https://Stackoverflow.com/questions/35410277",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3899560/"
] | Strangely enough, this is what worked for me after chasing down a mysterious 502 Bad Gateway error:
* Change `error_reporting` setting in `php-fpm` ini like this:
`error_reporting = ~E_ALL`
* Then restart `php-fpm` and `nginx`
This worked for me after trying the suggested nginx settings above to no avail. I don't ha... | Try to `include <fcgi_stdio.h>` in your source file.
This error happens to me just now,then i add `include <fcgi_stdio.h>`in my `c` file,here is my code.
```c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcgi_config.h>
#include <fcgi_stdio.h>
int main()
{
int count = 0;... |
35,410,277 | I suddently get a 502 Bad gateway error and I don't understand why this error appear. This error appear moreover only for 1 single page!!...
The exact error in my Nginx log is :
```
Upstream prematurely closed FastCGI stdout while reading response header from upstream [..] upstream: "fastcgi://unix:/var/run/php5-fpm... | 2016/02/15 | [
"https://Stackoverflow.com/questions/35410277",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3899560/"
] | Strangely enough, this is what worked for me after chasing down a mysterious 502 Bad Gateway error:
* Change `error_reporting` setting in `php-fpm` ini like this:
`error_reporting = ~E_ALL`
* Then restart `php-fpm` and `nginx`
This worked for me after trying the suggested nginx settings above to no avail. I don't ha... | I had the error only for one type of requests that had 12 items in the body. May be it was related with a body size, but it worked when it was more (13 and more items) or some less (11 and less).
**upstream prematurely closed FastCGI stdout while reading response header from upstream**
```
2021/12/24 07:14:44 [error]... |
3,812,564 | >
> $$\int\frac{e^x+1}{e^x-1}\,\mathrm dx$$
>
>
>
For this above problem, I tried adding and subtracting a $e^x$ to the numerator and proceeded. I did end up with an answer. I also tried to solve this question by taking $e^{x/2}$ common from both numerator and the denominator.
$$\int\frac{e^{x/2}+e^{-x/2}}{e^{x/2... | 2020/09/03 | [
"https://math.stackexchange.com/questions/3812564",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/806447/"
] | $$\frac{e^x+1}{e^x-1}=\frac{e^x}{e^x-1}+\frac{e^{-x}}{1-e^{-x}}.$$
Both terms are of the form $\frac{f'}f$ and you can integrate straight away, giving
$$\log|(e^x-1)(1-e^{-x})|.$$
---
Alternatively,
$$\frac{e^x+1}{e^x-1}=\frac{e^{x/2}+e^{-x/2}}{e^{x/2}-e^{-x/2}}=2\frac{(e^{x/2}-e^{-x/2})'}{e^{x/2}-e^{-x/2}}\to 2\l... | $$\int \frac{e^x}{e^x-1}dx = \int d(\log(e^x-1)) = \log|e^x-1|+C$$
$$\int\frac{e^x}{e^x-1}dx -\int \frac1{e^x-1}dx=\int 1dx = x + C$$
Thus $$\int \frac1{e^x-1}dx=\log|e^x-1|-x+C$$
and finally
$$ \int \frac{e^x+1}{e^x-1}dx = \int \frac{e^x}{e^x-1}dx + \int \frac1{e^x-1}dx= 2\log|e^x-1|-x+C $$ |
3,812,564 | >
> $$\int\frac{e^x+1}{e^x-1}\,\mathrm dx$$
>
>
>
For this above problem, I tried adding and subtracting a $e^x$ to the numerator and proceeded. I did end up with an answer. I also tried to solve this question by taking $e^{x/2}$ common from both numerator and the denominator.
$$\int\frac{e^{x/2}+e^{-x/2}}{e^{x/2... | 2020/09/03 | [
"https://math.stackexchange.com/questions/3812564",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/806447/"
] | $$\frac{e^x+1}{e^x-1}=\frac{e^x}{e^x-1}+\frac{e^{-x}}{1-e^{-x}}.$$
Both terms are of the form $\frac{f'}f$ and you can integrate straight away, giving
$$\log|(e^x-1)(1-e^{-x})|.$$
---
Alternatively,
$$\frac{e^x+1}{e^x-1}=\frac{e^{x/2}+e^{-x/2}}{e^{x/2}-e^{-x/2}}=2\frac{(e^{x/2}-e^{-x/2})'}{e^{x/2}-e^{-x/2}}\to 2\l... | $$\int \frac{e^x+1}{e^x-1} dx = \int 1 + \frac 2 {e^x-1} dx = x +2\int \bigg( \frac {e^x}{e^x-1} -1 \bigg)dx$$
Now you apply your formula to evaluate last integral. You get:$$x + 2(\ln|e^x-1| - x) + c$$ |
3,812,564 | >
> $$\int\frac{e^x+1}{e^x-1}\,\mathrm dx$$
>
>
>
For this above problem, I tried adding and subtracting a $e^x$ to the numerator and proceeded. I did end up with an answer. I also tried to solve this question by taking $e^{x/2}$ common from both numerator and the denominator.
$$\int\frac{e^{x/2}+e^{-x/2}}{e^{x/2... | 2020/09/03 | [
"https://math.stackexchange.com/questions/3812564",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/806447/"
] | $$\frac{e^x+1}{e^x-1}=\frac{e^x}{e^x-1}+\frac{e^{-x}}{1-e^{-x}}.$$
Both terms are of the form $\frac{f'}f$ and you can integrate straight away, giving
$$\log|(e^x-1)(1-e^{-x})|.$$
---
Alternatively,
$$\frac{e^x+1}{e^x-1}=\frac{e^{x/2}+e^{-x/2}}{e^{x/2}-e^{-x/2}}=2\frac{(e^{x/2}-e^{-x/2})'}{e^{x/2}-e^{-x/2}}\to 2\l... | Multiply the numerator and denominator by $e^{-x/2}$ to form
$$\frac{e^x+1}{e^x-1}\times\frac{e^{-x/2}}{e^{-x/2}}=\frac{e^{x/2}+e^{-x/2}}{e^{x/2}-e^{-x/2}}=\frac{\cosh(\frac{x}{2})}{\sinh(\frac{x}{2})},$$
then
$$\int \frac{e^x+1}{e^x-1}\,dx=\int \frac{\cosh(\frac{x}{2})}{\sinh(\frac{x}{2})}\,dx=2\int\frac{d\left(\sinh... |
3,812,564 | >
> $$\int\frac{e^x+1}{e^x-1}\,\mathrm dx$$
>
>
>
For this above problem, I tried adding and subtracting a $e^x$ to the numerator and proceeded. I did end up with an answer. I also tried to solve this question by taking $e^{x/2}$ common from both numerator and the denominator.
$$\int\frac{e^{x/2}+e^{-x/2}}{e^{x/2... | 2020/09/03 | [
"https://math.stackexchange.com/questions/3812564",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/806447/"
] | $$\frac{e^x+1}{e^x-1}=\frac{e^x}{e^x-1}+\frac{e^{-x}}{1-e^{-x}}.$$
Both terms are of the form $\frac{f'}f$ and you can integrate straight away, giving
$$\log|(e^x-1)(1-e^{-x})|.$$
---
Alternatively,
$$\frac{e^x+1}{e^x-1}=\frac{e^{x/2}+e^{-x/2}}{e^{x/2}-e^{-x/2}}=2\frac{(e^{x/2}-e^{-x/2})'}{e^{x/2}-e^{-x/2}}\to 2\l... | Let's use your approach:
$I=\int\frac{e^{x/2}+e^{-x/2}}{e^{x/2}-e^{-x/2}}\mathrm dx=2 \int\frac{\frac{e^{x/2}}{2}+\frac{e^{-x/2}}{2}}{e^{x/2}-e^{-x/2}}\mathrm dx =2 \int\frac{(e^{x/2}-e^{-x/2})'}{e^{x/2}-e^{-x/2}}\mathrm dx =2\ln|e^{x/2}-e^{-x/2}|+c$ |
3,812,564 | >
> $$\int\frac{e^x+1}{e^x-1}\,\mathrm dx$$
>
>
>
For this above problem, I tried adding and subtracting a $e^x$ to the numerator and proceeded. I did end up with an answer. I also tried to solve this question by taking $e^{x/2}$ common from both numerator and the denominator.
$$\int\frac{e^{x/2}+e^{-x/2}}{e^{x/2... | 2020/09/03 | [
"https://math.stackexchange.com/questions/3812564",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/806447/"
] | $$\int \frac{e^x+1}{e^x-1} dx = \int 1 + \frac 2 {e^x-1} dx = x +2\int \bigg( \frac {e^x}{e^x-1} -1 \bigg)dx$$
Now you apply your formula to evaluate last integral. You get:$$x + 2(\ln|e^x-1| - x) + c$$ | $$\int \frac{e^x}{e^x-1}dx = \int d(\log(e^x-1)) = \log|e^x-1|+C$$
$$\int\frac{e^x}{e^x-1}dx -\int \frac1{e^x-1}dx=\int 1dx = x + C$$
Thus $$\int \frac1{e^x-1}dx=\log|e^x-1|-x+C$$
and finally
$$ \int \frac{e^x+1}{e^x-1}dx = \int \frac{e^x}{e^x-1}dx + \int \frac1{e^x-1}dx= 2\log|e^x-1|-x+C $$ |
3,812,564 | >
> $$\int\frac{e^x+1}{e^x-1}\,\mathrm dx$$
>
>
>
For this above problem, I tried adding and subtracting a $e^x$ to the numerator and proceeded. I did end up with an answer. I also tried to solve this question by taking $e^{x/2}$ common from both numerator and the denominator.
$$\int\frac{e^{x/2}+e^{-x/2}}{e^{x/2... | 2020/09/03 | [
"https://math.stackexchange.com/questions/3812564",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/806447/"
] | $$\int \frac{e^x+1}{e^x-1} dx = \int 1 + \frac 2 {e^x-1} dx = x +2\int \bigg( \frac {e^x}{e^x-1} -1 \bigg)dx$$
Now you apply your formula to evaluate last integral. You get:$$x + 2(\ln|e^x-1| - x) + c$$ | Multiply the numerator and denominator by $e^{-x/2}$ to form
$$\frac{e^x+1}{e^x-1}\times\frac{e^{-x/2}}{e^{-x/2}}=\frac{e^{x/2}+e^{-x/2}}{e^{x/2}-e^{-x/2}}=\frac{\cosh(\frac{x}{2})}{\sinh(\frac{x}{2})},$$
then
$$\int \frac{e^x+1}{e^x-1}\,dx=\int \frac{\cosh(\frac{x}{2})}{\sinh(\frac{x}{2})}\,dx=2\int\frac{d\left(\sinh... |
3,812,564 | >
> $$\int\frac{e^x+1}{e^x-1}\,\mathrm dx$$
>
>
>
For this above problem, I tried adding and subtracting a $e^x$ to the numerator and proceeded. I did end up with an answer. I also tried to solve this question by taking $e^{x/2}$ common from both numerator and the denominator.
$$\int\frac{e^{x/2}+e^{-x/2}}{e^{x/2... | 2020/09/03 | [
"https://math.stackexchange.com/questions/3812564",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/806447/"
] | $$\int \frac{e^x+1}{e^x-1} dx = \int 1 + \frac 2 {e^x-1} dx = x +2\int \bigg( \frac {e^x}{e^x-1} -1 \bigg)dx$$
Now you apply your formula to evaluate last integral. You get:$$x + 2(\ln|e^x-1| - x) + c$$ | Let's use your approach:
$I=\int\frac{e^{x/2}+e^{-x/2}}{e^{x/2}-e^{-x/2}}\mathrm dx=2 \int\frac{\frac{e^{x/2}}{2}+\frac{e^{-x/2}}{2}}{e^{x/2}-e^{-x/2}}\mathrm dx =2 \int\frac{(e^{x/2}-e^{-x/2})'}{e^{x/2}-e^{-x/2}}\mathrm dx =2\ln|e^{x/2}-e^{-x/2}|+c$ |
1,570,989 | I'm trying to find the number of sequences of integers $0=a\_1\leq a\_2\leq\ldots\leq a\_n$ such that $a\_k<k$ for every $1\leq k\leq n$.
I know for $n=3$, the sequences are $ 000, 001, 002, 011,012$, so the number of sequences is $5$, but I don't know how to approach this further.
Any tips? | 2015/12/11 | [
"https://math.stackexchange.com/questions/1570989",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/297884/"
] | The solution to your problem are the ultra-famous Catalan Numbers. Have a look at Wikipedia. | I don't know if there's an easy formula, but you can get the answer in terms of a recurrence which you can evaluate by hand for small $n$ or use a fast computer program for large $n$. Note that a valid sequence for $n$ gives a valid sequence for $n+1$ as long as $a\_{n+1} \geq a\_n$ and $a\_{n+1} < n+1$. So if you let ... |
700,209 | When i try to install the official MySQL Workbench, it shows dependency issue of the unavailabilty of libproj19. However the repos only has libproj22 when i tried to install from APT.
Can someone help me out?
```
System: Host: cosmic Kernel: 5.16.19-76051619-generic x86_64 bits: 64
Console: pty pts/1 Distro: Po... | 2022/04/24 | [
"https://unix.stackexchange.com/questions/700209",
"https://unix.stackexchange.com",
"https://unix.stackexchange.com/users/504271/"
] | I solved it. Pretty dumb way but it works.
I narrowed down each conflicting dependecies and manually installed the required versions as deb files from Debian/ubuntu repos.
Whenever one of them again had dependency conflicts, I repeated the same method for them.
It took me like around 30 mins doing this but finally g... | The same under ubuntu 22.04 lts.
Try to use the snap!
```
snap install mysql-workbench-community
```
Only the settings from you previous apt install of mysql workbench are gone. Don't know, if there is a way to import the settings from ~/.mysql/workbench into your new snap install. |
700,209 | When i try to install the official MySQL Workbench, it shows dependency issue of the unavailabilty of libproj19. However the repos only has libproj22 when i tried to install from APT.
Can someone help me out?
```
System: Host: cosmic Kernel: 5.16.19-76051619-generic x86_64 bits: 64
Console: pty pts/1 Distro: Po... | 2022/04/24 | [
"https://unix.stackexchange.com/questions/700209",
"https://unix.stackexchange.com",
"https://unix.stackexchange.com/users/504271/"
] | The same under ubuntu 22.04 lts.
Try to use the snap!
```
snap install mysql-workbench-community
```
Only the settings from you previous apt install of mysql workbench are gone. Don't know, if there is a way to import the settings from ~/.mysql/workbench into your new snap install. | This is way easier than I thought it would be. On Ubuntu, I just allowed all permissions on the app installer, and voila! |
700,209 | When i try to install the official MySQL Workbench, it shows dependency issue of the unavailabilty of libproj19. However the repos only has libproj22 when i tried to install from APT.
Can someone help me out?
```
System: Host: cosmic Kernel: 5.16.19-76051619-generic x86_64 bits: 64
Console: pty pts/1 Distro: Po... | 2022/04/24 | [
"https://unix.stackexchange.com/questions/700209",
"https://unix.stackexchange.com",
"https://unix.stackexchange.com/users/504271/"
] | I solved it. Pretty dumb way but it works.
I narrowed down each conflicting dependecies and manually installed the required versions as deb files from Debian/ubuntu repos.
Whenever one of them again had dependency conflicts, I repeated the same method for them.
It took me like around 30 mins doing this but finally g... | This is way easier than I thought it would be. On Ubuntu, I just allowed all permissions on the app installer, and voila! |
11,176,829 | How can I change the value of a textbox whenever a dropdownlist within a gridview has its value changed?
On page load, the textbox shows the selected value, but when I change the selection of the dropdownlist, the textbox value doesn't change.
The code is below.
```
<asp:GridView ID="GridView1" runat="server" AutoGe... | 2012/06/24 | [
"https://Stackoverflow.com/questions/11176829",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1042521/"
] | You need to use `SelectedIndexChanged` handler to show selected value:
*Markup:*
```
<asp:DropDownList ID="duty" runat="server" OnLoad="ddl1_load" OnSelectedIndexChanged="duty_SelectedIndexChanged"></asp:DropDownList>
```
*Code-behind:*
```
protected void duty_SelectedIndexChanged(object sender, EventArgs e)
{
... | You should look into using data binding instead. You can bind the textbox.Text to the selecteditem.value, this will ensure that proper updating takes place |
11,176,829 | How can I change the value of a textbox whenever a dropdownlist within a gridview has its value changed?
On page load, the textbox shows the selected value, but when I change the selection of the dropdownlist, the textbox value doesn't change.
The code is below.
```
<asp:GridView ID="GridView1" runat="server" AutoGe... | 2012/06/24 | [
"https://Stackoverflow.com/questions/11176829",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1042521/"
] | You need to use `SelectedIndexChanged` handler to show selected value:
*Markup:*
```
<asp:DropDownList ID="duty" runat="server" OnLoad="ddl1_load" OnSelectedIndexChanged="duty_SelectedIndexChanged"></asp:DropDownList>
```
*Code-behind:*
```
protected void duty_SelectedIndexChanged(object sender, EventArgs e)
{
... | this happens to me once then i code like this... but i didnt use the onLoad attribute, tell me if this works,
```
<asp:TemplateField HeaderText="duty" SortExpression="duty">
<EditItemTemplate>
<asp:TextBox ID="duty" runat="server" Text='<%# ... |
11,176,829 | How can I change the value of a textbox whenever a dropdownlist within a gridview has its value changed?
On page load, the textbox shows the selected value, but when I change the selection of the dropdownlist, the textbox value doesn't change.
The code is below.
```
<asp:GridView ID="GridView1" runat="server" AutoGe... | 2012/06/24 | [
"https://Stackoverflow.com/questions/11176829",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1042521/"
] | I had a similar problem using the `DropDownLists` in `GridView`. My solution was to adjust the `onLoad` for the dropdown so that it wouldn't re-write the `DropDownList` on every post back. This way if there's something there then it won't re-populate it.
```
protected void dropDownLoad(object sender, EventArgs e)
{
... | You should look into using data binding instead. You can bind the textbox.Text to the selecteditem.value, this will ensure that proper updating takes place |
11,176,829 | How can I change the value of a textbox whenever a dropdownlist within a gridview has its value changed?
On page load, the textbox shows the selected value, but when I change the selection of the dropdownlist, the textbox value doesn't change.
The code is below.
```
<asp:GridView ID="GridView1" runat="server" AutoGe... | 2012/06/24 | [
"https://Stackoverflow.com/questions/11176829",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1042521/"
] | I had a similar problem using the `DropDownLists` in `GridView`. My solution was to adjust the `onLoad` for the dropdown so that it wouldn't re-write the `DropDownList` on every post back. This way if there's something there then it won't re-populate it.
```
protected void dropDownLoad(object sender, EventArgs e)
{
... | this happens to me once then i code like this... but i didnt use the onLoad attribute, tell me if this works,
```
<asp:TemplateField HeaderText="duty" SortExpression="duty">
<EditItemTemplate>
<asp:TextBox ID="duty" runat="server" Text='<%# ... |
45,208,849 | I've made an Application containing List of trainers. My Index View Displays these trainer profiles from the database. I intend to implement a sear bar to filter these results. I am not getting what i'm doing wrong. As soon as i mention the url in action of the search for, it displays reverse match error
url's.py :
... | 2017/07/20 | [
"https://Stackoverflow.com/questions/45208849",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8331591/"
] | change this line
```
<form class="navbar-form navbar-left" method="get" action="{% url 'trainer:Search' %}">
```
to
```
<form class="navbar-form navbar-left" method="get" action="{% url 'Search' %}">
``` | Are you including the urls.py somewhere?
Otherwise you need to add caret ^ at the start of your regex.
```
url(r'^trainer/search/$', views.search, name='Search'),
``` |
45,208,849 | I've made an Application containing List of trainers. My Index View Displays these trainer profiles from the database. I intend to implement a sear bar to filter these results. I am not getting what i'm doing wrong. As soon as i mention the url in action of the search for, it displays reverse match error
url's.py :
... | 2017/07/20 | [
"https://Stackoverflow.com/questions/45208849",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8331591/"
] | You need `{% url 'Search' %}` and not `{% url 'trainer:Search' %}`; the `:` is for when you have [namespaced your urls](https://docs.djangoproject.com/en/1.11/topics/http/urls/#url-namespaces). | Are you including the urls.py somewhere?
Otherwise you need to add caret ^ at the start of your regex.
```
url(r'^trainer/search/$', views.search, name='Search'),
``` |
30,565 | Consider this code where I read an input file with 6 columns (0-5):
1. Initialize a variable `history_ends` to 5000.
2. When the `column0` value (i.e. job[0] < 5000) I add 5000 lines of the input file in a list (`historyjobs`) else the rest of the lines until the eof in another list (`targetjobs`).
3. All the `history... | 2013/08/31 | [
"https://codereview.stackexchange.com/questions/30565",
"https://codereview.stackexchange.com",
"https://codereview.stackexchange.com/users/29122/"
] | Comments about coding style:
* inconsistent indentation makes the code harder to read
* preferred indentation width in python is 4 spaces
Why is the question tagged python3 ? This is python2 code.
---
```
history_begins = 1; history_ends = 5000; n = 0; total = 0
historyjobs = []; targetjobs = []
listsub = []; listr... | OK, your code is a bit of a mess. I take it you are fairly new to python. Read the [python style guide](http://www.python.org/dev/peps/pep-0008/) and stick to it. It will make it easier for people to read your code.
It is not easy to work out what you are trying to do here. As it stands the code doesn't run. However,... |
20,954,016 | I have two `ng-if`s defined in the same template that call functions of the same controller:
```
<div ng-controller="UserController">
<!-- WORKS :) -->
<p>{{ user.name }}</p>
<!--WORKS :)-->
<div ng-if="showThingOne()">
<h2>Thing One</h2>
</div>
<!--DOESN'T WORK :( ; TypeError: Cannot... | 2014/01/06 | [
"https://Stackoverflow.com/questions/20954016",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1141702/"
] | The User.current is an async function so the result get ready after the dom compiled.
showThingOne has no argument to be evaluated at compile time.
**Solution**
Add
```
$scope.user = {};
```
as the first line of user controller.
```
angular.module('MyApp')
.controller('UserController', ['$rootScope'... | This doesn't work because `user` is never being used:
```
$scope.showThingTwo = function (user) {
return $scope.user.role === 'Thing Two Seer';
};
```
Only `$scope.user.role` is being used (but not the `user` parameter) and it is still set to the `'Thing One Seer'` value.
If you use it like this it might work... |
52,538,546 | I'm trying to listen on keydown event on search input field in google's search box
but when I type 'enter' key I can't see any output. Is there any way to handle this?
```
window.addEventListener('keydown', (e) => {
console.log(e)
})
``` | 2018/09/27 | [
"https://Stackoverflow.com/questions/52538546",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1880164/"
] | Window doesn't leason for keydown event you have to attach it to your input
```js
document.getElementById('input').addEventListener('keydown',(e) => {
console.log(e.which)
})
```
```html
<input type="text" id="input">
``` | You need check your event, if keydown (example) "Enter" and focus on input, then console.log(e.target.value); // for see your value. |
15,094,637 | I am having 8(Eight) buttons in one line(horizontal) under one linear layout. The problem is that these buttons look like rectangle whereas I want them to look like square.
```
<Button
android:id="@+id/button25"
android:layout_width="match_parent"
android:layout_height="match_parent"
an... | 2013/02/26 | [
"https://Stackoverflow.com/questions/15094637",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/328560/"
] | Your query, as written, is trying to group by a constant expression. I think you can just change the last two lines to:
```
and i.OverrideDate between @sd and @ed
```
The `group by` statement is unnecessary. You are only returning one row, so all rows will be aggregated.
If you needed to include the `group by` for ... | I am not sure why you using `group by` *and* `having` clauses here at all. I think you could simplify your where clause as;
```
where lbs.Name in ('Completed by Analyst',
'Delivered/Imported into Neptune Online')
and lis.Name = 'Complete'
and bt.Name = 'Live'
and i.IsRelevant = 1
... |
3,974,071 | Let $\mathcal{A}$ be a σ-algebra on $\mathbb{R}$ that does not contain all Borel sets (i.e that is, it holds
that $\mathcal{B}(\mathbb{R}) \setminus \mathcal{A} \not= ∅)$. Prove that there is a continuous function f : $\mathbb{R} → \mathbb{R}$ which
is not $\mathcal{A}$-measurable
I have a really simple example but I ... | 2021/01/05 | [
"https://math.stackexchange.com/questions/3974071",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/-1/"
] | The way the question is phrased, you are not allowed to choose $\mathcal A$.
But your idea works anyway. If $\mathcal A$ does not contain all Borel sets, then it fails to contain some interval. Now you can do your example using said interval. | Consider a closed set $C\notin \mathcal A$. There is a continuous (or even $C^\infty$) function $f:\Bbb R\to \Bbb R$ such that $C=f^{-1}\{0\}$. Therefore $f$ is not $\mathcal A$-measurable. |
3,974,071 | Let $\mathcal{A}$ be a σ-algebra on $\mathbb{R}$ that does not contain all Borel sets (i.e that is, it holds
that $\mathcal{B}(\mathbb{R}) \setminus \mathcal{A} \not= ∅)$. Prove that there is a continuous function f : $\mathbb{R} → \mathbb{R}$ which
is not $\mathcal{A}$-measurable
I have a really simple example but I ... | 2021/01/05 | [
"https://math.stackexchange.com/questions/3974071",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/-1/"
] | I didn't want to answer (just to comment), but since some other guy answered what I commented, then let me write a simpler answer.
The identity function you propose always works. Indeed, if your $\sigma$-algebra does not contain all Borel subsets then it does not contain at least an open subset of the reals. Then just... | Consider a closed set $C\notin \mathcal A$. There is a continuous (or even $C^\infty$) function $f:\Bbb R\to \Bbb R$ such that $C=f^{-1}\{0\}$. Therefore $f$ is not $\mathcal A$-measurable. |
3,974,071 | Let $\mathcal{A}$ be a σ-algebra on $\mathbb{R}$ that does not contain all Borel sets (i.e that is, it holds
that $\mathcal{B}(\mathbb{R}) \setminus \mathcal{A} \not= ∅)$. Prove that there is a continuous function f : $\mathbb{R} → \mathbb{R}$ which
is not $\mathcal{A}$-measurable
I have a really simple example but I ... | 2021/01/05 | [
"https://math.stackexchange.com/questions/3974071",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/-1/"
] | I didn't want to answer (just to comment), but since some other guy answered what I commented, then let me write a simpler answer.
The identity function you propose always works. Indeed, if your $\sigma$-algebra does not contain all Borel subsets then it does not contain at least an open subset of the reals. Then just... | The way the question is phrased, you are not allowed to choose $\mathcal A$.
But your idea works anyway. If $\mathcal A$ does not contain all Borel sets, then it fails to contain some interval. Now you can do your example using said interval. |
39,845,529 | [here is the image](http://i.stack.imgur.com/eHAoo.png) I want to add a bootstrap **caret** class in my select dropdown menu.
```css
.select_menu{
font-size: 12px;
outline: none;
border: thin #ddd solid;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background-color: #F7F7F7;
... | 2016/10/04 | [
"https://Stackoverflow.com/questions/39845529",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6907704/"
] | Here is full back end code which is working
```
const express = require('express');
var app = express();
var port = 9999;
function getRoot(request, response) {
response.sendFile(path.resolve('./public/angular/index.html'));
}
function getUndefined(request, response) {
response.sendFile(path.resolve('./pub... | Follow the [Express node server with Angular 2 CLI](https://javascriptrocks.wordpress.com/2016/06/04/express-with-angular-cli-in-5-minutes/) document to serve your application through Node.js server. The application is being served Through Node.js and a REST full API. You can design this REST as your requirements.
E.g... |
39,845,529 | [here is the image](http://i.stack.imgur.com/eHAoo.png) I want to add a bootstrap **caret** class in my select dropdown menu.
```css
.select_menu{
font-size: 12px;
outline: none;
border: thin #ddd solid;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background-color: #F7F7F7;
... | 2016/10/04 | [
"https://Stackoverflow.com/questions/39845529",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6907704/"
] | None of the answers worked properly for me. And if it worked, the Angular routing did not work on reload.
So this is how I solved it. Angular routing works even on full page reload.
```
function getRoot(request, response) {
response.sendFile(path.resolve('./public/angular/index.html'));
}
function getUndefined... | Based on @NTN-JAVA answer, here's a solution to serve an Angular app from NodeJS server.
Here's the summary from beginning:
1. `npm install -g @angular/cli`
2. `ng new PROJECT_NAME`
3. `cd PROJECT_NAME`
4. `npm install nodemon express cookie-parser body-parser morgan method-override --save`
5.Create `app.js`:
```
v... |
39,845,529 | [here is the image](http://i.stack.imgur.com/eHAoo.png) I want to add a bootstrap **caret** class in my select dropdown menu.
```css
.select_menu{
font-size: 12px;
outline: none;
border: thin #ddd solid;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background-color: #F7F7F7;
... | 2016/10/04 | [
"https://Stackoverflow.com/questions/39845529",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6907704/"
] | None of the answers worked properly for me. And if it worked, the Angular routing did not work on reload.
So this is how I solved it. Angular routing works even on full page reload.
```
function getRoot(request, response) {
response.sendFile(path.resolve('./public/angular/index.html'));
}
function getUndefined... | Follow the [Express node server with Angular 2 CLI](https://javascriptrocks.wordpress.com/2016/06/04/express-with-angular-cli-in-5-minutes/) document to serve your application through Node.js server. The application is being served Through Node.js and a REST full API. You can design this REST as your requirements.
E.g... |
39,845,529 | [here is the image](http://i.stack.imgur.com/eHAoo.png) I want to add a bootstrap **caret** class in my select dropdown menu.
```css
.select_menu{
font-size: 12px;
outline: none;
border: thin #ddd solid;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background-color: #F7F7F7;
... | 2016/10/04 | [
"https://Stackoverflow.com/questions/39845529",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6907704/"
] | Based on @NTN-JAVA answer, here's a solution to serve an Angular app from NodeJS server.
Here's the summary from beginning:
1. `npm install -g @angular/cli`
2. `ng new PROJECT_NAME`
3. `cd PROJECT_NAME`
4. `npm install nodemon express cookie-parser body-parser morgan method-override --save`
5.Create `app.js`:
```
v... | Step 1: In order to get static content, run this command in your angular app directory -
>
> ng build --prod
>
>
>
Step 2: The first step will create a **dist** folder in your current directory, move all files in the **dist** folder to **public** folder of your node app -
Step 3: Create a node server. App.js -
... |
39,845,529 | [here is the image](http://i.stack.imgur.com/eHAoo.png) I want to add a bootstrap **caret** class in my select dropdown menu.
```css
.select_menu{
font-size: 12px;
outline: none;
border: thin #ddd solid;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background-color: #F7F7F7;
... | 2016/10/04 | [
"https://Stackoverflow.com/questions/39845529",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6907704/"
] | None of the answers worked properly for me. And if it worked, the Angular routing did not work on reload.
So this is how I solved it. Angular routing works even on full page reload.
```
function getRoot(request, response) {
response.sendFile(path.resolve('./public/angular/index.html'));
}
function getUndefined... | Step 1: In order to get static content, run this command in your angular app directory -
>
> ng build --prod
>
>
>
Step 2: The first step will create a **dist** folder in your current directory, move all files in the **dist** folder to **public** folder of your node app -
Step 3: Create a node server. App.js -
... |
39,845,529 | [here is the image](http://i.stack.imgur.com/eHAoo.png) I want to add a bootstrap **caret** class in my select dropdown menu.
```css
.select_menu{
font-size: 12px;
outline: none;
border: thin #ddd solid;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background-color: #F7F7F7;
... | 2016/10/04 | [
"https://Stackoverflow.com/questions/39845529",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6907704/"
] | 1. Use `ng build` to build your app into build directory.
2. Create nodejs app to server the build directory as static content, then create route for api.
Following is an example of nodejs app using express that will serve the Angular2 app:
```
/*
Put content of angular2 build into 'public' folder.
*/
const html = __... | Step 1: In order to get static content, run this command in your angular app directory -
>
> ng build --prod
>
>
>
Step 2: The first step will create a **dist** folder in your current directory, move all files in the **dist** folder to **public** folder of your node app -
Step 3: Create a node server. App.js -
... |
39,845,529 | [here is the image](http://i.stack.imgur.com/eHAoo.png) I want to add a bootstrap **caret** class in my select dropdown menu.
```css
.select_menu{
font-size: 12px;
outline: none;
border: thin #ddd solid;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background-color: #F7F7F7;
... | 2016/10/04 | [
"https://Stackoverflow.com/questions/39845529",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6907704/"
] | None of the answers worked properly for me. And if it worked, the Angular routing did not work on reload.
So this is how I solved it. Angular routing works even on full page reload.
```
function getRoot(request, response) {
response.sendFile(path.resolve('./public/angular/index.html'));
}
function getUndefined... | Here is full back end code which is working
```
const express = require('express');
var app = express();
var port = 9999;
function getRoot(request, response) {
response.sendFile(path.resolve('./public/angular/index.html'));
}
function getUndefined(request, response) {
response.sendFile(path.resolve('./pub... |
39,845,529 | [here is the image](http://i.stack.imgur.com/eHAoo.png) I want to add a bootstrap **caret** class in my select dropdown menu.
```css
.select_menu{
font-size: 12px;
outline: none;
border: thin #ddd solid;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background-color: #F7F7F7;
... | 2016/10/04 | [
"https://Stackoverflow.com/questions/39845529",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6907704/"
] | Based on @NTN-JAVA answer, here's a solution to serve an Angular app from NodeJS server.
Here's the summary from beginning:
1. `npm install -g @angular/cli`
2. `ng new PROJECT_NAME`
3. `cd PROJECT_NAME`
4. `npm install nodemon express cookie-parser body-parser morgan method-override --save`
5.Create `app.js`:
```
v... | Follow the [Express node server with Angular 2 CLI](https://javascriptrocks.wordpress.com/2016/06/04/express-with-angular-cli-in-5-minutes/) document to serve your application through Node.js server. The application is being served Through Node.js and a REST full API. You can design this REST as your requirements.
E.g... |
39,845,529 | [here is the image](http://i.stack.imgur.com/eHAoo.png) I want to add a bootstrap **caret** class in my select dropdown menu.
```css
.select_menu{
font-size: 12px;
outline: none;
border: thin #ddd solid;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background-color: #F7F7F7;
... | 2016/10/04 | [
"https://Stackoverflow.com/questions/39845529",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6907704/"
] | 1. Use `ng build` to build your app into build directory.
2. Create nodejs app to server the build directory as static content, then create route for api.
Following is an example of nodejs app using express that will serve the Angular2 app:
```
/*
Put content of angular2 build into 'public' folder.
*/
const html = __... | Here is full back end code which is working
```
const express = require('express');
var app = express();
var port = 9999;
function getRoot(request, response) {
response.sendFile(path.resolve('./public/angular/index.html'));
}
function getUndefined(request, response) {
response.sendFile(path.resolve('./pub... |
39,845,529 | [here is the image](http://i.stack.imgur.com/eHAoo.png) I want to add a bootstrap **caret** class in my select dropdown menu.
```css
.select_menu{
font-size: 12px;
outline: none;
border: thin #ddd solid;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background-color: #F7F7F7;
... | 2016/10/04 | [
"https://Stackoverflow.com/questions/39845529",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6907704/"
] | Here is full back end code which is working
```
const express = require('express');
var app = express();
var port = 9999;
function getRoot(request, response) {
response.sendFile(path.resolve('./public/angular/index.html'));
}
function getUndefined(request, response) {
response.sendFile(path.resolve('./pub... | Step 1: In order to get static content, run this command in your angular app directory -
>
> ng build --prod
>
>
>
Step 2: The first step will create a **dist** folder in your current directory, move all files in the **dist** folder to **public** folder of your node app -
Step 3: Create a node server. App.js -
... |
939,397 | I've seen a lot of examples which use
**getAccessibleContext().setAccessibleDescription(...)**
to set some "magic" description.
What is the use of this description? Where can it be seen and
how should it support accessibility?
Why **setDescription(...)** is not used?
Additionally, what is your opinion / experi... | 2009/06/02 | [
"https://Stackoverflow.com/questions/939397",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/76393/"
] | I haven't actually used Swing's accessibility facilities in my applications (and I probably should), but I presume that it will aid in the use of screen readers and other technologies which to improve the accessibility of an application.
From the [Accessibility and the Swing Set](http://java.sun.com/products/jfc/tsc/a... | As pointed out the accessible information is used to expose information to assistive technologies such as screen readers (in short as a blind computer user I use a screen reader to gather useful information about what control has focus and other useful things happening in a application and then for it to speak it out t... |
25,480 | Some of the boards in my hardwood floors (1949) are disintegrating.
Can anyone tell me what gives? And how I might go about stopping it?
 | 2013/02/23 | [
"https://diy.stackexchange.com/questions/25480",
"https://diy.stackexchange.com",
"https://diy.stackexchange.com/users/11749/"
] | Its either rot or termites.
The discoloring suggests a water leak that persisted long enough to rot. Do you have access under that spot? Is the subfloor similarly discolored? If so, it may need to be repaired at the same time as the board.
Board replacement is possible by any flooring contractor by sawing out the cen... | Looks like water damage. Did it occur while you owned the house? If so, and you don't remember any flooding, then the water is coming from underneath the floor. This needs to be fixed or you will continue to get rot and mold. Try to get access to the subfloor from below. The rotted pieces will need to be replaced so yo... |
5,382,827 | i need to put a corporate site under a cms, which i haven't finally chosen yet, and have some tight requirements for it:
1. it should be very well organized at a code level, as i'm a developer and i need to add some very custom functionality to the site;
2. ability to create custom content types (a la drupal's cck doe... | 2011/03/21 | [
"https://Stackoverflow.com/questions/5382827",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/670079/"
] | I have just refactored a bit the code and now it works (on my machine):
```
private static void CreateThumbnail(string[] b, double wid, double hght, bool Isprint)
{
string saveAt = "D:\\check";
foreach (string path in b)
{
var directory = new DirectoryInfo(path);
string outputPath = Path.Co... | About the "GDI+ generic error" and the "Out Of Memory" exceptions, you should take a look at that link on SO: [What is the "best" way to create a thumbnail using ASP.NET?](https://stackoverflow.com/questions/27921/what-is-the-best-way-to-create-a-thumbnail-using-asp-net)
You must use the C# `using` statement to make s... |
15,256,850 | I am using ASP.NET MVC 4 SimpleMembership "out of the box".
I set the authentication requirement as deco on the controllers with `[Authorize(Roles = "User")].`
It works fine, except when leaving the website without logging out. The next time I come back, `Request.IsAuthenticated` is still true, but when I go to a v... | 2013/03/06 | [
"https://Stackoverflow.com/questions/15256850",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1427188/"
] | It's most likely due to not passing a valid const char\* to [void perror(const char \*s)](http://pubs.opengroup.org/onlinepubs/009696899/functions/perror.html), which makes the file name in `<filename>: No such file or directory` output as garbage/non printable characters.
>
> The perror() function shall map the erro... | I think you correct the warning driveinfo.c:17 or post your code.
And its OK ;)
Good luck ! |
15,256,850 | I am using ASP.NET MVC 4 SimpleMembership "out of the box".
I set the authentication requirement as deco on the controllers with `[Authorize(Roles = "User")].`
It works fine, except when leaving the website without logging out. The next time I come back, `Request.IsAuthenticated` is still true, but when I go to a v... | 2013/03/06 | [
"https://Stackoverflow.com/questions/15256850",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1427188/"
] | It's most likely due to not passing a valid const char\* to [void perror(const char \*s)](http://pubs.opengroup.org/onlinepubs/009696899/functions/perror.html), which makes the file name in `<filename>: No such file or directory` output as garbage/non printable characters.
>
> The perror() function shall map the erro... | "varning att skicka heltal utan konvertering ..." sounds like it's a call to `perror` with something that isn't a string, perhaps?
If you post the code, we can probably see more clearly, but I'm pretty sure that warning and the output is related.
Edit: If you pass `filename[25]` to the function, I expect this warni... |
10,380,394 | I can add/commit any file/folder to repo but index.php . When I add/commit index.php to any folder under my repo it gives error as below:
```
Command Commit
Adding D:\svn\projects\myrepo\index.php
Error Commit failed (details follow):
Error Repository moved permanently to
Error 'http://mydomain.com/repos/m... | 2012/04/30 | [
"https://Stackoverflow.com/questions/10380394",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1365293/"
] | There are 3 reasons I can think of that a particular value could be used for the powerup IP:
1. convention - other processors in the same family/brand use the same location, and they want to give their customers a sense of familiarity
2. compatibility
3. certain areas are restricted or enhanced for certain purposes. T... | I think the answer lies in the Interrupt Vector Table (IVT). The IVT was introduced in the 8086 processor. The 8085 (which's design is based on the 8080 processor) uses a different method for handling interrupts. On the 8086/8088 the IVT takes up the first 1024 bytes of memory (256 interrupt vectors consisting of 4 byt... |
10,380,394 | I can add/commit any file/folder to repo but index.php . When I add/commit index.php to any folder under my repo it gives error as below:
```
Command Commit
Adding D:\svn\projects\myrepo\index.php
Error Commit failed (details follow):
Error Repository moved permanently to
Error 'http://mydomain.com/repos/m... | 2012/04/30 | [
"https://Stackoverflow.com/questions/10380394",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1365293/"
] | There are 3 reasons I can think of that a particular value could be used for the powerup IP:
1. convention - other processors in the same family/brand use the same location, and they want to give their customers a sense of familiarity
2. compatibility
3. certain areas are restricted or enhanced for certain purposes. T... | 1)In 8085 , upon reset the value of pc is 0000h. Therefore the wake up program should be written at 0000h location and can't be kept empty.
2) In 8086, reset values of CS & lP are FFFFH & 0000h resp. So 20 bit physical address will be FFFF0+0000=FFFF0H. It shouldn't be kept empty. Wake up program(code) is always in RO... |
10,380,394 | I can add/commit any file/folder to repo but index.php . When I add/commit index.php to any folder under my repo it gives error as below:
```
Command Commit
Adding D:\svn\projects\myrepo\index.php
Error Commit failed (details follow):
Error Repository moved permanently to
Error 'http://mydomain.com/repos/m... | 2012/04/30 | [
"https://Stackoverflow.com/questions/10380394",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1365293/"
] | I think the answer lies in the Interrupt Vector Table (IVT). The IVT was introduced in the 8086 processor. The 8085 (which's design is based on the 8080 processor) uses a different method for handling interrupts. On the 8086/8088 the IVT takes up the first 1024 bytes of memory (256 interrupt vectors consisting of 4 byt... | 1)In 8085 , upon reset the value of pc is 0000h. Therefore the wake up program should be written at 0000h location and can't be kept empty.
2) In 8086, reset values of CS & lP are FFFFH & 0000h resp. So 20 bit physical address will be FFFF0+0000=FFFF0H. It shouldn't be kept empty. Wake up program(code) is always in RO... |
2,110,193 | I was doing some exercise about Maclaurin expansion when I notice something, I used to remember the series formula of some common functions with $x$ as argument, but when I had to calculate the expansion for the same function but with $x^2$ as argument, for example, I always recalculate the series from scratch.
Then I... | 2017/01/23 | [
"https://math.stackexchange.com/questions/2110193",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/409374/"
] | If $P$ converges within the disc $|x|<R$, then substituting $g(x)$ into the argument of $P$ changes the disc into $|g(x)|<R$. As long as this is obeyed, $P(g(x))$ converges. | As always,
for this type of question
on generating functions,
the book "generatingfunctionology"
is a great reference.
It can be downloaded for free here:
<https://www.math.upenn.edu/~wilf/DownldGF.html> |
2,110,193 | I was doing some exercise about Maclaurin expansion when I notice something, I used to remember the series formula of some common functions with $x$ as argument, but when I had to calculate the expansion for the same function but with $x^2$ as argument, for example, I always recalculate the series from scratch.
Then I... | 2017/01/23 | [
"https://math.stackexchange.com/questions/2110193",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/409374/"
] | If $P$ converges within the disc $|x|<R$, then substituting $g(x)$ into the argument of $P$ changes the disc into $|g(x)|<R$. As long as this is obeyed, $P(g(x))$ converges. | Check out page 66 of Serge Lang's complex analysis textbook (4th edition).
He states and proves a theorem which tells you sufficient conditions for composing two power series formally (making no allusions to the analytic properties of the series).
In addition to the radius of convergence conditions alluded to in answ... |
2,110,193 | I was doing some exercise about Maclaurin expansion when I notice something, I used to remember the series formula of some common functions with $x$ as argument, but when I had to calculate the expansion for the same function but with $x^2$ as argument, for example, I always recalculate the series from scratch.
Then I... | 2017/01/23 | [
"https://math.stackexchange.com/questions/2110193",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/409374/"
] | The most important point here is that each function has a unique Taylor Series at a each point in its domain. You might find different ways to write the same series, but in the end the forms are really the same. In your case, this means that both a substitution and a direct calculation will give the valid Taylor Series... | As always,
for this type of question
on generating functions,
the book "generatingfunctionology"
is a great reference.
It can be downloaded for free here:
<https://www.math.upenn.edu/~wilf/DownldGF.html> |
2,110,193 | I was doing some exercise about Maclaurin expansion when I notice something, I used to remember the series formula of some common functions with $x$ as argument, but when I had to calculate the expansion for the same function but with $x^2$ as argument, for example, I always recalculate the series from scratch.
Then I... | 2017/01/23 | [
"https://math.stackexchange.com/questions/2110193",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/409374/"
] | The most important point here is that each function has a unique Taylor Series at a each point in its domain. You might find different ways to write the same series, but in the end the forms are really the same. In your case, this means that both a substitution and a direct calculation will give the valid Taylor Series... | Check out page 66 of Serge Lang's complex analysis textbook (4th edition).
He states and proves a theorem which tells you sufficient conditions for composing two power series formally (making no allusions to the analytic properties of the series).
In addition to the radius of convergence conditions alluded to in answ... |
55,633,162 | I have a dataset in following format.
>
> row\_num;locale;day\_of\_week;hour\_of\_day;agent\_id;entry\_page;path\_id\_set;traffic\_type;session\_durantion;hits
>
> "988681;L6;Monday;17;1;2111;""31672;0"";6;7037;\N"
> "988680;L2;Thursday;22;10;2113;""31965;0"";2;49;14"
> "988679;L4;Saturday;21;2;2100;""0;78464""... | 2019/04/11 | [
"https://Stackoverflow.com/questions/55633162",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11345901/"
] | The simplest way is to create a file in the directory structure and use mkelem -mkpath...
I created a "temp1" directory, and a "temp2" directory, and a "temp.txt" file in one of my sandbox vobs, then added the file to source control with -mkpath from the parent of the "temp1" view private directory.
```
PS M:\tempvie... | `cleartool mkelem -mkpath` is a good option when adding *one* file.
But if you have *multiple* files to add, in a tree structure which does not exist yet, don't forget about [`clearfsimport`](https://www.ibm.com/support/knowledgecenter/en/SSSH27_9.0.1/com.ibm.rational.clearcase.cc_ref.doc/topics/clearfsimport.htm): it... |
6,873,184 | ```
static final ArrayList<HashMap<String,String>> arraylistobject = new ArrayList<HashMap<String,String>>();
private void populateList() {
HashMap<String,String> temp = new HashMap<String,String>();
temp.put("pen","MONT Blanc");
temp.put("price", "200 rs");
arraylistobject.add(temp)... | 2011/07/29 | [
"https://Stackoverflow.com/questions/6873184",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/869373/"
] | You can use a loop to create the HashMaps and add them to your List, but you still have to do something about those hard-coded String literals.
```
for(int i = 0; i < 150; i++) {
HashMap<String,String> temp = new HashMap<String,String>();
temp.put("pen", "MONT Blanc");
temp.put("price", "200 rs");
arra... | A `List` is meant to grow, not have a pre-initialised size. So if you want 150 as the length, you should add 150 elements to the list. Otherwise, stick to arrays. |
6,873,184 | ```
static final ArrayList<HashMap<String,String>> arraylistobject = new ArrayList<HashMap<String,String>>();
private void populateList() {
HashMap<String,String> temp = new HashMap<String,String>();
temp.put("pen","MONT Blanc");
temp.put("price", "200 rs");
arraylistobject.add(temp)... | 2011/07/29 | [
"https://Stackoverflow.com/questions/6873184",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/869373/"
] | You can use a loop to create the HashMaps and add them to your List, but you still have to do something about those hard-coded String literals.
```
for(int i = 0; i < 150; i++) {
HashMap<String,String> temp = new HashMap<String,String>();
temp.put("pen", "MONT Blanc");
temp.put("price", "200 rs");
arra... | Pretty sure this is what you're looking for:
```
HashMap temp5 = new HashMap();
arraylistobject.add(temp5);
HashMap temp6 = new HashMap();
arraylistobject.add(temp6);
HashMap temp7 = new HashMap();
arraylistobject.add(temp7);
HashMap temp8 = new HashMap();
arraylistobject.add(temp8);
HashMap temp9 = new HashMap();
arr... |
17,282,507 | How can I change name of uploaded file in Laravel 4.
So far I have been doing it like this:
```
$file = Input::file('file');
$destinationPath = 'public/downloads/';
if (!file_exists($destinationPath)) {
mkdir("./".$destinationPath, 0777, true);
}
$filename = $file->getClientOriginalName();
```
But if I have 2 f... | 2013/06/24 | [
"https://Stackoverflow.com/questions/17282507",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1291189/"
] | The first step is to check if the file exists. If it doesn't, extract the filename and extension with [`pathinfo()`](http://php.net/pathinfo) and then rename it with the following code:
```
$img_name = strtolower(pathinfo($image_name, PATHINFO_FILENAME));
$img_ext = strtolower(pathinfo($image_name, PATHINFO_EXTENSION... | I know this question is closed, but this is a way to check if a filename is already taken, so the original file is not overwriten:
(... in the controller: ... )
```
$path = public_path().'\\uploads\\';
$extension = pathinfo($fileName, PATHINFO_EXTENSION);
$original_filename = pathinfo($fileName, PATHINFO_FILENAME);
$... |
61,329,435 | I need to reverse taking element from array. I have to start from the last one. I can't find any different solution to use in Cypress than jQuery 'reverse' but I have problem to use it.
Don't work in both way:
```
cy.get('.btn-remove.action.delete').reverse().each(($el, index, $list) => {
... | 2020/04/20 | [
"https://Stackoverflow.com/questions/61329435",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13364935/"
] | What about trying with for loop and iterating from the end, using [eq()](https://docs.cypress.io/api/commands/eq.html):
```
cy.get('.btn-remove.action.delete').its('length').then((numberOfItems) => {
for (var i = numberOfItems-1; i>=0; i--) {
cy.get('.btn-remove.action.delete').eq(i).click({force:true})
}
})
... | the eq solution implemented with .each()
```
cy.get('[data-cy="sections"] > optgroup > option').each(
(_$option, index, $list) => {
const firstIndex = 0;
const lastIndex = $list.length - 1;
const descendingIndex = lastIndex - index;
cy.wrap($list).eq(descendingIndex).click({forc... |
61,329,435 | I need to reverse taking element from array. I have to start from the last one. I can't find any different solution to use in Cypress than jQuery 'reverse' but I have problem to use it.
Don't work in both way:
```
cy.get('.btn-remove.action.delete').reverse().each(($el, index, $list) => {
... | 2020/04/20 | [
"https://Stackoverflow.com/questions/61329435",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13364935/"
] | What about trying with for loop and iterating from the end, using [eq()](https://docs.cypress.io/api/commands/eq.html):
```
cy.get('.btn-remove.action.delete').its('length').then((numberOfItems) => {
for (var i = numberOfItems-1; i>=0; i--) {
cy.get('.btn-remove.action.delete').eq(i).click({force:true})
}
})
... | You can apply `reverse()` like this
```js
cy.get('[data-cy="sections"] > optgroup > option')
.then($options => $options.get().reverse())
.each($option => { // reverse order
...
})
```
Note the reverse method is `Array.reverse()` so you need to precede it with jQuery `.get... |
61,329,435 | I need to reverse taking element from array. I have to start from the last one. I can't find any different solution to use in Cypress than jQuery 'reverse' but I have problem to use it.
Don't work in both way:
```
cy.get('.btn-remove.action.delete').reverse().each(($el, index, $list) => {
... | 2020/04/20 | [
"https://Stackoverflow.com/questions/61329435",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13364935/"
] | You can apply `reverse()` like this
```js
cy.get('[data-cy="sections"] > optgroup > option')
.then($options => $options.get().reverse())
.each($option => { // reverse order
...
})
```
Note the reverse method is `Array.reverse()` so you need to precede it with jQuery `.get... | the eq solution implemented with .each()
```
cy.get('[data-cy="sections"] > optgroup > option').each(
(_$option, index, $list) => {
const firstIndex = 0;
const lastIndex = $list.length - 1;
const descendingIndex = lastIndex - index;
cy.wrap($list).eq(descendingIndex).click({forc... |
68,839,163 | I have a base class and a class template, and I want to be able to instantiate it as follows:
```
class Base
{
};
template<int i>
class Foo
{
};
namespace SomeEnum
{
enum
{
First,
Second,
Third,
...
Last
};
}
void bar()
{
std::unique_ptr<Base> ptr{ nullptr };
int fooType = rand() % SomeE... | 2021/08/18 | [
"https://Stackoverflow.com/questions/68839163",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13699024/"
] | Some metaprogramming utility stuff:
```
template<class T>
struct tag_t {using type=T;};
template<class T>
constexpr tag_t<T> tag{};
template<auto I>
using constant_t = std::integral_constant<std::decay_t<decltype(I)>, I>;
template<auto I>
constexpr constant_t<I> constant{};
template<class T, T...ts>
struct sequence{}... | There is possibility to make it feasible. That is to use `tuple` which stores `std::make_unique` functions corresponding to enum size.
A helper method to generate the `tuple` using `index_sequence`
```
template<std::size_t... I>
auto generate(std::index_sequence<I...>)
{
return std::make_tuple(std::make_unique<Fo... |
68,839,163 | I have a base class and a class template, and I want to be able to instantiate it as follows:
```
class Base
{
};
template<int i>
class Foo
{
};
namespace SomeEnum
{
enum
{
First,
Second,
Third,
...
Last
};
}
void bar()
{
std::unique_ptr<Base> ptr{ nullptr };
int fooType = rand() % SomeE... | 2021/08/18 | [
"https://Stackoverflow.com/questions/68839163",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13699024/"
] | A simple solution would be this:
```
namespace detail {
template<size_t I>
std::unique_ptr<Base> makeForIndex() {
return std::make_unique<Foo<I>>();
}
template<size_t... Is>
auto makeFoo(size_t nIdx, std::index_sequence<Is...>) {
using FuncType = std::unique_ptr<Base>(*)();
... | There is possibility to make it feasible. That is to use `tuple` which stores `std::make_unique` functions corresponding to enum size.
A helper method to generate the `tuple` using `index_sequence`
```
template<std::size_t... I>
auto generate(std::index_sequence<I...>)
{
return std::make_tuple(std::make_unique<Fo... |
68,839,163 | I have a base class and a class template, and I want to be able to instantiate it as follows:
```
class Base
{
};
template<int i>
class Foo
{
};
namespace SomeEnum
{
enum
{
First,
Second,
Third,
...
Last
};
}
void bar()
{
std::unique_ptr<Base> ptr{ nullptr };
int fooType = rand() % SomeE... | 2021/08/18 | [
"https://Stackoverflow.com/questions/68839163",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13699024/"
] | A simple solution would be this:
```
namespace detail {
template<size_t I>
std::unique_ptr<Base> makeForIndex() {
return std::make_unique<Foo<I>>();
}
template<size_t... Is>
auto makeFoo(size_t nIdx, std::index_sequence<Is...>) {
using FuncType = std::unique_ptr<Base>(*)();
... | Some metaprogramming utility stuff:
```
template<class T>
struct tag_t {using type=T;};
template<class T>
constexpr tag_t<T> tag{};
template<auto I>
using constant_t = std::integral_constant<std::decay_t<decltype(I)>, I>;
template<auto I>
constexpr constant_t<I> constant{};
template<class T, T...ts>
struct sequence{}... |
131,299 | If I were to publicly display the 6 digit code from my google authenticator, would my account security be diminished beyond it's valid life time?
What if it were the code and the time it was generated?
What if it were N sequential codes?
I'd like to know why or why not for each case. | 2016/07/28 | [
"https://security.stackexchange.com/questions/131299",
"https://security.stackexchange.com",
"https://security.stackexchange.com/users/118844/"
] | No. Thats the whole point of TOTP/HOTP. That it should be infeasible, given any sequence of valid codes, to generate future codes or recreate the seed.
The reason is that the TOTP/HOTP algoritm, use HMAC-SHA1 as hash, given the "challenge" (either current UNIX time or a counter of usages) and the secret "seed" as key.... | The first OTP definition in RFC 2289 based on S/Key had even this design requirement.
It was not ment to implement two factor authentication but to merely protect the password or passphrase. It was simply used to avoid the password crossing the network - obviously it was assumed that the transmission could be evesdrop... |
131,299 | If I were to publicly display the 6 digit code from my google authenticator, would my account security be diminished beyond it's valid life time?
What if it were the code and the time it was generated?
What if it were N sequential codes?
I'd like to know why or why not for each case. | 2016/07/28 | [
"https://security.stackexchange.com/questions/131299",
"https://security.stackexchange.com",
"https://security.stackexchange.com/users/118844/"
] | [Google Authenticator](https://en.wikipedia.org/wiki/Google_Authenticator) uses the [Time-based One-time Password Algorithm](https://en.wikipedia.org/wiki/Time-based_One-time_Password_Algorithm) ("TOTP"), which works by computing [HMAC](https://en.wikipedia.org/wiki/Hash-based_message_authentication_code) with a secret... | The first OTP definition in RFC 2289 based on S/Key had even this design requirement.
It was not ment to implement two factor authentication but to merely protect the password or passphrase. It was simply used to avoid the password crossing the network - obviously it was assumed that the transmission could be evesdrop... |
144,926 | I have upgraded my ubuntu with 11.10 i368,after completion of installation i have connected my EVDO card and configured all mobile broadband setting. At first it got connected and was able to surf properly....but after completion of installation and updating all packages (its was like 414 packages to download) i was no... | 2012/06/01 | [
"https://askubuntu.com/questions/144926",
"https://askubuntu.com",
"https://askubuntu.com/users/67627/"
] | Has the resolvconf got updated? Go through the following link and give it a shot. Worked for me for my BSNL EVDO (Prithvi dongle)
>
> You might have issues with resolvconf stomping on your DNS
> configuration in /etc/resolv.conf - but if you're getting an IP
> address from the remote peer then the modem is working,... | Look for comparable reports in Launchpad: <https://bugs.launchpad.net/ubuntu/+source/network-manager/?field.searchtext=evdo&search=Search&field.status%3Alist=NEW&field.status%3Alist=OPINION&field.status%3Alist=INVALID&field.status%3Alist=WONTFIX&field.status%3Alist=EXPIRED&field.status%3Alist=CONFIRMED&field.status%3Al... |
22,563,682 | I'm trying to enable/disable my network ethernet interface using C++ and WIN32\_NetworkAdapter class of WMI. But unfortunately i did not found how the methods of the class may be invoked.
thanks in advance... | 2014/03/21 | [
"https://Stackoverflow.com/questions/22563682",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3445539/"
] | To execute the WMI methods you must use the [`ExecMethod`](http://msdn.microsoft.com/en-us/library/aa392103%28v=vs.85%29.aspx) method of the [`IWbemServices`](http://msdn.microsoft.com/en-us/library/aa392093%28v=vs.85%29.aspx) class. On this case you must pass the Index of the Network adapter to Enable/Disble methods.
... | The code RRUZ posted won't work as is because `WIN32_NetworkAdapter`'s `Disable()` (and `Enable()`) methods for have no input parameters. In the call to `ExecMethod()`, you need to pass in a null in place of `pClassInstance` (obviously, don't call `SpawnInstance()` on the null `pInParamsDefinition`). Note, however, tha... |
54,955,165 | I'm trying to create an SVG with base and height 100px. But not sure if it is correct. I'm not getting the exact output as I need. Below is the code sample
```html
<svg id="triangle" viewBox="0 0 100 100">
<polygon points="50 15, 100 100, 0 100"/>
</svg>
```
Please correct me where I'm doing wrong. I... | 2019/03/02 | [
"https://Stackoverflow.com/questions/54955165",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7691736/"
] | Wrap in a container and set the size as a percentage. Then it will be possible to adjust the size and the shape will be adaptive.
```css
.container {
width:30%;
height:30%;
}
```
```html
<div class="container">
<svg id="triangle" viewBox="0 0 100 100">
<polygon points="50 15, 100 100, 0 100"... | ```html
<svg id="triangle" viewBox="0 0 100 100">
<polygon points="0 0, 100 0 50 100" fill="blue" stroke="red"/>
</svg>
``` |
18,882,874 | I was using Google Analytics API v2 and it was working great. When a user open my app, it will show up on the real time analysis and if the user quits the app, that user was not showing up anymore on that report. That took it around 20 or 30 seconds.
But using the new session management suggested by Google on the Anal... | 2013/09/18 | [
"https://Stackoverflow.com/questions/18882874",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1136433/"
] | Not sure if it is the best solution or even if you can control this, but it may work if you do double-encoding: for example, instead of "%23", make it use "%2523".
The unwanted decoding should then convert "%2523" to "%23", leaving the desired result in the redirect URL that the browser shows. | You need to URI-escape the "#" character. |
27,972 | This is in part a UX and a legal (UK) question.
Is there a best practice in terms of opt in statements for data protection for registration. I have had our CRM team suggest that we should include an automatic opt in as part of the T's & C's so a user has to receive communications (email / phone / post / text) from us... | 2012/10/18 | [
"https://ux.stackexchange.com/questions/27972",
"https://ux.stackexchange.com",
"https://ux.stackexchange.com/users/17299/"
] | This is a really interesting question.
My understanding of the legal situation is a user doesn't have to specifically opt-in to your marketing, providing you give them a way to opt-out in every email you send them. This seems to be referred to as 'soft opt-in', or 'implied consent' - they give you their details as par... | This is the official line ( 'The Information Commissioner’s Office is *the UK’s independent authority set up to uphold information rights in the public interest, promoting openness by public bodies and data privacy for individuals*'
<http://www.ico.gov.uk/global/faqs/privacy_and_electronic_communications_regulations_f... |
1,017,652 | One of the things I like most about Cocoa is the readability factor.
One of the things that annoys me the most is the convention of convenience constructors to force repetition.
Here's an example:
```
[NSString stringWithString:s]
[NSNumber numberWithDouble:d]
[NSValue valueWithInt:i]
[NSDictionary dictionaryWit... | 2009/06/19 | [
"https://Stackoverflow.com/questions/1017652",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/78568/"
] | Ultimately, I believe the Objective-C philosophy, as embodied by the Cocoa frameworks (and the NextStep frameworks before it) is that being explicit, and easy to maintain takes precedence over terseness of code. The main evidence for this philosophy is that Objective-C selectors have named arguments (e.g. `-[NSObject p... | If you don't like it, why not write up a bunch of #define statements that you include in all your projects? |
1,017,652 | One of the things I like most about Cocoa is the readability factor.
One of the things that annoys me the most is the convention of convenience constructors to force repetition.
Here's an example:
```
[NSString stringWithString:s]
[NSNumber numberWithDouble:d]
[NSValue valueWithInt:i]
[NSDictionary dictionaryWit... | 2009/06/19 | [
"https://Stackoverflow.com/questions/1017652",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/78568/"
] | Because it's consistent.
There are methods like:
```
[NSDictionary dictionary]
[NSArray array]
```
Getting rid of everything up to `with` is obviously not an option here. Keeping these, but shortening others would introduce inconsistency in naming of convenience methods.
And convenience methods are consistent with... | They also use that one extra word to tell if the object is autoreleased or not. initWithFormat is for non-autoreleased, and when its stringWithFormat it is autoreleased... I guess they just went with that way of telling the reader what kind of memory management the object uses... |
1,017,652 | One of the things I like most about Cocoa is the readability factor.
One of the things that annoys me the most is the convention of convenience constructors to force repetition.
Here's an example:
```
[NSString stringWithString:s]
[NSNumber numberWithDouble:d]
[NSValue valueWithInt:i]
[NSDictionary dictionaryWit... | 2009/06/19 | [
"https://Stackoverflow.com/questions/1017652",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/78568/"
] | There is actually a technical reason for it to be that way. If every `shoelaceWithString:`-type method were changed to just `withString:`, we would end up with a fearsomely huge number of classes with identically named methods and different signatures. This plays mean tricks on the compiler's static type checking and c... | I think it's just part of the general "say exactly what you mean" wordiness philosophy of the cocoa framework. A few choice selections:
```
[UIView setAnimationBeginsFromCurrentState]
[UITableView scrollToNearestSelectedRowAtScrollPosition]
[UIApplication didRegisterForRemoteNotificationsWithDeviceToken]
```
etc.
E... |
1,017,652 | One of the things I like most about Cocoa is the readability factor.
One of the things that annoys me the most is the convention of convenience constructors to force repetition.
Here's an example:
```
[NSString stringWithString:s]
[NSNumber numberWithDouble:d]
[NSValue valueWithInt:i]
[NSDictionary dictionaryWit... | 2009/06/19 | [
"https://Stackoverflow.com/questions/1017652",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/78568/"
] | They also use that one extra word to tell if the object is autoreleased or not. initWithFormat is for non-autoreleased, and when its stringWithFormat it is autoreleased... I guess they just went with that way of telling the reader what kind of memory management the object uses... | If you don't like it, why not write up a bunch of #define statements that you include in all your projects? |
1,017,652 | One of the things I like most about Cocoa is the readability factor.
One of the things that annoys me the most is the convention of convenience constructors to force repetition.
Here's an example:
```
[NSString stringWithString:s]
[NSNumber numberWithDouble:d]
[NSValue valueWithInt:i]
[NSDictionary dictionaryWit... | 2009/06/19 | [
"https://Stackoverflow.com/questions/1017652",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/78568/"
] | Because it's consistent.
There are methods like:
```
[NSDictionary dictionary]
[NSArray array]
```
Getting rid of everything up to `with` is obviously not an option here. Keeping these, but shortening others would introduce inconsistency in naming of convenience methods.
And convenience methods are consistent with... | I think it's just part of the general "say exactly what you mean" wordiness philosophy of the cocoa framework. A few choice selections:
```
[UIView setAnimationBeginsFromCurrentState]
[UITableView scrollToNearestSelectedRowAtScrollPosition]
[UIApplication didRegisterForRemoteNotificationsWithDeviceToken]
```
etc.
E... |
1,017,652 | One of the things I like most about Cocoa is the readability factor.
One of the things that annoys me the most is the convention of convenience constructors to force repetition.
Here's an example:
```
[NSString stringWithString:s]
[NSNumber numberWithDouble:d]
[NSValue valueWithInt:i]
[NSDictionary dictionaryWit... | 2009/06/19 | [
"https://Stackoverflow.com/questions/1017652",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/78568/"
] | There is actually a technical reason for it to be that way. If every `shoelaceWithString:`-type method were changed to just `withString:`, we would end up with a fearsomely huge number of classes with identically named methods and different signatures. This plays mean tricks on the compiler's static type checking and c... | Ultimately, I believe the Objective-C philosophy, as embodied by the Cocoa frameworks (and the NextStep frameworks before it) is that being explicit, and easy to maintain takes precedence over terseness of code. The main evidence for this philosophy is that Objective-C selectors have named arguments (e.g. `-[NSObject p... |
1,017,652 | One of the things I like most about Cocoa is the readability factor.
One of the things that annoys me the most is the convention of convenience constructors to force repetition.
Here's an example:
```
[NSString stringWithString:s]
[NSNumber numberWithDouble:d]
[NSValue valueWithInt:i]
[NSDictionary dictionaryWit... | 2009/06/19 | [
"https://Stackoverflow.com/questions/1017652",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/78568/"
] | There is actually a technical reason for it to be that way. If every `shoelaceWithString:`-type method were changed to just `withString:`, we would end up with a fearsomely huge number of classes with identically named methods and different signatures. This plays mean tricks on the compiler's static type checking and c... | Because it's consistent.
There are methods like:
```
[NSDictionary dictionary]
[NSArray array]
```
Getting rid of everything up to `with` is obviously not an option here. Keeping these, but shortening others would introduce inconsistency in naming of convenience methods.
And convenience methods are consistent with... |
1,017,652 | One of the things I like most about Cocoa is the readability factor.
One of the things that annoys me the most is the convention of convenience constructors to force repetition.
Here's an example:
```
[NSString stringWithString:s]
[NSNumber numberWithDouble:d]
[NSValue valueWithInt:i]
[NSDictionary dictionaryWit... | 2009/06/19 | [
"https://Stackoverflow.com/questions/1017652",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/78568/"
] | There is actually a technical reason for it to be that way. If every `shoelaceWithString:`-type method were changed to just `withString:`, we would end up with a fearsomely huge number of classes with identically named methods and different signatures. This plays mean tricks on the compiler's static type checking and c... | They also use that one extra word to tell if the object is autoreleased or not. initWithFormat is for non-autoreleased, and when its stringWithFormat it is autoreleased... I guess they just went with that way of telling the reader what kind of memory management the object uses... |
1,017,652 | One of the things I like most about Cocoa is the readability factor.
One of the things that annoys me the most is the convention of convenience constructors to force repetition.
Here's an example:
```
[NSString stringWithString:s]
[NSNumber numberWithDouble:d]
[NSValue valueWithInt:i]
[NSDictionary dictionaryWit... | 2009/06/19 | [
"https://Stackoverflow.com/questions/1017652",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/78568/"
] | I think it's just part of the general "say exactly what you mean" wordiness philosophy of the cocoa framework. A few choice selections:
```
[UIView setAnimationBeginsFromCurrentState]
[UITableView scrollToNearestSelectedRowAtScrollPosition]
[UIApplication didRegisterForRemoteNotificationsWithDeviceToken]
```
etc.
E... | If you don't like it, why not write up a bunch of #define statements that you include in all your projects? |
1,017,652 | One of the things I like most about Cocoa is the readability factor.
One of the things that annoys me the most is the convention of convenience constructors to force repetition.
Here's an example:
```
[NSString stringWithString:s]
[NSNumber numberWithDouble:d]
[NSValue valueWithInt:i]
[NSDictionary dictionaryWit... | 2009/06/19 | [
"https://Stackoverflow.com/questions/1017652",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/78568/"
] | There is actually a technical reason for it to be that way. If every `shoelaceWithString:`-type method were changed to just `withString:`, we would end up with a fearsomely huge number of classes with identically named methods and different signatures. This plays mean tricks on the compiler's static type checking and c... | If you don't like it, why not write up a bunch of #define statements that you include in all your projects? |
58,878,486 | I have a div that has a background-image with the background-attachment as fixed. I change from fixed to scroll when the div with the background images is halfway using jQuery. I seem to have got it working however when I scroll down, there seems to be jump when the property is changed. How can I avoid this jump?
```j... | 2019/11/15 | [
"https://Stackoverflow.com/questions/58878486",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4060521/"
] | Use `SPLIT()` with corresponding delimiters in an array and apply a `TRANSPOSE()` so instead of consequent cells horizontally, it will return emails in rows.
```
=TRANSPOSE(SPLIT(A1, {"|" ; char(10) ; ";" ; ","}))
```
Add any email-separating character you want inside the curly braces above. `char(10)` is the *line ... | In the code you provided you are doing this `var cell = e.toString().split("\n");` if you want to split by "\n" and ";" you can chain split and joins.
This is some code that illustrates what I mean:
```
var x = "a\nb\nc";
var y = "a;b;c";
var z = x+";"+y;
console.log(x,x.split('\n').join(';').split(';'));
console.lo... |
2,050,093 | Let's suppose that $a\_n$ satisfy $|a\_{n+1}-a\_n|<2^{-n}$ for all $n$ . How can I prove that $a\_n$ is a cauchy sequence? | 2016/12/08 | [
"https://math.stackexchange.com/questions/2050093",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/384885/"
] | The cube graph is an example of a [bipartite graph](https://en.wikipedia.org/wiki/Bipartite_graph), where the vertices can be divided into two group such that the edges always connect a vertex from one group to a vertex in the other group, never to another vertex in the same group.
The group can be seen in your diagr... | The 8 vertices of the graph can be divided into 2 disjoint sets $V\_1=\{1,3,5,7\}$ and $V\_2=\{2,4,6,8\}$. Each edge of the graph connects a vertex of $V\_1$ to a vertex of $V\_2$, therefore, moving from a point of one of the sets to another point of the same set requires an even number of steps, and moving from one se... |
2,050,093 | Let's suppose that $a\_n$ satisfy $|a\_{n+1}-a\_n|<2^{-n}$ for all $n$ . How can I prove that $a\_n$ is a cauchy sequence? | 2016/12/08 | [
"https://math.stackexchange.com/questions/2050093",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/384885/"
] | The 8 vertices of the graph can be divided into 2 disjoint sets $V\_1=\{1,3,5,7\}$ and $V\_2=\{2,4,6,8\}$. Each edge of the graph connects a vertex of $V\_1$ to a vertex of $V\_2$, therefore, moving from a point of one of the sets to another point of the same set requires an even number of steps, and moving from one se... | As you can see you have bipartite graph here and one of the things of bipartite graph is that for any u,v vertices all the paths from u to v has to odd or even (can't be 1 path odd while there is other even) so if we have bipartite graph and we show 1 odd path then all the paths are odd. |
2,050,093 | Let's suppose that $a\_n$ satisfy $|a\_{n+1}-a\_n|<2^{-n}$ for all $n$ . How can I prove that $a\_n$ is a cauchy sequence? | 2016/12/08 | [
"https://math.stackexchange.com/questions/2050093",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/384885/"
] | Indeed the graph is *bipartite* and 1 and 8 are on opposite *sides* (all edges go from one side to the other). Going from one to the other can only be done in an odd number of steps.
[](https://i.stack.imgur.com/GTbTQ.png)
The graph can also be shown ... | The 8 vertices of the graph can be divided into 2 disjoint sets $V\_1=\{1,3,5,7\}$ and $V\_2=\{2,4,6,8\}$. Each edge of the graph connects a vertex of $V\_1$ to a vertex of $V\_2$, therefore, moving from a point of one of the sets to another point of the same set requires an even number of steps, and moving from one se... |
2,050,093 | Let's suppose that $a\_n$ satisfy $|a\_{n+1}-a\_n|<2^{-n}$ for all $n$ . How can I prove that $a\_n$ is a cauchy sequence? | 2016/12/08 | [
"https://math.stackexchange.com/questions/2050093",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/384885/"
] | The cube graph is an example of a [bipartite graph](https://en.wikipedia.org/wiki/Bipartite_graph), where the vertices can be divided into two group such that the edges always connect a vertex from one group to a vertex in the other group, never to another vertex in the same group.
The group can be seen in your diagr... | Notice that every dot is connected to 3 other dots and these three dots are of different parity ( if first dot is even then other three will be odd and if first dot is odd then the other three will be even). So if you start with even you will go to odd in next step and similarly when you start from odd you will go to e... |
2,050,093 | Let's suppose that $a\_n$ satisfy $|a\_{n+1}-a\_n|<2^{-n}$ for all $n$ . How can I prove that $a\_n$ is a cauchy sequence? | 2016/12/08 | [
"https://math.stackexchange.com/questions/2050093",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/384885/"
] | Notice that every dot is connected to 3 other dots and these three dots are of different parity ( if first dot is even then other three will be odd and if first dot is odd then the other three will be even). So if you start with even you will go to odd in next step and similarly when you start from odd you will go to e... | As you can see you have bipartite graph here and one of the things of bipartite graph is that for any u,v vertices all the paths from u to v has to odd or even (can't be 1 path odd while there is other even) so if we have bipartite graph and we show 1 odd path then all the paths are odd. |
2,050,093 | Let's suppose that $a\_n$ satisfy $|a\_{n+1}-a\_n|<2^{-n}$ for all $n$ . How can I prove that $a\_n$ is a cauchy sequence? | 2016/12/08 | [
"https://math.stackexchange.com/questions/2050093",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/384885/"
] | Indeed the graph is *bipartite* and 1 and 8 are on opposite *sides* (all edges go from one side to the other). Going from one to the other can only be done in an odd number of steps.
[](https://i.stack.imgur.com/GTbTQ.png)
The graph can also be shown ... | Notice that every dot is connected to 3 other dots and these three dots are of different parity ( if first dot is even then other three will be odd and if first dot is odd then the other three will be even). So if you start with even you will go to odd in next step and similarly when you start from odd you will go to e... |
2,050,093 | Let's suppose that $a\_n$ satisfy $|a\_{n+1}-a\_n|<2^{-n}$ for all $n$ . How can I prove that $a\_n$ is a cauchy sequence? | 2016/12/08 | [
"https://math.stackexchange.com/questions/2050093",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/384885/"
] | The cube graph is an example of a [bipartite graph](https://en.wikipedia.org/wiki/Bipartite_graph), where the vertices can be divided into two group such that the edges always connect a vertex from one group to a vertex in the other group, never to another vertex in the same group.
The group can be seen in your diagr... | As you can see you have bipartite graph here and one of the things of bipartite graph is that for any u,v vertices all the paths from u to v has to odd or even (can't be 1 path odd while there is other even) so if we have bipartite graph and we show 1 odd path then all the paths are odd. |
2,050,093 | Let's suppose that $a\_n$ satisfy $|a\_{n+1}-a\_n|<2^{-n}$ for all $n$ . How can I prove that $a\_n$ is a cauchy sequence? | 2016/12/08 | [
"https://math.stackexchange.com/questions/2050093",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/384885/"
] | Indeed the graph is *bipartite* and 1 and 8 are on opposite *sides* (all edges go from one side to the other). Going from one to the other can only be done in an odd number of steps.
[](https://i.stack.imgur.com/GTbTQ.png)
The graph can also be shown ... | The cube graph is an example of a [bipartite graph](https://en.wikipedia.org/wiki/Bipartite_graph), where the vertices can be divided into two group such that the edges always connect a vertex from one group to a vertex in the other group, never to another vertex in the same group.
The group can be seen in your diagr... |
2,050,093 | Let's suppose that $a\_n$ satisfy $|a\_{n+1}-a\_n|<2^{-n}$ for all $n$ . How can I prove that $a\_n$ is a cauchy sequence? | 2016/12/08 | [
"https://math.stackexchange.com/questions/2050093",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/384885/"
] | Indeed the graph is *bipartite* and 1 and 8 are on opposite *sides* (all edges go from one side to the other). Going from one to the other can only be done in an odd number of steps.
[](https://i.stack.imgur.com/GTbTQ.png)
The graph can also be shown ... | As you can see you have bipartite graph here and one of the things of bipartite graph is that for any u,v vertices all the paths from u to v has to odd or even (can't be 1 path odd while there is other even) so if we have bipartite graph and we show 1 odd path then all the paths are odd. |
893 | I'm hosting a Minecraft server with 14 friends of mine playing on it. We peacefully build houses and structures, hold events, go kill the enderdragon, stuff like that. All is peaceful. Until one day, another friend of mine (let's call him "A") joined the server. Then our houses got griefed and burned. Our stuff is all ... | 2014/11/25 | [
"https://moderators.stackexchange.com/questions/893",
"https://moderators.stackexchange.com",
"https://moderators.stackexchange.com/users/708/"
] | It's always a bit tricky when you have a situation where real life and online life cross. Fundamentally, you have to decide which matters more, the real life situation or preventing the problems online.
If it is a friendship that you both value, then it may be worth having a chat with him offline about the behavior. M... | Create a second server where you can play and have fun and leave him a copy where he can destroy if that is his prefered way of playing. |
893 | I'm hosting a Minecraft server with 14 friends of mine playing on it. We peacefully build houses and structures, hold events, go kill the enderdragon, stuff like that. All is peaceful. Until one day, another friend of mine (let's call him "A") joined the server. Then our houses got griefed and burned. Our stuff is all ... | 2014/11/25 | [
"https://moderators.stackexchange.com/questions/893",
"https://moderators.stackexchange.com",
"https://moderators.stackexchange.com/users/708/"
] | It's always a bit tricky when you have a situation where real life and online life cross. Fundamentally, you have to decide which matters more, the real life situation or preventing the problems online.
If it is a friendship that you both value, then it may be worth having a chat with him offline about the behavior. M... | I think it is rather simple. You like this game, you enjoy playing it with other people.
Tell him that, if he values you as a friend, he will stop his behavior, if not just kick him.
People sometimes misses the real meaning of what is going on because they think is only an "online" event. But what if you were building... |
893 | I'm hosting a Minecraft server with 14 friends of mine playing on it. We peacefully build houses and structures, hold events, go kill the enderdragon, stuff like that. All is peaceful. Until one day, another friend of mine (let's call him "A") joined the server. Then our houses got griefed and burned. Our stuff is all ... | 2014/11/25 | [
"https://moderators.stackexchange.com/questions/893",
"https://moderators.stackexchange.com",
"https://moderators.stackexchange.com/users/708/"
] | It's always a bit tricky when you have a situation where real life and online life cross. Fundamentally, you have to decide which matters more, the real life situation or preventing the problems online.
If it is a friendship that you both value, then it may be worth having a chat with him offline about the behavior. M... | In an ideal case, he should have to be obey all the same rules as any other member of the server, even if you did not know him in real life.
There are two ways to achieve this, the first is by excluding people who break the rules, the second is by making the rules impossible to break.
As an aside, you say, *"He would... |
893 | I'm hosting a Minecraft server with 14 friends of mine playing on it. We peacefully build houses and structures, hold events, go kill the enderdragon, stuff like that. All is peaceful. Until one day, another friend of mine (let's call him "A") joined the server. Then our houses got griefed and burned. Our stuff is all ... | 2014/11/25 | [
"https://moderators.stackexchange.com/questions/893",
"https://moderators.stackexchange.com",
"https://moderators.stackexchange.com/users/708/"
] | I think it is rather simple. You like this game, you enjoy playing it with other people.
Tell him that, if he values you as a friend, he will stop his behavior, if not just kick him.
People sometimes misses the real meaning of what is going on because they think is only an "online" event. But what if you were building... | Create a second server where you can play and have fun and leave him a copy where he can destroy if that is his prefered way of playing. |
893 | I'm hosting a Minecraft server with 14 friends of mine playing on it. We peacefully build houses and structures, hold events, go kill the enderdragon, stuff like that. All is peaceful. Until one day, another friend of mine (let's call him "A") joined the server. Then our houses got griefed and burned. Our stuff is all ... | 2014/11/25 | [
"https://moderators.stackexchange.com/questions/893",
"https://moderators.stackexchange.com",
"https://moderators.stackexchange.com/users/708/"
] | In an ideal case, he should have to be obey all the same rules as any other member of the server, even if you did not know him in real life.
There are two ways to achieve this, the first is by excluding people who break the rules, the second is by making the rules impossible to break.
As an aside, you say, *"He would... | Create a second server where you can play and have fun and leave him a copy where he can destroy if that is his prefered way of playing. |
68,967,488 | Check if there are any orders before a given date (`Date` column). The procedure has a passing parameter "date" as date and another passing parameter "count". This parameter returns the number of orders before this date.
The simple way of doing it would be:
```
SELECT COUNT([Sales].[dbo].[Order].[Date])
FROM [Sales].... | 2021/08/28 | [
"https://Stackoverflow.com/questions/68967488",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16769977/"
] | You are not passing the expected parameters. In your mock-up I would expect to see
```
DECLARE @count int=0, @Date date='20190311'
EXEC OrderBeforeDate @Date, @count OUT
PRINT 'Number of Orders after 2019-03-11: ' + CAST(@count AS VARCHAR(10))
```
I would also point out (as you presumably already know) this cursor... | Probably you miss giving the value for date parameter when call OrderBeforeDate procedure. You only pass in 1 argument and SQL server may regard @count value as the value for date paramter.
```
EXEC OrderBeforeDate @count OUT
``` |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.