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 |
|---|---|---|---|---|---|
125,225 | Given the same amount of exposure, sometimes you may prefer smaller or bigger aperture because you may want high or low depth of field.
Similarly, sometimes you may prefer slow or fast shutter speed, because you may want to freeze the action or you may want the blurred effect.
In case of ISO, is there ever a reason... | 2021/06/18 | [
"https://photo.stackexchange.com/questions/125225",
"https://photo.stackexchange.com",
"https://photo.stackexchange.com/users/99572/"
] | Generally, the best image quality will be obtained at base ISO, which is usually the lowest ISO setting normally available. Some cameras let the user set an ISO value lower than the base ISO by enabling "expanded" ISO settings. In that case dynamic range is reduced.
See PetaPixel: [Lower ISO Doesn’t Always Lead to Hig... | On film, the ISO value is a trade-off between sensitivity and coarseness.
A film with a different ISO value had more of certain chemicals.
On digital cameras, the trade-off is between sensitivity and noise.
Of course, on a digital camera, the image captor is not replaced when you select a different ISO value.
What is... |
125,225 | Given the same amount of exposure, sometimes you may prefer smaller or bigger aperture because you may want high or low depth of field.
Similarly, sometimes you may prefer slow or fast shutter speed, because you may want to freeze the action or you may want the blurred effect.
In case of ISO, is there ever a reason... | 2021/06/18 | [
"https://photo.stackexchange.com/questions/125225",
"https://photo.stackexchange.com",
"https://photo.stackexchange.com/users/99572/"
] | While aperture and speed control the amount of light that reachs de the sensor, ISO only controls the amplification of the signal.
So, in a world of perfect sensors there would be no difference between high and low ISO.
That's why with a different combination of aperture and speed you may get the same exposure, but di... | You may want to force the camera to use a different noise reduction algorithm.
------------------------------------------------------------------------------
Some camera use different noise reduction algorithms for different ISO settings. You can, for example, let the camera smooth out skin imperfections by taking a p... |
125,225 | Given the same amount of exposure, sometimes you may prefer smaller or bigger aperture because you may want high or low depth of field.
Similarly, sometimes you may prefer slow or fast shutter speed, because you may want to freeze the action or you may want the blurred effect.
In case of ISO, is there ever a reason... | 2021/06/18 | [
"https://photo.stackexchange.com/questions/125225",
"https://photo.stackexchange.com",
"https://photo.stackexchange.com/users/99572/"
] | Apart from the obvious consideration that high ISOs will be preferred in situations of low available light, one further point not yet mentioned is that in the context of film, different emulsions with different ISO ratings have vastly different grain characteristics. Sometimes prominent grain (high ISO) is chosen for i... | On film, the ISO value is a trade-off between sensitivity and coarseness.
A film with a different ISO value had more of certain chemicals.
On digital cameras, the trade-off is between sensitivity and noise.
Of course, on a digital camera, the image captor is not replaced when you select a different ISO value.
What is... |
125,225 | Given the same amount of exposure, sometimes you may prefer smaller or bigger aperture because you may want high or low depth of field.
Similarly, sometimes you may prefer slow or fast shutter speed, because you may want to freeze the action or you may want the blurred effect.
In case of ISO, is there ever a reason... | 2021/06/18 | [
"https://photo.stackexchange.com/questions/125225",
"https://photo.stackexchange.com",
"https://photo.stackexchange.com/users/99572/"
] | Generally, the best image quality will be obtained at base ISO, which is usually the lowest ISO setting normally available. Some cameras let the user set an ISO value lower than the base ISO by enabling "expanded" ISO settings. In that case dynamic range is reduced.
See PetaPixel: [Lower ISO Doesn’t Always Lead to Hig... | Apart from the obvious consideration that high ISOs will be preferred in situations of low available light, one further point not yet mentioned is that in the context of film, different emulsions with different ISO ratings have vastly different grain characteristics. Sometimes prominent grain (high ISO) is chosen for i... |
125,225 | Given the same amount of exposure, sometimes you may prefer smaller or bigger aperture because you may want high or low depth of field.
Similarly, sometimes you may prefer slow or fast shutter speed, because you may want to freeze the action or you may want the blurred effect.
In case of ISO, is there ever a reason... | 2021/06/18 | [
"https://photo.stackexchange.com/questions/125225",
"https://photo.stackexchange.com",
"https://photo.stackexchange.com/users/99572/"
] | If you *actually* cannot choose from among several photos, your inability to choose means there is no significant difference among them, regardless of ISO. Just pick one randomly and move on.
---
*All other things being equal*, there is about a stop of ISO values that would result in correct exposure. Within that ran... | While aperture and speed control the amount of light that reachs de the sensor, ISO only controls the amplification of the signal.
So, in a world of perfect sensors there would be no difference between high and low ISO.
That's why with a different combination of aperture and speed you may get the same exposure, but di... |
72,954,078 | Using [Registration-free WinRT](https://blogs.windows.com/windowsdeveloper/2019/04/30/enhancing-non-packaged-desktop-apps-using-windows-runtime-components/) it is possible to load WinRT components inside Win32 application.
What's the process to load WinRT component from inside Win32 dll? I tried the steps mentioned as... | 2022/07/12 | [
"https://Stackoverflow.com/questions/72954078",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10131833/"
] | I suppose the only problem you could face, is that if the field has a null value. To be safe, wrap the field with the [Nz()](https://support.microsoft.com/en-us/office/nz-function-8ef85549-cc9c-438b-860a-7fd9f4c69b6c) function which replaces null to the given argument.
```
Max(Nz([YourFieldName],0))
```
When the fie... | You want *"the function that is similar to the one in Excel `Max(A1,0)`"*. That specific expression evaluates only 2 values: whatever value is in cell A1; and zero.
So I think you want an expression for your computed field which yields results similar to this ...
| YourField | Desired Result |
| --- | --- |
| 1 | 1 |... |
72,954,078 | Using [Registration-free WinRT](https://blogs.windows.com/windowsdeveloper/2019/04/30/enhancing-non-packaged-desktop-apps-using-windows-runtime-components/) it is possible to load WinRT components inside Win32 application.
What's the process to load WinRT component from inside Win32 dll? I tried the steps mentioned as... | 2022/07/12 | [
"https://Stackoverflow.com/questions/72954078",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10131833/"
] | I suppose the only problem you could face, is that if the field has a null value. To be safe, wrap the field with the [Nz()](https://support.microsoft.com/en-us/office/nz-function-8ef85549-cc9c-438b-860a-7fd9f4c69b6c) function which replaces null to the given argument.
```
Max(Nz([YourFieldName],0))
```
When the fie... | SELECT IIf(YourField > 0, YourField, 0)
FROM YourTable;
This is what I had done, but i thought there was another way
Thank you very much for your quick responses |
38,329,340 | ### What I'm trying to do
I have a size-limited box which is supposed to contain some text:
```css
.box {
width: 100px;
height: 40px;
background-color: yellow;
}
```
```html
<div class="box">
Some text goes here.
</div>
```
However, if the text becomes too long to fit in the box, I want to replace that text... | 2016/07/12 | [
"https://Stackoverflow.com/questions/38329340",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/242762/"
] | I've done something similar by using `overflow:hidden` and floating `divs`.
```html
<div style="overflow:hidden;height:1.2em;">
<div style="float:left">Rudolph</div>
<div style="float:right">Raspe</div>
Erich
</div>
```
So, on a small block you'll get *Rudolph Raspe*, on a big - *Rudolph Erich Raspe*.
Obvi... | I was having some fun with a single-line solution, I realise the multi-line solution may be a better fit for the OP. I'm just sticking it up here in case it's useful to anyone. I ran a quick test on the latest versions of Firefox, Chrome, IE and Edge, and it seems to work fine everywhere. I've added some fixed width bo... |
38,329,340 | ### What I'm trying to do
I have a size-limited box which is supposed to contain some text:
```css
.box {
width: 100px;
height: 40px;
background-color: yellow;
}
```
```html
<div class="box">
Some text goes here.
</div>
```
However, if the text becomes too long to fit in the box, I want to replace that text... | 2016/07/12 | [
"https://Stackoverflow.com/questions/38329340",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/242762/"
] | There is a way... kinda...
```css
.box {
width: 100px;
height: 18px;
background-color: yellow;
overflow: hidden;
position: relative;
margin-bottom: 20px;
}
span { position: absolute; bottom: 0; left: 0; width: 100%; max-height: 36px; }
em { position: absolute; width: 100%; top: 18px; left: 0; b... | I was having some fun with a single-line solution, I realise the multi-line solution may be a better fit for the OP. I'm just sticking it up here in case it's useful to anyone. I ran a quick test on the latest versions of Firefox, Chrome, IE and Edge, and it seems to work fine everywhere. I've added some fixed width bo... |
38,329,340 | ### What I'm trying to do
I have a size-limited box which is supposed to contain some text:
```css
.box {
width: 100px;
height: 40px;
background-color: yellow;
}
```
```html
<div class="box">
Some text goes here.
</div>
```
However, if the text becomes too long to fit in the box, I want to replace that text... | 2016/07/12 | [
"https://Stackoverflow.com/questions/38329340",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/242762/"
] | I was having some fun with a single-line solution, I realise the multi-line solution may be a better fit for the OP. I'm just sticking it up here in case it's useful to anyone. I ran a quick test on the latest versions of Firefox, Chrome, IE and Edge, and it seems to work fine everywhere. I've added some fixed width bo... | I know it's not a true answer, but rather an alternative. Is there any reason you can't use text-overflow?
```
.box span {
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
```
Helpful link:
<https://css-tricks.com/almanac/properties/t/text-overflow/> |
38,329,340 | ### What I'm trying to do
I have a size-limited box which is supposed to contain some text:
```css
.box {
width: 100px;
height: 40px;
background-color: yellow;
}
```
```html
<div class="box">
Some text goes here.
</div>
```
However, if the text becomes too long to fit in the box, I want to replace that text... | 2016/07/12 | [
"https://Stackoverflow.com/questions/38329340",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/242762/"
] | I've done something similar by using `overflow:hidden` and floating `divs`.
```html
<div style="overflow:hidden;height:1.2em;">
<div style="float:left">Rudolph</div>
<div style="float:right">Raspe</div>
Erich
</div>
```
So, on a small block you'll get *Rudolph Raspe*, on a big - *Rudolph Erich Raspe*.
Obvi... | **Pure CSS Solution:**
Using:
```
<div class="box" data-shortname="Baron Munchausen">
Hieronymus Karl Friedrich von Munchhausen
</div>
```
For ages I tried to do something using `box::after` and `z-index`:
```
box {
position: relative;
display: block;
width: 120px;
height: 40px;
background-... |
38,329,340 | ### What I'm trying to do
I have a size-limited box which is supposed to contain some text:
```css
.box {
width: 100px;
height: 40px;
background-color: yellow;
}
```
```html
<div class="box">
Some text goes here.
</div>
```
However, if the text becomes too long to fit in the box, I want to replace that text... | 2016/07/12 | [
"https://Stackoverflow.com/questions/38329340",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/242762/"
] | There is a way... kinda...
```css
.box {
width: 100px;
height: 18px;
background-color: yellow;
overflow: hidden;
position: relative;
margin-bottom: 20px;
}
span { position: absolute; bottom: 0; left: 0; width: 100%; max-height: 36px; }
em { position: absolute; width: 100%; top: 18px; left: 0; b... | There are actually a lot of ways this 'could' be done if the sizes and patterns were constant...but in your example with the names, the short text is not even part of the long text in both cases, it's a different string entirely in the second example, which limits your options in terms of showing/hiding/overlapping
If... |
38,329,340 | ### What I'm trying to do
I have a size-limited box which is supposed to contain some text:
```css
.box {
width: 100px;
height: 40px;
background-color: yellow;
}
```
```html
<div class="box">
Some text goes here.
</div>
```
However, if the text becomes too long to fit in the box, I want to replace that text... | 2016/07/12 | [
"https://Stackoverflow.com/questions/38329340",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/242762/"
] | There is a way... kinda...
```css
.box {
width: 100px;
height: 18px;
background-color: yellow;
overflow: hidden;
position: relative;
margin-bottom: 20px;
}
span { position: absolute; bottom: 0; left: 0; width: 100%; max-height: 36px; }
em { position: absolute; width: 100%; top: 18px; left: 0; b... | I've done something similar by using `overflow:hidden` and floating `divs`.
```html
<div style="overflow:hidden;height:1.2em;">
<div style="float:left">Rudolph</div>
<div style="float:right">Raspe</div>
Erich
</div>
```
So, on a small block you'll get *Rudolph Raspe*, on a big - *Rudolph Erich Raspe*.
Obvi... |
38,329,340 | ### What I'm trying to do
I have a size-limited box which is supposed to contain some text:
```css
.box {
width: 100px;
height: 40px;
background-color: yellow;
}
```
```html
<div class="box">
Some text goes here.
</div>
```
However, if the text becomes too long to fit in the box, I want to replace that text... | 2016/07/12 | [
"https://Stackoverflow.com/questions/38329340",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/242762/"
] | I've done something similar by using `overflow:hidden` and floating `divs`.
```html
<div style="overflow:hidden;height:1.2em;">
<div style="float:left">Rudolph</div>
<div style="float:right">Raspe</div>
Erich
</div>
```
So, on a small block you'll get *Rudolph Raspe*, on a big - *Rudolph Erich Raspe*.
Obvi... | There are actually a lot of ways this 'could' be done if the sizes and patterns were constant...but in your example with the names, the short text is not even part of the long text in both cases, it's a different string entirely in the second example, which limits your options in terms of showing/hiding/overlapping
If... |
38,329,340 | ### What I'm trying to do
I have a size-limited box which is supposed to contain some text:
```css
.box {
width: 100px;
height: 40px;
background-color: yellow;
}
```
```html
<div class="box">
Some text goes here.
</div>
```
However, if the text becomes too long to fit in the box, I want to replace that text... | 2016/07/12 | [
"https://Stackoverflow.com/questions/38329340",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/242762/"
] | I've done something similar by using `overflow:hidden` and floating `divs`.
```html
<div style="overflow:hidden;height:1.2em;">
<div style="float:left">Rudolph</div>
<div style="float:right">Raspe</div>
Erich
</div>
```
So, on a small block you'll get *Rudolph Raspe*, on a big - *Rudolph Erich Raspe*.
Obvi... | I know it's not a true answer, but rather an alternative. Is there any reason you can't use text-overflow?
```
.box span {
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
```
Helpful link:
<https://css-tricks.com/almanac/properties/t/text-overflow/> |
38,329,340 | ### What I'm trying to do
I have a size-limited box which is supposed to contain some text:
```css
.box {
width: 100px;
height: 40px;
background-color: yellow;
}
```
```html
<div class="box">
Some text goes here.
</div>
```
However, if the text becomes too long to fit in the box, I want to replace that text... | 2016/07/12 | [
"https://Stackoverflow.com/questions/38329340",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/242762/"
] | There is a way... kinda...
```css
.box {
width: 100px;
height: 18px;
background-color: yellow;
overflow: hidden;
position: relative;
margin-bottom: 20px;
}
span { position: absolute; bottom: 0; left: 0; width: 100%; max-height: 36px; }
em { position: absolute; width: 100%; top: 18px; left: 0; b... | **Pure CSS Solution:**
Using:
```
<div class="box" data-shortname="Baron Munchausen">
Hieronymus Karl Friedrich von Munchhausen
</div>
```
For ages I tried to do something using `box::after` and `z-index`:
```
box {
position: relative;
display: block;
width: 120px;
height: 40px;
background-... |
38,329,340 | ### What I'm trying to do
I have a size-limited box which is supposed to contain some text:
```css
.box {
width: 100px;
height: 40px;
background-color: yellow;
}
```
```html
<div class="box">
Some text goes here.
</div>
```
However, if the text becomes too long to fit in the box, I want to replace that text... | 2016/07/12 | [
"https://Stackoverflow.com/questions/38329340",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/242762/"
] | I was having some fun with a single-line solution, I realise the multi-line solution may be a better fit for the OP. I'm just sticking it up here in case it's useful to anyone. I ran a quick test on the latest versions of Firefox, Chrome, IE and Edge, and it seems to work fine everywhere. I've added some fixed width bo... | There are actually a lot of ways this 'could' be done if the sizes and patterns were constant...but in your example with the names, the short text is not even part of the long text in both cases, it's a different string entirely in the second example, which limits your options in terms of showing/hiding/overlapping
If... |
62,718,899 | For practical purposes, is hashing significantly better than using a BST? I don't like the fact that hash tables have a lot of things going on under the hood. In practice is log(n) so significantly worse than O(1) that I should avoid using a BST in place of a hash table where possible? | 2020/07/03 | [
"https://Stackoverflow.com/questions/62718899",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12532365/"
] | Since `int` can never be null, there is no way for room to map a database row, where `newColumn` is actually null, to an `int`.
`Integer` however can be null, since it is an `int` wrapped into an object, so try this instead:
```java
private Integer newColumn;
``` | if you are using kotlin you can use
@PrimaryKey(autoGenerate = true)
private long id
private String item?
private Int itemProductNum
private Int newColumn = 0
by giving a default value |
4,720,458 | I'd like to replicate the Digg login errors. At <http://www.digg.com> if you click on Login or Join Digg, and press continue without filling out any fields, it looks like they are using jQuery with the slidedown function to display the errors above the form.
How hard would it be to do something like this? What should... | 2011/01/18 | [
"https://Stackoverflow.com/questions/4720458",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/579407/"
] | I would attempt to replicate this using the [jQuery.validate](http://bassistance.de/jquery-plugins/jquery-plugin-validation/) library. It has the ability validate forms, and place the resulting errors anywhere in the DOM.
Then it would only be a matter of applying the correct CSS styling and jQuery to make the errors... | They are probably using Javascript to perform a [tween](http://en.wikipedia.org/wiki/Tweening) on a CSS property, such as `top`. If you're familiar to CSS, you can skip straight to JS.
Tutorials:
* [jQuery for designers](http://www.webdesignerwall.com/tutorials/jquery-tutorials-for-designers/)
* [Mootools Effects Qui... |
35,741,731 | I am using `console.log(...)` for debugging purposes. However the console gets messages from iframes too(I am using iframes in my HTML code). How can I see only the logs that I sent and not the logs that came from iframes? | 2016/03/02 | [
"https://Stackoverflow.com/questions/35741731",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3151759/"
] | Just filter out (using the Chrome's filter box) the log messages from the iFrame.
In Chrome's Console tab you have a Filter box, type there the name of the file you want to filer out, with a minus sign "-" before the file name.
You can filter multiply files, using space as a delimiter.
For example:
>
> -LogUtil.js ... | I wrote a logger service for the client side. I used a pattern by which I can filter out the logs/errors etc which are being produced by my script and not by the iframes.
```
function logger(){
var pattern="PC:";
var info=function(){
Array.prototype.unshift.apply(arguments, [pattern]);
console.... |
35,741,731 | I am using `console.log(...)` for debugging purposes. However the console gets messages from iframes too(I am using iframes in my HTML code). How can I see only the logs that I sent and not the logs that came from iframes? | 2016/03/02 | [
"https://Stackoverflow.com/questions/35741731",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3151759/"
] | You can add something like "?nofrm=1" to the src attribute of the page's script tags you want to see logs for. Then in Chrome you can type "nofrm" into the filter to get logs from only them scripts. Add "?nofrm=1" to the url if you want to log inline scripts too. | You can filter the logs by source / hide from other scripts than you own. It will of course only be a solution if you get logs from a smaller number of scripts
[](https://i.stack.imgur.com/A2SPy.png) |
35,741,731 | I am using `console.log(...)` for debugging purposes. However the console gets messages from iframes too(I am using iframes in my HTML code). How can I see only the logs that I sent and not the logs that came from iframes? | 2016/03/02 | [
"https://Stackoverflow.com/questions/35741731",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3151759/"
] | This is kinda old post, but still, for those who will come here for help:
In Chrome you can check the "Selected context only" [(screenshot here)](https://i.stack.imgur.com/8zlrQ.png) option, and it'll be this. | I wrote a logger service for the client side. I used a pattern by which I can filter out the logs/errors etc which are being produced by my script and not by the iframes.
```
function logger(){
var pattern="PC:";
var info=function(){
Array.prototype.unshift.apply(arguments, [pattern]);
console.... |
35,741,731 | I am using `console.log(...)` for debugging purposes. However the console gets messages from iframes too(I am using iframes in my HTML code). How can I see only the logs that I sent and not the logs that came from iframes? | 2016/03/02 | [
"https://Stackoverflow.com/questions/35741731",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3151759/"
] | This is kinda old post, but still, for those who will come here for help:
In Chrome you can check the "Selected context only" [(screenshot here)](https://i.stack.imgur.com/8zlrQ.png) option, and it'll be this. | You can filter the logs by source / hide from other scripts than you own. It will of course only be a solution if you get logs from a smaller number of scripts
[](https://i.stack.imgur.com/A2SPy.png) |
35,741,731 | I am using `console.log(...)` for debugging purposes. However the console gets messages from iframes too(I am using iframes in my HTML code). How can I see only the logs that I sent and not the logs that came from iframes? | 2016/03/02 | [
"https://Stackoverflow.com/questions/35741731",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3151759/"
] | Just filter out (using the Chrome's filter box) the log messages from the iFrame.
In Chrome's Console tab you have a Filter box, type there the name of the file you want to filer out, with a minus sign "-" before the file name.
You can filter multiply files, using space as a delimiter.
For example:
>
> -LogUtil.js ... | You can add something like "?nofrm=1" to the src attribute of the page's script tags you want to see logs for. Then in Chrome you can type "nofrm" into the filter to get logs from only them scripts. Add "?nofrm=1" to the url if you want to log inline scripts too. |
35,741,731 | I am using `console.log(...)` for debugging purposes. However the console gets messages from iframes too(I am using iframes in my HTML code). How can I see only the logs that I sent and not the logs that came from iframes? | 2016/03/02 | [
"https://Stackoverflow.com/questions/35741731",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3151759/"
] | How about adding a snippet in your JavaScript to catch errors thrown by the iFrames?
You could replace `[IFRAME ERROR MESSAGE]` with the errors your iFrame is throwing. If the snippet catches an error from an iFrame, it will do nothing, otherwise, it will output the error to the console:
```
window.onerror = function... | You can filter the logs by source / hide from other scripts than you own. It will of course only be a solution if you get logs from a smaller number of scripts
[](https://i.stack.imgur.com/A2SPy.png) |
35,741,731 | I am using `console.log(...)` for debugging purposes. However the console gets messages from iframes too(I am using iframes in my HTML code). How can I see only the logs that I sent and not the logs that came from iframes? | 2016/03/02 | [
"https://Stackoverflow.com/questions/35741731",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3151759/"
] | This is kinda old post, but still, for those who will come here for help:
In Chrome you can check the "Selected context only" [(screenshot here)](https://i.stack.imgur.com/8zlrQ.png) option, and it'll be this. | How about adding a snippet in your JavaScript to catch errors thrown by the iFrames?
You could replace `[IFRAME ERROR MESSAGE]` with the errors your iFrame is throwing. If the snippet catches an error from an iFrame, it will do nothing, otherwise, it will output the error to the console:
```
window.onerror = function... |
35,741,731 | I am using `console.log(...)` for debugging purposes. However the console gets messages from iframes too(I am using iframes in my HTML code). How can I see only the logs that I sent and not the logs that came from iframes? | 2016/03/02 | [
"https://Stackoverflow.com/questions/35741731",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3151759/"
] | This is kinda old post, but still, for those who will come here for help:
In Chrome you can check the "Selected context only" [(screenshot here)](https://i.stack.imgur.com/8zlrQ.png) option, and it'll be this. | Just filter out (using the Chrome's filter box) the log messages from the iFrame.
In Chrome's Console tab you have a Filter box, type there the name of the file you want to filer out, with a minus sign "-" before the file name.
You can filter multiply files, using space as a delimiter.
For example:
>
> -LogUtil.js ... |
35,741,731 | I am using `console.log(...)` for debugging purposes. However the console gets messages from iframes too(I am using iframes in my HTML code). How can I see only the logs that I sent and not the logs that came from iframes? | 2016/03/02 | [
"https://Stackoverflow.com/questions/35741731",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3151759/"
] | How about adding a snippet in your JavaScript to catch errors thrown by the iFrames?
You could replace `[IFRAME ERROR MESSAGE]` with the errors your iFrame is throwing. If the snippet catches an error from an iFrame, it will do nothing, otherwise, it will output the error to the console:
```
window.onerror = function... | You can add something like "?nofrm=1" to the src attribute of the page's script tags you want to see logs for. Then in Chrome you can type "nofrm" into the filter to get logs from only them scripts. Add "?nofrm=1" to the url if you want to log inline scripts too. |
35,741,731 | I am using `console.log(...)` for debugging purposes. However the console gets messages from iframes too(I am using iframes in my HTML code). How can I see only the logs that I sent and not the logs that came from iframes? | 2016/03/02 | [
"https://Stackoverflow.com/questions/35741731",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3151759/"
] | Just filter out (using the Chrome's filter box) the log messages from the iFrame.
In Chrome's Console tab you have a Filter box, type there the name of the file you want to filer out, with a minus sign "-" before the file name.
You can filter multiply files, using space as a delimiter.
For example:
>
> -LogUtil.js ... | You can filter the logs by source / hide from other scripts than you own. It will of course only be a solution if you get logs from a smaller number of scripts
[](https://i.stack.imgur.com/A2SPy.png) |
2,126,472 | I'm new to Perl but need to use it on a project I'm working on. What I need to do is check to see if a URL has a 301 redirect and if it has, get the location. The following told me the code but not the location:
```
use strict;
use warnings;
require LWP::UserAgent;
my $ua = LWP::UserAgent->new;
$ua->timeout(10);
$ua-... | 2010/01/24 | [
"https://Stackoverflow.com/questions/2126472",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/201469/"
] | The `$response->header` method comes from [HTTP::Headers](http://search.cpan.org/perldoc?HTTP::Headers) and allows you to inspect the specific headers returned from your request. To find the `Location` header, use
```
my $loc = $response->header( 'Location' );
``` | Use the headers contained in `HTTP::Response` ([`HTTP::Header`](http://search.cpan.org/perldoc?HTTP::Headers)), with `$response->header`. |
13,317,238 | I am migrating a Java Struts 2 Web App from Spring 2.5.x to Spring 3.1.x. I am using Spring 3.1.2.RELEASE with all the necessary modules. I have this App Context file being loaded for Spring Security configuration:
```html
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans... | 2012/11/09 | [
"https://Stackoverflow.com/questions/13317238",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/257816/"
] | regards to the documentation [Spring security](http://static.springsource.org/spring-security/site/docs/3.1.x/reference/springsecurity-single.html#ns-minimal), you should try this:
```
<http pattern="/css/**" security="none"/>
<http pattern="/login.jsp*" security="none"/>
<http auto-config='true'>
<intercep... | Please see: [A universal match pattern ('/\*\*') is defined before other patterns in the filter chain](https://jira.springsource.org/browse/SEC-2034) |
13,317,238 | I am migrating a Java Struts 2 Web App from Spring 2.5.x to Spring 3.1.x. I am using Spring 3.1.2.RELEASE with all the necessary modules. I have this App Context file being loaded for Spring Security configuration:
```html
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans... | 2012/11/09 | [
"https://Stackoverflow.com/questions/13317238",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/257816/"
] | Ok, after lots of different sets of eyes looking at the project, it looks as though it was likely a dependency conflict problem. The most likely candidate was where we were still importing spring-security-core-tiger-2.0.7 while we are using the 3.1.2 Spring version. We removed this dependency as cleaning up a lot of ot... | Please see: [A universal match pattern ('/\*\*') is defined before other patterns in the filter chain](https://jira.springsource.org/browse/SEC-2034) |
25,361,597 | I have `NSTableView` with custom `NSTableViewRow`. When user types in text i would like the row to resize while user is typing.
Now if i call on tableView `reloadData` cell looses the focus.
Is there any other way to make `NSTableView` resize the heights ? | 2014/08/18 | [
"https://Stackoverflow.com/questions/25361597",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2754158/"
] | Instead of reloading all the data you can use
```
reloadDataForRowIndexes:columnIndexes:
```
this reloads the particular row/column you specify (in your case the one that was just edited), and preserves the tableview selection. | For anyone else having the problem:
I haven't found any way of reloading row height in `NSTableView` without loosing focus. So My solution was to get rid of `NSTableView` and use `NSScrollView` with some customized `NSViews` instead.
Update: I recently noticed method which can be used to resize cell, dont know if it ... |
32,461,262 | I am very new in Javascript and trying to learn by experiencing it. Sorry if this question is a multiplication or super-easy one. I am using an open source server and I need to make some additions.. following is the part of code:
```
/**
* Event listener
*
* @param {SceneJS.node} hit Selected SceneJS node
*/
p... | 2015/09/08 | [
"https://Stackoverflow.com/questions/32461262",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4526151/"
] | You need to take the iterator which was "found" by `find`, and use it in `erase`, or it just isn't going to work.
The API functions are quite accurately documented, if you give them things they don't expect as arguments, they aren't going to do what you want.
If you pass `vector::erase` an `int`, it's going to try to... | An iterator is an "abstracted reference" to an element in a container class (in this case, a std::vector). You can change the erase function with:
```
unrepresented.erase(unrepresented.begin() + i);
```
If you are bothered about performance though, this is not a very efficient algorithm due to the `vector` data stru... |
32,461,262 | I am very new in Javascript and trying to learn by experiencing it. Sorry if this question is a multiplication or super-easy one. I am using an open source server and I need to make some additions.. following is the part of code:
```
/**
* Event listener
*
* @param {SceneJS.node} hit Selected SceneJS node
*/
p... | 2015/09/08 | [
"https://Stackoverflow.com/questions/32461262",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4526151/"
] | You need to take the iterator which was "found" by `find`, and use it in `erase`, or it just isn't going to work.
The API functions are quite accurately documented, if you give them things they don't expect as arguments, they aren't going to do what you want.
If you pass `vector::erase` an `int`, it's going to try to... | If you need the numbers between 0 and 14 in random order, I would recommend you to fill a vector with the numbers from 0 to 14 in order, and then use a shuffle, e.g. [`std::random_shuffle`](http://www.cplusplus.com/reference/algorithm/random_shuffle/). It is simple and will be truly random:
```
vector<int> v = {0,1,2,... |
32,461,262 | I am very new in Javascript and trying to learn by experiencing it. Sorry if this question is a multiplication or super-easy one. I am using an open source server and I need to make some additions.. following is the part of code:
```
/**
* Event listener
*
* @param {SceneJS.node} hit Selected SceneJS node
*/
p... | 2015/09/08 | [
"https://Stackoverflow.com/questions/32461262",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4526151/"
] | Could take an entirely different approach. Add all the numbers again at the back:
```
for (int i = 0; i < num; ++i) {
new_gene_array_one.push_back(i);
}
```
Now all the numbers are represented, though we may have duplicates. Use a set to keep track of which ones we've seen so far, and use the erase-remove idiom ... | An iterator is an "abstracted reference" to an element in a container class (in this case, a std::vector). You can change the erase function with:
```
unrepresented.erase(unrepresented.begin() + i);
```
If you are bothered about performance though, this is not a very efficient algorithm due to the `vector` data stru... |
32,461,262 | I am very new in Javascript and trying to learn by experiencing it. Sorry if this question is a multiplication or super-easy one. I am using an open source server and I need to make some additions.. following is the part of code:
```
/**
* Event listener
*
* @param {SceneJS.node} hit Selected SceneJS node
*/
p... | 2015/09/08 | [
"https://Stackoverflow.com/questions/32461262",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4526151/"
] | Could take an entirely different approach. Add all the numbers again at the back:
```
for (int i = 0; i < num; ++i) {
new_gene_array_one.push_back(i);
}
```
Now all the numbers are represented, though we may have duplicates. Use a set to keep track of which ones we've seen so far, and use the erase-remove idiom ... | If you need the numbers between 0 and 14 in random order, I would recommend you to fill a vector with the numbers from 0 to 14 in order, and then use a shuffle, e.g. [`std::random_shuffle`](http://www.cplusplus.com/reference/algorithm/random_shuffle/). It is simple and will be truly random:
```
vector<int> v = {0,1,2,... |
16,782,887 | Sorry for not knowing the basics of regular expressions and asking this, but I couldn't get to it myself.
I need to replace all expressions `PlayerTextDrawSetString(SSbank[playerid],strBank)`
with `PlayerTextDrawSetString(playerid,SSbank[playerid],strBank)`
,
```
PlayerTextDrawSetString(SWant[someid],strWant)
```
... | 2013/05/28 | [
"https://Stackoverflow.com/questions/16782887",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2418445/"
] | Try these expressions:
Search:
```
(PlayerTextDrawSetString\()(\w+\[)(\w+)
```
Replace:
```
\1\3,\2\3
``` | The first two examples work.
Search Pattern 1:
```
SSbank\[([^\]]+)\]
```
Replacement Pattern 1:
```
\1,SSbank[\1]
```
Search Pattern 2:
```
SWant\[([^\]]+)\]
```
Replacement Pattern 2:
```
\1,SWant[\1]
```
To go all out if you have a lot of these similar patterns you can do this:
Total Replacement Search... |
21,939 | the blockchain is about 20GB today, but i was wondering how much space does it take up each day if i were to leave bitcoinqt on regularly? also by hour? reason why im asking is im thinking about just putting the blockchain in my cloud drive (bitcasa.com) as my laptop has only so much space. if its not too much space th... | 2014/02/10 | [
"https://bitcoin.stackexchange.com/questions/21939",
"https://bitcoin.stackexchange.com",
"https://bitcoin.stackexchange.com/users/3029/"
] | The blockchain size growth is kind of approximately linear at this time (although I wouldn't expect it to continue linearly). See the nice graph at <https://blockchain.info/charts/blocks-size> and particularly check the "All Time" scale option.
Over the past year, the blockchain size has grown by approximately 10 GB. ... | Bitcoin-qt maintains a copy of the blockchain, which should be local for performance and trust reasons. It's not designed to have its copy of the blockchain stored on a remote server.
If the storage requirement is excessive for you, the solution is to use a lightweight client that does not require a copy of the blockc... |
21,939 | the blockchain is about 20GB today, but i was wondering how much space does it take up each day if i were to leave bitcoinqt on regularly? also by hour? reason why im asking is im thinking about just putting the blockchain in my cloud drive (bitcasa.com) as my laptop has only so much space. if its not too much space th... | 2014/02/10 | [
"https://bitcoin.stackexchange.com/questions/21939",
"https://bitcoin.stackexchange.com",
"https://bitcoin.stackexchange.com/users/3029/"
] | The blockchain size growth is kind of approximately linear at this time (although I wouldn't expect it to continue linearly). See the nice graph at <https://blockchain.info/charts/blocks-size> and particularly check the "All Time" scale option.
Over the past year, the blockchain size has grown by approximately 10 GB. ... | The others didn't notice, that the maximum block size is 1 MB now, so teoretically the bitcoin blockchain can grow by 6 MB per hour which makes 144 MB per day, which makes 52.5 GB per year!
This is, hovewer, highly unlikely. There are two reasons:
1. People do not use full block. This is just not needed at the time b... |
21,939 | the blockchain is about 20GB today, but i was wondering how much space does it take up each day if i were to leave bitcoinqt on regularly? also by hour? reason why im asking is im thinking about just putting the blockchain in my cloud drive (bitcasa.com) as my laptop has only so much space. if its not too much space th... | 2014/02/10 | [
"https://bitcoin.stackexchange.com/questions/21939",
"https://bitcoin.stackexchange.com",
"https://bitcoin.stackexchange.com/users/3029/"
] | The others didn't notice, that the maximum block size is 1 MB now, so teoretically the bitcoin blockchain can grow by 6 MB per hour which makes 144 MB per day, which makes 52.5 GB per year!
This is, hovewer, highly unlikely. There are two reasons:
1. People do not use full block. This is just not needed at the time b... | Bitcoin-qt maintains a copy of the blockchain, which should be local for performance and trust reasons. It's not designed to have its copy of the blockchain stored on a remote server.
If the storage requirement is excessive for you, the solution is to use a lightweight client that does not require a copy of the blockc... |
14,816,916 | I need to convert a date string -'2013-01-01' to number --20130101 type..How can I accomplish it in Oracle efficiently?
```
My Input-
'2013-01-01'
My Output
Output-20130101
``` | 2013/02/11 | [
"https://Stackoverflow.com/questions/14816916",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1050619/"
] | ```
select to_number(replace('2013-01-01', '-')) from dual;
``` | ```
to_char(your_date,'YYYYMMDD')
```
Just the basics of using to\_char with a date here. |
14,816,916 | I need to convert a date string -'2013-01-01' to number --20130101 type..How can I accomplish it in Oracle efficiently?
```
My Input-
'2013-01-01'
My Output
Output-20130101
``` | 2013/02/11 | [
"https://Stackoverflow.com/questions/14816916",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1050619/"
] | ```
to_char(your_date,'YYYYMMDD')
```
Just the basics of using to\_char with a date here. | You can also "exploit" the format mask:
```
select to_number('2013-01-01', '9999G99G99', 'nls_numeric_characters=,-')
from dual
```
[Here is a sqlfiddle demo](http://www.sqlfiddle.com/#!4/d41d8/7225) |
14,816,916 | I need to convert a date string -'2013-01-01' to number --20130101 type..How can I accomplish it in Oracle efficiently?
```
My Input-
'2013-01-01'
My Output
Output-20130101
``` | 2013/02/11 | [
"https://Stackoverflow.com/questions/14816916",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1050619/"
] | ```
to_char(your_date,'YYYYMMDD')
```
Just the basics of using to\_char with a date here. | To convert date string to number:
Always convert it to char first then to number:
```
Select TO_NUMBER(TO_CHAR(to_date('2013-01-01', 'YYYY-MM-DD'),'YYYYMMDD')) from dual
```
if your column datatype is DATE then use your column name in place of sysdate in the below:
```
Select TO_NUMBER(TO_CHAR(sysdate,'YYYYMMDD'))... |
14,816,916 | I need to convert a date string -'2013-01-01' to number --20130101 type..How can I accomplish it in Oracle efficiently?
```
My Input-
'2013-01-01'
My Output
Output-20130101
``` | 2013/02/11 | [
"https://Stackoverflow.com/questions/14816916",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1050619/"
] | ```
select to_number(replace('2013-01-01', '-')) from dual;
``` | You can also "exploit" the format mask:
```
select to_number('2013-01-01', '9999G99G99', 'nls_numeric_characters=,-')
from dual
```
[Here is a sqlfiddle demo](http://www.sqlfiddle.com/#!4/d41d8/7225) |
14,816,916 | I need to convert a date string -'2013-01-01' to number --20130101 type..How can I accomplish it in Oracle efficiently?
```
My Input-
'2013-01-01'
My Output
Output-20130101
``` | 2013/02/11 | [
"https://Stackoverflow.com/questions/14816916",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1050619/"
] | ```
select to_number(replace('2013-01-01', '-')) from dual;
``` | You can convert the string to date and convert back using the format that you want to:
```
select to_char(to_date('2013-01-01', 'YYYY-MM-DD'), 'YYYYMMDD');
```
More information about datetime format:
<http://docs.oracle.com/cd/B19306_01/server.102/b14200/sql_elements004.htm> |
14,816,916 | I need to convert a date string -'2013-01-01' to number --20130101 type..How can I accomplish it in Oracle efficiently?
```
My Input-
'2013-01-01'
My Output
Output-20130101
``` | 2013/02/11 | [
"https://Stackoverflow.com/questions/14816916",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1050619/"
] | ```
select to_number(replace('2013-01-01', '-')) from dual;
``` | To convert date string to number:
Always convert it to char first then to number:
```
Select TO_NUMBER(TO_CHAR(to_date('2013-01-01', 'YYYY-MM-DD'),'YYYYMMDD')) from dual
```
if your column datatype is DATE then use your column name in place of sysdate in the below:
```
Select TO_NUMBER(TO_CHAR(sysdate,'YYYYMMDD'))... |
14,816,916 | I need to convert a date string -'2013-01-01' to number --20130101 type..How can I accomplish it in Oracle efficiently?
```
My Input-
'2013-01-01'
My Output
Output-20130101
``` | 2013/02/11 | [
"https://Stackoverflow.com/questions/14816916",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1050619/"
] | You can convert the string to date and convert back using the format that you want to:
```
select to_char(to_date('2013-01-01', 'YYYY-MM-DD'), 'YYYYMMDD');
```
More information about datetime format:
<http://docs.oracle.com/cd/B19306_01/server.102/b14200/sql_elements004.htm> | You can also "exploit" the format mask:
```
select to_number('2013-01-01', '9999G99G99', 'nls_numeric_characters=,-')
from dual
```
[Here is a sqlfiddle demo](http://www.sqlfiddle.com/#!4/d41d8/7225) |
14,816,916 | I need to convert a date string -'2013-01-01' to number --20130101 type..How can I accomplish it in Oracle efficiently?
```
My Input-
'2013-01-01'
My Output
Output-20130101
``` | 2013/02/11 | [
"https://Stackoverflow.com/questions/14816916",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1050619/"
] | You can also "exploit" the format mask:
```
select to_number('2013-01-01', '9999G99G99', 'nls_numeric_characters=,-')
from dual
```
[Here is a sqlfiddle demo](http://www.sqlfiddle.com/#!4/d41d8/7225) | To convert date string to number:
Always convert it to char first then to number:
```
Select TO_NUMBER(TO_CHAR(to_date('2013-01-01', 'YYYY-MM-DD'),'YYYYMMDD')) from dual
```
if your column datatype is DATE then use your column name in place of sysdate in the below:
```
Select TO_NUMBER(TO_CHAR(sysdate,'YYYYMMDD'))... |
14,816,916 | I need to convert a date string -'2013-01-01' to number --20130101 type..How can I accomplish it in Oracle efficiently?
```
My Input-
'2013-01-01'
My Output
Output-20130101
``` | 2013/02/11 | [
"https://Stackoverflow.com/questions/14816916",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1050619/"
] | You can convert the string to date and convert back using the format that you want to:
```
select to_char(to_date('2013-01-01', 'YYYY-MM-DD'), 'YYYYMMDD');
```
More information about datetime format:
<http://docs.oracle.com/cd/B19306_01/server.102/b14200/sql_elements004.htm> | To convert date string to number:
Always convert it to char first then to number:
```
Select TO_NUMBER(TO_CHAR(to_date('2013-01-01', 'YYYY-MM-DD'),'YYYYMMDD')) from dual
```
if your column datatype is DATE then use your column name in place of sysdate in the below:
```
Select TO_NUMBER(TO_CHAR(sysdate,'YYYYMMDD'))... |
765,233 | I have currently installed ubuntu 16.04 and a2dp used to work on fresh install, which I'd prefer to leave as a last option. When the pairing is erased from bluetooth settings and is paired again sometimes it manages to be on a2dp profile, but if the headset is disconnected and then reconnected the a2dp profiles doesn't... | 2016/04/30 | [
"https://askubuntu.com/questions/765233",
"https://askubuntu.com",
"https://askubuntu.com/users/537549/"
] | My problem was solved by this:
```
mv ~/.config/pulse/ ~/.config/pulse.old
systemctl --user restart pulseaudio
systemctl restart bluetooth
``` | ```
systemctl restart bluetooth
```
* Open sound settings (accessible by clicking on the speaker icon in the tray)
* Try and change the Output profile to A2DP Sink.
* If that doesn't work, change your device to Speakers, or something else and then switch it back.
* I usually find that I can then set my Output profile |
765,233 | I have currently installed ubuntu 16.04 and a2dp used to work on fresh install, which I'd prefer to leave as a last option. When the pairing is erased from bluetooth settings and is paired again sometimes it manages to be on a2dp profile, but if the headset is disconnected and then reconnected the a2dp profiles doesn't... | 2016/04/30 | [
"https://askubuntu.com/questions/765233",
"https://askubuntu.com",
"https://askubuntu.com/users/537549/"
] | This fixed a set-card-profile issue for me: <https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1181106/comments/15>
Quote:
```
1) Modify the /etc/bluetooth/audio.conf
================================
[General]
Enable = Source,Sink,Headset,Gateway,Control,Media
Disable = Socket
HFP=false
[A2DP]
SBCSources=1... | ```
systemctl restart bluetooth
```
* Open sound settings (accessible by clicking on the speaker icon in the tray)
* Try and change the Output profile to A2DP Sink.
* If that doesn't work, change your device to Speakers, or something else and then switch it back.
* I usually find that I can then set my Output profile |
765,233 | I have currently installed ubuntu 16.04 and a2dp used to work on fresh install, which I'd prefer to leave as a last option. When the pairing is erased from bluetooth settings and is paired again sometimes it manages to be on a2dp profile, but if the headset is disconnected and then reconnected the a2dp profiles doesn't... | 2016/04/30 | [
"https://askubuntu.com/questions/765233",
"https://askubuntu.com",
"https://askubuntu.com/users/537549/"
] | I had this problem on Ubuntu 16.04.1 LTS, and applying the GDM work around found in <https://wiki.debian.org/BluetoothUser/a2dp> solved it.
Specifically, create/edit `/var/lib/gdm3/.config/pulse/client.conf` to read:
```
autospawn = no
daemon-binary = /bin/true
```
Then
```
sudo chown gdm:gdm /var/lib/gdm3/.conf... | None of the solutions described here worked consistently for me since I do not have a fixed schedule when I turn my bluetooth speaker on. Which, if it matters, is a Sony SRS-XB22
But what does work after I connect to my speaker is that I set the card profile to off, small pause and then set it to a2dp\_sink.
More pre... |
765,233 | I have currently installed ubuntu 16.04 and a2dp used to work on fresh install, which I'd prefer to leave as a last option. When the pairing is erased from bluetooth settings and is paired again sometimes it manages to be on a2dp profile, but if the headset is disconnected and then reconnected the a2dp profiles doesn't... | 2016/04/30 | [
"https://askubuntu.com/questions/765233",
"https://askubuntu.com",
"https://askubuntu.com/users/537549/"
] | As documented in [here](https://wiki.debian.org/BluetoothUser/a2dp), It is because GDM captures A2DP sink on session start, as GDM needs pulseaudio in the gdm session for accessibility.
Try to add this to "/var/lib/gdm3/.config/pulse/default.pa", or create it, then reboot:
```
#!/usr/bin/pulseaudio -nF
#
# load s... | I chose to solve it with a udev rule, as I am the only user of the system, so `$USER`, `$XAUTHORITY` and `$DISPLAY` are well-known.
Perhaps this is useful for someone that wants a solution defined in a single file, running on Ubuntu 18.04.1 LTS.
The hook is triggered via the `input` subsystem because the speaker appe... |
765,233 | I have currently installed ubuntu 16.04 and a2dp used to work on fresh install, which I'd prefer to leave as a last option. When the pairing is erased from bluetooth settings and is paired again sometimes it manages to be on a2dp profile, but if the headset is disconnected and then reconnected the a2dp profiles doesn't... | 2016/04/30 | [
"https://askubuntu.com/questions/765233",
"https://askubuntu.com",
"https://askubuntu.com/users/537549/"
] | [lagerismi](https://launchpad.net/%7Elagerimsi) posted a script [here on launchpad](https://bugs.launchpad.net/ubuntu/+source/indicator-sound/+bug/1577197/comments/34) based on [the answer by Jamie S.](https://askubuntu.com/a/773391/527764)
* Change the devices MAC-address in the variable inside the script! (can be fo... | I chose to solve it with a udev rule, as I am the only user of the system, so `$USER`, `$XAUTHORITY` and `$DISPLAY` are well-known.
Perhaps this is useful for someone that wants a solution defined in a single file, running on Ubuntu 18.04.1 LTS.
The hook is triggered via the `input` subsystem because the speaker appe... |
765,233 | I have currently installed ubuntu 16.04 and a2dp used to work on fresh install, which I'd prefer to leave as a last option. When the pairing is erased from bluetooth settings and is paired again sometimes it manages to be on a2dp profile, but if the headset is disconnected and then reconnected the a2dp profiles doesn't... | 2016/04/30 | [
"https://askubuntu.com/questions/765233",
"https://askubuntu.com",
"https://askubuntu.com/users/537549/"
] | I'm sure that the previous answers actually try to address the root cause of the problem. I, however, was not able to get any of them to work. I had the exact same issue as OP, but on Linux Mint 17/18. I wrote [this script](https://gist.github.com/Knetic/4fbf62dfb59a5c0a0feac34b818ce621) to reliably get bluetooth conne... | ```
systemctl restart bluetooth
```
* Open sound settings (accessible by clicking on the speaker icon in the tray)
* Try and change the Output profile to A2DP Sink.
* If that doesn't work, change your device to Speakers, or something else and then switch it back.
* I usually find that I can then set my Output profile |
765,233 | I have currently installed ubuntu 16.04 and a2dp used to work on fresh install, which I'd prefer to leave as a last option. When the pairing is erased from bluetooth settings and is paired again sometimes it manages to be on a2dp profile, but if the headset is disconnected and then reconnected the a2dp profiles doesn't... | 2016/04/30 | [
"https://askubuntu.com/questions/765233",
"https://askubuntu.com",
"https://askubuntu.com/users/537549/"
] | I had this problem on Ubuntu 16.04.1 LTS, and applying the GDM work around found in <https://wiki.debian.org/BluetoothUser/a2dp> solved it.
Specifically, create/edit `/var/lib/gdm3/.config/pulse/client.conf` to read:
```
autospawn = no
daemon-binary = /bin/true
```
Then
```
sudo chown gdm:gdm /var/lib/gdm3/.conf... | [lagerismi](https://launchpad.net/%7Elagerimsi) posted a script [here on launchpad](https://bugs.launchpad.net/ubuntu/+source/indicator-sound/+bug/1577197/comments/34) based on [the answer by Jamie S.](https://askubuntu.com/a/773391/527764)
* Change the devices MAC-address in the variable inside the script! (can be fo... |
765,233 | I have currently installed ubuntu 16.04 and a2dp used to work on fresh install, which I'd prefer to leave as a last option. When the pairing is erased from bluetooth settings and is paired again sometimes it manages to be on a2dp profile, but if the headset is disconnected and then reconnected the a2dp profiles doesn't... | 2016/04/30 | [
"https://askubuntu.com/questions/765233",
"https://askubuntu.com",
"https://askubuntu.com/users/537549/"
] | In order to allow your system to be detected as an A2DP sink (e.g. to play music from your phone via your computer speakers), add `Enable=Source,Sink,Media,Socket` under `[General]` in `/etc/bluetooth/audio.conf`.
After doing this, restart the bluetooth daemon
```
systemctl restart bluetooth
```
Connect you headpho... | I had this problem on Ubuntu 16.04.1 LTS, and applying the GDM work around found in <https://wiki.debian.org/BluetoothUser/a2dp> solved it.
Specifically, create/edit `/var/lib/gdm3/.config/pulse/client.conf` to read:
```
autospawn = no
daemon-binary = /bin/true
```
Then
```
sudo chown gdm:gdm /var/lib/gdm3/.conf... |
765,233 | I have currently installed ubuntu 16.04 and a2dp used to work on fresh install, which I'd prefer to leave as a last option. When the pairing is erased from bluetooth settings and is paired again sometimes it manages to be on a2dp profile, but if the headset is disconnected and then reconnected the a2dp profiles doesn't... | 2016/04/30 | [
"https://askubuntu.com/questions/765233",
"https://askubuntu.com",
"https://askubuntu.com/users/537549/"
] | In order to allow your system to be detected as an A2DP sink (e.g. to play music from your phone via your computer speakers), add `Enable=Source,Sink,Media,Socket` under `[General]` in `/etc/bluetooth/audio.conf`.
After doing this, restart the bluetooth daemon
```
systemctl restart bluetooth
```
Connect you headpho... | On Xubuntu 16.04.2
Use blueman-manager:
1. connect -> set profile off
2. reconnect -> set profile a2dp
3. now your headset is ok!
[My JBL bash script](https://gist.github.com/takeseem/d45814b7eb39eda208998fdefce20f47)
```bsh
#!/bin/bash
#headset mac
mac="00:1D:DF:67:0A:29"
profile="a2dp"
# Special Bluetooth contr... |
765,233 | I have currently installed ubuntu 16.04 and a2dp used to work on fresh install, which I'd prefer to leave as a last option. When the pairing is erased from bluetooth settings and is paired again sometimes it manages to be on a2dp profile, but if the headset is disconnected and then reconnected the a2dp profiles doesn't... | 2016/04/30 | [
"https://askubuntu.com/questions/765233",
"https://askubuntu.com",
"https://askubuntu.com/users/537549/"
] | So, if you are using Debian you can do the following: [Refused to switch profile to a2dp\_sink: Not connected](https://wiki.debian.org/BluetoothUser/a2dp#Refused_to_switch_profile_to_a2dp_sink:_Not_connected)
### Problem
Bluetooth headset is connected, but ALSA/PulseAudio fails to pick up the connected device or ther... | I chose to solve it with a udev rule, as I am the only user of the system, so `$USER`, `$XAUTHORITY` and `$DISPLAY` are well-known.
Perhaps this is useful for someone that wants a solution defined in a single file, running on Ubuntu 18.04.1 LTS.
The hook is triggered via the `input` subsystem because the speaker appe... |
21,735,174 | I have two seemingly identical TcxGrids bound to two different tables. On one grid, when the column header is dragged and dropped to the group panel, a large X appears above the column being dragged, when it is dropped the column is immediately hidden. On the other grid a big circle with a line through it shows and it ... | 2014/02/12 | [
"https://Stackoverflow.com/questions/21735174",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1523956/"
] | Adding displayTOtalsRow: false to the dataview solved my problem - the total rows are not shown now.
```
var dataView = new Slick.Data.DataView({ groupItemMetadataProvider: groupItemMetadataProviderTrades, displayTotalsRow: false });
``` | To answer simply to your question... Just remove the `aggregators: [...]`, when I say remove you have 2 options, you can remove whatever is the array `[...]` or you could simply erase completely that object line (so removing completely the `aggregators[...]`).
Now if you want more explanation of how it works...Let's g... |
53,474,065 | I am trying to `upgrade` `matplotlib`. I'm doing this via `!pip` and it seems to work. When I check the list in the `IPython console`:
```
!pip list
```
It returns the latest version of `matplotlib`
```
matplotlib 3.0.2
```
But when I check the version in the editor it returns
```
2.2.2
```
The very first lin... | 2018/11/26 | [
"https://Stackoverflow.com/questions/53474065",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | Using `str.len`
```
df[df.iloc[:,0].astype(str).str.len()!=7]
A
1 1.222222
2 1.222200
```
dput :
```
df=pd.DataFrame({'A':[1.22222,1.222222,1.2222]})
``` | See if this works
`df1 = df['ZipCode'].astype(str).map(len)==5` |
53,474,065 | I am trying to `upgrade` `matplotlib`. I'm doing this via `!pip` and it seems to work. When I check the list in the `IPython console`:
```
!pip list
```
It returns the latest version of `matplotlib`
```
matplotlib 3.0.2
```
But when I check the version in the editor it returns
```
2.2.2
```
The very first lin... | 2018/11/26 | [
"https://Stackoverflow.com/questions/53474065",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | You can write this more concisely using Pandas filtering rather than loops and ifs.
Here is an example:
```
valid_zips = mydata[mydata.astype(str).str.len() == 7]
```
or
```
zip_code_upper_bound = 100000
valid_zips = mydata[mydata < zip_code_upper_bound]
```
assuming fractional numbers are not included in your s... | See if this works
`df1 = df['ZipCode'].astype(str).map(len)==5` |
53,474,065 | I am trying to `upgrade` `matplotlib`. I'm doing this via `!pip` and it seems to work. When I check the list in the `IPython console`:
```
!pip list
```
It returns the latest version of `matplotlib`
```
matplotlib 3.0.2
```
But when I check the version in the editor it returns
```
2.2.2
```
The very first lin... | 2018/11/26 | [
"https://Stackoverflow.com/questions/53474065",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | You can write this more concisely using Pandas filtering rather than loops and ifs.
Here is an example:
```
valid_zips = mydata[mydata.astype(str).str.len() == 7]
```
or
```
zip_code_upper_bound = 100000
valid_zips = mydata[mydata < zip_code_upper_bound]
```
assuming fractional numbers are not included in your s... | Using `str.len`
```
df[df.iloc[:,0].astype(str).str.len()!=7]
A
1 1.222222
2 1.222200
```
dput :
```
df=pd.DataFrame({'A':[1.22222,1.222222,1.2222]})
``` |
29,560 | My computer has somehow gotten out of sync. I can save a document as a template in a directory of my choosing, but when I go to use the Templates and Documents dialog, I get this:

I have no idea where on my hard drive these folders are. Where is "... | 2009/08/25 | [
"https://superuser.com/questions/29560",
"https://superuser.com",
"https://superuser.com/users/1162/"
] | Windows XP
```
C:\Documents and Settings\User_Name\Application Data\OpenOffice.org\3\user\template
```
Windows Vista & 7
```
C:\users\User_Name\AppData\OpenOffice.org\3\user\template
```
Linux
```
~/.openoffice.org/3/user/template
``` | This location can also be moved. Navigate to Tools - Options - OpenOffice.org - Paths and change the value for "Templates". There can be multiple template paths, or, you can delete the existing path and create a new one altogether. |
29,560 | My computer has somehow gotten out of sync. I can save a document as a template in a directory of my choosing, but when I go to use the Templates and Documents dialog, I get this:

I have no idea where on my hard drive these folders are. Where is "... | 2009/08/25 | [
"https://superuser.com/questions/29560",
"https://superuser.com",
"https://superuser.com/users/1162/"
] | You should find them at:
>
> ~/.openoffice.org/3/user/template
>
>
>
If you have OpenOffice 2, then replace 3 with 2 in the above path. | C:\users\User\_Name\AppData\Roaming\OpenOffice.org\3\user\template |
29,560 | My computer has somehow gotten out of sync. I can save a document as a template in a directory of my choosing, but when I go to use the Templates and Documents dialog, I get this:

I have no idea where on my hard drive these folders are. Where is "... | 2009/08/25 | [
"https://superuser.com/questions/29560",
"https://superuser.com",
"https://superuser.com/users/1162/"
] | C:\users\User\_Name\AppData\Roaming\OpenOffice.org\3\user\template | Windows:
`dir /s/b %APPDATA%\openoffice\*.ott` |
29,560 | My computer has somehow gotten out of sync. I can save a document as a template in a directory of my choosing, but when I go to use the Templates and Documents dialog, I get this:

I have no idea where on my hard drive these folders are. Where is "... | 2009/08/25 | [
"https://superuser.com/questions/29560",
"https://superuser.com",
"https://superuser.com/users/1162/"
] | This location can also be moved. Navigate to Tools - Options - OpenOffice.org - Paths and change the value for "Templates". There can be multiple template paths, or, you can delete the existing path and create a new one altogether. | Windows:
`dir /s/b %APPDATA%\openoffice\*.ott` |
29,560 | My computer has somehow gotten out of sync. I can save a document as a template in a directory of my choosing, but when I go to use the Templates and Documents dialog, I get this:

I have no idea where on my hard drive these folders are. Where is "... | 2009/08/25 | [
"https://superuser.com/questions/29560",
"https://superuser.com",
"https://superuser.com/users/1162/"
] | Windows XP
```
C:\Documents and Settings\User_Name\Application Data\OpenOffice.org\3\user\template
```
Windows Vista & 7
```
C:\users\User_Name\AppData\OpenOffice.org\3\user\template
```
Linux
```
~/.openoffice.org/3/user/template
``` | As of **March 2018, LibreOffice 5.1** the template folder for Linux is under:
```
~/.config/libreoffice/4/user/template/
```
Btw: searching for `.ott` (writer templates) helped me find it… |
29,560 | My computer has somehow gotten out of sync. I can save a document as a template in a directory of my choosing, but when I go to use the Templates and Documents dialog, I get this:

I have no idea where on my hard drive these folders are. Where is "... | 2009/08/25 | [
"https://superuser.com/questions/29560",
"https://superuser.com",
"https://superuser.com/users/1162/"
] | Windows XP
```
C:\Documents and Settings\User_Name\Application Data\OpenOffice.org\3\user\template
```
Windows Vista & 7
```
C:\users\User_Name\AppData\OpenOffice.org\3\user\template
```
Linux
```
~/.openoffice.org/3/user/template
``` | Windows:
`dir /s/b %APPDATA%\openoffice\*.ott` |
29,560 | My computer has somehow gotten out of sync. I can save a document as a template in a directory of my choosing, but when I go to use the Templates and Documents dialog, I get this:

I have no idea where on my hard drive these folders are. Where is "... | 2009/08/25 | [
"https://superuser.com/questions/29560",
"https://superuser.com",
"https://superuser.com/users/1162/"
] | Windows XP
```
C:\Documents and Settings\User_Name\Application Data\OpenOffice.org\3\user\template
```
Windows Vista & 7
```
C:\users\User_Name\AppData\OpenOffice.org\3\user\template
```
Linux
```
~/.openoffice.org/3/user/template
``` | You should find them at:
>
> ~/.openoffice.org/3/user/template
>
>
>
If you have OpenOffice 2, then replace 3 with 2 in the above path. |
29,560 | My computer has somehow gotten out of sync. I can save a document as a template in a directory of my choosing, but when I go to use the Templates and Documents dialog, I get this:

I have no idea where on my hard drive these folders are. Where is "... | 2009/08/25 | [
"https://superuser.com/questions/29560",
"https://superuser.com",
"https://superuser.com/users/1162/"
] | This location can also be moved. Navigate to Tools - Options - OpenOffice.org - Paths and change the value for "Templates". There can be multiple template paths, or, you can delete the existing path and create a new one altogether. | C:\users\User\_Name\AppData\Roaming\OpenOffice.org\3\user\template |
29,560 | My computer has somehow gotten out of sync. I can save a document as a template in a directory of my choosing, but when I go to use the Templates and Documents dialog, I get this:

I have no idea where on my hard drive these folders are. Where is "... | 2009/08/25 | [
"https://superuser.com/questions/29560",
"https://superuser.com",
"https://superuser.com/users/1162/"
] | You should find them at:
>
> ~/.openoffice.org/3/user/template
>
>
>
If you have OpenOffice 2, then replace 3 with 2 in the above path. | Windows:
`dir /s/b %APPDATA%\openoffice\*.ott` |
29,560 | My computer has somehow gotten out of sync. I can save a document as a template in a directory of my choosing, but when I go to use the Templates and Documents dialog, I get this:

I have no idea where on my hard drive these folders are. Where is "... | 2009/08/25 | [
"https://superuser.com/questions/29560",
"https://superuser.com",
"https://superuser.com/users/1162/"
] | As of **March 2018, LibreOffice 5.1** the template folder for Linux is under:
```
~/.config/libreoffice/4/user/template/
```
Btw: searching for `.ott` (writer templates) helped me find it… | C:\users\User\_Name\AppData\Roaming\OpenOffice.org\3\user\template |
124,045 | I'm going to be giving a TED Talk at a TEDx event my school is helping coordinate. The subject of my talk is "technology as a medium for education." I say education in relation to Stack Exchange because people *do* come here to teach, but beyond that, this is also about technology as a medium for learning.
I find that... | 2012/03/01 | [
"https://meta.stackexchange.com/questions/124045",
"https://meta.stackexchange.com",
"https://meta.stackexchange.com/users/166307/"
] | One aspect that I've always found potentially interesting for education is the extreme "peer review" situation on these sites, and the initiative and, for want of a better word, "investedness" it encourages.
If you post an answer, you know it is going to be scrutinized by a lot of people - some of whom will know more... | Kind of depends what you mean by 'education'.
Education, to me, sounds more like a 'push'-style "I will teach you", whereas learning is more 'pull' "I want to know".
I'd say that SE is an excellent medium for *learning*. Asking questions and learning new stuff, answering questions and learning new stuff. |
124,045 | I'm going to be giving a TED Talk at a TEDx event my school is helping coordinate. The subject of my talk is "technology as a medium for education." I say education in relation to Stack Exchange because people *do* come here to teach, but beyond that, this is also about technology as a medium for learning.
I find that... | 2012/03/01 | [
"https://meta.stackexchange.com/questions/124045",
"https://meta.stackexchange.com",
"https://meta.stackexchange.com/users/166307/"
] | Yes, absolutely feel free to talk about Stack Exchange.
-------------------------------------------------------
There's a section at the bottom of our [Trademark Guidance page](https://stackexchange.com/legal/trademark-guidance) called "The Proper Use of the Stack Exchange Name" - a section literally about using our c... | Kind of depends what you mean by 'education'.
Education, to me, sounds more like a 'push'-style "I will teach you", whereas learning is more 'pull' "I want to know".
I'd say that SE is an excellent medium for *learning*. Asking questions and learning new stuff, answering questions and learning new stuff. |
124,045 | I'm going to be giving a TED Talk at a TEDx event my school is helping coordinate. The subject of my talk is "technology as a medium for education." I say education in relation to Stack Exchange because people *do* come here to teach, but beyond that, this is also about technology as a medium for learning.
I find that... | 2012/03/01 | [
"https://meta.stackexchange.com/questions/124045",
"https://meta.stackexchange.com",
"https://meta.stackexchange.com/users/166307/"
] | One aspect that I've always found potentially interesting for education is the extreme "peer review" situation on these sites, and the initiative and, for want of a better word, "investedness" it encourages.
If you post an answer, you know it is going to be scrutinized by a lot of people - some of whom will know more... | I don't speak for Stack Exchange, Inc, but were I in your shoes I'd make the following choices, based on my interactions with Stack Exchange, Inc.
* Go ahead an mention it as part of your learning process. It's probably better to mix it in with another site or two that also helped you in similar ways (ie, if SE is the... |
124,045 | I'm going to be giving a TED Talk at a TEDx event my school is helping coordinate. The subject of my talk is "technology as a medium for education." I say education in relation to Stack Exchange because people *do* come here to teach, but beyond that, this is also about technology as a medium for learning.
I find that... | 2012/03/01 | [
"https://meta.stackexchange.com/questions/124045",
"https://meta.stackexchange.com",
"https://meta.stackexchange.com/users/166307/"
] | One aspect that I've always found potentially interesting for education is the extreme "peer review" situation on these sites, and the initiative and, for want of a better word, "investedness" it encourages.
If you post an answer, you know it is going to be scrutinized by a lot of people - some of whom will know more... | Yes, absolutely feel free to talk about Stack Exchange.
-------------------------------------------------------
There's a section at the bottom of our [Trademark Guidance page](https://stackexchange.com/legal/trademark-guidance) called "The Proper Use of the Stack Exchange Name" - a section literally about using our c... |
124,045 | I'm going to be giving a TED Talk at a TEDx event my school is helping coordinate. The subject of my talk is "technology as a medium for education." I say education in relation to Stack Exchange because people *do* come here to teach, but beyond that, this is also about technology as a medium for learning.
I find that... | 2012/03/01 | [
"https://meta.stackexchange.com/questions/124045",
"https://meta.stackexchange.com",
"https://meta.stackexchange.com/users/166307/"
] | Yes, absolutely feel free to talk about Stack Exchange.
-------------------------------------------------------
There's a section at the bottom of our [Trademark Guidance page](https://stackexchange.com/legal/trademark-guidance) called "The Proper Use of the Stack Exchange Name" - a section literally about using our c... | I don't speak for Stack Exchange, Inc, but were I in your shoes I'd make the following choices, based on my interactions with Stack Exchange, Inc.
* Go ahead an mention it as part of your learning process. It's probably better to mix it in with another site or two that also helped you in similar ways (ie, if SE is the... |
1,703,542 | Need help on solving integrals using substitution. As I have only solved ones with Newton-Leibniz, I don't know how to solve this types:
$$\int\_0^1 \frac{\sqrt{e^x}dx}{\sqrt{e^x+e^{-x}}}$$ | 2016/03/18 | [
"https://math.stackexchange.com/questions/1703542",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/282410/"
] | **Hint:**
Substitute $t=e^x$ and $dt=e^x dx$
$$=\int \frac{dt}{\sqrt{t^2+1}}$$
Substitute $t=\tan p$ and $dt=\sec^2 p dp$. Then $\sqrt{t^2+1}=\sqrt{\tan^2 p+1}=\sec p$ and $p=\arctan t$
$$=\int\sec p dp=\ln|\tan p+\sec p|+\mathcal C=\dots$$
Now you should substitute back $p$ and $t$, and to evaluate from zero to o... | Substitute ${e^x} = \tan z$ . |
1,703,542 | Need help on solving integrals using substitution. As I have only solved ones with Newton-Leibniz, I don't know how to solve this types:
$$\int\_0^1 \frac{\sqrt{e^x}dx}{\sqrt{e^x+e^{-x}}}$$ | 2016/03/18 | [
"https://math.stackexchange.com/questions/1703542",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/282410/"
] | $$
\begin{align}
\int\_0^1\frac{\sqrt{e^x}\,\mathrm{d}x}{\sqrt{e^x+e^{-x}}}
&=\int\_0^1\frac{e^x\,\mathrm{d}x}{\sqrt{e^{2x}+1}}\tag{1}\\
&=\int\_1^e\frac{\mathrm{d}u}{\sqrt{u^2+1}}\tag{2}\\
&=\int\_{\pi/4}^{\arctan(e)}\sec(\theta)\,\mathrm{d}\theta\tag{3}\\
&=\int\_{\pi/4}^{\arctan(e)}\frac{\mathrm{d}\sin(\theta)}{1-\s... | Substitute ${e^x} = \tan z$ . |
1,703,542 | Need help on solving integrals using substitution. As I have only solved ones with Newton-Leibniz, I don't know how to solve this types:
$$\int\_0^1 \frac{\sqrt{e^x}dx}{\sqrt{e^x+e^{-x}}}$$ | 2016/03/18 | [
"https://math.stackexchange.com/questions/1703542",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/282410/"
] | **Hint:**
Substitute $t=e^x$ and $dt=e^x dx$
$$=\int \frac{dt}{\sqrt{t^2+1}}$$
Substitute $t=\tan p$ and $dt=\sec^2 p dp$. Then $\sqrt{t^2+1}=\sqrt{\tan^2 p+1}=\sec p$ and $p=\arctan t$
$$=\int\sec p dp=\ln|\tan p+\sec p|+\mathcal C=\dots$$
Now you should substitute back $p$ and $t$, and to evaluate from zero to o... | $$
\begin{align}
\int\_0^1\frac{\sqrt{e^x}\,\mathrm{d}x}{\sqrt{e^x+e^{-x}}}
&=\int\_0^1\frac{e^x\,\mathrm{d}x}{\sqrt{e^{2x}+1}}\tag{1}\\
&=\int\_1^e\frac{\mathrm{d}u}{\sqrt{u^2+1}}\tag{2}\\
&=\int\_{\pi/4}^{\arctan(e)}\sec(\theta)\,\mathrm{d}\theta\tag{3}\\
&=\int\_{\pi/4}^{\arctan(e)}\frac{\mathrm{d}\sin(\theta)}{1-\s... |
24,619,687 | I am trying to compute the difference in time between two date/times. This is what I have imported:
```
import java.util.concurrent.TimeUnit;
import java.text.*;
import java.util.*;
```
And this is my code:
```
SimpleDateFormat format= new SimpleDateFormat("yy/MM/dd HH:mm:ss");
String dateStart = "11/03/14 19:29:5... | 2014/07/07 | [
"https://Stackoverflow.com/questions/24619687",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3000877/"
] | That looks correct to me... you've got just under two months, so 60.5 days (because it starts at ~8pm and ends at ~8am). A day contains 1440 minutes. 1440 \* 60.5 is 87120, which is very close to the answer you've received.
It's not clear what answer you *expected*, but Java's getting the maths right. The source of th... | Always use calendars:
```
import java.text.SimpleDateFormat;
import java.util.concurrent.TimeUnit;
import java.text.*;
import java.util.*;
public class DateDiff {
public static void main(String[] arg){
SimpleDateFormat format= new SimpleDateFormat("yy/MM/dd HH:mm:ss");
String dateStart = "11/03/1... |
24,619,687 | I am trying to compute the difference in time between two date/times. This is what I have imported:
```
import java.util.concurrent.TimeUnit;
import java.text.*;
import java.util.*;
```
And this is my code:
```
SimpleDateFormat format= new SimpleDateFormat("yy/MM/dd HH:mm:ss");
String dateStart = "11/03/14 19:29:5... | 2014/07/07 | [
"https://Stackoverflow.com/questions/24619687",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3000877/"
] | This seems to be correct.
```
long seconds = TimeUnit.MILLISECONDS.toSeconds(diff);
System.out.println(seconds);
long minutes=TimeUnit.MILLISECONDS.toMinutes(diff);
System.out.println(minutes);
long hours=TimeUnit.MILLISECONDS.toHours(diff);
System.out.println(hours);
long days=TimeUnit.MILLISECONDS.toDays(diff);
Syst... | Always use calendars:
```
import java.text.SimpleDateFormat;
import java.util.concurrent.TimeUnit;
import java.text.*;
import java.util.*;
public class DateDiff {
public static void main(String[] arg){
SimpleDateFormat format= new SimpleDateFormat("yy/MM/dd HH:mm:ss");
String dateStart = "11/03/1... |
434,566 | I have a Windows Server 2008 R2 that was running SQL Server, until it had a unclean power down and now the operating system become corrupted. Before I struggle to resurrect the machine, I'd like to know if there is a way to move the SQL server installation to a new machine, without relying on backups. | 2012/10/03 | [
"https://serverfault.com/questions/434566",
"https://serverfault.com",
"https://serverfault.com/users/139255/"
] | You don't move the SQL Server install. (Or *really*, **really** shouldn't.)
You install SQL server fresh on a new machine and **move the databases**.
[Here's a rather long step-by-step article form Microsoft on how to move all the "stuff" from one SQL Server install to a SQL Server install on another machine](http://... | If you have access to the database files (mdf and ldf) then you can copy those to a new SQL Server and attach them. |
10,398,925 | For the following code:
```
#include <stdio.h>
int main(){
printf("%f", 5);
printf("%d", 5.01);
}
```
The first statement will print 0.000000 and the second statement will print a large number.
I thought the printf see the format %f will pop a 4-byte argument from stack. Then I looked up some references th... | 2012/05/01 | [
"https://Stackoverflow.com/questions/10398925",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1365960/"
] | This is confusing, but `%d` is the format for an integer, like `%i` (most people expect it to be for double since `%f` is for float, but it's not). You can't use it with a double, you must use `%f`. Same with `%f`, you can't use an integer with it; you must use a float or double.
Also, `printf` doesn't check the types... | `printf` is not type safe, You should ensure that you are using proper format descriptors for the data type you intend to print or there is no guarantee of the results that `printf` will produce. |
10,398,925 | For the following code:
```
#include <stdio.h>
int main(){
printf("%f", 5);
printf("%d", 5.01);
}
```
The first statement will print 0.000000 and the second statement will print a large number.
I thought the printf see the format %f will pop a 4-byte argument from stack. Then I looked up some references th... | 2012/05/01 | [
"https://Stackoverflow.com/questions/10398925",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1365960/"
] | This is confusing, but `%d` is the format for an integer, like `%i` (most people expect it to be for double since `%f` is for float, but it's not). You can't use it with a double, you must use `%f`. Same with `%f`, you can't use an integer with it; you must use a float or double.
Also, `printf` doesn't check the types... | In the first case, `printf` extects a `double` (due to the `%f`), but you pass an `int`. The format of `double` is different form `int` (see [IEEE-754](http://en.wikipedia.org/wiki/Floating_point#IEEE_754%3a_floating_point_in_modern_computers) for most-used `double` format)
The second is similar: `printf` expects an `... |
10,398,925 | For the following code:
```
#include <stdio.h>
int main(){
printf("%f", 5);
printf("%d", 5.01);
}
```
The first statement will print 0.000000 and the second statement will print a large number.
I thought the printf see the format %f will pop a 4-byte argument from stack. Then I looked up some references th... | 2012/05/01 | [
"https://Stackoverflow.com/questions/10398925",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1365960/"
] | In the first case, `printf` extects a `double` (due to the `%f`), but you pass an `int`. The format of `double` is different form `int` (see [IEEE-754](http://en.wikipedia.org/wiki/Floating_point#IEEE_754%3a_floating_point_in_modern_computers) for most-used `double` format)
The second is similar: `printf` expects an `... | `printf` is not type safe, You should ensure that you are using proper format descriptors for the data type you intend to print or there is no guarantee of the results that `printf` will produce. |
48,586,644 | I have a dummy div and an actual div which acts as top menu for me. I want to show the `editor-menu-bar` when my mouse enters `menu-bar-dummy` and hide `editor-menu-bar` when mouse leaves `menu-bar-dummy`.
This code works almost fine. Its just that the editor-menu-bar keeps flickering. A quick debug shows that my `mou... | 2018/02/02 | [
"https://Stackoverflow.com/questions/48586644",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5012866/"
] | I figured it out. This code works -
```
var menubar = $('.editor-menu-bar');
var menubardummy = $('.menu-bar-dummy');
menubardummy.mouseenter(function(){
menubar.slideDown("slow", function(){
menubar.mouseleave("slow", function(){
menubar.slideUp();
});
}... | here i editted your code, hope it works for you
>
>
> ```
> $(document).ready(function(){
> $('.editor-menu-bar').slideUp();
> $('.menu-bar-dummy').mouseenter(function() {
> $('.editor-menu-bar').slideDown();
> });
> $('.menu-bar-dummy').mouseleave(function() {
> ... |
10,904,330 | I am using the latest jquery and jquery-ui. I use most of the jquery buttons, datepicker, dialog, etc. None of them have rounded edges in IE8 either in compatibility mode or in non compatibility mode. However in firefox and chrome there are rounded corners. Is there anything that I need to include in the css of jquery ... | 2012/06/05 | [
"https://Stackoverflow.com/questions/10904330",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/525146/"
] | Rounded Corners are a CSS3 Feature. IE 8 doesn't support CSS3. The earliest version of IE to support 'border-radius' is IE9.
If you're looking for a polyfill for older IE browsers check out [CSS3 PIE](http://css3pie.com/). I personally didn't have much luck with it, but I hear good things.
While IE8 is leaps and boun... | You could use <http://css3pie.com/> which emulates CSS3 features in old IE Versions. IE8 does not support a lot of CSS3 features like `border-radius` |
10,904,330 | I am using the latest jquery and jquery-ui. I use most of the jquery buttons, datepicker, dialog, etc. None of them have rounded edges in IE8 either in compatibility mode or in non compatibility mode. However in firefox and chrome there are rounded corners. Is there anything that I need to include in the css of jquery ... | 2012/06/05 | [
"https://Stackoverflow.com/questions/10904330",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/525146/"
] | Rounded Corners are a CSS3 Feature. IE 8 doesn't support CSS3. The earliest version of IE to support 'border-radius' is IE9.
If you're looking for a polyfill for older IE browsers check out [CSS3 PIE](http://css3pie.com/). I personally didn't have much luck with it, but I hear good things.
While IE8 is leaps and boun... | You may also want to check out [Modernizr](http://modernizr.com/) to emulate CSS3 features. We've used it for that purpose (among others). |
10,904,330 | I am using the latest jquery and jquery-ui. I use most of the jquery buttons, datepicker, dialog, etc. None of them have rounded edges in IE8 either in compatibility mode or in non compatibility mode. However in firefox and chrome there are rounded corners. Is there anything that I need to include in the css of jquery ... | 2012/06/05 | [
"https://Stackoverflow.com/questions/10904330",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/525146/"
] | Rounded Corners are a CSS3 Feature. IE 8 doesn't support CSS3. The earliest version of IE to support 'border-radius' is IE9.
If you're looking for a polyfill for older IE browsers check out [CSS3 PIE](http://css3pie.com/). I personally didn't have much luck with it, but I hear good things.
While IE8 is leaps and boun... | They are a CSS3 feature which is not supported by IE.
* [jQuery round corner code for IE8 in standards mode?](https://stackoverflow.com/q/987270/1048572)
* [How to add CSS3 rounded corners with modernizr?](https://stackoverflow.com/q/9892163/1048572)
* <http://jonraasch.com/blog/css-rounded-corners-in-all-browsers>
* ... |
10,904,330 | I am using the latest jquery and jquery-ui. I use most of the jquery buttons, datepicker, dialog, etc. None of them have rounded edges in IE8 either in compatibility mode or in non compatibility mode. However in firefox and chrome there are rounded corners. Is there anything that I need to include in the css of jquery ... | 2012/06/05 | [
"https://Stackoverflow.com/questions/10904330",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/525146/"
] | You could use <http://css3pie.com/> which emulates CSS3 features in old IE Versions. IE8 does not support a lot of CSS3 features like `border-radius` | You may also want to check out [Modernizr](http://modernizr.com/) to emulate CSS3 features. We've used it for that purpose (among others). |
10,904,330 | I am using the latest jquery and jquery-ui. I use most of the jquery buttons, datepicker, dialog, etc. None of them have rounded edges in IE8 either in compatibility mode or in non compatibility mode. However in firefox and chrome there are rounded corners. Is there anything that I need to include in the css of jquery ... | 2012/06/05 | [
"https://Stackoverflow.com/questions/10904330",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/525146/"
] | You could use <http://css3pie.com/> which emulates CSS3 features in old IE Versions. IE8 does not support a lot of CSS3 features like `border-radius` | They are a CSS3 feature which is not supported by IE.
* [jQuery round corner code for IE8 in standards mode?](https://stackoverflow.com/q/987270/1048572)
* [How to add CSS3 rounded corners with modernizr?](https://stackoverflow.com/q/9892163/1048572)
* <http://jonraasch.com/blog/css-rounded-corners-in-all-browsers>
* ... |
44,936,369 | I updated to the newest XCode recently and ever since I have been getting errors while building for iOS. The errors all look like:
```
Error MT5209: Native linking error: clang: error: no such file or directory: 'project directory/obj/iPhone/Debug/device-builds/iphone5.3-10.3.2/mtouch-cache/GoogleMaps'
```
There ar... | 2017/07/05 | [
"https://Stackoverflow.com/questions/44936369",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7458540/"
] | I will expose you how I deal with authentification on my ionic app.
The first step consists of creating a representation of the data you want to store. I used to store some user's information and a jwt token for the authentification.
`user.ts` :
```
export class AuthenticatedUser {
private _username: string;
pri... | If you want to persist the data durably, you can use ionic-storage : <http://ionicframework.com/docs/storage/> |
155,937 | I am looking for a word or phrase to describe the act of *taking consumers away* from one existing standard/norm in favor of an alternative.
For example: 3D printing will *take away* consumers from manufacturers and put the manufacturing into individuals hands. | 2014/03/06 | [
"https://english.stackexchange.com/questions/155937",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/16277/"
] | Before winning them, they must be [lured](http://dictionary.reference.com/browse/lure) to or [enticed](http://dictionary.reference.com/browse/entice?s=t) by your product: to **attract**, or tempt; allure; to draw by appealing to the emotions or senses, by stimulating interest, or by exciting admiration; allure; invite:... | I like *poaching* best, already answered, but depending on context you might try **parasitising**. |
155,937 | I am looking for a word or phrase to describe the act of *taking consumers away* from one existing standard/norm in favor of an alternative.
For example: 3D printing will *take away* consumers from manufacturers and put the manufacturing into individuals hands. | 2014/03/06 | [
"https://english.stackexchange.com/questions/155937",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/16277/"
] | >
> [poach](http://www.merriam-webster.com/dictionary/poach) — 2c: to attract (as an employee or customer) away from a competitor
>
>
>
3D printers are *poaching* customers from manufacturers. | >
> [Cannibalization marketing](http://en.wikipedia.org/wiki/Cannibalization_%28marketing%29)
>
>
> In marketing strategy, cannibalization refers to a reduction in sales volume, sales
> revenue, or market share of one product as a result of the introduction of a new product by
> the same producer.
>
>
> |
155,937 | I am looking for a word or phrase to describe the act of *taking consumers away* from one existing standard/norm in favor of an alternative.
For example: 3D printing will *take away* consumers from manufacturers and put the manufacturing into individuals hands. | 2014/03/06 | [
"https://english.stackexchange.com/questions/155937",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/16277/"
] | >
> [poach](http://www.merriam-webster.com/dictionary/poach) — 2c: to attract (as an employee or customer) away from a competitor
>
>
>
3D printers are *poaching* customers from manufacturers. | Here are some alternatives:
3D printing will **steer consumers away** from manufacturers and put the manufacturing into individuals hands.
3D printing **channel influence away** from manufacturers and into individuals hands.
3D printing will **sway consumers away** from manufacturers and put the manufacturing into i... |
155,937 | I am looking for a word or phrase to describe the act of *taking consumers away* from one existing standard/norm in favor of an alternative.
For example: 3D printing will *take away* consumers from manufacturers and put the manufacturing into individuals hands. | 2014/03/06 | [
"https://english.stackexchange.com/questions/155937",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/16277/"
] | >
> [poach](http://www.merriam-webster.com/dictionary/poach) — 2c: to attract (as an employee or customer) away from a competitor
>
>
>
3D printers are *poaching* customers from manufacturers. | I like *poaching* best, already answered, but depending on context you might try **parasitising**. |
155,937 | I am looking for a word or phrase to describe the act of *taking consumers away* from one existing standard/norm in favor of an alternative.
For example: 3D printing will *take away* consumers from manufacturers and put the manufacturing into individuals hands. | 2014/03/06 | [
"https://english.stackexchange.com/questions/155937",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/16277/"
] | "win over" or "convert".
3D printing will **win over** consumers and put the manufacturing into individuals hands. | Here are some alternatives:
3D printing will **steer consumers away** from manufacturers and put the manufacturing into individuals hands.
3D printing **channel influence away** from manufacturers and into individuals hands.
3D printing will **sway consumers away** from manufacturers and put the manufacturing into i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.