qid int64 1 74.7M | question stringlengths 15 58.3k | date stringlengths 10 10 | metadata list | response_j stringlengths 4 30.2k | response_k stringlengths 11 36.5k |
|---|---|---|---|---|---|
35,744 | I'd like an opinion from those on the hiring side. I'm considering writing a description of myself and publishing it on my personal website. Things like what I do, why I do it, how I approach things, what tasks I prefer, my attitude to the process, organization, quality etc. Nothing arrogant, just a detailed introducti... | 2014/11/03 | [
"https://workplace.stackexchange.com/questions/35744",
"https://workplace.stackexchange.com",
"https://workplace.stackexchange.com/users/29231/"
] | Personally I'd put such relevant info in a cover letter.
A website is better for additional stuff such as personal projects which may indeed demonstrate other qualities you possess, but which is entirely optional and that potential employers can skip if they're not interested.
On the other hand, use a cover letter to... | I don't know what your expectations are for a passive job search, so you may want to decide what you want to get out of it. Then you can decide on the content. Like many things on the internet, it takes some work to direct people to any site. If you plan on getting a great job in the near future this way, You'll need m... |
35,744 | I'd like an opinion from those on the hiring side. I'm considering writing a description of myself and publishing it on my personal website. Things like what I do, why I do it, how I approach things, what tasks I prefer, my attitude to the process, organization, quality etc. Nothing arrogant, just a detailed introducti... | 2014/11/03 | [
"https://workplace.stackexchange.com/questions/35744",
"https://workplace.stackexchange.com",
"https://workplace.stackexchange.com/users/29231/"
] | If you're already a blogger and you have a history of relevant, updated content and actual readership, it won't hurt to have an entry about yourself and details about your working style, skills and aspirations.
On the other hand, if the website is just a one-off vanity site, I don't think you'll get much out of that.... | Personally I'd put such relevant info in a cover letter.
A website is better for additional stuff such as personal projects which may indeed demonstrate other qualities you possess, but which is entirely optional and that potential employers can skip if they're not interested.
On the other hand, use a cover letter to... |
35,744 | I'd like an opinion from those on the hiring side. I'm considering writing a description of myself and publishing it on my personal website. Things like what I do, why I do it, how I approach things, what tasks I prefer, my attitude to the process, organization, quality etc. Nothing arrogant, just a detailed introducti... | 2014/11/03 | [
"https://workplace.stackexchange.com/questions/35744",
"https://workplace.stackexchange.com",
"https://workplace.stackexchange.com/users/29231/"
] | If you're already a blogger and you have a history of relevant, updated content and actual readership, it won't hurt to have an entry about yourself and details about your working style, skills and aspirations.
On the other hand, if the website is just a one-off vanity site, I don't think you'll get much out of that.... | I don't know what your expectations are for a passive job search, so you may want to decide what you want to get out of it. Then you can decide on the content. Like many things on the internet, it takes some work to direct people to any site. If you plan on getting a great job in the near future this way, You'll need m... |
44,536,398 | I am using [Reachability](https://developer.apple.com/library/content/samplecode/Reachability/Introduction/Intro.html) demo for getting network stat change notification and by using this code ,I am able to get callback when wifi is on/off, But if I am changing wifi connection from one network to another then I am not a... | 2017/06/14 | [
"https://Stackoverflow.com/questions/44536398",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1191683/"
] | You can place this code in your themes any tpl file; it works!!!
```
{if Configuration::get('BLOCKCONTACT_TELNUMBER') != ''}
<span>{Configuration::get('BLOCKCONTACT_TELNUMBER')}</span>
{/if}
```
Make sure you have added telephone number in admin panel in module named "**Contact block**" | It's a dirty way, but works:
```
{Configuration::get('BLOCKCONTACT_TELNUMBER')}
// This snippet can be used in every .tpl
```
The other way is to override or edit the module, and add in `hookDisplayHeader` method this snippet:
```
$this->context->smarty->assign(array(
'telnumber' => Configuration::get('BLOCKCON... |
44,536,398 | I am using [Reachability](https://developer.apple.com/library/content/samplecode/Reachability/Introduction/Intro.html) demo for getting network stat change notification and by using this code ,I am able to get callback when wifi is on/off, But if I am changing wifi connection from one network to another then I am not a... | 2017/06/14 | [
"https://Stackoverflow.com/questions/44536398",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1191683/"
] | In blockcontact.tpl you have the {$telnumber} because is assigned from the controller of this template, in this case blockcontact.php file.
Line +-185:
```
$smarty->assign(array(
'telnumber' => Configuration::get('BLOCKCONTACT_TELNUMBER'),
...
```
Here you can see the way that is assigned t... | It's a dirty way, but works:
```
{Configuration::get('BLOCKCONTACT_TELNUMBER')}
// This snippet can be used in every .tpl
```
The other way is to override or edit the module, and add in `hookDisplayHeader` method this snippet:
```
$this->context->smarty->assign(array(
'telnumber' => Configuration::get('BLOCKCON... |
44,536,398 | I am using [Reachability](https://developer.apple.com/library/content/samplecode/Reachability/Introduction/Intro.html) demo for getting network stat change notification and by using this code ,I am able to get callback when wifi is on/off, But if I am changing wifi connection from one network to another then I am not a... | 2017/06/14 | [
"https://Stackoverflow.com/questions/44536398",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1191683/"
] | In blockcontact.tpl you have the {$telnumber} because is assigned from the controller of this template, in this case blockcontact.php file.
Line +-185:
```
$smarty->assign(array(
'telnumber' => Configuration::get('BLOCKCONTACT_TELNUMBER'),
...
```
Here you can see the way that is assigned t... | You can place this code in your themes any tpl file; it works!!!
```
{if Configuration::get('BLOCKCONTACT_TELNUMBER') != ''}
<span>{Configuration::get('BLOCKCONTACT_TELNUMBER')}</span>
{/if}
```
Make sure you have added telephone number in admin panel in module named "**Contact block**" |
32,794,859 | I have a list view control in my xaml file. I'm having a textblock and a dropdown field inside the list view. The data is coming from the database. I want the focus to be on the first dropdown. But the focus is not coming there. If I press tab then only the focus is coming. My list view is inside a groupbox. | 2015/09/26 | [
"https://Stackoverflow.com/questions/32794859",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5378713/"
] | Check if you are using a editor there should not be any space between `<?PHP`
which made the header function not work sometimes this space causes the problem. | Try below,
```
<?php
header("Location: site/"); // to redirect to site directory
return;
?>
``` |
32,794,859 | I have a list view control in my xaml file. I'm having a textblock and a dropdown field inside the list view. The data is coming from the database. I want the focus to be on the first dropdown. But the focus is not coming there. If I press tab then only the focus is coming. My list view is inside a groupbox. | 2015/09/26 | [
"https://Stackoverflow.com/questions/32794859",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5378713/"
] | Below one is the way to do this
```
<script>
window.location.href = "<?php echo base_url('paste the location') ?>"
</script>
```
or
```
window.location.href = "<?php echo url ?>"
``` | Try below,
```
<?php
header("Location: site/"); // to redirect to site directory
return;
?>
``` |
116,855 | A website of mine uses a WordPress plugin for CSS minification. The plugin regenerates the CSS file on every update to the style-sheet. When it does, the plugin also changes the version and hence name of the CSS file.
If Google crawler tries to look for older versions of CSS based on the information from previously c... | 2018/08/05 | [
"https://webmasters.stackexchange.com/questions/116855",
"https://webmasters.stackexchange.com",
"https://webmasters.stackexchange.com/users/86499/"
] | I think there may be (or may have been) a few scenarios that can trigger this "redirect notice" from the Google SERPs. Some of these may have been historical "glitches" judging by some of the articles I stumbled across.
I have certainly seen this "redirect notice" several times directly from Google search results in r... | Sometimes when you share a URL from a single result in SERP with someone that didn't perform the search, the redirect notices appears.
This is for preventing click and CTR manipulation by having fake entrances (clicks that don't actually happen and is generated by an expired Google SERP URL. )
Also it might indicate ... |
17,373,910 | I created an aplication, and in my computer, the jar is running without any problems. I tried to run it in another pc, it doesn't do ANYTHING, like, at all. And then, i tried the same jar in another pc (a 3rd pc if you want so see it that way), there, the jar runs without a problem. So i came back to the second one, an... | 2013/06/28 | [
"https://Stackoverflow.com/questions/17373910",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2361305/"
] | Yes. SQL Server's float size is variant but you likely have 8 byte floats in the database. When you use doubles ( 8 bytes ) in the C# code the results are the same, when you use floats ( 4 bytes ) they're different. double values within the range of a float will not be the same as the float values. | >
> Could this be caused by the difference in precision between a float and a double?
>
>
>
Yes. It can also sometimes simply be because *not all values can be represented* in an IEEE floating point; in many scenarios where you expect "exact" sums (money, etc), it is usually better to use `decimal`. However, that ... |
89,793 | I'm currently in the Sketchbook section, where you find the Toy Box. What happens there is that Mary pushes you in, follows you and steals Ib's rose. Then, invariably, this takes place:
[](https://i.stack.imgur.com/Plr7h.png "click to enlarge")
Predictably, the c... | 2012/10/22 | [
"https://gaming.stackexchange.com/questions/89793",
"https://gaming.stackexchange.com",
"https://gaming.stackexchange.com/users/9752/"
] | The game uses an internal variable called GarryDeathCount (presumably short for Garry Death Counter) to determine whether Garry will be slain near the end of the game. Some people prefer to think of it as Mary's Hate or Damage to the Exhibits. If the counter reaches 3, Ib's Rose will not appear in the toy box and Garry... | It is true that doing the above things stop Garry from getting kicked off the deep end, however I think the doll with the key is randomized. I once found it right by the door. Also, though talking to Garry does nothing to change his survival chances, you learn a lot about the background of him (And slightly of of Ib's ... |
89,793 | I'm currently in the Sketchbook section, where you find the Toy Box. What happens there is that Mary pushes you in, follows you and steals Ib's rose. Then, invariably, this takes place:
[](https://i.stack.imgur.com/Plr7h.png "click to enlarge")
Predictably, the c... | 2012/10/22 | [
"https://gaming.stackexchange.com/questions/89793",
"https://gaming.stackexchange.com",
"https://gaming.stackexchange.com/users/9752/"
] | The game uses an internal variable called GarryDeathCount (presumably short for Garry Death Counter) to determine whether Garry will be slain near the end of the game. Some people prefer to think of it as Mary's Hate or Damage to the Exhibits. If the counter reaches 3, Ib's Rose will not appear in the toy box and Garry... | Actually there is a ending where you can get ib all alone even if garry survives it's soo if mary doesn't die (i think) you can go with the fake mother when escaping with garry if you do not escape with him... you will get the ib all alone ending. |
89,793 | I'm currently in the Sketchbook section, where you find the Toy Box. What happens there is that Mary pushes you in, follows you and steals Ib's rose. Then, invariably, this takes place:
[](https://i.stack.imgur.com/Plr7h.png "click to enlarge")
Predictably, the c... | 2012/10/22 | [
"https://gaming.stackexchange.com/questions/89793",
"https://gaming.stackexchange.com",
"https://gaming.stackexchange.com/users/9752/"
] | The game uses an internal variable called GarryDeathCount (presumably short for Garry Death Counter) to determine whether Garry will be slain near the end of the game. Some people prefer to think of it as Mary's Hate or Damage to the Exhibits. If the counter reaches 3, Ib's Rose will not appear in the toy box and Garry... | Well, as stated there is a Garry Doom Counter, as I call it. Some things you want to do is:
* Check the 'Hug the Right Wall' advice
* Talk about the milk puzzle
* Do the rope maze
* Talk to Garry atleast 7 times in the safe room (I do over ten when I want this ending)
* Talk to Garry in the fake sunshine (I again do o... |
865,116 | Show that $$x(t)=\sum\_{n=0}^{\infty}\frac{(-1)^n(t/2)^{2n}}{(n!)^2}$$ is the solution of $$x\*x=\int\_{0}^t x(u)x(t-u)du=\sin t$$
### My approach:
I suppose that I have to use the [Laplace transform](https://en.wikipedia.org/wiki/Laplace_transform). I tried to calculate
$$\mathcal{L}(\sin t)=\int\_{0}^{\infty}e^{-\l... | 2014/07/12 | [
"https://math.stackexchange.com/questions/865116",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/92608/"
] | Claim: $q\_1$ anticommutes with $q\_2$ if and only if either is zero, or else both have zero real-part and their imaginary parts are orthogonal.
Representing our quaternions using a vector for the imaginary part, then the product of $q\_1 = (r\_1, \vec{v\_1})$ and $q\_2 = (r\_2, \vec{v\_2})$ is $(r\_1r\_2 - \vec{v\_1}... | >
> Therefore I conclude that all pairs of purely imaginary quaternions anticommute.
>
>
>
Well, $i$ doesn't anticommute with itself, so this can't be right. Just stating "the only way this can happen is..." is a huge gap without justification.
---
Here's a method that avoids getting down into the real coefficie... |
865,116 | Show that $$x(t)=\sum\_{n=0}^{\infty}\frac{(-1)^n(t/2)^{2n}}{(n!)^2}$$ is the solution of $$x\*x=\int\_{0}^t x(u)x(t-u)du=\sin t$$
### My approach:
I suppose that I have to use the [Laplace transform](https://en.wikipedia.org/wiki/Laplace_transform). I tried to calculate
$$\mathcal{L}(\sin t)=\int\_{0}^{\infty}e^{-\l... | 2014/07/12 | [
"https://math.stackexchange.com/questions/865116",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/92608/"
] | Claim: $q\_1$ anticommutes with $q\_2$ if and only if either is zero, or else both have zero real-part and their imaginary parts are orthogonal.
Representing our quaternions using a vector for the imaginary part, then the product of $q\_1 = (r\_1, \vec{v\_1})$ and $q\_2 = (r\_2, \vec{v\_2})$ is $(r\_1r\_2 - \vec{v\_1}... | Here an answer that uses only elementary algebra.
We put $p=x+y\mathbf{i}+z\mathbf{j}+t\mathbf{k}$ and $q=a+b\mathbf{i}+c\mathbf{j}+d\mathbf{k}$
then we compute the products $pq $ and $qp$ remembering that
$$
\mathbf{i}\mathbf{j}=\mathbf{k}\quad \mathbf{j}\mathbf{k}=\mathbf{i}\quad \mathbf{k}\mathbf{i}=\mathbf{j}
$$
... |
865,116 | Show that $$x(t)=\sum\_{n=0}^{\infty}\frac{(-1)^n(t/2)^{2n}}{(n!)^2}$$ is the solution of $$x\*x=\int\_{0}^t x(u)x(t-u)du=\sin t$$
### My approach:
I suppose that I have to use the [Laplace transform](https://en.wikipedia.org/wiki/Laplace_transform). I tried to calculate
$$\mathcal{L}(\sin t)=\int\_{0}^{\infty}e^{-\l... | 2014/07/12 | [
"https://math.stackexchange.com/questions/865116",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/92608/"
] | Claim: $q\_1$ anticommutes with $q\_2$ if and only if either is zero, or else both have zero real-part and their imaginary parts are orthogonal.
Representing our quaternions using a vector for the imaginary part, then the product of $q\_1 = (r\_1, \vec{v\_1})$ and $q\_2 = (r\_2, \vec{v\_2})$ is $(r\_1r\_2 - \vec{v\_1}... | We write the product as
$$ pq = (r\_p r\_q - v\_p \cdot v\_q, r\_p v\_q + r\_q v\_p + v\_p \times v\_q)$$
Considering the imaginary part we see that since the crossproduct is antisymmetric, $\operatorname{Im}{pq}=-\operatorname{Im}{qp}$ if and only if $r\_pv\_q + r\_q v\_p = 0$.
This can happen in exactly 3 ways: if... |
865,116 | Show that $$x(t)=\sum\_{n=0}^{\infty}\frac{(-1)^n(t/2)^{2n}}{(n!)^2}$$ is the solution of $$x\*x=\int\_{0}^t x(u)x(t-u)du=\sin t$$
### My approach:
I suppose that I have to use the [Laplace transform](https://en.wikipedia.org/wiki/Laplace_transform). I tried to calculate
$$\mathcal{L}(\sin t)=\int\_{0}^{\infty}e^{-\l... | 2014/07/12 | [
"https://math.stackexchange.com/questions/865116",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/92608/"
] | >
> Therefore I conclude that all pairs of purely imaginary quaternions anticommute.
>
>
>
Well, $i$ doesn't anticommute with itself, so this can't be right. Just stating "the only way this can happen is..." is a huge gap without justification.
---
Here's a method that avoids getting down into the real coefficie... | Here an answer that uses only elementary algebra.
We put $p=x+y\mathbf{i}+z\mathbf{j}+t\mathbf{k}$ and $q=a+b\mathbf{i}+c\mathbf{j}+d\mathbf{k}$
then we compute the products $pq $ and $qp$ remembering that
$$
\mathbf{i}\mathbf{j}=\mathbf{k}\quad \mathbf{j}\mathbf{k}=\mathbf{i}\quad \mathbf{k}\mathbf{i}=\mathbf{j}
$$
... |
865,116 | Show that $$x(t)=\sum\_{n=0}^{\infty}\frac{(-1)^n(t/2)^{2n}}{(n!)^2}$$ is the solution of $$x\*x=\int\_{0}^t x(u)x(t-u)du=\sin t$$
### My approach:
I suppose that I have to use the [Laplace transform](https://en.wikipedia.org/wiki/Laplace_transform). I tried to calculate
$$\mathcal{L}(\sin t)=\int\_{0}^{\infty}e^{-\l... | 2014/07/12 | [
"https://math.stackexchange.com/questions/865116",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/92608/"
] | We write the product as
$$ pq = (r\_p r\_q - v\_p \cdot v\_q, r\_p v\_q + r\_q v\_p + v\_p \times v\_q)$$
Considering the imaginary part we see that since the crossproduct is antisymmetric, $\operatorname{Im}{pq}=-\operatorname{Im}{qp}$ if and only if $r\_pv\_q + r\_q v\_p = 0$.
This can happen in exactly 3 ways: if... | >
> Therefore I conclude that all pairs of purely imaginary quaternions anticommute.
>
>
>
Well, $i$ doesn't anticommute with itself, so this can't be right. Just stating "the only way this can happen is..." is a huge gap without justification.
---
Here's a method that avoids getting down into the real coefficie... |
865,116 | Show that $$x(t)=\sum\_{n=0}^{\infty}\frac{(-1)^n(t/2)^{2n}}{(n!)^2}$$ is the solution of $$x\*x=\int\_{0}^t x(u)x(t-u)du=\sin t$$
### My approach:
I suppose that I have to use the [Laplace transform](https://en.wikipedia.org/wiki/Laplace_transform). I tried to calculate
$$\mathcal{L}(\sin t)=\int\_{0}^{\infty}e^{-\l... | 2014/07/12 | [
"https://math.stackexchange.com/questions/865116",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/92608/"
] | We write the product as
$$ pq = (r\_p r\_q - v\_p \cdot v\_q, r\_p v\_q + r\_q v\_p + v\_p \times v\_q)$$
Considering the imaginary part we see that since the crossproduct is antisymmetric, $\operatorname{Im}{pq}=-\operatorname{Im}{qp}$ if and only if $r\_pv\_q + r\_q v\_p = 0$.
This can happen in exactly 3 ways: if... | Here an answer that uses only elementary algebra.
We put $p=x+y\mathbf{i}+z\mathbf{j}+t\mathbf{k}$ and $q=a+b\mathbf{i}+c\mathbf{j}+d\mathbf{k}$
then we compute the products $pq $ and $qp$ remembering that
$$
\mathbf{i}\mathbf{j}=\mathbf{k}\quad \mathbf{j}\mathbf{k}=\mathbf{i}\quad \mathbf{k}\mathbf{i}=\mathbf{j}
$$
... |
14,547,656 | How can I read a file from a relative path?
I´ve tried this, but without success:
```
package es;
import java.io.File;
import java.io.FileInputStream;
public class Principal {
/**
* @param args
*/
public static void main(String[] args) throws Exception {
File file = new File("/prueba/src/... | 2013/01/27 | [
"https://Stackoverflow.com/questions/14547656",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1097480/"
] | Here:
```
NSArray *aradizi = tableView == self.searchDisplayController.searchResultsTableView ?
[[NSArray alloc] initWithArray:self.filteredListContent] :
[[NSArray alloc] initWithArray:self.dizi];
```
You should avoid creating objects inside cellForRowAtIndexPath wherever possible.
Anyway you don't n... | He Was, Thank you for the answer. performance was very nice. But since I made this change, the program closes.
new codes:
```
NSMutableArray *aradizi;
if (tableView == self.searchDisplayController.searchResultsTableView)
aradizi = self.filteredListContent;
if (indexPath.section == 2 && tableView != self.searchDisp... |
999,752 | Just installed ubuntu 16 on my alienware 17 R2, and there are no sound. I have tried to unmuted the card from alsamixer. but i think that the hdmi card is set as default. Is it any way to fix this?
### `lspci -nnk | grep -A3 -Fe '[0403]'` output:
```
00:03.0 Audio device [0403]: Intel Corporation Xeon E3-1200 v3/4th ... | 2018/01/25 | [
"https://askubuntu.com/questions/999752",
"https://askubuntu.com",
"https://askubuntu.com/users/787332/"
] | Add the notification area to your panel. You do that by right-clicking on the panel, "Add to Panel..." and choosing Notification Area.
If network icon is still missing, try to restart the network manager with
```
sudo service network-manager stop
sudo service network-manager start
```
or simply
```
sudo service ne... | It is often the simplest things and with no manual simple enough... The notification area was it. I went through them all and saw no hint that this panel was the answer.
Now connected and the learning continues. I love it. This old laptop was too slow to be of use and had been put away for years. Now it works!
Thank... |
76,447 | In 1971, the US State of North Carolina rewrote its constitution. According to [this source](https://www.ncpedia.org/government/nc-constitution-history), one of the purposes of this was that "Ambiguities and sections seemingly in conflict with the U.S. Constitution were either dropped or rewritten."
Yet, the [NC Const... | 2021/12/20 | [
"https://law.stackexchange.com/questions/76447",
"https://law.stackexchange.com",
"https://law.stackexchange.com/users/427/"
] | In [*Torcaso v. Watkins*, 367 U.S. 488 (1961)](https://supreme.justia.com/cases/federal/us/367/488/), the US Supreme Court ruled unanimously that a similar provision in Maryland's constitution violated the First Amendment and could not be enforced. So presumably the North Carolina provision is similarly unconstitutiona... | Not that the freedom of religion clause of the First Amendment of the US Constitution isn't relevant, but North Carolina's Article VI seems to contradict explicitly Article VI, Clause 3 of the US Constitution:
>
> "The Senators and Representatives before mentioned, and the Members of the several State Legislatures, a... |
76,447 | In 1971, the US State of North Carolina rewrote its constitution. According to [this source](https://www.ncpedia.org/government/nc-constitution-history), one of the purposes of this was that "Ambiguities and sections seemingly in conflict with the U.S. Constitution were either dropped or rewritten."
Yet, the [NC Const... | 2021/12/20 | [
"https://law.stackexchange.com/questions/76447",
"https://law.stackexchange.com",
"https://law.stackexchange.com/users/427/"
] | In [*Torcaso v. Watkins*, 367 U.S. 488 (1961)](https://supreme.justia.com/cases/federal/us/367/488/), the US Supreme Court ruled unanimously that a similar provision in Maryland's constitution violated the First Amendment and could not be enforced. So presumably the North Carolina provision is similarly unconstitutiona... | No court case or official regulation or attorney general's opinion has specifically held that the North Carolina provision is unconstitutional because it conflicts with Article VI, Clause 3 of the US Constitution and the squarely on point U.S. Supreme Court precedent of *Torcaso v. Watkins*, 367 U.S. 488 (1961), althou... |
76,447 | In 1971, the US State of North Carolina rewrote its constitution. According to [this source](https://www.ncpedia.org/government/nc-constitution-history), one of the purposes of this was that "Ambiguities and sections seemingly in conflict with the U.S. Constitution were either dropped or rewritten."
Yet, the [NC Const... | 2021/12/20 | [
"https://law.stackexchange.com/questions/76447",
"https://law.stackexchange.com",
"https://law.stackexchange.com/users/427/"
] | In [*Torcaso v. Watkins*, 367 U.S. 488 (1961)](https://supreme.justia.com/cases/federal/us/367/488/), the US Supreme Court ruled unanimously that a similar provision in Maryland's constitution violated the First Amendment and could not be enforced. So presumably the North Carolina provision is similarly unconstitutiona... | **Why was the constitution not changed?**
Probably because there were enough politicians who didn't want to be labelled as someone who allowed atheists to take office. It doesn't matter that atheists were in fact being allowed to take office, for some politicians if they explicitly voted they would take a hit. And sin... |
76,447 | In 1971, the US State of North Carolina rewrote its constitution. According to [this source](https://www.ncpedia.org/government/nc-constitution-history), one of the purposes of this was that "Ambiguities and sections seemingly in conflict with the U.S. Constitution were either dropped or rewritten."
Yet, the [NC Const... | 2021/12/20 | [
"https://law.stackexchange.com/questions/76447",
"https://law.stackexchange.com",
"https://law.stackexchange.com/users/427/"
] | Not that the freedom of religion clause of the First Amendment of the US Constitution isn't relevant, but North Carolina's Article VI seems to contradict explicitly Article VI, Clause 3 of the US Constitution:
>
> "The Senators and Representatives before mentioned, and the Members of the several State Legislatures, a... | No court case or official regulation or attorney general's opinion has specifically held that the North Carolina provision is unconstitutional because it conflicts with Article VI, Clause 3 of the US Constitution and the squarely on point U.S. Supreme Court precedent of *Torcaso v. Watkins*, 367 U.S. 488 (1961), althou... |
76,447 | In 1971, the US State of North Carolina rewrote its constitution. According to [this source](https://www.ncpedia.org/government/nc-constitution-history), one of the purposes of this was that "Ambiguities and sections seemingly in conflict with the U.S. Constitution were either dropped or rewritten."
Yet, the [NC Const... | 2021/12/20 | [
"https://law.stackexchange.com/questions/76447",
"https://law.stackexchange.com",
"https://law.stackexchange.com/users/427/"
] | Not that the freedom of religion clause of the First Amendment of the US Constitution isn't relevant, but North Carolina's Article VI seems to contradict explicitly Article VI, Clause 3 of the US Constitution:
>
> "The Senators and Representatives before mentioned, and the Members of the several State Legislatures, a... | **Why was the constitution not changed?**
Probably because there were enough politicians who didn't want to be labelled as someone who allowed atheists to take office. It doesn't matter that atheists were in fact being allowed to take office, for some politicians if they explicitly voted they would take a hit. And sin... |
76,447 | In 1971, the US State of North Carolina rewrote its constitution. According to [this source](https://www.ncpedia.org/government/nc-constitution-history), one of the purposes of this was that "Ambiguities and sections seemingly in conflict with the U.S. Constitution were either dropped or rewritten."
Yet, the [NC Const... | 2021/12/20 | [
"https://law.stackexchange.com/questions/76447",
"https://law.stackexchange.com",
"https://law.stackexchange.com/users/427/"
] | **Why was the constitution not changed?**
Probably because there were enough politicians who didn't want to be labelled as someone who allowed atheists to take office. It doesn't matter that atheists were in fact being allowed to take office, for some politicians if they explicitly voted they would take a hit. And sin... | No court case or official regulation or attorney general's opinion has specifically held that the North Carolina provision is unconstitutional because it conflicts with Article VI, Clause 3 of the US Constitution and the squarely on point U.S. Supreme Court precedent of *Torcaso v. Watkins*, 367 U.S. 488 (1961), althou... |
10,142,746 | I'm running an SSIS package and I want to set the value of a desired variable during runtime. Here an example
`variable1= 1145554478 nvarchar(30)`
I'm using nvarchar since I'm adding more characters to the string.
```
variable2= [ + variable1 + _S]
```
`variable1` and `variable2` are package variables.
I've sea... | 2012/04/13 | [
"https://Stackoverflow.com/questions/10142746",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1326923/"
] | You cannot set the value of the SSIS variable in your SQL statement, but rather RETURN the value and assign it to your variable.
Change your statement to
```
SELECT '[' + ? + '_S]'
```
Change your result set to "Single Row" and then under "Result Set" on the left add your variable with the Result Name of 0 | The easiest way would (typically) be to create a script task and just write the code in C# or VB. |
10,142,746 | I'm running an SSIS package and I want to set the value of a desired variable during runtime. Here an example
`variable1= 1145554478 nvarchar(30)`
I'm using nvarchar since I'm adding more characters to the string.
```
variable2= [ + variable1 + _S]
```
`variable1` and `variable2` are package variables.
I've sea... | 2012/04/13 | [
"https://Stackoverflow.com/questions/10142746",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1326923/"
] | You cannot set the value of the SSIS variable in your SQL statement, but rather RETURN the value and assign it to your variable.
Change your statement to
```
SELECT '[' + ? + '_S]'
```
Change your result set to "Single Row" and then under "Result Set" on the left add your variable with the Result Name of 0 | Here is a way to manipulate the value of a variable during runtime based on another variable's value. The sample uses SSIS 2008 R2 but the functionality has been the same on all SSIS versions.
* Create a new SSIS package.
* Right-click anywhere on the package and select `Variables` from the context menu. *Variables* p... |
19,032 | I'm trying to calculate how much money I'd have to put away each month for the next 20 years, to be able to withdraw 50,000 a year for 20 years after that (a retirement calculation).
The issue that's throwing me off is that the money will be annually compounded with 10% interest; and I'm not sure how to take that into... | 2012/12/30 | [
"https://money.stackexchange.com/questions/19032",
"https://money.stackexchange.com",
"https://money.stackexchange.com/users/7903/"
] | The equation is the same one used for mortgage amortization.
You first want to calculate the PV (present value) for a stream of $50K payments over 20 years at a10% rate.
Then that value is the FV (future value) that you want to save for, and you are looking to solve the payment stream needed to create that future v... | I've found the systems that seem to work.
Firstly, you need to find how much money is required to pay for the withdrawals after retirement, while still accruing interest. I couldn't seem to do this with an equation, but this bit of javascript worked:
```
var amount = 0;
for (var i = 0; i < yearsToLast; i++)
{
amo... |
27,393,796 | I am using play framework 2.2.0 and configured mongo for play+ scala using salat.
I integrated spark with above by adding following to build.sbt
```
"org.apache.spark" %% "spark-core" % "1.1.0",
"com.typesafe.akka" %% "akka-actor" % "2.2.3",
"com.typesafe.akka" %% "akka-slf4j" % "2.2.3",
"org.mongodb" % "mongo-hadoo... | 2014/12/10 | [
"https://Stackoverflow.com/questions/27393796",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2538837/"
] | I'm not sure I understand the question, but for integrating mongo and scala, there is a reactivemongo project (which we are using in out Play + Scala project)
<http://reactivemongo.org/>
It's non blocking, and you have mimics mongoDB functions.
```
import reactivemongo.api._
import scala.concurrent.ExecutionCont... | If you are using play and you want an ORM tool, you can try Salat + salat-play-plugin [Play-salat](https://github.com/shayanlinux/play-salat)
I was using play 2.4 but it's 2.5 + now , and this plugin was written in 2.3, you may need to figure out how to make it work on you project. But it works on 2.4, you've got my p... |
70,493,359 | Given this dataset that contains the **datetime for an event** and the **datetime of ticket scan**
| event\_name | event\_datetime | scan\_datetime |
| --- | --- | --- |
| Game 1 | 2018-10-17 19:30:00 | 2018-10-17 20:01:20 2018-10-17 19:20:10 2018-10-17 21:44:43 2018-10-17 20:30:46 2018-10-17 19:51:56 |
| ... | ... ... | 2021/12/27 | [
"https://Stackoverflow.com/questions/70493359",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11491426/"
] | First, you need to extract datetime from `scan_datetime` column then explode it.
Next, compute the time delta between `event_datetime` and `scan_datetime` columns. Finally, bin values and count number of occurrences.
```
DT = r'\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}'
df['scan_datetime'] = df['scan_datetime'].str.findall(... | First you explode the list in scan\_datetime.
```
df = df.explode("scan_datetime").reset_index(drop=True)
```
This will make each scan a separate row. I am assuming the values in the list are strings, so we convert them to datetime:
```
df["scan_datetime"] = pd.to_datetime(df["scan_datetime"])
```
Than you calcul... |
16,220,574 | Just getting started on the Adwords API, for some reason I can't seem to connect at all.
The code below, straight from the tutorial throws the error:
```
Traceback (most recent call last):
File "<pyshell#12>", line 1, in <module>
client = AdWordsClient(path=os.path.join('Users', 'ravinthambapillai', 'Google Dri... | 2013/04/25 | [
"https://Stackoverflow.com/questions/16220574",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/844384/"
] | It looks like there's two issues. First, try removing the last path element, as far as I recall, the `path` parameter expects a directory that contains the authentication pickle, logs etc. This approach requires that you already have a valid `auth_token.pkl`.
Second, it appears that you're using OAuth2 for authenticat... | I am not familiar with the `AdWordsClient` api but are you sure your path is correct?
your current `join` produces a relative path, do you need an absolute one?
```
>>> import os
>>> os.path.join('Users', 'this-user')
'Users/this-user'
```
For testing you could hardcode the absoulte path in to make sure it is not a... |
576,748 | Generally students start the Nth grade in the fall of some calendar year Y and graduate that grade in the spring of some calendar year Y+1. Likewise if a fiscal year does not start on January 1 it would also start in a first calendar year and end in a second year.
So to avoid ambiguity one might do well to refer to "t... | 2021/10/14 | [
"https://english.stackexchange.com/questions/576748",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/109469/"
] | [Lexico](https://www.lexico.com/definition/adaptable) has a word that is applicable to people and to technology:
>
> **adaptable**
>
> ADJECTIVE
>
>
> **1** Able to adjust to new conditions.
>
> *rats are highly adaptable to change*
>
>
> **1.1** Able to be modified for a new use or purpose.
>
> *telepho... | Two ideas have to be combined in this adjective, the possibility of being improved and the easiness of any improvement; it is not likely that such a term exists. However a combination of words is possible.
>
> ([vocabulary](https://www.vocabulary.com/dictionary/meliorative)) **meliorative** adjective
> tending to ame... |
576,748 | Generally students start the Nth grade in the fall of some calendar year Y and graduate that grade in the spring of some calendar year Y+1. Likewise if a fiscal year does not start on January 1 it would also start in a first calendar year and end in a second year.
So to avoid ambiguity one might do well to refer to "t... | 2021/10/14 | [
"https://english.stackexchange.com/questions/576748",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/109469/"
] | [Lexico](https://www.lexico.com/definition/adaptable) has a word that is applicable to people and to technology:
>
> **adaptable**
>
> ADJECTIVE
>
>
> **1** Able to adjust to new conditions.
>
> *rats are highly adaptable to change*
>
>
> **1.1** Able to be modified for a new use or purpose.
>
> *telepho... | If something has lots of room for improvement then it has not yet reached its optimal point of development . You could say “and their low level of initial optimization” or “and their sub-optimal initial state.” |
576,748 | Generally students start the Nth grade in the fall of some calendar year Y and graduate that grade in the spring of some calendar year Y+1. Likewise if a fiscal year does not start on January 1 it would also start in a first calendar year and end in a second year.
So to avoid ambiguity one might do well to refer to "t... | 2021/10/14 | [
"https://english.stackexchange.com/questions/576748",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/109469/"
] | I believe you example requires a noun rather than an adjective as you requested:
>
> The key advantages of synthetic organisms are lack of emotions,
> apathy, ruthless pragmatism, exponential learning and
> **updatability**.
>
>
>
**updatability**
>
> The condition of being updatable [Wiktionary](https://en.wik... | Two ideas have to be combined in this adjective, the possibility of being improved and the easiness of any improvement; it is not likely that such a term exists. However a combination of words is possible.
>
> ([vocabulary](https://www.vocabulary.com/dictionary/meliorative)) **meliorative** adjective
> tending to ame... |
576,748 | Generally students start the Nth grade in the fall of some calendar year Y and graduate that grade in the spring of some calendar year Y+1. Likewise if a fiscal year does not start on January 1 it would also start in a first calendar year and end in a second year.
So to avoid ambiguity one might do well to refer to "t... | 2021/10/14 | [
"https://english.stackexchange.com/questions/576748",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/109469/"
] | Two ideas have to be combined in this adjective, the possibility of being improved and the easiness of any improvement; it is not likely that such a term exists. However a combination of words is possible.
>
> ([vocabulary](https://www.vocabulary.com/dictionary/meliorative)) **meliorative** adjective
> tending to ame... | If something has lots of room for improvement then it has not yet reached its optimal point of development . You could say “and their low level of initial optimization” or “and their sub-optimal initial state.” |
576,748 | Generally students start the Nth grade in the fall of some calendar year Y and graduate that grade in the spring of some calendar year Y+1. Likewise if a fiscal year does not start on January 1 it would also start in a first calendar year and end in a second year.
So to avoid ambiguity one might do well to refer to "t... | 2021/10/14 | [
"https://english.stackexchange.com/questions/576748",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/109469/"
] | I believe you example requires a noun rather than an adjective as you requested:
>
> The key advantages of synthetic organisms are lack of emotions,
> apathy, ruthless pragmatism, exponential learning and
> **updatability**.
>
>
>
**updatability**
>
> The condition of being updatable [Wiktionary](https://en.wik... | If something has lots of room for improvement then it has not yet reached its optimal point of development . You could say “and their low level of initial optimization” or “and their sub-optimal initial state.” |
622,435 | Every time I download an update for 14.04, I am unable to start Steam. I get an error to the effect of "OpenGL is not using direct rendering".
Up until now, my way around it is to ignore the notifications and just wait for a new proprietary driver for my GTX 970. Once a stable driver is released, I download the Ubunt... | 2015/05/11 | [
"https://askubuntu.com/questions/622435",
"https://askubuntu.com",
"https://askubuntu.com/users/358986/"
] | I reinstalled the driver because it was the most expedient way to go about it. The name, "nvidia-346" seems to refer to the names that the repositories give to the drivers. The repositories don't work for the latest proprietary drivers. I'm not sure whether I could enter "NVIDIA-Linux-\*-346.72.run" rather than "nvidia... | I think it because of new kernel is coming with updates and some nvidia kernel modules are missing.
Try to reconfigure nvidia driver after update, for example
```
sudo dpkg-reconfigure nvidia-346
```
Where "nvidia-346" name of driver package.
If it not help just try to reinstall your current driver via "sudo dpkg -i... |
667,346 | A function f such that
$$
|f(x)-f(y)| \leq C|x-y|
$$
for all $x$ and $y$, where $C$ is a constant independent of $x$ and $y$, is called a Lipschitz function
show that $f(x)=\sqrt{x}\hspace{3mm} \forall x \in \mathbb{R\_{+}}$ isn't Lipschitz function
Indeed, there is no such constant C where
$$
|\sqrt{x}-\sqrt{y}| ... | 2014/02/07 | [
"https://math.stackexchange.com/questions/667346",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/122903/"
] | You have
$${\sqrt{1/n} - \sqrt{0}\over{1/n - 0}} = {1/\sqrt{n}\over {1\over n}} = \sqrt{n}.$$
This ratio can be made as large as you like by choosing $n$ large. Therefore the square-root function fails to be Lipschitz. | $x \geq y$ implies $\sqrt{x} \geq \sqrt{y}$ (monotonous)
Then you need $\sqrt{x} - \sqrt{y} \leq C(x-y)$ for $x \ge y$
Use $a^2 - b^2 = \left(a-b\right)\left(a+b\right)$ to divide both sides by the (positive) $\sqrt{x} - \sqrt{y}$ to get $1 \leq C(\sqrt{x} + \sqrt{y})$, or $C \geq \frac{1}{\sqrt{x} + \sqrt{y}}$. Obvi... |
667,346 | A function f such that
$$
|f(x)-f(y)| \leq C|x-y|
$$
for all $x$ and $y$, where $C$ is a constant independent of $x$ and $y$, is called a Lipschitz function
show that $f(x)=\sqrt{x}\hspace{3mm} \forall x \in \mathbb{R\_{+}}$ isn't Lipschitz function
Indeed, there is no such constant C where
$$
|\sqrt{x}-\sqrt{y}| ... | 2014/02/07 | [
"https://math.stackexchange.com/questions/667346",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/122903/"
] | $x \geq y$ implies $\sqrt{x} \geq \sqrt{y}$ (monotonous)
Then you need $\sqrt{x} - \sqrt{y} \leq C(x-y)$ for $x \ge y$
Use $a^2 - b^2 = \left(a-b\right)\left(a+b\right)$ to divide both sides by the (positive) $\sqrt{x} - \sqrt{y}$ to get $1 \leq C(\sqrt{x} + \sqrt{y})$, or $C \geq \frac{1}{\sqrt{x} + \sqrt{y}}$. Obvi... | Showing $\sqrt {x}$ is not Lipschitz .
We prove this by contradiction method.
Suppose if possible $\sqrt x$ is Lipschitz function. Then there exists $C>0$ such that
$|√x-√y|<C|x-y|$ for all $x,y\in \mathbb R^{+}$.
$\\$
Take $x=(\frac{1}{1+C})^2$ and $y=0$.
Then $|\frac{1}{1+C}|<C((\frac{1}{1+C})^2)$
$\Rightarrow C+1\le... |
667,346 | A function f such that
$$
|f(x)-f(y)| \leq C|x-y|
$$
for all $x$ and $y$, where $C$ is a constant independent of $x$ and $y$, is called a Lipschitz function
show that $f(x)=\sqrt{x}\hspace{3mm} \forall x \in \mathbb{R\_{+}}$ isn't Lipschitz function
Indeed, there is no such constant C where
$$
|\sqrt{x}-\sqrt{y}| ... | 2014/02/07 | [
"https://math.stackexchange.com/questions/667346",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/122903/"
] | Suppose that $\sqrt{x}$ is a Lipschitz function, then there exists $C$ such that
$$\Big|\frac{\sqrt{y}-\sqrt{x}}{y-x}\Big| \le C$$
Now, Let $y=2x$, so
$$(\sqrt{2}-1)x^{-\frac{1}{2}}\le C$$
Letting $x→0$ gives a contradiction. | Showing $\sqrt {x}$ is not Lipschitz .
We prove this by contradiction method.
Suppose if possible $\sqrt x$ is Lipschitz function. Then there exists $C>0$ such that
$|√x-√y|<C|x-y|$ for all $x,y\in \mathbb R^{+}$.
$\\$
Take $x=(\frac{1}{1+C})^2$ and $y=0$.
Then $|\frac{1}{1+C}|<C((\frac{1}{1+C})^2)$
$\Rightarrow C+1\le... |
667,346 | A function f such that
$$
|f(x)-f(y)| \leq C|x-y|
$$
for all $x$ and $y$, where $C$ is a constant independent of $x$ and $y$, is called a Lipschitz function
show that $f(x)=\sqrt{x}\hspace{3mm} \forall x \in \mathbb{R\_{+}}$ isn't Lipschitz function
Indeed, there is no such constant C where
$$
|\sqrt{x}-\sqrt{y}| ... | 2014/02/07 | [
"https://math.stackexchange.com/questions/667346",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/122903/"
] | **Hint:** why is it not possible to find a $C$ such that
$$
|\sqrt{x} - \sqrt{0}|\leq C|x-0|
$$
For all $x \geq 0$?
**As a general rule:** Note that a differentiable function will necessarily be Lipschitz on any interval on which its derivative is bounded.
**In response to the wikipedia excerpt:** "This function beco... | You have
$${\sqrt{1/n} - \sqrt{0}\over{1/n - 0}} = {1/\sqrt{n}\over {1\over n}} = \sqrt{n}.$$
This ratio can be made as large as you like by choosing $n$ large. Therefore the square-root function fails to be Lipschitz. |
667,346 | A function f such that
$$
|f(x)-f(y)| \leq C|x-y|
$$
for all $x$ and $y$, where $C$ is a constant independent of $x$ and $y$, is called a Lipschitz function
show that $f(x)=\sqrt{x}\hspace{3mm} \forall x \in \mathbb{R\_{+}}$ isn't Lipschitz function
Indeed, there is no such constant C where
$$
|\sqrt{x}-\sqrt{y}| ... | 2014/02/07 | [
"https://math.stackexchange.com/questions/667346",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/122903/"
] | **Hint:** why is it not possible to find a $C$ such that
$$
|\sqrt{x} - \sqrt{0}|\leq C|x-0|
$$
For all $x \geq 0$?
**As a general rule:** Note that a differentiable function will necessarily be Lipschitz on any interval on which its derivative is bounded.
**In response to the wikipedia excerpt:** "This function beco... | Showing $\sqrt {x}$ is not Lipschitz .
We prove this by contradiction method.
Suppose if possible $\sqrt x$ is Lipschitz function. Then there exists $C>0$ such that
$|√x-√y|<C|x-y|$ for all $x,y\in \mathbb R^{+}$.
$\\$
Take $x=(\frac{1}{1+C})^2$ and $y=0$.
Then $|\frac{1}{1+C}|<C((\frac{1}{1+C})^2)$
$\Rightarrow C+1\le... |
667,346 | A function f such that
$$
|f(x)-f(y)| \leq C|x-y|
$$
for all $x$ and $y$, where $C$ is a constant independent of $x$ and $y$, is called a Lipschitz function
show that $f(x)=\sqrt{x}\hspace{3mm} \forall x \in \mathbb{R\_{+}}$ isn't Lipschitz function
Indeed, there is no such constant C where
$$
|\sqrt{x}-\sqrt{y}| ... | 2014/02/07 | [
"https://math.stackexchange.com/questions/667346",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/122903/"
] | **Hint:** why is it not possible to find a $C$ such that
$$
|\sqrt{x} - \sqrt{0}|\leq C|x-0|
$$
For all $x \geq 0$?
**As a general rule:** Note that a differentiable function will necessarily be Lipschitz on any interval on which its derivative is bounded.
**In response to the wikipedia excerpt:** "This function beco... | $x \geq y$ implies $\sqrt{x} \geq \sqrt{y}$ (monotonous)
Then you need $\sqrt{x} - \sqrt{y} \leq C(x-y)$ for $x \ge y$
Use $a^2 - b^2 = \left(a-b\right)\left(a+b\right)$ to divide both sides by the (positive) $\sqrt{x} - \sqrt{y}$ to get $1 \leq C(\sqrt{x} + \sqrt{y})$, or $C \geq \frac{1}{\sqrt{x} + \sqrt{y}}$. Obvi... |
667,346 | A function f such that
$$
|f(x)-f(y)| \leq C|x-y|
$$
for all $x$ and $y$, where $C$ is a constant independent of $x$ and $y$, is called a Lipschitz function
show that $f(x)=\sqrt{x}\hspace{3mm} \forall x \in \mathbb{R\_{+}}$ isn't Lipschitz function
Indeed, there is no such constant C where
$$
|\sqrt{x}-\sqrt{y}| ... | 2014/02/07 | [
"https://math.stackexchange.com/questions/667346",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/122903/"
] | **Hint:** why is it not possible to find a $C$ such that
$$
|\sqrt{x} - \sqrt{0}|\leq C|x-0|
$$
For all $x \geq 0$?
**As a general rule:** Note that a differentiable function will necessarily be Lipschitz on any interval on which its derivative is bounded.
**In response to the wikipedia excerpt:** "This function beco... | $\sqrt{}$ is monotonous, so just assume $x \geq y$, then you can drop the absolute values and it simplifies to $1 \leq C(\sqrt{x} + \sqrt{y}$. Since you can make the sum of square roots arbitrarily small (by suitably decreasing $x$ and $y$), as soon as it's smaller than $1/C$ the inequality no longer holds. |
667,346 | A function f such that
$$
|f(x)-f(y)| \leq C|x-y|
$$
for all $x$ and $y$, where $C$ is a constant independent of $x$ and $y$, is called a Lipschitz function
show that $f(x)=\sqrt{x}\hspace{3mm} \forall x \in \mathbb{R\_{+}}$ isn't Lipschitz function
Indeed, there is no such constant C where
$$
|\sqrt{x}-\sqrt{y}| ... | 2014/02/07 | [
"https://math.stackexchange.com/questions/667346",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/122903/"
] | You have
$${\sqrt{1/n} - \sqrt{0}\over{1/n - 0}} = {1/\sqrt{n}\over {1\over n}} = \sqrt{n}.$$
This ratio can be made as large as you like by choosing $n$ large. Therefore the square-root function fails to be Lipschitz. | Suppose that $\sqrt{x}$ is a Lipschitz function, then there exists $C$ such that
$$\Big|\frac{\sqrt{y}-\sqrt{x}}{y-x}\Big| \le C$$
Now, Let $y=2x$, so
$$(\sqrt{2}-1)x^{-\frac{1}{2}}\le C$$
Letting $x→0$ gives a contradiction. |
667,346 | A function f such that
$$
|f(x)-f(y)| \leq C|x-y|
$$
for all $x$ and $y$, where $C$ is a constant independent of $x$ and $y$, is called a Lipschitz function
show that $f(x)=\sqrt{x}\hspace{3mm} \forall x \in \mathbb{R\_{+}}$ isn't Lipschitz function
Indeed, there is no such constant C where
$$
|\sqrt{x}-\sqrt{y}| ... | 2014/02/07 | [
"https://math.stackexchange.com/questions/667346",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/122903/"
] | You have
$${\sqrt{1/n} - \sqrt{0}\over{1/n - 0}} = {1/\sqrt{n}\over {1\over n}} = \sqrt{n}.$$
This ratio can be made as large as you like by choosing $n$ large. Therefore the square-root function fails to be Lipschitz. | Showing $\sqrt {x}$ is not Lipschitz .
We prove this by contradiction method.
Suppose if possible $\sqrt x$ is Lipschitz function. Then there exists $C>0$ such that
$|√x-√y|<C|x-y|$ for all $x,y\in \mathbb R^{+}$.
$\\$
Take $x=(\frac{1}{1+C})^2$ and $y=0$.
Then $|\frac{1}{1+C}|<C((\frac{1}{1+C})^2)$
$\Rightarrow C+1\le... |
667,346 | A function f such that
$$
|f(x)-f(y)| \leq C|x-y|
$$
for all $x$ and $y$, where $C$ is a constant independent of $x$ and $y$, is called a Lipschitz function
show that $f(x)=\sqrt{x}\hspace{3mm} \forall x \in \mathbb{R\_{+}}$ isn't Lipschitz function
Indeed, there is no such constant C where
$$
|\sqrt{x}-\sqrt{y}| ... | 2014/02/07 | [
"https://math.stackexchange.com/questions/667346",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/122903/"
] | $x \geq y$ implies $\sqrt{x} \geq \sqrt{y}$ (monotonous)
Then you need $\sqrt{x} - \sqrt{y} \leq C(x-y)$ for $x \ge y$
Use $a^2 - b^2 = \left(a-b\right)\left(a+b\right)$ to divide both sides by the (positive) $\sqrt{x} - \sqrt{y}$ to get $1 \leq C(\sqrt{x} + \sqrt{y})$, or $C \geq \frac{1}{\sqrt{x} + \sqrt{y}}$. Obvi... | $\sqrt{}$ is monotonous, so just assume $x \geq y$, then you can drop the absolute values and it simplifies to $1 \leq C(\sqrt{x} + \sqrt{y}$. Since you can make the sum of square roots arbitrarily small (by suitably decreasing $x$ and $y$), as soon as it's smaller than $1/C$ the inequality no longer holds. |
61,582,566 | I am using docker to run FastAPI
<https://fastapi.tiangolo.com/deployment/>
```
tiangolo/uvicorn-gunicorn-fastapi:python3.7
```
the start.sh looks like:
```
exec gunicorn -k uvicorn.workers.UvicornWorker -c "$GUNICORN_CONF" "$APP_MODULE"
```
My docker log looks like without timestamps:
```
INFO: 123.123.123.... | 2020/05/03 | [
"https://Stackoverflow.com/questions/61582566",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/670186/"
] | I believe the `access_log_format` option is [currently ignored](https://github.com/encode/uvicorn/issues/527) when using the uvicorn/gunicorn/fastapi combo. But that is mostly for editing what will be the `%(message)s` part of the log anyway. If you just want to add a timestamp you should be able to override the behavi... | You should be able to modify the format of the access log using the [`access_log_format`](https://docs.gunicorn.org/en/stable/settings.html#access-log-format) variable in your `gunicorn_conf.py` file. You can base your `gunicorn_conf.py` file [this one](https://github.com/tiangolo/uvicorn-gunicorn-docker/blob/master/do... |
29,141,547 | I need to create an SED command to modify a input file with some conditions explained below.
I have an input file something like below.
List item
```
Rad# ; ID_KEY ; UNIT_ID ; ORGA_ID
1 ; 30000000004 ; 8417920 ; 0001
2 ; 30000000004 ; 8170811 ; 0001
3 ; 30000000004 ; 7709260 ; 0001
4 ; 30000000004 ; 20145598 ; 0... | 2015/03/19 | [
"https://Stackoverflow.com/questions/29141547",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3779139/"
] | This can be done quite nicely in `awk`, in a way that looks quite clear:
```
$ awk -v OFS="," 'NR>1 {f=(f?f OFS:"")$5} END {print f}' file
8417920,8170811,7709260,20145598,1661503,1445852,2480684,8278636,20102078,1581292,20574348,8057248,6830310,7880497,597529,702884,7907220,20311746,6466985,8285052
```
### Explanat... | Try the following:
```
sed -n '2~1{s/[^;]*;\([^;]*\);.*/\1,/;H;}; $x;$s/\n//g;s/,$//;$w foo.txt'
```
Explaination:
* `-n` tells sed not to print pattern space for each line
* 2~1 tells sed to execute the following commands for each line begining with 2
* `s/[^;]*;\([^;]*\);.*/\1,/` takes the second text enclosed in... |
64,424,113 | I have hundreds of files being named as [guid].json where structure of them all looks similar to this:
```
{
"Active": true,
"CaseType": "CaseType",
"CustomerGroup": ["Core", "Extended"]
}
```
First I need to append a new key-value pair to all files with `"CaseId": "[filename]"` and then merge them all into on... | 2020/10/19 | [
"https://Stackoverflow.com/questions/64424113",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5041701/"
] | Fixed by putting this in the Gemfile in ios folder:
gem 'cocoapods', '1.10.0.rc.1'
Thanks @PaulBeusterien for the hint. | 1. Find pods, open buildsettings
2. Search for quoted include,
3. Set this attribute to No |
208,918 | According to the dictionaries, the words **Skinny**, **Scrawny** and **Boney** mean so close that I cannot distinguish between them. They all mean **very thin** and even showing bones! I was wondering if you could let me know how would you interpret them? | 2019/05/01 | [
"https://ell.stackexchange.com/questions/208918",
"https://ell.stackexchange.com",
"https://ell.stackexchange.com/users/5652/"
] | Honestly, there is so little difference in perceived meaning it is barely worth pondering over. They do all have individual and differing dictionary definitions, but they are so similar that in general usage they would mostly be perceived to have the same meaning - like calling someone an "idiot", "moron", or "imbecile... | Yes, *skinny* is less serious sounding than *scrawny*. When I hear *skinny*, I do not automatically imagine being able to see someone's bones. *Skin and bones* is another way to say *very skinny*. Also, *scrawny* is a common collocate of *cat*. Finally, *boney* is not used quite as much as *skinny* and puts an emphasis... |
208,918 | According to the dictionaries, the words **Skinny**, **Scrawny** and **Boney** mean so close that I cannot distinguish between them. They all mean **very thin** and even showing bones! I was wondering if you could let me know how would you interpret them? | 2019/05/01 | [
"https://ell.stackexchange.com/questions/208918",
"https://ell.stackexchange.com",
"https://ell.stackexchange.com/users/5652/"
] | This applies to American English, and more specifically to me as the interpretation is nuanced to the point of being subjective. Other natural speakers from other countries or even the same country may answer differently.
**Boney**/**Bony**, when describing a person, either means so skinny that they show bones, or the... | Yes, *skinny* is less serious sounding than *scrawny*. When I hear *skinny*, I do not automatically imagine being able to see someone's bones. *Skin and bones* is another way to say *very skinny*. Also, *scrawny* is a common collocate of *cat*. Finally, *boney* is not used quite as much as *skinny* and puts an emphasis... |
29,716,694 | I wanted to learn laravel framework. I could install laravel in my webserver(Wamp) and i get some tutorial to learn it but when i tryed to add style to 'h1' tag in the hello.php file place in this path:("C:\wamp\www\laravel-master\app\views\hello.php") by asset() function, above mentioned error occurred.
please help me... | 2015/04/18 | [
"https://Stackoverflow.com/questions/29716694",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2675078/"
] | I'm using Laravel version 5.2
and I've no problem using this :
```
<!-- JavaScripts -->
<script src="{{ asset('js/main.js') }}"></script>
``` | Change this part:
```
<?php echo asset('css/main.css'); ?>
```
as this:
```
/css/main.css
``` |
29,716,694 | I wanted to learn laravel framework. I could install laravel in my webserver(Wamp) and i get some tutorial to learn it but when i tryed to add style to 'h1' tag in the hello.php file place in this path:("C:\wamp\www\laravel-master\app\views\hello.php") by asset() function, above mentioned error occurred.
please help me... | 2015/04/18 | [
"https://Stackoverflow.com/questions/29716694",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2675078/"
] | Change this part:
```
<?php echo asset('css/main.css'); ?>
```
as this:
```
/css/main.css
``` | Today I've run in the same strange situation. A blade file with standard bootstrap & jquery links working fine as usual, when added fullcalendar fires that error.
Removing fullcalendar works fine again, adding fullcalendar, error again.
It makes no sense to me because there is no 404 error, just `"Call to undefined fun... |
29,716,694 | I wanted to learn laravel framework. I could install laravel in my webserver(Wamp) and i get some tutorial to learn it but when i tryed to add style to 'h1' tag in the hello.php file place in this path:("C:\wamp\www\laravel-master\app\views\hello.php") by asset() function, above mentioned error occurred.
please help me... | 2015/04/18 | [
"https://Stackoverflow.com/questions/29716694",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2675078/"
] | I'm using Laravel version 5.2
and I've no problem using this :
```
<!-- JavaScripts -->
<script src="{{ asset('js/main.js') }}"></script>
``` | You can try to do it like `{{ HTML::style('css/main.css') }}` |
29,716,694 | I wanted to learn laravel framework. I could install laravel in my webserver(Wamp) and i get some tutorial to learn it but when i tryed to add style to 'h1' tag in the hello.php file place in this path:("C:\wamp\www\laravel-master\app\views\hello.php") by asset() function, above mentioned error occurred.
please help me... | 2015/04/18 | [
"https://Stackoverflow.com/questions/29716694",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2675078/"
] | You can try to do it like `{{ HTML::style('css/main.css') }}` | Today I've run in the same strange situation. A blade file with standard bootstrap & jquery links working fine as usual, when added fullcalendar fires that error.
Removing fullcalendar works fine again, adding fullcalendar, error again.
It makes no sense to me because there is no 404 error, just `"Call to undefined fun... |
29,716,694 | I wanted to learn laravel framework. I could install laravel in my webserver(Wamp) and i get some tutorial to learn it but when i tryed to add style to 'h1' tag in the hello.php file place in this path:("C:\wamp\www\laravel-master\app\views\hello.php") by asset() function, above mentioned error occurred.
please help me... | 2015/04/18 | [
"https://Stackoverflow.com/questions/29716694",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2675078/"
] | I'm using Laravel version 5.2
and I've no problem using this :
```
<!-- JavaScripts -->
<script src="{{ asset('js/main.js') }}"></script>
``` | Note that you can use pure HTML:
```
<link rel="stylesheet" type="text/css" href="/css/main.css" >
``` |
29,716,694 | I wanted to learn laravel framework. I could install laravel in my webserver(Wamp) and i get some tutorial to learn it but when i tryed to add style to 'h1' tag in the hello.php file place in this path:("C:\wamp\www\laravel-master\app\views\hello.php") by asset() function, above mentioned error occurred.
please help me... | 2015/04/18 | [
"https://Stackoverflow.com/questions/29716694",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2675078/"
] | Note that you can use pure HTML:
```
<link rel="stylesheet" type="text/css" href="/css/main.css" >
``` | Today I've run in the same strange situation. A blade file with standard bootstrap & jquery links working fine as usual, when added fullcalendar fires that error.
Removing fullcalendar works fine again, adding fullcalendar, error again.
It makes no sense to me because there is no 404 error, just `"Call to undefined fun... |
29,716,694 | I wanted to learn laravel framework. I could install laravel in my webserver(Wamp) and i get some tutorial to learn it but when i tryed to add style to 'h1' tag in the hello.php file place in this path:("C:\wamp\www\laravel-master\app\views\hello.php") by asset() function, above mentioned error occurred.
please help me... | 2015/04/18 | [
"https://Stackoverflow.com/questions/29716694",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2675078/"
] | I'm using Laravel version 5.2
and I've no problem using this :
```
<!-- JavaScripts -->
<script src="{{ asset('js/main.js') }}"></script>
``` | Today I've run in the same strange situation. A blade file with standard bootstrap & jquery links working fine as usual, when added fullcalendar fires that error.
Removing fullcalendar works fine again, adding fullcalendar, error again.
It makes no sense to me because there is no 404 error, just `"Call to undefined fun... |
69,920,890 | I have this 3 classes :
```
TClassA = Class(Tobject);
end;
TClassB = Class(Tobject);
Child: TClassA;
end;
TClassC = Class(Tobject);
Child: TClassB;
end;
```
Now I need to override this hierarchy like this :
```
TMyClassA = Class(TClassA);
end;
TMyClassB = Class(TClassB);
Child: TMyClassA;
end;
TMyClassC... | 2021/11/10 | [
"https://Stackoverflow.com/questions/69920890",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1114043/"
] | **UPDATE**
As noticed by @Holger in the comments, a simpler and Java 8 compatible approach:
```
conditions.stream()
.flatMap(condition -> arguments.stream()
.filter(argument -> argument.contains(condition)))
.findFirst().orElse("");
```
---
*Java 8:*
```
conditions.stream()
... | If it's not important which exact `argument` you return as long as at least one `condition` is contained in it, then you can get it a bit shorter by streaming over `arguments` before `conditions`. Like this:
```
return arguments.stream()
.filter(argument -> conditions.stream()
.anyMatch(condition -> argume... |
9,407,561 | Okay, I'm sure there's something I'm missing here, but I have no idea what it is and I'm hoping someone could help me figure it out.
I'm reading in input from the command line and was writing a function that uses fgetc() to do so. However, a seemingly superficial change in the function causes it to behave completely d... | 2012/02/23 | [
"https://Stackoverflow.com/questions/9407561",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1227489/"
] | The [man page](http://www.kernel.org/doc/man-pages/online/pages/man2/setitimer.2.html) documents the `timeval` structure:
```
struct timeval {
long tv_sec; /* seconds */
long tv_usec; /* microseconds */
};
```
If you want to wait a whole number of seconds, you'd just set `tv_sec`... | Yes, the total time is the sum of both. tv\_sec is the seconds. And tv\_usec is microseconds beyond that. |
9,407,561 | Okay, I'm sure there's something I'm missing here, but I have no idea what it is and I'm hoping someone could help me figure it out.
I'm reading in input from the command line and was writing a function that uses fgetc() to do so. However, a seemingly superficial change in the function causes it to behave completely d... | 2012/02/23 | [
"https://Stackoverflow.com/questions/9407561",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1227489/"
] | Yes, the total time is the sum of both. tv\_sec is the seconds. And tv\_usec is microseconds beyond that. | I've had a memory leak because of that I didn't set tv\_usec. Comuter takes a sum of those two values and if you not initialize one of them the sum value could be random. |
9,407,561 | Okay, I'm sure there's something I'm missing here, but I have no idea what it is and I'm hoping someone could help me figure it out.
I'm reading in input from the command line and was writing a function that uses fgetc() to do so. However, a seemingly superficial change in the function causes it to behave completely d... | 2012/02/23 | [
"https://Stackoverflow.com/questions/9407561",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1227489/"
] | Yes, the total time is the sum of both. tv\_sec is the seconds. And tv\_usec is microseconds beyond that. | >
> long int tv\_usec This is the rest of the elapsed time (a fraction of a
> second), represented as the number of microseconds. It is always less
> than one million.
>
>
>
tv\_sec will handle the full seconds, while tv\_usec handles the microseconds.
The microseconds will reset back to 0 when it get to its ma... |
9,407,561 | Okay, I'm sure there's something I'm missing here, but I have no idea what it is and I'm hoping someone could help me figure it out.
I'm reading in input from the command line and was writing a function that uses fgetc() to do so. However, a seemingly superficial change in the function causes it to behave completely d... | 2012/02/23 | [
"https://Stackoverflow.com/questions/9407561",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1227489/"
] | The [man page](http://www.kernel.org/doc/man-pages/online/pages/man2/setitimer.2.html) documents the `timeval` structure:
```
struct timeval {
long tv_sec; /* seconds */
long tv_usec; /* microseconds */
};
```
If you want to wait a whole number of seconds, you'd just set `tv_sec`... | The structure is described though:
```
struct timeval {
long tv_sec; /* seconds */
long tv_usec; /* microseconds */
};
```
As you see, the total time is `tv_sec + (1.0/1000000) * tv_usec` seconds. That's why when you need times under a second you set `tv_usec`, when you need time... |
9,407,561 | Okay, I'm sure there's something I'm missing here, but I have no idea what it is and I'm hoping someone could help me figure it out.
I'm reading in input from the command line and was writing a function that uses fgetc() to do so. However, a seemingly superficial change in the function causes it to behave completely d... | 2012/02/23 | [
"https://Stackoverflow.com/questions/9407561",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1227489/"
] | The structure is described though:
```
struct timeval {
long tv_sec; /* seconds */
long tv_usec; /* microseconds */
};
```
As you see, the total time is `tv_sec + (1.0/1000000) * tv_usec` seconds. That's why when you need times under a second you set `tv_usec`, when you need time... | I've had a memory leak because of that I didn't set tv\_usec. Comuter takes a sum of those two values and if you not initialize one of them the sum value could be random. |
9,407,561 | Okay, I'm sure there's something I'm missing here, but I have no idea what it is and I'm hoping someone could help me figure it out.
I'm reading in input from the command line and was writing a function that uses fgetc() to do so. However, a seemingly superficial change in the function causes it to behave completely d... | 2012/02/23 | [
"https://Stackoverflow.com/questions/9407561",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1227489/"
] | The structure is described though:
```
struct timeval {
long tv_sec; /* seconds */
long tv_usec; /* microseconds */
};
```
As you see, the total time is `tv_sec + (1.0/1000000) * tv_usec` seconds. That's why when you need times under a second you set `tv_usec`, when you need time... | >
> long int tv\_usec This is the rest of the elapsed time (a fraction of a
> second), represented as the number of microseconds. It is always less
> than one million.
>
>
>
tv\_sec will handle the full seconds, while tv\_usec handles the microseconds.
The microseconds will reset back to 0 when it get to its ma... |
9,407,561 | Okay, I'm sure there's something I'm missing here, but I have no idea what it is and I'm hoping someone could help me figure it out.
I'm reading in input from the command line and was writing a function that uses fgetc() to do so. However, a seemingly superficial change in the function causes it to behave completely d... | 2012/02/23 | [
"https://Stackoverflow.com/questions/9407561",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1227489/"
] | The [man page](http://www.kernel.org/doc/man-pages/online/pages/man2/setitimer.2.html) documents the `timeval` structure:
```
struct timeval {
long tv_sec; /* seconds */
long tv_usec; /* microseconds */
};
```
If you want to wait a whole number of seconds, you'd just set `tv_sec`... | I've had a memory leak because of that I didn't set tv\_usec. Comuter takes a sum of those two values and if you not initialize one of them the sum value could be random. |
9,407,561 | Okay, I'm sure there's something I'm missing here, but I have no idea what it is and I'm hoping someone could help me figure it out.
I'm reading in input from the command line and was writing a function that uses fgetc() to do so. However, a seemingly superficial change in the function causes it to behave completely d... | 2012/02/23 | [
"https://Stackoverflow.com/questions/9407561",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1227489/"
] | The [man page](http://www.kernel.org/doc/man-pages/online/pages/man2/setitimer.2.html) documents the `timeval` structure:
```
struct timeval {
long tv_sec; /* seconds */
long tv_usec; /* microseconds */
};
```
If you want to wait a whole number of seconds, you'd just set `tv_sec`... | >
> long int tv\_usec This is the rest of the elapsed time (a fraction of a
> second), represented as the number of microseconds. It is always less
> than one million.
>
>
>
tv\_sec will handle the full seconds, while tv\_usec handles the microseconds.
The microseconds will reset back to 0 when it get to its ma... |
9,407,561 | Okay, I'm sure there's something I'm missing here, but I have no idea what it is and I'm hoping someone could help me figure it out.
I'm reading in input from the command line and was writing a function that uses fgetc() to do so. However, a seemingly superficial change in the function causes it to behave completely d... | 2012/02/23 | [
"https://Stackoverflow.com/questions/9407561",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1227489/"
] | >
> long int tv\_usec This is the rest of the elapsed time (a fraction of a
> second), represented as the number of microseconds. It is always less
> than one million.
>
>
>
tv\_sec will handle the full seconds, while tv\_usec handles the microseconds.
The microseconds will reset back to 0 when it get to its ma... | I've had a memory leak because of that I didn't set tv\_usec. Comuter takes a sum of those two values and if you not initialize one of them the sum value could be random. |
29,321,342 | I've got a < table > - < tr > - < td > structure. Each < td > includes a < div > with three < span > inside.
I need a function, which returns the clicked < td > every time I click either < td > or any of its elements (< div >, < span >#1, < span >#2, < span >#3).
What I tried is setting z-index property to < td > of h... | 2015/03/28 | [
"https://Stackoverflow.com/questions/29321342",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4440968/"
] | Try this...
```
document.addEventListener('click',function (e) {
var parentEl = null;
if (e.target.tagName === "TD") {
// When user clicks on TD
parentEl = e.target;
} else if (e.target.parentElement.tagName === "TD") {
// When user clicks on any of its child element (The DIVs and SPANs)
... | try using `parentNode` an attribute of the current DOM node:
```
document.addEventListener('click',function (e) {
alert('You clicked ' +e.target.parentNode);
e.preventDefault();
},false);
```
That should do the trick!
To make sure that you have not clicked on the TD element itself you could check:
```
TDnode =... |
35,842 | When the answer to a question can be summarized in one word, I've found myself wanting to retag questions with that answer as a tag. Is this good practice?
Example: If "lib-y" is a good answer to the question "What is a library to do X?", then retag the question with "lib-y". It makes it really easy to see the answer ... | 2010/01/15 | [
"https://meta.stackexchange.com/questions/35842",
"https://meta.stackexchange.com",
"https://meta.stackexchange.com/users/130147/"
] | If you're going to do this, I think it should only be done once an answer has been *accepted*. If that accepted answer deals with `lib-y`, then it makes sense to add the tag. However, if the author thinks that an answer dealing with `lib-z` helped them more, there probably shouldn't be a `lib-y` tag on the question. | I say go for it. Basically, the question is about `lib-y`, it's just that the author didn't know it.
Now, the purpose of tags is also to help people find the right answer, so if the question already has five good tags, I wouldn't change them. If it's got four tags or if its existing tags really suck octopus balls, the... |
14,387,336 | If each First/Last name pair is mapped to a unique user ID, how can I get the correct user ID when a user has the same First and Last names.
For example:
```
User ID First Name Last Name
123 Bob Moore
321 Bob Moore
```
When `Bob Moore` tries to login, how can my syst... | 2013/01/17 | [
"https://Stackoverflow.com/questions/14387336",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/759959/"
] | In your code you need to always use the User ID field. In other database structures/tables, if you want to join, you have to use User ID.
Never try to do the lookup based on first name/last name.
EDIT:
For logging in, you need things that are unique to distinguish between users. This is usually a login name, and most... | You can't. You will need to use a unique key to identify between the different Bob Moores. If there is nothing in your data schema that can do that, use an artifical key, such as an AUTO\_INCREMENTing primary key. |
10,545,923 | I need to create a custom user interface using extJS/JSP which will allow me to do following
1) create a data service using UI similar to carbon UI and deploy it.
2) create a esb service using UI similar to carbon UI and deploy it.
I could not find API available which can be integrated with other user interface and ... | 2012/05/11 | [
"https://Stackoverflow.com/questions/10545923",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1388645/"
] | Yes, you can create your own UI. This is possible with a design feature we have, which is called frontend/backend separation. Basically for each component, we have a front end UI component and a core backend component. And these two communicate with each other using web services. Basically a backend component exposes i... | You can use carbon studio(Now the WSO2 Developer Studio). |
7,144,977 | How can I read the enter key in a loop multiple times?
I've tried the following with no result.
```
char c;
for (i=0; i<n; i++){
c = getchar ();
fflushstdin ();
if (c == '\n'){
//do something
}
}
```
And fflushstdin:
```
void fflushstdin (){
int c;
while ((c = fgetc (stdin)) != EOF ... | 2011/08/22 | [
"https://Stackoverflow.com/questions/7144977",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/458093/"
] | Try
```
if (ch == 13) {
//do something
}
```
ASCII value of enter is 13, sometimes \n won't work. | You should go with:
```
char c;
for (i=0; i<n; i++){
c = getchar ();
fflushstdin ();
if (c == 13){
//do something
}
}
```
since `13` is ASCII code for `Enter` key. |
7,144,977 | How can I read the enter key in a loop multiple times?
I've tried the following with no result.
```
char c;
for (i=0; i<n; i++){
c = getchar ();
fflushstdin ();
if (c == '\n'){
//do something
}
}
```
And fflushstdin:
```
void fflushstdin (){
int c;
while ((c = fgetc (stdin)) != EOF ... | 2011/08/22 | [
"https://Stackoverflow.com/questions/7144977",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/458093/"
] | Try
```
if (ch == 13) {
//do something
}
```
ASCII value of enter is 13, sometimes \n won't work. | You always executing `getchar` twice (even when there is no need for that). Try limiting calls to `fflushstdin`:
```
char c;
for (i=0; i<n; i++){
c = getchar ();
if ((c != EOF) && (c != '\n')) fflushstdin ();
if (c == '\n'){
//do something
}
}
``` |
7,144,977 | How can I read the enter key in a loop multiple times?
I've tried the following with no result.
```
char c;
for (i=0; i<n; i++){
c = getchar ();
fflushstdin ();
if (c == '\n'){
//do something
}
}
```
And fflushstdin:
```
void fflushstdin (){
int c;
while ((c = fgetc (stdin)) != EOF ... | 2011/08/22 | [
"https://Stackoverflow.com/questions/7144977",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/458093/"
] | Why do you call fflushstdin()? If fgetc() returns something different from \n, that character is completely dropped.
This should work:
```
char prev = 0;
while(1)
{
char c = getchar();
if(c == '\n' && prev == c)
{
// double return pressed!
break;
}
prev = c;
}
``` | Try
```
if (ch == 13) {
//do something
}
```
ASCII value of enter is 13, sometimes \n won't work. |
7,144,977 | How can I read the enter key in a loop multiple times?
I've tried the following with no result.
```
char c;
for (i=0; i<n; i++){
c = getchar ();
fflushstdin ();
if (c == '\n'){
//do something
}
}
```
And fflushstdin:
```
void fflushstdin (){
int c;
while ((c = fgetc (stdin)) != EOF ... | 2011/08/22 | [
"https://Stackoverflow.com/questions/7144977",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/458093/"
] | You should go with:
```
char c;
for (i=0; i<n; i++){
c = getchar ();
fflushstdin ();
if (c == 13){
//do something
}
}
```
since `13` is ASCII code for `Enter` key. | You always executing `getchar` twice (even when there is no need for that). Try limiting calls to `fflushstdin`:
```
char c;
for (i=0; i<n; i++){
c = getchar ();
if ((c != EOF) && (c != '\n')) fflushstdin ();
if (c == '\n'){
//do something
}
}
``` |
7,144,977 | How can I read the enter key in a loop multiple times?
I've tried the following with no result.
```
char c;
for (i=0; i<n; i++){
c = getchar ();
fflushstdin ();
if (c == '\n'){
//do something
}
}
```
And fflushstdin:
```
void fflushstdin (){
int c;
while ((c = fgetc (stdin)) != EOF ... | 2011/08/22 | [
"https://Stackoverflow.com/questions/7144977",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/458093/"
] | Why do you call fflushstdin()? If fgetc() returns something different from \n, that character is completely dropped.
This should work:
```
char prev = 0;
while(1)
{
char c = getchar();
if(c == '\n' && prev == c)
{
// double return pressed!
break;
}
prev = c;
}
``` | You should go with:
```
char c;
for (i=0; i<n; i++){
c = getchar ();
fflushstdin ();
if (c == 13){
//do something
}
}
```
since `13` is ASCII code for `Enter` key. |
7,144,977 | How can I read the enter key in a loop multiple times?
I've tried the following with no result.
```
char c;
for (i=0; i<n; i++){
c = getchar ();
fflushstdin ();
if (c == '\n'){
//do something
}
}
```
And fflushstdin:
```
void fflushstdin (){
int c;
while ((c = fgetc (stdin)) != EOF ... | 2011/08/22 | [
"https://Stackoverflow.com/questions/7144977",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/458093/"
] | Why do you call fflushstdin()? If fgetc() returns something different from \n, that character is completely dropped.
This should work:
```
char prev = 0;
while(1)
{
char c = getchar();
if(c == '\n' && prev == c)
{
// double return pressed!
break;
}
prev = c;
}
``` | You always executing `getchar` twice (even when there is no need for that). Try limiting calls to `fflushstdin`:
```
char c;
for (i=0; i<n; i++){
c = getchar ();
if ((c != EOF) && (c != '\n')) fflushstdin ();
if (c == '\n'){
//do something
}
}
``` |
1,556,139 | Suppose I have this structure:
```
<one>
<two>
<three>3</three>
</two>
<two>
<three>4</three>
</two>
<two>
<three>3</three>
</two>
</one>
```
Is there anyway of getting to this :
```
<one>
<two>
<three>3</three>
</two>
<two>
<three>4</three>
</two>
</one>
```
u... | 2009/10/12 | [
"https://Stackoverflow.com/questions/1556139",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31610/"
] | How about one that does the whole thing in two lines?
```
seen = Hash.new(0)
node.traverse {|n| n.unlink if (seen[n.to_xml] += 1) > 1}
```
If there's a possibility of the same node appearing under two different parents, and you *don't* want those to be considered duplicates, you can change that second line to:
```
... | This page explains XML parsing in Ruby a little bit <http://developer.yahoo.com/ruby/ruby-xml.html>
This page explains some of the reasons why you want to use a proper parser over something like regular expressions:
<http://htmlparsing.icenine.ca>
At a glance, the approach you're using doesn't seem horrible. |
36,935,719 | I've got a problem handling self referencing model in my application using Automapper Projections. This is how my models look like:
```
public class Letter
{
public int? ParentId {get; set;}
public Letter ParentLetter {get; set;
public int Id {get; set;}
public string Title {get; set;}
public ... | 2016/04/29 | [
"https://Stackoverflow.com/questions/36935719",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | A couple of options here, but usually the best choice is to set a max depth on the Responses. AutoMapper will try to spider the properties, and you've got a self-referencing DTO. First try this:
```
CreateMap<Letter, LetterView>()
.ForMember(d => d.Responses, opt => opt.MaxDepth(3));
```
Another option is to pre... | You probably have [lazy loading](https://msdn.microsoft.com/en-us/library/dd456846(v=vs.100).aspx) enabled on your DbContext. Circular references may produce stack overflow exception. The best way to avoid it is to disable lazy loading :
```
context.ContextOptions.LazyLoadingEnabled = false;
// Bring entity from data... |
29,093 | I have created a few actions to add border and guide marks on images.
Depending on the border required, a different action button is used. Part of these actions are canvas size changes, image flips, etc.
Every time an action gets called, each of these steps (flips, canvas size changes) gets animated on screen. **Is... | 2014/04/04 | [
"https://graphicdesign.stackexchange.com/questions/29093",
"https://graphicdesign.stackexchange.com",
"https://graphicdesign.stackexchange.com/users/21447/"
] | It sounds to me like you have `Step by step` selected in the action playback options and maybe `Allow tool recording`, or perhaps both.
You need to go to the Actions panel and:
1. Click the menu icon at the top right corner
2. `Uncheck Allow Tool Recording`
3. Go to playback options... ( jump to the second image belo... | Whenever I run batches in Photoshop, I reduce the program's window to it's minimum size, thus effectively 'hiding' the images being processed, which speeds up batch processing considerably. That's been my experience, anyway. And that experience has been on Windows machines, not Macs, FWIW.
There was a time when I coul... |
29,093 | I have created a few actions to add border and guide marks on images.
Depending on the border required, a different action button is used. Part of these actions are canvas size changes, image flips, etc.
Every time an action gets called, each of these steps (flips, canvas size changes) gets animated on screen. **Is... | 2014/04/04 | [
"https://graphicdesign.stackexchange.com/questions/29093",
"https://graphicdesign.stackexchange.com",
"https://graphicdesign.stackexchange.com/users/21447/"
] | It sounds to me like you have `Step by step` selected in the action playback options and maybe `Allow tool recording`, or perhaps both.
You need to go to the Actions panel and:
1. Click the menu icon at the top right corner
2. `Uncheck Allow Tool Recording`
3. Go to playback options... ( jump to the second image belo... | For anyone interested, here's another method for Windows (tested on CC 2018).
Start your batch process as usual. Then, press `Win` + `M`, effectively minimizing all windows on screen and not allowing Photoshop to come up again.
You can check on your taskbar the file names of your batch. |
1,972,571 | If someone have ever use the PhotoViewController and so the MockPhotoSource in the three20 open source project can he told me how can I change the code to display photo store locally and not in the internet.
This is an example of the code to display one photo:
```
- (void)viewDidLoad {
self.photoSource = [[MockPh... | 2009/12/29 | [
"https://Stackoverflow.com/questions/1972571",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/194392/"
] | Ok I find a solution, it was not complicated I just need to use the bundle path just after initWithURL and smallURL like that:
```
initWithURL:(@"bundle://image.jpg")
smallURL:(@"bundle://smallimage.jpg")
```
Of course after I will use a database to display the path so I will put an argument after bundle I think it... | URL is not only for the resource on the internet, there's a [file URL](http://en.wikipedia.org/wiki/File_URI_scheme). Typically, you generate a file URL in Cocoa as in
>
> NSString\* path= some path in the file system ;
> NSURL\* fileURL=[NSURL fileURLWithPath:path];
>
>
>
Then you can use the fileURL as you ... |
42,462 | I am in a process of enforcing more strict VPN access policy after learning about the attack on PPTP with MSCHAP v2. Basically this I will be disabling the traditional PPP authentication methods and using an EAP method instead.
Windows provides quite a range of EAPs, among them EAP-MSCHAP v2. Am I correct to understan... | 2013/09/15 | [
"https://security.stackexchange.com/questions/42462",
"https://security.stackexchange.com",
"https://security.stackexchange.com/users/21231/"
] | If you are using PEAPv0 with EAP-MSCHAPv2 authentication then you should be secure as the MSCHAPv2 messages are sent through a TLS protected tunnel. If you would not use a protected tunnel, then you are indeed [vulnerable](https://www.cloudcracker.com/blog/2012/07/29/cracking-ms-chap-v2/). | In these cases since you are using a SSL VPN instead of the traditional IPSEC type tunneling, there is the possibility that you have the encyption turned off. You would have to verify the setting, but to me the only true secure way of doing this is through the strongest TLS 1.2. If you are tunneling and doing B2B, I wo... |
4,183,931 | Suppose I have a random vector $\textbf{X} = (X\_1, X\_2)^T$. Why should it be that the expected value of $\textbf{X}$ is defined to be $$E(\textbf{X}) = (E(X\_1), E(X\_2))^T?$$
After all, $X\_1$ and $X\_2$ may not be independent. It doesn't seem to make sense that we can compute the expected value of the vector by com... | 2021/06/26 | [
"https://math.stackexchange.com/questions/4183931",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/208270/"
] | Expected values are additive even for dependent random variables.
With $\mathbf X\_1:=(X\_1,0)^T$, $\mathbf X\_2:=(0,X\_2)^T$, You certainly agree that $E(\mathbf X\_1)=(E(X\_1),0)^T$ and $E(\mathbf X\_2)=(0,E(X\_2))^T$. Then
$$ E(\mathbf X)=E(\mathbf X\_1+\mathbf X\_2)=E(\mathbf X\_1)+E(\mathbf X\_2)=(E(X\_1),E(X\_2))... | You are forgetting about how expectation is linear and how crucial that is. If it makes you feel better, you can write your vector $X = (X\_1, 0) + (0, X\_2)$, and use linearity of expectation to take the expectation of $X$.
Yup, you can find the average of the marginal distributions of each coordinate separately to f... |
65,523,997 | I have a javascript array of objects like this:
```
// Id is not necessarily unique, orderly or for any specific purpose
var input = [
{ Id: 1, LongName: "Europe;Germany;Frankfurt", Attribute1: "some attribute" },
{ Id: 2, LongName: "Europe;Germany;Munich", Attribute1: "some attribute" },
{ Id: 7, LongName... | 2020/12/31 | [
"https://Stackoverflow.com/questions/65523997",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9175789/"
] | Here is a solution using nested [`reduce()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce) calls.
```js
const output = input.reduce((a, { LongName, ...attributes }) => {
const levels = LongName.split(';');
const lastLevel = levels.pop();
innerChildArray = levels... | ```
<script>
var input = [
{ Id: 1, LongName: "Europe;Germany;Frankfurt", Attribute1: "some attribute" },
{ Id: 2, LongName: "Europe;Germany;Munich", Attribute1: "some attribute" },
{ Id: 7, LongName: "Asia;Japan;Okinawa", Attribute1: "some attribute" },
{ Id: 8, LongName: "North Ame... |
65,523,997 | I have a javascript array of objects like this:
```
// Id is not necessarily unique, orderly or for any specific purpose
var input = [
{ Id: 1, LongName: "Europe;Germany;Frankfurt", Attribute1: "some attribute" },
{ Id: 2, LongName: "Europe;Germany;Munich", Attribute1: "some attribute" },
{ Id: 7, LongName... | 2020/12/31 | [
"https://Stackoverflow.com/questions/65523997",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9175789/"
] | Here is a solution using nested [`reduce()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce) calls.
```js
const output = input.reduce((a, { LongName, ...attributes }) => {
const levels = LongName.split(';');
const lastLevel = levels.pop();
innerChildArray = levels... | Use `forEach` loop to traverse
On each item, split the name by `;`
Check appropriate array (either parent or children array) to push. (using the `ptr_arr`)
```js
const process = (input, output = []) => {
input.forEach(({LongName, ...rest}) => {
const keys = LongName.split(";");
let ptr_arr = output;
... |
65,523,997 | I have a javascript array of objects like this:
```
// Id is not necessarily unique, orderly or for any specific purpose
var input = [
{ Id: 1, LongName: "Europe;Germany;Frankfurt", Attribute1: "some attribute" },
{ Id: 2, LongName: "Europe;Germany;Munich", Attribute1: "some attribute" },
{ Id: 7, LongName... | 2020/12/31 | [
"https://Stackoverflow.com/questions/65523997",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9175789/"
] | Here is a solution using nested [`reduce()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce) calls.
```js
const output = input.reduce((a, { LongName, ...attributes }) => {
const levels = LongName.split(';');
const lastLevel = levels.pop();
innerChildArray = levels... | ```js
var input = [
{ Id: 1, LongName: "Europe;Germany;Frankfurt", Attribute1: "some attribute" },
{ Id: 2, LongName: "Europe;Germany;Munich", Attribute1: "some attribute" },
{ Id: 7, LongName: "Asia;Japan;Okinawa", Attribute1: "some attribute" },
{ Id: 8, LongName: "North America;US;Seattle", Attribute... |
65,523,997 | I have a javascript array of objects like this:
```
// Id is not necessarily unique, orderly or for any specific purpose
var input = [
{ Id: 1, LongName: "Europe;Germany;Frankfurt", Attribute1: "some attribute" },
{ Id: 2, LongName: "Europe;Germany;Munich", Attribute1: "some attribute" },
{ Id: 7, LongName... | 2020/12/31 | [
"https://Stackoverflow.com/questions/65523997",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9175789/"
] | Here is a solution using nested [`reduce()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce) calls.
```js
const output = input.reduce((a, { LongName, ...attributes }) => {
const levels = LongName.split(';');
const lastLevel = levels.pop();
innerChildArray = levels... | This is an extended version of @pilchards answer that will handle the case of the `LongName` values specifying a variety of level names.
In this example the ids `412 ... 415` are a 4 level `LongName` nesting below an earlier added `New York` leaf. I also changed some of the variable names to be more indicative of thei... |
47,729 | For an input signal $x(t)$ and output signal $y(t)$ through an LTI system I $H(t)$ I have found and interesting property that concerns signals' power spectral densities:
$${\lvert H(\omega)\rvert}^2 = \frac{\phi\_y(\omega)}{\phi\_x(\omega)}$$
This relation gives me information on the magnitude of $H(\omega)$ but no p... | 2018/03/10 | [
"https://dsp.stackexchange.com/questions/47729",
"https://dsp.stackexchange.com",
"https://dsp.stackexchange.com/users/20488/"
] | The answer to your question is no.
The relationship you show is well known and used to relate the input to output of Gaussian stochastic processes through a linear filter. Any filter that has the same magnitude response $\mid H(\omega ) \mid$ will produce the same result.
One can often infer a phase by assumptions o... | The easiest way would be
$$H(\omega)=\frac{Y(\omega)}{X(\omega)}$$ which gives you both magnitude and phase. |
73,413,223 | I have a simple app, that should add `SelectedItem` from ComboBox to ListBox.
I have `Model`:Player
```
public class Player
{
public int ID { get; set; }
public string Name { get; set; }
private bool _isSelected = false;
public bool IsSelected
{
get { return _isSelected; }
set { _i... | 2022/08/19 | [
"https://Stackoverflow.com/questions/73413223",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19159073/"
] | **Resolved**
============
it was a problem with postman headers,i was able to fix the issue using the following headers :
```
Accept: application/json
X-Requested-With: XMLHttpRequest
``` | You should follow the naming convention first in all your classes.
As the information not very much clear but it should return 422 error status. It might be the problem that when validation is failed then it is trying to redirect none existence URL. Please check the type of method you are using in postman to call the ... |
73,413,223 | I have a simple app, that should add `SelectedItem` from ComboBox to ListBox.
I have `Model`:Player
```
public class Player
{
public int ID { get; set; }
public string Name { get; set; }
private bool _isSelected = false;
public bool IsSelected
{
get { return _isSelected; }
set { _i... | 2022/08/19 | [
"https://Stackoverflow.com/questions/73413223",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19159073/"
] | **Resolved**
============
it was a problem with postman headers,i was able to fix the issue using the following headers :
```
Accept: application/json
X-Requested-With: XMLHttpRequest
``` | It does not give 404, if the validation process is not successful, validation redirects back to the previous page, in your case it gives 404 because there is no rest API and a previous page ... let's agree here
it's very natural and you just have to write a small validation method for it
try it, add this method to you... |
45,831,428 | I want to get columns from 2 other tables to update in "a" table. This is like the mysql update statement -
```
UPDATE bucket_summary a,geo_count b, geo_state c
SET a.category_name=b.county_name,
a.state_code=c.state_code
WHERE a.category_id=b.county_geoid
AND b.state_fips=c.state_fips
AND a.categor... | 2017/08/23 | [
"https://Stackoverflow.com/questions/45831428",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7529256/"
] | ```
import pyspark.sql.functions as f
########
# data
########
df_a = sc.parallelize([
[None, None, '123', 'country'],
['sc2', 'cn2', '234', 'state'],
['sc3', 'cn3', '456', 'country']
]).toDF(('state_code', 'category_name', 'category_id', 'category'))
df_a.show()
df_b = sc.parallelize([
['789','Unit... | You have to do two distinct joins the `a.category == 'county'` cannot be in the join condition.
```py
df_a.filter(df_a.category == 'county').join(df_b, df_a.category == df_b.county_geoid, "leftouter").join(df_c, 'state_fips', 'leftouter')
``` |
458,721 | I find long sequences of standard includes annoying:
```
#include <vector>
#include <string>
#include <sstream>
#include <iostream>
```
Considering these header files change only very rarely, is there a reason why I should not make a "std.h" file #including all std headers and just use that everywhere? | 2009/01/19 | [
"https://Stackoverflow.com/questions/458721",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | Including unnecessary header files will increase compile times. | This would also increase the size of your object files, which probably isn't a big deal these days.
*Edited per comments that the binary would not actually be larger* |
458,721 | I find long sequences of standard includes annoying:
```
#include <vector>
#include <string>
#include <sstream>
#include <iostream>
```
Considering these header files change only very rarely, is there a reason why I should not make a "std.h" file #including all std headers and just use that everywhere? | 2009/01/19 | [
"https://Stackoverflow.com/questions/458721",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | You might like to add these to your project's standard, precompiled header file: if your project has a standard, precompiled header file, and if your files aren't supposed to be reusuable in other projects which might have a different standard header file. | I hate to create a new answer for this, but I basically want to put both Brian Ensink and ChrisW's answer together:
First off, as Brian mentioned, your compile times will skyrocket as it's including tonnes of files every time it compiles. Luckily it looks like it's standard includes, so they shouldn't be changing all ... |
458,721 | I find long sequences of standard includes annoying:
```
#include <vector>
#include <string>
#include <sstream>
#include <iostream>
```
Considering these header files change only very rarely, is there a reason why I should not make a "std.h" file #including all std headers and just use that everywhere? | 2009/01/19 | [
"https://Stackoverflow.com/questions/458721",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | Including unnecessary header files will increase compile times. | If you're not actually using it, it should not be included. |
458,721 | I find long sequences of standard includes annoying:
```
#include <vector>
#include <string>
#include <sstream>
#include <iostream>
```
Considering these header files change only very rarely, is there a reason why I should not make a "std.h" file #including all std headers and just use that everywhere? | 2009/01/19 | [
"https://Stackoverflow.com/questions/458721",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | If you're not actually using it, it should not be included. | It reduces your code readability (oddly enough :)). By including them all in one header file, you can no longer tell just by looking at the top of a file what translation units are including iostreams (and therefore doing IO), fstream (and doing file access) etc.
I'd suggest using an IDE that allows folding of include... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.