qid int64 1 74.7M | question stringlengths 15 58.3k | date stringlengths 10 10 | metadata list | response_j stringlengths 4 30.2k | response_k stringlengths 11 36.5k |
|---|---|---|---|---|---|
2,759,039 | A & B are 3x3 matrices and
$$\ A^{T} = -A $$
I need to prove that
$\ (A^{2}B)x = 0 $ has a non trivial solution.
so I understand that
$\ |A| = |A^{T}| = |-A| = -1^{n}|A| = 0 $ because n=3. and from that I conclude that A is not invertible and if $\ A^T = -A $ it must have tr(A) = 0 but i'm stuck and would love get... | 2018/04/29 | [
"https://math.stackexchange.com/questions/2759039",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/468493/"
] | $$det(A) = 0 \Rightarrow det(A^2B)= 0 $$
As $det(A^2B) = 0 \Rightarrow rank(A^2B) < 3 \Rightarrow$ the columns of $A^2B$ are linearly dependent $\Rightarrow$ there is a non-zero vector $x = (x\_1\; x\_2\; x\_3)^T$ such that $A^2B x = 0$. | Since $\det(A)=0$,$$\det(A^2B)=\det(A)^2\det(B)=0,$$and therefore, $(A^2B).x=0$ has a non-trivial solution. |
26,623,989 | I want to send image through intent from Adapter class to another Activity and slide one by one images on that Activity .I have try but not get the image in other Activity.
Here is Code.
```
public class GridViewAdapter extends BaseAdapter
{
private Context context;
public ArrayList<HashMap<String,String>> mT... | 2014/10/29 | [
"https://Stackoverflow.com/questions/26623989",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4185250/"
] | If `DoUpdate` is synchronous (which it appears to be in this case), you can use `BufferIntrospective` from [Rxx](https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0CCAQFjAA&url=https%3A%2F%2Frxx.codeplex.com%2F&ei=ecJQVJ2fMZawyASQ_ILACQ&usg=AFQjCNHUkRMG_cuCwc0FKpIt5Qt8AgNQXQ). It does e... | I'm a bit late to the party, but here's built-in one-liner way to do this. `Sample` with a `TimeSpan.Zero` will continuously sample the source and always push the last update - to make this work you need to give `Sample` it's own thread so that the sampled source can run uninterrupted:
```
IProduceDemUpdates.Sample(Ti... |
19,715,873 | I'm writing a multi-thread console application using WinAPI's critical sections as the synchronizing mechanism. I need to create 5 threads, every thread has its own string to be displayed by the thread. Threads should output their strings sequentially, one by one.
So, I have thread function:
```
void thread_routine(v... | 2013/10/31 | [
"https://Stackoverflow.com/questions/19715873",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2708147/"
] | You probably have an design problem and should fix that one!
But if you really one to sync threads, here is one approach. Probably will get down voted for this as this is extremely inefficient and will deadlock if any of the threads skips the important part (like by try-catch), but still an approach:
```
#include <th... | ```
/** For Scheduling the thread execution order, Evens are enough, no synchronization objects like Mutex, Critical Section etc.. are not needed. Below is a code and which is scalable based on the number of threads entered. */
//Code for Schedule threads execution in a order T1->T2->T3-> ..->Tn->T1..
// where T1 is T... |
19,715,873 | I'm writing a multi-thread console application using WinAPI's critical sections as the synchronizing mechanism. I need to create 5 threads, every thread has its own string to be displayed by the thread. Threads should output their strings sequentially, one by one.
So, I have thread function:
```
void thread_routine(v... | 2013/10/31 | [
"https://Stackoverflow.com/questions/19715873",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2708147/"
] | 1) You should not put I/O in separate threads. Do the output in your `main` thread after the threads have done their processing.
2) If you need the threads to execute sequentially, you don't need threads. Threads are useful for operating in parallel. If you need to do something sequentially, you just do it in a single... | I have created a simple producer, consumer scenario, where I have a function "producer" producing data and N (N is Configurable) consumers, consuming the data sequentially(in strict order) i.e. 1st thread should consume data before 2nd thread. and 2nd thread before 3rd and so on. When each consumer consumed the data it... |
19,715,873 | I'm writing a multi-thread console application using WinAPI's critical sections as the synchronizing mechanism. I need to create 5 threads, every thread has its own string to be displayed by the thread. Threads should output their strings sequentially, one by one.
So, I have thread function:
```
void thread_routine(v... | 2013/10/31 | [
"https://Stackoverflow.com/questions/19715873",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2708147/"
] | You need to write your own scheduler. Just another thread which wakes up your threads in the specified order. In that case you have to pass to your threads more complex data including some waitable object (i.e. Semaphore). I'm not experienced in WinAPI, it's just an idea:
```
void scheduler_thread(void* data) {
sche... | I have created a simple producer, consumer scenario, where I have a function "producer" producing data and N (N is Configurable) consumers, consuming the data sequentially(in strict order) i.e. 1st thread should consume data before 2nd thread. and 2nd thread before 3rd and so on. When each consumer consumed the data it... |
19,715,873 | I'm writing a multi-thread console application using WinAPI's critical sections as the synchronizing mechanism. I need to create 5 threads, every thread has its own string to be displayed by the thread. Threads should output their strings sequentially, one by one.
So, I have thread function:
```
void thread_routine(v... | 2013/10/31 | [
"https://Stackoverflow.com/questions/19715873",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2708147/"
] | Critical sections are not the way to solve this problem. A critical section is nothing more than a mutual exclusion device. It's intended to ensure that only one thread can be executing a particular piece of code at a given time. It's not intended to be used for sequencing, nor is it particularly good for that task. Th... | You need to write your own scheduler. Just another thread which wakes up your threads in the specified order. In that case you have to pass to your threads more complex data including some waitable object (i.e. Semaphore). I'm not experienced in WinAPI, it's just an idea:
```
void scheduler_thread(void* data) {
sche... |
19,715,873 | I'm writing a multi-thread console application using WinAPI's critical sections as the synchronizing mechanism. I need to create 5 threads, every thread has its own string to be displayed by the thread. Threads should output their strings sequentially, one by one.
So, I have thread function:
```
void thread_routine(v... | 2013/10/31 | [
"https://Stackoverflow.com/questions/19715873",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2708147/"
] | You probably have an design problem and should fix that one!
But if you really one to sync threads, here is one approach. Probably will get down voted for this as this is extremely inefficient and will deadlock if any of the threads skips the important part (like by try-catch), but still an approach:
```
#include <th... | I have created a simple producer, consumer scenario, where I have a function "producer" producing data and N (N is Configurable) consumers, consuming the data sequentially(in strict order) i.e. 1st thread should consume data before 2nd thread. and 2nd thread before 3rd and so on. When each consumer consumed the data it... |
19,715,873 | I'm writing a multi-thread console application using WinAPI's critical sections as the synchronizing mechanism. I need to create 5 threads, every thread has its own string to be displayed by the thread. Threads should output their strings sequentially, one by one.
So, I have thread function:
```
void thread_routine(v... | 2013/10/31 | [
"https://Stackoverflow.com/questions/19715873",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2708147/"
] | I have created a simple producer, consumer scenario, where I have a function "producer" producing data and N (N is Configurable) consumers, consuming the data sequentially(in strict order) i.e. 1st thread should consume data before 2nd thread. and 2nd thread before 3rd and so on. When each consumer consumed the data it... | ```
/** For Scheduling the thread execution order, Evens are enough, no synchronization objects like Mutex, Critical Section etc.. are not needed. Below is a code and which is scalable based on the number of threads entered. */
//Code for Schedule threads execution in a order T1->T2->T3-> ..->Tn->T1..
// where T1 is T... |
19,715,873 | I'm writing a multi-thread console application using WinAPI's critical sections as the synchronizing mechanism. I need to create 5 threads, every thread has its own string to be displayed by the thread. Threads should output their strings sequentially, one by one.
So, I have thread function:
```
void thread_routine(v... | 2013/10/31 | [
"https://Stackoverflow.com/questions/19715873",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2708147/"
] | You need to write your own scheduler. Just another thread which wakes up your threads in the specified order. In that case you have to pass to your threads more complex data including some waitable object (i.e. Semaphore). I'm not experienced in WinAPI, it's just an idea:
```
void scheduler_thread(void* data) {
sche... | ```
/** For Scheduling the thread execution order, Evens are enough, no synchronization objects like Mutex, Critical Section etc.. are not needed. Below is a code and which is scalable based on the number of threads entered. */
//Code for Schedule threads execution in a order T1->T2->T3-> ..->Tn->T1..
// where T1 is T... |
19,715,873 | I'm writing a multi-thread console application using WinAPI's critical sections as the synchronizing mechanism. I need to create 5 threads, every thread has its own string to be displayed by the thread. Threads should output their strings sequentially, one by one.
So, I have thread function:
```
void thread_routine(v... | 2013/10/31 | [
"https://Stackoverflow.com/questions/19715873",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2708147/"
] | Critical sections are not the way to solve this problem. A critical section is nothing more than a mutual exclusion device. It's intended to ensure that only one thread can be executing a particular piece of code at a given time. It's not intended to be used for sequencing, nor is it particularly good for that task. Th... | ```
/** For Scheduling the thread execution order, Evens are enough, no synchronization objects like Mutex, Critical Section etc.. are not needed. Below is a code and which is scalable based on the number of threads entered. */
//Code for Schedule threads execution in a order T1->T2->T3-> ..->Tn->T1..
// where T1 is T... |
19,715,873 | I'm writing a multi-thread console application using WinAPI's critical sections as the synchronizing mechanism. I need to create 5 threads, every thread has its own string to be displayed by the thread. Threads should output their strings sequentially, one by one.
So, I have thread function:
```
void thread_routine(v... | 2013/10/31 | [
"https://Stackoverflow.com/questions/19715873",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2708147/"
] | Critical sections are not the way to solve this problem. A critical section is nothing more than a mutual exclusion device. It's intended to ensure that only one thread can be executing a particular piece of code at a given time. It's not intended to be used for sequencing, nor is it particularly good for that task. Th... | 1) You should not put I/O in separate threads. Do the output in your `main` thread after the threads have done their processing.
2) If you need the threads to execute sequentially, you don't need threads. Threads are useful for operating in parallel. If you need to do something sequentially, you just do it in a single... |
19,715,873 | I'm writing a multi-thread console application using WinAPI's critical sections as the synchronizing mechanism. I need to create 5 threads, every thread has its own string to be displayed by the thread. Threads should output their strings sequentially, one by one.
So, I have thread function:
```
void thread_routine(v... | 2013/10/31 | [
"https://Stackoverflow.com/questions/19715873",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2708147/"
] | You need to write your own scheduler. Just another thread which wakes up your threads in the specified order. In that case you have to pass to your threads more complex data including some waitable object (i.e. Semaphore). I'm not experienced in WinAPI, it's just an idea:
```
void scheduler_thread(void* data) {
sche... | You probably have an design problem and should fix that one!
But if you really one to sync threads, here is one approach. Probably will get down voted for this as this is extremely inefficient and will deadlock if any of the threads skips the important part (like by try-catch), but still an approach:
```
#include <th... |
787,006 | Using SanDisk ExtremePro 128GB usb3.0 thumb drive to copy files between Lubuntu 13.10 systems, also sometimes from Mac or PCs. Formatting is standard off-the-shelf, I believe, although I did run a top shareware bitchecker on them before I put them in use. The SanDisk programs are still there, and I'm not using any of t... | 2016/06/14 | [
"https://askubuntu.com/questions/787006",
"https://askubuntu.com",
"https://askubuntu.com/users/247298/"
] | Your thumb drive probably has a case insensitive file system. You would need to format it using a case sensitive filesystem do be able to do what you want.
Yes, you can format it to have two partitions, use `gparted` to create a partition table and 2 (or more) partitions on your thumb drive, set the first one as vfat ... | Off the shelf format on SanDisk is Fat32 (vfat) which is case insensitive. There are a couple of nice GUIs to repartition your drive, I prefer 'gnome-disks' if available for lubuntu, or gparted as mentioned above. |
62,730,212 | What happens during chaincode install and instantiate in Hyperledger fabric? | 2020/07/04 | [
"https://Stackoverflow.com/questions/62730212",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8201020/"
] | A common misunderstanding when interacting with chaincode on the network is the difference between chaincode installation and instantiation. It is important that all peers on the network MUST have chaincode installed, but not instantiated.
Chaincode installation means that we are putting the source code (of our chainc... | Chaincode installation means keeping chaincode on the peers of the ledger.
chaincode instantiation means initializing chaincode with the set of parameters with we pass through chaincode command.
Installing the chaincode on the peers is required and instantiating the chaincode is not necessary. |
62,730,212 | What happens during chaincode install and instantiate in Hyperledger fabric? | 2020/07/04 | [
"https://Stackoverflow.com/questions/62730212",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8201020/"
] | A common misunderstanding when interacting with chaincode on the network is the difference between chaincode installation and instantiation. It is important that all peers on the network MUST have chaincode installed, but not instantiated.
Chaincode installation means that we are putting the source code (of our chainc... | Install:
The process of placing a chaincode on a peer’s file system.
Instantiate:
The process of starting and initializing a chaincode application on a specific channel. After instantiation, peers that have the chaincode installed can accept chaincode invocations. As it's related to channel, you do not need to insta... |
8,267,620 | I have a partially ordered set of tasks, where for each task all of the tasks that are strictly before it in the partial order must be executed before it can be executed. I want to execute tasks which are not related (either before or after one other) concurrently to try to minimise the total execution time - but witho... | 2011/11/25 | [
"https://Stackoverflow.com/questions/8267620",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/72810/"
] | printf and its variants can pad zeroes to the left, not to the right. sprintf the number, then add the necessary zeros yourself, or make sure the number is 6 digits long:
```
while(num < 100000)
num *= 10;
```
(This code assumes the number isn't negative, or you're going to get in trouble) | You can't do it directly with `printf` (at least in a standard-conforming way), you need to alter your numbers beforehand. |
8,267,620 | I have a partially ordered set of tasks, where for each task all of the tasks that are strictly before it in the partial order must be executed before it can be executed. I want to execute tasks which are not related (either before or after one other) concurrently to try to minimise the total execution time - but witho... | 2011/11/25 | [
"https://Stackoverflow.com/questions/8267620",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/72810/"
] | printf and its variants can pad zeroes to the left, not to the right. sprintf the number, then add the necessary zeros yourself, or make sure the number is 6 digits long:
```
while(num < 100000)
num *= 10;
```
(This code assumes the number isn't negative, or you're going to get in trouble) | `printf` will return the number of character printed out. This you can print out the remaining zeros:
```
int num = 3; // init
int len = printf("%d", num);
for (int i = 0; i < 6-len; ++i)
printf("0");
```
You should add some error checks (for example, if `len` is larger than 6).
With `sprintf`, you can use `mem... |
8,267,620 | I have a partially ordered set of tasks, where for each task all of the tasks that are strictly before it in the partial order must be executed before it can be executed. I want to execute tasks which are not related (either before or after one other) concurrently to try to minimise the total execution time - but witho... | 2011/11/25 | [
"https://Stackoverflow.com/questions/8267620",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/72810/"
] | printf and its variants can pad zeroes to the left, not to the right. sprintf the number, then add the necessary zeros yourself, or make sure the number is 6 digits long:
```
while(num < 100000)
num *= 10;
```
(This code assumes the number isn't negative, or you're going to get in trouble) | As Luchian said, this behavior is unsupported in `printf`, unlike the much more common reverse (left) padding.
You could, however, easily enough generate the requested result with something like this:
```
char *number_to_six_digit_string(char *resulting_array, int number)
{
int current_length = sprintf(resulting_a... |
8,267,620 | I have a partially ordered set of tasks, where for each task all of the tasks that are strictly before it in the partial order must be executed before it can be executed. I want to execute tasks which are not related (either before or after one other) concurrently to try to minimise the total execution time - but witho... | 2011/11/25 | [
"https://Stackoverflow.com/questions/8267620",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/72810/"
] | printf and its variants can pad zeroes to the left, not to the right. sprintf the number, then add the necessary zeros yourself, or make sure the number is 6 digits long:
```
while(num < 100000)
num *= 10;
```
(This code assumes the number isn't negative, or you're going to get in trouble) | Use the return value of `printf` (as in the first line of the `for` loop below)
```
#include <stdio.h>
int main(void) {
int number, width = 6;
for (number = 1; number < 9999999; number *= 7) {
int digits = printf("%d", number);
if (digits < width) printf("%0*d", width-digits, 0);
puts("");
}
retur... |
8,267,620 | I have a partially ordered set of tasks, where for each task all of the tasks that are strictly before it in the partial order must be executed before it can be executed. I want to execute tasks which are not related (either before or after one other) concurrently to try to minimise the total execution time - but witho... | 2011/11/25 | [
"https://Stackoverflow.com/questions/8267620",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/72810/"
] | `printf` will return the number of character printed out. This you can print out the remaining zeros:
```
int num = 3; // init
int len = printf("%d", num);
for (int i = 0; i < 6-len; ++i)
printf("0");
```
You should add some error checks (for example, if `len` is larger than 6).
With `sprintf`, you can use `mem... | You can't do it directly with `printf` (at least in a standard-conforming way), you need to alter your numbers beforehand. |
8,267,620 | I have a partially ordered set of tasks, where for each task all of the tasks that are strictly before it in the partial order must be executed before it can be executed. I want to execute tasks which are not related (either before or after one other) concurrently to try to minimise the total execution time - but witho... | 2011/11/25 | [
"https://Stackoverflow.com/questions/8267620",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/72810/"
] | You can't do it directly with `printf` (at least in a standard-conforming way), you need to alter your numbers beforehand. | As Luchian said, this behavior is unsupported in `printf`, unlike the much more common reverse (left) padding.
You could, however, easily enough generate the requested result with something like this:
```
char *number_to_six_digit_string(char *resulting_array, int number)
{
int current_length = sprintf(resulting_a... |
8,267,620 | I have a partially ordered set of tasks, where for each task all of the tasks that are strictly before it in the partial order must be executed before it can be executed. I want to execute tasks which are not related (either before or after one other) concurrently to try to minimise the total execution time - but witho... | 2011/11/25 | [
"https://Stackoverflow.com/questions/8267620",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/72810/"
] | You can't do it directly with `printf` (at least in a standard-conforming way), you need to alter your numbers beforehand. | Use the return value of `printf` (as in the first line of the `for` loop below)
```
#include <stdio.h>
int main(void) {
int number, width = 6;
for (number = 1; number < 9999999; number *= 7) {
int digits = printf("%d", number);
if (digits < width) printf("%0*d", width-digits, 0);
puts("");
}
retur... |
8,267,620 | I have a partially ordered set of tasks, where for each task all of the tasks that are strictly before it in the partial order must be executed before it can be executed. I want to execute tasks which are not related (either before or after one other) concurrently to try to minimise the total execution time - but witho... | 2011/11/25 | [
"https://Stackoverflow.com/questions/8267620",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/72810/"
] | `printf` will return the number of character printed out. This you can print out the remaining zeros:
```
int num = 3; // init
int len = printf("%d", num);
for (int i = 0; i < 6-len; ++i)
printf("0");
```
You should add some error checks (for example, if `len` is larger than 6).
With `sprintf`, you can use `mem... | As Luchian said, this behavior is unsupported in `printf`, unlike the much more common reverse (left) padding.
You could, however, easily enough generate the requested result with something like this:
```
char *number_to_six_digit_string(char *resulting_array, int number)
{
int current_length = sprintf(resulting_a... |
8,267,620 | I have a partially ordered set of tasks, where for each task all of the tasks that are strictly before it in the partial order must be executed before it can be executed. I want to execute tasks which are not related (either before or after one other) concurrently to try to minimise the total execution time - but witho... | 2011/11/25 | [
"https://Stackoverflow.com/questions/8267620",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/72810/"
] | `printf` will return the number of character printed out. This you can print out the remaining zeros:
```
int num = 3; // init
int len = printf("%d", num);
for (int i = 0; i < 6-len; ++i)
printf("0");
```
You should add some error checks (for example, if `len` is larger than 6).
With `sprintf`, you can use `mem... | Use the return value of `printf` (as in the first line of the `for` loop below)
```
#include <stdio.h>
int main(void) {
int number, width = 6;
for (number = 1; number < 9999999; number *= 7) {
int digits = printf("%d", number);
if (digits < width) printf("%0*d", width-digits, 0);
puts("");
}
retur... |
35,932,000 | I'm learning React and installed webpack through npm to my project directory but zsh is not finding the command even though I can see webpack installed in my project. I used `npm init --yes` followed by `npm install --save webpack` | 2016/03/11 | [
"https://Stackoverflow.com/questions/35932000",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5209224/"
] | **EDIT: Don't do this. Bad practice.**
Easy way. Install it globally.
```
npm i -g webpack
```
If you will work with webpack, install webpack-dev-server too
```
npm i -g webpack-dev-server
```
I recommend you first learn a bit about **npm** and then **webpack**. | In my case I had this problem with webpack, grunt and gulp and seems that my problem was an issue with permissions.
I installed webpack and grunt globally. However, even then, $ webapack or $ grunt resulted in **command not found**
The problem was that npm installed the global packages to /usr/local/lib/node\_modules... |
35,932,000 | I'm learning React and installed webpack through npm to my project directory but zsh is not finding the command even though I can see webpack installed in my project. I used `npm init --yes` followed by `npm install --save webpack` | 2016/03/11 | [
"https://Stackoverflow.com/questions/35932000",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5209224/"
] | There is no need to install webpack globally.
Try my way:
First, in your package.json file, add this:
```
"scripts": {
"start": "webpack"
},
```
Then, in your terminal, run
```
$npm start
```
Another quick way:
Just run (Yes, it is 'npx')
```
$npx webpack
```
That's all. | Installing node modules globally is a quick solution, but i recommend to add `./node_modules/.bin` to the path variable and try to understand, what's the problem.
Execute
```
~ export PATH="./node_modules/.bin:$PATH"
```
Afterwards you can simply use all packages installed locally in your project.
Also commands lik... |
35,932,000 | I'm learning React and installed webpack through npm to my project directory but zsh is not finding the command even though I can see webpack installed in my project. I used `npm init --yes` followed by `npm install --save webpack` | 2016/03/11 | [
"https://Stackoverflow.com/questions/35932000",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5209224/"
] | In my case I had this problem with webpack, grunt and gulp and seems that my problem was an issue with permissions.
I installed webpack and grunt globally. However, even then, $ webapack or $ grunt resulted in **command not found**
The problem was that npm installed the global packages to /usr/local/lib/node\_modules... | if you're on windows, try to get *%USERPROFILE%\Appdata\Roaming\npm* into your path and try again. |
35,932,000 | I'm learning React and installed webpack through npm to my project directory but zsh is not finding the command even though I can see webpack installed in my project. I used `npm init --yes` followed by `npm install --save webpack` | 2016/03/11 | [
"https://Stackoverflow.com/questions/35932000",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5209224/"
] | There is no need to install webpack globally.
Try my way:
First, in your package.json file, add this:
```
"scripts": {
"start": "webpack"
},
```
Then, in your terminal, run
```
$npm start
```
Another quick way:
Just run (Yes, it is 'npx')
```
$npx webpack
```
That's all. | if you're on windows, try to get *%USERPROFILE%\Appdata\Roaming\npm* into your path and try again. |
35,932,000 | I'm learning React and installed webpack through npm to my project directory but zsh is not finding the command even though I can see webpack installed in my project. I used `npm init --yes` followed by `npm install --save webpack` | 2016/03/11 | [
"https://Stackoverflow.com/questions/35932000",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5209224/"
] | having webpack installed locally, you could also use:
```
$(npm bin)/webpack
```
instead of:
```
./node_modules/.bin/webpack
``` | In my case I had this problem with webpack, grunt and gulp and seems that my problem was an issue with permissions.
I installed webpack and grunt globally. However, even then, $ webapack or $ grunt resulted in **command not found**
The problem was that npm installed the global packages to /usr/local/lib/node\_modules... |
35,932,000 | I'm learning React and installed webpack through npm to my project directory but zsh is not finding the command even though I can see webpack installed in my project. I used `npm init --yes` followed by `npm install --save webpack` | 2016/03/11 | [
"https://Stackoverflow.com/questions/35932000",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5209224/"
] | **EDIT: Don't do this. Bad practice.**
Easy way. Install it globally.
```
npm i -g webpack
```
If you will work with webpack, install webpack-dev-server too
```
npm i -g webpack-dev-server
```
I recommend you first learn a bit about **npm** and then **webpack**. | if you're on windows, try to get *%USERPROFILE%\Appdata\Roaming\npm* into your path and try again. |
35,932,000 | I'm learning React and installed webpack through npm to my project directory but zsh is not finding the command even though I can see webpack installed in my project. I used `npm init --yes` followed by `npm install --save webpack` | 2016/03/11 | [
"https://Stackoverflow.com/questions/35932000",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5209224/"
] | There is no need to install webpack globally.
Try my way:
First, in your package.json file, add this:
```
"scripts": {
"start": "webpack"
},
```
Then, in your terminal, run
```
$npm start
```
Another quick way:
Just run (Yes, it is 'npx')
```
$npx webpack
```
That's all. | having webpack installed locally, you could also use:
```
$(npm bin)/webpack
```
instead of:
```
./node_modules/.bin/webpack
``` |
35,932,000 | I'm learning React and installed webpack through npm to my project directory but zsh is not finding the command even though I can see webpack installed in my project. I used `npm init --yes` followed by `npm install --save webpack` | 2016/03/11 | [
"https://Stackoverflow.com/questions/35932000",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5209224/"
] | Installing node modules globally is a quick solution, but i recommend to add `./node_modules/.bin` to the path variable and try to understand, what's the problem.
Execute
```
~ export PATH="./node_modules/.bin:$PATH"
```
Afterwards you can simply use all packages installed locally in your project.
Also commands lik... | In my case I had this problem with webpack, grunt and gulp and seems that my problem was an issue with permissions.
I installed webpack and grunt globally. However, even then, $ webapack or $ grunt resulted in **command not found**
The problem was that npm installed the global packages to /usr/local/lib/node\_modules... |
35,932,000 | I'm learning React and installed webpack through npm to my project directory but zsh is not finding the command even though I can see webpack installed in my project. I used `npm init --yes` followed by `npm install --save webpack` | 2016/03/11 | [
"https://Stackoverflow.com/questions/35932000",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5209224/"
] | Installing node modules globally is a quick solution, but i recommend to add `./node_modules/.bin` to the path variable and try to understand, what's the problem.
Execute
```
~ export PATH="./node_modules/.bin:$PATH"
```
Afterwards you can simply use all packages installed locally in your project.
Also commands lik... | if you're on windows, try to get *%USERPROFILE%\Appdata\Roaming\npm* into your path and try again. |
35,932,000 | I'm learning React and installed webpack through npm to my project directory but zsh is not finding the command even though I can see webpack installed in my project. I used `npm init --yes` followed by `npm install --save webpack` | 2016/03/11 | [
"https://Stackoverflow.com/questions/35932000",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5209224/"
] | having webpack installed locally, you could also use:
```
$(npm bin)/webpack
```
instead of:
```
./node_modules/.bin/webpack
``` | Installing node modules globally is a quick solution, but i recommend to add `./node_modules/.bin` to the path variable and try to understand, what's the problem.
Execute
```
~ export PATH="./node_modules/.bin:$PATH"
```
Afterwards you can simply use all packages installed locally in your project.
Also commands lik... |
393,161 | I can run Browser from dash with added parameters (like `google-chrome --single-process --purge-memory-button`) without problem, by editing of `.desktop file`, but how I could reach the same by running of default browser via triggering open URL event? There is no options applied in this case.
For example if I have doc... | 2013/12/19 | [
"https://askubuntu.com/questions/393161",
"https://askubuntu.com",
"https://askubuntu.com/users/53930/"
] | Editing the .desktop file is enough in this case also because the default applications are called through the .desktop file.
See the `/etc/gnome/defaults.list` file and the `~/.local/share/applications/mimeapps.list` file, the first one contains the system defaults and the second one contains the defaults which you c... | In this case you will have to edit the file that handles the execution of the browser. This way you will be sure that the parameters you want will be included when called from everywhere.
This is what I mean:
1. Move the original file to a different name
2. With the old name of the original file, create a new script ... |
5,646,863 | I can't change static void Main(string[] args) in console application.
Can anyone please tell me how to change it to anything else? | 2011/04/13 | [
"https://Stackoverflow.com/questions/5646863",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/705641/"
] | If you mean you can't change it to be non-static, or you can't change the name of it, that's right: the entry point for an application:
* *must* be called `Main`
* *must* be static
* *must* either be parameterless or have a single parameter of type `string[]`
* *must* have a return type of `void` or `int`.
What are y... | If you change the 'static' from the 'static void main' from the program, the application will be unable to debug, and if put string[] args or not nothing will be happen. |
8,573,664 | I am sending data to PHP through HTTP POST. This works fine for data shorter than 8MB (8192KB), however when higher quantities of data are sent, PHP shows the `$_POST` variable to be empty. I emphasize that the `$_POST` variable does not even contain the names of the post fields, it exists as an empty array. The critic... | 2011/12/20 | [
"https://Stackoverflow.com/questions/8573664",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/868467/"
] | take a look at the [documentation comments](http://www.php.net/manual/en/function.ini-set.php#22264). when the script is executed, itäs too late to change sopme setting, wich includes `post_max_size`, for example. to change these values, try to use a `.htaccess`-file like this:
```
php_value upload_max_filesize 200M
p... | This will help
[What are the caveats with increasing max\_post\_size and upload\_max\_filesize?](https://stackoverflow.com/questions/1752644/what-are-the-caveats-with-increasing-max-post-size-and-upload-max-filesize)
And maybe
<http://blurringexistence.net/archives/11-PHPs-max_post_size.html> |
8,573,664 | I am sending data to PHP through HTTP POST. This works fine for data shorter than 8MB (8192KB), however when higher quantities of data are sent, PHP shows the `$_POST` variable to be empty. I emphasize that the `$_POST` variable does not even contain the names of the post fields, it exists as an empty array. The critic... | 2011/12/20 | [
"https://Stackoverflow.com/questions/8573664",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/868467/"
] | This will help
[What are the caveats with increasing max\_post\_size and upload\_max\_filesize?](https://stackoverflow.com/questions/1752644/what-are-the-caveats-with-increasing-max-post-size-and-upload-max-filesize)
And maybe
<http://blurringexistence.net/archives/11-PHPs-max_post_size.html> | `post_max_size` is, according to the [documentation](http://php.net/manual/en/ini.core.php#ini.sect.data-handling), defined as a `PHP_INI_PERDIR` setting. It can be set in your php.ini or .htaccess file. A definition for `PHP_INI_PERDIR` is given here: <http://www.php.net/manual/en/configuration.changes.modes.php>
Set... |
8,573,664 | I am sending data to PHP through HTTP POST. This works fine for data shorter than 8MB (8192KB), however when higher quantities of data are sent, PHP shows the `$_POST` variable to be empty. I emphasize that the `$_POST` variable does not even contain the names of the post fields, it exists as an empty array. The critic... | 2011/12/20 | [
"https://Stackoverflow.com/questions/8573664",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/868467/"
] | take a look at the [documentation comments](http://www.php.net/manual/en/function.ini-set.php#22264). when the script is executed, itäs too late to change sopme setting, wich includes `post_max_size`, for example. to change these values, try to use a `.htaccess`-file like this:
```
php_value upload_max_filesize 200M
p... | `post_max_size` is, according to the [documentation](http://php.net/manual/en/ini.core.php#ini.sect.data-handling), defined as a `PHP_INI_PERDIR` setting. It can be set in your php.ini or .htaccess file. A definition for `PHP_INI_PERDIR` is given here: <http://www.php.net/manual/en/configuration.changes.modes.php>
Set... |
293,722 | I made a module using dynamic rows component with imageUploader field inside. I was able to upload my image on the Magento 2.3.2, but since the new release (2.3.3), I can't pass the `valideFileId()` method in the class `\Magento\Framework\File\Uploader`.
If I take a look at the `valideFileId()` method, here is what I ... | 2019/10/24 | [
"https://magento.stackexchange.com/questions/293722",
"https://magento.stackexchange.com",
"https://magento.stackexchange.com/users/18936/"
] | In some of Mac Os versions (or maybe in all, not sure) root **"/var"** folder is a symlink which points to **"/var/private"**.
Php "opens" this symlink for tmp file path in $\_FILES archive, but sys\_get\_temp\_dir() returns configured in php.ini value (or, if not configured default value whic is **"var/tmp"** )
So for... | I found finally what was the issue. For some reason as I wrote, my `tmp_name` was `"/private/var/tmp/phpbPsgJz"` and the `$allowedFolders` are :
```
"/var/tmp/"
"/Users/me/www/magento2/pub/media"
"/Users/me/www/magento2/var"
"/Users/me/www/magento2/var/tmp"
"/Users/me/www/magento2/pub/media/upload"
```
I had to rena... |
36,517 | Following this [excellent post](https://networkengineering.stackexchange.com/q/6938/28180), doesn't it mean that if all your neighbours are using **5GHz** band, your wifi network will face interference just like the case with **2.4GHz**?
For 2.4GHz band, **1,6** *and* **11** are the recommended channels and are safe t... | 2016/11/13 | [
"https://networkengineering.stackexchange.com/questions/36517",
"https://networkengineering.stackexchange.com",
"https://networkengineering.stackexchange.com/users/28180/"
] | I'll answer Q2 first:
Suppose a PC in VLAN 100 sends a packet to a PC in VLAN 200. Let's say the packet takes the VPC link to 7K2. Since the active SVI is on 7K1, the packet is forwarded across the peer link to 7K1. 7K1 would want to forward it to the right-hand access switch, but it can't because of the loop avoidan... | After discussion with my colleague, assume If uplink 7K2 down, it means Nexus cant send packet to uplink to router. So maybe, administrator add 1 policy EEM to shutdown SVI when object tracking is down state. |
695,204 | I am trying to prove that if I have 2 paramterizations of the same curve $\gamma$ and $\sigma$ (i.e. there is continuous bijective map $\phi$ such that $\sigma = \gamma \circ \phi$) then if the curve is rectifiable $L(\gamma) = L(\sigma)$ but without using the integral formula since I do not know if $\gamma'$ exists.
... | 2014/03/01 | [
"https://math.stackexchange.com/questions/695204",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/62900/"
] | $L(\gamma)=L(\sigma)$ is obvious. The difficult thing is to prove that these suprema can be written as an integral.
Nevertheless, here is why one has $L(\gamma)=L(\sigma)$:
Both $L(\gamma)$ and $L(\sigma)$ are the sup of the same set, namely the set of all sums of the form
$$\sum\_{k=1}^N |\gamma(t\_k)-\gamma(t\_{k-... | Hint: Let $[a, b]$ and $[\alpha, \beta]$ denote the domains of $\sigma$ and $\gamma$, respectively, so that $\phi:[a, b] \to [\alpha, \beta]$ is a continuous bijection.
For each partition $\{t\_{i}\}\_{i=0}^{n}$ of $[a, b]$, there is an associated partition $\{\phi(t\_{i})\}$ of $[\alpha, \beta]$. Using this partition... |
168,004 | Let's say I live in Russia and I use Gmail. My Gmail has my phone number for recovery in case I lost my Gmail password.
Obviously if Russian police want to access my Gmail account then they can produce a SIM card for my name and receive the reset code.
So, there is not much to protect yourself. You need to keep your ... | 2017/08/22 | [
"https://security.stackexchange.com/questions/168004",
"https://security.stackexchange.com",
"https://security.stackexchange.com/users/537/"
] | If they have physical access to your SIM card, they only need to plug it into a cellphone and receive a reset code for it (supposing you have a German SIM, and a foreign government is trying to access your account, and you have roaming enabled).
They can even travel to German themselves and receive the reset code the... | If you still use this SIM card in Russia, a physical access to it is not needed. Since you are using roaming to get SMS, the SMS to your German mobile phone number will be forwarded to one of Russian operators. If the police has enough power, they can force the operator to read your SMS and delete it instead of sending... |
168,004 | Let's say I live in Russia and I use Gmail. My Gmail has my phone number for recovery in case I lost my Gmail password.
Obviously if Russian police want to access my Gmail account then they can produce a SIM card for my name and receive the reset code.
So, there is not much to protect yourself. You need to keep your ... | 2017/08/22 | [
"https://security.stackexchange.com/questions/168004",
"https://security.stackexchange.com",
"https://security.stackexchange.com/users/537/"
] | If they have physical access to your SIM card, they only need to plug it into a cellphone and receive a reset code for it (supposing you have a German SIM, and a foreign government is trying to access your account, and you have roaming enabled).
They can even travel to German themselves and receive the reset code the... | Well if its the deal with the government then it can directly contact the gmail and they can get direct access to your account or password for your account.(If its really an serious issue). |
168,004 | Let's say I live in Russia and I use Gmail. My Gmail has my phone number for recovery in case I lost my Gmail password.
Obviously if Russian police want to access my Gmail account then they can produce a SIM card for my name and receive the reset code.
So, there is not much to protect yourself. You need to keep your ... | 2017/08/22 | [
"https://security.stackexchange.com/questions/168004",
"https://security.stackexchange.com",
"https://security.stackexchange.com/users/537/"
] | The simplest answer to your question is: **NO** almost nothing (on the cloud) is secured from government.
To receive your reset code **nobody** needs to reproduce a SIM card or to have physical access to it neither to crack your 4 digits PIN, [thanks to a weakness in the design of SS7 (Signalling System 7)](http://what... | If they have physical access to your SIM card, they only need to plug it into a cellphone and receive a reset code for it (supposing you have a German SIM, and a foreign government is trying to access your account, and you have roaming enabled).
They can even travel to German themselves and receive the reset code the... |
168,004 | Let's say I live in Russia and I use Gmail. My Gmail has my phone number for recovery in case I lost my Gmail password.
Obviously if Russian police want to access my Gmail account then they can produce a SIM card for my name and receive the reset code.
So, there is not much to protect yourself. You need to keep your ... | 2017/08/22 | [
"https://security.stackexchange.com/questions/168004",
"https://security.stackexchange.com",
"https://security.stackexchange.com/users/537/"
] | The simplest answer to your question is: **NO** almost nothing (on the cloud) is secured from government.
To receive your reset code **nobody** needs to reproduce a SIM card or to have physical access to it neither to crack your 4 digits PIN, [thanks to a weakness in the design of SS7 (Signalling System 7)](http://what... | If you still use this SIM card in Russia, a physical access to it is not needed. Since you are using roaming to get SMS, the SMS to your German mobile phone number will be forwarded to one of Russian operators. If the police has enough power, they can force the operator to read your SMS and delete it instead of sending... |
168,004 | Let's say I live in Russia and I use Gmail. My Gmail has my phone number for recovery in case I lost my Gmail password.
Obviously if Russian police want to access my Gmail account then they can produce a SIM card for my name and receive the reset code.
So, there is not much to protect yourself. You need to keep your ... | 2017/08/22 | [
"https://security.stackexchange.com/questions/168004",
"https://security.stackexchange.com",
"https://security.stackexchange.com/users/537/"
] | The simplest answer to your question is: **NO** almost nothing (on the cloud) is secured from government.
To receive your reset code **nobody** needs to reproduce a SIM card or to have physical access to it neither to crack your 4 digits PIN, [thanks to a weakness in the design of SS7 (Signalling System 7)](http://what... | Well if its the deal with the government then it can directly contact the gmail and they can get direct access to your account or password for your account.(If its really an serious issue). |
31,500,571 | I want to pass an object from one window to another, what if its a complex object, it is possible to write it to cookie somehow? or only opening an saving a link to another window?
```
var link = window.open('url');
link.myVar = myObj;
```
or
```
document.cookie.set('someVar', myObj);
```
and in the other window:... | 2015/07/19 | [
"https://Stackoverflow.com/questions/31500571",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3112115/"
] | The difference lies in the calling convention. ARM uses register-based calling conventions, in which both the arguments to a function (up to a limit, after which they start spilling to the stack), and the return value, are passed in registers (for the full gory details, see the [Procedure Call Standard](http://infocent... | Take a look at the [documentation](https://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html):
>
> `-mfloat-abi=name`
> Specifies which floating-point ABI to use. Permissible values are: ‘soft’, ‘softfp’ and ‘hard’.
> Specifying ‘soft’ causes GCC to generate output containing library calls for floating-point operations. ... |
40,823,503 | I'm new in QML and i want to personalize my buttons. I succeed to change the background's color and border color. But I don't success at all to change the color of the button's text. I saw we don't use anymore "style" to change the style but "background" and I don't understand everything about it.
Thanks for your help... | 2016/11/26 | [
"https://Stackoverflow.com/questions/40823503",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5666122/"
] | According to the [doc](http://doc.qt.io/qt-5/qtquickcontrols2-customize.html#customizing-button)
```
import QtQuick 2.6
import QtQuick.Controls 2.1
Button {
id: control
text: qsTr("Button")
contentItem: Text {
text: control.text
font: control.font
opacity: enabled ? 1.0 : 0.3
... | If you just wanna change your text color, may you use html font style in your `Button` would be better. This will keeping other `Item` like button icon:
```
Button
{
//...
text: "<font color='#fefefe'>" + moudle + "</font>"
font.family: "Arial"
font.pointSize: 24
//...
}
``` |
40,823,503 | I'm new in QML and i want to personalize my buttons. I succeed to change the background's color and border color. But I don't success at all to change the color of the button's text. I saw we don't use anymore "style" to change the style but "background" and I don't understand everything about it.
Thanks for your help... | 2016/11/26 | [
"https://Stackoverflow.com/questions/40823503",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5666122/"
] | According to the [doc](http://doc.qt.io/qt-5/qtquickcontrols2-customize.html#customizing-button)
```
import QtQuick 2.6
import QtQuick.Controls 2.1
Button {
id: control
text: qsTr("Button")
contentItem: Text {
text: control.text
font: control.font
opacity: enabled ? 1.0 : 0.3
... | There is another way if you are using QML Styling. Replace 2.12 with your version of QML.
```
import QtQuick.Controls.Material 2.12
Button {
id: goToParenFolder
text: "Hi"
flat: true
Material.foreground: "red"
}
```
This button's text will be in red and others will follow Material Style coloring... |
40,823,503 | I'm new in QML and i want to personalize my buttons. I succeed to change the background's color and border color. But I don't success at all to change the color of the button's text. I saw we don't use anymore "style" to change the style but "background" and I don't understand everything about it.
Thanks for your help... | 2016/11/26 | [
"https://Stackoverflow.com/questions/40823503",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5666122/"
] | According to the [doc](http://doc.qt.io/qt-5/qtquickcontrols2-customize.html#customizing-button)
```
import QtQuick 2.6
import QtQuick.Controls 2.1
Button {
id: control
text: qsTr("Button")
contentItem: Text {
text: control.text
font: control.font
opacity: enabled ? 1.0 : 0.3
... | ```
Button {
id: control
width: 290; height: 80
opacity: down ? 0.6 : 1
background: Rectangle {
color: "#4DABFB"
radius: 50
}
Text {
id: controlText
anchors.fill: parent
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
... |
40,823,503 | I'm new in QML and i want to personalize my buttons. I succeed to change the background's color and border color. But I don't success at all to change the color of the button's text. I saw we don't use anymore "style" to change the style but "background" and I don't understand everything about it.
Thanks for your help... | 2016/11/26 | [
"https://Stackoverflow.com/questions/40823503",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5666122/"
] | The two fastest ways I found were to either use the following undocumented property:
```
Button {
....
palette.buttonText: "white"
}
```
To go even further when customizing text colors during user interaction here is the ternary in the Button source code followed by a list of the properties to set accordin... | If you just wanna change your text color, may you use html font style in your `Button` would be better. This will keeping other `Item` like button icon:
```
Button
{
//...
text: "<font color='#fefefe'>" + moudle + "</font>"
font.family: "Arial"
font.pointSize: 24
//...
}
``` |
40,823,503 | I'm new in QML and i want to personalize my buttons. I succeed to change the background's color and border color. But I don't success at all to change the color of the button's text. I saw we don't use anymore "style" to change the style but "background" and I don't understand everything about it.
Thanks for your help... | 2016/11/26 | [
"https://Stackoverflow.com/questions/40823503",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5666122/"
] | If you just wanna change your text color, may you use html font style in your `Button` would be better. This will keeping other `Item` like button icon:
```
Button
{
//...
text: "<font color='#fefefe'>" + moudle + "</font>"
font.family: "Arial"
font.pointSize: 24
//...
}
``` | ```
Button {
id: control
width: 290; height: 80
opacity: down ? 0.6 : 1
background: Rectangle {
color: "#4DABFB"
radius: 50
}
Text {
id: controlText
anchors.fill: parent
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
... |
40,823,503 | I'm new in QML and i want to personalize my buttons. I succeed to change the background's color and border color. But I don't success at all to change the color of the button's text. I saw we don't use anymore "style" to change the style but "background" and I don't understand everything about it.
Thanks for your help... | 2016/11/26 | [
"https://Stackoverflow.com/questions/40823503",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5666122/"
] | The two fastest ways I found were to either use the following undocumented property:
```
Button {
....
palette.buttonText: "white"
}
```
To go even further when customizing text colors during user interaction here is the ternary in the Button source code followed by a list of the properties to set accordin... | There is another way if you are using QML Styling. Replace 2.12 with your version of QML.
```
import QtQuick.Controls.Material 2.12
Button {
id: goToParenFolder
text: "Hi"
flat: true
Material.foreground: "red"
}
```
This button's text will be in red and others will follow Material Style coloring... |
40,823,503 | I'm new in QML and i want to personalize my buttons. I succeed to change the background's color and border color. But I don't success at all to change the color of the button's text. I saw we don't use anymore "style" to change the style but "background" and I don't understand everything about it.
Thanks for your help... | 2016/11/26 | [
"https://Stackoverflow.com/questions/40823503",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5666122/"
] | There is another way if you are using QML Styling. Replace 2.12 with your version of QML.
```
import QtQuick.Controls.Material 2.12
Button {
id: goToParenFolder
text: "Hi"
flat: true
Material.foreground: "red"
}
```
This button's text will be in red and others will follow Material Style coloring... | ```
Button {
id: control
width: 290; height: 80
opacity: down ? 0.6 : 1
background: Rectangle {
color: "#4DABFB"
radius: 50
}
Text {
id: controlText
anchors.fill: parent
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
... |
40,823,503 | I'm new in QML and i want to personalize my buttons. I succeed to change the background's color and border color. But I don't success at all to change the color of the button's text. I saw we don't use anymore "style" to change the style but "background" and I don't understand everything about it.
Thanks for your help... | 2016/11/26 | [
"https://Stackoverflow.com/questions/40823503",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5666122/"
] | The two fastest ways I found were to either use the following undocumented property:
```
Button {
....
palette.buttonText: "white"
}
```
To go even further when customizing text colors during user interaction here is the ternary in the Button source code followed by a list of the properties to set accordin... | ```
Button {
id: control
width: 290; height: 80
opacity: down ? 0.6 : 1
background: Rectangle {
color: "#4DABFB"
radius: 50
}
Text {
id: controlText
anchors.fill: parent
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
... |
55,996,690 | I am using a Tab component from the react Material-ui library. The tab appears with this weird outline on the left and right borders when the Tab element is in focus.
Is there any way to remove this active / focus outline?
Below is an image of the weird focus styling in question
[{
echo '$number == 1';
}
```
Such statement need to call multiple times. And possibly latter the statement need to change.
Can place this code in external file and the use `include`.
But better would be create variable something like
```
$variable = if($number == 1){
e... | 2013/08/01 | [
"https://Stackoverflow.com/questions/17988587",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2465936/"
] | Please use functions for reusability
```
function reuseFun($num){
if($num == 1){
return 'Number = 1';
}
else{
return 'Number != 1';
}
}
echo reuseFun(1);
``` | That won't work, but you could try this:
```
if($number == 1) {
$variable = 'number is 1';
} elseif($number == 2) {
$variable = 'number is 2';
}
echo $variable;
``` |
17,988,587 | For example if statement
```
if($number == 1){
echo '$number == 1';
}
```
Such statement need to call multiple times. And possibly latter the statement need to change.
Can place this code in external file and the use `include`.
But better would be create variable something like
```
$variable = if($number == 1){
e... | 2013/08/01 | [
"https://Stackoverflow.com/questions/17988587",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2465936/"
] | Maybe like this?
```
function checkNumber($number) {
if($number == 1){
return true;
}
}
```
And then you can use it like this:
```
if (checkNumber(1)) {
echo 'something';
}
``` | That won't work, but you could try this:
```
if($number == 1) {
$variable = 'number is 1';
} elseif($number == 2) {
$variable = 'number is 2';
}
echo $variable;
``` |
17,988,587 | For example if statement
```
if($number == 1){
echo '$number == 1';
}
```
Such statement need to call multiple times. And possibly latter the statement need to change.
Can place this code in external file and the use `include`.
But better would be create variable something like
```
$variable = if($number == 1){
e... | 2013/08/01 | [
"https://Stackoverflow.com/questions/17988587",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2465936/"
] | Use function :
```
function myTest($number) {
if($number == 1){
echo '$number == 1';
}
}
``` | That won't work, but you could try this:
```
if($number == 1) {
$variable = 'number is 1';
} elseif($number == 2) {
$variable = 'number is 2';
}
echo $variable;
``` |
17,988,587 | For example if statement
```
if($number == 1){
echo '$number == 1';
}
```
Such statement need to call multiple times. And possibly latter the statement need to change.
Can place this code in external file and the use `include`.
But better would be create variable something like
```
$variable = if($number == 1){
e... | 2013/08/01 | [
"https://Stackoverflow.com/questions/17988587",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2465936/"
] | Please use functions for reusability
```
function reuseFun($num){
if($num == 1){
return 'Number = 1';
}
else{
return 'Number != 1';
}
}
echo reuseFun(1);
``` | It is not clear what you need with the if statement, however if you need shorthand form of if use following code.
```
echo 'text '. ($number == 1 ? '$number == 1' : 'something else'). ' text';
```
[more examples](http://davidwalsh.name/php-ternary-examples)
if you need to reuse the code just put this code inside t... |
17,988,587 | For example if statement
```
if($number == 1){
echo '$number == 1';
}
```
Such statement need to call multiple times. And possibly latter the statement need to change.
Can place this code in external file and the use `include`.
But better would be create variable something like
```
$variable = if($number == 1){
e... | 2013/08/01 | [
"https://Stackoverflow.com/questions/17988587",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2465936/"
] | Maybe like this?
```
function checkNumber($number) {
if($number == 1){
return true;
}
}
```
And then you can use it like this:
```
if (checkNumber(1)) {
echo 'something';
}
``` | It is not clear what you need with the if statement, however if you need shorthand form of if use following code.
```
echo 'text '. ($number == 1 ? '$number == 1' : 'something else'). ' text';
```
[more examples](http://davidwalsh.name/php-ternary-examples)
if you need to reuse the code just put this code inside t... |
17,988,587 | For example if statement
```
if($number == 1){
echo '$number == 1';
}
```
Such statement need to call multiple times. And possibly latter the statement need to change.
Can place this code in external file and the use `include`.
But better would be create variable something like
```
$variable = if($number == 1){
e... | 2013/08/01 | [
"https://Stackoverflow.com/questions/17988587",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2465936/"
] | Use function :
```
function myTest($number) {
if($number == 1){
echo '$number == 1';
}
}
``` | It is not clear what you need with the if statement, however if you need shorthand form of if use following code.
```
echo 'text '. ($number == 1 ? '$number == 1' : 'something else'). ' text';
```
[more examples](http://davidwalsh.name/php-ternary-examples)
if you need to reuse the code just put this code inside t... |
23,863,607 | Per the documentation:
>
> Note that, even if the function indicates an error, the underlying
> descriptor is closed.
>
>
>
What are the possible errors?
Besides, if an error occurs in `socket.close()`, will the result of `socket.is_open()` always be `false` in spite of any error in `socket.close()`? | 2014/05/26 | [
"https://Stackoverflow.com/questions/23863607",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/851835/"
] | In general, when Boost.Asio depends on the OS implementation, then it will neither specify the conditions under which errors may occur nor the error codes that may be returned.
If error handling depends on the exact error code, then one can use the [BSD API mapping documentation](http://www.boost.org/doc/libs/1_58_0/d... | I haven't checked the documentation, but it makes sense if the socket has a protocol to explicitly shut down communication (think SSL).
If the shutdown sequence cannot be completed (because the endpoint is down/unreachable?) then that's an error, but the socket is still closed (so this side doesn't suffer a resource l... |
49,930,127 | I am making a login screen and my field for the email looks like the following:
`final email = new TextFormField(
keyboardType: TextInputType.emailAddress,
autofocus: false,
decoration: new InputDecoration(
hintText: "Email",
contentPadding: new EdgeInsets.fromLTRB(20.0, 10.0, 20.0, 10.0),
border: new OutlineInpu... | 2018/04/19 | [
"https://Stackoverflow.com/questions/49930127",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2412077/"
] | use focusedBorder
```
TextField(
decoration: InputDecoration(
focusedBorder: OutlineInputBorder(
borderRadius: BorderRadius.circular(8.0),
borderSide: BorderSide(width: 1, color: AppColors.redColor),
),
enabledBorder: OutlineInputBorder(
borderRad... | I have faced the same issue.
It seems your theme's accent color and screen's background color are same. Configuring a different color for accent color or background color will be fix your issue. |
64,545 | What are relation and difference between time series and regression?
For **models and assumptions**, is it correct that the regression models assume independence between the output variables for different values of the input variable, while the time series model doesn't? What are some other differences?
For **methods... | 2013/07/17 | [
"https://stats.stackexchange.com/questions/64545",
"https://stats.stackexchange.com",
"https://stats.stackexchange.com/users/1005/"
] | I really think this is a good question and deserves an answer. The link provided is written by a psychologist who is claiming that some home-brew method is a better way of doing time series analysis than Box-Jenkins. I hope that my attempt at an answer will encourage others, who are more knowledgeable about time series... | Prof. E. Parzen, perhaps somewhat envious that he didn't propose the innovative methods of Box and Jenkins, suggested this approach of over-fitting and then stepping down. It fails for many reasons (many of which Flounderer has nicely summarized), including not identifying and remedying Pulses, Level Shifts, Seasonal P... |
57,577,631 | what header line actually do in c programming?
```
#include<stdio.h>
int main ()
{
printf("Hello World!\n");
return 0;
}
```
this code gives same output with or without header line, why it is so? | 2019/08/20 | [
"https://Stackoverflow.com/questions/57577631",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11952622/"
] | The headers are just defining the prototypes, not importing anything, in C you are not actually importing the functions, etc.
When you use printf, you are just calling the standard lib libc.so (if working on linux), which will anyways print the string.
IF, you don't have an standard function, you need to declare it i... | Ok header file is like you know like library every thing is defined in header file befor you code. every thing are stored in header. |
868,330 | How to calculate the inverse laplace transform of $\frac{\omega }{\left ( s^{2}+\omega ^{2} \right )( s^{2}+\omega ^{2} )} $ ? | 2014/07/15 | [
"https://math.stackexchange.com/questions/868330",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/44821/"
] | We set out to show that the equation $\frac{1}{n} = \frac{1}{x} + \frac{1}{y}$ (for nonzero $n$, $x$, and $y$) is equivalent to $(x-n)(y-n)=n^2$:
Multiply by $nxy$ to get $xy=ny+nx$. Add $n^2$ to both sides and subtract $nx+ny$ from both sides to get $xy-nx-ny+n^2=n^2$. Then the LHS can be factored, yielding $(x-n)(y-... | This is because the equation.
$$\frac{1}{n}=\frac{1}{x}+\frac{1}{y}$$
If the square lay on multipliers. $n^2=ks$
Then the solution can be written.
$$x=n+s$$
$$y=n+k$$
Although in the General case can be any character. Though it is necessary to mention another solution.
For the equation: $$\frac{1}{X}+\frac{1}{Y}... |
26,743,491 | I'm relatively new to Python still, so feel free to let me know if there's something basic I'm missing.
In the interest of easy debugging, I've gotten in the habit of creating a show() procedure for every object I create. For example:
```
class YourMom:
def __init__(self):
self.name = ""
self.age ... | 2014/11/04 | [
"https://Stackoverflow.com/questions/26743491",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2308300/"
] | This is absolutely possible - you just have to create a PRNG which suits your purposes. It depends on exactly what you need to accomplish - I'd be happy to offer more advice if you describe your situation in more detail.
For general background, here are some resources for inverting a Linear Congruential Generator:
[Re... | In general, no. It should be **possible** for most generators if you have the full array of numbers. If you don't have all of the numbers or know which numbers you have (do you have the 12th or the 300th?), you can't figure it out at all, because you wouldn't know where to stop.
You would have to know the details of t... |
26,743,491 | I'm relatively new to Python still, so feel free to let me know if there's something basic I'm missing.
In the interest of easy debugging, I've gotten in the habit of creating a show() procedure for every object I create. For example:
```
class YourMom:
def __init__(self):
self.name = ""
self.age ... | 2014/11/04 | [
"https://Stackoverflow.com/questions/26743491",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2308300/"
] | This is absolutely possible - you just have to create a PRNG which suits your purposes. It depends on exactly what you need to accomplish - I'd be happy to offer more advice if you describe your situation in more detail.
For general background, here are some resources for inverting a Linear Congruential Generator:
[Re... | Use [the language Janus](https://en.wikipedia.org/wiki/Janus_(time-reversible_computing_programming_language)) a time-reversible language for doing reversible computing.
You could probably do something like create a program that does this (pseudo-code):
```
x = seed
x = my_Janus_prng(x)
x = reversible_modulus_op(x, N... |
40,420,927 | I am trying to pass title to html-webpack-plugin but it does not create title tag at all :(
Can somebody show me where is the problem
**webpack.js**
```
var HtmlWebpackPlugin = require('html-webpack-plugin');
var webpack = require('webpack');
module.exports = {
entry: ['./src/app/main.ts'],
output: {
... | 2016/11/04 | [
"https://Stackoverflow.com/questions/40420927",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2266992/"
] | Try this `<title><%= htmlWebpackPlugin.options.title %></title>` in your html file. For reference you can check [index.html](https://github.com/samarpanda/webpack-setup/blob/webpack-2/src/index.html#L4) file in my repos [webpack-setup](https://github.com/samarpanda/webpack-setup/tree/webpack-2). | This issue has been reported here [Title not working. #176](https://github.com/jantimon/html-webpack-plugin/issues/176)
If you want to add the dynamic `<title>` tag, you should use a template language like `ejs`, `jade`, ... |
40,420,927 | I am trying to pass title to html-webpack-plugin but it does not create title tag at all :(
Can somebody show me where is the problem
**webpack.js**
```
var HtmlWebpackPlugin = require('html-webpack-plugin');
var webpack = require('webpack');
module.exports = {
entry: ['./src/app/main.ts'],
output: {
... | 2016/11/04 | [
"https://Stackoverflow.com/questions/40420927",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2266992/"
] | This issue has been reported here [Title not working. #176](https://github.com/jantimon/html-webpack-plugin/issues/176)
If you want to add the dynamic `<title>` tag, you should use a template language like `ejs`, `jade`, ... | Have you tried inject the title tag in template html file `./src/index.html`?
```html
<!doctype html>
<html lang="en">
<head>
<noscript>
<meta http-equiv="refresh" content="0; url=https://en.wikipedia.org/wiki/JavaScript">
</noscript>
<meta http-equiv="Content-Type" content="text/html; charset=utf-... |
40,420,927 | I am trying to pass title to html-webpack-plugin but it does not create title tag at all :(
Can somebody show me where is the problem
**webpack.js**
```
var HtmlWebpackPlugin = require('html-webpack-plugin');
var webpack = require('webpack');
module.exports = {
entry: ['./src/app/main.ts'],
output: {
... | 2016/11/04 | [
"https://Stackoverflow.com/questions/40420927",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2266992/"
] | This issue has been reported here [Title not working. #176](https://github.com/jantimon/html-webpack-plugin/issues/176)
If you want to add the dynamic `<title>` tag, you should use a template language like `ejs`, `jade`, ... | In Webpack insert this configuration
```
{
test: /\.(index.html)$/,
use: [
{loader: "file-loader"},
{ loader: "extract-loader" },
{
loader: 'html-loader',
options: {
attrs: [':data-src']
}
}]
}
```
Insure this configuration:
```
new HtmlWebpackPlugin({
tit... |
40,420,927 | I am trying to pass title to html-webpack-plugin but it does not create title tag at all :(
Can somebody show me where is the problem
**webpack.js**
```
var HtmlWebpackPlugin = require('html-webpack-plugin');
var webpack = require('webpack');
module.exports = {
entry: ['./src/app/main.ts'],
output: {
... | 2016/11/04 | [
"https://Stackoverflow.com/questions/40420927",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2266992/"
] | Try this `<title><%= htmlWebpackPlugin.options.title %></title>` in your html file. For reference you can check [index.html](https://github.com/samarpanda/webpack-setup/blob/webpack-2/src/index.html#L4) file in my repos [webpack-setup](https://github.com/samarpanda/webpack-setup/tree/webpack-2). | Have you tried inject the title tag in template html file `./src/index.html`?
```html
<!doctype html>
<html lang="en">
<head>
<noscript>
<meta http-equiv="refresh" content="0; url=https://en.wikipedia.org/wiki/JavaScript">
</noscript>
<meta http-equiv="Content-Type" content="text/html; charset=utf-... |
40,420,927 | I am trying to pass title to html-webpack-plugin but it does not create title tag at all :(
Can somebody show me where is the problem
**webpack.js**
```
var HtmlWebpackPlugin = require('html-webpack-plugin');
var webpack = require('webpack');
module.exports = {
entry: ['./src/app/main.ts'],
output: {
... | 2016/11/04 | [
"https://Stackoverflow.com/questions/40420927",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2266992/"
] | Try this `<title><%= htmlWebpackPlugin.options.title %></title>` in your html file. For reference you can check [index.html](https://github.com/samarpanda/webpack-setup/blob/webpack-2/src/index.html#L4) file in my repos [webpack-setup](https://github.com/samarpanda/webpack-setup/tree/webpack-2). | In Webpack insert this configuration
```
{
test: /\.(index.html)$/,
use: [
{loader: "file-loader"},
{ loader: "extract-loader" },
{
loader: 'html-loader',
options: {
attrs: [':data-src']
}
}]
}
```
Insure this configuration:
```
new HtmlWebpackPlugin({
tit... |
40,420,927 | I am trying to pass title to html-webpack-plugin but it does not create title tag at all :(
Can somebody show me where is the problem
**webpack.js**
```
var HtmlWebpackPlugin = require('html-webpack-plugin');
var webpack = require('webpack');
module.exports = {
entry: ['./src/app/main.ts'],
output: {
... | 2016/11/04 | [
"https://Stackoverflow.com/questions/40420927",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2266992/"
] | In Webpack insert this configuration
```
{
test: /\.(index.html)$/,
use: [
{loader: "file-loader"},
{ loader: "extract-loader" },
{
loader: 'html-loader',
options: {
attrs: [':data-src']
}
}]
}
```
Insure this configuration:
```
new HtmlWebpackPlugin({
tit... | Have you tried inject the title tag in template html file `./src/index.html`?
```html
<!doctype html>
<html lang="en">
<head>
<noscript>
<meta http-equiv="refresh" content="0; url=https://en.wikipedia.org/wiki/JavaScript">
</noscript>
<meta http-equiv="Content-Type" content="text/html; charset=utf-... |
20,340 | I am wondering where I should place adverts for my site. I understand a bit about human computer interaction. So I am assuming that the adverts need to be positioned in places where they will catch the users attention to be clicked. I also know that adverts can be very irritating. I am wondering what the best position ... | 2012/04/20 | [
"https://ux.stackexchange.com/questions/20340",
"https://ux.stackexchange.com",
"https://ux.stackexchange.com/users/13888/"
] | Alex Kirtland just recently published an article which discribes 10 good rules on advertisement on websites in his article [Ads Are Here To Stay: Planning For Ad Placement](http://www.boxesandarrows.com/view/ads_are_here_to_stay_planning_for_ad_placement):
>
> 1. Wrap the ad
> 2. Cluster the ads
> 3. Use leaderboards... | You might be aware of this phenomenon known as "banner blindness" <http://www.useit.com/alertbox/banner-blindness.html>
Essentially, it means users do not look at anything that resembles an ad banner like those often seen on the top and sides of pages.
Instead, you might try to integrate "paid content" or relevant ad... |
20,340 | I am wondering where I should place adverts for my site. I understand a bit about human computer interaction. So I am assuming that the adverts need to be positioned in places where they will catch the users attention to be clicked. I also know that adverts can be very irritating. I am wondering what the best position ... | 2012/04/20 | [
"https://ux.stackexchange.com/questions/20340",
"https://ux.stackexchange.com",
"https://ux.stackexchange.com/users/13888/"
] | Alex Kirtland just recently published an article which discribes 10 good rules on advertisement on websites in his article [Ads Are Here To Stay: Planning For Ad Placement](http://www.boxesandarrows.com/view/ads_are_here_to_stay_planning_for_ad_placement):
>
> 1. Wrap the ad
> 2. Cluster the ads
> 3. Use leaderboards... | User Experience and Marketing are often at odds with each other. While ad placement should obviously not interfere with the usefulness of the site, ads are often there to make sure the site stays in business.
The key is really to focus on good user experience of the ads. Are they contextually appropriate? Written well... |
20,340 | I am wondering where I should place adverts for my site. I understand a bit about human computer interaction. So I am assuming that the adverts need to be positioned in places where they will catch the users attention to be clicked. I also know that adverts can be very irritating. I am wondering what the best position ... | 2012/04/20 | [
"https://ux.stackexchange.com/questions/20340",
"https://ux.stackexchange.com",
"https://ux.stackexchange.com/users/13888/"
] | User Experience and Marketing are often at odds with each other. While ad placement should obviously not interfere with the usefulness of the site, ads are often there to make sure the site stays in business.
The key is really to focus on good user experience of the ads. Are they contextually appropriate? Written well... | You might be aware of this phenomenon known as "banner blindness" <http://www.useit.com/alertbox/banner-blindness.html>
Essentially, it means users do not look at anything that resembles an ad banner like those often seen on the top and sides of pages.
Instead, you might try to integrate "paid content" or relevant ad... |
8,358 | I am a beginner in statistics with just basic knowledge. I have these data: cases, deaths and CFR (Case Fatality Rate-deaths per 100 cases) of a disease for 17 years (1994-2010) from 2 neighbouring states where people can walk across the states freely. This is a population based cohort study.
Data are available from 1... | 2011/03/16 | [
"https://stats.stackexchange.com/questions/8358",
"https://stats.stackexchange.com",
"https://stats.stackexchange.com/users/2956/"
] | I don't know why I took the time to answer this. Is it because I can or maybe it's because DrWho seems to think it is very important. In either case ....
Though well intentioned
“Time series expert modeler of IBM SPSS Forecast v19 was used. Both exponential smoothening models and ARIMA models were examined.Outliers w... | What time-lag might you expect between cases recorded, and fatality? What time-lag between start of treatment and impact on fatality rates?
If either of those numbers is much greater than one year, then there may be a case for aggregating all your data from first year of treatment impact (i.e. 1996+time to impact) to ... |
8,358 | I am a beginner in statistics with just basic knowledge. I have these data: cases, deaths and CFR (Case Fatality Rate-deaths per 100 cases) of a disease for 17 years (1994-2010) from 2 neighbouring states where people can walk across the states freely. This is a population based cohort study.
Data are available from 1... | 2011/03/16 | [
"https://stats.stackexchange.com/questions/8358",
"https://stats.stackexchange.com",
"https://stats.stackexchange.com/users/2956/"
] | First, you need to decide what questions you want to ask. Are you comparing the states, year by year? Are you looking at changes within state by year? Are you comparing the three variables, within states? Are you doing something else?
To help make this decision I would make a line graph like @CaseyTsui suggested. As Y... | What time-lag might you expect between cases recorded, and fatality? What time-lag between start of treatment and impact on fatality rates?
If either of those numbers is much greater than one year, then there may be a case for aggregating all your data from first year of treatment impact (i.e. 1996+time to impact) to ... |
8,358 | I am a beginner in statistics with just basic knowledge. I have these data: cases, deaths and CFR (Case Fatality Rate-deaths per 100 cases) of a disease for 17 years (1994-2010) from 2 neighbouring states where people can walk across the states freely. This is a population based cohort study.
Data are available from 1... | 2011/03/16 | [
"https://stats.stackexchange.com/questions/8358",
"https://stats.stackexchange.com",
"https://stats.stackexchange.com/users/2956/"
] | I don't know why I took the time to answer this. Is it because I can or maybe it's because DrWho seems to think it is very important. In either case ....
Though well intentioned
“Time series expert modeler of IBM SPSS Forecast v19 was used. Both exponential smoothening models and ARIMA models were examined.Outliers w... | To represent the data visually, you can do a simple line graph:
x-axis: year
y-axis: CFR
Stratify by state.
For a test statistic determining whether the CFRs for each state are significantly different from each other over time, you could do an ANOVA between Year, CFR, and State as the third variable. You'd have to ... |
8,358 | I am a beginner in statistics with just basic knowledge. I have these data: cases, deaths and CFR (Case Fatality Rate-deaths per 100 cases) of a disease for 17 years (1994-2010) from 2 neighbouring states where people can walk across the states freely. This is a population based cohort study.
Data are available from 1... | 2011/03/16 | [
"https://stats.stackexchange.com/questions/8358",
"https://stats.stackexchange.com",
"https://stats.stackexchange.com/users/2956/"
] | I don't know why I took the time to answer this. Is it because I can or maybe it's because DrWho seems to think it is very important. In either case ....
Though well intentioned
“Time series expert modeler of IBM SPSS Forecast v19 was used. Both exponential smoothening models and ARIMA models were examined.Outliers w... | First, you need to decide what questions you want to ask. Are you comparing the states, year by year? Are you looking at changes within state by year? Are you comparing the three variables, within states? Are you doing something else?
To help make this decision I would make a line graph like @CaseyTsui suggested. As Y... |
8,358 | I am a beginner in statistics with just basic knowledge. I have these data: cases, deaths and CFR (Case Fatality Rate-deaths per 100 cases) of a disease for 17 years (1994-2010) from 2 neighbouring states where people can walk across the states freely. This is a population based cohort study.
Data are available from 1... | 2011/03/16 | [
"https://stats.stackexchange.com/questions/8358",
"https://stats.stackexchange.com",
"https://stats.stackexchange.com/users/2956/"
] | I don't know why I took the time to answer this. Is it because I can or maybe it's because DrWho seems to think it is very important. In either case ....
Though well intentioned
“Time series expert modeler of IBM SPSS Forecast v19 was used. Both exponential smoothening models and ARIMA models were examined.Outliers w... | With only just these two cases, you cannot reliably estimate a treatment effect, but you can summarize your data as follows, assuming that the the number of deaths is a draw from a Poisson distribution.
$$
\begin{align}
&\Pr(\text{Deaths}\_{it}) = \lambda\_{it}(\text{Cases}\_{it}) \\
&\ln(\lambda\_{it}) = \beta\_{0... |
8,358 | I am a beginner in statistics with just basic knowledge. I have these data: cases, deaths and CFR (Case Fatality Rate-deaths per 100 cases) of a disease for 17 years (1994-2010) from 2 neighbouring states where people can walk across the states freely. This is a population based cohort study.
Data are available from 1... | 2011/03/16 | [
"https://stats.stackexchange.com/questions/8358",
"https://stats.stackexchange.com",
"https://stats.stackexchange.com/users/2956/"
] | I don't know why I took the time to answer this. Is it because I can or maybe it's because DrWho seems to think it is very important. In either case ....
Though well intentioned
“Time series expert modeler of IBM SPSS Forecast v19 was used. Both exponential smoothening models and ARIMA models were examined.Outliers w... | Alternative 1. Estimate and compare the stochastic properties of the series (test of equal level, trend etc). Alternative 2. If independence between years (independent samples), you can rank between treatments, i.e. treatment with lowest death rate = 1, otherwise 0 which gives you a digitom dependent variable. Then use... |
8,358 | I am a beginner in statistics with just basic knowledge. I have these data: cases, deaths and CFR (Case Fatality Rate-deaths per 100 cases) of a disease for 17 years (1994-2010) from 2 neighbouring states where people can walk across the states freely. This is a population based cohort study.
Data are available from 1... | 2011/03/16 | [
"https://stats.stackexchange.com/questions/8358",
"https://stats.stackexchange.com",
"https://stats.stackexchange.com/users/2956/"
] | First, you need to decide what questions you want to ask. Are you comparing the states, year by year? Are you looking at changes within state by year? Are you comparing the three variables, within states? Are you doing something else?
To help make this decision I would make a line graph like @CaseyTsui suggested. As Y... | To represent the data visually, you can do a simple line graph:
x-axis: year
y-axis: CFR
Stratify by state.
For a test statistic determining whether the CFRs for each state are significantly different from each other over time, you could do an ANOVA between Year, CFR, and State as the third variable. You'd have to ... |
8,358 | I am a beginner in statistics with just basic knowledge. I have these data: cases, deaths and CFR (Case Fatality Rate-deaths per 100 cases) of a disease for 17 years (1994-2010) from 2 neighbouring states where people can walk across the states freely. This is a population based cohort study.
Data are available from 1... | 2011/03/16 | [
"https://stats.stackexchange.com/questions/8358",
"https://stats.stackexchange.com",
"https://stats.stackexchange.com/users/2956/"
] | First, you need to decide what questions you want to ask. Are you comparing the states, year by year? Are you looking at changes within state by year? Are you comparing the three variables, within states? Are you doing something else?
To help make this decision I would make a line graph like @CaseyTsui suggested. As Y... | With only just these two cases, you cannot reliably estimate a treatment effect, but you can summarize your data as follows, assuming that the the number of deaths is a draw from a Poisson distribution.
$$
\begin{align}
&\Pr(\text{Deaths}\_{it}) = \lambda\_{it}(\text{Cases}\_{it}) \\
&\ln(\lambda\_{it}) = \beta\_{0... |
8,358 | I am a beginner in statistics with just basic knowledge. I have these data: cases, deaths and CFR (Case Fatality Rate-deaths per 100 cases) of a disease for 17 years (1994-2010) from 2 neighbouring states where people can walk across the states freely. This is a population based cohort study.
Data are available from 1... | 2011/03/16 | [
"https://stats.stackexchange.com/questions/8358",
"https://stats.stackexchange.com",
"https://stats.stackexchange.com/users/2956/"
] | First, you need to decide what questions you want to ask. Are you comparing the states, year by year? Are you looking at changes within state by year? Are you comparing the three variables, within states? Are you doing something else?
To help make this decision I would make a line graph like @CaseyTsui suggested. As Y... | Alternative 1. Estimate and compare the stochastic properties of the series (test of equal level, trend etc). Alternative 2. If independence between years (independent samples), you can rank between treatments, i.e. treatment with lowest death rate = 1, otherwise 0 which gives you a digitom dependent variable. Then use... |
45,433,839 | I wrote configuration of fish shell like this:
```
# One or more argument(s) will be given
function run
set -l src $argv[1]
set -l var
switch "$src"
case *
set var "$src"
end
echo $var
end
```
I expected the first argument is printed in any case if one or more argument is give... | 2017/08/01 | [
"https://Stackoverflow.com/questions/45433839",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3294274/"
] | The `*` in `case *` is interpreted as a glob. Quote it if you do not want that. | Faho already answered your question but I wanted to point out that your approach is more complicated than necessary. If you just want to print the first argument if one or more were provided do this:
```
set -q argv[1]
and echo $argv[1]
```
The first statement checks if `argv` has at least one value. The second echo... |
113,909 | I've seriously never encountered what I just have, nor have I had to ever ponder this before. I am taking an international business class where we have to write six papers and six journals. I am currently writing my third paper and am now stuck here. One of the criteria for the last paper I wrote was to explain the cul... | 2018/07/19 | [
"https://academia.stackexchange.com/questions/113909",
"https://academia.stackexchange.com",
"https://academia.stackexchange.com/users/96152/"
] | There are two issues to consider, self-plagiarism and meeting the course requirements.
The [existing answer](https://academia.stackexchange.com/a/113911/10220) deals effectively with the self-plagiarism issue. If you quote and attribute just as you would for something written by someone else, you are not plagiarizing.... | The correct way to use your old work and protect yourself from a charge of self-plagiarism is to treat your old work just as you would any other piece of related work. In other words, quote yourself properly and provide a proper reference to the old work.
This actually simplifies your job since you don't need to say ... |
172,689 | In *The Prisoner of Azkaban*, Slytherin rearranged their match with Gryffindor due to their Seeker, Draco, being injured and Gryffindor played against Hufflepuff. Why didn't they rearrange the final match in *The Philosopher's Stone* to a date when their Seeker, Harry, would have recovered by? | 2017/10/26 | [
"https://scifi.stackexchange.com/questions/172689",
"https://scifi.stackexchange.com",
"https://scifi.stackexchange.com/users/91569/"
] | The answer is present within your question.
The rescheduled match was in the first round and so the dates of Gryffindor's matches with Slytherin and Hufflepuff were simply swapped. This wouldn't have been possible with the final match since there was no other match that it could be swapped with this since the school ... | As far as I remember the final match which took place in the first book while Harry was unconscious after his fight with Quirrell, which was 3 days. And when he woke up it was the day before the school was ending. So I don't think they had too many options to postpone the match since it was the last week of school. Als... |
172,689 | In *The Prisoner of Azkaban*, Slytherin rearranged their match with Gryffindor due to their Seeker, Draco, being injured and Gryffindor played against Hufflepuff. Why didn't they rearrange the final match in *The Philosopher's Stone* to a date when their Seeker, Harry, would have recovered by? | 2017/10/26 | [
"https://scifi.stackexchange.com/questions/172689",
"https://scifi.stackexchange.com",
"https://scifi.stackexchange.com/users/91569/"
] | It was the end of the school year - there wasn't enough time.
=============================================================
After his fight with Quirrell and the Dark Lord, Harry spends three days in a coma in the hospital wing.
>
> “How long have I been in here?’
>
>
> ‘Three days. Mr Ronald Weasley and Miss Gran... | As far as I remember the final match which took place in the first book while Harry was unconscious after his fight with Quirrell, which was 3 days. And when he woke up it was the day before the school was ending. So I don't think they had too many options to postpone the match since it was the last week of school. Als... |
67,908,990 | I’ve used wp all in one plugin to migrate my site to aws lightsail. However, it also migrated the old credentials which was owned by the previous webhosting company. I’m not able to obtain those credentials. In this case, how can I reset my user and password to my new Wordpress? My lightsail ssh has a bitanami interfac... | 2021/06/09 | [
"https://Stackoverflow.com/questions/67908990",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13458882/"
] | You should use wp cli for resetting password.
* First install [wp cli](https://wp-cli.org/#installing)
* Run `wp user list --role=administrator` to get administrator user id
* Run `wp user update 1 --user_pass=newpass` to reset password. | if you have ssh access you can change the password by following MySQL query
`UPDATE wp_users SET user_pass = MD5('your-new-password') WHERE ID = 'any-admin-ID'`
Or if you don't know any administrator account you can create one By
`INSERT INTO wp_users (ID, user_login, user_pass, user_nicename, user_email, user_url, ... |
67,908,990 | I’ve used wp all in one plugin to migrate my site to aws lightsail. However, it also migrated the old credentials which was owned by the previous webhosting company. I’m not able to obtain those credentials. In this case, how can I reset my user and password to my new Wordpress? My lightsail ssh has a bitanami interfac... | 2021/06/09 | [
"https://Stackoverflow.com/questions/67908990",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13458882/"
] | You should use wp cli for resetting password.
* First install [wp cli](https://wp-cli.org/#installing)
* Run `wp user list --role=administrator` to get administrator user id
* Run `wp user update 1 --user_pass=newpass` to reset password. | I tried these codes in Lightsail, but it didn't work, so I found a way.
```
mysql -u root -p bitnami_wordpress -e "..."
mysql -u root -p bitnami_wordpress -e
"INSERT INTO wp_usermeta(
umeta_id, user_id, meta_key, meta_value
) VALUES (
NULL, '4', 'wp_capabilities', 'a:1:{s:13:"administrator";s: 1:"1";}'
);"
``` |
233,955 | I want to change my ubuntu 12.04 login screen. I tried using ubuntu tweak and lightdm manager but none of them worked.After changing the image in tweak,I logged and changed the desktop image but nothing changed.While using lightdm manager too no changes were seen. | 2012/12/29 | [
"https://askubuntu.com/questions/233955",
"https://askubuntu.com",
"https://askubuntu.com/users/117409/"
] | as I came to know from the google , it happens some times and will be solved by the updates . Until that ,you can shutdown your PC from the terminal with
```
sudo shutdown -h now
```
Here's some background info: [Shutdown/suspend/hibernate not working correctly](https://askubuntu.com/q/73365/89042) | Press `Alt``F1` (or F2, F3, F4, etc.) to open a text terminal.
Login, using a user and password with **sudo** rights.
Then just type:
```
sudo shutdown -P now
```
***This forces a halt and power-down.*** |
233,955 | I want to change my ubuntu 12.04 login screen. I tried using ubuntu tweak and lightdm manager but none of them worked.After changing the image in tweak,I logged and changed the desktop image but nothing changed.While using lightdm manager too no changes were seen. | 2012/12/29 | [
"https://askubuntu.com/questions/233955",
"https://askubuntu.com",
"https://askubuntu.com/users/117409/"
] | as I came to know from the google , it happens some times and will be solved by the updates . Until that ,you can shutdown your PC from the terminal with
```
sudo shutdown -h now
```
Here's some background info: [Shutdown/suspend/hibernate not working correctly](https://askubuntu.com/q/73365/89042) | Use `poweroff` command or `init 0` to shutdown the system |
9,818,567 | I get a problem about returning phone keypads.
For instance, if I input 1-80-0Apple, it will return 1-80-027753.
Could somebody tell me how to figure out this one? | 2012/03/22 | [
"https://Stackoverflow.com/questions/9818567",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1243992/"
] | If you are going to deal with different formats for phone numbers entered by users I would suggest that you use Google's libphonenumber (<http://code.google.com/p/libphonenumber/>). It has lots of utilities for handling phone numbers.
For the case that you ask, you can do this:
```
String phoneNumber = PhoneNumberUti... | Maintain a lookup table between letters and numbers:
```
A -> 2
B -> 2
C -> 2
D -> 3
etc
```
Then loop through each letter in the number and replace it with the corresponding number. |
8,989,857 | I am trying to display an html element, but it has to have the inline attribute. The second line in my code breaks the html page:
```
$('#add_existing_suggestion').fadeIn(100).show();
$('#add_existing_suggestion').css("display":"inline");
```
I saw on this forum that it worked for peo... | 2012/01/24 | [
"https://Stackoverflow.com/questions/8989857",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/731255/"
] | `css` method take two arguments as string or a map containing key/value pair of styles. What you are doing will give a syntax error on the page and will break other js also. Try this
```
$('#add_existing_suggestion').css("display", "inline");
``` | Your syntax is incorrect. The syntax for .css() is:
```
.css( propertyName )
.css( propertyName, value )
```
Change it to `$('#add_existing_suggestion').css("display", "inline");` |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.