qid int64 1 74.7M | question stringlengths 0 58.3k | date stringlengths 10 10 | metadata list | response_j stringlengths 2 48.3k | response_k stringlengths 2 40.5k |
|---|---|---|---|---|---|
30,578,234 | **HTML**
```
<div>
<a href=''> First </a>
</div>
<div>
<div>
<a href=''> Second </a>
</div>
</div>
<a href=''>Third</a>
```
**Script**
```
$(document).ready(function(){
$('a').click(function(){
// find next a element
//var next = $(this).next('a');
//console.log(next.text());
});
... | 2015/06/01 | [
"https://Stackoverflow.com/questions/30578234",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4304727/"
] | You can also just store the click handlers in a variable and access them like this
```
$(document).ready(function () {
var allAs = $('a').click(function (e) { // <--- List of anchor tags
e.preventDefault();
var i = allAs.index(this) + 1; // <--- get next Index
alert(allAs.eq(i).text()); //... | ```js
$('a').click(function(){
var currentIndex = $('body a').index($(this))+1;
var text = $('body a:eq('+currentIndex+')').text();
console.log(text);
});
```
```html
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<div>
<a href='javascript:void(0)'> First </a... |
30,578,234 | **HTML**
```
<div>
<a href=''> First </a>
</div>
<div>
<div>
<a href=''> Second </a>
</div>
</div>
<a href=''>Third</a>
```
**Script**
```
$(document).ready(function(){
$('a').click(function(){
// find next a element
//var next = $(this).next('a');
//console.log(next.text());
});
... | 2015/06/01 | [
"https://Stackoverflow.com/questions/30578234",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4304727/"
] | You can also just store the click handlers in a variable and access them like this
```
$(document).ready(function () {
var allAs = $('a').click(function (e) { // <--- List of anchor tags
e.preventDefault();
var i = allAs.index(this) + 1; // <--- get next Index
alert(allAs.eq(i).text()); //... | Try this -
```
$(document).ready(function(){
var allAnchorElements = $("a");
allAnchorElements.click(function(){
// find the index of current element
var index = allAnchorElements.index($(this));
// find the next element
var next = allAnchorElements.eq(index+1);
// text of ne... |
46,194,046 | I have a MVC 5 application which is working fine in development environment. When I publish and deploy it in testing server (or any other , I get javascript error on login button click:
>
> Uncaught SyntaxError: Unexpected token u in JSON at position 0
>
>
>
Below is screenshot of the error[![enter image descrip... | 2017/09/13 | [
"https://Stackoverflow.com/questions/46194046",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6369835/"
] | I think the problem comes from the `error` handler in your `$.ajax` call, in fact the `xhr.responseText` is expected to be a JSON response but it came as a text string or `undefined` instead, so when you try to `parse` it in:
```
var data = $.parseJSON(xhr.responseText);
```
It will throw this error.
You will need ... | This error occurs when the string is undefined. It converts undefined to a string and tries to parse it, hence the 'u' at position 0.
Are you sure xhr has the property responseText? and it has a value? |
5,100,252 | In this web page: [CS302 --- External Sorting](https://web.archive.org/web/20110504141851/http://web.eecs.utk.edu/%7Ehuangj/CS302S04/notes/external-sorting2.html)
>
> Merge the resulting runs together into successively bigger runs, until the file is sorted.
>
>
>
As I quoted, how can we merge the resulting runs t... | 2011/02/24 | [
"https://Stackoverflow.com/questions/5100252",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/435645/"
] | Imagine you have the numbers 1 - 9
```
9 7 2 6 3 4 8 5 1
```
And let's suppose that only 3 fit in memory at a time.
So you'd break them into chunks of 3 and sort each, storing each result in a separate file:
```
279
346
158
```
Now you'd open each of the three files as streams and read the first value fr... | If you process two runs `A` and `B` into some larger run `C` you can do this line-by-line generating progressively larger runs, but still only reading at most 2 lines at a time. Because the process is iterative and because you're working on streams of data rather than full cuts of data you don't need to worry about mem... |
25,797 | I started gathering some information about Iceland reading Travel.SE (what else?) and I was quite surprised I didn't find a single question about moving around Iceland using public transport, a car seems mandatory.
How widespread is the public transportation system net in July? Would it be viable to rely upon it to m... | 2014/04/06 | [
"https://travel.stackexchange.com/questions/25797",
"https://travel.stackexchange.com",
"https://travel.stackexchange.com/users/2523/"
] | It definitely [looks like](http://www.thrillophilia.com/blog/camps-of-india-50-best-one/) almost anyone can set a camp almost anywhere in India.
If I were a non-local camping in India, I would definitely swing by the local police station and inquire if it was safe to stay put where I wanted to camp. This way, I'd know... | Legally it is ok to camp almost anywhere in India.
I am a local and have traveled a lot (especially South India). I've gone on a 2240 kms motorcycle journey through Kerala, Tamil Nadu and Karnataka on my HERO HONDA PASSION PLUS(2003 edition-silver.)
While you are in India, try do/not-to-do the following things:
... |
22,054,530 | My website contains pieces of content on which users can vote (like/dislike similar to reddit upvotes). When selecting an individual piece of content, I run the following subqueries to get the number of likes, the number of dislikes and the current user's vote.
The votes are stored in a separate table {contentId, user... | 2014/02/26 | [
"https://Stackoverflow.com/questions/22054530",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3213527/"
] | In terms of performance, those correlated subqueries can eat your lunch. And devour your lunchbox too, for large sets, because of the way MySQL processes them. Each of those subqueries gets executed for every row returned in the outer query. And that can get very expensive for large sets.
An alternative approach is to... | Your problem is simple your current sub queries are running for every single row returned.
You need to join to that data instead. You will need to change the code I've added to give you the correct counts but this should point you in the right direction.
```
SELECT
BLAH
Likes,
Dislikes
FROM CONTENT as C
... |
53,271 | I was awakened last night to a thump on my front door. When I turned the knob, I found none other than my close friend Dmitri! Before I could begin to inquire what he needed at this late hour, he uttered this nonsense:
>
> Eggs rotting, guns shooting: I smell hell!
>
> Let's not eat the crust's abundant; it's tox... | 2017/07/10 | [
"https://puzzling.stackexchange.com/questions/53271",
"https://puzzling.stackexchange.com",
"https://puzzling.stackexchange.com/users/38165/"
] | **Partial answer**
Having stared at this for a while and stopped making progress, here's what I have so far.
>
> The first letters say ELEMENTS and the friend is called [Dmitri](https://en.wikipedia.org/wiki/Dmitri_Mendeleev) so of course each line is a clue to a chemical element:
>
> S (sulfur) -- hydrogen sul... | Each line seems to refer to some element(s):
Eggs rotting, guns shooting: I smell hell!
>
> Things that smell like Sulfur (S)
>
>
>
Let's not eat the crust's abundant; it's toxic when pure!
>
> Oxygen is the most abundant element in the Earth's crust, toxic in high enough concentrations (O)
>
>
>
Everyon... |
53,271 | I was awakened last night to a thump on my front door. When I turned the knob, I found none other than my close friend Dmitri! Before I could begin to inquire what he needed at this late hour, he uttered this nonsense:
>
> Eggs rotting, guns shooting: I smell hell!
>
> Let's not eat the crust's abundant; it's tox... | 2017/07/10 | [
"https://puzzling.stackexchange.com/questions/53271",
"https://puzzling.stackexchange.com",
"https://puzzling.stackexchange.com/users/38165/"
] | As @IanMacDonald pointed out in a comment,
>
> The first letters of each line spell out ELEMENTS. We can see that each line describes a chemical element. Combine their symbols.
>
>
>
Eggs rotting, guns shooting: I smell hell!
>
> Sulfur (straightforward) -> S
>
>
>
Let's not eat the crust's abundant; it's... | Each line seems to refer to some element(s):
Eggs rotting, guns shooting: I smell hell!
>
> Things that smell like Sulfur (S)
>
>
>
Let's not eat the crust's abundant; it's toxic when pure!
>
> Oxygen is the most abundant element in the Earth's crust, toxic in high enough concentrations (O)
>
>
>
Everyon... |
53,271 | I was awakened last night to a thump on my front door. When I turned the knob, I found none other than my close friend Dmitri! Before I could begin to inquire what he needed at this late hour, he uttered this nonsense:
>
> Eggs rotting, guns shooting: I smell hell!
>
> Let's not eat the crust's abundant; it's tox... | 2017/07/10 | [
"https://puzzling.stackexchange.com/questions/53271",
"https://puzzling.stackexchange.com",
"https://puzzling.stackexchange.com/users/38165/"
] | As @IanMacDonald pointed out in a comment,
>
> The first letters of each line spell out ELEMENTS. We can see that each line describes a chemical element. Combine their symbols.
>
>
>
Eggs rotting, guns shooting: I smell hell!
>
> Sulfur (straightforward) -> S
>
>
>
Let's not eat the crust's abundant; it's... | **Partial answer**
Having stared at this for a while and stopped making progress, here's what I have so far.
>
> The first letters say ELEMENTS and the friend is called [Dmitri](https://en.wikipedia.org/wiki/Dmitri_Mendeleev) so of course each line is a clue to a chemical element:
>
> S (sulfur) -- hydrogen sul... |
15,934,068 | I currently have this under my shortcut
`C:\cygwin\bin\mintty.exe -i /Cygwin-Terminal.ico -`
after that is run i have to type in
`cd x:``ENTER`
then i run a `curl` script which does not change.
I tried to automate it by running the following command but it does not seem to work
my SH file
```
#!/bin/bash
cd x:... | 2013/04/10 | [
"https://Stackoverflow.com/questions/15934068",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2262779/"
] | Your command is telling `mintty` to start up and run your script, which is what it proceeds to do, then exit. That "popup" as you call it, is the terminal opening, running the command you passed it, and then exiting since it has done its job. | Does `mintty.exe` evaluate arguments to `--exec` with a filesystem root of `c:\` or the cygwin environment `/`? Try this.
```
mintty.exe --exec '/bin/test.sh'
```
or
```
mintty.exe --exec '/cygdrive/c/cygwin/bin/test.sh'
```
Also, if you haven't done so, you should `chmod 755 /bin/test.sh` to make it executable. |
15,934,068 | I currently have this under my shortcut
`C:\cygwin\bin\mintty.exe -i /Cygwin-Terminal.ico -`
after that is run i have to type in
`cd x:``ENTER`
then i run a `curl` script which does not change.
I tried to automate it by running the following command but it does not seem to work
my SH file
```
#!/bin/bash
cd x:... | 2013/04/10 | [
"https://Stackoverflow.com/questions/15934068",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2262779/"
] | for whoever is interested in this .. here is the solution
create a shortcut in windows for Mintty with the following taret
Assuming your shell file is located in c:\cygwin\bin
C:\cygwin\bin\mintty.exe /bin/bash -l -e '/cygdrive/c/cygwin/bin/test.sh'
once you have the shortcut working, you can do a windows task sche... | Does `mintty.exe` evaluate arguments to `--exec` with a filesystem root of `c:\` or the cygwin environment `/`? Try this.
```
mintty.exe --exec '/bin/test.sh'
```
or
```
mintty.exe --exec '/cygdrive/c/cygwin/bin/test.sh'
```
Also, if you haven't done so, you should `chmod 755 /bin/test.sh` to make it executable. |
63,362,867 | Hello I need to compare 2 dicts but in the result, I need to know from which dict the result came.
```
dict1 = {'name': 'Morgan', 'surename': 'Finch'}
dict2 = {'name': 'David', 'surename': 'Finch'}
```
so if I compare with `input_data.items() ^ response_data.items()` result will something like this:
```
{('name','M... | 2020/08/11 | [
"https://Stackoverflow.com/questions/63362867",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8614825/"
] | ```
dict1 = {'name': 'Morgan', 'surname': 'Finch'}
dict2 = {'name': 'David', 'surname': 'Finch'}
# symmetric difference (exclusive OR)
print(dict1.items() ^ dict2.items())
# {('name', 'Morgan'), ('name', 'David')}
# dictionary subtraction
print({'dict1': dict1.items() - dict2.items(), 'dict2': dict2.items() - dict1.i... | If you want the answer in the form of dictionary
You can use these steps
```
dict1 = {'name': 'Morgan', 'surename': 'Finch'}
dict2 = {'name': 'David', 'surename': 'Finch'}
dict3 = {}
for k,v in dict1.items():
if dict1[k] != dict2[k]:
dict3['dict1'] = (k,dict1[k])
dict3['dict2'] = (k,dict2[k])
p... |
19,109,477 | I had a csv file of my graph data. I imported this data to Neo4j using the Neo4j plugin available for Gephi. Now, I want this data to be exported as a jSON file. How can I do that? | 2013/10/01 | [
"https://Stackoverflow.com/questions/19109477",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1785312/"
] | I have the same problem and bootstrap 3 destroys my existing layouts and third party widgets. Here are something things I've tried in order of increasing difficulty and stability.
Easiest Way
===========
*Safe only if you don't use other bootstrap components*
Add the following css after the bootstrap css is loaded:
... | Yes, don't do that. Removing the `box-sizing: border-box` will ruin your grid. See also: [Why did Bootstrap 3 switch to box-sizing: border-box?](https://stackoverflow.com/questions/18854259/why-did-bootstrap-3-switch-to-box-sizing-border-box/18858771)
An example to show what happens:
```
<div class="container" style=... |
19,109,477 | I had a csv file of my graph data. I imported this data to Neo4j using the Neo4j plugin available for Gephi. Now, I want this data to be exported as a jSON file. How can I do that? | 2013/10/01 | [
"https://Stackoverflow.com/questions/19109477",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1785312/"
] | Yes, don't do that. Removing the `box-sizing: border-box` will ruin your grid. See also: [Why did Bootstrap 3 switch to box-sizing: border-box?](https://stackoverflow.com/questions/18854259/why-did-bootstrap-3-switch-to-box-sizing-border-box/18858771)
An example to show what happens:
```
<div class="container" style=... | Add this in your mixin or variables less and make sure it loads after scaffolding.less
It resets the bs3 box-sizing and applies it again to specific elements and all BS3 required elements.
I found that most mess created by the default BS3 box sizing is when it is applied to
```
a,ul,li
```
The magic
```
* {
.bo... |
19,109,477 | I had a csv file of my graph data. I imported this data to Neo4j using the Neo4j plugin available for Gephi. Now, I want this data to be exported as a jSON file. How can I do that? | 2013/10/01 | [
"https://Stackoverflow.com/questions/19109477",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1785312/"
] | Yes, don't do that. Removing the `box-sizing: border-box` will ruin your grid. See also: [Why did Bootstrap 3 switch to box-sizing: border-box?](https://stackoverflow.com/questions/18854259/why-did-bootstrap-3-switch-to-box-sizing-border-box/18858771)
An example to show what happens:
```
<div class="container" style=... | I used a combination of above solutions to fit my need
(I used only the grid system, everything else was already there)
```
/* *,
*:before,
*:after {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
*/
[class^="container-"],
[class^="container-"] *,
[class^="col-"],
[clas... |
19,109,477 | I had a csv file of my graph data. I imported this data to Neo4j using the Neo4j plugin available for Gephi. Now, I want this data to be exported as a jSON file. How can I do that? | 2013/10/01 | [
"https://Stackoverflow.com/questions/19109477",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1785312/"
] | I have the same problem and bootstrap 3 destroys my existing layouts and third party widgets. Here are something things I've tried in order of increasing difficulty and stability.
Easiest Way
===========
*Safe only if you don't use other bootstrap components*
Add the following css after the bootstrap css is loaded:
... | Add this in your mixin or variables less and make sure it loads after scaffolding.less
It resets the bs3 box-sizing and applies it again to specific elements and all BS3 required elements.
I found that most mess created by the default BS3 box sizing is when it is applied to
```
a,ul,li
```
The magic
```
* {
.bo... |
19,109,477 | I had a csv file of my graph data. I imported this data to Neo4j using the Neo4j plugin available for Gephi. Now, I want this data to be exported as a jSON file. How can I do that? | 2013/10/01 | [
"https://Stackoverflow.com/questions/19109477",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1785312/"
] | I have the same problem and bootstrap 3 destroys my existing layouts and third party widgets. Here are something things I've tried in order of increasing difficulty and stability.
Easiest Way
===========
*Safe only if you don't use other bootstrap components*
Add the following css after the bootstrap css is loaded:
... | I used a combination of above solutions to fit my need
(I used only the grid system, everything else was already there)
```
/* *,
*:before,
*:after {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
*/
[class^="container-"],
[class^="container-"] *,
[class^="col-"],
[clas... |
19,109,477 | I had a csv file of my graph data. I imported this data to Neo4j using the Neo4j plugin available for Gephi. Now, I want this data to be exported as a jSON file. How can I do that? | 2013/10/01 | [
"https://Stackoverflow.com/questions/19109477",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1785312/"
] | Add this in your mixin or variables less and make sure it loads after scaffolding.less
It resets the bs3 box-sizing and applies it again to specific elements and all BS3 required elements.
I found that most mess created by the default BS3 box sizing is when it is applied to
```
a,ul,li
```
The magic
```
* {
.bo... | I used a combination of above solutions to fit my need
(I used only the grid system, everything else was already there)
```
/* *,
*:before,
*:after {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
*/
[class^="container-"],
[class^="container-"] *,
[class^="col-"],
[clas... |
52,552,284 | How can I change the color of the using CSS?
Saw on another post that if I use the following code, it would change it, but I had no luck with it so far.
```
.mat-radio-button.mat-accent .mat-radio-ripple .mat-ripple-element {
background-color:rgb(255, 37, 37);
}
.mat-radio-button.mat-accent.mat-radio-checked... | 2018/09/28 | [
"https://Stackoverflow.com/questions/52552284",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6906311/"
] | ```
::ng-deep .mat-radio-button.mat-accent .mat-radio-ripple .mat-ripple-element {
background-color: blue !important;
}
::ng-deep .mat-radio-button.mat-accent .mat-radio-inner-circle {
background-color: blue!important; /*inner circle color change*/
}
::ng-deep.mat-radio-button.mat-accent.mat-radio-checked .mat-... | You can set custom color using following approach:
Put this code in your module declaration:
```
providers: [{
provide: MAT_RADIO_DEFAULT_OPTIONS,
useValue: { color: 'accent' },
}]
``` |
52,552,284 | How can I change the color of the using CSS?
Saw on another post that if I use the following code, it would change it, but I had no luck with it so far.
```
.mat-radio-button.mat-accent .mat-radio-ripple .mat-ripple-element {
background-color:rgb(255, 37, 37);
}
.mat-radio-button.mat-accent.mat-radio-checked... | 2018/09/28 | [
"https://Stackoverflow.com/questions/52552284",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6906311/"
] | The solution that worked for me was this, add this to your:
**style.css/style.scss**
```
.mat-radio-button.mat-accent .mat-radio-ripple .mat-ripple-element {
background-color: rgb(22, 92, 125) !important;
}
.mat-radio-button.mat-accent .mat-radio-inner-circle {
background-color: rgb(22, 92, 125) !important... | Little upgrade for the selected answer. worked for me.
```
$myMatRadioRippleColor: #0000FF;
::ng-deep .mat-radio-button.mat-accent {
&.mat-radio-checked .mat-radio-outer-circle {
border-color: $myMatRadioRippleColor;
}
.mat-radio-inner-circle {
color: $myMatRadioRippleColor;
background-color: $myM... |
52,552,284 | How can I change the color of the using CSS?
Saw on another post that if I use the following code, it would change it, but I had no luck with it so far.
```
.mat-radio-button.mat-accent .mat-radio-ripple .mat-ripple-element {
background-color:rgb(255, 37, 37);
}
.mat-radio-button.mat-accent.mat-radio-checked... | 2018/09/28 | [
"https://Stackoverflow.com/questions/52552284",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6906311/"
] | You can set custom color using following approach:
Put this code in your module declaration:
```
providers: [{
provide: MAT_RADIO_DEFAULT_OPTIONS,
useValue: { color: 'accent' },
}]
``` | I'm on ng 13.1.2 and adding color attribute to my mat-radio-buttion worked for me
```
<mat-radio-button color="primary" style="..." class="..." value="..." (change)="...">
RADIO LABEL
</mat-radio-button>
``` |
52,552,284 | How can I change the color of the using CSS?
Saw on another post that if I use the following code, it would change it, but I had no luck with it so far.
```
.mat-radio-button.mat-accent .mat-radio-ripple .mat-ripple-element {
background-color:rgb(255, 37, 37);
}
.mat-radio-button.mat-accent.mat-radio-checked... | 2018/09/28 | [
"https://Stackoverflow.com/questions/52552284",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6906311/"
] | The solution that worked for me was this, add this to your:
**style.css/style.scss**
```
.mat-radio-button.mat-accent .mat-radio-ripple .mat-ripple-element {
background-color: rgb(22, 92, 125) !important;
}
.mat-radio-button.mat-accent .mat-radio-inner-circle {
background-color: rgb(22, 92, 125) !important... | I'm on ng 13.1.2 and adding color attribute to my mat-radio-buttion worked for me
```
<mat-radio-button color="primary" style="..." class="..." value="..." (change)="...">
RADIO LABEL
</mat-radio-button>
``` |
52,552,284 | How can I change the color of the using CSS?
Saw on another post that if I use the following code, it would change it, but I had no luck with it so far.
```
.mat-radio-button.mat-accent .mat-radio-ripple .mat-ripple-element {
background-color:rgb(255, 37, 37);
}
.mat-radio-button.mat-accent.mat-radio-checked... | 2018/09/28 | [
"https://Stackoverflow.com/questions/52552284",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6906311/"
] | add this css in your `style.css/style.scss`
**[Stackblitz](https://stackblitz.com/edit/angular-6-material-hues-and-how-to-change-the-color-of-mat-radi?file=styles.css)**
**style.css/style.scss**
```
.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{
border-color:rgb(66, 134, 244);
}
.mat-ra... | ```
::ng-deep .mat-radio-button.mat-accent .mat-radio-ripple .mat-ripple-element {
background-color: blue !important;
}
::ng-deep .mat-radio-button.mat-accent .mat-radio-inner-circle {
background-color: blue!important; /*inner circle color change*/
}
::ng-deep.mat-radio-button.mat-accent.mat-radio-checked .mat-... |
52,552,284 | How can I change the color of the using CSS?
Saw on another post that if I use the following code, it would change it, but I had no luck with it so far.
```
.mat-radio-button.mat-accent .mat-radio-ripple .mat-ripple-element {
background-color:rgb(255, 37, 37);
}
.mat-radio-button.mat-accent.mat-radio-checked... | 2018/09/28 | [
"https://Stackoverflow.com/questions/52552284",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6906311/"
] | None of the above worked for me. But this one worked i.e put color="primary" on mat -radio button. ie
```
<mat-radio-button color="primary" value=1>Active</<mat-radio-button>.
```
See example below
<https://stackblitz.com/edit/angular-material2-issue-ethbcx> | The solution that worked for me was this, add this to your:
**style.css/style.scss**
```
.mat-radio-button.mat-accent .mat-radio-ripple .mat-ripple-element {
background-color: rgb(22, 92, 125) !important;
}
.mat-radio-button.mat-accent .mat-radio-inner-circle {
background-color: rgb(22, 92, 125) !important... |
52,552,284 | How can I change the color of the using CSS?
Saw on another post that if I use the following code, it would change it, but I had no luck with it so far.
```
.mat-radio-button.mat-accent .mat-radio-ripple .mat-ripple-element {
background-color:rgb(255, 37, 37);
}
.mat-radio-button.mat-accent.mat-radio-checked... | 2018/09/28 | [
"https://Stackoverflow.com/questions/52552284",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6906311/"
] | add this css in your `style.css/style.scss`
**[Stackblitz](https://stackblitz.com/edit/angular-6-material-hues-and-how-to-change-the-color-of-mat-radi?file=styles.css)**
**style.css/style.scss**
```
.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{
border-color:rgb(66, 134, 244);
}
.mat-ra... | None of the above worked for me. But this one worked i.e put color="primary" on mat -radio button. ie
```
<mat-radio-button color="primary" value=1>Active</<mat-radio-button>.
```
See example below
<https://stackblitz.com/edit/angular-material2-issue-ethbcx> |
52,552,284 | How can I change the color of the using CSS?
Saw on another post that if I use the following code, it would change it, but I had no luck with it so far.
```
.mat-radio-button.mat-accent .mat-radio-ripple .mat-ripple-element {
background-color:rgb(255, 37, 37);
}
.mat-radio-button.mat-accent.mat-radio-checked... | 2018/09/28 | [
"https://Stackoverflow.com/questions/52552284",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6906311/"
] | ```
::ng-deep .mat-radio-button.mat-accent .mat-radio-ripple .mat-ripple-element {
background-color: blue !important;
}
::ng-deep .mat-radio-button.mat-accent .mat-radio-inner-circle {
background-color: blue!important; /*inner circle color change*/
}
::ng-deep.mat-radio-button.mat-accent.mat-radio-checked .mat-... | Little upgrade for the selected answer. worked for me.
```
$myMatRadioRippleColor: #0000FF;
::ng-deep .mat-radio-button.mat-accent {
&.mat-radio-checked .mat-radio-outer-circle {
border-color: $myMatRadioRippleColor;
}
.mat-radio-inner-circle {
color: $myMatRadioRippleColor;
background-color: $myM... |
52,552,284 | How can I change the color of the using CSS?
Saw on another post that if I use the following code, it would change it, but I had no luck with it so far.
```
.mat-radio-button.mat-accent .mat-radio-ripple .mat-ripple-element {
background-color:rgb(255, 37, 37);
}
.mat-radio-button.mat-accent.mat-radio-checked... | 2018/09/28 | [
"https://Stackoverflow.com/questions/52552284",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6906311/"
] | You can set custom color using following approach:
Put this code in your module declaration:
```
providers: [{
provide: MAT_RADIO_DEFAULT_OPTIONS,
useValue: { color: 'accent' },
}]
``` | The solution that worked for me was this, add this to your:
**style.css/style.scss**
```
.mat-radio-button.mat-accent .mat-radio-ripple .mat-ripple-element {
background-color: rgb(22, 92, 125) !important;
}
.mat-radio-button.mat-accent .mat-radio-inner-circle {
background-color: rgb(22, 92, 125) !important... |
52,552,284 | How can I change the color of the using CSS?
Saw on another post that if I use the following code, it would change it, but I had no luck with it so far.
```
.mat-radio-button.mat-accent .mat-radio-ripple .mat-ripple-element {
background-color:rgb(255, 37, 37);
}
.mat-radio-button.mat-accent.mat-radio-checked... | 2018/09/28 | [
"https://Stackoverflow.com/questions/52552284",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6906311/"
] | None of the above worked for me. But this one worked i.e put color="primary" on mat -radio button. ie
```
<mat-radio-button color="primary" value=1>Active</<mat-radio-button>.
```
See example below
<https://stackblitz.com/edit/angular-material2-issue-ethbcx> | Little upgrade for the selected answer. worked for me.
```
$myMatRadioRippleColor: #0000FF;
::ng-deep .mat-radio-button.mat-accent {
&.mat-radio-checked .mat-radio-outer-circle {
border-color: $myMatRadioRippleColor;
}
.mat-radio-inner-circle {
color: $myMatRadioRippleColor;
background-color: $myM... |
6,123,309 | So, after discovering [that the Bitmap class expects the original stream to stay open for the life of the image or bitmap](https://stackoverflow.com/questions/336387/image-save-throws-a-gdi-exception-because-the-memory-stream-is-closed), I decided to find out if the Bitmap class actually closes the stream when it is di... | 2011/05/25 | [
"https://Stackoverflow.com/questions/6123309",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/166893/"
] | Since you supply the stream in this example, I'd imagine you are responsible for disposing it. | It is a good practice to have the method that opens a stream, close it as well. That way it is easier to keep track of leaks. It would be quite strange to have an other object closing the stream that you opened. |
6,123,309 | So, after discovering [that the Bitmap class expects the original stream to stay open for the life of the image or bitmap](https://stackoverflow.com/questions/336387/image-save-throws-a-gdi-exception-because-the-memory-stream-is-closed), I decided to find out if the Bitmap class actually closes the stream when it is di... | 2011/05/25 | [
"https://Stackoverflow.com/questions/6123309",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/166893/"
] | Since you supply the stream in this example, I'd imagine you are responsible for disposing it. | Because bitmap can't guarantee in which order the destructor is called it will not close the stream because it may already have been closed with its own destructor during garbage collection. Jeffrey Richter's CLR via C# has a chapter on memory management that explains with much more clarity than I can. |
6,123,309 | So, after discovering [that the Bitmap class expects the original stream to stay open for the life of the image or bitmap](https://stackoverflow.com/questions/336387/image-save-throws-a-gdi-exception-because-the-memory-stream-is-closed), I decided to find out if the Bitmap class actually closes the stream when it is di... | 2011/05/25 | [
"https://Stackoverflow.com/questions/6123309",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/166893/"
] | Since you supply the stream in this example, I'd imagine you are responsible for disposing it. | An easy workaround to the problem is:
```
var image = new Bitmap(stream);
image.Tag = stream;
```
Now the stream is referenced by the image and won't be garbage collected before the image is. If your stream happens to be a MemoryStream, it doesn't need to be disposed (its Dispose is a no-op). If not, you can dispose... |
6,123,309 | So, after discovering [that the Bitmap class expects the original stream to stay open for the life of the image or bitmap](https://stackoverflow.com/questions/336387/image-save-throws-a-gdi-exception-because-the-memory-stream-is-closed), I decided to find out if the Bitmap class actually closes the stream when it is di... | 2011/05/25 | [
"https://Stackoverflow.com/questions/6123309",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/166893/"
] | It is a good practice to have the method that opens a stream, close it as well. That way it is easier to keep track of leaks. It would be quite strange to have an other object closing the stream that you opened. | Because bitmap can't guarantee in which order the destructor is called it will not close the stream because it may already have been closed with its own destructor during garbage collection. Jeffrey Richter's CLR via C# has a chapter on memory management that explains with much more clarity than I can. |
6,123,309 | So, after discovering [that the Bitmap class expects the original stream to stay open for the life of the image or bitmap](https://stackoverflow.com/questions/336387/image-save-throws-a-gdi-exception-because-the-memory-stream-is-closed), I decided to find out if the Bitmap class actually closes the stream when it is di... | 2011/05/25 | [
"https://Stackoverflow.com/questions/6123309",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/166893/"
] | It is a good practice to have the method that opens a stream, close it as well. That way it is easier to keep track of leaks. It would be quite strange to have an other object closing the stream that you opened. | An easy workaround to the problem is:
```
var image = new Bitmap(stream);
image.Tag = stream;
```
Now the stream is referenced by the image and won't be garbage collected before the image is. If your stream happens to be a MemoryStream, it doesn't need to be disposed (its Dispose is a no-op). If not, you can dispose... |
95,497 | I am currently working as the DM for Out of the Abyss and have a Paladin in my party. This means at level 5, I need to come up with a Mount for her.
Due to the Underdark being the Underdark, traditional surface world mounts aren't terribly useful. A Horse is going to have a hard time navigating the tunnels and cliffs ... | 2017/02/23 | [
"https://rpg.stackexchange.com/questions/95497",
"https://rpg.stackexchange.com",
"https://rpg.stackexchange.com/users/16358/"
] | ### A Giant Goat fits your needs; roughly the same power level as warhorse
>
> A Horse is going to have a hard time navigating the tunnels and cliffs
> and ledges and everything else that makes up the terrain.
>
>
>
Using the same CR as warhorse (1/2) and the same HP (19) you can offer a [Giant goat](http://medi... | [Carrion Crawler](https://en.wikipedia.org/wiki/Carrion_crawler), Monster Manual page 37.
It's a large creature (a monstrosity, not a beast, which makes a difference for some spells and features) with spider climb. I think its a GM call whether it has the strength and rigidity to carry a medium character. It should at... |
95,497 | I am currently working as the DM for Out of the Abyss and have a Paladin in my party. This means at level 5, I need to come up with a Mount for her.
Due to the Underdark being the Underdark, traditional surface world mounts aren't terribly useful. A Horse is going to have a hard time navigating the tunnels and cliffs ... | 2017/02/23 | [
"https://rpg.stackexchange.com/questions/95497",
"https://rpg.stackexchange.com",
"https://rpg.stackexchange.com/users/16358/"
] | ### A Giant Goat fits your needs; roughly the same power level as warhorse
>
> A Horse is going to have a hard time navigating the tunnels and cliffs
> and ledges and everything else that makes up the terrain.
>
>
>
Using the same CR as warhorse (1/2) and the same HP (19) you can offer a [Giant goat](http://medi... | If you want material for an underdark campaign, the [drowtales](http://www.drowtales.com) comic is set there and may provide inspiration. For your specific question, various drow clans in the comic use:
* [Dire wolves](https://roll20.net/compendium/dnd5e/Dire%20Wolf), which have non-sight-based bonuses to perception. ... |
95,497 | I am currently working as the DM for Out of the Abyss and have a Paladin in my party. This means at level 5, I need to come up with a Mount for her.
Due to the Underdark being the Underdark, traditional surface world mounts aren't terribly useful. A Horse is going to have a hard time navigating the tunnels and cliffs ... | 2017/02/23 | [
"https://rpg.stackexchange.com/questions/95497",
"https://rpg.stackexchange.com",
"https://rpg.stackexchange.com/users/16358/"
] | I did a [search](https://www.dndbeyond.com/monsters?filter-type=0&filter-search=&filter-cr-min=&filter-cr-max=5&filter-size=5&filter-environment=9&filter-armor-class-min=&filter-armor-class-max=&filter-average-hp-min=&filter-average-hp-max=&filter-is-legendary=&filter-has-lair=) on D&D Beyond for Large Underdark creatu... | ### A Giant Goat fits your needs; roughly the same power level as warhorse
>
> A Horse is going to have a hard time navigating the tunnels and cliffs
> and ledges and everything else that makes up the terrain.
>
>
>
Using the same CR as warhorse (1/2) and the same HP (19) you can offer a [Giant goat](http://medi... |
95,497 | I am currently working as the DM for Out of the Abyss and have a Paladin in my party. This means at level 5, I need to come up with a Mount for her.
Due to the Underdark being the Underdark, traditional surface world mounts aren't terribly useful. A Horse is going to have a hard time navigating the tunnels and cliffs ... | 2017/02/23 | [
"https://rpg.stackexchange.com/questions/95497",
"https://rpg.stackexchange.com",
"https://rpg.stackexchange.com/users/16358/"
] | I don't speak for the canonicity of these alternatives, as I've not read the source material, but I draw the references from this [website](https://www.textise.net/showText.aspx?strURL=http%253A//drowcampaign.roleplaynexus.com/drowcreatures.html). I summarize here in the event of link rot. I'm only including the ones f... | [Carrion Crawler](https://en.wikipedia.org/wiki/Carrion_crawler), Monster Manual page 37.
It's a large creature (a monstrosity, not a beast, which makes a difference for some spells and features) with spider climb. I think its a GM call whether it has the strength and rigidity to carry a medium character. It should at... |
95,497 | I am currently working as the DM for Out of the Abyss and have a Paladin in my party. This means at level 5, I need to come up with a Mount for her.
Due to the Underdark being the Underdark, traditional surface world mounts aren't terribly useful. A Horse is going to have a hard time navigating the tunnels and cliffs ... | 2017/02/23 | [
"https://rpg.stackexchange.com/questions/95497",
"https://rpg.stackexchange.com",
"https://rpg.stackexchange.com/users/16358/"
] | I don't speak for the canonicity of these alternatives, as I've not read the source material, but I draw the references from this [website](https://www.textise.net/showText.aspx?strURL=http%253A//drowcampaign.roleplaynexus.com/drowcreatures.html). I summarize here in the event of link rot. I'm only including the ones f... | If you want material for an underdark campaign, the [drowtales](http://www.drowtales.com) comic is set there and may provide inspiration. For your specific question, various drow clans in the comic use:
* [Dire wolves](https://roll20.net/compendium/dnd5e/Dire%20Wolf), which have non-sight-based bonuses to perception. ... |
95,497 | I am currently working as the DM for Out of the Abyss and have a Paladin in my party. This means at level 5, I need to come up with a Mount for her.
Due to the Underdark being the Underdark, traditional surface world mounts aren't terribly useful. A Horse is going to have a hard time navigating the tunnels and cliffs ... | 2017/02/23 | [
"https://rpg.stackexchange.com/questions/95497",
"https://rpg.stackexchange.com",
"https://rpg.stackexchange.com/users/16358/"
] | I did a [search](https://www.dndbeyond.com/monsters?filter-type=0&filter-search=&filter-cr-min=&filter-cr-max=5&filter-size=5&filter-environment=9&filter-armor-class-min=&filter-armor-class-max=&filter-average-hp-min=&filter-average-hp-max=&filter-is-legendary=&filter-has-lair=) on D&D Beyond for Large Underdark creatu... | I don't speak for the canonicity of these alternatives, as I've not read the source material, but I draw the references from this [website](https://www.textise.net/showText.aspx?strURL=http%253A//drowcampaign.roleplaynexus.com/drowcreatures.html). I summarize here in the event of link rot. I'm only including the ones f... |
95,497 | I am currently working as the DM for Out of the Abyss and have a Paladin in my party. This means at level 5, I need to come up with a Mount for her.
Due to the Underdark being the Underdark, traditional surface world mounts aren't terribly useful. A Horse is going to have a hard time navigating the tunnels and cliffs ... | 2017/02/23 | [
"https://rpg.stackexchange.com/questions/95497",
"https://rpg.stackexchange.com",
"https://rpg.stackexchange.com/users/16358/"
] | If you want material for an underdark campaign, the [drowtales](http://www.drowtales.com) comic is set there and may provide inspiration. For your specific question, various drow clans in the comic use:
* [Dire wolves](https://roll20.net/compendium/dnd5e/Dire%20Wolf), which have non-sight-based bonuses to perception. ... | [Carrion Crawler](https://en.wikipedia.org/wiki/Carrion_crawler), Monster Manual page 37.
It's a large creature (a monstrosity, not a beast, which makes a difference for some spells and features) with spider climb. I think its a GM call whether it has the strength and rigidity to carry a medium character. It should at... |
95,497 | I am currently working as the DM for Out of the Abyss and have a Paladin in my party. This means at level 5, I need to come up with a Mount for her.
Due to the Underdark being the Underdark, traditional surface world mounts aren't terribly useful. A Horse is going to have a hard time navigating the tunnels and cliffs ... | 2017/02/23 | [
"https://rpg.stackexchange.com/questions/95497",
"https://rpg.stackexchange.com",
"https://rpg.stackexchange.com/users/16358/"
] | I did a [search](https://www.dndbeyond.com/monsters?filter-type=0&filter-search=&filter-cr-min=&filter-cr-max=5&filter-size=5&filter-environment=9&filter-armor-class-min=&filter-armor-class-max=&filter-average-hp-min=&filter-average-hp-max=&filter-is-legendary=&filter-has-lair=) on D&D Beyond for Large Underdark creatu... | [Carrion Crawler](https://en.wikipedia.org/wiki/Carrion_crawler), Monster Manual page 37.
It's a large creature (a monstrosity, not a beast, which makes a difference for some spells and features) with spider climb. I think its a GM call whether it has the strength and rigidity to carry a medium character. It should at... |
95,497 | I am currently working as the DM for Out of the Abyss and have a Paladin in my party. This means at level 5, I need to come up with a Mount for her.
Due to the Underdark being the Underdark, traditional surface world mounts aren't terribly useful. A Horse is going to have a hard time navigating the tunnels and cliffs ... | 2017/02/23 | [
"https://rpg.stackexchange.com/questions/95497",
"https://rpg.stackexchange.com",
"https://rpg.stackexchange.com/users/16358/"
] | I did a [search](https://www.dndbeyond.com/monsters?filter-type=0&filter-search=&filter-cr-min=&filter-cr-max=5&filter-size=5&filter-environment=9&filter-armor-class-min=&filter-armor-class-max=&filter-average-hp-min=&filter-average-hp-max=&filter-is-legendary=&filter-has-lair=) on D&D Beyond for Large Underdark creatu... | If you want material for an underdark campaign, the [drowtales](http://www.drowtales.com) comic is set there and may provide inspiration. For your specific question, various drow clans in the comic use:
* [Dire wolves](https://roll20.net/compendium/dnd5e/Dire%20Wolf), which have non-sight-based bonuses to perception. ... |
45,804,125 | I am using webpack to include [mdbootstrap](https://mdbootstrap.com/)
This is how I am including it in my Project:
```
require('mdbootstrap/css/mdb.min.css');
require('mdbootstrap/js/mdb.min.js');
```
I tried `require('mdbootstrap')` also, but in both the cases I am getting the following error:
```
vendor.js:7... | 2017/08/21 | [
"https://Stackoverflow.com/questions/45804125",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7683506/"
] | i worked with:
cmd: `npm install node-waves`
main.js File
```
var waves = required('node-waves')
window.Waves = waves
``` | I also come across this problem, and I find code of Waves.js in mdb.js file, so you don't need install node-waves.
The solution I google is comment those code in mdb.js
```js
Waves.attach(‘.btn, .btn-floating’, [‘waves-light’]);
Waves.attach(‘.waves-light’, [‘waves-light’]);
Waves.attach(‘.navbar-nav a:not(.navbar-b... |
45,804,125 | I am using webpack to include [mdbootstrap](https://mdbootstrap.com/)
This is how I am including it in my Project:
```
require('mdbootstrap/css/mdb.min.css');
require('mdbootstrap/js/mdb.min.js');
```
I tried `require('mdbootstrap')` also, but in both the cases I am getting the following error:
```
vendor.js:7... | 2017/08/21 | [
"https://Stackoverflow.com/questions/45804125",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7683506/"
] | i worked with:
cmd: `npm install node-waves`
main.js File
```
var waves = required('node-waves')
window.Waves = waves
``` | In case you are using **Vue**, this is the solution that worked for me:
**Install node-waves**:
```
npm install node-waves --save
```
**Declare it in webpack** (in both webpack.dev.conf.js and webpack.prod.conf.js):
```
new webpack.ProvidePlugin({
'Waves': 'node-waves'
}),
``` |
45,804,125 | I am using webpack to include [mdbootstrap](https://mdbootstrap.com/)
This is how I am including it in my Project:
```
require('mdbootstrap/css/mdb.min.css');
require('mdbootstrap/js/mdb.min.js');
```
I tried `require('mdbootstrap')` also, but in both the cases I am getting the following error:
```
vendor.js:7... | 2017/08/21 | [
"https://Stackoverflow.com/questions/45804125",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7683506/"
] | In case you are using **Vue**, this is the solution that worked for me:
**Install node-waves**:
```
npm install node-waves --save
```
**Declare it in webpack** (in both webpack.dev.conf.js and webpack.prod.conf.js):
```
new webpack.ProvidePlugin({
'Waves': 'node-waves'
}),
``` | I also come across this problem, and I find code of Waves.js in mdb.js file, so you don't need install node-waves.
The solution I google is comment those code in mdb.js
```js
Waves.attach(‘.btn, .btn-floating’, [‘waves-light’]);
Waves.attach(‘.waves-light’, [‘waves-light’]);
Waves.attach(‘.navbar-nav a:not(.navbar-b... |
15,900,784 | I am new in C-Sharp, i am trying to access my Database from C-Sharp, i have written the following code, and i dont know what to write next to view data. I have searched this on net but didnt get much. Kindly tell me this in easy code.
```
string connection = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=F:\Database3... | 2013/04/09 | [
"https://Stackoverflow.com/questions/15900784",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1795157/"
] | **Refer following code:**
```
string strProvider = "@"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=F:\Database3.accdb";
string strSql = "Select * from score";
OleDbConnection con = new OleDbConnection(strProvider);
OleDbCommand cmd = new OleDbCommand(strSql, con);
con.Open();
cmd.CommandType = CommandType.Text;
OleDb... | Try this
```
try
{
Dataset myDataSet=new Dataset();
string connection = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=F:\Database3.accdb";
OleDbCommand cmd = new OleDbCommand("Select * from score", conn);
OleDbDataAdapter myDataAdapter = new OleDbDataAdapter(cmd );
... |
34,447,099 | I'm learning web development and I'm trying to copy another site's layout to train my skills, but one point in this site i can't do =/
```
<div class="a">
<span>Teste</span>
<i>Teste Two</i>
</div>
```
---
```
html {
color:#fff;
}
.a {
width:200px;
height:200px;
background:#000;
text-align:center;
font-size:36px;
... | 2015/12/24 | [
"https://Stackoverflow.com/questions/34447099",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4756005/"
] | >
> Here is the code which you have written. I just did little bit of editing here.
>
>
>
```css
html{
color:#000;
}
.a{
width:200px;
height:200px;
background:#000;
text-align:center;
font-size:36px;
overflow:hidden;
cursor:pointer;
}
.b{
width:200px;
height:200px; background:url... | this link <http://codepen.io/anon/pen/JGRGBd>
the hover is working but you have not put anything changes to be made when css detects a mouse hover the tag
change
```
.a:hover{
}
```
to
```
.a:hover{
background:green;
}
```
you will see the difference
EDIT for the basics of pseudo elements see here
<http://... |
34,447,099 | I'm learning web development and I'm trying to copy another site's layout to train my skills, but one point in this site i can't do =/
```
<div class="a">
<span>Teste</span>
<i>Teste Two</i>
</div>
```
---
```
html {
color:#fff;
}
.a {
width:200px;
height:200px;
background:#000;
text-align:center;
font-size:36px;
... | 2015/12/24 | [
"https://Stackoverflow.com/questions/34447099",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4756005/"
] | >
> Here is the code which you have written. I just did little bit of editing here.
>
>
>
```css
html{
color:#000;
}
.a{
width:200px;
height:200px;
background:#000;
text-align:center;
font-size:36px;
overflow:hidden;
cursor:pointer;
}
.b{
width:200px;
height:200px; background:url... | The second link does this with a `transition` CSS item on the second text:
```
-webkit-transition: -webkit-transform 0.5s ease,opacity 0.5s ease;
-moz-transition: -moz-transform 0.5s ease,opacity 0.5s ease;
-ms-transition: transform 0.5s ease,opacity 0.5s ease;
transition: transform 0.5s ease,opacity 0.5s ease;
```
... |
34,447,099 | I'm learning web development and I'm trying to copy another site's layout to train my skills, but one point in this site i can't do =/
```
<div class="a">
<span>Teste</span>
<i>Teste Two</i>
</div>
```
---
```
html {
color:#fff;
}
.a {
width:200px;
height:200px;
background:#000;
text-align:center;
font-size:36px;
... | 2015/12/24 | [
"https://Stackoverflow.com/questions/34447099",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4756005/"
] | >
> Here is the code which you have written. I just did little bit of editing here.
>
>
>
```css
html{
color:#000;
}
.a{
width:200px;
height:200px;
background:#000;
text-align:center;
font-size:36px;
overflow:hidden;
cursor:pointer;
}
.b{
width:200px;
height:200px; background:url... | ```
.a:hover
{
background-color:#f00;
transition: background-color 0.35s ease-out 0.1s;
}
``` |
14,632,416 | Am working on Rails Tutorials and I reached the layout part.
It is instructed to use "provide" in the views, and use "yield" in the layout file.
why don't we just use instant variable instead
in code:
view about:
```
<% @title = 'about' %>
```
application layout
```
<title>Website Name | <%= @title %></title>
```
... | 2013/01/31 | [
"https://Stackoverflow.com/questions/14632416",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/764658/"
] | Instead of provide you can use content\_for and pass a block of code. Then yield will be able to execute this block of code - it doesn’t just print a variable.
This is useful because in more complex views you will use another concept know as "helpers". Keep going with the good work and I'm sure things will become clea... | you need to use `provide` or `content_for` when you are not able to determine the value of a variable beforehand.
example:
* render layout
+ yield title <-- not yet defined
+ yield main template
- provide title <-- defined here |
15,814,854 | we have a partial html:
```
<ul>
<li class="class1">AFFECTED</li>
<li class="class1 class2">NOT</li>
<li class="class1">NOT</li>
</ul>
<ul>
<li class="class1 class2">NOT</li>
<li class="class1">AFFECTED</li>
<li class="class1">NOT</li>
</ul>
<ul>
<li>NOT</li>
<li class="class1">AFFE... | 2013/04/04 | [
"https://Stackoverflow.com/questions/15814854",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/503677/"
] | If you want to specifically exclude `class2` from the selector, use:
```
li.class1:first-child:not(.class2) { }
```
If you want to exclude any additional classes other than `class1` use:
```
li[class=class1]:first-child { }
```
I would recommend the first if you know which class(es) you're excluding as it will i... | Try this
```
li:first-child
{
...
}
```
this is only for class 1
```
li.class1:first-child
{
color:#ff0000;
}
```
and here is a [fiddle](http://jsfiddle.net/x7Ezh/)
and if you dont want the list with class2 to be affected
maybe this can work for you
```
li.class1.class2:first-child
{
...
... |
15,814,854 | we have a partial html:
```
<ul>
<li class="class1">AFFECTED</li>
<li class="class1 class2">NOT</li>
<li class="class1">NOT</li>
</ul>
<ul>
<li class="class1 class2">NOT</li>
<li class="class1">AFFECTED</li>
<li class="class1">NOT</li>
</ul>
<ul>
<li>NOT</li>
<li class="class1">AFFE... | 2013/04/04 | [
"https://Stackoverflow.com/questions/15814854",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/503677/"
] | You should be able to capture only the elements with `.class1` and no other using this selector:
```
li[class="class1"]
```
You won't be able to match only the *first* out of these elements because there isn't a selector to do that. `:first-child` only selects the very first child within the `ul` regardless of what ... | Try this
```
li:first-child
{
...
}
```
this is only for class 1
```
li.class1:first-child
{
color:#ff0000;
}
```
and here is a [fiddle](http://jsfiddle.net/x7Ezh/)
and if you dont want the list with class2 to be affected
maybe this can work for you
```
li.class1.class2:first-child
{
...
... |
15,814,854 | we have a partial html:
```
<ul>
<li class="class1">AFFECTED</li>
<li class="class1 class2">NOT</li>
<li class="class1">NOT</li>
</ul>
<ul>
<li class="class1 class2">NOT</li>
<li class="class1">AFFECTED</li>
<li class="class1">NOT</li>
</ul>
<ul>
<li>NOT</li>
<li class="class1">AFFE... | 2013/04/04 | [
"https://Stackoverflow.com/questions/15814854",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/503677/"
] | You should be able to capture only the elements with `.class1` and no other using this selector:
```
li[class="class1"]
```
You won't be able to match only the *first* out of these elements because there isn't a selector to do that. `:first-child` only selects the very first child within the `ul` regardless of what ... | If you want to specifically exclude `class2` from the selector, use:
```
li.class1:first-child:not(.class2) { }
```
If you want to exclude any additional classes other than `class1` use:
```
li[class=class1]:first-child { }
```
I would recommend the first if you know which class(es) you're excluding as it will i... |
53,169,595 | I want to pass data to the first `viewController` which is embeded in `navigationController`.
To access this navigation controller it has a `storyBoardID`, I arrive at instantiate `navigationController` but I can not pass him data,
Here is my code:
```
extension UINavigationController {
func dismissAndPresentNaviga... | 2018/11/06 | [
"https://Stackoverflow.com/questions/53169595",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14087244/"
] | After instantiating the navigation controller from the storyboard, you will be able to access the root view controller via `navigationController.viewControllers.first`.
```
guard let navigationController = storyboard?.instantiateViewController(withIdentifier: identifier) as? UINavigationController else { return }
if ... | To communicate between view controllers in an iOS app, the best way is using `protocol` (delegate) or `Notification`. In you case, extending an UINavigationController doesn't sound a good idea, because you shouldn't relay on extension methods to instance view controller and then passing any data to it, and as an extens... |
10,392,933 | I'm trying to [clear my local storage in Firefox 13.0](https://stackoverflow.com/questions/10392659/lawnchair-nuke-not-working-after-filling-my-storage-quota) so I can continue using Lawnchair.
In Firebug [Dom] tab, I have been [manually deleting properties](https://stackoverflow.com/a/6130392/194309) from `'localstor... | 2012/05/01 | [
"https://Stackoverflow.com/questions/10392933",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/194309/"
] | Open the built-in console, `Ctrl``Shift``K` (it's faster than Firebug), and paste the following code:
```js
while (localStorage.length) localStorage.removeItem(localStorage.key(0));
```
This snippet will delete **all** localStorage key-value pairs on the given website. | ```
localStorage.clear(); // Capital S is required.
```
This will [clear all key-value pairs](http://dev.w3.org/html5/webstorage/#dom-storage-clear). |
49,488,095 | I have requested an SSL certificate from AWS and I opted for DNS validation. Now they are asking me to add a CNAME record to validate. They have provided me the following to be used:
```
Name: xxx.example.com. [Host field on GoDaddy]
Value: xxx.acm-validations.aws. [Points to field on GoDaddy]
Type: CNAME
```
Now w... | 2018/03/26 | [
"https://Stackoverflow.com/questions/49488095",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/755321/"
] | The `Host` field should be filled with xxx (your subdomain) and the `Points To` field with xxx.acm-validations.aws (without dot). | AWS Certificate manager was stuck on pending for me when I configured godaddy. This method worked for me.
```
On AWS when you "request a certificate"
- For domain name enter example.com (www.example.com did not work.)
- click ->next
- select ->DNS validation
- click ->review
- click ->Confirm and request
- before sele... |
49,488,095 | I have requested an SSL certificate from AWS and I opted for DNS validation. Now they are asking me to add a CNAME record to validate. They have provided me the following to be used:
```
Name: xxx.example.com. [Host field on GoDaddy]
Value: xxx.acm-validations.aws. [Points to field on GoDaddy]
Type: CNAME
```
Now w... | 2018/03/26 | [
"https://Stackoverflow.com/questions/49488095",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/755321/"
] | I would like to share with you how I figured it out.
It may not fit for all but it may help some people.
The steps are:
1. Go to your AWS account.
Go to **AWS certificate manager** and **Request a public certificate** using **DNS**
After that you will have this screen:
[](ht... | AWS Certificate manager was stuck on pending for me when I configured godaddy. This method worked for me.
```
On AWS when you "request a certificate"
- For domain name enter example.com (www.example.com did not work.)
- click ->next
- select ->DNS validation
- click ->review
- click ->Confirm and request
- before sele... |
49,488,095 | I have requested an SSL certificate from AWS and I opted for DNS validation. Now they are asking me to add a CNAME record to validate. They have provided me the following to be used:
```
Name: xxx.example.com. [Host field on GoDaddy]
Value: xxx.acm-validations.aws. [Points to field on GoDaddy]
Type: CNAME
```
Now w... | 2018/03/26 | [
"https://Stackoverflow.com/questions/49488095",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/755321/"
] | The `Host` field also needed to be changed to `xxx.` instead of `xxx.example.com.` for AWS to validate it. | Check out [this document](https://aws.amazon.com/premiumsupport/knowledge-center/acm-certificate-pending-validation/?nc1=h_ls) to verify your DNS status:
>
> To confirm that the CNAME record was added to correctly to your DNS configuration, run a command similar to the following:
>
>
> Note: Replace example-cname.e... |
49,488,095 | I have requested an SSL certificate from AWS and I opted for DNS validation. Now they are asking me to add a CNAME record to validate. They have provided me the following to be used:
```
Name: xxx.example.com. [Host field on GoDaddy]
Value: xxx.acm-validations.aws. [Points to field on GoDaddy]
Type: CNAME
```
Now w... | 2018/03/26 | [
"https://Stackoverflow.com/questions/49488095",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/755321/"
] | I would like to share with you how I figured it out.
It may not fit for all but it may help some people.
The steps are:
1. Go to your AWS account.
Go to **AWS certificate manager** and **Request a public certificate** using **DNS**
After that you will have this screen:
[](ht... | Check out [this document](https://aws.amazon.com/premiumsupport/knowledge-center/acm-certificate-pending-validation/?nc1=h_ls) to verify your DNS status:
>
> To confirm that the CNAME record was added to correctly to your DNS configuration, run a command similar to the following:
>
>
> Note: Replace example-cname.e... |
49,488,095 | I have requested an SSL certificate from AWS and I opted for DNS validation. Now they are asking me to add a CNAME record to validate. They have provided me the following to be used:
```
Name: xxx.example.com. [Host field on GoDaddy]
Value: xxx.acm-validations.aws. [Points to field on GoDaddy]
Type: CNAME
```
Now w... | 2018/03/26 | [
"https://Stackoverflow.com/questions/49488095",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/755321/"
] | For validating a domain name like `example.com` you just write the first part of `xxx1.example.com.` without the domain name and without suffix dot, like this:
```
TYPE: CNAME
NAME: xxx1
VALUE: xxx2.acm-validation.aws
```
For validating `www.example.com` you just write the first part of `xxx3.www.example.com.` witho... | The `Host` field also needed to be changed to `xxx.` instead of `xxx.example.com.` for AWS to validate it. |
49,488,095 | I have requested an SSL certificate from AWS and I opted for DNS validation. Now they are asking me to add a CNAME record to validate. They have provided me the following to be used:
```
Name: xxx.example.com. [Host field on GoDaddy]
Value: xxx.acm-validations.aws. [Points to field on GoDaddy]
Type: CNAME
```
Now w... | 2018/03/26 | [
"https://Stackoverflow.com/questions/49488095",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/755321/"
] | The `Host` field should be filled with xxx (your subdomain) and the `Points To` field with xxx.acm-validations.aws (without dot). | The `Host` field also needed to be changed to `xxx.` instead of `xxx.example.com.` for AWS to validate it. |
49,488,095 | I have requested an SSL certificate from AWS and I opted for DNS validation. Now they are asking me to add a CNAME record to validate. They have provided me the following to be used:
```
Name: xxx.example.com. [Host field on GoDaddy]
Value: xxx.acm-validations.aws. [Points to field on GoDaddy]
Type: CNAME
```
Now w... | 2018/03/26 | [
"https://Stackoverflow.com/questions/49488095",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/755321/"
] | The `Host` field should be filled with xxx (your subdomain) and the `Points To` field with xxx.acm-validations.aws (without dot). | Check out [this document](https://aws.amazon.com/premiumsupport/knowledge-center/acm-certificate-pending-validation/?nc1=h_ls) to verify your DNS status:
>
> To confirm that the CNAME record was added to correctly to your DNS configuration, run a command similar to the following:
>
>
> Note: Replace example-cname.e... |
49,488,095 | I have requested an SSL certificate from AWS and I opted for DNS validation. Now they are asking me to add a CNAME record to validate. They have provided me the following to be used:
```
Name: xxx.example.com. [Host field on GoDaddy]
Value: xxx.acm-validations.aws. [Points to field on GoDaddy]
Type: CNAME
```
Now w... | 2018/03/26 | [
"https://Stackoverflow.com/questions/49488095",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/755321/"
] | For validating a domain name like `example.com` you just write the first part of `xxx1.example.com.` without the domain name and without suffix dot, like this:
```
TYPE: CNAME
NAME: xxx1
VALUE: xxx2.acm-validation.aws
```
For validating `www.example.com` you just write the first part of `xxx3.www.example.com.` witho... | AWS Certificate manager was stuck on pending for me when I configured godaddy. This method worked for me.
```
On AWS when you "request a certificate"
- For domain name enter example.com (www.example.com did not work.)
- click ->next
- select ->DNS validation
- click ->review
- click ->Confirm and request
- before sele... |
49,488,095 | I have requested an SSL certificate from AWS and I opted for DNS validation. Now they are asking me to add a CNAME record to validate. They have provided me the following to be used:
```
Name: xxx.example.com. [Host field on GoDaddy]
Value: xxx.acm-validations.aws. [Points to field on GoDaddy]
Type: CNAME
```
Now w... | 2018/03/26 | [
"https://Stackoverflow.com/questions/49488095",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/755321/"
] | AWS Certificate manager was stuck on pending for me when I configured godaddy. This method worked for me.
```
On AWS when you "request a certificate"
- For domain name enter example.com (www.example.com did not work.)
- click ->next
- select ->DNS validation
- click ->review
- click ->Confirm and request
- before sele... | Check out [this document](https://aws.amazon.com/premiumsupport/knowledge-center/acm-certificate-pending-validation/?nc1=h_ls) to verify your DNS status:
>
> To confirm that the CNAME record was added to correctly to your DNS configuration, run a command similar to the following:
>
>
> Note: Replace example-cname.e... |
49,488,095 | I have requested an SSL certificate from AWS and I opted for DNS validation. Now they are asking me to add a CNAME record to validate. They have provided me the following to be used:
```
Name: xxx.example.com. [Host field on GoDaddy]
Value: xxx.acm-validations.aws. [Points to field on GoDaddy]
Type: CNAME
```
Now w... | 2018/03/26 | [
"https://Stackoverflow.com/questions/49488095",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/755321/"
] | The `Host` field should be filled with xxx (your subdomain) and the `Points To` field with xxx.acm-validations.aws (without dot). | For validating a domain name like `example.com` you just write the first part of `xxx1.example.com.` without the domain name and without suffix dot, like this:
```
TYPE: CNAME
NAME: xxx1
VALUE: xxx2.acm-validation.aws
```
For validating `www.example.com` you just write the first part of `xxx3.www.example.com.` witho... |
71,042,017 | I'm wondering if there is a way to type hint when I expect a list that I **know** will end with `bool` and start with a variable number of `int`s?
What I'm effectively trying to do is
```py
def f(xs: List[int, ..., bool]):
pass
```
where `...` is some variable number of `int`s (zero or more). | 2022/02/08 | [
"https://Stackoverflow.com/questions/71042017",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5299417/"
] | The problem lies in your \_get\_user\_info function. I added the missing entries in the function below. Also, as Tim Roberts said, you don't need to wrap input with str. input function returns a string in python 3. Find the new code below
```
def _get_user_info():
while True:
try:
pid = int(inp... | The return statement was missing the pid and the p\_name values at lines 39 and 49.
The new code looks like this:
```
class BodyMassIndex:
def __init__(self, pid, name, weight, height):
self.patient_id = pid
self.name = name
self.weight = weight
self.height = height
@property... |
62,024,904 | I have created a Macro that opens pivot table data that I then need to use for financial reconciliation. I have to go through the same process 80 times but not in a loop as I need to make notes as to what I found. However only the first time works, with the second time getting when adding table slicers. To do with the ... | 2020/05/26 | [
"https://Stackoverflow.com/questions/62024904",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10644084/"
] | (Note that I have fixed your typo of `!(i % 2 == 0) && !(i % 2 == 0)`, which should be `!(i % 2 == 0) && !(i % 3 == 0)`.)
### The slow way
Keep a `currentBiggest` and update it every time you find such a number:
```
public void ListTheBiggestNumberNotDividedBy2357()
{
int currentBiggest = 0;
for (int i = 1; ... | I suppose you can make a variable named `biggestNumber` outside of the for loop, re-write that variable in the for loop until that reaches 1000, and at the end return `biggestNumber` (and do something with that value). Not sure if that's the best way to go, but it's one way of doing it. |
62,024,904 | I have created a Macro that opens pivot table data that I then need to use for financial reconciliation. I have to go through the same process 80 times but not in a loop as I need to make notes as to what I found. However only the first time works, with the second time getting when adding table slicers. To do with the ... | 2020/05/26 | [
"https://Stackoverflow.com/questions/62024904",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10644084/"
] | You can try a simple *Linq* in order to query numbers in `(1000..0]` range:
```
using System.Linq;
...
// let's extact divisors: it's easy to make a mistake like in the code in the question:
// !(i % 2 == 0) instead of !(i % 3 == 0)
int[] divisors = new int[] { 2, 3, 5, 7 };
int result = Enumerable
... | I suppose you can make a variable named `biggestNumber` outside of the for loop, re-write that variable in the for loop until that reaches 1000, and at the end return `biggestNumber` (and do something with that value). Not sure if that's the best way to go, but it's one way of doing it. |
62,024,904 | I have created a Macro that opens pivot table data that I then need to use for financial reconciliation. I have to go through the same process 80 times but not in a loop as I need to make notes as to what I found. However only the first time works, with the second time getting when adding table slicers. To do with the ... | 2020/05/26 | [
"https://Stackoverflow.com/questions/62024904",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10644084/"
] | This can be a good approach:
```
class Program
{
static void Main(string[] args)
{
var result = FindBiggestNumberNotDivisible(new int[] { 2, 3, 5, 7 }, 1000);
Console.WriteLine(result);
}
public static int FindBiggestNumberNotDivisible(IEnumerable<int> divisibleNumbers, int maxNumber)... | I suppose you can make a variable named `biggestNumber` outside of the for loop, re-write that variable in the for loop until that reaches 1000, and at the end return `biggestNumber` (and do something with that value). Not sure if that's the best way to go, but it's one way of doing it. |
62,024,904 | I have created a Macro that opens pivot table data that I then need to use for financial reconciliation. I have to go through the same process 80 times but not in a loop as I need to make notes as to what I found. However only the first time works, with the second time getting when adding table slicers. To do with the ... | 2020/05/26 | [
"https://Stackoverflow.com/questions/62024904",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10644084/"
] | (Note that I have fixed your typo of `!(i % 2 == 0) && !(i % 2 == 0)`, which should be `!(i % 2 == 0) && !(i % 3 == 0)`.)
### The slow way
Keep a `currentBiggest` and update it every time you find such a number:
```
public void ListTheBiggestNumberNotDividedBy2357()
{
int currentBiggest = 0;
for (int i = 1; ... | This can be a good approach:
```
class Program
{
static void Main(string[] args)
{
var result = FindBiggestNumberNotDivisible(new int[] { 2, 3, 5, 7 }, 1000);
Console.WriteLine(result);
}
public static int FindBiggestNumberNotDivisible(IEnumerable<int> divisibleNumbers, int maxNumber)... |
62,024,904 | I have created a Macro that opens pivot table data that I then need to use for financial reconciliation. I have to go through the same process 80 times but not in a loop as I need to make notes as to what I found. However only the first time works, with the second time getting when adding table slicers. To do with the ... | 2020/05/26 | [
"https://Stackoverflow.com/questions/62024904",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10644084/"
] | You can try a simple *Linq* in order to query numbers in `(1000..0]` range:
```
using System.Linq;
...
// let's extact divisors: it's easy to make a mistake like in the code in the question:
// !(i % 2 == 0) instead of !(i % 3 == 0)
int[] divisors = new int[] { 2, 3, 5, 7 };
int result = Enumerable
... | This can be a good approach:
```
class Program
{
static void Main(string[] args)
{
var result = FindBiggestNumberNotDivisible(new int[] { 2, 3, 5, 7 }, 1000);
Console.WriteLine(result);
}
public static int FindBiggestNumberNotDivisible(IEnumerable<int> divisibleNumbers, int maxNumber)... |
50,739,438 | My table country has two fields `country_id` and `country_name`.
the textbox is using name `country`
```
<input type="text" class="form-control" value="{{Session::get('name')}}" name="country" >
```
CountryCOntroller code is
```
public function update(Request $request, $id)
{
$this->validate($request, [
'countr... | 2018/06/07 | [
"https://Stackoverflow.com/questions/50739438",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8296260/"
] | you need to change the name in the input filed to `country_name` as it should match the column name so it should be like this,
`<input type="text" class="form-control" value="{{Session::get('name')}}" name="country_name" >`
If you don't want to change that then you should change you controller where you send the arr... | Try this :
```
country::find($id)->update([
'country_name' => $request->country
]);
``` |
21,750,206 | I want to retrieve all contact then put them in different arraylist based on whether it is starred or not.
I am trying to retreive all contact and do the display them separately on the basis of whether they are starred or not
```
contactId=8333;
Uri uri = ContactsContract.Contacts.CONTENT_URI;
String[] project... | 2014/02/13 | [
"https://Stackoverflow.com/questions/21750206",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2301782/"
] | If you want to request the `STARRED` column from the cursor, you should include it in the `projection`. | I will go with Smutje answer, you need to add STARRED to projection, unless we wrongly understood your problem. |
18,018,857 | I have some CSS classes as:
```
.span9 {
width: 870px;
}
.span4 {
width: 370px;
}
```
In another custom CSS file I want to make another CSS class .span9? How do I do this?
The reason is because a DOM element uses .span4 and I want to override this but it must be overridden in a custom external CSS f... | 2013/08/02 | [
"https://Stackoverflow.com/questions/18018857",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2219989/"
] | ```
DECLARE @Id AS VARCHAR(50)
SET @Id = 'Apple'
IF @Id IS NULL
BEGIN
SELECT ID,
SUM(ISNULL(Total1,0)) AS Total1,
SUM(ISNULL(Total2,0)) AS Total2,
SUM(ISNULL(Total3,0)) AS Total3
FROM Table
GROUP BY ID
END
ELSE
SELECT ID,
SUM(ISNULL(Total1,0)) AS Total1,
... | Unless I'm missing something, you just need three `SUM`s:
```
SELECT ID, SUM(Total1), SUM(Total2), SUM(Total3)
FROM myTable
GROUP BY ID
```
[SQL Fiddle example](http://www.sqlfiddle.com/#!6/7cb16/1) |
18,018,857 | I have some CSS classes as:
```
.span9 {
width: 870px;
}
.span4 {
width: 370px;
}
```
In another custom CSS file I want to make another CSS class .span9? How do I do this?
The reason is because a DOM element uses .span4 and I want to override this but it must be overridden in a custom external CSS f... | 2013/08/02 | [
"https://Stackoverflow.com/questions/18018857",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2219989/"
] | ```
DECLARE @Id AS VARCHAR(50)
SET @Id = 'Apple'
IF @Id IS NULL
BEGIN
SELECT ID,
SUM(ISNULL(Total1,0)) AS Total1,
SUM(ISNULL(Total2,0)) AS Total2,
SUM(ISNULL(Total3,0)) AS Total3
FROM Table
GROUP BY ID
END
ELSE
SELECT ID,
SUM(ISNULL(Total1,0)) AS Total1,
... | ```
SELECT ID,
SUM(Total1),
SUM(Total2),
SUM(Total3)
FROM FruitTable
GROUP BY ID;
```
Take a look at [Aggregate Functions](http://www.w3schools.com/sql/sql_functions.asp) in SQL and [SUM function](http://www.w3schools.com/sql/sql_func_sum.asp) |
18,018,857 | I have some CSS classes as:
```
.span9 {
width: 870px;
}
.span4 {
width: 370px;
}
```
In another custom CSS file I want to make another CSS class .span9? How do I do this?
The reason is because a DOM element uses .span4 and I want to override this but it must be overridden in a custom external CSS f... | 2013/08/02 | [
"https://Stackoverflow.com/questions/18018857",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2219989/"
] | ```
DECLARE @Id AS VARCHAR(50)
SET @Id = 'Apple'
IF @Id IS NULL
BEGIN
SELECT ID,
SUM(ISNULL(Total1,0)) AS Total1,
SUM(ISNULL(Total2,0)) AS Total2,
SUM(ISNULL(Total3,0)) AS Total3
FROM Table
GROUP BY ID
END
ELSE
SELECT ID,
SUM(ISNULL(Total1,0)) AS Total1,
... | ```
select id,
sum(coalesce(total1,0)) as Total1,
sum(coalesce(total2,0)) as Total2,
sum(coalesce(total3,0)) as Total3
from t
group by id
``` |
18,018,857 | I have some CSS classes as:
```
.span9 {
width: 870px;
}
.span4 {
width: 370px;
}
```
In another custom CSS file I want to make another CSS class .span9? How do I do this?
The reason is because a DOM element uses .span4 and I want to override this but it must be overridden in a custom external CSS f... | 2013/08/02 | [
"https://Stackoverflow.com/questions/18018857",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2219989/"
] | ```
DECLARE @Id AS VARCHAR(50)
SET @Id = 'Apple'
IF @Id IS NULL
BEGIN
SELECT ID,
SUM(ISNULL(Total1,0)) AS Total1,
SUM(ISNULL(Total2,0)) AS Total2,
SUM(ISNULL(Total3,0)) AS Total3
FROM Table
GROUP BY ID
END
ELSE
SELECT ID,
SUM(ISNULL(Total1,0)) AS Total1,
... | It's similar to what you've already seen - but there's no aggregate for summing across *columns* in a single row. So you just need to do the maths manually:
```
select
ID,
SUM(COALESCE(Total1,0)) as FruitTotal,
SUM(COALESCE(Total2,0)) as VeggieTotal,
SUM(COALESCE(Total1,0) + COALESCE(Total2,0)) as Tota... |
18,018,857 | I have some CSS classes as:
```
.span9 {
width: 870px;
}
.span4 {
width: 370px;
}
```
In another custom CSS file I want to make another CSS class .span9? How do I do this?
The reason is because a DOM element uses .span4 and I want to override this but it must be overridden in a custom external CSS f... | 2013/08/02 | [
"https://Stackoverflow.com/questions/18018857",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2219989/"
] | Unless I'm missing something, you just need three `SUM`s:
```
SELECT ID, SUM(Total1), SUM(Total2), SUM(Total3)
FROM myTable
GROUP BY ID
```
[SQL Fiddle example](http://www.sqlfiddle.com/#!6/7cb16/1) | ```
SELECT ID,
SUM(Total1),
SUM(Total2),
SUM(Total3)
FROM FruitTable
GROUP BY ID;
```
Take a look at [Aggregate Functions](http://www.w3schools.com/sql/sql_functions.asp) in SQL and [SUM function](http://www.w3schools.com/sql/sql_func_sum.asp) |
18,018,857 | I have some CSS classes as:
```
.span9 {
width: 870px;
}
.span4 {
width: 370px;
}
```
In another custom CSS file I want to make another CSS class .span9? How do I do this?
The reason is because a DOM element uses .span4 and I want to override this but it must be overridden in a custom external CSS f... | 2013/08/02 | [
"https://Stackoverflow.com/questions/18018857",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2219989/"
] | Unless I'm missing something, you just need three `SUM`s:
```
SELECT ID, SUM(Total1), SUM(Total2), SUM(Total3)
FROM myTable
GROUP BY ID
```
[SQL Fiddle example](http://www.sqlfiddle.com/#!6/7cb16/1) | ```
select id,
sum(coalesce(total1,0)) as Total1,
sum(coalesce(total2,0)) as Total2,
sum(coalesce(total3,0)) as Total3
from t
group by id
``` |
18,018,857 | I have some CSS classes as:
```
.span9 {
width: 870px;
}
.span4 {
width: 370px;
}
```
In another custom CSS file I want to make another CSS class .span9? How do I do this?
The reason is because a DOM element uses .span4 and I want to override this but it must be overridden in a custom external CSS f... | 2013/08/02 | [
"https://Stackoverflow.com/questions/18018857",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2219989/"
] | Unless I'm missing something, you just need three `SUM`s:
```
SELECT ID, SUM(Total1), SUM(Total2), SUM(Total3)
FROM myTable
GROUP BY ID
```
[SQL Fiddle example](http://www.sqlfiddle.com/#!6/7cb16/1) | It's similar to what you've already seen - but there's no aggregate for summing across *columns* in a single row. So you just need to do the maths manually:
```
select
ID,
SUM(COALESCE(Total1,0)) as FruitTotal,
SUM(COALESCE(Total2,0)) as VeggieTotal,
SUM(COALESCE(Total1,0) + COALESCE(Total2,0)) as Tota... |
15,530,222 | Is there a simple way to insert multiple rows and increment a particular field, using SQL Server 2005?
Note, I am **not** looking for a solution involving an `identity` column - see the bottom of the question for an explanation
(The following schema and data have been replicated [here in this SQLFiddle](http://sqlfid... | 2013/03/20 | [
"https://Stackoverflow.com/questions/15530222",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/930393/"
] | How about
```
INSERT INTO #TEMPTABLE ([FKID], [MYTEXT], [SEQUENCE])
SELECT @FKID,
X.value('.','VARCHAR(10)'),
(SELECT ISNULL(Count(*),0)+1 FROM #TEMPTABLE)
FROM @NEWDATA.nodes('/data/text') AS X(X)
``` | Try this:
```
with data as (
select * from ( values
(1,1,'one'),
(2,1,'two'),
(3,1,'three'),
(5,1,'five'),
(6,1,'six')
) data(PKID, FKID, MYTEXT)
)
select lhs.*, sequence = count(*)
from data lhs
left join data rhs on rhs.FKID = lhs.FKID
and rhs.PKID <= lhs.PKID
group by
lhs.PKID,
lhs.... |
15,530,222 | Is there a simple way to insert multiple rows and increment a particular field, using SQL Server 2005?
Note, I am **not** looking for a solution involving an `identity` column - see the bottom of the question for an explanation
(The following schema and data have been replicated [here in this SQLFiddle](http://sqlfid... | 2013/03/20 | [
"https://Stackoverflow.com/questions/15530222",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/930393/"
] | I can't test on 2005, but you should be able to use a CTE just fine to number things;
```
DECLARE @FKID INT
SET @FKID = 1
DECLARE @NEWDATA XML
SET @NEWDATA = '<data><text>three</text><text>four</text><text>five</text></data>'
;WITH cte AS (SELECT @FKID FKID, X.value('.','VARCHAR(10)') a,
ROW_NUMBER... | How about
```
INSERT INTO #TEMPTABLE ([FKID], [MYTEXT], [SEQUENCE])
SELECT @FKID,
X.value('.','VARCHAR(10)'),
(SELECT ISNULL(Count(*),0)+1 FROM #TEMPTABLE)
FROM @NEWDATA.nodes('/data/text') AS X(X)
``` |
15,530,222 | Is there a simple way to insert multiple rows and increment a particular field, using SQL Server 2005?
Note, I am **not** looking for a solution involving an `identity` column - see the bottom of the question for an explanation
(The following schema and data have been replicated [here in this SQLFiddle](http://sqlfid... | 2013/03/20 | [
"https://Stackoverflow.com/questions/15530222",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/930393/"
] | I can't test on 2005, but you should be able to use a CTE just fine to number things;
```
DECLARE @FKID INT
SET @FKID = 1
DECLARE @NEWDATA XML
SET @NEWDATA = '<data><text>three</text><text>four</text><text>five</text></data>'
;WITH cte AS (SELECT @FKID FKID, X.value('.','VARCHAR(10)') a,
ROW_NUMBER... | Try this:
```
with data as (
select * from ( values
(1,1,'one'),
(2,1,'two'),
(3,1,'three'),
(5,1,'five'),
(6,1,'six')
) data(PKID, FKID, MYTEXT)
)
select lhs.*, sequence = count(*)
from data lhs
left join data rhs on rhs.FKID = lhs.FKID
and rhs.PKID <= lhs.PKID
group by
lhs.PKID,
lhs.... |
33,007,093 | I upgraded to Spark 1.5.1 and experience problems when using RDD.map(). I get the following exception:
```
Exception in thread "main" java.lang.IllegalArgumentException
at com.esotericsoftware.reflectasm.shaded.org.objectweb.asm.ClassReader.<init>(Unknown Source)
at com.esotericsoftware.reflectasm.shaded.org.objectweb... | 2015/10/08 | [
"https://Stackoverflow.com/questions/33007093",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5421403/"
] | In my case, changing the scala compiler target to jvm 1.7 fixed this issue. | Changing the scala target version to 1.7 works. This is fixed as part of spark 1.6.0. <https://issues.apache.org/jira/browse/SPARK-6152>. They completely removed the asm dependency from external |
69,229,082 | I am trying to test an Calendar-System.
The events get loaded successfully, but get displayed in different rows.
How can I just create only one row per user (id) and add the data to that specific row?
Code:
```
foreach($stuArr as $student) {
$id = $student[0];
$dates = $student[1];
$name = $student[2];
... | 2021/09/17 | [
"https://Stackoverflow.com/questions/69229082",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16671051/"
] | Put `transition` in `.required::after` because putting transition here make the hover effect to take a fix amount of time for start/end of effect while putting it in `:hover` make its start time as fix value while it don't specify its end time.
If want to apply transition on fix property use that property name befo... | The problem is that the transition is set only for the pseudo element when the user is hovering so as soon as the hover stops the transition property goes back to the default - i.e. no transition.
Moving that transition setting into the non-hovered class setting means it is there whether hovering is takng place or not... |
69,229,082 | I am trying to test an Calendar-System.
The events get loaded successfully, but get displayed in different rows.
How can I just create only one row per user (id) and add the data to that specific row?
Code:
```
foreach($stuArr as $student) {
$id = $student[0];
$dates = $student[1];
$name = $student[2];
... | 2021/09/17 | [
"https://Stackoverflow.com/questions/69229082",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16671051/"
] | Put `transition` in `.required::after` because putting transition here make the hover effect to take a fix amount of time for start/end of effect while putting it in `:hover` make its start time as fix value while it don't specify its end time.
If want to apply transition on fix property use that property name befo... | In addition to previous answers, which correctly tells you to move the transition property to `.required::after`, you also need to be careful using `transform: 1s` without property names. By default this will create transitions for **ALL** properties. |
69,229,082 | I am trying to test an Calendar-System.
The events get loaded successfully, but get displayed in different rows.
How can I just create only one row per user (id) and add the data to that specific row?
Code:
```
foreach($stuArr as $student) {
$id = $student[0];
$dates = $student[1];
$name = $student[2];
... | 2021/09/17 | [
"https://Stackoverflow.com/questions/69229082",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16671051/"
] | In addition to previous answers, which correctly tells you to move the transition property to `.required::after`, you also need to be careful using `transform: 1s` without property names. By default this will create transitions for **ALL** properties. | The problem is that the transition is set only for the pseudo element when the user is hovering so as soon as the hover stops the transition property goes back to the default - i.e. no transition.
Moving that transition setting into the non-hovered class setting means it is there whether hovering is takng place or not... |
13,844,780 | I am trying to store references of images in a SQL Server DB and store the actual images in a file server/folder. I am hoping someone could give me a link or code example on how to do this. I don't want to store BLOB in the database.
I am using ASP.NET/C# to handle this. | 2012/12/12 | [
"https://Stackoverflow.com/questions/13844780",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1898556/"
] | [LiveConnect](http://jdk6.java.net/plugin2/liveconnect/) is what you're looking for. It allows you to define communication methods from JS to Java and viceversa. And it's a built-in technology in the JDK. | ```
import javax.script.Invocable;
import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;
//JAVA
public class Main {
public static void main(String[] args) throws Exception {
ScriptEngineManager manager = new ScriptEngineManager();
ScriptEngine engine = manager.getEngineByName(... |
13,844,780 | I am trying to store references of images in a SQL Server DB and store the actual images in a file server/folder. I am hoping someone could give me a link or code example on how to do this. I don't want to store BLOB in the database.
I am using ASP.NET/C# to handle this. | 2012/12/12 | [
"https://Stackoverflow.com/questions/13844780",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1898556/"
] | There are a number of ways you can do this.
-A java to flash to JavaScript bridge to communicate via sockets. This is the most compatible way since most browsers support flash. There are a few opensource AS3 bridges however you need sockets.
-A java applet and from the applet invoke JavaScript Code.If you have permis... | ```
import javax.script.Invocable;
import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;
//JAVA
public class Main {
public static void main(String[] args) throws Exception {
ScriptEngineManager manager = new ScriptEngineManager();
ScriptEngine engine = manager.getEngineByName(... |
25,375,831 | I want to implement CustomArrayAdapter and following is the constructor I have written for my custom adapter
```
public CustomUsersAdapter(Context context, ArrayList<User> users) {
super(context, 0, users);
}
```
The second argument in the super call The resource ID for a layout file containing a TextVi... | 2014/08/19 | [
"https://Stackoverflow.com/questions/25375831",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1368568/"
] | ```
I dont know which resource ID is being referred here.
```
Since you put `0` in the second parameter of the constructor it wont have any reference to any layout
as the [documentation](http://developer.android.com/reference/android/widget/ArrayAdapter.html#ArrayAdapter(android.content.Context,%20int,%20int)) is s... | You need to us your layout file in that constructor. So you need to change your constructor from
```
public CustomUsersAdapter(Context context, ArrayList<User> users) {
super(context, 0, users);
}
```
to
```
public CustomUsersAdapter(Context context, int resLayout , ArrayList<User> users) {
super(context,... |
25,375,831 | I want to implement CustomArrayAdapter and following is the constructor I have written for my custom adapter
```
public CustomUsersAdapter(Context context, ArrayList<User> users) {
super(context, 0, users);
}
```
The second argument in the super call The resource ID for a layout file containing a TextVi... | 2014/08/19 | [
"https://Stackoverflow.com/questions/25375831",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1368568/"
] | ```
I dont know which resource ID is being referred here.
```
Since you put `0` in the second parameter of the constructor it wont have any reference to any layout
as the [documentation](http://developer.android.com/reference/android/widget/ArrayAdapter.html#ArrayAdapter(android.content.Context,%20int,%20int)) is s... | I'm not quite sure what you're going to use your `ArrayAdapter` for, but one reason for using an `ArrayAdapter` is to display a `listView` of a layout depending on the array.
Here is an example of what the constructor should look like
```
public CustomListAdapter() {
super(Activity_Main.class, R.layout.listview_i... |
25,375,831 | I want to implement CustomArrayAdapter and following is the constructor I have written for my custom adapter
```
public CustomUsersAdapter(Context context, ArrayList<User> users) {
super(context, 0, users);
}
```
The second argument in the super call The resource ID for a layout file containing a TextVi... | 2014/08/19 | [
"https://Stackoverflow.com/questions/25375831",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1368568/"
] | ```
I dont know which resource ID is being referred here.
```
Since you put `0` in the second parameter of the constructor it wont have any reference to any layout
as the [documentation](http://developer.android.com/reference/android/widget/ArrayAdapter.html#ArrayAdapter(android.content.Context,%20int,%20int)) is s... | **Try this way,hope this will help you to solve your problem.**
```
class CustomUsersAdapter extends BaseAdapter {
private Context context;
pArrayList<User> users;
public CustomUsersAdapter(Context context,ArrayList<User> users) {
this.context = context;
this.users = users;
}
pub... |
25,375,831 | I want to implement CustomArrayAdapter and following is the constructor I have written for my custom adapter
```
public CustomUsersAdapter(Context context, ArrayList<User> users) {
super(context, 0, users);
}
```
The second argument in the super call The resource ID for a layout file containing a TextVi... | 2014/08/19 | [
"https://Stackoverflow.com/questions/25375831",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1368568/"
] | **Try this way,hope this will help you to solve your problem.**
```
class CustomUsersAdapter extends BaseAdapter {
private Context context;
pArrayList<User> users;
public CustomUsersAdapter(Context context,ArrayList<User> users) {
this.context = context;
this.users = users;
}
pub... | You need to us your layout file in that constructor. So you need to change your constructor from
```
public CustomUsersAdapter(Context context, ArrayList<User> users) {
super(context, 0, users);
}
```
to
```
public CustomUsersAdapter(Context context, int resLayout , ArrayList<User> users) {
super(context,... |
25,375,831 | I want to implement CustomArrayAdapter and following is the constructor I have written for my custom adapter
```
public CustomUsersAdapter(Context context, ArrayList<User> users) {
super(context, 0, users);
}
```
The second argument in the super call The resource ID for a layout file containing a TextVi... | 2014/08/19 | [
"https://Stackoverflow.com/questions/25375831",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1368568/"
] | **Try this way,hope this will help you to solve your problem.**
```
class CustomUsersAdapter extends BaseAdapter {
private Context context;
pArrayList<User> users;
public CustomUsersAdapter(Context context,ArrayList<User> users) {
this.context = context;
this.users = users;
}
pub... | I'm not quite sure what you're going to use your `ArrayAdapter` for, but one reason for using an `ArrayAdapter` is to display a `listView` of a layout depending on the array.
Here is an example of what the constructor should look like
```
public CustomListAdapter() {
super(Activity_Main.class, R.layout.listview_i... |
47,942,509 | My local machine is running Ubuntu 16.04 and I have created a VM instance on Google Cloud Platform, which is also Ubuntu 16.04. How do I connect to this virtual machine from my own laptop terminal? I wish to install anaconda etc on my virtual machine so how do I 'access the VM's terminal from my local machine's termina... | 2017/12/22 | [
"https://Stackoverflow.com/questions/47942509",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6912043/"
] | for connecting to GCP instance from local machine you've to setup **gcloud command-line tool** and select the default region and zone in local machine. This might help
<https://cloud.google.com/compute/docs/instances/connecting-to-instance> | 1. Make sure you generate a SSH key-pair(public+private) with PuttyGen.
2. Paste the contents of your public key in GCE in the SSH Key section.
[](https://i.stack.imgur.com/0PdA2.png)
3. Open Putty and enter the session details (username@instanceip) a... |
47,942,509 | My local machine is running Ubuntu 16.04 and I have created a VM instance on Google Cloud Platform, which is also Ubuntu 16.04. How do I connect to this virtual machine from my own laptop terminal? I wish to install anaconda etc on my virtual machine so how do I 'access the VM's terminal from my local machine's termina... | 2017/12/22 | [
"https://Stackoverflow.com/questions/47942509",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6912043/"
] | for connecting to GCP instance from local machine you've to setup **gcloud command-line tool** and select the default region and zone in local machine. This might help
<https://cloud.google.com/compute/docs/instances/connecting-to-instance> | For using ssh command
1. create your ssh key if you dont have it
2. add the content of your ssh key to the instance settings, under SSH keys
3. `ssh -i ~/.ssh/<filename without .pub one> <your email without @gmail.com>@<your instance ip>`
replace `<content>` with your actual details |
58,614,615 | Some context on my environment:
I am running R Studio in a docker container called [rocker/verse](https://hub.docker.com/r/rocker/verse).
I downloaded [this dataset](https://www.kaggle.com/ntnu-testimon/paysim1/download) from Kaggle, which has about 470 MB.
When working with it, at some point RStudio restart. It does... | 2019/10/29 | [
"https://Stackoverflow.com/questions/58614615",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2313889/"
] | Delete the `.Rhistory` files associated with the installation and any open project. | You have a problem with your user data files for Rstudio. Follow the hints given here: <https://community.rstudio.com/t/rstudio-server-error-occurred-during-transmission/84258> and here: <https://support.rstudio.com/hc/en-us/articles/218730228-Resetting-a-user-s-state-on-RStudio-Server>. |
19,009,531 | I'm trying to create a new Wordpress website in Azure. Today when I get to the page about creating a new mySQL database, I can't check the box to agree to the ClearDB terms - even in the HTML box it's disabled.
Tried this on both US East and US West servers, same thing. Database name meets their requirements, I've don... | 2013/09/25 | [
"https://Stackoverflow.com/questions/19009531",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1489234/"
] | try this:
New -> Store
Data -> ClearDB
After that try to add the Wordpress (New -> Compute -> Web Site ->From Gallery), but instead of create a new Mysql database, use this one that you create in the step above. | We getting following error after the step you mentioned.
We cannot provide a billing estimate at this time. Please try again later. If this error persists, contact support with the following information.
Subscription could not be found for the provided subscription id |
58,029 | First off all, I am sorry if my english is not perfect.
I need help again for this exercise:
Find Maclaurin series expansion for $f(x)=\frac{x^2}{1-x}$.
That's what I did:
$f(x)=\frac{x^2}{1-x}=\frac{x^2+1-1}{1-x}=\frac{(x+1)(x-1)}{1-x}+\frac{1}{1-x}= -x-1+\frac{1}{1-x}$.
I know that $\sum\limits\_{n=0}^{\infty}... | 2011/08/17 | [
"https://math.stackexchange.com/questions/58029",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/14439/"
] | You say that you know $\sum\limits\_{n=0}^{\infty}x^n=\frac{1}{1-x}$. What happens if you multiply both sides by $x^2$? | Think about it for a minute - $-x-1$ is **already** an infinite series $\sum\_{n=1}^\infty a\_nx^n$; in this case, $a\_0 = -1$ and $a\_1 = -1$ and $a\_n=0$ for $n>1$.
(The fact that the series is McLaurin lies in that we are seeking a series of the form $\sum\_{n=1}^\infty a\_nx^n$; for other Taylor expansions we want... |
5,545,188 | I need to use a WebView to load certain webpages and dynamically change the css before showing them to the user (which means I have to delete all `<link>` tags and append the one with my css). (Why? Because I want to adapt the look of a particular site - which is not mine - for smartphones)
Now, I've seen that similar... | 2011/04/04 | [
"https://Stackoverflow.com/questions/5545188",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/620142/"
] | This is a bit of a hack, but it works well and allows you to use commands and avoid code behind. This also has the added benefit of not triggering the command when you double-click (or whatever your trigger is) in the empty `ScrollView` area assuming your `ListBoxItems` don't fill the entire container.
Basically, just... | If you're looking for a nice simple solution that uses interactions instead of mucking about with user controls, code behind, input bindings, custom attached properties, etc.
And you want something that works at the ListBoxItem level, i.e. not ListBox level as per the (incorrectly) accepted solution.
Then here's a sn... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.