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 |
|---|---|---|---|---|---|
36,979,325 | For `(int -> int) -> int = <fun>` the corresponding expression can be `fun x -> (x 1) + 1`.
Is it possible to have an expression with `int -> (int -> int) = <fun>` type? If not then why? | 2016/05/02 | [
"https://Stackoverflow.com/questions/36979325",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4060355/"
] | Try:
```
var fragment = "http://test.com/en/country/city";
var array_fragment = fragment.split('/');
var city = array_fragment[array_fragment.length - 1]
var country = array_fragment[array_fragment.length - 2]
alert(country)
``` | Use split function to get second last value.
Try this
```
var url='http://test.com/en/country/city';
var splitArray=url.split('/');
alert(splitArray[splitArray.length-2]);
``` |
36,979,325 | For `(int -> int) -> int = <fun>` the corresponding expression can be `fun x -> (x 1) + 1`.
Is it possible to have an expression with `int -> (int -> int) = <fun>` type? If not then why? | 2016/05/02 | [
"https://Stackoverflow.com/questions/36979325",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4060355/"
] | You can split your url by `/` and take needed element (first remove `http://` part):
```js
var str = 'http://test.com/en/country/city';
str = str.replace('http://', '');
var parts = str.split('/');
console.log(parts);
alert(parts[2]+', '+parts[3]);
``` | Use split function to get second last value.
Try this
```
var url='http://test.com/en/country/city';
var splitArray=url.split('/');
alert(splitArray[splitArray.length-2]);
``` |
36,979,325 | For `(int -> int) -> int = <fun>` the corresponding expression can be `fun x -> (x 1) + 1`.
Is it possible to have an expression with `int -> (int -> int) = <fun>` type? If not then why? | 2016/05/02 | [
"https://Stackoverflow.com/questions/36979325",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4060355/"
] | You can split your url by `/` and take needed element (first remove `http://` part):
```js
var str = 'http://test.com/en/country/city';
str = str.replace('http://', '');
var parts = str.split('/');
console.log(parts);
alert(parts[2]+', '+parts[3]);
``` | You could do something like this:
```
var url = "http://test.com/en/country/city"
var urlParts = url.split("/")
urlParts[urlParts.length - 1] (which would equal to "city")
urlParts[urlParts.length - 2] (which would equal to "country")
```
Basically split on each occurence of `"/"` and pick the correct item from the ... |
36,979,325 | For `(int -> int) -> int = <fun>` the corresponding expression can be `fun x -> (x 1) + 1`.
Is it possible to have an expression with `int -> (int -> int) = <fun>` type? If not then why? | 2016/05/02 | [
"https://Stackoverflow.com/questions/36979325",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4060355/"
] | >
> Is this posible with lastIndexOf?
>
>
>
**Yes, it is possible.**
Let's say
```
x="http://test.com/en/country/city"
```
We get the position of the last `/`
```
y=x.lastIndexOf("/");//26
```
We get the position of the second last `/`
```
z=x.lastIndexOf("/",y-1);//18
```
To extract the country, we no... | Try something like this.
```
var url = window.location.href;
var urlArray = url.split("/");
urlArray[urlArray.length-1] //City
urlArray[urlArray.length-2] //Country
``` |
9,345 | >
> 父はデジタルカメラの講習を受けに行ったが、あまりの難しさにびっくりしたようだ。
>
>
>
So this sentence is saying, "my dad went to take a short course on digital cameras, but it was difficult to the point of surprising him." Could you say
>
> 父はデジタルカメラの講習を受けに行ったが、あまりの難しさにびっくりした。
>
>
>
instead or would omitting the ようだ make the sentence incorrec... | 2012/11/07 | [
"https://japanese.stackexchange.com/questions/9345",
"https://japanese.stackexchange.com",
"https://japanese.stackexchange.com/users/1107/"
] | The sentence is complete and *grammatically correct* without ようだ. (Please also see Tsuyoshi Ito's answer.)
…ようだ adds "It seems that ...".
In this case,
>
> 父はデジタルカメラの講習を受けに行ったが、あまりの難しさにびっくりしたようだ。
>
> My dad went to take a short course on digital cameras, but it seems that he was surprised at just how difficult ... | This `〜ようだ` means "it seems", and means you are making the statement as conjecture based on some kind of information. The first sentence says "It seems he was surprised by how difficult the course was". You might say this after seeing him confusingly tinkering around with the camera even after the course. If you leave ... |
9,345 | >
> 父はデジタルカメラの講習を受けに行ったが、あまりの難しさにびっくりしたようだ。
>
>
>
So this sentence is saying, "my dad went to take a short course on digital cameras, but it was difficult to the point of surprising him." Could you say
>
> 父はデジタルカメラの講習を受けに行ったが、あまりの難しさにびっくりした。
>
>
>
instead or would omitting the ようだ make the sentence incorrec... | 2012/11/07 | [
"https://japanese.stackexchange.com/questions/9345",
"https://japanese.stackexchange.com",
"https://japanese.stackexchange.com/users/1107/"
] | >
> 父はデジタルカメラの講習を受けに行ったが、あまりの難しさにびっくりした。
>
>
>
This sentence is correct only in limited contexts.
It states the *definite fact* that the father got surprised. As Derek Schaab stated in [this answer](https://japanese.stackexchange.com/questions/2524/when-to-use-%E6%AC%B2%E3%81%97%E3%81%8C%E3%82%8B-instead-of-%E6%A... | This `〜ようだ` means "it seems", and means you are making the statement as conjecture based on some kind of information. The first sentence says "It seems he was surprised by how difficult the course was". You might say this after seeing him confusingly tinkering around with the camera even after the course. If you leave ... |
24,895,266 | I'm working on a project that uses SQL. Now I have made a function that checks the database (**check\_database($post)**). That function should be able to be called in any other function. My other function (**authenticate($post)**), in the same class, calls this function. When I try the php file out, I get the following... | 2014/07/22 | [
"https://Stackoverflow.com/questions/24895266",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3865904/"
] | We've put together a useful [nuget package](https://www.nuget.org/packages/ZendeskApi.Client/) if you're working with C#.
You can use the package to create a ZendeskApiClient:
```
IZendeskClient client = new ZendeskClient(
new Uri("my-zendesk-api-host-endpoint"),
"my-zendesk-username",
"my-zendesk-token"... | Though a v late response but might be helpful for someone in future.
Please make sure that you make proper use of POST, PUT and GET accordingly. I got an error
Array([error] => InvalidEndpoint, [description] => Not found)
while coding which was because I was using POST instead of GET while searching user in Zendesk... |
24,895,266 | I'm working on a project that uses SQL. Now I have made a function that checks the database (**check\_database($post)**). That function should be able to be called in any other function. My other function (**authenticate($post)**), in the same class, calls this function. When I try the php file out, I get the following... | 2014/07/22 | [
"https://Stackoverflow.com/questions/24895266",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3865904/"
] | Its simple, just do:
```
https://mydomain.zendesk.com/api/v2/users/search.json?query=email:myname@mydomain.com
```
Hope it helps. | We've put together a useful [nuget package](https://www.nuget.org/packages/ZendeskApi.Client/) if you're working with C#.
You can use the package to create a ZendeskApiClient:
```
IZendeskClient client = new ZendeskClient(
new Uri("my-zendesk-api-host-endpoint"),
"my-zendesk-username",
"my-zendesk-token"... |
24,895,266 | I'm working on a project that uses SQL. Now I have made a function that checks the database (**check\_database($post)**). That function should be able to be called in any other function. My other function (**authenticate($post)**), in the same class, calls this function. When I try the php file out, I get the following... | 2014/07/22 | [
"https://Stackoverflow.com/questions/24895266",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3865904/"
] | We've put together a useful [nuget package](https://www.nuget.org/packages/ZendeskApi.Client/) if you're working with C#.
You can use the package to create a ZendeskApiClient:
```
IZendeskClient client = new ZendeskClient(
new Uri("my-zendesk-api-host-endpoint"),
"my-zendesk-username",
"my-zendesk-token"... | ```
https://mydomain.zendesk.com/api/v2/users/search.json?query=email:myname@mydomain.com
```
In case email consist special chars (my+name@mydomain.com) it wont work.
But urlencode can help. |
24,895,266 | I'm working on a project that uses SQL. Now I have made a function that checks the database (**check\_database($post)**). That function should be able to be called in any other function. My other function (**authenticate($post)**), in the same class, calls this function. When I try the php file out, I get the following... | 2014/07/22 | [
"https://Stackoverflow.com/questions/24895266",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3865904/"
] | This is how to do it with the [Zendesk PHP API Client Library](https://github.com/zendesk/zendesk_api_client_php):
`$client->users()->search(array("query"=>"example@email.com"));` | Though a v late response but might be helpful for someone in future.
Please make sure that you make proper use of POST, PUT and GET accordingly. I got an error
Array([error] => InvalidEndpoint, [description] => Not found)
while coding which was because I was using POST instead of GET while searching user in Zendesk... |
24,895,266 | I'm working on a project that uses SQL. Now I have made a function that checks the database (**check\_database($post)**). That function should be able to be called in any other function. My other function (**authenticate($post)**), in the same class, calls this function. When I try the php file out, I get the following... | 2014/07/22 | [
"https://Stackoverflow.com/questions/24895266",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3865904/"
] | Its simple, just do:
```
https://mydomain.zendesk.com/api/v2/users/search.json?query=email:myname@mydomain.com
```
Hope it helps. | Though a v late response but might be helpful for someone in future.
Please make sure that you make proper use of POST, PUT and GET accordingly. I got an error
Array([error] => InvalidEndpoint, [description] => Not found)
while coding which was because I was using POST instead of GET while searching user in Zendesk... |
24,895,266 | I'm working on a project that uses SQL. Now I have made a function that checks the database (**check\_database($post)**). That function should be able to be called in any other function. My other function (**authenticate($post)**), in the same class, calls this function. When I try the php file out, I get the following... | 2014/07/22 | [
"https://Stackoverflow.com/questions/24895266",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3865904/"
] | ```
https://mydomain.zendesk.com/api/v2/users/search.json?query=email:myname@mydomain.com
```
In case email consist special chars (my+name@mydomain.com) it wont work.
But urlencode can help. | Though a v late response but might be helpful for someone in future.
Please make sure that you make proper use of POST, PUT and GET accordingly. I got an error
Array([error] => InvalidEndpoint, [description] => Not found)
while coding which was because I was using POST instead of GET while searching user in Zendesk... |
24,895,266 | I'm working on a project that uses SQL. Now I have made a function that checks the database (**check\_database($post)**). That function should be able to be called in any other function. My other function (**authenticate($post)**), in the same class, calls this function. When I try the php file out, I get the following... | 2014/07/22 | [
"https://Stackoverflow.com/questions/24895266",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3865904/"
] | Its simple, just do:
```
https://mydomain.zendesk.com/api/v2/users/search.json?query=email:myname@mydomain.com
```
Hope it helps. | This is how to do it with the [Zendesk PHP API Client Library](https://github.com/zendesk/zendesk_api_client_php):
`$client->users()->search(array("query"=>"example@email.com"));` |
24,895,266 | I'm working on a project that uses SQL. Now I have made a function that checks the database (**check\_database($post)**). That function should be able to be called in any other function. My other function (**authenticate($post)**), in the same class, calls this function. When I try the php file out, I get the following... | 2014/07/22 | [
"https://Stackoverflow.com/questions/24895266",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3865904/"
] | This is how to do it with the [Zendesk PHP API Client Library](https://github.com/zendesk/zendesk_api_client_php):
`$client->users()->search(array("query"=>"example@email.com"));` | ```
https://mydomain.zendesk.com/api/v2/users/search.json?query=email:myname@mydomain.com
```
In case email consist special chars (my+name@mydomain.com) it wont work.
But urlencode can help. |
24,895,266 | I'm working on a project that uses SQL. Now I have made a function that checks the database (**check\_database($post)**). That function should be able to be called in any other function. My other function (**authenticate($post)**), in the same class, calls this function. When I try the php file out, I get the following... | 2014/07/22 | [
"https://Stackoverflow.com/questions/24895266",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3865904/"
] | Its simple, just do:
```
https://mydomain.zendesk.com/api/v2/users/search.json?query=email:myname@mydomain.com
```
Hope it helps. | ```
https://mydomain.zendesk.com/api/v2/users/search.json?query=email:myname@mydomain.com
```
In case email consist special chars (my+name@mydomain.com) it wont work.
But urlencode can help. |
2,007,967 | I am interested in finding out what the actual distance is flown by a golf ball on a drive. You can assume no wind, 10 degree launch angle, goes straight down the middle of the fairway (no draw, no slice...) and no erratic backspin on the ball (so it wont "balloon" but will have stable flight). You can also assume that... | 2016/11/10 | [
"https://math.stackexchange.com/questions/2007967",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/175745/"
] | Suppose the curve that a ball moves is given by a parabola. This would actually be the case, if we conducted such an experiment in a vacuum - in the real world, air resistance etc. would make the problem much more complicated (but this approximation will suffice for us).
Now we launch the ball in our coordinate system... | This is a non mathematical answer but still mildly interesting and worth mentioning. For someone that really wanted to know this but didn't have the math skills to solve it (like me), I suppose someone could record the flight of the ball on their smartphone such that the entire ballflight could be recorded. Then they w... |
2,007,967 | I am interested in finding out what the actual distance is flown by a golf ball on a drive. You can assume no wind, 10 degree launch angle, goes straight down the middle of the fairway (no draw, no slice...) and no erratic backspin on the ball (so it wont "balloon" but will have stable flight). You can also assume that... | 2016/11/10 | [
"https://math.stackexchange.com/questions/2007967",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/175745/"
] | With the assumptions that you make, the golf ball is basically free falling without losing horizontal speed and is therefore described by a parabola:
\begin{equation}
y=-ax^2+bx+c,
\end{equation}
where $x$ is the horizontal distance and $y$ is the height of the ball. We know that when $x=\pm 100$, the ball is at the gr... | This is a non mathematical answer but still mildly interesting and worth mentioning. For someone that really wanted to know this but didn't have the math skills to solve it (like me), I suppose someone could record the flight of the ball on their smartphone such that the entire ballflight could be recorded. Then they w... |
2,007,967 | I am interested in finding out what the actual distance is flown by a golf ball on a drive. You can assume no wind, 10 degree launch angle, goes straight down the middle of the fairway (no draw, no slice...) and no erratic backspin on the ball (so it wont "balloon" but will have stable flight). You can also assume that... | 2016/11/10 | [
"https://math.stackexchange.com/questions/2007967",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/175745/"
] | With the assumptions that you make, the golf ball is basically free falling without losing horizontal speed and is therefore described by a parabola:
\begin{equation}
y=-ax^2+bx+c,
\end{equation}
where $x$ is the horizontal distance and $y$ is the height of the ball. We know that when $x=\pm 100$, the ball is at the gr... | Suppose the curve that a ball moves is given by a parabola. This would actually be the case, if we conducted such an experiment in a vacuum - in the real world, air resistance etc. would make the problem much more complicated (but this approximation will suffice for us).
Now we launch the ball in our coordinate system... |
2,007,967 | I am interested in finding out what the actual distance is flown by a golf ball on a drive. You can assume no wind, 10 degree launch angle, goes straight down the middle of the fairway (no draw, no slice...) and no erratic backspin on the ball (so it wont "balloon" but will have stable flight). You can also assume that... | 2016/11/10 | [
"https://math.stackexchange.com/questions/2007967",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/175745/"
] | Suppose the curve that a ball moves is given by a parabola. This would actually be the case, if we conducted such an experiment in a vacuum - in the real world, air resistance etc. would make the problem much more complicated (but this approximation will suffice for us).
Now we launch the ball in our coordinate system... | To expand the above calculations to describe a real golf ball trajectory, we need to include the effects of *drag* and *lift* (the *Magnus* force), when the equations become:
$\frac{\mathrm{d}\mathbf{v}}{\mathrm{d}t}= - k\_D|\mathbf{v}|\mathbf{v} +
k\_L\, |\mathbf{v}|(\boldsymbol{\hat \omega}\times \mathbf{v})+ \math... |
2,007,967 | I am interested in finding out what the actual distance is flown by a golf ball on a drive. You can assume no wind, 10 degree launch angle, goes straight down the middle of the fairway (no draw, no slice...) and no erratic backspin on the ball (so it wont "balloon" but will have stable flight). You can also assume that... | 2016/11/10 | [
"https://math.stackexchange.com/questions/2007967",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/175745/"
] | With the assumptions that you make, the golf ball is basically free falling without losing horizontal speed and is therefore described by a parabola:
\begin{equation}
y=-ax^2+bx+c,
\end{equation}
where $x$ is the horizontal distance and $y$ is the height of the ball. We know that when $x=\pm 100$, the ball is at the gr... | To expand the above calculations to describe a real golf ball trajectory, we need to include the effects of *drag* and *lift* (the *Magnus* force), when the equations become:
$\frac{\mathrm{d}\mathbf{v}}{\mathrm{d}t}= - k\_D|\mathbf{v}|\mathbf{v} +
k\_L\, |\mathbf{v}|(\boldsymbol{\hat \omega}\times \mathbf{v})+ \math... |
48,891,657 | I have a component that renders multiple text-fields. My state contains the information about all the text-fields I have in the component.
My state looks something like this,
```
this.state.list = [
{
id: "some-string",
name: "something"
},
{
id: "some-other-string-id",
nam... | 2018/02/20 | [
"https://Stackoverflow.com/questions/48891657",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4054527/"
] | ```
import React from "react";
import PropTypes from "prop-types";
import { TextField } from "material-ui";
class App extends React.Component {
constructor() {
super();
this.state = {
list: [
{
id: "some-string",
name: "something"
},
{
id: "some-oth... | ```
class TextFields extends Component {
constructor() {
super();
this.state = {
list: [
{
id: "one",
name: "First Field",
autofocus: false,
},
{
id: "two",
... |
48,891,657 | I have a component that renders multiple text-fields. My state contains the information about all the text-fields I have in the component.
My state looks something like this,
```
this.state.list = [
{
id: "some-string",
name: "something"
},
{
id: "some-other-string-id",
nam... | 2018/02/20 | [
"https://Stackoverflow.com/questions/48891657",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4054527/"
] | ```
import React from "react";
import PropTypes from "prop-types";
import { TextField } from "material-ui";
class App extends React.Component {
constructor() {
super();
this.state = {
list: [
{
id: "some-string",
name: "something"
},
{
id: "some-oth... | ```
class TextFields extends Component {
constructor() {
super();
this.state = {
list: [
{
id: "one",
name: "First Field"
},
{
id: "two",
name: "Second Field"
},
... |
48,891,657 | I have a component that renders multiple text-fields. My state contains the information about all the text-fields I have in the component.
My state looks something like this,
```
this.state.list = [
{
id: "some-string",
name: "something"
},
{
id: "some-other-string-id",
nam... | 2018/02/20 | [
"https://Stackoverflow.com/questions/48891657",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4054527/"
] | ```
class TextFields extends Component {
constructor() {
super();
this.state = {
list: [
{
id: "one",
name: "First Field"
},
{
id: "two",
name: "Second Field"
},
... | ```
class TextFields extends Component {
constructor() {
super();
this.state = {
list: [
{
id: "one",
name: "First Field",
autofocus: false,
},
{
id: "two",
... |
68,247 | We have a Pathfinder group that consists of 11 people, and has been like that for a few years now. In the beginning we had a great time with such a large group and didn't mind the number, but something in the dynamics has shifted over the last campaign.
Four of them almost never show up (which we can excuse because th... | 2015/09/08 | [
"https://rpg.stackexchange.com/questions/68247",
"https://rpg.stackexchange.com",
"https://rpg.stackexchange.com/users/24783/"
] | Yes, it's always possible to be polite, and what you are running into isn't uncommon. Peoples' lives change.
Two Things to Do, One (Optional) Thing to Try
=============================================
1. **Address friendship first.**
From your problem statement, these are your friends. This
consideration trumps ga... | I had this issue with a large D&D group back when I was living in an apartment in Memphis, same kind of setup you had. There was a core of folks looking for more consistent, "serious" roleplay and there were the folks who, either out of interest or out of conflicts, couldn't participate much. And one guy who was a goon... |
68,247 | We have a Pathfinder group that consists of 11 people, and has been like that for a few years now. In the beginning we had a great time with such a large group and didn't mind the number, but something in the dynamics has shifted over the last campaign.
Four of them almost never show up (which we can excuse because th... | 2015/09/08 | [
"https://rpg.stackexchange.com/questions/68247",
"https://rpg.stackexchange.com",
"https://rpg.stackexchange.com/users/24783/"
] | Yes, it's always possible to be polite, and what you are running into isn't uncommon. Peoples' lives change.
Two Things to Do, One (Optional) Thing to Try
=============================================
1. **Address friendship first.**
From your problem statement, these are your friends. This
consideration trumps ga... | I used to have eight players in my campaign and I found that as the PCs got higher level it became harder and harder to keep the flow going. The multiple attacks per round and more complicated actions caused the rounds to become very long. Two have dropped out and I am now down to my original six and I intend on it sta... |
68,247 | We have a Pathfinder group that consists of 11 people, and has been like that for a few years now. In the beginning we had a great time with such a large group and didn't mind the number, but something in the dynamics has shifted over the last campaign.
Four of them almost never show up (which we can excuse because th... | 2015/09/08 | [
"https://rpg.stackexchange.com/questions/68247",
"https://rpg.stackexchange.com",
"https://rpg.stackexchange.com/users/24783/"
] | Yes, it's always possible to be polite, and what you are running into isn't uncommon. Peoples' lives change.
Two Things to Do, One (Optional) Thing to Try
=============================================
1. **Address friendship first.**
From your problem statement, these are your friends. This
consideration trumps ga... | I run short campaigns (~2 months), and when I start a new campaign I send a new round of invites. Anyone I didn't enjoy playing with in the previous campaign, just doesn't get invited to the new one. Nobody has ever given me any grief about this -- I think it's mutually understood that when I run a game I can invite wh... |
68,247 | We have a Pathfinder group that consists of 11 people, and has been like that for a few years now. In the beginning we had a great time with such a large group and didn't mind the number, but something in the dynamics has shifted over the last campaign.
Four of them almost never show up (which we can excuse because th... | 2015/09/08 | [
"https://rpg.stackexchange.com/questions/68247",
"https://rpg.stackexchange.com",
"https://rpg.stackexchange.com/users/24783/"
] | I had this issue with a large D&D group back when I was living in an apartment in Memphis, same kind of setup you had. There was a core of folks looking for more consistent, "serious" roleplay and there were the folks who, either out of interest or out of conflicts, couldn't participate much. And one guy who was a goon... | I used to have eight players in my campaign and I found that as the PCs got higher level it became harder and harder to keep the flow going. The multiple attacks per round and more complicated actions caused the rounds to become very long. Two have dropped out and I am now down to my original six and I intend on it sta... |
68,247 | We have a Pathfinder group that consists of 11 people, and has been like that for a few years now. In the beginning we had a great time with such a large group and didn't mind the number, but something in the dynamics has shifted over the last campaign.
Four of them almost never show up (which we can excuse because th... | 2015/09/08 | [
"https://rpg.stackexchange.com/questions/68247",
"https://rpg.stackexchange.com",
"https://rpg.stackexchange.com/users/24783/"
] | I had this issue with a large D&D group back when I was living in an apartment in Memphis, same kind of setup you had. There was a core of folks looking for more consistent, "serious" roleplay and there were the folks who, either out of interest or out of conflicts, couldn't participate much. And one guy who was a goon... | I run short campaigns (~2 months), and when I start a new campaign I send a new round of invites. Anyone I didn't enjoy playing with in the previous campaign, just doesn't get invited to the new one. Nobody has ever given me any grief about this -- I think it's mutually understood that when I run a game I can invite wh... |
68,247 | We have a Pathfinder group that consists of 11 people, and has been like that for a few years now. In the beginning we had a great time with such a large group and didn't mind the number, but something in the dynamics has shifted over the last campaign.
Four of them almost never show up (which we can excuse because th... | 2015/09/08 | [
"https://rpg.stackexchange.com/questions/68247",
"https://rpg.stackexchange.com",
"https://rpg.stackexchange.com/users/24783/"
] | I run short campaigns (~2 months), and when I start a new campaign I send a new round of invites. Anyone I didn't enjoy playing with in the previous campaign, just doesn't get invited to the new one. Nobody has ever given me any grief about this -- I think it's mutually understood that when I run a game I can invite wh... | I used to have eight players in my campaign and I found that as the PCs got higher level it became harder and harder to keep the flow going. The multiple attacks per round and more complicated actions caused the rounds to become very long. Two have dropped out and I am now down to my original six and I intend on it sta... |
1,874,799 | I have a Silverlight client that has some problems talking to the server it originates from via a WCF `basicHttpBinding`. The service configuration is as follows:
```
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="silverlightBinding">
<security mode="TransportCredentialOnly">
... | 2009/12/09 | [
"https://Stackoverflow.com/questions/1874799",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23562/"
] | I've experienced similar behaviour with a silverlight app.. turned out to be one of these problems:
[WCF bug 1](http://connect.microsoft.com/wcf/feedback/details/433569/wcf-throws-an-executionengineexception-when-returning-an-array-as-ilist-t)
[WCF bug 2](https://connect.microsoft.com/VisualStudio/feedback/ViewFeedba... | Looks to me like 3 standard authentication handshakes (2 401's each) followed by a succesful access (200). If you are seeing a lot of these in quick succession then this indicates that connections to the server are not being re-used for subsequent access. I'm not a wcf expert it could be that this is normal, although I... |
30,224 | This is not just gnome terminal, but pretty much all gnome windows: When you hold the "alt" key, you can press the first letter of one of the menu items. This will let you scroll that menu without clicking on it directly.
This is okay on any other window, like say Firefox, but on gnome terminal, it steals the keys I u... | 2011/03/13 | [
"https://askubuntu.com/questions/30224",
"https://askubuntu.com",
"https://askubuntu.com/users/12316/"
] | Edit > Keyboard Shortcuts..., and uncheck "Enable menu access keys". | If you want to do it globally, you can try this method ([source](http://ubuntuforums.org/showthread.php?t=1735533)):
>
> To disable mnemonics you should create (if it doesn't already exist) ~/.gtkrc-2.0.
> This file should contain the line gtk-enable-mnemonics = 0 (you can
> add other GTK settings if you'd like). ... |
30,224 | This is not just gnome terminal, but pretty much all gnome windows: When you hold the "alt" key, you can press the first letter of one of the menu items. This will let you scroll that menu without clicking on it directly.
This is okay on any other window, like say Firefox, but on gnome terminal, it steals the keys I u... | 2011/03/13 | [
"https://askubuntu.com/questions/30224",
"https://askubuntu.com",
"https://askubuntu.com/users/12316/"
] | Edit > Keyboard Shortcuts..., and uncheck "Enable menu access keys". | This is really driving me crazy too. I'd like to use Alt-V for paste as it is much more ergonomic than using CTRL but this doesn't seem possible because of the View menu option.
Overall this seems like a bug because when I disable the hotkeys in Preferences I am no longer able to use Alt-V for accessing the View menu... |
30,224 | This is not just gnome terminal, but pretty much all gnome windows: When you hold the "alt" key, you can press the first letter of one of the menu items. This will let you scroll that menu without clicking on it directly.
This is okay on any other window, like say Firefox, but on gnome terminal, it steals the keys I u... | 2011/03/13 | [
"https://askubuntu.com/questions/30224",
"https://askubuntu.com",
"https://askubuntu.com/users/12316/"
] | Edit > Keyboard Shortcuts..., and uncheck "Enable menu access keys". | For Gnome terminal 3.14.1: Click Edit (on menu bar) > Preferences > At last on "General" tab, Un-check "enable mnemonics..." . |
30,224 | This is not just gnome terminal, but pretty much all gnome windows: When you hold the "alt" key, you can press the first letter of one of the menu items. This will let you scroll that menu without clicking on it directly.
This is okay on any other window, like say Firefox, but on gnome terminal, it steals the keys I u... | 2011/03/13 | [
"https://askubuntu.com/questions/30224",
"https://askubuntu.com",
"https://askubuntu.com/users/12316/"
] | Edit > Keyboard Shortcuts..., and uncheck "Enable menu access keys". | In Ubuntu 16.04, go to System Settings -> Keyboard -> Shortcuts -> Launchers, and clear the *Key to show the HUD* (or change it to another key) |
3,490 | My biggest challenge is about synonyms. It is hard to differentiate differences of meanings of synonym words. Even after I consult various dictionaries, some times it is hard to get clarity. In such cases
1. May I ask questions about word differences to the community?
2. If not, what other sources are there to help me... | 2012/12/25 | [
"https://english.meta.stackexchange.com/questions/3490",
"https://english.meta.stackexchange.com",
"https://english.meta.stackexchange.com/users/30645/"
] | The best way to ask about synonyms on ELU is to make sure you include:
* Dictionary definitions of the words you are asking about (i.e., give us all a baseline to work from in the question itself; don't make us all go look up the words in the dictionary as part of our analysis).
* The reason that you're asking about t... | Words have contextual meanings and that is how they need to be studied – contextually. While *correct* is a synonym of *right* in one sense, it is not in other senses of the word.
If you observe and study words according to their contextual meanings, learning synonyms won't be a big challenge. You need to do a lot of ... |
3,490 | My biggest challenge is about synonyms. It is hard to differentiate differences of meanings of synonym words. Even after I consult various dictionaries, some times it is hard to get clarity. In such cases
1. May I ask questions about word differences to the community?
2. If not, what other sources are there to help me... | 2012/12/25 | [
"https://english.meta.stackexchange.com/questions/3490",
"https://english.meta.stackexchange.com",
"https://english.meta.stackexchange.com/users/30645/"
] | This is an important question, and one I am glad to see raised.
I agree with every word of the responses so far — Inglish Teeture’s, J.R.'s and Bill Franke’s answers, and Edwin Ashworth’s comment.
I would like to add a word about **tools** for exploring synonyms. First, dictionaries. It is essential to consult multi... | Words have contextual meanings and that is how they need to be studied – contextually. While *correct* is a synonym of *right* in one sense, it is not in other senses of the word.
If you observe and study words according to their contextual meanings, learning synonyms won't be a big challenge. You need to do a lot of ... |
3,490 | My biggest challenge is about synonyms. It is hard to differentiate differences of meanings of synonym words. Even after I consult various dictionaries, some times it is hard to get clarity. In such cases
1. May I ask questions about word differences to the community?
2. If not, what other sources are there to help me... | 2012/12/25 | [
"https://english.meta.stackexchange.com/questions/3490",
"https://english.meta.stackexchange.com",
"https://english.meta.stackexchange.com/users/30645/"
] | Words have contextual meanings and that is how they need to be studied – contextually. While *correct* is a synonym of *right* in one sense, it is not in other senses of the word.
If you observe and study words according to their contextual meanings, learning synonyms won't be a big challenge. You need to do a lot of ... | I find that questions about synonym differences are very much on-topic here at ELU and not at all General Reference.
Most dictionaries will give definitions which an educated native speaker can check for correctness of the correct nuance (by the succinct choice of words in the definition), but on the whole **dictiona... |
3,490 | My biggest challenge is about synonyms. It is hard to differentiate differences of meanings of synonym words. Even after I consult various dictionaries, some times it is hard to get clarity. In such cases
1. May I ask questions about word differences to the community?
2. If not, what other sources are there to help me... | 2012/12/25 | [
"https://english.meta.stackexchange.com/questions/3490",
"https://english.meta.stackexchange.com",
"https://english.meta.stackexchange.com/users/30645/"
] | The best way to ask about synonyms on ELU is to make sure you include:
* Dictionary definitions of the words you are asking about (i.e., give us all a baseline to work from in the question itself; don't make us all go look up the words in the dictionary as part of our analysis).
* The reason that you're asking about t... | One of these days, now that ELL has more than 160 commitments, the English Language Learners site will go into beta and that should (I hope it does) provide a friendlier atmosphere for asking questions about which synonyms are best in specific contexts and what the differences between putative synonyms are. Until then,... |
3,490 | My biggest challenge is about synonyms. It is hard to differentiate differences of meanings of synonym words. Even after I consult various dictionaries, some times it is hard to get clarity. In such cases
1. May I ask questions about word differences to the community?
2. If not, what other sources are there to help me... | 2012/12/25 | [
"https://english.meta.stackexchange.com/questions/3490",
"https://english.meta.stackexchange.com",
"https://english.meta.stackexchange.com/users/30645/"
] | This is an important question, and one I am glad to see raised.
I agree with every word of the responses so far — Inglish Teeture’s, J.R.'s and Bill Franke’s answers, and Edwin Ashworth’s comment.
I would like to add a word about **tools** for exploring synonyms. First, dictionaries. It is essential to consult multi... | One of these days, now that ELL has more than 160 commitments, the English Language Learners site will go into beta and that should (I hope it does) provide a friendlier atmosphere for asking questions about which synonyms are best in specific contexts and what the differences between putative synonyms are. Until then,... |
3,490 | My biggest challenge is about synonyms. It is hard to differentiate differences of meanings of synonym words. Even after I consult various dictionaries, some times it is hard to get clarity. In such cases
1. May I ask questions about word differences to the community?
2. If not, what other sources are there to help me... | 2012/12/25 | [
"https://english.meta.stackexchange.com/questions/3490",
"https://english.meta.stackexchange.com",
"https://english.meta.stackexchange.com/users/30645/"
] | One of these days, now that ELL has more than 160 commitments, the English Language Learners site will go into beta and that should (I hope it does) provide a friendlier atmosphere for asking questions about which synonyms are best in specific contexts and what the differences between putative synonyms are. Until then,... | I find that questions about synonym differences are very much on-topic here at ELU and not at all General Reference.
Most dictionaries will give definitions which an educated native speaker can check for correctness of the correct nuance (by the succinct choice of words in the definition), but on the whole **dictiona... |
3,490 | My biggest challenge is about synonyms. It is hard to differentiate differences of meanings of synonym words. Even after I consult various dictionaries, some times it is hard to get clarity. In such cases
1. May I ask questions about word differences to the community?
2. If not, what other sources are there to help me... | 2012/12/25 | [
"https://english.meta.stackexchange.com/questions/3490",
"https://english.meta.stackexchange.com",
"https://english.meta.stackexchange.com/users/30645/"
] | The best way to ask about synonyms on ELU is to make sure you include:
* Dictionary definitions of the words you are asking about (i.e., give us all a baseline to work from in the question itself; don't make us all go look up the words in the dictionary as part of our analysis).
* The reason that you're asking about t... | This is an important question, and one I am glad to see raised.
I agree with every word of the responses so far — Inglish Teeture’s, J.R.'s and Bill Franke’s answers, and Edwin Ashworth’s comment.
I would like to add a word about **tools** for exploring synonyms. First, dictionaries. It is essential to consult multi... |
3,490 | My biggest challenge is about synonyms. It is hard to differentiate differences of meanings of synonym words. Even after I consult various dictionaries, some times it is hard to get clarity. In such cases
1. May I ask questions about word differences to the community?
2. If not, what other sources are there to help me... | 2012/12/25 | [
"https://english.meta.stackexchange.com/questions/3490",
"https://english.meta.stackexchange.com",
"https://english.meta.stackexchange.com/users/30645/"
] | The best way to ask about synonyms on ELU is to make sure you include:
* Dictionary definitions of the words you are asking about (i.e., give us all a baseline to work from in the question itself; don't make us all go look up the words in the dictionary as part of our analysis).
* The reason that you're asking about t... | I find that questions about synonym differences are very much on-topic here at ELU and not at all General Reference.
Most dictionaries will give definitions which an educated native speaker can check for correctness of the correct nuance (by the succinct choice of words in the definition), but on the whole **dictiona... |
3,490 | My biggest challenge is about synonyms. It is hard to differentiate differences of meanings of synonym words. Even after I consult various dictionaries, some times it is hard to get clarity. In such cases
1. May I ask questions about word differences to the community?
2. If not, what other sources are there to help me... | 2012/12/25 | [
"https://english.meta.stackexchange.com/questions/3490",
"https://english.meta.stackexchange.com",
"https://english.meta.stackexchange.com/users/30645/"
] | This is an important question, and one I am glad to see raised.
I agree with every word of the responses so far — Inglish Teeture’s, J.R.'s and Bill Franke’s answers, and Edwin Ashworth’s comment.
I would like to add a word about **tools** for exploring synonyms. First, dictionaries. It is essential to consult multi... | I find that questions about synonym differences are very much on-topic here at ELU and not at all General Reference.
Most dictionaries will give definitions which an educated native speaker can check for correctness of the correct nuance (by the succinct choice of words in the definition), but on the whole **dictiona... |
1,004 | Is there a good decicated place (or website) where people can proofread texts in Esperanto?
In this place, people could correct errors and show how they would have written. Proofreading is good for improving writing proficiency, so this would be a valuable ressource for Esperanto-learners. | 2016/09/23 | [
"https://esperanto.stackexchange.com/questions/1004",
"https://esperanto.stackexchange.com",
"https://esperanto.stackexchange.com/users/6/"
] | [Lang-8](http://lang-8.com/) is not Esperanto-specific, but it exists pretty much for that exact purpose. You can tag your entries as "Esperanto" and people will find them. | Some local esperanto clubs do proofreading. Especially for short texts, stories, video publications the local clubs can help. |
14,416 | As science must be reproducible, by definition, there is increasing recognition that data and code are an essential component of the reproduciblity, as discussed by the [Yale Roundtable for data and code sharing](http://reproducible-research.googlegroups.com/web/CISE-12-5-News.pdf).
In reviewing a manuscript for a jou... | 2011/08/17 | [
"https://stats.stackexchange.com/questions/14416",
"https://stats.stackexchange.com",
"https://stats.stackexchange.com/users/1381/"
] | Addressing the two situations seperately:
As a reviewer: Yes, I think you'd have grounds to ask to see the data or the code. But if I were you, I'd prepare to see things like pared down code, or a subsample of the data. People implement future research not being reported in this paper in their code all the time, and y... | I don't have any experience with this, but it seems to me that you might be able to insist on #1 as a part of your own due diligence in reviewing their results. I don't see how you can insist on #2, though. |
14,416 | As science must be reproducible, by definition, there is increasing recognition that data and code are an essential component of the reproduciblity, as discussed by the [Yale Roundtable for data and code sharing](http://reproducible-research.googlegroups.com/web/CISE-12-5-News.pdf).
In reviewing a manuscript for a jou... | 2011/08/17 | [
"https://stats.stackexchange.com/questions/14416",
"https://stats.stackexchange.com",
"https://stats.stackexchange.com/users/1381/"
] | As far as getting data as a reviewer goes, you're entitled to it if you need it to complete your review properly. More reviewers should be asking for data and assessing it. Lots of journals have policies that they may require the data and analysis code for review purposes.
Availability at the time of publication isn't... | Addressing the two situations seperately:
As a reviewer: Yes, I think you'd have grounds to ask to see the data or the code. But if I were you, I'd prepare to see things like pared down code, or a subsample of the data. People implement future research not being reported in this paper in their code all the time, and y... |
14,416 | As science must be reproducible, by definition, there is increasing recognition that data and code are an essential component of the reproduciblity, as discussed by the [Yale Roundtable for data and code sharing](http://reproducible-research.googlegroups.com/web/CISE-12-5-News.pdf).
In reviewing a manuscript for a jou... | 2011/08/17 | [
"https://stats.stackexchange.com/questions/14416",
"https://stats.stackexchange.com",
"https://stats.stackexchange.com/users/1381/"
] | As far as getting data as a reviewer goes, you're entitled to it if you need it to complete your review properly. More reviewers should be asking for data and assessing it. Lots of journals have policies that they may require the data and analysis code for review purposes.
Availability at the time of publication isn't... | I don't have any experience with this, but it seems to me that you might be able to insist on #1 as a part of your own due diligence in reviewing their results. I don't see how you can insist on #2, though. |
14,416 | As science must be reproducible, by definition, there is increasing recognition that data and code are an essential component of the reproduciblity, as discussed by the [Yale Roundtable for data and code sharing](http://reproducible-research.googlegroups.com/web/CISE-12-5-News.pdf).
In reviewing a manuscript for a jou... | 2011/08/17 | [
"https://stats.stackexchange.com/questions/14416",
"https://stats.stackexchange.com",
"https://stats.stackexchange.com/users/1381/"
] | As [John says](https://stats.stackexchange.com/questions/14416/as-a-reviewer-can-i-justify-requesting-data-and-code-be-made-available-even-if-t/14424#14424) availability of data to reviewers should be a no-brainer; careful review should include replicating the analysis and as such necessitates access to the data.
With... | I don't have any experience with this, but it seems to me that you might be able to insist on #1 as a part of your own due diligence in reviewing their results. I don't see how you can insist on #2, though. |
14,416 | As science must be reproducible, by definition, there is increasing recognition that data and code are an essential component of the reproduciblity, as discussed by the [Yale Roundtable for data and code sharing](http://reproducible-research.googlegroups.com/web/CISE-12-5-News.pdf).
In reviewing a manuscript for a jou... | 2011/08/17 | [
"https://stats.stackexchange.com/questions/14416",
"https://stats.stackexchange.com",
"https://stats.stackexchange.com/users/1381/"
] | As far as getting data as a reviewer goes, you're entitled to it if you need it to complete your review properly. More reviewers should be asking for data and assessing it. Lots of journals have policies that they may require the data and analysis code for review purposes.
Availability at the time of publication isn't... | As [John says](https://stats.stackexchange.com/questions/14416/as-a-reviewer-can-i-justify-requesting-data-and-code-be-made-available-even-if-t/14424#14424) availability of data to reviewers should be a no-brainer; careful review should include replicating the analysis and as such necessitates access to the data.
With... |
57,325,295 | [](https://i.stack.imgur.com/pNHQi.png)I am making an FSM with VHDL. The simplest possible when valid = 1 change from stateA to stateB.
The confusing part is the rising edge selected by the blue rectangular. When valid = '1'. At the first rising edge,... | 2019/08/02 | [
"https://Stackoverflow.com/questions/57325295",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10377224/"
] | The reason the 2nd run never happened is because Retry functionality is applicable for JUnit runner only, as per <https://github.com/mkolisnyk/cucumber-reports/issues/167>. | Try <https://github.com/prashant-ramcharan/courgette-jvm> - it has the ability to rerun failing tests similarly to ExtendedCucumberOptions, but this one contains the new Cucumber already. |
57,721,345 | My JSON array is as follows.
```
[{"20656":"20656","20648":"20648","20666":"20666","20657":"20657","20658":"20658","20659":"20659","20660":"20660","20665":"20665","20672":"20672","20667":"20667","24517":"24517","20677":"20677","20662":"20662","24605":"24605","20675":"20675","20663":"20663","20649":"20649","20664":"206... | 2019/08/30 | [
"https://Stackoverflow.com/questions/57721345",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10133107/"
] | Assuming your variable looks like this
[](https://i.stack.imgur.com/EnXW3.png)
Add **Select Action**
[](https://i.stack.imgur.com/YDDoF.png)
Which has **From** property set to
```... | You can use "Parse JSON" action to parse your json data.
First, I create a "Initialize variable" action to store the json data(shown as below screenshot)
[](https://i.stack.imgur.com/EPxan.png)
Then create "Parse JSON" action to parse the json objec... |
30,141,740 | After importing an existing project into RubyMine, I encountered "Rails server launcher wasn't found in the project" when I Run/Edit Configuration.
I've checked this [Cannot start the debugger in Rubymine. Rails server launcher wasn't found in project](https://stackoverflow.com/questions/27883244/cannot-start-the-deb... | 2015/05/09 | [
"https://Stackoverflow.com/questions/30141740",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1806476/"
] | I upgraded from RubyMine to IntelliJ Ultimate IDE 2017.1.5 and I encountered the same error *"Run Configuration Error: Rails server launcher wasn't found in project"*. I was using Ruby v2.4.0 with Rails 5.0.2.
It took me an entire day to solve the issue, so I've written a detailed explanation with screenshots to guide... | I've came across this same problem, and a way I found to solve it was to properly defining the root folder of the project when opening it in the first time with RubyMine.
As far as I can understand, ideally you should open the project by pointing the RubyMine to the project's root folder:
```
my-workplace/
|-- rails-... |
30,141,740 | After importing an existing project into RubyMine, I encountered "Rails server launcher wasn't found in the project" when I Run/Edit Configuration.
I've checked this [Cannot start the debugger in Rubymine. Rails server launcher wasn't found in project](https://stackoverflow.com/questions/27883244/cannot-start-the-deb... | 2015/05/09 | [
"https://Stackoverflow.com/questions/30141740",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1806476/"
] | This worked for me
* Remove the .idea file
* Invalidate the cache and restart the ide | if you follow the solution from Artyom Blagoda on the Windows with ruby installed on the WSL (Ubuntu) you'll get into situation when wsl path (\wsl$\Ubuntu) of ruby script (rails) could not be found by remote (Ubuntu) ruby interpreter. to make it work you need to add path mapping on:
**Settings -> Ruby SDK and Gems** ... |
30,141,740 | After importing an existing project into RubyMine, I encountered "Rails server launcher wasn't found in the project" when I Run/Edit Configuration.
I've checked this [Cannot start the debugger in Rubymine. Rails server launcher wasn't found in project](https://stackoverflow.com/questions/27883244/cannot-start-the-deb... | 2015/05/09 | [
"https://Stackoverflow.com/questions/30141740",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1806476/"
] | My variant to solve same problem.
Create new run configuration, but use "Ruby" template instead of "Redmine":
**Ruby script** field set to path to your redmine rails bin path and **Script arguments** set to "*server -b 127.0.0.1 -p 3000 -e developmen*t" for ex.
[ you'll get into situation when wsl path (\wsl$\Ubuntu) of ruby script (rails) could not be found by remote (Ubuntu) ruby interpreter. to make it work you need to add path mapping on:
**Settings -> Ruby SDK and Gems** ... |
30,141,740 | After importing an existing project into RubyMine, I encountered "Rails server launcher wasn't found in the project" when I Run/Edit Configuration.
I've checked this [Cannot start the debugger in Rubymine. Rails server launcher wasn't found in project](https://stackoverflow.com/questions/27883244/cannot-start-the-deb... | 2015/05/09 | [
"https://Stackoverflow.com/questions/30141740",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1806476/"
] | The easiest way to fix it:
1. Close project
2. Remove `.idea` folder from project folder
3. Open project
Bingo!
NOTE: this workaround seems to no longer work with 2017.2. See [RUBY-20144](https://youtrack.jetbrains.com/issue/RUBY-20144) | I upgraded from RubyMine to IntelliJ Ultimate IDE 2017.1.5 and I encountered the same error *"Run Configuration Error: Rails server launcher wasn't found in project"*. I was using Ruby v2.4.0 with Rails 5.0.2.
It took me an entire day to solve the issue, so I've written a detailed explanation with screenshots to guide... |
30,141,740 | After importing an existing project into RubyMine, I encountered "Rails server launcher wasn't found in the project" when I Run/Edit Configuration.
I've checked this [Cannot start the debugger in Rubymine. Rails server launcher wasn't found in project](https://stackoverflow.com/questions/27883244/cannot-start-the-deb... | 2015/05/09 | [
"https://Stackoverflow.com/questions/30141740",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1806476/"
] | The easiest way to fix it:
1. Close project
2. Remove `.idea` folder from project folder
3. Open project
Bingo!
NOTE: this workaround seems to no longer work with 2017.2. See [RUBY-20144](https://youtrack.jetbrains.com/issue/RUBY-20144) | I've came across this same problem, and a way I found to solve it was to properly defining the root folder of the project when opening it in the first time with RubyMine.
As far as I can understand, ideally you should open the project by pointing the RubyMine to the project's root folder:
```
my-workplace/
|-- rails-... |
30,141,740 | After importing an existing project into RubyMine, I encountered "Rails server launcher wasn't found in the project" when I Run/Edit Configuration.
I've checked this [Cannot start the debugger in Rubymine. Rails server launcher wasn't found in project](https://stackoverflow.com/questions/27883244/cannot-start-the-deb... | 2015/05/09 | [
"https://Stackoverflow.com/questions/30141740",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1806476/"
] | I upgraded from RubyMine to IntelliJ Ultimate IDE 2017.1.5 and I encountered the same error *"Run Configuration Error: Rails server launcher wasn't found in project"*. I was using Ruby v2.4.0 with Rails 5.0.2.
It took me an entire day to solve the issue, so I've written a detailed explanation with screenshots to guide... | This worked for me
* Remove the .idea file
* Invalidate the cache and restart the ide |
30,141,740 | After importing an existing project into RubyMine, I encountered "Rails server launcher wasn't found in the project" when I Run/Edit Configuration.
I've checked this [Cannot start the debugger in Rubymine. Rails server launcher wasn't found in project](https://stackoverflow.com/questions/27883244/cannot-start-the-deb... | 2015/05/09 | [
"https://Stackoverflow.com/questions/30141740",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1806476/"
] | The easiest way to fix it:
1. Close project
2. Remove `.idea` folder from project folder
3. Open project
Bingo!
NOTE: this workaround seems to no longer work with 2017.2. See [RUBY-20144](https://youtrack.jetbrains.com/issue/RUBY-20144) | This worked for me
* Remove the .idea file
* Invalidate the cache and restart the ide |
30,141,740 | After importing an existing project into RubyMine, I encountered "Rails server launcher wasn't found in the project" when I Run/Edit Configuration.
I've checked this [Cannot start the debugger in Rubymine. Rails server launcher wasn't found in project](https://stackoverflow.com/questions/27883244/cannot-start-the-deb... | 2015/05/09 | [
"https://Stackoverflow.com/questions/30141740",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1806476/"
] | The easiest way to fix it:
1. Close project
2. Remove `.idea` folder from project folder
3. Open project
Bingo!
NOTE: this workaround seems to no longer work with 2017.2. See [RUBY-20144](https://youtrack.jetbrains.com/issue/RUBY-20144) | Ok, this RubyMine has some serious issues. My day started out peaceful and then ended as a nightmare, courtesy of RubyMine. All I did was git checkout to a certain version of my repo. Well, when I did that, suddenly the folders in RubyMine disappeared. Yes, that is the first bug. I `git checkout 8d4fbd1b5dfce0a3daa1689... |
30,141,740 | After importing an existing project into RubyMine, I encountered "Rails server launcher wasn't found in the project" when I Run/Edit Configuration.
I've checked this [Cannot start the debugger in Rubymine. Rails server launcher wasn't found in project](https://stackoverflow.com/questions/27883244/cannot-start-the-deb... | 2015/05/09 | [
"https://Stackoverflow.com/questions/30141740",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1806476/"
] | My variant to solve same problem.
Create new run configuration, but use "Ruby" template instead of "Redmine":
**Ruby script** field set to path to your redmine rails bin path and **Script arguments** set to "*server -b 127.0.0.1 -p 3000 -e developmen*t" for ex.
[ you'll get into situation when wsl path (\wsl$\Ubuntu) of ruby script (rails) could not be found by remote (Ubuntu) ruby interpreter. to make it work you need to add path mapping on:
**Settings -> Ruby SDK and Gems** ... |
19,332 | I have an old wireless router, and I mean stone age old (5 years). There is nothing wrong technically with the router, it serves my wireless needs at home but it is really darn old. A search on Belkin's site for F5D7230-4 actually turns up a different old model so I scrounged up this old review for you to get a sense o... | 2009/08/07 | [
"https://superuser.com/questions/19332",
"https://superuser.com",
"https://superuser.com/users/3427/"
] | I completely agree with [**@cwrea**](https://superuser.com/questions/19332/should-i-upgrade-my-old-wireless-router/19334#19334) - if it only supports older, less secure protocols, it's time to upgrade.
You mention you're using WPA-PSK, which is version 1. The only reason not to upgrade to WPA2 is if some of your devic... | If your router uses only [WPA](http://en.wikipedia.org/wiki/Wi-Fi_Protected_Access) (Wi-Fi Protected Access) version 1, or worse [WEP](http://en.wikipedia.org/wiki/Wired_Equivalent_Privacy) (Wired Equivalent Privacy), then yes, **it is time to upgrade your wireless router** to something that can do WPA2. Both of the ea... |
19,332 | I have an old wireless router, and I mean stone age old (5 years). There is nothing wrong technically with the router, it serves my wireless needs at home but it is really darn old. A search on Belkin's site for F5D7230-4 actually turns up a different old model so I scrounged up this old review for you to get a sense o... | 2009/08/07 | [
"https://superuser.com/questions/19332",
"https://superuser.com",
"https://superuser.com/users/3427/"
] | If your router uses only [WPA](http://en.wikipedia.org/wiki/Wi-Fi_Protected_Access) (Wi-Fi Protected Access) version 1, or worse [WEP](http://en.wikipedia.org/wiki/Wired_Equivalent_Privacy) (Wired Equivalent Privacy), then yes, **it is time to upgrade your wireless router** to something that can do WPA2. Both of the ea... | Don't know why people insist on "wireless security". While this wireless technology is broadcasting (rather than some future wireless technology which might be point to point curved in space - picture a ether-cable if you will), there is no real secure way to do it. Plus what's to worry about?
If you really want to se... |
19,332 | I have an old wireless router, and I mean stone age old (5 years). There is nothing wrong technically with the router, it serves my wireless needs at home but it is really darn old. A search on Belkin's site for F5D7230-4 actually turns up a different old model so I scrounged up this old review for you to get a sense o... | 2009/08/07 | [
"https://superuser.com/questions/19332",
"https://superuser.com",
"https://superuser.com/users/3427/"
] | I completely agree with [**@cwrea**](https://superuser.com/questions/19332/should-i-upgrade-my-old-wireless-router/19334#19334) - if it only supports older, less secure protocols, it's time to upgrade.
You mention you're using WPA-PSK, which is version 1. The only reason not to upgrade to WPA2 is if some of your devic... | Don't know why people insist on "wireless security". While this wireless technology is broadcasting (rather than some future wireless technology which might be point to point curved in space - picture a ether-cable if you will), there is no real secure way to do it. Plus what's to worry about?
If you really want to se... |
4,245,746 | All is in the title.
I get the URL param :
```
$log = $request->getParameter('logement');
```
Widget's statement :
```
$this->widgetSchema['logement'] = new sfWidgetFormInputText();
```
And I pass it in the form to prefill my widget 'logement' :
```
$this->form = new bailForm(array('logement' => $log));
```
I... | 2010/11/22 | [
"https://Stackoverflow.com/questions/4245746",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/379907/"
] | Your form is a propel or doctrine form, the first parameter of the constructor has to be a linked object instance. Try this:
```
$this->form = new bailForm(null, array('logement' => $log));
``` | The forms that are auto-generated based on model classes (in this case, `BailForm` for `Bail`), are of type `sfFormObject`, and thus accept only parameters of type corresponding to the model class.
A naive solution is to declare a custom constructor for type `BailForm` that takes an array as a single parameter (or an ... |
4,245,746 | All is in the title.
I get the URL param :
```
$log = $request->getParameter('logement');
```
Widget's statement :
```
$this->widgetSchema['logement'] = new sfWidgetFormInputText();
```
And I pass it in the form to prefill my widget 'logement' :
```
$this->form = new bailForm(array('logement' => $log));
```
I... | 2010/11/22 | [
"https://Stackoverflow.com/questions/4245746",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/379907/"
] | One of two ways:
**1. If you want to validate Logement**
```
$form = new BailForm(); //BailForm must have Logement validator set
$form->bind(array('logement' => $log) + $otherRequestParameters);
$form->updateObject(); //or save
```
**2. If you just want Logement set on the object**
```
$bail = new Bail();
$bail->L... | The forms that are auto-generated based on model classes (in this case, `BailForm` for `Bail`), are of type `sfFormObject`, and thus accept only parameters of type corresponding to the model class.
A naive solution is to declare a custom constructor for type `BailForm` that takes an array as a single parameter (or an ... |
4,245,746 | All is in the title.
I get the URL param :
```
$log = $request->getParameter('logement');
```
Widget's statement :
```
$this->widgetSchema['logement'] = new sfWidgetFormInputText();
```
And I pass it in the form to prefill my widget 'logement' :
```
$this->form = new bailForm(array('logement' => $log));
```
I... | 2010/11/22 | [
"https://Stackoverflow.com/questions/4245746",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/379907/"
] | One of two ways:
**1. If you want to validate Logement**
```
$form = new BailForm(); //BailForm must have Logement validator set
$form->bind(array('logement' => $log) + $otherRequestParameters);
$form->updateObject(); //or save
```
**2. If you just want Logement set on the object**
```
$bail = new Bail();
$bail->L... | Your form is a propel or doctrine form, the first parameter of the constructor has to be a linked object instance. Try this:
```
$this->form = new bailForm(null, array('logement' => $log));
``` |
4,245,746 | All is in the title.
I get the URL param :
```
$log = $request->getParameter('logement');
```
Widget's statement :
```
$this->widgetSchema['logement'] = new sfWidgetFormInputText();
```
And I pass it in the form to prefill my widget 'logement' :
```
$this->form = new bailForm(array('logement' => $log));
```
I... | 2010/11/22 | [
"https://Stackoverflow.com/questions/4245746",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/379907/"
] | Your form is a propel or doctrine form, the first parameter of the constructor has to be a linked object instance. Try this:
```
$this->form = new bailForm(null, array('logement' => $log));
``` | ```
class QuestionsForm extends BaseForm
{
private static $email;
public static function setEmail($set) { self::$email = $set; }
public static function getEmail() { return self::$email; }
public function configure()
{
$this->setDefault('email', self::$email);
//$this->setDefault('email', '... |
4,245,746 | All is in the title.
I get the URL param :
```
$log = $request->getParameter('logement');
```
Widget's statement :
```
$this->widgetSchema['logement'] = new sfWidgetFormInputText();
```
And I pass it in the form to prefill my widget 'logement' :
```
$this->form = new bailForm(array('logement' => $log));
```
I... | 2010/11/22 | [
"https://Stackoverflow.com/questions/4245746",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/379907/"
] | One of two ways:
**1. If you want to validate Logement**
```
$form = new BailForm(); //BailForm must have Logement validator set
$form->bind(array('logement' => $log) + $otherRequestParameters);
$form->updateObject(); //or save
```
**2. If you just want Logement set on the object**
```
$bail = new Bail();
$bail->L... | ```
class QuestionsForm extends BaseForm
{
private static $email;
public static function setEmail($set) { self::$email = $set; }
public static function getEmail() { return self::$email; }
public function configure()
{
$this->setDefault('email', self::$email);
//$this->setDefault('email', '... |
71,478,419 | I have a requirement to use exactly iOS 14.5 on our pipeline.
I tried the following:
```
variables:
sdk: 'iphoneos14.5' // I also tried to iphoneos
- task: Xcode@5
inputs:
actions: 'test'
configuration: '$(configuration)'
sdk: '$(sdk)'
xcWorkspacePath: 'MyProject.xcworkspace'
scheme: '$(secon... | 2022/03/15 | [
"https://Stackoverflow.com/questions/71478419",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6727914/"
] | By using your pipeline definition, I am able to reproduce your issue.
[](https://i.stack.imgur.com/0n8it.png)
I think below YAML file will help you understand why the official document said 'iOS 14.5' is supported but you can't use it.
```
pool:
n... | Added this step
```
gem install xcode-install
xcversion simulators --install='iOS 13.5'
```
If someone finds a way to use the installed sdk for other Xcode, please comment here |
48,215,372 | I have a text file that I am reading in, and based on certain conditions modifying specific lines and rewriting the file to a new text file. My present code mostly works but one of the `elif` statements seems to be simply ignored by Python as there are no run time errors. A MWE is as follows:
```
energy = .1
source = ... | 2018/01/11 | [
"https://Stackoverflow.com/questions/48215372",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2137083/"
] | Try your `if` block like this:
```
if line.startswith("source"):
n.write(source + "\n")
elif line.startswith("xyz"):
n.write(c_string + "\n")
else:
n.write(line)
``` | The third elif will never be reached. Here is the code reduced for clarity:
```
if not line.startswith("source"):
# suff
elif line.startswith("xyz"):
# stuff
```
Something that starts with "xyz" does not start with "source". |
48,215,372 | I have a text file that I am reading in, and based on certain conditions modifying specific lines and rewriting the file to a new text file. My present code mostly works but one of the `elif` statements seems to be simply ignored by Python as there are no run time errors. A MWE is as follows:
```
energy = .1
source = ... | 2018/01/11 | [
"https://Stackoverflow.com/questions/48215372",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2137083/"
] | The first `if` and `elif` handle all the cases -- either the line starts with `source` or it doesn't. I think you need to combine the first `if` and its nested `if` into a single condition:
```
if not line.startswith("source") and not line.startswith("xyz"):
n.write(line)
```
or the equvivalent (by [de Morgan's ... | Try your `if` block like this:
```
if line.startswith("source"):
n.write(source + "\n")
elif line.startswith("xyz"):
n.write(c_string + "\n")
else:
n.write(line)
``` |
48,215,372 | I have a text file that I am reading in, and based on certain conditions modifying specific lines and rewriting the file to a new text file. My present code mostly works but one of the `elif` statements seems to be simply ignored by Python as there are no run time errors. A MWE is as follows:
```
energy = .1
source = ... | 2018/01/11 | [
"https://Stackoverflow.com/questions/48215372",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2137083/"
] | The first `if` and `elif` handle all the cases -- either the line starts with `source` or it doesn't. I think you need to combine the first `if` and its nested `if` into a single condition:
```
if not line.startswith("source") and not line.startswith("xyz"):
n.write(line)
```
or the equvivalent (by [de Morgan's ... | The third elif will never be reached. Here is the code reduced for clarity:
```
if not line.startswith("source"):
# suff
elif line.startswith("xyz"):
# stuff
```
Something that starts with "xyz" does not start with "source". |
28,857,467 | I have a function to display history list of version objects as below and I have this particular .py file in public repo at <https://github.com/praneethkumarpidugu/django-reversion/blob/master/rev_history/views.py#L1>:
```
from django.http import HttpResponse
from reversion.models import Version
#from django.contrib.a... | 2015/03/04 | [
"https://Stackoverflow.com/questions/28857467",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4325513/"
] | ***...used to read data from a binary file directly into an array using fread.***...
***EDIT***
***Now I'm reading from a text file and I've tried everything I can to get the values into the array.***
Unless the contents of your file match the current definition of the FLIGHT\_ENTRY\_TYPE struct, and perhaps th... | Extenuating unlisted circumstances.
Turns out, since I couldn't debug, I had placed a log file snippet at the end of the loop iteration. I believe that instantiating the logfile was corrupting the array and preventing the array from being written to. Possibly a heap issue, but I'm not sure. I've learned quite a bit fr... |
46,518,784 | Hello I have 2 sets of code here and here it is
`Ajax`
```
/* Loop and Get Data from database to create a table */
$(document).ready(function () {
$('#btngenerate').click(function(e){
var d1 = $('#startdate').val();
var d2 = $('#enddate').val();
$.ajax({
url: 'queries/qryTITO.ph... | 2017/10/02 | [
"https://Stackoverflow.com/questions/46518784",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8262219/"
] | Try this
```
$(document).ready(function () {
$('#btngenerate').click(function(e){
var d1 = $('#startdate').val();
var d2 = $('#enddate').val();
$.ajax({
url: 'queries/qryTITO.php',
type: "POST",
datatype: 'json',
data: ({startdate: d1,enddate: ... | You could try
```
$(document).ready(function () {
$('#btngenerate').click(function(e){
var d1 = $('#startdate').val();
var d2 = $('#enddate').val();
$.ajax({
url: 'queries/qryTITO.php',
type: "POST",
datatype: 'json',
data: ({startdate: d1,enddate: d2}),
success: function(... |
50,734,318 | I have a stateless component in my react-native application defined as follows.
`components/TodoItem.js`:
```
import { View, Text, Button } from 'react-native';
const TodoItem = () => (
<View style={{flex: 1, flexDirection: 'column'}}>
<Text>Hello, please remember to do this!</Text>
<... | 2018/06/07 | [
"https://Stackoverflow.com/questions/50734318",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1170686/"
] | You should add this - `import React from 'react';` although you don't use React on `components/TodoItem.js:` | Even in a stateless component, we need to import React from `react` package as such:
```
import React from 'react';
``` |
104,980 | I'm going to the Elemental Plane of Fire, and I don't want my ice cream to melt. What's the least expensive and most portable method to keep my ice cream consistently intact? | 2017/08/09 | [
"https://rpg.stackexchange.com/questions/104980",
"https://rpg.stackexchange.com",
"https://rpg.stackexchange.com/users/38710/"
] | Use the most powerful spell in the history of Pathfinder!
[**Prestidigitation!**](http://paizo.com/pathfinderRPG/prd/coreRulebook/spells/prestidigitation.html)
That spell allows you to chill 1 pound of non-living material.
If your GM allows it, using the custom magic item rules, you could make a box which would be p... | Similar to Léon's answer, though without requiring knowledge of the Prestidigitation spell, you can simply have your players encounter a merchant selling a "bag of colding" (or have them be given one by the quest giver).
I first heard of this concept while watching the Critical Role 5E (née Pathfinder) series of D&D o... |
104,980 | I'm going to the Elemental Plane of Fire, and I don't want my ice cream to melt. What's the least expensive and most portable method to keep my ice cream consistently intact? | 2017/08/09 | [
"https://rpg.stackexchange.com/questions/104980",
"https://rpg.stackexchange.com",
"https://rpg.stackexchange.com/users/38710/"
] | Use the most powerful spell in the history of Pathfinder!
[**Prestidigitation!**](http://paizo.com/pathfinderRPG/prd/coreRulebook/spells/prestidigitation.html)
That spell allows you to chill 1 pound of non-living material.
If your GM allows it, using the custom magic item rules, you could make a box which would be p... | A box of sawdust.
"the ice was covered with sawdust. Ice was delivered to as far away as India"
<https://insulation.org/io/articles/a-history-of-refrigeration/>
<https://en.wikipedia.org/wiki/Ice_house_(building)> |
104,980 | I'm going to the Elemental Plane of Fire, and I don't want my ice cream to melt. What's the least expensive and most portable method to keep my ice cream consistently intact? | 2017/08/09 | [
"https://rpg.stackexchange.com/questions/104980",
"https://rpg.stackexchange.com",
"https://rpg.stackexchange.com/users/38710/"
] | Use the most powerful spell in the history of Pathfinder!
[**Prestidigitation!**](http://paizo.com/pathfinderRPG/prd/coreRulebook/spells/prestidigitation.html)
That spell allows you to chill 1 pound of non-living material.
If your GM allows it, using the custom magic item rules, you could make a box which would be p... | **Brown mold in an unbreakable container**
[Brown Mold](http://www.d20pfsrd.com/gamemastering/traps-hazards-and-special-terrains/hazards/special-hazards/brown-mold-cr-2/) removes heat, so use it to shield your ice cream.
Your only challenge is to put it in a container that won't rupture when the mold tries to grow u... |
104,980 | I'm going to the Elemental Plane of Fire, and I don't want my ice cream to melt. What's the least expensive and most portable method to keep my ice cream consistently intact? | 2017/08/09 | [
"https://rpg.stackexchange.com/questions/104980",
"https://rpg.stackexchange.com",
"https://rpg.stackexchange.com/users/38710/"
] | Use the most powerful spell in the history of Pathfinder!
[**Prestidigitation!**](http://paizo.com/pathfinderRPG/prd/coreRulebook/spells/prestidigitation.html)
That spell allows you to chill 1 pound of non-living material.
If your GM allows it, using the custom magic item rules, you could make a box which would be p... | Seal some [Brown Mold](http://www.d20pfsrd.com/gamemastering/traps-hazards-and-special-terrains/hazards/special-hazards/brown-mold-cr-2/) in a container and put that container inside a larger, insulated container for your ice cream. The cost is the cost of the containers plus the cost of the brown mold (free if you can... |
104,980 | I'm going to the Elemental Plane of Fire, and I don't want my ice cream to melt. What's the least expensive and most portable method to keep my ice cream consistently intact? | 2017/08/09 | [
"https://rpg.stackexchange.com/questions/104980",
"https://rpg.stackexchange.com",
"https://rpg.stackexchange.com/users/38710/"
] | A box of sawdust.
"the ice was covered with sawdust. Ice was delivered to as far away as India"
<https://insulation.org/io/articles/a-history-of-refrigeration/>
<https://en.wikipedia.org/wiki/Ice_house_(building)> | Similar to Léon's answer, though without requiring knowledge of the Prestidigitation spell, you can simply have your players encounter a merchant selling a "bag of colding" (or have them be given one by the quest giver).
I first heard of this concept while watching the Critical Role 5E (née Pathfinder) series of D&D o... |
104,980 | I'm going to the Elemental Plane of Fire, and I don't want my ice cream to melt. What's the least expensive and most portable method to keep my ice cream consistently intact? | 2017/08/09 | [
"https://rpg.stackexchange.com/questions/104980",
"https://rpg.stackexchange.com",
"https://rpg.stackexchange.com/users/38710/"
] | **Brown mold in an unbreakable container**
[Brown Mold](http://www.d20pfsrd.com/gamemastering/traps-hazards-and-special-terrains/hazards/special-hazards/brown-mold-cr-2/) removes heat, so use it to shield your ice cream.
Your only challenge is to put it in a container that won't rupture when the mold tries to grow u... | Similar to Léon's answer, though without requiring knowledge of the Prestidigitation spell, you can simply have your players encounter a merchant selling a "bag of colding" (or have them be given one by the quest giver).
I first heard of this concept while watching the Critical Role 5E (née Pathfinder) series of D&D o... |
104,980 | I'm going to the Elemental Plane of Fire, and I don't want my ice cream to melt. What's the least expensive and most portable method to keep my ice cream consistently intact? | 2017/08/09 | [
"https://rpg.stackexchange.com/questions/104980",
"https://rpg.stackexchange.com",
"https://rpg.stackexchange.com/users/38710/"
] | Seal some [Brown Mold](http://www.d20pfsrd.com/gamemastering/traps-hazards-and-special-terrains/hazards/special-hazards/brown-mold-cr-2/) in a container and put that container inside a larger, insulated container for your ice cream. The cost is the cost of the containers plus the cost of the brown mold (free if you can... | Similar to Léon's answer, though without requiring knowledge of the Prestidigitation spell, you can simply have your players encounter a merchant selling a "bag of colding" (or have them be given one by the quest giver).
I first heard of this concept while watching the Critical Role 5E (née Pathfinder) series of D&D o... |
104,980 | I'm going to the Elemental Plane of Fire, and I don't want my ice cream to melt. What's the least expensive and most portable method to keep my ice cream consistently intact? | 2017/08/09 | [
"https://rpg.stackexchange.com/questions/104980",
"https://rpg.stackexchange.com",
"https://rpg.stackexchange.com/users/38710/"
] | A box of sawdust.
"the ice was covered with sawdust. Ice was delivered to as far away as India"
<https://insulation.org/io/articles/a-history-of-refrigeration/>
<https://en.wikipedia.org/wiki/Ice_house_(building)> | Seal some [Brown Mold](http://www.d20pfsrd.com/gamemastering/traps-hazards-and-special-terrains/hazards/special-hazards/brown-mold-cr-2/) in a container and put that container inside a larger, insulated container for your ice cream. The cost is the cost of the containers plus the cost of the brown mold (free if you can... |
104,980 | I'm going to the Elemental Plane of Fire, and I don't want my ice cream to melt. What's the least expensive and most portable method to keep my ice cream consistently intact? | 2017/08/09 | [
"https://rpg.stackexchange.com/questions/104980",
"https://rpg.stackexchange.com",
"https://rpg.stackexchange.com/users/38710/"
] | **Brown mold in an unbreakable container**
[Brown Mold](http://www.d20pfsrd.com/gamemastering/traps-hazards-and-special-terrains/hazards/special-hazards/brown-mold-cr-2/) removes heat, so use it to shield your ice cream.
Your only challenge is to put it in a container that won't rupture when the mold tries to grow u... | Seal some [Brown Mold](http://www.d20pfsrd.com/gamemastering/traps-hazards-and-special-terrains/hazards/special-hazards/brown-mold-cr-2/) in a container and put that container inside a larger, insulated container for your ice cream. The cost is the cost of the containers plus the cost of the brown mold (free if you can... |
16,302,940 | I have 3 activities in my app.
>
> Home -> List -> Detail
>
>
>
When I am in Detail activity, I want to have a home button that will redirect me to Home activity and close the other activities. Then, I tried this code:
```
Intent intent = new Intent(this, HomeActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY... | 2013/04/30 | [
"https://Stackoverflow.com/questions/16302940",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1352755/"
] | Your thinking and Android's are not yet fully compatible. ;)
When you "launch the home", that means it's going to be *launched*, and that means it's going to be created.
You can, however, use [`Activity.startActivityForResult()`](http://developer.android.com/reference/android/app/Activity.html#startActivityForResult%... | You cannot control the `Activity` life cycle. It's up to Android to decide which activities to keep running and which to close. This means that when an Activity loses focus, it is not necessarily destroyed or closed, but might simply lost focus and keep running, but might also not. This is up to Android; you cannot con... |
176,102 | I have a simple table:
`id`, `status`, `date`
When `status` is `null`, the `date` is also `null`. Question: how do I get my data that's always sorted by `status = null` and then sorted by `date`? The tricky part is, I would like to paginate through results, so I need to be able to use `LIMIT` and `OFFSET` with this q... | 2017/06/12 | [
"https://dba.stackexchange.com/questions/176102",
"https://dba.stackexchange.com",
"https://dba.stackexchange.com/users/126638/"
] | Use the [ISNULL()](https://dev.mysql.com/doc/refman/5.7/en/comparison-operators.html#function_isnull) function
```
SELECT * FROM mytable
ORDER BY ISNULL(status) DESC,date;
```
or
```
SELECT * FROM mytable
ORDER BY 1-ISNULL(status),date;
```
For pagination, you can reference `id`
```
SELECT B.* FROM
(
SELECT ... | Are there cases where `date IS NULL` but `status IS NOT NULL`? Assuming not, then
```
ORDER BY `date` -- gets nulls, then dates ascending
ORDER BY `date` DESC -- gets latest dates first, ends with nulls
```
With this, `INDEX(date)` should be somewhat efficient for pagination.
If you need nulls first, then latest,... |
33,159,743 | I'm banging my head hard.
This simple line of code:
```
DriverManager.getConnection("jdbc:mysql://machine1:3306/information_schema", "user1", "password");
```
Running on machine1 results in an error:
```
1045 Access denied for user 'user1'@'localhost' (using password: YES)
```
However there's no problem running o... | 2015/10/15 | [
"https://Stackoverflow.com/questions/33159743",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1302520/"
] | I hate this when I bang my head against the wall for 5 hours and the moment after I post the question on SO I find the answer.
The problem is that in /etc/host, `machine1` points to the same address as localhost (127.0.0.1). Modify the file to have `machine1` point to the real IP address (e.g. `10.240.3.167`) will sol... | Are you running this code on machine1? In that case the error is correct because localhost is itself. Have you tried connecting via the MySQL command line from the same machine running your code? I suspect the credentials aren't set up in MySQL to allow connections from localhost.
I just re-read. You need to use the ... |
1,164,668 | Python supports an elegant syntax for "chained comparisons", for example:
```
0 <= n < 256
```
meaning,
```
0 <= n and n < 256
```
Knowing that it's a fairly flexible language syntactically, is it possible to emulate this feature in Scala? | 2009/07/22 | [
"https://Stackoverflow.com/questions/1164668",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/61298/"
] | Daniel's answer is comprehensive, it's actually hard to add anything to it. As his answer presents one of the choices he mentioned, I'd like just to add my 2 cents and present a very short solution to the problem in the other way. The Daniel's description:
>
> You could, theoretically, feed the
> result of the one o... | Not really. One have to remember that, aside from a few keywords, everything in Scala is a method invokation on an object.
So we need to call the "<=" and "<" methods on an object, and each such method receives a parameter. You need, then, four objects, and there are three explicit ones, and two implicit ones -- the r... |
8,872,203 | I need to decide whether I should use GL\_UNSIGNED\_SHORT or GL\_FLOAT for my (static) VBO for vertices. Shorts use 2 times less memory but does it also reduce rendering speed (because the GPU has to convert them to floats)? Same thing for texture coordinates, I could use GL\_UNSIGNED\_BYTE for smaller textures and GL\... | 2012/01/15 | [
"https://Stackoverflow.com/questions/8872203",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/704907/"
] | For any modern hardware (DX10-capable or better), you can assume that attribute reading performance is always dominated by the memory access, not by the transformation from integer to float. Essentially it is *free*.
This is mostly true of DX9-class hardware too, but some hardware has certain vertex formats that it do... | Converting a short to a float should be a pretty cheap operation. I would *think* that the savings in memory bandwidth would outweigh the extra processing cost.
But without actually testing it, this remains nothing but a wild guess. |
8,813,042 | I am trying to prevent an instance from throwing an exception if a method that does not exist for the instance is called. I have tried the following:
```
class myClass(object):
def __init__(self):
pass
def __getattr__(self,name):
print "Warning - method {0} does not exist for this instance".for... | 2012/01/11 | [
"https://Stackoverflow.com/questions/8813042",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1046769/"
] | This is called "Action Bar" you can get it nativly starting from [Android 3.0](http://developer.android.com/guide/topics/ui/actionbar.html) or grab code to do it on earlier versions of android [here.](https://stackoverflow.com/questions/2900509/android-action-bar-like-twitter-sample) | android site has a demo you can check [CustomTitle](http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/CustomTitle.html), and [how-to-create-custom-window-title-in-android](http://www.londatiga.net/it/how-to-create-custom-window-title-in-android/) |
8,813,042 | I am trying to prevent an instance from throwing an exception if a method that does not exist for the instance is called. I have tried the following:
```
class myClass(object):
def __init__(self):
pass
def __getattr__(self,name):
print "Warning - method {0} does not exist for this instance".for... | 2012/01/11 | [
"https://Stackoverflow.com/questions/8813042",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1046769/"
] | This is called "Action Bar" you can get it nativly starting from [Android 3.0](http://developer.android.com/guide/topics/ui/actionbar.html) or grab code to do it on earlier versions of android [here.](https://stackoverflow.com/questions/2900509/android-action-bar-like-twitter-sample) | 1. Create a new project and name your main activity "MyActivity"
2. Go to res - drawable and create a new xml file and call it "custom\_title\_background" and put the following code:
```
<item android:top="20dp">
<shape android:shape="rectangle">
<gradient android:angle="90" android:endcolor="#9eacbf" andr... |
8,862,039 | I want to put each byte in a char array and rewrite the text file removing the first 100,000 characters.
```
int fs=0;
ifstream nm,nm1;
nm1.open("C:\\Dev-Cpp\\DCS\\Decom\\a.txt");
if(nm1.is_open())
{
nm1.seekg(0, ios::end );
fs = nm1.tellg();
}
nm1.close();
char ss[... | 2012/01/14 | [
"https://Stackoverflow.com/questions/8862039",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1147775/"
] | In most implementations, `char ss[5000000]` tries allocating on the stack, and the size of the stack is limited as compared to the overall memory size. You can often allocate larger arrays on the heap than on the stack, like this:
```
char *ss = new char [5000000];
// Use ss as usual
delete[] ss; // Do not forget to d... | This part is not correct
```
while( in2.read((char *)&c2, 1) )
{
in2 >> ss[w];
w++;
}
```
bacause you first try to read one character into `c2` and, if that succeeds, read *another* character into `ss[w]`.
I'm not at all surprised if you lose about half the characters here! |
8,862,039 | I want to put each byte in a char array and rewrite the text file removing the first 100,000 characters.
```
int fs=0;
ifstream nm,nm1;
nm1.open("C:\\Dev-Cpp\\DCS\\Decom\\a.txt");
if(nm1.is_open())
{
nm1.seekg(0, ios::end );
fs = nm1.tellg();
}
nm1.close();
char ss[... | 2012/01/14 | [
"https://Stackoverflow.com/questions/8862039",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1147775/"
] | In most implementations, `char ss[5000000]` tries allocating on the stack, and the size of the stack is limited as compared to the overall memory size. You can often allocate larger arrays on the heap than on the stack, like this:
```
char *ss = new char [5000000];
// Use ss as usual
delete[] ss; // Do not forget to d... | The best way to solve your problem is to use the facilities of the standard library. That way, you also don't have to care about buffer overflows.
The following code is untested.
```
std::fstream file("C:\\Dev-Cpp\\DCS\\Decom\\a.txt", std::ios_base::in);
if (!file)
{
std::cerr << "could not open file C:\\Dev-Cpp\\D... |
8,862,039 | I want to put each byte in a char array and rewrite the text file removing the first 100,000 characters.
```
int fs=0;
ifstream nm,nm1;
nm1.open("C:\\Dev-Cpp\\DCS\\Decom\\a.txt");
if(nm1.is_open())
{
nm1.seekg(0, ios::end );
fs = nm1.tellg();
}
nm1.close();
char ss[... | 2012/01/14 | [
"https://Stackoverflow.com/questions/8862039",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1147775/"
] | This part is not correct
```
while( in2.read((char *)&c2, 1) )
{
in2 >> ss[w];
w++;
}
```
bacause you first try to read one character into `c2` and, if that succeeds, read *another* character into `ss[w]`.
I'm not at all surprised if you lose about half the characters here! | The best way to solve your problem is to use the facilities of the standard library. That way, you also don't have to care about buffer overflows.
The following code is untested.
```
std::fstream file("C:\\Dev-Cpp\\DCS\\Decom\\a.txt", std::ios_base::in);
if (!file)
{
std::cerr << "could not open file C:\\Dev-Cpp\\D... |
57,970,272 | I'm using vim and i want to switch between buffers by number.
(e.g when i press `Ctrl+2` vim should go to second buffer)
What should i write in `.vimrc`? | 2019/09/17 | [
"https://Stackoverflow.com/questions/57970272",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11451505/"
] | I personally have something like this in my `.vimrc`:
```
map <F9> :bp<CR>
map <F10> :bn<CR>
```
As stated in the comments and `:help keycodes` there is no available mapping for the numbers 0-9.
I tried using `map <C-k1> ...` (as those are available in the keycodes), but it didn't work. | The answer depends on the approach of working with buffers.
I use the following three ways:
* the buffers are showed in tabs;
* the buffers are showed in windows;
* the buffers can be hidden and the user switches between them using the current window.
For the first case, to switch between tabs, you may just type the... |
57,970,272 | I'm using vim and i want to switch between buffers by number.
(e.g when i press `Ctrl+2` vim should go to second buffer)
What should i write in `.vimrc`? | 2019/09/17 | [
"https://Stackoverflow.com/questions/57970272",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11451505/"
] | I would suggest:
```
" list buffers and jump to a chosen one
nnoremap <Leader>b :ls<CR>:b<Space>
```
The command `:ls<CR>` will list all opened buffers and `:b[uffer]<space>` allows you to type the number shown by the `ls` | The answer depends on the approach of working with buffers.
I use the following three ways:
* the buffers are showed in tabs;
* the buffers are showed in windows;
* the buffers can be hidden and the user switches between them using the current window.
For the first case, to switch between tabs, you may just type the... |
7,810,557 | I want to change the state of a dependency property (Mode) in a UserControl triggered off of a change change of a second dependency property (ViewType).
I tried defining a DataTrigger as follows, but for some reason it doesn't work:
```
<UserControl.Resources>
<Style TargetType="{x:Type UserControls:MyUserControl... | 2011/10/18 | [
"https://Stackoverflow.com/questions/7810557",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/787684/"
] | If the dependency properties in question are defined on the UserControl you need to set it's style property, not add a default style inside the resources.
to set the style inline in XAML
```
<UserControl.Style>
<Style TargetType="{x:Type UserControls:MyUserControl}">
<!-- Triggers -- >
</Style>
</UserC... | In addition to [Adam's answer](https://stackoverflow.com/questions/7810557/how-do-i-write-a-datatrigger-to-change-the-value-of-a-dependency-property-based/7810714#7810714), are you setting the `Mode` property in the `<UserControl>` tag anywhere? If you do, it is overwriting the triggered value.
Also, on occasion I ha... |
118,187 | So [this question](https://ell.stackexchange.com/questions/89124/what-is-the-difference-between-yell-and-scream/89159?s=1|0.3474#89159) gives an answer to the difference between *yell* and *scream*, but I'd also like clarification about *shout* and *cry*, which have to be linked with the other two. Whatever the case wh... | 2017/02/03 | [
"https://ell.stackexchange.com/questions/118187",
"https://ell.stackexchange.com",
"https://ell.stackexchange.com/users/42888/"
] | "Shout" and "yell" are more or less synonymous. Other than style or poetry ([and a few idiomatic expressions](http://idioms.thefreedictionary.com/shout)), I can't think of any reason why you couldn't use one in place of the other.
A "scream" includes a shrill note that indicates extreme emotion. [This is the infamous ... | *yell* - You *yell* typically when you want attention or are trying to be heard over noise or a distance. *Yelling* is typically directed at or for someone/something specific. You can *yell for* someone to try to get someone's attention or them to come to you.
*shout* - You *shout* at someone when you want them to hea... |
38,074,340 | The scipy integrators take two parameters when integrating: (1) `step` which tells the integrator to take only a single step, and (2) `relax` which tells the integrator that it is fine to step past the final time point.
I want to take steps (so that I can collect the entire solution), but also not step past the final ... | 2016/06/28 | [
"https://Stackoverflow.com/questions/38074340",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1485877/"
] | This will give you an array of the values you want:
```
var r = window.location.href.split("?");
r.shift();
console.log(r);
```
If there are always exactly two values, you can use this to extract them:
```
var val1 = r.shift();
var val2 = r.shift();
```
Here's a version which gives the `.chicken` result:
```
var... | I'd suggest:
```
// obviously, in production you should use document.location.href:
var url = "http://www.example.com/?chicken?toast",
// take a substring of the url variable, starting at the index of
// the (first) '?' character and running to the end of the string,
// giving "?chicken?toast", we then split that res... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.