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 |
|---|---|---|---|---|---|
351,085 | I know of [How to remove an uninstalled package's dependencies?](https://askubuntu.com/questions/443/how-to-remove-an-uninstalled-packages-dependencies) and I tried
```
apt-get autoremove
```
but that does not remove dependencies that are recommended/suggested by other packages.
That is, if I install a package X th... | 2013/09/28 | [
"https://askubuntu.com/questions/351085",
"https://askubuntu.com",
"https://askubuntu.com/users/195582/"
] | ### Overriding APT options
Unlike dependencies, automatically installed "recommended" or "suggested" packages may be ignored by `apt-get autoremove`.
As described elsewhere, this behavior of APT can be changed in the configuration.
Likewise, the configuration of the `apt-get` command can be temporarily changed throu... | Actually the command is:
```
sudo apt-get autoremove <Z>
```
But this has a trick! If any of the dependencies has some other previously installed packages that recommend/suggest them then apt would not remove them.
You didn't specified what package was but for example, if I were to install the IcedTea plugin, it wo... |
34,301,141 | I'd prefer to do the following in R, but am open to (easy to learn) other solutions.
I have multiple (lets say 99) tab-delimited files (let's call them S1.txt through S99.txt) with tables, all with the exact same format. Each table is ~2,000,000 cols by 5 rows. Here's a toy example:
```
ID Chr Position DP1 ... | 2015/12/15 | [
"https://Stackoverflow.com/questions/34301141",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4789486/"
] | I'm going to assume that all the files are stored in a single folder and that you want to load all the files with `.txt` extensions in that folder.
```
## List all the files in the current directory that end in .txt
files <- list.files(path = ".", pattern = "*.txt")
## Load them into a list called datlist and name ea... | A one liner with base R
```
l = list(S1=S1, S2=S2, S3=S3)
idx = c("ID","Chr","Position")
d <- Reduce(function(x, y) merge(x, y, by = idx), l)
```
**Update**
Forgot the variable names. This might be a bit excessive but it is the best way I can think of to avoid hard coding the names.
```
n <- expand.grid(names(l... |
34,301,141 | I'd prefer to do the following in R, but am open to (easy to learn) other solutions.
I have multiple (lets say 99) tab-delimited files (let's call them S1.txt through S99.txt) with tables, all with the exact same format. Each table is ~2,000,000 cols by 5 rows. Here's a toy example:
```
ID Chr Position DP1 ... | 2015/12/15 | [
"https://Stackoverflow.com/questions/34301141",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4789486/"
] | I re-read your question and thought of an even better solution.
First off all I would not load all the .txt files into R at once. If your .txt files are 2e6x5 and there are a 100 of them you are likely going to run out of RAM before you load them all. I would load them one at a time and iteratively merge them.
```
li... | I'm going to assume that all the files are stored in a single folder and that you want to load all the files with `.txt` extensions in that folder.
```
## List all the files in the current directory that end in .txt
files <- list.files(path = ".", pattern = "*.txt")
## Load them into a list called datlist and name ea... |
34,301,141 | I'd prefer to do the following in R, but am open to (easy to learn) other solutions.
I have multiple (lets say 99) tab-delimited files (let's call them S1.txt through S99.txt) with tables, all with the exact same format. Each table is ~2,000,000 cols by 5 rows. Here's a toy example:
```
ID Chr Position DP1 ... | 2015/12/15 | [
"https://Stackoverflow.com/questions/34301141",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4789486/"
] | I re-read your question and thought of an even better solution.
First off all I would not load all the .txt files into R at once. If your .txt files are 2e6x5 and there are a 100 of them you are likely going to run out of RAM before you load them all. I would load them one at a time and iteratively merge them.
```
li... | A one liner with base R
```
l = list(S1=S1, S2=S2, S3=S3)
idx = c("ID","Chr","Position")
d <- Reduce(function(x, y) merge(x, y, by = idx), l)
```
**Update**
Forgot the variable names. This might be a bit excessive but it is the best way I can think of to avoid hard coding the names.
```
n <- expand.grid(names(l... |
11,302,118 | My question is that how can we check value in posted variables in $\_POST without defining them as you can see in the code.
```
if ($_SESSION["Admin"]=="" AND $_REQUEST[act]!="show_login" AND
$_REQUEST[act]!="chk_login" ) { #not logged in show_login();
return;
```
I am getting these errors,
* Undefined index... | 2012/07/02 | [
"https://Stackoverflow.com/questions/11302118",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1461776/"
] | Use [`isset()`](http://php.net/isset) before you try to access the index in the `$_REQUEST` array, like so:
```
if( $_SESSION["Admin"] == "" &&
(!isset( $_REQUEST['act']) ||
( $_REQUEST['act'] != "show_login" && $_REQUEST['act'] != "chk_login")))
```
I think I've added the correct logic that you're loo... | ```
if(isset($_SESSION))
{
foreach($_SESSION as $sessKey => $sessVal)
{
echo $sessKey . ' - ' . $sessVal.'<br>';
}
}
echo count($_SESSION);
```
Now I am not sure if this is exactly what your asking but as I take it you wanna know if a session is set, and if it is, then what is the data in said session.... |
11,302,118 | My question is that how can we check value in posted variables in $\_POST without defining them as you can see in the code.
```
if ($_SESSION["Admin"]=="" AND $_REQUEST[act]!="show_login" AND
$_REQUEST[act]!="chk_login" ) { #not logged in show_login();
return;
```
I am getting these errors,
* Undefined index... | 2012/07/02 | [
"https://Stackoverflow.com/questions/11302118",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1461776/"
] | Use [`isset()`](http://php.net/isset) before you try to access the index in the `$_REQUEST` array, like so:
```
if( $_SESSION["Admin"] == "" &&
(!isset( $_REQUEST['act']) ||
( $_REQUEST['act'] != "show_login" && $_REQUEST['act'] != "chk_login")))
```
I think I've added the correct logic that you're loo... | I find it easier on maintenance to check all my variables in a loop:
```
<?php
// VARIABLES NEEDED BY THIS PAGE
$needed_session = array(
'Admin' => "",
);
$needed_request = array(
'act' => "",
);
foreach($needed_session as $var => $default)
if (!isset($_SESSION[$var]))... |
67,004,431 | I have a table with values extracted from a csv I want to make a contour plot from.
Let's use this table as an example
```matlab
tdata.x = [1;2;1;2];
tdata.y = [3;3;4;4];
tdata.z = randn(4,1);
tdata=struct2table(tdata);
>> tdata
tdata =
4×3 table
x y z
_ _ _______
1 3 0.53767
... | 2021/04/08 | [
"https://Stackoverflow.com/questions/67004431",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9585520/"
] | Try to correct your `SessionFactory` definition in this way:
```java
SessionFactory sessionFactory = new Configuration()
.configure("hibernate.cfg.xml")
.addAnnotatedClass(Employee.class)
.addAnnotatedClass(Detail.class)
.buildSessionFactory();
``` | The problem was in Main method. You should always add annotated class.
**.addAnnotatedClass(Detail.class)** |
4,387,216 | **Question**:
Suppose that $f\in C^2((0,1))$,$\lim\limits\_{x\to 1^{-}}f(x)=0$.
Assume that there exists a constant $C>0$ such that
$\forall x\in (0,1)$, $(1-x)^2|f''(x)|\leqslant C$.
Prove that $\lim\_\limits{x\to 1^{-}} (1-x)f'(x)=0$.
**Attempt**:
I've tried to use Taylor expansion and got
$0=f(x)+f'(x)(1-x)+\f... | 2022/02/21 | [
"https://math.stackexchange.com/questions/4387216",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/977241/"
] | ParamanandSingh's hint helped enourmously.
Given $\epsilon>0$, there exist $\delta \in (0,1)$ such that if $x > 1 - \delta$, then $|f(x)| < \epsilon$.
For any $0 < x\_0 < x < \tfrac12(1+x\_0)$, we have $|f''(x)| \le C/(1-x)^2 \le 4C/(1-x\_0)^2$. Hence
$$ f'(x) = f'(x\_0) + \int\_{x\_0}^x f''(y) \, dy \ge f'(x\_0) - 4... | By Taylor expension we have:
$f(\delta+(1-\delta)x)=f(x)+\delta(1-x)f'(x)+\frac{\delta^2}{2}\frac{(1-x)^2}{(1-\xi)^2}(1-\xi)^2f''(\xi),\xi\in(x,\delta+(1-\delta)x)$.
Divided by $\delta$ gives that:
$|(1-x)f'(x)|\leqslant|\frac{f(\delta+(1-\delta)x)-f(x)}{\delta}|+|\frac{\delta}{2}\frac{(1-x)^2}{(1-\xi)^2}(1-\xi)^2f'... |
158,097 | Question
--------
Does the concept of “***planned* sick leave**”, as in time off work planned in advance for medical reasons, exist out there? Or is it totally unheard of?
I found [this question](https://workplace.stackexchange.com/questions/5859/i-have-sick-leave-for-an-appointment-that-got-cancelled-what-should-i-d... | 2020/05/12 | [
"https://workplace.stackexchange.com/questions/158097",
"https://workplace.stackexchange.com",
"https://workplace.stackexchange.com/users/62851/"
] | *Note: since no location/culture/company policy is provided in the question, no guarantees can be made. However, your interpretation of what constitutes sick leave seems to diverge from the general interpretation, which is what this answer is responding to.*
>
> One could take an hour or two off work to go to the doc... | This question is company specific, but I hope this answer isn’t.
Sick leave varies by jurisdiction and company. In some places it will be mandated and defined by law, in other places it will be a term defined by the company.
When defined by a company it can mean anything from “we certainly aren’t paying you, but we p... |
158,097 | Question
--------
Does the concept of “***planned* sick leave**”, as in time off work planned in advance for medical reasons, exist out there? Or is it totally unheard of?
I found [this question](https://workplace.stackexchange.com/questions/5859/i-have-sick-leave-for-an-appointment-that-got-cancelled-what-should-i-d... | 2020/05/12 | [
"https://workplace.stackexchange.com/questions/158097",
"https://workplace.stackexchange.com",
"https://workplace.stackexchange.com/users/62851/"
] | *Note: since no location/culture/company policy is provided in the question, no guarantees can be made. However, your interpretation of what constitutes sick leave seems to diverge from the general interpretation, which is what this answer is responding to.*
>
> One could take an hour or two off work to go to the doc... | To show the absurdity of this: You need a life saving operation within the next 3 months. Your doctor says “let’s do it on the 12th of June, and you’ll be in hospital for a week”. You say “sorry, I can’t have planned sick leave. Just call me the night before”. June 11th you get a call and take a week unplanned sick lea... |
158,097 | Question
--------
Does the concept of “***planned* sick leave**”, as in time off work planned in advance for medical reasons, exist out there? Or is it totally unheard of?
I found [this question](https://workplace.stackexchange.com/questions/5859/i-have-sick-leave-for-an-appointment-that-got-cancelled-what-should-i-d... | 2020/05/12 | [
"https://workplace.stackexchange.com/questions/158097",
"https://workplace.stackexchange.com",
"https://workplace.stackexchange.com/users/62851/"
] | *Note: since no location/culture/company policy is provided in the question, no guarantees can be made. However, your interpretation of what constitutes sick leave seems to diverge from the general interpretation, which is what this answer is responding to.*
>
> One could take an hour or two off work to go to the doc... | >
> Does the concept of "planned sick leave" as in time off work planned
> in advance for medical reasons exist out there?
>
>
>
Yes it is routine in every company I have worked for or heard off, e.g. you go to the Doctor for an appointment, he refers you to a consultant who examines you and then schedules an ope... |
158,097 | Question
--------
Does the concept of “***planned* sick leave**”, as in time off work planned in advance for medical reasons, exist out there? Or is it totally unheard of?
I found [this question](https://workplace.stackexchange.com/questions/5859/i-have-sick-leave-for-an-appointment-that-got-cancelled-what-should-i-d... | 2020/05/12 | [
"https://workplace.stackexchange.com/questions/158097",
"https://workplace.stackexchange.com",
"https://workplace.stackexchange.com/users/62851/"
] | The statement of your manager is obviously trivially wrong.
I have had planned sick leave way to many times for my liking. It's easy. You visit a doctor. The doctor makes a frowny face and sends you to a specialized surgeon. The surgeon makes a happy face, looks at their calendar and says "no problem, the procedure ca... | This question is company specific, but I hope this answer isn’t.
Sick leave varies by jurisdiction and company. In some places it will be mandated and defined by law, in other places it will be a term defined by the company.
When defined by a company it can mean anything from “we certainly aren’t paying you, but we p... |
158,097 | Question
--------
Does the concept of “***planned* sick leave**”, as in time off work planned in advance for medical reasons, exist out there? Or is it totally unheard of?
I found [this question](https://workplace.stackexchange.com/questions/5859/i-have-sick-leave-for-an-appointment-that-got-cancelled-what-should-i-d... | 2020/05/12 | [
"https://workplace.stackexchange.com/questions/158097",
"https://workplace.stackexchange.com",
"https://workplace.stackexchange.com/users/62851/"
] | The statement of your manager is obviously trivially wrong.
I have had planned sick leave way to many times for my liking. It's easy. You visit a doctor. The doctor makes a frowny face and sends you to a specialized surgeon. The surgeon makes a happy face, looks at their calendar and says "no problem, the procedure ca... | To show the absurdity of this: You need a life saving operation within the next 3 months. Your doctor says “let’s do it on the 12th of June, and you’ll be in hospital for a week”. You say “sorry, I can’t have planned sick leave. Just call me the night before”. June 11th you get a call and take a week unplanned sick lea... |
158,097 | Question
--------
Does the concept of “***planned* sick leave**”, as in time off work planned in advance for medical reasons, exist out there? Or is it totally unheard of?
I found [this question](https://workplace.stackexchange.com/questions/5859/i-have-sick-leave-for-an-appointment-that-got-cancelled-what-should-i-d... | 2020/05/12 | [
"https://workplace.stackexchange.com/questions/158097",
"https://workplace.stackexchange.com",
"https://workplace.stackexchange.com/users/62851/"
] | The statement of your manager is obviously trivially wrong.
I have had planned sick leave way to many times for my liking. It's easy. You visit a doctor. The doctor makes a frowny face and sends you to a specialized surgeon. The surgeon makes a happy face, looks at their calendar and says "no problem, the procedure ca... | >
> Does the concept of "planned sick leave" as in time off work planned
> in advance for medical reasons exist out there?
>
>
>
Yes it is routine in every company I have worked for or heard off, e.g. you go to the Doctor for an appointment, he refers you to a consultant who examines you and then schedules an ope... |
158,097 | Question
--------
Does the concept of “***planned* sick leave**”, as in time off work planned in advance for medical reasons, exist out there? Or is it totally unheard of?
I found [this question](https://workplace.stackexchange.com/questions/5859/i-have-sick-leave-for-an-appointment-that-got-cancelled-what-should-i-d... | 2020/05/12 | [
"https://workplace.stackexchange.com/questions/158097",
"https://workplace.stackexchange.com",
"https://workplace.stackexchange.com/users/62851/"
] | This question is company specific, but I hope this answer isn’t.
Sick leave varies by jurisdiction and company. In some places it will be mandated and defined by law, in other places it will be a term defined by the company.
When defined by a company it can mean anything from “we certainly aren’t paying you, but we p... | >
> Does the concept of "planned sick leave" as in time off work planned
> in advance for medical reasons exist out there?
>
>
>
Yes it is routine in every company I have worked for or heard off, e.g. you go to the Doctor for an appointment, he refers you to a consultant who examines you and then schedules an ope... |
158,097 | Question
--------
Does the concept of “***planned* sick leave**”, as in time off work planned in advance for medical reasons, exist out there? Or is it totally unheard of?
I found [this question](https://workplace.stackexchange.com/questions/5859/i-have-sick-leave-for-an-appointment-that-got-cancelled-what-should-i-d... | 2020/05/12 | [
"https://workplace.stackexchange.com/questions/158097",
"https://workplace.stackexchange.com",
"https://workplace.stackexchange.com/users/62851/"
] | To show the absurdity of this: You need a life saving operation within the next 3 months. Your doctor says “let’s do it on the 12th of June, and you’ll be in hospital for a week”. You say “sorry, I can’t have planned sick leave. Just call me the night before”. June 11th you get a call and take a week unplanned sick lea... | >
> Does the concept of "planned sick leave" as in time off work planned
> in advance for medical reasons exist out there?
>
>
>
Yes it is routine in every company I have worked for or heard off, e.g. you go to the Doctor for an appointment, he refers you to a consultant who examines you and then schedules an ope... |
3,989,407 | Find surface area of a cylinder $y^2 + z^2 = 1$ between two planes: $x + y - 2 = 0$, $x-z+4 = 0$.
This was my approach:
I drew the picture and projected the figure onto $xOy$ plane, and after that I found partial detivatives $\frac{\partial z}{\partial x} $ and $ \frac{\partial z}{\partial y}$ where $z = + \sqrt{1-y^... | 2021/01/17 | [
"https://math.stackexchange.com/questions/3989407",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/872128/"
] | Alternatively, let $t=e^{-x}$ to express the integral as
$$\int\_0^{\infty} \frac{x}{e^x+1} dx= - \int\_0^1 \frac{\ln t}{1+t}dt
\overset{IBP} = \int\_0^1 \frac{\ln (1+t)}{t}dt
= \frac{\pi^2}{12}
$$
where the result
[Finding $ \int^1\_0 \frac{\ln(1+x)}{x}dx$](https://math.stackexchange.com/questions/2046219/finding-in... | Let $ n\in\mathbb{N} $, we have : \begin{aligned}\left\vert\sum\_{k=1}^{n}{\left(-1\right)^{k-1}\int\_{0}^{+\infty}{x\,\mathrm{e}^{-kx}\,\mathrm{d}x}}-\int\_{0}^{+\infty}{\frac{x}{\mathrm{e}^{x}+1}\,\mathrm{d}x}\right\vert&=\left\vert\int\_{0}^{+\infty}{x\sum\_{k=n+1}^{+\infty}{\left(-1\right)^{k-1}\,\mathrm{e}^{-kx}}\... |
3,989,407 | Find surface area of a cylinder $y^2 + z^2 = 1$ between two planes: $x + y - 2 = 0$, $x-z+4 = 0$.
This was my approach:
I drew the picture and projected the figure onto $xOy$ plane, and after that I found partial detivatives $\frac{\partial z}{\partial x} $ and $ \frac{\partial z}{\partial y}$ where $z = + \sqrt{1-y^... | 2021/01/17 | [
"https://math.stackexchange.com/questions/3989407",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/872128/"
] | Alternatively, let $t=e^{-x}$ to express the integral as
$$\int\_0^{\infty} \frac{x}{e^x+1} dx= - \int\_0^1 \frac{\ln t}{1+t}dt
\overset{IBP} = \int\_0^1 \frac{\ln (1+t)}{t}dt
= \frac{\pi^2}{12}
$$
where the result
[Finding $ \int^1\_0 \frac{\ln(1+x)}{x}dx$](https://math.stackexchange.com/questions/2046219/finding-in... | Using power series, we convert the integral into an infinite sum:
$$
\begin{aligned}
I &=\int\_{0}^{\infty} \frac{x}{e^{x}+1} d x \\
&=\int\_{0}^{\infty} \frac{x e^{-x}}{1+e^{-x}} d x \\
&=\int\_{0}^{\infty} x e^{-x} \sum\_{k=0}^{\infty}(-1)^{k} e^{-k x} d x \\
&=\sum\_{k=0}^{\infty}(-1)^{k} \underbrace{\int\_{0}^{\in... |
3,989,407 | Find surface area of a cylinder $y^2 + z^2 = 1$ between two planes: $x + y - 2 = 0$, $x-z+4 = 0$.
This was my approach:
I drew the picture and projected the figure onto $xOy$ plane, and after that I found partial detivatives $\frac{\partial z}{\partial x} $ and $ \frac{\partial z}{\partial y}$ where $z = + \sqrt{1-y^... | 2021/01/17 | [
"https://math.stackexchange.com/questions/3989407",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/872128/"
] | Let $ n\in\mathbb{N} $, we have : \begin{aligned}\left\vert\sum\_{k=1}^{n}{\left(-1\right)^{k-1}\int\_{0}^{+\infty}{x\,\mathrm{e}^{-kx}\,\mathrm{d}x}}-\int\_{0}^{+\infty}{\frac{x}{\mathrm{e}^{x}+1}\,\mathrm{d}x}\right\vert&=\left\vert\int\_{0}^{+\infty}{x\sum\_{k=n+1}^{+\infty}{\left(-1\right)^{k-1}\,\mathrm{e}^{-kx}}\... | Using power series, we convert the integral into an infinite sum:
$$
\begin{aligned}
I &=\int\_{0}^{\infty} \frac{x}{e^{x}+1} d x \\
&=\int\_{0}^{\infty} \frac{x e^{-x}}{1+e^{-x}} d x \\
&=\int\_{0}^{\infty} x e^{-x} \sum\_{k=0}^{\infty}(-1)^{k} e^{-k x} d x \\
&=\sum\_{k=0}^{\infty}(-1)^{k} \underbrace{\int\_{0}^{\in... |
4,869,656 | I have an array that looks like following.
```
$ => Array (2)
(
| ['0'] => Array (2)
| (
| | ['0'] = String(1) "2"
| | ['1'] = String(1) "2"
| )
| ['1'] => Array (2)
| (
| | ['0'] = String(1) "2"
| | ['1'] = String(1) "1"
| )
)
```
But could also be bigger or smaller having... | 2011/02/02 | [
"https://Stackoverflow.com/questions/4869656",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/161570/"
] | This is how I understand your question.
A first loop goes through the main array and works on its index => array2.
The 2nd loop goes through that second array and check if the value of that array is "value1". If it is, it executes `doWhenValueIsThere()` otherwise it executes `doWhenValueIsNotThere()`.
You have to ... | Maybe you can do the check like this:
`array_key_exists(1, $x[1]) ? $x[1][1] : otherFunction($x[0][0])`
where $x is your array. |
4,869,656 | I have an array that looks like following.
```
$ => Array (2)
(
| ['0'] => Array (2)
| (
| | ['0'] = String(1) "2"
| | ['1'] = String(1) "2"
| )
| ['1'] => Array (2)
| (
| | ['0'] = String(1) "2"
| | ['1'] = String(1) "1"
| )
)
```
But could also be bigger or smaller having... | 2011/02/02 | [
"https://Stackoverflow.com/questions/4869656",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/161570/"
] | I ended up changing a few of the internal SQL statements so that my result from the database was different.
I found that the SQL statements I were using and the returned arrays were too complex to process in the way I wanted - mainly due to how it was formatted by the SQL query results. | Maybe you can do the check like this:
`array_key_exists(1, $x[1]) ? $x[1][1] : otherFunction($x[0][0])`
where $x is your array. |
4,869,656 | I have an array that looks like following.
```
$ => Array (2)
(
| ['0'] => Array (2)
| (
| | ['0'] = String(1) "2"
| | ['1'] = String(1) "2"
| )
| ['1'] => Array (2)
| (
| | ['0'] = String(1) "2"
| | ['1'] = String(1) "1"
| )
)
```
But could also be bigger or smaller having... | 2011/02/02 | [
"https://Stackoverflow.com/questions/4869656",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/161570/"
] | This is how I understand your question.
A first loop goes through the main array and works on its index => array2.
The 2nd loop goes through that second array and check if the value of that array is "value1". If it is, it executes `doWhenValueIsThere()` otherwise it executes `doWhenValueIsNotThere()`.
You have to ... | try this
```
<?php
$tweet_sentiment = array();
$analyzer = array();
foreach($get_sentiment as $sentiment) {
$tweet_id = $sentiment[0];
if(isset($sentiment[1])){
$analyzer[] = $sentiment[1];
$tweet_sentiment[$tweet_id] = $analyzer;
}
}
?>
``` |
4,869,656 | I have an array that looks like following.
```
$ => Array (2)
(
| ['0'] => Array (2)
| (
| | ['0'] = String(1) "2"
| | ['1'] = String(1) "2"
| )
| ['1'] => Array (2)
| (
| | ['0'] = String(1) "2"
| | ['1'] = String(1) "1"
| )
)
```
But could also be bigger or smaller having... | 2011/02/02 | [
"https://Stackoverflow.com/questions/4869656",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/161570/"
] | I ended up changing a few of the internal SQL statements so that my result from the database was different.
I found that the SQL statements I were using and the returned arrays were too complex to process in the way I wanted - mainly due to how it was formatted by the SQL query results. | try this
```
<?php
$tweet_sentiment = array();
$analyzer = array();
foreach($get_sentiment as $sentiment) {
$tweet_id = $sentiment[0];
if(isset($sentiment[1])){
$analyzer[] = $sentiment[1];
$tweet_sentiment[$tweet_id] = $analyzer;
}
}
?>
``` |
224 | I have my hard drive partitioned with two partitions, so I can easily re-install Ubuntu and try out different versions without losing my home directory data.
It is setup like this:
```
20GB -> / (root)
180GB -> /home
```
I do a lot of development work, so I have my `/var/www` folder symlinking to `/home/valori... | 2010/07/28 | [
"https://askubuntu.com/questions/224",
"https://askubuntu.com",
"https://askubuntu.com/users/176/"
] | Well, actually there is a potential Ubuntu specific answer to this question.
As mentioned by Gergoes link, this is basically about modifying */etc/mysql/my.cnf* and set a new value for **datadir =** in the **[mysqld]** section. So far the unspecific part of the answer.
Assuming you are running a somewhat modern versi... | This really isn't Ubuntu specific. Nevertheless, here is something that might help: <http://developer.spikesource.com/wiki/index.php/How_to_change_the_mysql_database_location> |
224 | I have my hard drive partitioned with two partitions, so I can easily re-install Ubuntu and try out different versions without losing my home directory data.
It is setup like this:
```
20GB -> / (root)
180GB -> /home
```
I do a lot of development work, so I have my `/var/www` folder symlinking to `/home/valori... | 2010/07/28 | [
"https://askubuntu.com/questions/224",
"https://askubuntu.com",
"https://askubuntu.com/users/176/"
] | [Super user has a nice step by step instructions on how to solve this probelm](https://serverfault.com/q/168957/71120)
Here is an other set of instruction on doing the same thing
<http://www.ubuntugeek.com/how-to-change-the-mysql-data-default-directory.html>
Here it is reposted. Go and up vote the original if you can... | This really isn't Ubuntu specific. Nevertheless, here is something that might help: <http://developer.spikesource.com/wiki/index.php/How_to_change_the_mysql_database_location> |
224 | I have my hard drive partitioned with two partitions, so I can easily re-install Ubuntu and try out different versions without losing my home directory data.
It is setup like this:
```
20GB -> / (root)
180GB -> /home
```
I do a lot of development work, so I have my `/var/www` folder symlinking to `/home/valori... | 2010/07/28 | [
"https://askubuntu.com/questions/224",
"https://askubuntu.com",
"https://askubuntu.com/users/176/"
] | This really isn't Ubuntu specific. Nevertheless, here is something that might help: <http://developer.spikesource.com/wiki/index.php/How_to_change_the_mysql_database_location> | This won't work just like that.
user mysql has to have the right to write to the new dir:
```
sudo chown -R mysql:mysql /newdatadir
sudo chmod -R 754 /newdatadir
sudo chmod 754 /newdatadir/..
``` |
224 | I have my hard drive partitioned with two partitions, so I can easily re-install Ubuntu and try out different versions without losing my home directory data.
It is setup like this:
```
20GB -> / (root)
180GB -> /home
```
I do a lot of development work, so I have my `/var/www` folder symlinking to `/home/valori... | 2010/07/28 | [
"https://askubuntu.com/questions/224",
"https://askubuntu.com",
"https://askubuntu.com/users/176/"
] | Well, actually there is a potential Ubuntu specific answer to this question.
As mentioned by Gergoes link, this is basically about modifying */etc/mysql/my.cnf* and set a new value for **datadir =** in the **[mysqld]** section. So far the unspecific part of the answer.
Assuming you are running a somewhat modern versi... | [Super user has a nice step by step instructions on how to solve this probelm](https://serverfault.com/q/168957/71120)
Here is an other set of instruction on doing the same thing
<http://www.ubuntugeek.com/how-to-change-the-mysql-data-default-directory.html>
Here it is reposted. Go and up vote the original if you can... |
224 | I have my hard drive partitioned with two partitions, so I can easily re-install Ubuntu and try out different versions without losing my home directory data.
It is setup like this:
```
20GB -> / (root)
180GB -> /home
```
I do a lot of development work, so I have my `/var/www` folder symlinking to `/home/valori... | 2010/07/28 | [
"https://askubuntu.com/questions/224",
"https://askubuntu.com",
"https://askubuntu.com/users/176/"
] | Well, actually there is a potential Ubuntu specific answer to this question.
As mentioned by Gergoes link, this is basically about modifying */etc/mysql/my.cnf* and set a new value for **datadir =** in the **[mysqld]** section. So far the unspecific part of the answer.
Assuming you are running a somewhat modern versi... | This won't work just like that.
user mysql has to have the right to write to the new dir:
```
sudo chown -R mysql:mysql /newdatadir
sudo chmod -R 754 /newdatadir
sudo chmod 754 /newdatadir/..
``` |
224 | I have my hard drive partitioned with two partitions, so I can easily re-install Ubuntu and try out different versions without losing my home directory data.
It is setup like this:
```
20GB -> / (root)
180GB -> /home
```
I do a lot of development work, so I have my `/var/www` folder symlinking to `/home/valori... | 2010/07/28 | [
"https://askubuntu.com/questions/224",
"https://askubuntu.com",
"https://askubuntu.com/users/176/"
] | Well, actually there is a potential Ubuntu specific answer to this question.
As mentioned by Gergoes link, this is basically about modifying */etc/mysql/my.cnf* and set a new value for **datadir =** in the **[mysqld]** section. So far the unspecific part of the answer.
Assuming you are running a somewhat modern versi... | For those who like me work with VirtualBox and need to move the MySQL datadir to a shared folder on the host system, follow the simple tutorial at <http://vacilando.org/en/article/moving-mysql-data-files-virtualbox-shared-folder> |
224 | I have my hard drive partitioned with two partitions, so I can easily re-install Ubuntu and try out different versions without losing my home directory data.
It is setup like this:
```
20GB -> / (root)
180GB -> /home
```
I do a lot of development work, so I have my `/var/www` folder symlinking to `/home/valori... | 2010/07/28 | [
"https://askubuntu.com/questions/224",
"https://askubuntu.com",
"https://askubuntu.com/users/176/"
] | [Super user has a nice step by step instructions on how to solve this probelm](https://serverfault.com/q/168957/71120)
Here is an other set of instruction on doing the same thing
<http://www.ubuntugeek.com/how-to-change-the-mysql-data-default-directory.html>
Here it is reposted. Go and up vote the original if you can... | This won't work just like that.
user mysql has to have the right to write to the new dir:
```
sudo chown -R mysql:mysql /newdatadir
sudo chmod -R 754 /newdatadir
sudo chmod 754 /newdatadir/..
``` |
224 | I have my hard drive partitioned with two partitions, so I can easily re-install Ubuntu and try out different versions without losing my home directory data.
It is setup like this:
```
20GB -> / (root)
180GB -> /home
```
I do a lot of development work, so I have my `/var/www` folder symlinking to `/home/valori... | 2010/07/28 | [
"https://askubuntu.com/questions/224",
"https://askubuntu.com",
"https://askubuntu.com/users/176/"
] | [Super user has a nice step by step instructions on how to solve this probelm](https://serverfault.com/q/168957/71120)
Here is an other set of instruction on doing the same thing
<http://www.ubuntugeek.com/how-to-change-the-mysql-data-default-directory.html>
Here it is reposted. Go and up vote the original if you can... | For those who like me work with VirtualBox and need to move the MySQL datadir to a shared folder on the host system, follow the simple tutorial at <http://vacilando.org/en/article/moving-mysql-data-files-virtualbox-shared-folder> |
224 | I have my hard drive partitioned with two partitions, so I can easily re-install Ubuntu and try out different versions without losing my home directory data.
It is setup like this:
```
20GB -> / (root)
180GB -> /home
```
I do a lot of development work, so I have my `/var/www` folder symlinking to `/home/valori... | 2010/07/28 | [
"https://askubuntu.com/questions/224",
"https://askubuntu.com",
"https://askubuntu.com/users/176/"
] | For those who like me work with VirtualBox and need to move the MySQL datadir to a shared folder on the host system, follow the simple tutorial at <http://vacilando.org/en/article/moving-mysql-data-files-virtualbox-shared-folder> | This won't work just like that.
user mysql has to have the right to write to the new dir:
```
sudo chown -R mysql:mysql /newdatadir
sudo chmod -R 754 /newdatadir
sudo chmod 754 /newdatadir/..
``` |
43,587,817 | I have an MVC pattern and I am trying to display image from database path.
Here is my view:
```
<div class="col-md-8">
<h1 ><?php echo htmlspecialchars( $results['task']->username )?></h1>
<p><?php echo htmlspecialchars( $results['task']->email )?></p>
<p><?php echo $results['task']->text?></p>
<img sr... | 2017/04/24 | [
"https://Stackoverflow.com/questions/43587817",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6725091/"
] | No. StaggeredGridLayoutManager doesn't support items that differ in both width and height. You would need to use an external library, this one might help you out: <https://github.com/lucasr/twoway-view>
Fair warning: I've used this library and it hasn't been supported for a long time, and it definitely has some bugs i... | I have achieved using `SpannableGridLayoutManager` for more detail answer follow the link provided [Solution is here](https://stackoverflow.com/questions/48821961/how-to-design-spannable-gridview-using-recyclerview-spannablegridlayoutmanager/48825958#48825958) .
This solution is working perfectly. |
22,283,526 | I have a form that will update specified entries in a mysql table. The form will only submit if all the fields are filled in .
Is there a way to make it so that the form will only update fields that have a new value and leave the ones that have been left blank?
Form code :
```
<?php
error_reporting(E_ALL ^ E_DE... | 2014/03/09 | [
"https://Stackoverflow.com/questions/22283526",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3396245/"
] | Angular way of doing this would be using `$watch`:
```
var myApp = angular.module('myApp',[]);
myApp.directive('d6', function(){
return {
require: 'ngModel',
restrict: 'A',
link: function link(scope, elem, attrs, ngModel) {
scope.$watch(
function () {
... | **Angular code**
Found in the angular code in the `checkboxInputType` function used for all input[type=checkbox] with a `ngModelController`:
```
element.on('click', function() {
scope.$apply(function() {
ctrl.$setViewValue(element[0].checked);
});
});
```
This code updates the `ngModelController` wi... |
22,283,526 | I have a form that will update specified entries in a mysql table. The form will only submit if all the fields are filled in .
Is there a way to make it so that the form will only update fields that have a new value and leave the ones that have been left blank?
Form code :
```
<?php
error_reporting(E_ALL ^ E_DE... | 2014/03/09 | [
"https://Stackoverflow.com/questions/22283526",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3396245/"
] | Angular way of doing this would be using `$watch`:
```
var myApp = angular.module('myApp',[]);
myApp.directive('d6', function(){
return {
require: 'ngModel',
restrict: 'A',
link: function link(scope, elem, attrs, ngModel) {
scope.$watch(
function () {
... | Either what the two answers said, or you can simply watch for the changes in $scope.accept (which is your model):
```
$scope.$watch('accept', function(){
$scope.value = $scope.accept;
});
```
See it here: <http://jsfiddle.net/A8Vgk/307/>. This way seems the most natural to me. |
22,283,526 | I have a form that will update specified entries in a mysql table. The form will only submit if all the fields are filled in .
Is there a way to make it so that the form will only update fields that have a new value and leave the ones that have been left blank?
Form code :
```
<?php
error_reporting(E_ALL ^ E_DE... | 2014/03/09 | [
"https://Stackoverflow.com/questions/22283526",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3396245/"
] | **Angular code**
Found in the angular code in the `checkboxInputType` function used for all input[type=checkbox] with a `ngModelController`:
```
element.on('click', function() {
scope.$apply(function() {
ctrl.$setViewValue(element[0].checked);
});
});
```
This code updates the `ngModelController` wi... | Either what the two answers said, or you can simply watch for the changes in $scope.accept (which is your model):
```
$scope.$watch('accept', function(){
$scope.value = $scope.accept;
});
```
See it here: <http://jsfiddle.net/A8Vgk/307/>. This way seems the most natural to me. |
249,821 | Our router (Asus RT-AC68U) has been slowing down our speeds, up until I disabled the IPV6 firewall (Went from 250 to 380, which is the modem cap for now). We've always had IPV6 disabled on the router, but I was wondering if it poses any security risk by also disabling the IPV6 firewall. | 2021/05/28 | [
"https://security.stackexchange.com/questions/249821",
"https://security.stackexchange.com",
"https://security.stackexchange.com/users/258098/"
] | The Debian and Ubuntu projects maintain a list of "unfixed" vulnerabilities which they've assessed and decided not to patch. One of the problems with vulnerability scanning container images is that most of the tools default to reporting those unfixed issues (it's worth noting that "traditional" vulnerability scanners d... | From those links you posted, it is clear that Debian is not patching them because they consider them too minor and or unrealistic to exploit:
>
> **CVE-2019-19603** [buster] - sqlite3 (Minor issue, too intrusive to backport)
>
>
>
>
> **CVE-2019-3844** [buster] - systemd (Minor issue; exploit vector needs contro... |
62,756,177 | Since the 2011 revision of C++ standards, variables can be initialized in three different ways given below.
```
int i = 0;
int i (0);
int i {0};
```
As far as I know all three different initializations have the same effect. If they all have the same effect, why not stick to one way of initialisation like the first o... | 2020/07/06 | [
"https://Stackoverflow.com/questions/62756177",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8247997/"
] | The reason for not disallowing any of the three is to maintain backward compatibility.
There are tons of code, in production, that is written with each of the three ways. If the standards were to be changed, working code would need to be rewritten, causing costs and possibly bugs. Since the C++ committee is very serio... | ```
int i = 0;
int i (0); //For backward compatibility
int i {0}; //Uniform Initialization
```
There is a difference in these 3 types of initializations.
```
int i = 2.2;
int i (2.2);
int i {2.2};
```
First, two will do the implicit conversion but `int i {0};` will give you error/warning for parameter narrowing.
... |
62,756,177 | Since the 2011 revision of C++ standards, variables can be initialized in three different ways given below.
```
int i = 0;
int i (0);
int i {0};
```
As far as I know all three different initializations have the same effect. If they all have the same effect, why not stick to one way of initialisation like the first o... | 2020/07/06 | [
"https://Stackoverflow.com/questions/62756177",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8247997/"
] | It is an historical question. The first one is `int i=0;`. This one is from the early C language from the 1970's. Next first C++ versions introduced a function like initialization syntax which writes here `int i(0);`. But because of the [most vexing parse](https://en.wikipedia.org/wiki/Most_vexing_parse) ambiguities, t... | ```
int i = 0;
int i (0); //For backward compatibility
int i {0}; //Uniform Initialization
```
There is a difference in these 3 types of initializations.
```
int i = 2.2;
int i (2.2);
int i {2.2};
```
First, two will do the implicit conversion but `int i {0};` will give you error/warning for parameter narrowing.
... |
38,234,487 | In C when I return a pointer of a stack-created variable from a function, the memory discards after the function is returned, thus making the pointer impossible to dereference. But in Go, the compiler is not giving me any errors. Does that mean that this is safe to do?
```
package main
import (
"fmt"
)
func main... | 2016/07/06 | [
"https://Stackoverflow.com/questions/38234487",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4527337/"
] | Yes, this is safe and a normal pattern in Go programming. Go uses [escape analysis](https://en.wikipedia.org/wiki/Escape_analysis) to move any values with pointers that escape the stack to the heap automatically. You don't need to be concerned with where values are allocated.
From the Go FAQ: ["How do I know whether a... | Yes, in Golang it is fine to return a pointer to a local variable. Golang will manage the objects lifetime for you and free it when all pointers to it are gone.
In another answer I point out all the differences between C/C++ pointers and Golang pointers: [What is the meaning of '\*' and '&' in Golang?](https://stackov... |
70,353,721 | Description
===========
Say I have a lot of strings, some of them are very long:
```
Aim for the moon. If you miss, you may hit a star. – Clement Stone
Nothing about us without us
```
I want to have a text wrapper doing this algorithm:
1. Starting from the beginning of the string, identify the nearest blank charac... | 2021/12/14 | [
"https://Stackoverflow.com/questions/70353721",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3416774/"
] | Created this based on @sln 's? [answer to a different word wrap problem](https://stackoverflow.com/a/20434776/406712).
All I have added is this alternative point to add a line break:
"Expand by up to 5 characters until before a linebreak or EOS"
and changed the number of characters allowed from `50` to `25`
```
[^\... | If your input is run line-by-line, and there is no newline character in the middle of a line, then you can try this:
* Pattern: `(.{1,25}.{1,5}$|.{1,25}(?= ))`
* Substitution: `$1\n`
Then apply this:
* Pattern: `\n`
* Substitution: `\n` |
17,676 | Just what the title states; there's a good deal of noise made about transport, and storage of spent nuclear fuel. Why all the hullabaloo when the fuel is all spent? | 2011/11/30 | [
"https://physics.stackexchange.com/questions/17676",
"https://physics.stackexchange.com",
"https://physics.stackexchange.com/users/5265/"
] | For a vanilla nuclear reactor (no MOX, breeder, etc.) the fuel (U-235) is only about 4% of the fuel rod itself. The problem with this, however, is that a "spent" fuel rod still has U-235 (more than the natural occurring level of 0.71%) as well as U-238, Po-239, etc. Being "spent" just means that there isnt enough U-235... | Well its not really all spent in the chemical fuel sense. The leftovers from nuclear fission are themselves still radioactive, not usefully radioactive for energy generation.
These products will continue to be dangerously radioactive for 1000's of years and so the problem is to store dangerous materials for longer tha... |
17,676 | Just what the title states; there's a good deal of noise made about transport, and storage of spent nuclear fuel. Why all the hullabaloo when the fuel is all spent? | 2011/11/30 | [
"https://physics.stackexchange.com/questions/17676",
"https://physics.stackexchange.com",
"https://physics.stackexchange.com/users/5265/"
] | Mart's answer gets to some of the problem (e.g. ensuring that storage remains stable for the period of decay) but I believe the other answers here are a bit off base.
Nuclear fuel is determined to be "spent" when the nuclear engineers determine it is no longer economically warranted to continue using it. On a physical... | Well its not really all spent in the chemical fuel sense. The leftovers from nuclear fission are themselves still radioactive, not usefully radioactive for energy generation.
These products will continue to be dangerously radioactive for 1000's of years and so the problem is to store dangerous materials for longer tha... |
17,676 | Just what the title states; there's a good deal of noise made about transport, and storage of spent nuclear fuel. Why all the hullabaloo when the fuel is all spent? | 2011/11/30 | [
"https://physics.stackexchange.com/questions/17676",
"https://physics.stackexchange.com",
"https://physics.stackexchange.com/users/5265/"
] | Here are the common engineering safety concerns regarding spent fuel:
* **Radioisotope source** - in its normal form it is a danger to anyone next to it from penetrating radiation including gammas and neutrons, and there is a much much greater danger that should the fuel be torn apart it releases radioactive gases tha... | Well its not really all spent in the chemical fuel sense. The leftovers from nuclear fission are themselves still radioactive, not usefully radioactive for energy generation.
These products will continue to be dangerously radioactive for 1000's of years and so the problem is to store dangerous materials for longer tha... |
17,676 | Just what the title states; there's a good deal of noise made about transport, and storage of spent nuclear fuel. Why all the hullabaloo when the fuel is all spent? | 2011/11/30 | [
"https://physics.stackexchange.com/questions/17676",
"https://physics.stackexchange.com",
"https://physics.stackexchange.com/users/5265/"
] | For a vanilla nuclear reactor (no MOX, breeder, etc.) the fuel (U-235) is only about 4% of the fuel rod itself. The problem with this, however, is that a "spent" fuel rod still has U-235 (more than the natural occurring level of 0.71%) as well as U-238, Po-239, etc. Being "spent" just means that there isnt enough U-235... | As mentioned in the other answers, there's still radioactive material in the spent fuel. Any containment will have to deal with the heat from said radioactive material.
Also, radioactivity can change the quality of container-materials - metals can become brittle, glass might crack (see here: <http://jol.liljenzin.se/K... |
17,676 | Just what the title states; there's a good deal of noise made about transport, and storage of spent nuclear fuel. Why all the hullabaloo when the fuel is all spent? | 2011/11/30 | [
"https://physics.stackexchange.com/questions/17676",
"https://physics.stackexchange.com",
"https://physics.stackexchange.com/users/5265/"
] | Mart's answer gets to some of the problem (e.g. ensuring that storage remains stable for the period of decay) but I believe the other answers here are a bit off base.
Nuclear fuel is determined to be "spent" when the nuclear engineers determine it is no longer economically warranted to continue using it. On a physical... | As mentioned in the other answers, there's still radioactive material in the spent fuel. Any containment will have to deal with the heat from said radioactive material.
Also, radioactivity can change the quality of container-materials - metals can become brittle, glass might crack (see here: <http://jol.liljenzin.se/K... |
17,676 | Just what the title states; there's a good deal of noise made about transport, and storage of spent nuclear fuel. Why all the hullabaloo when the fuel is all spent? | 2011/11/30 | [
"https://physics.stackexchange.com/questions/17676",
"https://physics.stackexchange.com",
"https://physics.stackexchange.com/users/5265/"
] | Here are the common engineering safety concerns regarding spent fuel:
* **Radioisotope source** - in its normal form it is a danger to anyone next to it from penetrating radiation including gammas and neutrons, and there is a much much greater danger that should the fuel be torn apart it releases radioactive gases tha... | As mentioned in the other answers, there's still radioactive material in the spent fuel. Any containment will have to deal with the heat from said radioactive material.
Also, radioactivity can change the quality of container-materials - metals can become brittle, glass might crack (see here: <http://jol.liljenzin.se/K... |
34,928,635 | I am using the following query to grab the index columns on a table along with their data type:
```
SELECT DISTINCT COL.COLUMN_NAME, COL.DATA_TYPE
FROM DBA_IND_COLUMNS IND
INNER JOIN DBA_TAB_COLUMNS COL
ON ( IND.TABLE_OWNER = COL.OWNER AND IND.TABLE_NAME = COL.TABLE_NAME
AND IND.COLUMN_NAME = COL.COLUMN... | 2016/01/21 | [
"https://Stackoverflow.com/questions/34928635",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5437107/"
] | I came across the same problem and solved it using your second option.
However, I found a way to prevent the test cases from the base class from running:
Override the `defaultTestSuite()` class method in your base class to return an empty `XCTestSuite`:
```
class InterfaceTests: XCTestCase {
var implToTest: Interf... | The way I've done this before is with a shared base class. Make `implToTest` nillable. In the base class, if an implementation is not provided, simply `return` out of the test in a guard clause.
It's a little annoying that the test run includes reports of the base class tests when it's not doing anything. But that's a... |
34,928,635 | I am using the following query to grab the index columns on a table along with their data type:
```
SELECT DISTINCT COL.COLUMN_NAME, COL.DATA_TYPE
FROM DBA_IND_COLUMNS IND
INNER JOIN DBA_TAB_COLUMNS COL
ON ( IND.TABLE_OWNER = COL.OWNER AND IND.TABLE_NAME = COL.TABLE_NAME
AND IND.COLUMN_NAME = COL.COLUMN... | 2016/01/21 | [
"https://Stackoverflow.com/questions/34928635",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5437107/"
] | The way I've done this before is with a shared base class. Make `implToTest` nillable. In the base class, if an implementation is not provided, simply `return` out of the test in a guard clause.
It's a little annoying that the test run includes reports of the base class tests when it's not doing anything. But that's a... | Building on top of ithron's solution, if you carefully craft your `defaultTestSuite`, you can remove the need for each subclass to re-override it.
```swift
class InterfaceTests: XCTestCase {
override class var defaultTestSuite: XCTestSuite {
// When subclasses inherit this property, they'll fail this check... |
34,928,635 | I am using the following query to grab the index columns on a table along with their data type:
```
SELECT DISTINCT COL.COLUMN_NAME, COL.DATA_TYPE
FROM DBA_IND_COLUMNS IND
INNER JOIN DBA_TAB_COLUMNS COL
ON ( IND.TABLE_OWNER = COL.OWNER AND IND.TABLE_NAME = COL.TABLE_NAME
AND IND.COLUMN_NAME = COL.COLUMN... | 2016/01/21 | [
"https://Stackoverflow.com/questions/34928635",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5437107/"
] | I came across the same problem and solved it using your second option.
However, I found a way to prevent the test cases from the base class from running:
Override the `defaultTestSuite()` class method in your base class to return an empty `XCTestSuite`:
```
class InterfaceTests: XCTestCase {
var implToTest: Interf... | Building on top of ithron's solution, if you carefully craft your `defaultTestSuite`, you can remove the need for each subclass to re-override it.
```swift
class InterfaceTests: XCTestCase {
override class var defaultTestSuite: XCTestSuite {
// When subclasses inherit this property, they'll fail this check... |
5,431,381 | I am trying to connect an `onMouseDown` event to an image with `dojo.connect` like:
```
dojo.connect(dojo.byId("workpic"), "onMouseDown", workpicDown);
function workpicDown()
{
alert("mousedown");
}
```
Similar code a few lines later, where I'm connecting `onMouse*` events to `dojo.body` does work completely pr... | 2011/03/25 | [
"https://Stackoverflow.com/questions/5431381",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/522479/"
] | "onMouseDown" should be all lower case when used with DOM events as opposed to Widget events. Try:
```
dojo.connect(dojo.byId("workpic"), "onmousedown", workpicDown);
```
From the [documentation](http://dojotoolkit.org/reference-guide/quickstart/events.html#quickstart-events):
>
> A note about the event names: Eve... | Probably it's problem with execution context. Try to use fallowing:
```
dojo.connect(dojo.byId("workpic"), "onMouseDown",window, "workpicDown");
window.workpicDown = function()
{
alert("mousedown");
}
``` |
50,570,262 | I am working on a console application in Kotlin where I accept multiple arguments in `main()` function
```
fun main(args: Array<String>) {
// validation & String to Integer conversion
}
```
I want to check whether the `String` is a valid integer and convert the same or else I have to throw some exception.
How c... | 2018/05/28 | [
"https://Stackoverflow.com/questions/50570262",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6284931/"
] | ```
val i = "42".toIntOrNull()
```
Keep in mind that the result is nullable as the name suggests. | You can Direct Change by using readLine()!!.toInt()
Example:
```
fun main(){
print("Enter the radius = ")
var r1 = readLine()!!.toInt()
var area = (3.14*r1*r1)
println("Area is $area")
}
``` |
50,570,262 | I am working on a console application in Kotlin where I accept multiple arguments in `main()` function
```
fun main(args: Array<String>) {
// validation & String to Integer conversion
}
```
I want to check whether the `String` is a valid integer and convert the same or else I have to throw some exception.
How c... | 2018/05/28 | [
"https://Stackoverflow.com/questions/50570262",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6284931/"
] | ```
val i = "42".toIntOrNull()
```
Keep in mind that the result is nullable as the name suggests. | **In Kotlin:**
Simply do that
```
val abc = try {stringNumber.toInt()}catch (e:Exception){0}
```
In catch block you can set default value for any case string is not converted to "Int". |
50,570,262 | I am working on a console application in Kotlin where I accept multiple arguments in `main()` function
```
fun main(args: Array<String>) {
// validation & String to Integer conversion
}
```
I want to check whether the `String` is a valid integer and convert the same or else I have to throw some exception.
How c... | 2018/05/28 | [
"https://Stackoverflow.com/questions/50570262",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6284931/"
] | You could call `toInt()` on your `String` instances:
```
fun main(args: Array<String>) {
for (str in args) {
try {
val parsedInt = str.toInt()
println("The parsed int is $parsedInt")
} catch (nfe: NumberFormatException) {
// not a valid int
}
}
}
```... | You can Direct Change by using readLine()!!.toInt()
Example:
```
fun main(){
print("Enter the radius = ")
var r1 = readLine()!!.toInt()
var area = (3.14*r1*r1)
println("Area is $area")
}
``` |
50,570,262 | I am working on a console application in Kotlin where I accept multiple arguments in `main()` function
```
fun main(args: Array<String>) {
// validation & String to Integer conversion
}
```
I want to check whether the `String` is a valid integer and convert the same or else I have to throw some exception.
How c... | 2018/05/28 | [
"https://Stackoverflow.com/questions/50570262",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6284931/"
] | As suggested above, use `toIntOrNull()`.
>
> Parses the string as an [Int] number and returns the result
> or `null` if the string is not a valid representation of a number.
>
>
>
```
val a = "11".toIntOrNull() // 11
val b = "-11".toIntOrNull() // -11
val c = "11.7".toIntOrNull() // null
val d = "11.0".toIntOr... | You can Direct Change by using readLine()!!.toInt()
Example:
```
fun main(){
print("Enter the radius = ")
var r1 = readLine()!!.toInt()
var area = (3.14*r1*r1)
println("Area is $area")
}
``` |
50,570,262 | I am working on a console application in Kotlin where I accept multiple arguments in `main()` function
```
fun main(args: Array<String>) {
// validation & String to Integer conversion
}
```
I want to check whether the `String` is a valid integer and convert the same or else I have to throw some exception.
How c... | 2018/05/28 | [
"https://Stackoverflow.com/questions/50570262",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6284931/"
] | **In Kotlin:**
Simply do that
```
val abc = try {stringNumber.toInt()}catch (e:Exception){0}
```
In catch block you can set default value for any case string is not converted to "Int". | You can Direct Change by using readLine()!!.toInt()
Example:
```
fun main(){
print("Enter the radius = ")
var r1 = readLine()!!.toInt()
var area = (3.14*r1*r1)
println("Area is $area")
}
``` |
50,570,262 | I am working on a console application in Kotlin where I accept multiple arguments in `main()` function
```
fun main(args: Array<String>) {
// validation & String to Integer conversion
}
```
I want to check whether the `String` is a valid integer and convert the same or else I have to throw some exception.
How c... | 2018/05/28 | [
"https://Stackoverflow.com/questions/50570262",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6284931/"
] | I use this util function:
```
fun safeInt(text: String, fallback: Int): Int {
return text.toIntOrNull() ?: fallback
}
``` | add (?) before fun toInt()
```js
val number_int = str?.toInt()
``` |
50,570,262 | I am working on a console application in Kotlin where I accept multiple arguments in `main()` function
```
fun main(args: Array<String>) {
// validation & String to Integer conversion
}
```
I want to check whether the `String` is a valid integer and convert the same or else I have to throw some exception.
How c... | 2018/05/28 | [
"https://Stackoverflow.com/questions/50570262",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6284931/"
] | Actually, there are several ways:
Given:
```
// aString is the string that we want to convert to number
// defaultValue is the backup value (integer) we'll have in case of conversion failed
var aString: String = "aString"
var defaultValue : Int = defaultValue
```
Then we have:
| Operation | Successful... | You can Direct Change by using readLine()!!.toInt()
Example:
```
fun main(){
print("Enter the radius = ")
var r1 = readLine()!!.toInt()
var area = (3.14*r1*r1)
println("Area is $area")
}
``` |
50,570,262 | I am working on a console application in Kotlin where I accept multiple arguments in `main()` function
```
fun main(args: Array<String>) {
// validation & String to Integer conversion
}
```
I want to check whether the `String` is a valid integer and convert the same or else I have to throw some exception.
How c... | 2018/05/28 | [
"https://Stackoverflow.com/questions/50570262",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6284931/"
] | i would go with something like this.
```
import java.util.*
fun String?.asOptionalInt() = Optional.ofNullable(this).map { it.toIntOrNull() }
fun main(args: Array<String>) {
val intArgs = args.map {
it.asOptionalInt().orElseThrow {
IllegalArgumentException("cannot parse to int $it")
}
... | ```
fun getIntValueFromString(value : String): Int {
var returnValue = ""
value.forEach {
val item = it.toString().toIntOrNull()
if(item is Int){
returnValue += item.toString()
}
}
return returnValue.toInt()
}
``` |
50,570,262 | I am working on a console application in Kotlin where I accept multiple arguments in `main()` function
```
fun main(args: Array<String>) {
// validation & String to Integer conversion
}
```
I want to check whether the `String` is a valid integer and convert the same or else I have to throw some exception.
How c... | 2018/05/28 | [
"https://Stackoverflow.com/questions/50570262",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6284931/"
] | Actually, there are several ways:
Given:
```
// aString is the string that we want to convert to number
// defaultValue is the backup value (integer) we'll have in case of conversion failed
var aString: String = "aString"
var defaultValue : Int = defaultValue
```
Then we have:
| Operation | Successful... | I use this util function:
```
fun safeInt(text: String, fallback: Int): Int {
return text.toIntOrNull() ?: fallback
}
``` |
50,570,262 | I am working on a console application in Kotlin where I accept multiple arguments in `main()` function
```
fun main(args: Array<String>) {
// validation & String to Integer conversion
}
```
I want to check whether the `String` is a valid integer and convert the same or else I have to throw some exception.
How c... | 2018/05/28 | [
"https://Stackoverflow.com/questions/50570262",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6284931/"
] | Actually, there are several ways:
Given:
```
// aString is the string that we want to convert to number
// defaultValue is the backup value (integer) we'll have in case of conversion failed
var aString: String = "aString"
var defaultValue : Int = defaultValue
```
Then we have:
| Operation | Successful... | add (?) before fun toInt()
```js
val number_int = str?.toInt()
``` |
2,404,150 | I need to save all ".xml" file names in a directory to a vector. To make a long story short, I cannot use the dirent API. It seems as if C++ does not have any concept of "directories".
Once I have the filenames in a vector, I can iterate through and "fopen" these files.
Is there an easy way to get these filenames at ... | 2010/03/08 | [
"https://Stackoverflow.com/questions/2404150",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/257569/"
] | Easy way is to use [Boost.Filesystem](http://www.boost.org/doc/libs/1_42_0/libs/filesystem/doc/index.htm) library.
```
namespace fs = boost::filesystem;
// ...
std::string path_to_xml = CUSTOM_DIR_PATH;
std::vector<string> xml_files;
fs::directory_iterator dir_iter( static_cast<fs::path>(path_to_xml) ), dir_end;
for (... | I suggest having a look at [boost::filesystem](http://www.boost.org/doc/libs/1_42_0/libs/filesystem/doc/index.htm) if it should be portable and bringing boost in isn't too heavy. |
2,404,150 | I need to save all ".xml" file names in a directory to a vector. To make a long story short, I cannot use the dirent API. It seems as if C++ does not have any concept of "directories".
Once I have the filenames in a vector, I can iterate through and "fopen" these files.
Is there an easy way to get these filenames at ... | 2010/03/08 | [
"https://Stackoverflow.com/questions/2404150",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/257569/"
] | Easy way is to use [Boost.Filesystem](http://www.boost.org/doc/libs/1_42_0/libs/filesystem/doc/index.htm) library.
```
namespace fs = boost::filesystem;
// ...
std::string path_to_xml = CUSTOM_DIR_PATH;
std::vector<string> xml_files;
fs::directory_iterator dir_iter( static_cast<fs::path>(path_to_xml) ), dir_end;
for (... | If you don't like boost, try Poco. It has a DirectoryIterator. <http://pocoproject.org/> |
2,404,150 | I need to save all ".xml" file names in a directory to a vector. To make a long story short, I cannot use the dirent API. It seems as if C++ does not have any concept of "directories".
Once I have the filenames in a vector, I can iterate through and "fopen" these files.
Is there an easy way to get these filenames at ... | 2010/03/08 | [
"https://Stackoverflow.com/questions/2404150",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/257569/"
] | Easy way is to use [Boost.Filesystem](http://www.boost.org/doc/libs/1_42_0/libs/filesystem/doc/index.htm) library.
```
namespace fs = boost::filesystem;
// ...
std::string path_to_xml = CUSTOM_DIR_PATH;
std::vector<string> xml_files;
fs::directory_iterator dir_iter( static_cast<fs::path>(path_to_xml) ), dir_end;
for (... | Something like this (Note, Format is a sprintf:ish funciton you can replace)
```
bool MakeFileList(const wchar_t* pDirectory,vector<wstring> *pFileList)
{
wstring sTemp = Format(L"%s\\*.%s",pDirectory,L"xml");
_wfinddata_t first_file;
long hFile = _wfindfirst(sTemp.c_str(),&first_file);
if(hFile != ... |
859,636 | Is the lower limit topology finer than the standard topology on $\mathbb{R}$?
In Lemma 13.4 on p.82 of Munkres' *Topology* (2nd ed.), it is stated that the lower limit topology is (strictly) finer than the standard topology on $\mathbb{R}$. In the argument, he is using that the interval $[a,b)$ lies in the interval $... | 2014/07/08 | [
"https://math.stackexchange.com/questions/859636",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/50948/"
] | Yes! Since one have that
$$
(a,b) = \cup\_{n\ge 1} \ [a+\frac{\epsilon}{n},b)
$$
where $\epsilon < \frac{b-a}{2}$.
Note that if for topology ${\mathcal T}\_1$ with basis ${\mathcal S}\_1$ and topology ${\mathcal T}\_2$, one have that ${\mathcal S}\_1 \subseteq {\mathcal T}\_2$, then ${\mathcal T}\_2$ is finer than ${\... | Well, I don't have a copy of Munkres' book at hand but I doubt that it is said.
If $[a,b)$ is open then $(a,b)=\bigcup\_{n\in\mathbb{N}}\left[ a+\frac{1}{n},b\right)$ must be open.
Conversely, $[0,1)$ is not open in the standard topology.
This means that the topology in $\mathbb{R}\_l$ is finer that the topology on ... |
29,921,679 | **Error code** :
```
The type name or alias UnitOfWorkFactory could not be resolved.
Please check your configuration file and verify this type name.
```
I'm scraping google results / trying to debug for 2 days now, and I didn't find any solution yet.
Mention that "ApplicationService" is being resolved.
* I verif... | 2015/04/28 | [
"https://Stackoverflow.com/questions/29921679",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3264998/"
] | Looks like you have the following options:
1. Convert your binary column to a none binary text column, using a temp column because binary columns cannot be case in-sensitive
2. Use the Convert function as the link you mentioned
3. Use the Lower or Upper methods
If you really want the column be always case in-sensitiv... | In mysql there is a collation for each column in addition to the overall collation of the table. You will need to change the collation for each individual column.
(I believe the overall table collation determines the default collation if you create a new column, but don't quote me on that.) |
53,957,876 | I have a input file like:
```
> cat test_mfd_1
16,281474976750348
17,281474976750348
16,281474976750348
17,281474976750348
16,281474976749447
17,281474976749447
16,281474976749447
17,281474976749447
```
And I need the output like:
```
281474976750348 16,17
281474976749447 16,17
```
Column 2 and 1 both have duplic... | 2018/12/28 | [
"https://Stackoverflow.com/questions/53957876",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10842759/"
] | Using Perl
```
$ cat jeevan.txt
16,281474976750348
17,281474976750348
16,281474976750348
17,281474976750348
16,281474976749447
17,281474976749447
16,281474976749447
17,281474976749447
$ perl -F, -lane ' $kv{$F[1]}{$F[0]}++; END { while(my($x,$y) = each(%kv)) { print "$x ",join(",",keys %$y) } }' jeevan.txt
2814749767... | Here is a `Perl`:
```
$ perl -F, -lanE '$HoH{$F[1]}{$F[0]}++;
END{for (keys %HoH) {
say "$_ ", join(", ", keys %{$HoH{$_}}); }}' file
281474976749447 16, 17
281474976750348 17, 16
```
Here is an awk:
```
$ awk -F, '{a[$2][$1]}
END{ for (e in a){
... |
53,957,876 | I have a input file like:
```
> cat test_mfd_1
16,281474976750348
17,281474976750348
16,281474976750348
17,281474976750348
16,281474976749447
17,281474976749447
16,281474976749447
17,281474976749447
```
And I need the output like:
```
281474976750348 16,17
281474976749447 16,17
```
Column 2 and 1 both have duplic... | 2018/12/28 | [
"https://Stackoverflow.com/questions/53957876",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10842759/"
] | Here is a `Perl`:
```
$ perl -F, -lanE '$HoH{$F[1]}{$F[0]}++;
END{for (keys %HoH) {
say "$_ ", join(", ", keys %{$HoH{$_}}); }}' file
281474976749447 16, 17
281474976750348 17, 16
```
Here is an awk:
```
$ awk -F, '{a[$2][$1]}
END{ for (e in a){
... | `sort` assisted `awk`
```
$ sort -t, -u -k2 -k1,1 file |
awk -F, '{a[$2]=a[$2] sep[$2] $1; sep[$2]=FS} END{for(k in a) print k,a[k]}'
281474976749447 16,17
281474976750348 16,17
```
sep is for lazy separator initialization to skip the first one. |
53,957,876 | I have a input file like:
```
> cat test_mfd_1
16,281474976750348
17,281474976750348
16,281474976750348
17,281474976750348
16,281474976749447
17,281474976749447
16,281474976749447
17,281474976749447
```
And I need the output like:
```
281474976750348 16,17
281474976749447 16,17
```
Column 2 and 1 both have duplic... | 2018/12/28 | [
"https://Stackoverflow.com/questions/53957876",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10842759/"
] | Using Perl
```
$ cat jeevan.txt
16,281474976750348
17,281474976750348
16,281474976750348
17,281474976750348
16,281474976749447
17,281474976749447
16,281474976749447
17,281474976749447
$ perl -F, -lane ' $kv{$F[1]}{$F[0]}++; END { while(my($x,$y) = each(%kv)) { print "$x ",join(",",keys %$y) } }' jeevan.txt
2814749767... | Here's another. It appends `$1` values comma-separated to `a[$2]` but uses `match()` first to check that the value isn't there already:
```
$ awk -F, '{
a[$2]=a[$2] (match(a[$2],"(^|,)" $1 "($|,)")?"":(a[$2]==""?"":",")$1)
}
END {
for(i in a)
print i,a[i]
} ' file
281474976749447 16,17
281474976750348... |
53,957,876 | I have a input file like:
```
> cat test_mfd_1
16,281474976750348
17,281474976750348
16,281474976750348
17,281474976750348
16,281474976749447
17,281474976749447
16,281474976749447
17,281474976749447
```
And I need the output like:
```
281474976750348 16,17
281474976749447 16,17
```
Column 2 and 1 both have duplic... | 2018/12/28 | [
"https://Stackoverflow.com/questions/53957876",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10842759/"
] | Using [`GNU Datamash`](https://www.gnu.org/software/datamash/manual/datamash.html):
```
$ datamash --sort -t, -g 2 unique 1 < file
281474976749447,16,17
281474976750348,16,17
```
If you insist on the space:
```
$ datamash --sort -t, -g 2 unique 1 < file | sed 's/,/ /'
281474976749447 16,17
281474976750348 16,17
``... | Here's another. It appends `$1` values comma-separated to `a[$2]` but uses `match()` first to check that the value isn't there already:
```
$ awk -F, '{
a[$2]=a[$2] (match(a[$2],"(^|,)" $1 "($|,)")?"":(a[$2]==""?"":",")$1)
}
END {
for(i in a)
print i,a[i]
} ' file
281474976749447 16,17
281474976750348... |
53,957,876 | I have a input file like:
```
> cat test_mfd_1
16,281474976750348
17,281474976750348
16,281474976750348
17,281474976750348
16,281474976749447
17,281474976749447
16,281474976749447
17,281474976749447
```
And I need the output like:
```
281474976750348 16,17
281474976749447 16,17
```
Column 2 and 1 both have duplic... | 2018/12/28 | [
"https://Stackoverflow.com/questions/53957876",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10842759/"
] | Using [`GNU Datamash`](https://www.gnu.org/software/datamash/manual/datamash.html):
```
$ datamash --sort -t, -g 2 unique 1 < file
281474976749447,16,17
281474976750348,16,17
```
If you insist on the space:
```
$ datamash --sort -t, -g 2 unique 1 < file | sed 's/,/ /'
281474976749447 16,17
281474976750348 16,17
``... | Here is a `Perl`:
```
$ perl -F, -lanE '$HoH{$F[1]}{$F[0]}++;
END{for (keys %HoH) {
say "$_ ", join(", ", keys %{$HoH{$_}}); }}' file
281474976749447 16, 17
281474976750348 17, 16
```
Here is an awk:
```
$ awk -F, '{a[$2][$1]}
END{ for (e in a){
... |
53,957,876 | I have a input file like:
```
> cat test_mfd_1
16,281474976750348
17,281474976750348
16,281474976750348
17,281474976750348
16,281474976749447
17,281474976749447
16,281474976749447
17,281474976749447
```
And I need the output like:
```
281474976750348 16,17
281474976749447 16,17
```
Column 2 and 1 both have duplic... | 2018/12/28 | [
"https://Stackoverflow.com/questions/53957876",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10842759/"
] | Using [`GNU Datamash`](https://www.gnu.org/software/datamash/manual/datamash.html):
```
$ datamash --sort -t, -g 2 unique 1 < file
281474976749447,16,17
281474976750348,16,17
```
If you insist on the space:
```
$ datamash --sort -t, -g 2 unique 1 < file | sed 's/,/ /'
281474976749447 16,17
281474976750348 16,17
``... | `sort` assisted `awk`
```
$ sort -t, -u -k2 -k1,1 file |
awk -F, '{a[$2]=a[$2] sep[$2] $1; sep[$2]=FS} END{for(k in a) print k,a[k]}'
281474976749447 16,17
281474976750348 16,17
```
sep is for lazy separator initialization to skip the first one. |
53,957,876 | I have a input file like:
```
> cat test_mfd_1
16,281474976750348
17,281474976750348
16,281474976750348
17,281474976750348
16,281474976749447
17,281474976749447
16,281474976749447
17,281474976749447
```
And I need the output like:
```
281474976750348 16,17
281474976749447 16,17
```
Column 2 and 1 both have duplic... | 2018/12/28 | [
"https://Stackoverflow.com/questions/53957876",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10842759/"
] | Using [`GNU Datamash`](https://www.gnu.org/software/datamash/manual/datamash.html):
```
$ datamash --sort -t, -g 2 unique 1 < file
281474976749447,16,17
281474976750348,16,17
```
If you insist on the space:
```
$ datamash --sort -t, -g 2 unique 1 < file | sed 's/,/ /'
281474976749447 16,17
281474976750348 16,17
``... | For GNU awk:
```
awk -F, '{a[$2][$1]} END {for(i in a) {printf i; first=1; for (j in a[i]) if (first) {printf " " j; first=0;} else printf "," j; print ""} }' test_mfd_1
#=> 281474976749447 16,17
#=> 281474976750348 16,17
```
Just improved your attempt.
The idea is to use two-dimension array, and a inner `for` ... |
53,957,876 | I have a input file like:
```
> cat test_mfd_1
16,281474976750348
17,281474976750348
16,281474976750348
17,281474976750348
16,281474976749447
17,281474976749447
16,281474976749447
17,281474976749447
```
And I need the output like:
```
281474976750348 16,17
281474976749447 16,17
```
Column 2 and 1 both have duplic... | 2018/12/28 | [
"https://Stackoverflow.com/questions/53957876",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10842759/"
] | Using Perl
```
$ cat jeevan.txt
16,281474976750348
17,281474976750348
16,281474976750348
17,281474976750348
16,281474976749447
17,281474976749447
16,281474976749447
17,281474976749447
$ perl -F, -lane ' $kv{$F[1]}{$F[0]}++; END { while(my($x,$y) = each(%kv)) { print "$x ",join(",",keys %$y) } }' jeevan.txt
2814749767... | `sort` assisted `awk`
```
$ sort -t, -u -k2 -k1,1 file |
awk -F, '{a[$2]=a[$2] sep[$2] $1; sep[$2]=FS} END{for(k in a) print k,a[k]}'
281474976749447 16,17
281474976750348 16,17
```
sep is for lazy separator initialization to skip the first one. |
53,957,876 | I have a input file like:
```
> cat test_mfd_1
16,281474976750348
17,281474976750348
16,281474976750348
17,281474976750348
16,281474976749447
17,281474976749447
16,281474976749447
17,281474976749447
```
And I need the output like:
```
281474976750348 16,17
281474976749447 16,17
```
Column 2 and 1 both have duplic... | 2018/12/28 | [
"https://Stackoverflow.com/questions/53957876",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10842759/"
] | Using Perl
```
$ cat jeevan.txt
16,281474976750348
17,281474976750348
16,281474976750348
17,281474976750348
16,281474976749447
17,281474976749447
16,281474976749447
17,281474976749447
$ perl -F, -lane ' $kv{$F[1]}{$F[0]}++; END { while(my($x,$y) = each(%kv)) { print "$x ",join(",",keys %$y) } }' jeevan.txt
2814749767... | For GNU awk:
```
awk -F, '{a[$2][$1]} END {for(i in a) {printf i; first=1; for (j in a[i]) if (first) {printf " " j; first=0;} else printf "," j; print ""} }' test_mfd_1
#=> 281474976749447 16,17
#=> 281474976750348 16,17
```
Just improved your attempt.
The idea is to use two-dimension array, and a inner `for` ... |
53,957,876 | I have a input file like:
```
> cat test_mfd_1
16,281474976750348
17,281474976750348
16,281474976750348
17,281474976750348
16,281474976749447
17,281474976749447
16,281474976749447
17,281474976749447
```
And I need the output like:
```
281474976750348 16,17
281474976749447 16,17
```
Column 2 and 1 both have duplic... | 2018/12/28 | [
"https://Stackoverflow.com/questions/53957876",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10842759/"
] | Here's another. It appends `$1` values comma-separated to `a[$2]` but uses `match()` first to check that the value isn't there already:
```
$ awk -F, '{
a[$2]=a[$2] (match(a[$2],"(^|,)" $1 "($|,)")?"":(a[$2]==""?"":",")$1)
}
END {
for(i in a)
print i,a[i]
} ' file
281474976749447 16,17
281474976750348... | `sort` assisted `awk`
```
$ sort -t, -u -k2 -k1,1 file |
awk -F, '{a[$2]=a[$2] sep[$2] $1; sep[$2]=FS} END{for(k in a) print k,a[k]}'
281474976749447 16,17
281474976750348 16,17
```
sep is for lazy separator initialization to skip the first one. |
135,461 | As the title states, when I open up terminal to type a command, I cannot see what I am typing, it is as if the terminal is frozen. I can still execute commands when I hit return, I just cannot see what I am typing.
The weird part is that when I hit the delete key, I am suddenly able to see what I am typing, and the t... | 2014/06/19 | [
"https://apple.stackexchange.com/questions/135461",
"https://apple.stackexchange.com",
"https://apple.stackexchange.com/users/82063/"
] | Your prompt is messed up, specifically PS1:
```
PS1=$[\033]0;37m]
```
that's missing a lot of escape characters (`\e[`) needed for the colors (and most useful parameters for a PS1). That's also why you get the `37m` in the terminal window title. Try setting it to something different by running:
```
export PS1="\e[0... | Firstly, look at Terminal preferences (`Cmd`+`,`)for the font, text and color settings and change them appropriately. This may not be the issue, but it could make troubleshooting easier.
It may be the case that you have some profile script that changes the colors. Within `Terminal.app`, type the following command to s... |
61,813,249 | My database teacher has given me the following interrogation to translate in a single query in SQL:
>
> Show, for every exam module, the number of students who got a mark between the values 18 and 21, the the ones who got a mark between 22 and 26 and in the end the ones who got a mark between 27 and 30.
>
>
>
The... | 2020/05/15 | [
"https://Stackoverflow.com/questions/61813249",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13535799/"
] | Your checking function should look like this:
```
bool checking(BSTNode* parent, int val) {
if(parent == nullptr) // point 1
return false;
if (val == parent->data){ // point 2
return true;
}
else{
bool left = checking(parent->left, val);
bool right = checking(parent-... | If you want to check that parent value is different than child values, you might do:
```
bool checking(const BSTNode* node, int parent_value) {
if (node == nullptr) { return false; }
if (node->data == parent_value) { return true; }
return checking(node->left, node->data)
|| checking(node->right, n... |
61,813,249 | My database teacher has given me the following interrogation to translate in a single query in SQL:
>
> Show, for every exam module, the number of students who got a mark between the values 18 and 21, the the ones who got a mark between 22 and 26 and in the end the ones who got a mark between 27 and 30.
>
>
>
The... | 2020/05/15 | [
"https://Stackoverflow.com/questions/61813249",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13535799/"
] | Your checking function should look like this:
```
bool checking(BSTNode* parent, int val) {
if(parent == nullptr) // point 1
return false;
if (val == parent->data){ // point 2
return true;
}
else{
bool left = checking(parent->left, val);
bool right = checking(parent-... | You could just go through the BST breadth wise with a Deque. Store the values in a set and check if the value is already in the set, if it is return true otherwise wait for the loop to finish and return true. This had the benefit of hash table lookup for values at thr cost of extra storage in O(n) time. Its also easier... |
15,382,063 | I have a DLL file which does Log4Net logging to a a file. There is a process which loads the DLL and can create multiple instances of the DLL.
Each instance of a DLL has to create a separate log file. Therefore I do all the Log4Net configuration programatically.
I've used some help from [here.](https://stackoverflow.... | 2013/03/13 | [
"https://Stackoverflow.com/questions/15382063",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/788314/"
] | You are using the destructor of the LogHelper to release the file(s)
According to 1.6.7.6 Destructors in [the language specification](http://msdn.microsoft.com/en-us/library/ms228593.aspx) the destructor will be called but you can not know when. You just know it will be called before the process terminates.
The most ... | What you call a "Destructor" is actually a `Finalizer`. They should only be used to release unmanaged resources, so it looks to me like you are abusing it. Also note that the Finalizer is likely to be called on a separate thread, it may be called at effectively a random time, and it may not even be called at all.
You ... |
28,531,526 | I'm trying to understand laravel's basic blade template engine, but I can't seem to get past a basic example. My blade template is not loading .It only show the white screen but when I remove the hello.blade.php to hello.php it works .Any suggestion?
**Routes.php**
```
Route::get('/', 'PagesController@home');
```
*... | 2015/02/15 | [
"https://Stackoverflow.com/questions/28531526",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4341561/"
] | There is no `Views` helper. It's called `view`:
```
return view('hello');
``` | Well, I had the same "white screen problem". And the blade docs in laravel is so confused. Then, try this:
1. Create a layout, lets say `template.blade.php`:
```
<html>
<head>
<title>Hello World</title>
</head>
<body>
<div class="container">
<div class="content">
<div class="title">Starti... |
28,531,526 | I'm trying to understand laravel's basic blade template engine, but I can't seem to get past a basic example. My blade template is not loading .It only show the white screen but when I remove the hello.blade.php to hello.php it works .Any suggestion?
**Routes.php**
```
Route::get('/', 'PagesController@home');
```
*... | 2015/02/15 | [
"https://Stackoverflow.com/questions/28531526",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4341561/"
] | There is no `Views` helper. It's called `view`:
```
return view('hello');
``` | I'm not sure how it is working regardless of the extension as in your controller the syntax is incorrect. You return the view not Views... `return view('hello')`. You should technically see something like the following:
`FatalErrorException in PagesController.php line 18:
Call to undefined function App\Http\Controlle... |
28,531,526 | I'm trying to understand laravel's basic blade template engine, but I can't seem to get past a basic example. My blade template is not loading .It only show the white screen but when I remove the hello.blade.php to hello.php it works .Any suggestion?
**Routes.php**
```
Route::get('/', 'PagesController@home');
```
*... | 2015/02/15 | [
"https://Stackoverflow.com/questions/28531526",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4341561/"
] | There is no `Views` helper. It's called `view`:
```
return view('hello');
``` | I got this when I made a typo like so:
```
return views('abc');
```
instead of
```
return view('abc');
```
That extra `s` was killing everything. |
18,941,520 | I want to know the cursor position inside body tag.Actually I want if the cursor position is inside the span tag having class edit, then I want to prevent the cursor from jumping to new line on pressing Enter key. And if the cursor position is out of the span tag,then the cursor will jump to new line on pressing enter ... | 2013/09/22 | [
"https://Stackoverflow.com/questions/18941520",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2702406/"
] | Try this:
```
var canPressEnter = true;
$("span.edit").on("focus", function(){
canPressEnter = false;
}).on("keypress", function(e){
var code = (e.keyCode ? e.keyCode : e.which);
if (canPressEnter === false && code === 13)
{
e.preventDefault();
}
}).on("blur", function(){
canPressEnter ... | If there is no selection, you can use the properties .selectionStart or .selectionEnd (with no selection they're equal).
```
var cursorPosition = $('#myTextarea').prop("selectionStart");
```
Note that this is not supported in older browsers, most notably IE8-. |
18,941,520 | I want to know the cursor position inside body tag.Actually I want if the cursor position is inside the span tag having class edit, then I want to prevent the cursor from jumping to new line on pressing Enter key. And if the cursor position is out of the span tag,then the cursor will jump to new line on pressing enter ... | 2013/09/22 | [
"https://Stackoverflow.com/questions/18941520",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2702406/"
] | Try this:
```
var canPressEnter = true;
$("span.edit").on("focus", function(){
canPressEnter = false;
}).on("keypress", function(e){
var code = (e.keyCode ? e.keyCode : e.which);
if (canPressEnter === false && code === 13)
{
e.preventDefault();
}
}).on("blur", function(){
canPressEnter ... | Hope this may be helpful to you.
```
$('#myarea')[0].selectionStart; // return start index of cursor
``` |
260,462 | I turned off water to two of the three toilets in my house because they started leaking. By doing this, does this affect water pressure in say the shower?
The one toilet has been off for a year and no issue. But the other I turned off this morning around 4am because it started running constantly.
All of a sudden abou... | 2022/11/14 | [
"https://diy.stackexchange.com/questions/260462",
"https://diy.stackexchange.com",
"https://diy.stackexchange.com/users/158945/"
] | Turning off water to toilets won't make any difference in your shower. Thinking thru this: What's the difference between the toilet itself shutting of water when the tank is full vs turning off the supply to the toilet? NOTHING! So that's not the source of your problem.
What sort of water heater do you have? Tank type... | If you turn off the water supply to the whole system for a bit, drain the lines to do some work, then turn the supply back on, some spurting from the faucets is normal. |
260,462 | I turned off water to two of the three toilets in my house because they started leaking. By doing this, does this affect water pressure in say the shower?
The one toilet has been off for a year and no issue. But the other I turned off this morning around 4am because it started running constantly.
All of a sudden abou... | 2022/11/14 | [
"https://diy.stackexchange.com/questions/260462",
"https://diy.stackexchange.com",
"https://diy.stackexchange.com/users/158945/"
] | If you turn off the water supply to the whole system for a bit, drain the lines to do some work, then turn the supply back on, some spurting from the faucets is normal. | I would get a pressure check of your incoming water supply. Also I would say all your water appliances are old and in need of replacing. When you shut off water appliances in the system it will increase pressure on other fixtures. As you are shutting off a leak that is lowering the water pressure. Hope this helps. |
260,462 | I turned off water to two of the three toilets in my house because they started leaking. By doing this, does this affect water pressure in say the shower?
The one toilet has been off for a year and no issue. But the other I turned off this morning around 4am because it started running constantly.
All of a sudden abou... | 2022/11/14 | [
"https://diy.stackexchange.com/questions/260462",
"https://diy.stackexchange.com",
"https://diy.stackexchange.com/users/158945/"
] | Turning off water to toilets won't make any difference in your shower. Thinking thru this: What's the difference between the toilet itself shutting of water when the tank is full vs turning off the supply to the toilet? NOTHING! So that's not the source of your problem.
What sort of water heater do you have? Tank type... | If the toilet was leaking bad, it will reduce the water pressure to other fixtures, but will not increase the normal house water pressure if the leak is stopped.
Would maybe have the water pressure coming into the house checked. Some houses on city water have a pressure reducing valve near where the water comes in. It... |
260,462 | I turned off water to two of the three toilets in my house because they started leaking. By doing this, does this affect water pressure in say the shower?
The one toilet has been off for a year and no issue. But the other I turned off this morning around 4am because it started running constantly.
All of a sudden abou... | 2022/11/14 | [
"https://diy.stackexchange.com/questions/260462",
"https://diy.stackexchange.com",
"https://diy.stackexchange.com/users/158945/"
] | If the toilet was leaking bad, it will reduce the water pressure to other fixtures, but will not increase the normal house water pressure if the leak is stopped.
Would maybe have the water pressure coming into the house checked. Some houses on city water have a pressure reducing valve near where the water comes in. It... | I would get a pressure check of your incoming water supply. Also I would say all your water appliances are old and in need of replacing. When you shut off water appliances in the system it will increase pressure on other fixtures. As you are shutting off a leak that is lowering the water pressure. Hope this helps. |
260,462 | I turned off water to two of the three toilets in my house because they started leaking. By doing this, does this affect water pressure in say the shower?
The one toilet has been off for a year and no issue. But the other I turned off this morning around 4am because it started running constantly.
All of a sudden abou... | 2022/11/14 | [
"https://diy.stackexchange.com/questions/260462",
"https://diy.stackexchange.com",
"https://diy.stackexchange.com/users/158945/"
] | Turning off water to toilets won't make any difference in your shower. Thinking thru this: What's the difference between the toilet itself shutting of water when the tank is full vs turning off the supply to the toilet? NOTHING! So that's not the source of your problem.
What sort of water heater do you have? Tank type... | I would get a pressure check of your incoming water supply. Also I would say all your water appliances are old and in need of replacing. When you shut off water appliances in the system it will increase pressure on other fixtures. As you are shutting off a leak that is lowering the water pressure. Hope this helps. |
38,700,319 | I'm trying to use [scalatest](http://www.scalatest.org/) and [spark-testing-base](https://github.com/holdenk/spark-testing-base) on Maven for integration testing Spark. The Spark job reads in a CSV file, validates the results, and inserts the data into a database. I'm trying to test the validation by putting in files o... | 2016/08/01 | [
"https://Stackoverflow.com/questions/38700319",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2683012/"
] | The issue I had with tests not getting discovered came down to the fact that the tests are discovered from the `class` files, so to make the tests get discovered I need to add `<goal>testCompile</goal>` to `scala-maven-plugin` `goals`. | **Cause:** Maven plugins does not compile your test code whenever you run mvn commands.
**Work around:**
>
> Run scala tests using your IDE which will compile the test code and saves it in target directory. And when next time you run mvn test or any maven command which internally triggers maven's test cycle it shoul... |
38,700,319 | I'm trying to use [scalatest](http://www.scalatest.org/) and [spark-testing-base](https://github.com/holdenk/spark-testing-base) on Maven for integration testing Spark. The Spark job reads in a CSV file, validates the results, and inserts the data into a database. I'm trying to test the validation by putting in files o... | 2016/08/01 | [
"https://Stackoverflow.com/questions/38700319",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2683012/"
] | This is probably because there are some space characters in the project path.
Remove space in project path and the tests can be discovered successfully.
Hope this help. | The issue I had with tests not getting discovered came down to the fact that the tests are discovered from the `class` files, so to make the tests get discovered I need to add `<goal>testCompile</goal>` to `scala-maven-plugin` `goals`. |
38,700,319 | I'm trying to use [scalatest](http://www.scalatest.org/) and [spark-testing-base](https://github.com/holdenk/spark-testing-base) on Maven for integration testing Spark. The Spark job reads in a CSV file, validates the results, and inserts the data into a database. I'm trying to test the validation by putting in files o... | 2016/08/01 | [
"https://Stackoverflow.com/questions/38700319",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2683012/"
] | This is probably because there are some space characters in the project path.
Remove space in project path and the tests can be discovered successfully.
Hope this help. | With me, it's because I wasn't using the following plugin:
```html
<plugin>
<groupId>org.scala-tools</groupId>
<artifactId>maven-scala-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>testCompile</goal>
... |
38,700,319 | I'm trying to use [scalatest](http://www.scalatest.org/) and [spark-testing-base](https://github.com/holdenk/spark-testing-base) on Maven for integration testing Spark. The Spark job reads in a CSV file, validates the results, and inserts the data into a database. I'm trying to test the validation by putting in files o... | 2016/08/01 | [
"https://Stackoverflow.com/questions/38700319",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2683012/"
] | With me, it's because I wasn't using the following plugin:
```html
<plugin>
<groupId>org.scala-tools</groupId>
<artifactId>maven-scala-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>testCompile</goal>
... | **Cause:** Maven plugins does not compile your test code whenever you run mvn commands.
**Work around:**
>
> Run scala tests using your IDE which will compile the test code and saves it in target directory. And when next time you run mvn test or any maven command which internally triggers maven's test cycle it shoul... |
38,700,319 | I'm trying to use [scalatest](http://www.scalatest.org/) and [spark-testing-base](https://github.com/holdenk/spark-testing-base) on Maven for integration testing Spark. The Spark job reads in a CSV file, validates the results, and inserts the data into a database. I'm trying to test the validation by putting in files o... | 2016/08/01 | [
"https://Stackoverflow.com/questions/38700319",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2683012/"
] | With me, it's because I wasn't using the following plugin:
```html
<plugin>
<groupId>org.scala-tools</groupId>
<artifactId>maven-scala-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>testCompile</goal>
... | In my case it's because of the nesting of tests inside the test directory and using the `<memberOnlySuites>` configuration. `<memberonlySuites>` only looks out for the test files in the give package / directory. Instead use `<wildcardSuites>` which will look into a package / directory and all it's subdirectories.
This... |
38,700,319 | I'm trying to use [scalatest](http://www.scalatest.org/) and [spark-testing-base](https://github.com/holdenk/spark-testing-base) on Maven for integration testing Spark. The Spark job reads in a CSV file, validates the results, and inserts the data into a database. I'm trying to test the validation by putting in files o... | 2016/08/01 | [
"https://Stackoverflow.com/questions/38700319",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2683012/"
] | This is probably because there are some space characters in the project path.
Remove space in project path and the tests can be discovered successfully.
Hope this help. | In my case it's because of the nesting of tests inside the test directory and using the `<memberOnlySuites>` configuration. `<memberonlySuites>` only looks out for the test files in the give package / directory. Instead use `<wildcardSuites>` which will look into a package / directory and all it's subdirectories.
This... |
38,700,319 | I'm trying to use [scalatest](http://www.scalatest.org/) and [spark-testing-base](https://github.com/holdenk/spark-testing-base) on Maven for integration testing Spark. The Spark job reads in a CSV file, validates the results, and inserts the data into a database. I'm trying to test the validation by putting in files o... | 2016/08/01 | [
"https://Stackoverflow.com/questions/38700319",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2683012/"
] | This is probably because there are some space characters in the project path.
Remove space in project path and the tests can be discovered successfully.
Hope this help. | Try excluding junit as a transitive dependency. Works for me. Example below, but note the Scala and Spark versions are specific to my environment.
```
<dependency>
<groupId>com.holdenkarau</groupId>
<artifactId>spark-testing-base_2.10</artifactId>
<version>1.5.0_0.6.0</version>
<scop... |
38,700,319 | I'm trying to use [scalatest](http://www.scalatest.org/) and [spark-testing-base](https://github.com/holdenk/spark-testing-base) on Maven for integration testing Spark. The Spark job reads in a CSV file, validates the results, and inserts the data into a database. I'm trying to test the validation by putting in files o... | 2016/08/01 | [
"https://Stackoverflow.com/questions/38700319",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2683012/"
] | In my case it's because of the nesting of tests inside the test directory and using the `<memberOnlySuites>` configuration. `<memberonlySuites>` only looks out for the test files in the give package / directory. Instead use `<wildcardSuites>` which will look into a package / directory and all it's subdirectories.
This... | **Cause:** Maven plugins does not compile your test code whenever you run mvn commands.
**Work around:**
>
> Run scala tests using your IDE which will compile the test code and saves it in target directory. And when next time you run mvn test or any maven command which internally triggers maven's test cycle it shoul... |
38,700,319 | I'm trying to use [scalatest](http://www.scalatest.org/) and [spark-testing-base](https://github.com/holdenk/spark-testing-base) on Maven for integration testing Spark. The Spark job reads in a CSV file, validates the results, and inserts the data into a database. I'm trying to test the validation by putting in files o... | 2016/08/01 | [
"https://Stackoverflow.com/questions/38700319",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2683012/"
] | Try excluding junit as a transitive dependency. Works for me. Example below, but note the Scala and Spark versions are specific to my environment.
```
<dependency>
<groupId>com.holdenkarau</groupId>
<artifactId>spark-testing-base_2.10</artifactId>
<version>1.5.0_0.6.0</version>
<scop... | **Cause:** Maven plugins does not compile your test code whenever you run mvn commands.
**Work around:**
>
> Run scala tests using your IDE which will compile the test code and saves it in target directory. And when next time you run mvn test or any maven command which internally triggers maven's test cycle it shoul... |
38,700,319 | I'm trying to use [scalatest](http://www.scalatest.org/) and [spark-testing-base](https://github.com/holdenk/spark-testing-base) on Maven for integration testing Spark. The Spark job reads in a CSV file, validates the results, and inserts the data into a database. I'm trying to test the validation by putting in files o... | 2016/08/01 | [
"https://Stackoverflow.com/questions/38700319",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2683012/"
] | The issue I had with tests not getting discovered came down to the fact that the tests are discovered from the `class` files, so to make the tests get discovered I need to add `<goal>testCompile</goal>` to `scala-maven-plugin` `goals`. | In my case it's because of the nesting of tests inside the test directory and using the `<memberOnlySuites>` configuration. `<memberonlySuites>` only looks out for the test files in the give package / directory. Instead use `<wildcardSuites>` which will look into a package / directory and all it's subdirectories.
This... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.