qid int64 1 74.7M | question stringlengths 0 58.3k | date stringlengths 10 10 | metadata list | response_j stringlengths 2 48.3k | response_k stringlengths 2 40.5k |
|---|---|---|---|---|---|
459,592 | I have winXP LibreOffice and MS office installed.
How do I make LibreOffice the default opening program for all of its know document types?
I know that I can change one extension at a time. But is there a way to change all of them?
I want LibreOffice to open .doc .xls and ... (I do not know all of them) | 2012/08/09 | [
"https://superuser.com/questions/459592",
"https://superuser.com",
"https://superuser.com/users/114476/"
] | 'Modify' worked for me. Thanks!
On Windows Vista:
* click START
* Settings
* Control Panel
* Programs
* Programs and Features
* Uninstall a Program
* Select the right program from the list
* click 'change'
* follow instructions. | For me it worked to just use the "default apps" in windows system settings.
just hit start and type default apps |
459,592 | I have winXP LibreOffice and MS office installed.
How do I make LibreOffice the default opening program for all of its know document types?
I know that I can change one extension at a time. But is there a way to change all of them?
I want LibreOffice to open .doc .xls and ... (I do not know all of them) | 2012/08/09 | [
"https://superuser.com/questions/459592",
"https://superuser.com",
"https://superuser.com/users/114476/"
] | To make office libre the default reader for all your documents:
Right click any document, tap Properties. A box opens that enables you to change the opener to office libre. Do this for a couple documents and OL magically becomes the default opener for all docs of the same type This works for windows 10 at least. | For me it worked to just use the "default apps" in windows system settings.
just hit start and type default apps |
71,391,657 | I would like to add a 301 redirect when users visit a specific page and redirect them to a PDF file.
In my **.htaccess** file I tried something like this this but it gives me a 404 error. However if I visit the path, the PDF it's there
```
Redirect 301 /subpage https://www.mywebsite/upload/files/file.pdf
```
What a... | 2022/03/08 | [
"https://Stackoverflow.com/questions/71391657",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16886893/"
] | Redirect in htaccess does not matter if it is a pdf file or anything else just a **valid link**.
This is an example of a 301 redirect code to the link you want
`RedirectMatch 301 /subpage/ <https://www.mywebsite.com/upload/files/file.pdf>` | To target an HTML link to a specific page in a PDF file, add #page=[page number] to the end of the link's URL.
For example, this HTML tag opens page 4 of a PDF file named myfile.pdf:
```
<A HREF="http://www.example.com/myfile.pdf#page=4">
```
---
And If you want to redirect a single page to another you just need t... |
71,391,657 | I would like to add a 301 redirect when users visit a specific page and redirect them to a PDF file.
In my **.htaccess** file I tried something like this this but it gives me a 404 error. However if I visit the path, the PDF it's there
```
Redirect 301 /subpage https://www.mywebsite/upload/files/file.pdf
```
What a... | 2022/03/08 | [
"https://Stackoverflow.com/questions/71391657",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16886893/"
] | You are getting a `404` probably because the URI `/subpage` doesn't exist or map to an existent file. The `Redirect` you are using doesn't redirect the `/subpage` to the PDF location because your WordPress `RewriteRules` override it. If you want to fix it , you will need to use `RewriteRule` directive instead of `Redir... | To target an HTML link to a specific page in a PDF file, add #page=[page number] to the end of the link's URL.
For example, this HTML tag opens page 4 of a PDF file named myfile.pdf:
```
<A HREF="http://www.example.com/myfile.pdf#page=4">
```
---
And If you want to redirect a single page to another you just need t... |
71,391,657 | I would like to add a 301 redirect when users visit a specific page and redirect them to a PDF file.
In my **.htaccess** file I tried something like this this but it gives me a 404 error. However if I visit the path, the PDF it's there
```
Redirect 301 /subpage https://www.mywebsite/upload/files/file.pdf
```
What a... | 2022/03/08 | [
"https://Stackoverflow.com/questions/71391657",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16886893/"
] | You are getting a `404` probably because the URI `/subpage` doesn't exist or map to an existent file. The `Redirect` you are using doesn't redirect the `/subpage` to the PDF location because your WordPress `RewriteRules` override it. If you want to fix it , you will need to use `RewriteRule` directive instead of `Redir... | Redirect in htaccess does not matter if it is a pdf file or anything else just a **valid link**.
This is an example of a 301 redirect code to the link you want
`RedirectMatch 301 /subpage/ <https://www.mywebsite.com/upload/files/file.pdf>` |
23,761,425 | I searched, but I didn't find an answer. I have a RESTful API to manage a basic CRUD. I'm trying to create an update method using PUT, but I can't retrieve the params values. I'm using [Postman](https://chrome.google.com/webstore/detail/postman-rest-client/fdmmgilgnpjigdojojpjoooidkmcomcm) to make the requests, my requ... | 2014/05/20 | [
"https://Stackoverflow.com/questions/23761425",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2684718/"
] | I had the same problem. Firstly, I was sending PUT data with the Postman option to encode it as "form-data", that's why Slim wasn't getting the param values.
As it is explained in [W3](http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.2), the content type "multipart/form-data" should be used for submitting fo... | `$app->request->put()` is returning a null value...
so u can use try `$app->request->params` instead |
194,719 | I was doing some investigation into trig functions using compound angles recently, and noticed that the results are really long and tedious to write:
$$
\cos(A+B) = \cos A \cos B - \sin A \sin B \\
\cos(A-B) = \cos A \cos B + \sin A \sin B \\
\sin(A+B) = \sin A \cos B + \sin B \cos A \\
\sin(A-B) = \sin A \cos B - \sin... | 2019/10/22 | [
"https://codegolf.stackexchange.com/questions/194719",
"https://codegolf.stackexchange.com",
"https://codegolf.stackexchange.com/users/78850/"
] | [05AB1E](https://github.com/Adriandmen/05AB1E/wiki/Commands), 63 [bytes](https://github.com/Adriandmen/05AB1E/wiki/Codepage)
============================================================================================================================
```
UÇ`θiVεY€…(ÿ)«}ëDg©DIgα+>∍Œ®ùεζεðK'(ýyðå≠i')«]Dg≠iJ}¸˜Xý³gIg*Ā×
... | JavaScript (ES6), ~~174~~ 171 bytes
===================================
```javascript
(d,o,f,v,g=(f,V=v)=>f?V.map(v=>f+`(${v})`):V)=>f+f&&v+v?(d<'»'?f[1]?f.map(f=>g(f).join``):g(f[0]):v.map((_,i)=>v.map((_,j)=>g(f[j],[v[i++%v.length]])).join``)).join(o):''
```
[Try it online!](https://tio.run/##nZJdboMwDMffewoUbSUeK... |
194,719 | I was doing some investigation into trig functions using compound angles recently, and noticed that the results are really long and tedious to write:
$$
\cos(A+B) = \cos A \cos B - \sin A \sin B \\
\cos(A-B) = \cos A \cos B + \sin A \sin B \\
\sin(A+B) = \sin A \cos B + \sin B \cos A \\
\sin(A-B) = \sin A \cos B - \sin... | 2019/10/22 | [
"https://codegolf.stackexchange.com/questions/194719",
"https://codegolf.stackexchange.com",
"https://codegolf.stackexchange.com/users/78850/"
] | JavaScript (ES6), ~~174~~ 171 bytes
===================================
```javascript
(d,o,f,v,g=(f,V=v)=>f?V.map(v=>f+`(${v})`):V)=>f+f&&v+v?(d<'»'?f[1]?f.map(f=>g(f).join``):g(f[0]):v.map((_,i)=>v.map((_,j)=>g(f[j],[v[i++%v.length]])).join``)).join(o):''
```
[Try it online!](https://tio.run/##nZJdboMwDMffewoUbSUeK... | [Python 2](https://docs.python.org/2/), ~~179~~ ~~190~~ 194 bytes
=================================================================
```python
lambda d,o,F,V,S='%s(%s)':(o*(o>'*')).join([(''.join(S%(u,v)for v in V)for u in F if V),(''.join(map(lambda u,v:v and u and S%(u,v)or v or'',F,(V+V)[i:i+len(V)]))for i in range(... |
194,719 | I was doing some investigation into trig functions using compound angles recently, and noticed that the results are really long and tedious to write:
$$
\cos(A+B) = \cos A \cos B - \sin A \sin B \\
\cos(A-B) = \cos A \cos B + \sin A \sin B \\
\sin(A+B) = \sin A \cos B + \sin B \cos A \\
\sin(A-B) = \sin A \cos B - \sin... | 2019/10/22 | [
"https://codegolf.stackexchange.com/questions/194719",
"https://codegolf.stackexchange.com",
"https://codegolf.stackexchange.com/users/78850/"
] | JavaScript (ES6), ~~174~~ 171 bytes
===================================
```javascript
(d,o,f,v,g=(f,V=v)=>f?V.map(v=>f+`(${v})`):V)=>f+f&&v+v?(d<'»'?f[1]?f.map(f=>g(f).join``):g(f[0]):v.map((_,i)=>v.map((_,j)=>g(f[j],[v[i++%v.length]])).join``)).join(o):''
```
[Try it online!](https://tio.run/##nZJdboMwDMffewoUbSUeK... | [C# (Visual C# Interactive Compiler)](http://www.mono-project.com/docs/about-mono/releases/5.0.0/#csc), 177 bytes
=================================================================================================================
```cs
(d,o,f,v)=>string.Join(o=="*"?"":o,d<61?f.Select(l=>v.Aggregate("",(a,b)=>a+l+$"({b})... |
194,719 | I was doing some investigation into trig functions using compound angles recently, and noticed that the results are really long and tedious to write:
$$
\cos(A+B) = \cos A \cos B - \sin A \sin B \\
\cos(A-B) = \cos A \cos B + \sin A \sin B \\
\sin(A+B) = \sin A \cos B + \sin B \cos A \\
\sin(A-B) = \sin A \cos B - \sin... | 2019/10/22 | [
"https://codegolf.stackexchange.com/questions/194719",
"https://codegolf.stackexchange.com",
"https://codegolf.stackexchange.com/users/78850/"
] | [05AB1E](https://github.com/Adriandmen/05AB1E/wiki/Commands), 63 [bytes](https://github.com/Adriandmen/05AB1E/wiki/Codepage)
============================================================================================================================
```
UÇ`θiVεY€…(ÿ)«}ëDg©DIgα+>∍Œ®ùεζεðK'(ýyðå≠i')«]Dg≠iJ}¸˜Xý³gIg*Ā×
... | [Python 2](https://docs.python.org/2/), ~~179~~ ~~190~~ 194 bytes
=================================================================
```python
lambda d,o,F,V,S='%s(%s)':(o*(o>'*')).join([(''.join(S%(u,v)for v in V)for u in F if V),(''.join(map(lambda u,v:v and u and S%(u,v)or v or'',F,(V+V)[i:i+len(V)]))for i in range(... |
194,719 | I was doing some investigation into trig functions using compound angles recently, and noticed that the results are really long and tedious to write:
$$
\cos(A+B) = \cos A \cos B - \sin A \sin B \\
\cos(A-B) = \cos A \cos B + \sin A \sin B \\
\sin(A+B) = \sin A \cos B + \sin B \cos A \\
\sin(A-B) = \sin A \cos B - \sin... | 2019/10/22 | [
"https://codegolf.stackexchange.com/questions/194719",
"https://codegolf.stackexchange.com",
"https://codegolf.stackexchange.com/users/78850/"
] | [05AB1E](https://github.com/Adriandmen/05AB1E/wiki/Commands), 63 [bytes](https://github.com/Adriandmen/05AB1E/wiki/Codepage)
============================================================================================================================
```
UÇ`θiVεY€…(ÿ)«}ëDg©DIgα+>∍Œ®ùεζεðK'(ýyðå≠i')«]Dg≠iJ}¸˜Xý³gIg*Ā×
... | [C# (Visual C# Interactive Compiler)](http://www.mono-project.com/docs/about-mono/releases/5.0.0/#csc), 177 bytes
=================================================================================================================
```cs
(d,o,f,v)=>string.Join(o=="*"?"":o,d<61?f.Select(l=>v.Aggregate("",(a,b)=>a+l+$"({b})... |
5,727,640 | I am using SharedPreference to store the state of checkboxes but even i am storing true in it , its still retrieving false.
Here is my code -
```
@Override
public void onPause()
{
super.onPause();
saveState();
}
@Override
public void onResume()
{
super.onResume();
loadState();
}
@Override
public v... | 2011/04/20 | [
"https://Stackoverflow.com/questions/5727640",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/664512/"
] | I did something similar a while back.
Assuming that you want your images displayed in image\_id order you could do the following.
On the "next" link, you make a call to your PHP script with parameters that identify the category and the id and the direction you want to move.. eg
myserver.com/myapp/images.php?action=n... | Use sessions <http://ru2.php.net/manual/en/book.session.php>
or pass all variables your need every time you ask server. |
5,727,640 | I am using SharedPreference to store the state of checkboxes but even i am storing true in it , its still retrieving false.
Here is my code -
```
@Override
public void onPause()
{
super.onPause();
saveState();
}
@Override
public void onResume()
{
super.onResume();
loadState();
}
@Override
public v... | 2011/04/20 | [
"https://Stackoverflow.com/questions/5727640",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/664512/"
] | I did something similar a while back.
Assuming that you want your images displayed in image\_id order you could do the following.
On the "next" link, you make a call to your PHP script with parameters that identify the category and the id and the direction you want to move.. eg
myserver.com/myapp/images.php?action=n... | Consider Ajax to load your container with images of a particular category.
It is as simple as saying HI |
5,191,062 | What is the equivalent javascript code for `mysql_real_escape_string()`? | 2011/03/04 | [
"https://Stackoverflow.com/questions/5191062",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/66143/"
] | There isn't any, because strings that come from JavaScript are still considered 'user input' and **should never be inserted in your database directly**. Your server-side has to do additional validation. There are functions to encode URLs and stuff like that.
What are you trying to do? | I think we can use escape() methode |
5,191,062 | What is the equivalent javascript code for `mysql_real_escape_string()`? | 2011/03/04 | [
"https://Stackoverflow.com/questions/5191062",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/66143/"
] | A good tip when you're looking for javascript equivalent versions of popular PHP functions is
[phpjs.org](http://phpjs.org)
However your probably looking for the wrong functionality. mysql\_real\_escape\_string() can only be used if a mysql database connection is active (More details about this can be read on the [my... | There isn't any, because strings that come from JavaScript are still considered 'user input' and **should never be inserted in your database directly**. Your server-side has to do additional validation. There are functions to encode URLs and stuff like that.
What are you trying to do? |
5,191,062 | What is the equivalent javascript code for `mysql_real_escape_string()`? | 2011/03/04 | [
"https://Stackoverflow.com/questions/5191062",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/66143/"
] | Based on the [PHP documentation](http://php.net/manual/en/function.mysql-real-escape-string.php) of the method this would do roughly the same thing. The method mysql\_real\_escape\_string in PHP is deprecated however.
```
function mysqlEscape(stringToEscape){
return stringToEscape
.replace("\\", "\\\\")
... | There isn't any, because strings that come from JavaScript are still considered 'user input' and **should never be inserted in your database directly**. Your server-side has to do additional validation. There are functions to encode URLs and stuff like that.
What are you trying to do? |
5,191,062 | What is the equivalent javascript code for `mysql_real_escape_string()`? | 2011/03/04 | [
"https://Stackoverflow.com/questions/5191062",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/66143/"
] | I've had an use case where I need to escape my own data (not from user input) in order to use it within a node.js script. I've fixed the code from @majinnaibu answer, because it was only escaping the first occurrence of the special symbol.
```
function mysqlEscape(stringToEscape){
if(stringToEscape == '') {
... | There isn't any, because strings that come from JavaScript are still considered 'user input' and **should never be inserted in your database directly**. Your server-side has to do additional validation. There are functions to encode URLs and stuff like that.
What are you trying to do? |
5,191,062 | What is the equivalent javascript code for `mysql_real_escape_string()`? | 2011/03/04 | [
"https://Stackoverflow.com/questions/5191062",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/66143/"
] | A good tip when you're looking for javascript equivalent versions of popular PHP functions is
[phpjs.org](http://phpjs.org)
However your probably looking for the wrong functionality. mysql\_real\_escape\_string() can only be used if a mysql database connection is active (More details about this can be read on the [my... | I think we can use escape() methode |
5,191,062 | What is the equivalent javascript code for `mysql_real_escape_string()`? | 2011/03/04 | [
"https://Stackoverflow.com/questions/5191062",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/66143/"
] | Based on the [PHP documentation](http://php.net/manual/en/function.mysql-real-escape-string.php) of the method this would do roughly the same thing. The method mysql\_real\_escape\_string in PHP is deprecated however.
```
function mysqlEscape(stringToEscape){
return stringToEscape
.replace("\\", "\\\\")
... | I think we can use escape() methode |
5,191,062 | What is the equivalent javascript code for `mysql_real_escape_string()`? | 2011/03/04 | [
"https://Stackoverflow.com/questions/5191062",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/66143/"
] | I've had an use case where I need to escape my own data (not from user input) in order to use it within a node.js script. I've fixed the code from @majinnaibu answer, because it was only escaping the first occurrence of the special symbol.
```
function mysqlEscape(stringToEscape){
if(stringToEscape == '') {
... | I think we can use escape() methode |
1,687,561 | I was wondering how can I have my users pick their favorite food from a category of foods in my MySQL database.
Will I need two different tables? If so what will my second table look like?
Here is my MySQL food table structure.
```
id | parent_id | food | url
``` | 2009/11/06 | [
"https://Stackoverflow.com/questions/1687561",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/204839/"
] | You'll need 3 tables in total:
1. Food - holds food information
2. Users - holds users information
3. Users\_Food - holds user id + food id (and maybe a ranking)
You should probably read up on [database normalization](http://en.wikipedia.org/wiki/Database_normalization). | You'd need to make a second table:
`user_id | food_id`
Make them both primary.
Then you can use JOIN's to select the food:
```
SELECT f.food, f.url
FROM user_food AS u
INNER JOIN food AS f ON (f.id = u.food_id)
WHERE u.user_id = {USER_ID}
```
This will give you a list of all favorite foods set by the user. |
55,037 | Last time I made a website using PHP, I didn't know of PDO, so someone dropped all my tables. I think I've made an improvement now. I'm sorry if there's a lot to go through, but I want to make sure its **safe** *(most importantly)* and also using the **best practices**.
Here are some snippets:
1)
```
$form = $_POST;... | 2014/06/23 | [
"https://codereview.stackexchange.com/questions/55037",
"https://codereview.stackexchange.com",
"https://codereview.stackexchange.com/users/46959/"
] | Just a couple of quick-at-first-glance issues that need addressing:
* Horrid, and I mean truly horrid, coding style. Please [subscribe to the standards](http://www.php-fig.org). ASAP. They are unofficial, but all major players subscribe to them, as should you.
* If a file contains nothing but PHP code, the closing tag... | Okay
All of them
-----------
* Don't have multiple statements on the same line like that.
* Use either spaces or tabs, don't use both.
* `<?php something; ?> <?php somethingElse; ?>` is pointless. Don't do that.
* Be consistent. Sometimes you're doing `funcName( $param )` and sometimes `funcName($param)`. Pick one an... |
55,037 | Last time I made a website using PHP, I didn't know of PDO, so someone dropped all my tables. I think I've made an improvement now. I'm sorry if there's a lot to go through, but I want to make sure its **safe** *(most importantly)* and also using the **best practices**.
Here are some snippets:
1)
```
$form = $_POST;... | 2014/06/23 | [
"https://codereview.stackexchange.com/questions/55037",
"https://codereview.stackexchange.com",
"https://codereview.stackexchange.com/users/46959/"
] | Okay
All of them
-----------
* Don't have multiple statements on the same line like that.
* Use either spaces or tabs, don't use both.
* `<?php something; ?> <?php somethingElse; ?>` is pointless. Don't do that.
* Be consistent. Sometimes you're doing `funcName( $param )` and sometimes `funcName($param)`. Pick one an... | First off a general comment about your formatting, I would suggest one statement per line. Program your fingers to type `;<cr>`. This will not only make it easier for you to find the statement you want to change later, but it will also make it easier for you and others (like say, users of codereview.stackexchange.com) ... |
55,037 | Last time I made a website using PHP, I didn't know of PDO, so someone dropped all my tables. I think I've made an improvement now. I'm sorry if there's a lot to go through, but I want to make sure its **safe** *(most importantly)* and also using the **best practices**.
Here are some snippets:
1)
```
$form = $_POST;... | 2014/06/23 | [
"https://codereview.stackexchange.com/questions/55037",
"https://codereview.stackexchange.com",
"https://codereview.stackexchange.com/users/46959/"
] | Just a couple of quick-at-first-glance issues that need addressing:
* Horrid, and I mean truly horrid, coding style. Please [subscribe to the standards](http://www.php-fig.org). ASAP. They are unofficial, but all major players subscribe to them, as should you.
* If a file contains nothing but PHP code, the closing tag... | First off a general comment about your formatting, I would suggest one statement per line. Program your fingers to type `;<cr>`. This will not only make it easier for you to find the statement you want to change later, but it will also make it easier for you and others (like say, users of codereview.stackexchange.com) ... |
694,883 | Consider the function $f(x)=[x]$ on the interval $[0,2]$ where $[x]$ denotes the largest integer less than or equal to x.
Is this function continuous? I cant find a reason for it not to be, although im not sure. | 2014/03/01 | [
"https://math.stackexchange.com/questions/694883",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/-1/"
] | If you're familiar with the properties of continuous functions, another way to see it is that $f^{-1}(1)=[0,1)$, which is not a closed subset of $[0,2]$. | **Hint:** Proof the negation of
$$
(\forall \epsilon >0)(\exists \delta >0) \Big( (\forall x)(|x-1|<\delta \implies |f(x)-f(1)|<\epsilon)\Big),
$$
that is
$$
(\exists \epsilon >0)(\forall \delta >0) \Big( (\exists x)(|x-1|<\delta \mbox{ and } |f(x)-f(1)|>\epsilon)\Big)
$$ |
694,883 | Consider the function $f(x)=[x]$ on the interval $[0,2]$ where $[x]$ denotes the largest integer less than or equal to x.
Is this function continuous? I cant find a reason for it not to be, although im not sure. | 2014/03/01 | [
"https://math.stackexchange.com/questions/694883",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/-1/"
] | 
You can surely see that the function is not continuous at integral points. To illustrate it compute $\lim\_{x\rightarrow 1^+}[x]$ and $\lim\_{x\rightarrow 1^-}[x]$ show that the limit does not exist at $x = 1$. Hence the function cannot be continuous... | Another characterisation of a function $f$ being continous at an argument value $x$ is, that it has a value $f(x)$ there which is equal to its limit value there. This requires an existing limit value.
That last requirement is not valid for your function at $x = 1$:
If you arrive from the left, the limit at $x = 1$ i... |
694,883 | Consider the function $f(x)=[x]$ on the interval $[0,2]$ where $[x]$ denotes the largest integer less than or equal to x.
Is this function continuous? I cant find a reason for it not to be, although im not sure. | 2014/03/01 | [
"https://math.stackexchange.com/questions/694883",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/-1/"
] | The function $\lfloor x \rfloor$ is not continuous at interior points that are integers. In this case it at $x=1$. It is also discontinuous at $x=2$
If you are looking for a formal argument here is one.
If a function $f(x)$ is continuous at $x=a$ then for every $\varepsilon>0$ there exist an $\delta>0$ such that $$|x... | Another characterisation of a function $f$ being continous at an argument value $x$ is, that it has a value $f(x)$ there which is equal to its limit value there. This requires an existing limit value.
That last requirement is not valid for your function at $x = 1$:
If you arrive from the left, the limit at $x = 1$ i... |
694,883 | Consider the function $f(x)=[x]$ on the interval $[0,2]$ where $[x]$ denotes the largest integer less than or equal to x.
Is this function continuous? I cant find a reason for it not to be, although im not sure. | 2014/03/01 | [
"https://math.stackexchange.com/questions/694883",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/-1/"
] | **Hint:** Proof the negation of
$$
(\forall \epsilon >0)(\exists \delta >0) \Big( (\forall x)(|x-1|<\delta \implies |f(x)-f(1)|<\epsilon)\Big),
$$
that is
$$
(\exists \epsilon >0)(\forall \delta >0) \Big( (\exists x)(|x-1|<\delta \mbox{ and } |f(x)-f(1)|>\epsilon)\Big)
$$ | Another characterisation of a function $f$ being continous at an argument value $x$ is, that it has a value $f(x)$ there which is equal to its limit value there. This requires an existing limit value.
That last requirement is not valid for your function at $x = 1$:
If you arrive from the left, the limit at $x = 1$ i... |
694,883 | Consider the function $f(x)=[x]$ on the interval $[0,2]$ where $[x]$ denotes the largest integer less than or equal to x.
Is this function continuous? I cant find a reason for it not to be, although im not sure. | 2014/03/01 | [
"https://math.stackexchange.com/questions/694883",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/-1/"
] | The function $\lfloor x \rfloor$ is not continuous at interior points that are integers. In this case it at $x=1$. It is also discontinuous at $x=2$
If you are looking for a formal argument here is one.
If a function $f(x)$ is continuous at $x=a$ then for every $\varepsilon>0$ there exist an $\delta>0$ such that $$|x... | It is not continous.
To see that, consider for example that $f(1) = 1$, but $f(1 - \epsilon) = 0$ for any $\epsilon>0$. There is a 'jump' from $f=0$ to $f=1$ without any values inbetween, regardless of the size of $\epsilon$. |
694,883 | Consider the function $f(x)=[x]$ on the interval $[0,2]$ where $[x]$ denotes the largest integer less than or equal to x.
Is this function continuous? I cant find a reason for it not to be, although im not sure. | 2014/03/01 | [
"https://math.stackexchange.com/questions/694883",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/-1/"
] | It is not continous.
To see that, consider for example that $f(1) = 1$, but $f(1 - \epsilon) = 0$ for any $\epsilon>0$. There is a 'jump' from $f=0$ to $f=1$ without any values inbetween, regardless of the size of $\epsilon$. | Another characterisation of a function $f$ being continous at an argument value $x$ is, that it has a value $f(x)$ there which is equal to its limit value there. This requires an existing limit value.
That last requirement is not valid for your function at $x = 1$:
If you arrive from the left, the limit at $x = 1$ i... |
694,883 | Consider the function $f(x)=[x]$ on the interval $[0,2]$ where $[x]$ denotes the largest integer less than or equal to x.
Is this function continuous? I cant find a reason for it not to be, although im not sure. | 2014/03/01 | [
"https://math.stackexchange.com/questions/694883",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/-1/"
] | If you're familiar with the properties of continuous functions, another way to see it is that $f^{-1}(1)=[0,1)$, which is not a closed subset of $[0,2]$. | Another characterisation of a function $f$ being continous at an argument value $x$ is, that it has a value $f(x)$ there which is equal to its limit value there. This requires an existing limit value.
That last requirement is not valid for your function at $x = 1$:
If you arrive from the left, the limit at $x = 1$ i... |
694,883 | Consider the function $f(x)=[x]$ on the interval $[0,2]$ where $[x]$ denotes the largest integer less than or equal to x.
Is this function continuous? I cant find a reason for it not to be, although im not sure. | 2014/03/01 | [
"https://math.stackexchange.com/questions/694883",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/-1/"
] | It is not continous.
To see that, consider for example that $f(1) = 1$, but $f(1 - \epsilon) = 0$ for any $\epsilon>0$. There is a 'jump' from $f=0$ to $f=1$ without any values inbetween, regardless of the size of $\epsilon$. | **Hint:** Proof the negation of
$$
(\forall \epsilon >0)(\exists \delta >0) \Big( (\forall x)(|x-1|<\delta \implies |f(x)-f(1)|<\epsilon)\Big),
$$
that is
$$
(\exists \epsilon >0)(\forall \delta >0) \Big( (\exists x)(|x-1|<\delta \mbox{ and } |f(x)-f(1)|>\epsilon)\Big)
$$ |
694,883 | Consider the function $f(x)=[x]$ on the interval $[0,2]$ where $[x]$ denotes the largest integer less than or equal to x.
Is this function continuous? I cant find a reason for it not to be, although im not sure. | 2014/03/01 | [
"https://math.stackexchange.com/questions/694883",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/-1/"
] | The function $\lfloor x \rfloor$ is not continuous at interior points that are integers. In this case it at $x=1$. It is also discontinuous at $x=2$
If you are looking for a formal argument here is one.
If a function $f(x)$ is continuous at $x=a$ then for every $\varepsilon>0$ there exist an $\delta>0$ such that $$|x... | If you're familiar with the properties of continuous functions, another way to see it is that $f^{-1}(1)=[0,1)$, which is not a closed subset of $[0,2]$. |
694,883 | Consider the function $f(x)=[x]$ on the interval $[0,2]$ where $[x]$ denotes the largest integer less than or equal to x.
Is this function continuous? I cant find a reason for it not to be, although im not sure. | 2014/03/01 | [
"https://math.stackexchange.com/questions/694883",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/-1/"
] | 
You can surely see that the function is not continuous at integral points. To illustrate it compute $\lim\_{x\rightarrow 1^+}[x]$ and $\lim\_{x\rightarrow 1^-}[x]$ show that the limit does not exist at $x = 1$. Hence the function cannot be continuous... | **Hint:** Proof the negation of
$$
(\forall \epsilon >0)(\exists \delta >0) \Big( (\forall x)(|x-1|<\delta \implies |f(x)-f(1)|<\epsilon)\Big),
$$
that is
$$
(\exists \epsilon >0)(\forall \delta >0) \Big( (\exists x)(|x-1|<\delta \mbox{ and } |f(x)-f(1)|>\epsilon)\Big)
$$ |
8 | В цьому питанні я сам створив відповідь. Це є wiki-відповідь (спільна відповідь, community wiki) — **її може редагувати кожен**. Ви можете додавати інші джерела: редагуючи ту відповідь або створювати окремі відповіді.
* [Загальне](/a/9) / General
* [Словники](/a/287) / Dictionaries
* [Корпуси](/a/286) / Corporas
* [Пр... | 2017/02/07 | [
"https://ukrainian.meta.stackexchange.com/questions/8",
"https://ukrainian.meta.stackexchange.com",
"https://ukrainian.meta.stackexchange.com/users/4/"
] | (це недописана стаття, яка вимагає переформатування і, можливо, категоризації)
---
Список джерел, які вважають поважними наші колеги з [Wikipedia](https://uk.wikipedia.org/wiki/%D0%9E%D0%B1%D0%B3%D0%BE%D0%B2%D0%BE%D1%80%D0%B5%D0%BD%D0%BD%D1%8F_%D0%92%D1%96%D0%BA%D1%96%D0%BF%D0%B5%D0%B4%D1%96%D1%97:%D0%9F%D1%80%D0%BE%... | Загальний здоровий глузд
========================
* [Illustrated book of bad arguments](https://bookofbadarguments.com/) - на жаль, перекладу на українську ще немає. Ця книга показує, як саме люди схильні помилятися у своїй арґументації
---
Common sense
============
* [Illustrated book of bad arguments](https://boo... |
8 | В цьому питанні я сам створив відповідь. Це є wiki-відповідь (спільна відповідь, community wiki) — **її може редагувати кожен**. Ви можете додавати інші джерела: редагуючи ту відповідь або створювати окремі відповіді.
* [Загальне](/a/9) / General
* [Словники](/a/287) / Dictionaries
* [Корпуси](/a/286) / Corporas
* [Пр... | 2017/02/07 | [
"https://ukrainian.meta.stackexchange.com/questions/8",
"https://ukrainian.meta.stackexchange.com",
"https://ukrainian.meta.stackexchange.com/users/4/"
] | Пошук у локалізаціях програмного забезпечення
=============================================
Позначення:
— можна шукати онлайн.
Microsoft
---------
[Мовний портал](https://www.microsoft.com/Language/en-us/Search.aspx?sString=&langID=uk-ua) (також можна [стягувати у форматі XML](https://www.microsoft.com/en-us/lan... | (це недописана стаття, яка вимагає переформатування і, можливо, категоризації)
---
Список джерел, які вважають поважними наші колеги з [Wikipedia](https://uk.wikipedia.org/wiki/%D0%9E%D0%B1%D0%B3%D0%BE%D0%B2%D0%BE%D1%80%D0%B5%D0%BD%D0%BD%D1%8F_%D0%92%D1%96%D0%BA%D1%96%D0%BF%D0%B5%D0%B4%D1%96%D1%97:%D0%9F%D1%80%D0%BE%... |
8 | В цьому питанні я сам створив відповідь. Це є wiki-відповідь (спільна відповідь, community wiki) — **її може редагувати кожен**. Ви можете додавати інші джерела: редагуючи ту відповідь або створювати окремі відповіді.
* [Загальне](/a/9) / General
* [Словники](/a/287) / Dictionaries
* [Корпуси](/a/286) / Corporas
* [Пр... | 2017/02/07 | [
"https://ukrainian.meta.stackexchange.com/questions/8",
"https://ukrainian.meta.stackexchange.com",
"https://ukrainian.meta.stackexchange.com/users/4/"
] | Ресурси для вивчення українскої
===============================
* [Ukrainian Lessons Podcast](http://ukrainianlessons.com/) - безкоштовна серія подкастів розмовною українською для новачків. Оновлюється щотижня.
* [Підбірка](//redd.it/r2oa4y "Редит r/Ukrainian") учбових матеріялів від r/WantDebianThanks.
---
Ukrainia... | Загальний здоровий глузд
========================
* [Illustrated book of bad arguments](https://bookofbadarguments.com/) - на жаль, перекладу на українську ще немає. Ця книга показує, як саме люди схильні помилятися у своїй арґументації
---
Common sense
============
* [Illustrated book of bad arguments](https://boo... |
8 | В цьому питанні я сам створив відповідь. Це є wiki-відповідь (спільна відповідь, community wiki) — **її може редагувати кожен**. Ви можете додавати інші джерела: редагуючи ту відповідь або створювати окремі відповіді.
* [Загальне](/a/9) / General
* [Словники](/a/287) / Dictionaries
* [Корпуси](/a/286) / Corporas
* [Пр... | 2017/02/07 | [
"https://ukrainian.meta.stackexchange.com/questions/8",
"https://ukrainian.meta.stackexchange.com",
"https://ukrainian.meta.stackexchange.com/users/4/"
] | Перелік ресурсів взято [тут](http://www.mova.info/links.aspx?l1=82).
Вашій увазі пропонуються сайти, безпосередньо пов'язані з різними аспектами функціонування української мови у світах реальному та віртуальному, мовні ресурси від освітянсько-новинних до розважальних.
* [Інтелектуальна кнайпа «Чудова Мова».](http://c... | Загальний здоровий глузд
========================
* [Illustrated book of bad arguments](https://bookofbadarguments.com/) - на жаль, перекладу на українську ще немає. Ця книга показує, як саме люди схильні помилятися у своїй арґументації
---
Common sense
============
* [Illustrated book of bad arguments](https://boo... |
8 | В цьому питанні я сам створив відповідь. Це є wiki-відповідь (спільна відповідь, community wiki) — **її може редагувати кожен**. Ви можете додавати інші джерела: редагуючи ту відповідь або створювати окремі відповіді.
* [Загальне](/a/9) / General
* [Словники](/a/287) / Dictionaries
* [Корпуси](/a/286) / Corporas
* [Пр... | 2017/02/07 | [
"https://ukrainian.meta.stackexchange.com/questions/8",
"https://ukrainian.meta.stackexchange.com",
"https://ukrainian.meta.stackexchange.com/users/4/"
] | Пошук у локалізаціях програмного забезпечення
=============================================
Позначення:
— можна шукати онлайн.
Microsoft
---------
[Мовний портал](https://www.microsoft.com/Language/en-us/Search.aspx?sString=&langID=uk-ua) (також можна [стягувати у форматі XML](https://www.microsoft.com/en-us/lan... | Ресурси для вивчення українскої
===============================
* [Ukrainian Lessons Podcast](http://ukrainianlessons.com/) - безкоштовна серія подкастів розмовною українською для новачків. Оновлюється щотижня.
* [Підбірка](//redd.it/r2oa4y "Редит r/Ukrainian") учбових матеріялів від r/WantDebianThanks.
---
Ukrainia... |
8 | В цьому питанні я сам створив відповідь. Це є wiki-відповідь (спільна відповідь, community wiki) — **її може редагувати кожен**. Ви можете додавати інші джерела: редагуючи ту відповідь або створювати окремі відповіді.
* [Загальне](/a/9) / General
* [Словники](/a/287) / Dictionaries
* [Корпуси](/a/286) / Corporas
* [Пр... | 2017/02/07 | [
"https://ukrainian.meta.stackexchange.com/questions/8",
"https://ukrainian.meta.stackexchange.com",
"https://ukrainian.meta.stackexchange.com/users/4/"
] | Перелік ресурсів взято [тут](http://www.mova.info/links.aspx?l1=82).
Вашій увазі пропонуються сайти, безпосередньо пов'язані з різними аспектами функціонування української мови у світах реальному та віртуальному, мовні ресурси від освітянсько-новинних до розважальних.
* [Інтелектуальна кнайпа «Чудова Мова».](http://c... | Словники
========
1. Словник української мови в 11 книгах (СУМ-11: [inmo.org.ua](http://www.inmo.org.ua/sum.html), [sum.in.ua](http://sum.in.ua/), [ukrlit.org](http://ukrlit.org/slovnyk/slovnyk_ukrainskoi_movy_v_11_tomakh), [slovnyk.ua](https://www.slovnyk.ua/).
2. Словник української мови в 20 книгах (СУМ-20). Від [У... |
8 | В цьому питанні я сам створив відповідь. Це є wiki-відповідь (спільна відповідь, community wiki) — **її може редагувати кожен**. Ви можете додавати інші джерела: редагуючи ту відповідь або створювати окремі відповіді.
* [Загальне](/a/9) / General
* [Словники](/a/287) / Dictionaries
* [Корпуси](/a/286) / Corporas
* [Пр... | 2017/02/07 | [
"https://ukrainian.meta.stackexchange.com/questions/8",
"https://ukrainian.meta.stackexchange.com",
"https://ukrainian.meta.stackexchange.com/users/4/"
] | Пошук у локалізаціях програмного забезпечення
=============================================
Позначення:
— можна шукати онлайн.
Microsoft
---------
[Мовний портал](https://www.microsoft.com/Language/en-us/Search.aspx?sString=&langID=uk-ua) (також можна [стягувати у форматі XML](https://www.microsoft.com/en-us/lan... | Словники
========
1. Словник української мови в 11 книгах (СУМ-11: [inmo.org.ua](http://www.inmo.org.ua/sum.html), [sum.in.ua](http://sum.in.ua/), [ukrlit.org](http://ukrlit.org/slovnyk/slovnyk_ukrainskoi_movy_v_11_tomakh), [slovnyk.ua](https://www.slovnyk.ua/).
2. Словник української мови в 20 книгах (СУМ-20). Від [У... |
8 | В цьому питанні я сам створив відповідь. Це є wiki-відповідь (спільна відповідь, community wiki) — **її може редагувати кожен**. Ви можете додавати інші джерела: редагуючи ту відповідь або створювати окремі відповіді.
* [Загальне](/a/9) / General
* [Словники](/a/287) / Dictionaries
* [Корпуси](/a/286) / Corporas
* [Пр... | 2017/02/07 | [
"https://ukrainian.meta.stackexchange.com/questions/8",
"https://ukrainian.meta.stackexchange.com",
"https://ukrainian.meta.stackexchange.com/users/4/"
] | Правописи
=========
Позначення:
— оригінал-макет або скан (точна копія);
— результат розпізнавання або переформатування (можливі невеликі неточності);
— приблизний опис чи переказ;
~~закреслення~~ — джерело вже зникло.
18
--
* 1798, Котляревський:
[Вікіпедія](//uk.wikipedia.org/wiki/%D0%9F%D1%80%D0%B0... | Словники
========
1. Словник української мови в 11 книгах (СУМ-11: [inmo.org.ua](http://www.inmo.org.ua/sum.html), [sum.in.ua](http://sum.in.ua/), [ukrlit.org](http://ukrlit.org/slovnyk/slovnyk_ukrainskoi_movy_v_11_tomakh), [slovnyk.ua](https://www.slovnyk.ua/).
2. Словник української мови в 20 книгах (СУМ-20). Від [У... |
8 | В цьому питанні я сам створив відповідь. Це є wiki-відповідь (спільна відповідь, community wiki) — **її може редагувати кожен**. Ви можете додавати інші джерела: редагуючи ту відповідь або створювати окремі відповіді.
* [Загальне](/a/9) / General
* [Словники](/a/287) / Dictionaries
* [Корпуси](/a/286) / Corporas
* [Пр... | 2017/02/07 | [
"https://ukrainian.meta.stackexchange.com/questions/8",
"https://ukrainian.meta.stackexchange.com",
"https://ukrainian.meta.stackexchange.com/users/4/"
] | Правописи
=========
Позначення:
— оригінал-макет або скан (точна копія);
— результат розпізнавання або переформатування (можливі невеликі неточності);
— приблизний опис чи переказ;
~~закреслення~~ — джерело вже зникло.
18
--
* 1798, Котляревський:
[Вікіпедія](//uk.wikipedia.org/wiki/%D0%9F%D1%80%D0%B0... | (це недописана стаття, яка вимагає переформатування і, можливо, категоризації)
---
Список джерел, які вважають поважними наші колеги з [Wikipedia](https://uk.wikipedia.org/wiki/%D0%9E%D0%B1%D0%B3%D0%BE%D0%B2%D0%BE%D1%80%D0%B5%D0%BD%D0%BD%D1%8F_%D0%92%D1%96%D0%BA%D1%96%D0%BF%D0%B5%D0%B4%D1%96%D1%97:%D0%9F%D1%80%D0%BE%... |
8 | В цьому питанні я сам створив відповідь. Це є wiki-відповідь (спільна відповідь, community wiki) — **її може редагувати кожен**. Ви можете додавати інші джерела: редагуючи ту відповідь або створювати окремі відповіді.
* [Загальне](/a/9) / General
* [Словники](/a/287) / Dictionaries
* [Корпуси](/a/286) / Corporas
* [Пр... | 2017/02/07 | [
"https://ukrainian.meta.stackexchange.com/questions/8",
"https://ukrainian.meta.stackexchange.com",
"https://ukrainian.meta.stackexchange.com/users/4/"
] | 1. Поради мовознавців: [«Як ми говоримо» Б. Антоненка-Давидовича](http://yak-my-hovorymo.wikidot.com/), [«Культура слова» О. Пономаріва](http://ponomariv-kultura-slova.wikidot.com/), [блог О. Пономаріва на BBC](http://www.bbc.com/ukrainian/topics/ponomariv), [«Уроки державної мови» (в газеті «Хрещатик») Б. Рогози](http... | Загальний здоровий глузд
========================
* [Illustrated book of bad arguments](https://bookofbadarguments.com/) - на жаль, перекладу на українську ще немає. Ця книга показує, як саме люди схильні помилятися у своїй арґументації
---
Common sense
============
* [Illustrated book of bad arguments](https://boo... |
23,106,821 | here is my code it will give following error.
The variable name '@sno' has already been declared. Variable names must be unique within a query batch or stored procedure.
```
private void btnBatchInsert_Click(ArrayList data)
{
// Get the DataTable with Rows State as RowState.Added
SqlCommand comma... | 2014/04/16 | [
"https://Stackoverflow.com/questions/23106821",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3226562/"
] | You are adding parameters inside a loop. The second, third, forth, etc iterations through the loop: yes, you will be adding duplicates.
Either:
* clear the parameters between iterations
* overwrite the values rather than adding new parameters | You're adding all variables more than once.. because you're doing it in a loop.
```
SqlCommand command = new SqlCommand(); // command that lasts
// across all iterations of loop
for (int j = 0; j < data.Count; j++) {
// adding all parameters each time.
```
Add the paramete... |
23,106,821 | here is my code it will give following error.
The variable name '@sno' has already been declared. Variable names must be unique within a query batch or stored procedure.
```
private void btnBatchInsert_Click(ArrayList data)
{
// Get the DataTable with Rows State as RowState.Added
SqlCommand comma... | 2014/04/16 | [
"https://Stackoverflow.com/questions/23106821",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3226562/"
] | You are adding parameters inside a loop. The second, third, forth, etc iterations through the loop: yes, you will be adding duplicates.
Either:
* clear the parameters between iterations
* overwrite the values rather than adding new parameters | On each iteration, you would need to create a new instance of SqlCommand and assign it to command for it to remove the parameters that you previously added.
```
for (int j = 0; j < data.Count; j++)
{
command = new SqlCommand();
string[] arr = data[j].ToString().Split('#');
``` |
23,106,821 | here is my code it will give following error.
The variable name '@sno' has already been declared. Variable names must be unique within a query batch or stored procedure.
```
private void btnBatchInsert_Click(ArrayList data)
{
// Get the DataTable with Rows State as RowState.Added
SqlCommand comma... | 2014/04/16 | [
"https://Stackoverflow.com/questions/23106821",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3226562/"
] | You are adding parameters inside a loop. The second, third, forth, etc iterations through the loop: yes, you will be adding duplicates.
Either:
* clear the parameters between iterations
* overwrite the values rather than adding new parameters | The most simple solution is to define the parameters outside the loop adding them to the Parameters collection. Inside the loop you change only the value and execute the command
Also try to be very specific with the Parameter type and size because in that way you allow the database engine to store the query plan and r... |
2,396,324 | I am trying to find out the density of the product $XY$ of two independent Gamma random variables $X \sim \mathrm{Gamma}(k\_1, \theta\_1)$ and $Y \sim \mathrm{Gamma}(k\_2, \theta\_2)$, where $k\_i$'s are the shape parameters and $\theta\_i$'s are the scale parameters.
I know the formula for the density of the product ... | 2017/08/17 | [
"https://math.stackexchange.com/questions/2396324",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/330947/"
] | Let $X \sim \text{Gamma}(a,b)$ with pdf $f(x)$:
[](https://i.stack.imgur.com/woBp2.png)
and $Y \sim \text{Gamma}(\alpha,\beta)$ be independent with pdf $g(y)$:
[](https://i.stack.im... | In order to provide an analytical derivation and confirm the result, it is possible to proceed as follows:
Let's start by defining independent gamma product $Z\_{2}=XY$, $X=Z\_{1}$ and $Y=\frac{Z\_{2}}{Z\_{1}}$. Then we can write joint density using jacobian,
\begin{equation}
f(z\_{1},z\_{2})=f\_{x}(z\_{1})f\_{y}(z\_{... |
33,147,896 | This is definitely a rookie question but I'm not finding an answer for this (maybe because of my wording) so here goes:
I'm reading a data frame into R studio (csv file) that has 24 columns with headers. There are only numbers in these columns (they're essentially concentrations of several chemicals). It's called all.... | 2015/10/15 | [
"https://Stackoverflow.com/questions/33147896",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4425170/"
] | As easy as that:
```
var url = document.getElementById("id of element").href;
url = url.substring(0, url.length-1);
url = url + "1";
document.getElementById("id of element").href = url;
```
Probably google first about string functions before asking... | If the pattern of the url stays the same (the parameter `dl=0`) then you can simply use the [`.replace()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace)-function:
```
var url = 'https://www.dropbox.com/sh/wbc1ewhfg1jttpr/AADLfZKlfOBs5e_ueAkzffKRa/SamplePDFDownload.pdf... |
19,604,852 | Is it required to make foreign key column in a table as NOT NULL,
If we not written explicitly foreign key column as not null what it will be?
Can it contain null values?
And what is the Difference between following two statements:
```
[PhoneId] [int] NOT NULL FOREIGN KEY REFERENCES [dbo].[tbl_PhoneNumber](PhoneNumbe... | 2013/10/26 | [
"https://Stackoverflow.com/questions/19604852",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2349008/"
] | >
> Is it required to make foreign key column in a table as NOT NULL,
>
>
>
No it is not required. MSDN says that:-
>
> When a value other than NULL is entered into the column of a FOREIGN
> KEY constraint, the value must exist in the referenced column;
> otherwise, a foreign key violation error message is ret... | It is not required. A foreign key attribute without `NOT NULL` can contain `NULL` values, and this can be used to indicate that no such tuple in the referenced relation is applicable. |
19,604,852 | Is it required to make foreign key column in a table as NOT NULL,
If we not written explicitly foreign key column as not null what it will be?
Can it contain null values?
And what is the Difference between following two statements:
```
[PhoneId] [int] NOT NULL FOREIGN KEY REFERENCES [dbo].[tbl_PhoneNumber](PhoneNumbe... | 2013/10/26 | [
"https://Stackoverflow.com/questions/19604852",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2349008/"
] | According to sql normalization rule foreign key value must be equal to primary key value or NULL, so it will contain either NULL value of one value from primary key table row. | It is not required. A foreign key attribute without `NOT NULL` can contain `NULL` values, and this can be used to indicate that no such tuple in the referenced relation is applicable. |
19,604,852 | Is it required to make foreign key column in a table as NOT NULL,
If we not written explicitly foreign key column as not null what it will be?
Can it contain null values?
And what is the Difference between following two statements:
```
[PhoneId] [int] NOT NULL FOREIGN KEY REFERENCES [dbo].[tbl_PhoneNumber](PhoneNumbe... | 2013/10/26 | [
"https://Stackoverflow.com/questions/19604852",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2349008/"
] | >
> Is it required to make foreign key column in a table as NOT NULL,
>
>
>
No it is not required. MSDN says that:-
>
> When a value other than NULL is entered into the column of a FOREIGN
> KEY constraint, the value must exist in the referenced column;
> otherwise, a foreign key violation error message is ret... | According to sql normalization rule foreign key value must be equal to primary key value or NULL, so it will contain either NULL value of one value from primary key table row. |
34,872 | can anyone please explain me what is meant by salesforce?
and what is meant by Partner portal?
i tried to figure it out but there is no use could any one help me out.. | 2014/05/12 | [
"https://salesforce.stackexchange.com/questions/34872",
"https://salesforce.stackexchange.com",
"https://salesforce.stackexchange.com/users/8316/"
] | Salesforce in it's core is a combination of features (clouds) that are focused on CRM, suppored by a platform that will also allow you to extend these features, or build entirly independant functionality. It's oriented to be used by internal users of a company.
The partner portal or partner community is a feature of s... | You can find more information on partner portal at <https://help.salesforce.com/HTViewHelpDoc?id=partner_portal_about.htm&language=en_US>
As explained at that link, partner portal is no longer offered to new customers. They have been replaced by Communities. You can find more information about them at <http://help.sal... |
7,886,024 | I have two List. first list element `Name Age Sex` and second list element `test 10 female`. I want to insert this data into database. In first list having `MySQL Column` and in second `MySQL Column Values`.I'm trying to make this query. `INSERT INTO (LIST1) VALUES (List2)` =>`INSERT INTO table (name,age,sex) values (t... | 2011/10/25 | [
"https://Stackoverflow.com/questions/7886024",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/559744/"
] | How about this?
```
>>> query = 'INSERT INTO (%s) VALUES (%s)' % (','.join([str(i) for i in list1]),
','.join([str(i) for i in list2]))
>>> print query
INSERT INTO (name,age,sex) VALUES (test,10,female)
```
The `str` is needed because that way, numbers are allowed to be ... | Try getting this to work using the MySQL gui. Once that works properly, then you can try to get it to work with Python using the SQL statements that worked in MySQL. |
6,510,985 | I have the code below to query a table which retrieves arrays. The parameter $idList could have several values and may therefore produce duplicates. I am only interested in inserting one unique memalertid.
Any advice on how to remove the duplicates would be much appreciated.
```
$sql = mysql_query("SELECT memalertid... | 2011/06/28 | [
"https://Stackoverflow.com/questions/6510985",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/468908/"
] | Simply use `SELECT DISTINCT` to select distinct rows.
```
SELECT DISTINCT memalertid FROM memlist WHERE listID IN ($idList) AND (emailyes = '1')
```
You could also `GROUP BY memalertid` instead.
```
SELECT memalertid FROM memlist WHERE listID IN ($idList) AND (emailyes = '1') GROUP BY memalertid
```
For more info... | ```
$newArray = array_unique($yourArray);
```
This will create a new array only with unique values; excluding any duplicates. |
6,510,985 | I have the code below to query a table which retrieves arrays. The parameter $idList could have several values and may therefore produce duplicates. I am only interested in inserting one unique memalertid.
Any advice on how to remove the duplicates would be much appreciated.
```
$sql = mysql_query("SELECT memalertid... | 2011/06/28 | [
"https://Stackoverflow.com/questions/6510985",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/468908/"
] | ```
$newArray = array_unique($yourArray);
```
This will create a new array only with unique values; excluding any duplicates. | No need to get PHP involved. Just `SELECT` using `GROUP BY`.
```
INSERT INTO subsalerts (memalertid, idMembers, emailid)
SELECT memalertid, $idMembers, $emailid FROM memlist WHERE listID IN ($idList) AND emailyes = 1 GROUP BY memalertid;
``` |
6,510,985 | I have the code below to query a table which retrieves arrays. The parameter $idList could have several values and may therefore produce duplicates. I am only interested in inserting one unique memalertid.
Any advice on how to remove the duplicates would be much appreciated.
```
$sql = mysql_query("SELECT memalertid... | 2011/06/28 | [
"https://Stackoverflow.com/questions/6510985",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/468908/"
] | Simply use `SELECT DISTINCT` to select distinct rows.
```
SELECT DISTINCT memalertid FROM memlist WHERE listID IN ($idList) AND (emailyes = '1')
```
You could also `GROUP BY memalertid` instead.
```
SELECT memalertid FROM memlist WHERE listID IN ($idList) AND (emailyes = '1') GROUP BY memalertid
```
For more info... | You can use [group by](http://dev.mysql.com/doc/refman/5.1/en/select.html) clause to group the results with the same id, so that you'll get only unique ids |
6,510,985 | I have the code below to query a table which retrieves arrays. The parameter $idList could have several values and may therefore produce duplicates. I am only interested in inserting one unique memalertid.
Any advice on how to remove the duplicates would be much appreciated.
```
$sql = mysql_query("SELECT memalertid... | 2011/06/28 | [
"https://Stackoverflow.com/questions/6510985",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/468908/"
] | Simply use `SELECT DISTINCT` to select distinct rows.
```
SELECT DISTINCT memalertid FROM memlist WHERE listID IN ($idList) AND (emailyes = '1')
```
You could also `GROUP BY memalertid` instead.
```
SELECT memalertid FROM memlist WHERE listID IN ($idList) AND (emailyes = '1') GROUP BY memalertid
```
For more info... | No need to get PHP involved. Just `SELECT` using `GROUP BY`.
```
INSERT INTO subsalerts (memalertid, idMembers, emailid)
SELECT memalertid, $idMembers, $emailid FROM memlist WHERE listID IN ($idList) AND emailyes = 1 GROUP BY memalertid;
``` |
6,510,985 | I have the code below to query a table which retrieves arrays. The parameter $idList could have several values and may therefore produce duplicates. I am only interested in inserting one unique memalertid.
Any advice on how to remove the duplicates would be much appreciated.
```
$sql = mysql_query("SELECT memalertid... | 2011/06/28 | [
"https://Stackoverflow.com/questions/6510985",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/468908/"
] | You can use [group by](http://dev.mysql.com/doc/refman/5.1/en/select.html) clause to group the results with the same id, so that you'll get only unique ids | No need to get PHP involved. Just `SELECT` using `GROUP BY`.
```
INSERT INTO subsalerts (memalertid, idMembers, emailid)
SELECT memalertid, $idMembers, $emailid FROM memlist WHERE listID IN ($idList) AND emailyes = 1 GROUP BY memalertid;
``` |
91,828 | I have a (nonlinear) function which takes as input 4 parameters and produces a real number as output. It is quite complex to compute the function value given a set of parameters (as it requires a very big summation).
I'd like to answer queries on this function efficiently so I was thinking of trying to use some inter... | 2011/12/15 | [
"https://math.stackexchange.com/questions/91828",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/9420/"
] | Since nobody's answered yet, I throw this out there (I'm no expert in multivariate interpolation, hopefully someone with expertise will eventually weigh in).
I imagine you've already looked at the [Wikipedia Article on Multivariate Interpolation](http://en.wikipedia.org/wiki/Multivariate_interpolation).
There's a lot ... | I would suggest taking a look at [Moving Least Squares](http://en.wikipedia.org/wiki/Moving_least_squares) (MLS), which can generate quite smooth interpolators using low-order functions. One benefit of MLS is that it can easily work with scattered data, which means you can sample your expensive function at relevant loc... |
71,323,490 | I am generating class Objects and putting them into std::vector. Before adding, I need to check if they intersect with the already generated objects. As I plan to have millions of them, I need to parallelize this function as it takes a lot of time (The function must check each new object against all previously generate... | 2022/03/02 | [
"https://Stackoverflow.com/questions/71323490",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12948072/"
] | >
> `Starting ChromeDriver 99.0.4844.51`
>
>
>
>
> `Current browser version is 98.0.4758.102`
>
>
>
Your chrome driver is for chrome version, which is not out yet. You have several solutions:
* You can download actual ChromeDriver 98.0.4758.102 from [here](https://chromedriver.chromium.org/downloads) and use... | This error message...
```
Starting ChromeDriver 99.0.4844.51 (d537ec02474b5afe23684e7963d538896c63ac77-refs/branch-heads/4844@{#875}) on port 59895
.
Exception in thread "Thread-4" org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: session not created: This versi... |
37,958,457 | I have a problem. I need to use the first row of the **txt** as my string and then look in the same **txt** the occurrences and print the number, but I have a problem, for example; if my **txt** is like: `wordwordword` and my string is word, it only counts the first word, it does´t print the counter: 3, print the count... | 2016/06/22 | [
"https://Stackoverflow.com/questions/37958457",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4917789/"
] | You are asking for one line of leading context by using the `-B1` option. This means grep will display both the line which matched and the line directly before it. Each match will be separated by `--` on a line by itself as shown below:
```
$ man grep | grep -B1 context
-A num, --after-context=num
Pr... | `GREP_COLORS` section of the grep manpage says :
>
> Specifies the colors and other attributes used to highlight various > parts of the output. Its value is a colon-separated list
> of capabilities that defaults to
> ms=01;31:mc=01;31:sl=:cx=:fn=35:ln=32:bn=32:se=36 with the rv and
> ne boolean capabilities omitte... |
50,027,640 | I'm very new to AS3 and I'm trying to learn by experimenting in flash, by making a simple 2D farming game with very simple code.
I've made one crop field out of 6 that works, which is a movieclip with different frames for each fruit growing. For example, frame 1-5 is a strawberry growing where frame 5 is when it's rea... | 2018/04/25 | [
"https://Stackoverflow.com/questions/50027640",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3492677/"
] | There are a few ways to go about being DRY (don't repeat yourself) with your code in this scenario. The best way, would be to learn to use classes. Classes are blueprints, and are made for these very scenarios.
Here is an example of a simple class to do what you'd like. In Flash/Animate, go to *file*, then *new*, then... | Although [**BFAT**'s tutorial](https://stackoverflow.com/a/50028490/4687633) is absolutely correct, it is not the only way to do things, moreover, if you ever move from Flash and AS3 to something else, or even try **Starling** (a framework that allows to build fast and non-laggy mobile applications in Flash/AS3), you'l... |
25,987,405 | I have 2 Forms, in Form1 , there are a lot of transaction to be done, so i have used the BackgroundWorker. so during the action to be taken i want the form2 to be opened and shows the progressbar ( the progress of the actions ) so I have done like this:
This is Form1
```
public partial class Form1 : Form
{
Form2 ... | 2014/09/23 | [
"https://Stackoverflow.com/questions/25987405",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1379478/"
] | Use delegate to make it thread safe
```
if(form2.InvokeRequired)
{
form2.Invoke(new MethodInvoker(delegate { form2.Close() }));
}
``` | The problem is the control just can be accessed by the thread that create it.
Check this:
<http://msdn.microsoft.com/en-us/library/ms171728.aspx>
And this :
[Cross-thread operation not valid: Control 'Form2' accessed from a thread other than the thread it was created on](https://stackoverflow.com/questions/25987405... |
50,459,454 | I am trying to implement a generic single linked list. So far I have everything done correctly but I cannot get my search function to work properly. It should print "yes"in the output but nothing happens.
Here is my code:
```
#ifndef LinkedList_hpp
#define LinkedList_hpp
#include <iostream>
template<class T>
struct... | 2018/05/22 | [
"https://Stackoverflow.com/questions/50459454",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | This is your `search` function:
```
bool search(Node<T>* head, int x) {
struct Node<T>* current = head;
while (current != NULL) {
if (current->data == x)
return true;
current = current->next;
}
return false;
}
```
It uses the argument `head` passed into as the first argu... | This line:
```
Node<int>* head = NULL;
```
mean you are passing NULL into your search method.
Your search method should not take a head parameter at all - `head` is already a member of your class.
Also note: you have lots of memory leaks like this:
```
Node<T>* temp = new Node<T>;
temp = head;
```
You don't nee... |
7,912,335 | I have a page I have to update, it has 3 frames (top bar, side bar and main content. If i click something in the main content frame i want to update a list in the side bar frame. how do i do this (i use jquery or javascript for button clicks). | 2011/10/27 | [
"https://Stackoverflow.com/questions/7912335",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/930584/"
] | *Q: multiplexing allows to reduce overhead of creating new connections to FCGI clients effectively interweaving requests chunks*
A: True. But keep-alive is also reducing new connections.
*Q: and at the same time enabling "keep-alive" model to connection*
A: Multiplexing is not required for keep-alive.
*Q: Latter al... | I don't know if some server implement FASTCGI multiplexing (which I believe you understood correctly, but the details are in the FASTCTI protocol specifications), and I would not bother.
You will very probably use FASTCGI thru an [existing FASTCGI library](http://www.fastcgi.com/drupal/node/5) (e.g. [Ocamlnet](http://... |
7,912,335 | I have a page I have to update, it has 3 frames (top bar, side bar and main content. If i click something in the main content frame i want to update a list in the side bar frame. how do i do this (i use jquery or javascript for button clicks). | 2011/10/27 | [
"https://Stackoverflow.com/questions/7912335",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/930584/"
] | Trying to state the answers above more precisely (and correct some parts)...
>
> *multiplexing allows to reduce overhead of creating new connections to FCGI clients effectively interweaving requests chunks*
>
>
>
In opposite to keep-alive it reduces new connections drastically, especially on high-load servers or ... | I don't know if some server implement FASTCGI multiplexing (which I believe you understood correctly, but the details are in the FASTCTI protocol specifications), and I would not bother.
You will very probably use FASTCGI thru an [existing FASTCGI library](http://www.fastcgi.com/drupal/node/5) (e.g. [Ocamlnet](http://... |
12,569,018 | I am studying python, and although I think I get the whole concept and notion of Python, today I stumbled upon a piece of code that I did not fully understand:
Say I have a class that is supposed to define Circles but lacks a body:
```
class Circle():
pass
```
Since I have not defined any attributes, how can I ... | 2012/09/24 | [
"https://Stackoverflow.com/questions/12569018",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1426969/"
] | It creates a `radius` data member of `my_circle`.
If you had asked it for `my_circle.radius` it would have thrown an exception:
```
>>> print my_circle.radius # AttributeError
```
Interestingly, this does not change the class; just that one instance. So:
```
>>> my_circle = Circle()
>>> my_circle.radius = 5
>>> my... | How to prevent new attributes creation ?
========================================
Using class
-----------
To control the creation of new attributes, you can overwrite the `__setattr__` method. It will be called every time `my_obj.x = 123` is called.
See the [documentation](https://docs.python.org/3/reference/datamod... |
12,569,018 | I am studying python, and although I think I get the whole concept and notion of Python, today I stumbled upon a piece of code that I did not fully understand:
Say I have a class that is supposed to define Circles but lacks a body:
```
class Circle():
pass
```
Since I have not defined any attributes, how can I ... | 2012/09/24 | [
"https://Stackoverflow.com/questions/12569018",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1426969/"
] | It creates a `radius` data member of `my_circle`.
If you had asked it for `my_circle.radius` it would have thrown an exception:
```
>>> print my_circle.radius # AttributeError
```
Interestingly, this does not change the class; just that one instance. So:
```
>>> my_circle = Circle()
>>> my_circle.radius = 5
>>> my... | There are two types of attributes in Python - `Class Data Attributes` and `Instance Data Attributes`.
Python gives you flexibility of creating `Data Attributes` on the fly.
Since an instance data attribute is related to an instance, you can also do that in `__init__` method or you can do it after you have created yo... |
12,569,018 | I am studying python, and although I think I get the whole concept and notion of Python, today I stumbled upon a piece of code that I did not fully understand:
Say I have a class that is supposed to define Circles but lacks a body:
```
class Circle():
pass
```
Since I have not defined any attributes, how can I ... | 2012/09/24 | [
"https://Stackoverflow.com/questions/12569018",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1426969/"
] | To add to [Conchylicultor's answer](https://stackoverflow.com/a/59711821/1719931), Python 3.10 added a new parameter to `dataclass`.
The `slots` parameter will create the `__slots__` attribute in the class, preventing creation of new attributes outside of `__init__`, but allowing assignments to existing attributes.
I... | As delnan said, you can obtain this behavior with the `__slots__` attribute. But the fact that it is a way to save memory space and access type does not discard the fact that it is (also) a/the mean to disable dynamic attributes.
Disabling dynamic attributes is a reasonable thing to do, if only to prevent subtle bugs ... |
12,569,018 | I am studying python, and although I think I get the whole concept and notion of Python, today I stumbled upon a piece of code that I did not fully understand:
Say I have a class that is supposed to define Circles but lacks a body:
```
class Circle():
pass
```
Since I have not defined any attributes, how can I ... | 2012/09/24 | [
"https://Stackoverflow.com/questions/12569018",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1426969/"
] | Just to clarify some misunderstandings in the discussions here. This code:
```
class Foo(object):
def __init__(self, bar):
self.bar = bar
foo = Foo(5)
```
And this code:
```
class Foo(object):
pass
foo = Foo()
foo.bar = 5
```
is *exactly equivalent*. There really is no difference. It does exactl... | How to prevent new attributes creation ?
========================================
Using class
-----------
To control the creation of new attributes, you can overwrite the `__setattr__` method. It will be called every time `my_obj.x = 123` is called.
See the [documentation](https://docs.python.org/3/reference/datamod... |
12,569,018 | I am studying python, and although I think I get the whole concept and notion of Python, today I stumbled upon a piece of code that I did not fully understand:
Say I have a class that is supposed to define Circles but lacks a body:
```
class Circle():
pass
```
Since I have not defined any attributes, how can I ... | 2012/09/24 | [
"https://Stackoverflow.com/questions/12569018",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1426969/"
] | A leading principle is that *there is no such thing as a declaration*. That is, you never declare "this class has a method foo" or "instances of this class have an attribute bar", let alone making a statement about the types of objects to be stored there. You simply define a method, attribute, class, etc. and it's adde... | As delnan said, you can obtain this behavior with the `__slots__` attribute. But the fact that it is a way to save memory space and access type does not discard the fact that it is (also) a/the mean to disable dynamic attributes.
Disabling dynamic attributes is a reasonable thing to do, if only to prevent subtle bugs ... |
12,569,018 | I am studying python, and although I think I get the whole concept and notion of Python, today I stumbled upon a piece of code that I did not fully understand:
Say I have a class that is supposed to define Circles but lacks a body:
```
class Circle():
pass
```
Since I have not defined any attributes, how can I ... | 2012/09/24 | [
"https://Stackoverflow.com/questions/12569018",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1426969/"
] | Just to clarify some misunderstandings in the discussions here. This code:
```
class Foo(object):
def __init__(self, bar):
self.bar = bar
foo = Foo(5)
```
And this code:
```
class Foo(object):
pass
foo = Foo()
foo.bar = 5
```
is *exactly equivalent*. There really is no difference. It does exactl... | No, python is flexible like that, it does not enforce what attributes you can store on user-defined classes.
There is a trick however, using the [`__slots__` attribute](http://docs.python.org/reference/datamodel.html#slots) on a class definition will prevent you from creating additional attributes not defined in the `... |
12,569,018 | I am studying python, and although I think I get the whole concept and notion of Python, today I stumbled upon a piece of code that I did not fully understand:
Say I have a class that is supposed to define Circles but lacks a body:
```
class Circle():
pass
```
Since I have not defined any attributes, how can I ... | 2012/09/24 | [
"https://Stackoverflow.com/questions/12569018",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1426969/"
] | Python lets you store attributes of any name on virtually any instance (or class, for that matter). It's possible to block this either by writing the class in C, like the built-in types, or by using `__slots__` which allows only certain names.
The reason it works is that most instances store their attributes in a dict... | To add to [Conchylicultor's answer](https://stackoverflow.com/a/59711821/1719931), Python 3.10 added a new parameter to `dataclass`.
The `slots` parameter will create the `__slots__` attribute in the class, preventing creation of new attributes outside of `__init__`, but allowing assignments to existing attributes.
I... |
12,569,018 | I am studying python, and although I think I get the whole concept and notion of Python, today I stumbled upon a piece of code that I did not fully understand:
Say I have a class that is supposed to define Circles but lacks a body:
```
class Circle():
pass
```
Since I have not defined any attributes, how can I ... | 2012/09/24 | [
"https://Stackoverflow.com/questions/12569018",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1426969/"
] | A leading principle is that *there is no such thing as a declaration*. That is, you never declare "this class has a method foo" or "instances of this class have an attribute bar", let alone making a statement about the types of objects to be stored there. You simply define a method, attribute, class, etc. and it's adde... | There are two types of attributes in Python - `Class Data Attributes` and `Instance Data Attributes`.
Python gives you flexibility of creating `Data Attributes` on the fly.
Since an instance data attribute is related to an instance, you can also do that in `__init__` method or you can do it after you have created yo... |
12,569,018 | I am studying python, and although I think I get the whole concept and notion of Python, today I stumbled upon a piece of code that I did not fully understand:
Say I have a class that is supposed to define Circles but lacks a body:
```
class Circle():
pass
```
Since I have not defined any attributes, how can I ... | 2012/09/24 | [
"https://Stackoverflow.com/questions/12569018",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1426969/"
] | No, python is flexible like that, it does not enforce what attributes you can store on user-defined classes.
There is a trick however, using the [`__slots__` attribute](http://docs.python.org/reference/datamodel.html#slots) on a class definition will prevent you from creating additional attributes not defined in the `... | To add to [Conchylicultor's answer](https://stackoverflow.com/a/59711821/1719931), Python 3.10 added a new parameter to `dataclass`.
The `slots` parameter will create the `__slots__` attribute in the class, preventing creation of new attributes outside of `__init__`, but allowing assignments to existing attributes.
I... |
12,569,018 | I am studying python, and although I think I get the whole concept and notion of Python, today I stumbled upon a piece of code that I did not fully understand:
Say I have a class that is supposed to define Circles but lacks a body:
```
class Circle():
pass
```
Since I have not defined any attributes, how can I ... | 2012/09/24 | [
"https://Stackoverflow.com/questions/12569018",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1426969/"
] | No, python is flexible like that, it does not enforce what attributes you can store on user-defined classes.
There is a trick however, using the [`__slots__` attribute](http://docs.python.org/reference/datamodel.html#slots) on a class definition will prevent you from creating additional attributes not defined in the `... | It creates a `radius` data member of `my_circle`.
If you had asked it for `my_circle.radius` it would have thrown an exception:
```
>>> print my_circle.radius # AttributeError
```
Interestingly, this does not change the class; just that one instance. So:
```
>>> my_circle = Circle()
>>> my_circle.radius = 5
>>> my... |
43,986,558 | I have a panda data frame with several column of integers, as well as a corresponding dictionary of {column : {integer:string\_label}}.
I am trying to create a dataframe in which the integers have been replaced by their labels. The closest I got is below, but the output is somewhat unexpected.
**Code**
```
import pa... | 2017/05/15 | [
"https://Stackoverflow.com/questions/43986558",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6255101/"
] | As Greg mentioned, the issue is your strings do not match your `levels`. They need to match exactly. To apply this, you could do the following:
```
#starting with user specific data and levels
chr_string <- c("NEW.ENGLAND", "NEW.ENGLAND", "NEW.ENGLAND", "NEW.ENGLAND", "NEW.ENGLAND", "NEW.ENGLAND",
"NEW... | The specified levels need to match the character strings. Your first element is "NEW.ENGLAND", but in the levels you have "NEW ENGLAND" (with a space instead of a dot), so R is not going to match them up. When creating the factor those need to match exactly, you can use the `labels` argument to change the level codes a... |
59,655,017 | I have a dataframe like this with two date columns and a quamtity column :
```
start_date end_date qty
1 2018-01-01 2018-01-08 23
2 2018-01-08 2018-01-15 21
3 2018-01-15 2018-01-22 5
4 2018-01-22 2018-01-29 12
```
I have a... | 2020/01/08 | [
"https://Stackoverflow.com/questions/59655017",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1073962/"
] | If you want a fully-vectorized solution, consider using the underlying `numpy` arrays:
```py
import numpy as np
def holiday_arr(start, end, holidays):
start = start.reshape((-1, 1))
end = end.reshape((-1, 1))
holidays = holidays.reshape((1, -1))
result = np.any(
(start <= holiday) & (holiday <... | try:
```
def _is_holiday(row, df2):
return ((df2['holiday'] >= row['start_date']) & (df2['holiday'] <= row['end_date'])).any()
df1.apply(lambda x: _is_holiday(x, df2), axis=1)
``` |
59,655,017 | I have a dataframe like this with two date columns and a quamtity column :
```
start_date end_date qty
1 2018-01-01 2018-01-08 23
2 2018-01-08 2018-01-15 21
3 2018-01-15 2018-01-22 5
4 2018-01-22 2018-01-29 12
```
I have a... | 2020/01/08 | [
"https://Stackoverflow.com/questions/59655017",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1073962/"
] | If you want a fully-vectorized solution, consider using the underlying `numpy` arrays:
```py
import numpy as np
def holiday_arr(start, end, holidays):
start = start.reshape((-1, 1))
end = end.reshape((-1, 1))
holidays = holidays.reshape((1, -1))
result = np.any(
(start <= holiday) & (holiday <... | I'm not sure why you would want to go row-by-row. But boolean comparisons would be way faster.
```
df['holiday'] = ((df2.holiday >= df.start_date) & (df2.holiday <= df.end_date))
```
Time
```
>>> 1000 loops, best of 3: 1.05 ms per loop
```
Quoting @hchw solution (row-by-row)
```
def _is_holiday(row, df2):
... |
59,655,017 | I have a dataframe like this with two date columns and a quamtity column :
```
start_date end_date qty
1 2018-01-01 2018-01-08 23
2 2018-01-08 2018-01-15 21
3 2018-01-15 2018-01-22 5
4 2018-01-22 2018-01-29 12
```
I have a... | 2020/01/08 | [
"https://Stackoverflow.com/questions/59655017",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1073962/"
] | If you want a fully-vectorized solution, consider using the underlying `numpy` arrays:
```py
import numpy as np
def holiday_arr(start, end, holidays):
start = start.reshape((-1, 1))
end = end.reshape((-1, 1))
holidays = holidays.reshape((1, -1))
result = np.any(
(start <= holiday) & (holiday <... | Try `IntervalIndex.contains` with list comprehensiont and `np.sum`
```
iix = pd.IntervalIndex.from_arrays(df1.start_date, df1.end_date, closed='both')
df1['holidays'] = np.sum([iix.contains(x) for x in df2.holiday], axis=0) >= 1
Out[812]:
start_date end_date qty holidays
1 2018-01-01 2018-01-08 23 True
2... |
3,238,457 | How can I consume a JSON document without jQuery? Instead of calling the method `getJSON()`, I'd like to design my own. How do I do that? | 2010/07/13 | [
"https://Stackoverflow.com/questions/3238457",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/373213/"
] | If it's the same domain request then use window.XMLHttpRequest. If it's remote, then inject a script element, you can see how jQuery does it:
```
// If we're requesting a remote document
// and trying to load JSON or Script with a GET
if ( s.dataType === "script" && type === "GET" && remote ) {
var... | You would have to roll your own JSON/AJAX function. There are some examples [here](http://www.webreference.com/programming/javascript/rg5/). I am not sure how good they are. |
44,378,973 | So what I am trying to achieve is to return a pointer to a 2D array from the function so it could accessed in main(). I know there are some C++ libraries that does it for you like `std::vector` but I am trying to avoid dynamic memory allocation since I am working on embedded board (STM32) so I will stick to just normal... | 2017/06/05 | [
"https://Stackoverflow.com/questions/44378973",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8109229/"
] | The immediate problem:
```
test_array[2][2]={ {10,20}, {30, 40} }; //defining here - ERROR!!
```
is not defining. `test_array` was defined up in `myClass`. This is attempting to assign to a single element of `test_array`, specifically `[2][2]` which does not exist. What particularly offends the compiler is not the o... | If you really want to work with C-Array, use typedef to have *normal* syntax:
```
class myClass{
public:
using array2 = int[2][2];
myClass() {
test_array[0][0] = 0;
test_array[0][1] = 1;
test_array[1][0] = 2;
test_array[1][1] = 3;
}
const array2& getArray() const {... |
27,902 | In "some characteristic C is what distinguishes A from B", does characteristic C belongs to A but not to B, or to B but not to A?
For example:
>
> Imposing restrictions on the available resources is what distinguishes computational complexity from computability theory.
>
>
> | 2011/05/31 | [
"https://english.stackexchange.com/questions/27902",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/683/"
] | I think the word you are after is *listener* in everyday terminology.
The speaker speaks to an *audience*. In the audience, you may find some very attentive *listeners*. Everybody in the room will hear the talk, so it might be argued that *hearer* is a possibility.
It depends on the interest of the audience member, t... | **Edited Answer, see below.**
Every time I've studied conversations patterns and rules of speaking, the other person has always been called either **hearer** or **addressee**. Here I'll quote an example from my notes:
>
> "Speakers and hearers constantly adjust their internal registry of deictics to keep up with the... |
27,902 | In "some characteristic C is what distinguishes A from B", does characteristic C belongs to A but not to B, or to B but not to A?
For example:
>
> Imposing restrictions on the available resources is what distinguishes computational complexity from computability theory.
>
>
> | 2011/05/31 | [
"https://english.stackexchange.com/questions/27902",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/683/"
] | I think the word you are after is *listener* in everyday terminology.
The speaker speaks to an *audience*. In the audience, you may find some very attentive *listeners*. Everybody in the room will hear the talk, so it might be argued that *hearer* is a possibility.
It depends on the interest of the audience member, t... | The answers given answer the title question of 'hearing equivalent for “speaker”'.
However, the question is actually asked in reference to analysing a **conversation**. In that case, 'speakers' isn't really correct either. Those who speak in a conversation also plays the same listening role as those who do not speak.
... |
27,902 | In "some characteristic C is what distinguishes A from B", does characteristic C belongs to A but not to B, or to B but not to A?
For example:
>
> Imposing restrictions on the available resources is what distinguishes computational complexity from computability theory.
>
>
> | 2011/05/31 | [
"https://english.stackexchange.com/questions/27902",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/683/"
] | **Edited Answer, see below.**
Every time I've studied conversations patterns and rules of speaking, the other person has always been called either **hearer** or **addressee**. Here I'll quote an example from my notes:
>
> "Speakers and hearers constantly adjust their internal registry of deictics to keep up with the... | The answers given answer the title question of 'hearing equivalent for “speaker”'.
However, the question is actually asked in reference to analysing a **conversation**. In that case, 'speakers' isn't really correct either. Those who speak in a conversation also plays the same listening role as those who do not speak.
... |
6,838,882 | 1.) I have an XSD file (I have no control over) that I converted to object model using JAXB
2.) I have a database extract in XML format. The XML element tag names are strictly the field names of the table
3.) I mapped the xml elements to the Java class using annotations.
Question: Is there a way to maintain the elem... | 2011/07/27 | [
"https://Stackoverflow.com/questions/6838882",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/851133/"
] | Do it at the web server level. Since you tagged your question `.htaccess` I'm assuming that's Apache.
```
RewriteEngine On
RewriteCond %{QUERY_STRING} file=(.*)&name=(.*)&sid=(.*)
RewriteRule modules.php modules.php?name=%2&file=%1&sid=%3 [R=301,L]
```
I haven't tested that, does it work? | You could try something like this -
```
<?php
if (preg_match ('/file=article\&name=Name/', $_SERVER['REQUEST_URI'])) {
header ('HTTP/1.1 301 Moved Permanently');
header ('Location: ' . str_replace('file=article&name=Name', 'name=Name&file=article', $_SERVER['REQUEST_URI']);
}
```
or for a more generic one
... |
20,099,214 | I'm having a tough time enabling javascript in chrome on my own webpage. Other websites seem to be able to do it pretty easily. Here's my prtty simple code but the start() function just wouldn't work.
```
<doctype html>
<html>
<head>
<script type = "javascript">
function start() {
alert("Hi");
... | 2013/11/20 | [
"https://Stackoverflow.com/questions/20099214",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1591730/"
] | You're using wrong [**`type`** Attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script#Attributes), it should be
```
<script type="text/javascript">
```
or simply
```
<script> </script> //by default is type is "text/javascript"
```
Also change `<!DOCTYPE html>` | ```
<!doctype html>
<html>
<head>
<script>
function start() {
alert("Hi");
}
</script>
</head>
<body onload = "start()">
Hi
</body>
</html>
``` |
20,099,214 | I'm having a tough time enabling javascript in chrome on my own webpage. Other websites seem to be able to do it pretty easily. Here's my prtty simple code but the start() function just wouldn't work.
```
<doctype html>
<html>
<head>
<script type = "javascript">
function start() {
alert("Hi");
... | 2013/11/20 | [
"https://Stackoverflow.com/questions/20099214",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1591730/"
] | The main problem is your type attribute. If you were to keep it, then it should be
```
<script type="text/javascript"></script>
```
However, you don't need it (See here: <http://javascript.crockford.com/script.html>). You can just use
```
<script></script>
```
That will fix your function.
Although not directly h... | ```
<!doctype html>
<html>
<head>
<script>
function start() {
alert("Hi");
}
</script>
</head>
<body onload = "start()">
Hi
</body>
</html>
``` |
20,833,084 | I want to change guest VM's(Windows) IP address on ESXi. One way I have known is using RDP to connect to the guest OS and modifying the network configuration.
However, I wish to make the process automated. Hence, does vCenter or ESXi contain similar functions or tools to perform this demand? (I have tried ovftool and ... | 2013/12/30 | [
"https://Stackoverflow.com/questions/20833084",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3145174/"
] | **Why is `n` the exact same Object as `None`?**
The C implementation keeps a singleton instance. `NoneType.__new__` is returning the singleton instance.
**Why was the language designed such that n is the exact same Object as `None`?**
If there was not a singleton instance, then you could not rely on the check `x is ... | 1. The NoneType overrides `__new__` which always return the same singleton. The code is actually [written in C](http://hg.python.org/cpython/file/b35b204e5d0b/Objects/object.c#l1412) so `dis` cannot help, but conceptually it's just like this.
2. Having only one None instance is easier to deal with. They are all equal a... |
20,833,084 | I want to change guest VM's(Windows) IP address on ESXi. One way I have known is using RDP to connect to the guest OS and modifying the network configuration.
However, I wish to make the process automated. Hence, does vCenter or ESXi contain similar functions or tools to perform this demand? (I have tried ovftool and ... | 2013/12/30 | [
"https://Stackoverflow.com/questions/20833084",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3145174/"
] | >
> Why is n the exact same Object as None?
>
>
>
Many immutable objects in Python are [interned](http://en.wikipedia.org/wiki/String_interning) including `None`, smaller ints, and many strings.
Demo:
```
>>> s1='abc'
>>> s2='def'
>>> s3='abc'
>>> id(s1)
4540177408
>>> id(s3)
4540177408 # Note: same as s1
>>... | 1. The NoneType overrides `__new__` which always return the same singleton. The code is actually [written in C](http://hg.python.org/cpython/file/b35b204e5d0b/Objects/object.c#l1412) so `dis` cannot help, but conceptually it's just like this.
2. Having only one None instance is easier to deal with. They are all equal a... |
20,833,084 | I want to change guest VM's(Windows) IP address on ESXi. One way I have known is using RDP to connect to the guest OS and modifying the network configuration.
However, I wish to make the process automated. Hence, does vCenter or ESXi contain similar functions or tools to perform this demand? (I have tried ovftool and ... | 2013/12/30 | [
"https://Stackoverflow.com/questions/20833084",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3145174/"
] | Other answers describe how to use `__new__` to implement a singleton, but that's not how None is actually implemented (in cPython at least, I haven't looked into other implementations).
Trying to create an instance of None through `type(None)()` is special cased, and ends up calling the [following C function](http://h... | 1. The NoneType overrides `__new__` which always return the same singleton. The code is actually [written in C](http://hg.python.org/cpython/file/b35b204e5d0b/Objects/object.c#l1412) so `dis` cannot help, but conceptually it's just like this.
2. Having only one None instance is easier to deal with. They are all equal a... |
20,833,084 | I want to change guest VM's(Windows) IP address on ESXi. One way I have known is using RDP to connect to the guest OS and modifying the network configuration.
However, I wish to make the process automated. Hence, does vCenter or ESXi contain similar functions or tools to perform this demand? (I have tried ovftool and ... | 2013/12/30 | [
"https://Stackoverflow.com/questions/20833084",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3145174/"
] | **Why is `n` the exact same Object as `None`?**
The C implementation keeps a singleton instance. `NoneType.__new__` is returning the singleton instance.
**Why was the language designed such that n is the exact same Object as `None`?**
If there was not a singleton instance, then you could not rely on the check `x is ... | >
> Why is n the exact same Object as None?
>
>
>
Many immutable objects in Python are [interned](http://en.wikipedia.org/wiki/String_interning) including `None`, smaller ints, and many strings.
Demo:
```
>>> s1='abc'
>>> s2='def'
>>> s3='abc'
>>> id(s1)
4540177408
>>> id(s3)
4540177408 # Note: same as s1
>>... |
20,833,084 | I want to change guest VM's(Windows) IP address on ESXi. One way I have known is using RDP to connect to the guest OS and modifying the network configuration.
However, I wish to make the process automated. Hence, does vCenter or ESXi contain similar functions or tools to perform this demand? (I have tried ovftool and ... | 2013/12/30 | [
"https://Stackoverflow.com/questions/20833084",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3145174/"
] | **Why is `n` the exact same Object as `None`?**
The C implementation keeps a singleton instance. `NoneType.__new__` is returning the singleton instance.
**Why was the language designed such that n is the exact same Object as `None`?**
If there was not a singleton instance, then you could not rely on the check `x is ... | Other answers describe how to use `__new__` to implement a singleton, but that's not how None is actually implemented (in cPython at least, I haven't looked into other implementations).
Trying to create an instance of None through `type(None)()` is special cased, and ends up calling the [following C function](http://h... |
20,833,084 | I want to change guest VM's(Windows) IP address on ESXi. One way I have known is using RDP to connect to the guest OS and modifying the network configuration.
However, I wish to make the process automated. Hence, does vCenter or ESXi contain similar functions or tools to perform this demand? (I have tried ovftool and ... | 2013/12/30 | [
"https://Stackoverflow.com/questions/20833084",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3145174/"
] | Other answers describe how to use `__new__` to implement a singleton, but that's not how None is actually implemented (in cPython at least, I haven't looked into other implementations).
Trying to create an instance of None through `type(None)()` is special cased, and ends up calling the [following C function](http://h... | >
> Why is n the exact same Object as None?
>
>
>
Many immutable objects in Python are [interned](http://en.wikipedia.org/wiki/String_interning) including `None`, smaller ints, and many strings.
Demo:
```
>>> s1='abc'
>>> s2='def'
>>> s3='abc'
>>> id(s1)
4540177408
>>> id(s3)
4540177408 # Note: same as s1
>>... |
28,899,747 | I need to run the ffmpeg command in the PHP.
But php-ffmpeg is no more supports the latest version and out of date.
May i know alternate way to run the ffmpeg command in the webfile (PHP,Javascript,jQuery).
I try the `exec()` and `shell_exec()` in the PHP file but gets the blank output.
```
echo shell_exec("/usr/lo... | 2015/03/06 | [
"https://Stackoverflow.com/questions/28899747",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3836660/"
] | ffmpeg outputs on stderr, so you need to redirect the output. Add `2>&1` to your command line:
```
echo shell_exec("/usr/local/bin/ffmpeg -i test.mp3 -codec:a libmp3lame -b:a 128k out.mp3 2>&1");
```
Then you will see the output. | use **FFMpeg\FFMpeg**, you can install with composer: **"php-ffmpeg/php-ffmpeg"**: "0.5.\*@dev" ([FFMpeg\FFMpeg Git Repository](https://github.com/PHP-FFMpeg/PHP-FFMpeg))
**Or**
use **Symfony Process**, you can install with composer: **"symfony/process" : "~2.0"** ([Symfony Process Documentation](http://symfony.com/d... |
28,899,747 | I need to run the ffmpeg command in the PHP.
But php-ffmpeg is no more supports the latest version and out of date.
May i know alternate way to run the ffmpeg command in the webfile (PHP,Javascript,jQuery).
I try the `exec()` and `shell_exec()` in the PHP file but gets the blank output.
```
echo shell_exec("/usr/lo... | 2015/03/06 | [
"https://Stackoverflow.com/questions/28899747",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3836660/"
] | use **FFMpeg\FFMpeg**, you can install with composer: **"php-ffmpeg/php-ffmpeg"**: "0.5.\*@dev" ([FFMpeg\FFMpeg Git Repository](https://github.com/PHP-FFMpeg/PHP-FFMpeg))
**Or**
use **Symfony Process**, you can install with composer: **"symfony/process" : "~2.0"** ([Symfony Process Documentation](http://symfony.com/d... | first you have to install ffmpeg library in your server. with out install ffmpeg in your server command will not run.
the following link will help you
<https://ffmpeg.org/>
<https://www.resellerspanel.com/articles/dedicated-servers-articles/dedicated-servers-howtos/how-to-install-ffmpeg-on-a-dedicated-server/>
then... |
28,899,747 | I need to run the ffmpeg command in the PHP.
But php-ffmpeg is no more supports the latest version and out of date.
May i know alternate way to run the ffmpeg command in the webfile (PHP,Javascript,jQuery).
I try the `exec()` and `shell_exec()` in the PHP file but gets the blank output.
```
echo shell_exec("/usr/lo... | 2015/03/06 | [
"https://Stackoverflow.com/questions/28899747",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3836660/"
] | ffmpeg outputs on stderr, so you need to redirect the output. Add `2>&1` to your command line:
```
echo shell_exec("/usr/local/bin/ffmpeg -i test.mp3 -codec:a libmp3lame -b:a 128k out.mp3 2>&1");
```
Then you will see the output. | first you have to install ffmpeg library in your server. with out install ffmpeg in your server command will not run.
the following link will help you
<https://ffmpeg.org/>
<https://www.resellerspanel.com/articles/dedicated-servers-articles/dedicated-servers-howtos/how-to-install-ffmpeg-on-a-dedicated-server/>
then... |
32,116,167 | I am using jquery validate for form validation.
There is only one element in the form as of now.Others will be added later.The `form_email` field is required.
here is my script with html
```
<form novalidate="novalidate" name="Emergency Contact Form" action="#" id="form_3" class="form-horizontal">
<div class=... | 2015/08/20 | [
"https://Stackoverflow.com/questions/32116167",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3710726/"
] | ```
<div ng-repeat="x in names">
<div>{{x.name}}
<span ng-repeat="y in usernames track by $index">
<input ng-model="y.assignedUserNames" ng-if="y.mgId==x.mgId "></input>
</span>
</div>
</div>
```
Working [plunker](http://fiddle.jshell.net/7Ly6q14c/10/) | You can do something like this in code..
```js
var app = angular.module('app', []);
app.controller('ctrl',
function ($scope) {
$scope.masterClausesList =
[
{
"Id":1,
"ID":1,
"Title":"Platform",
"Desc":"Our Platform provides our users with a variety of resources to facilitate o... |
1,941,044 | >
> $\mathbf{a}\times \mathbf{b}$ follows the right hand rule? Why not left hand rule? Why is it $a b \sin (x)$ times the perpendicular vector? Why is $\sin (x)$ used with the vectors but $\cos(x)$ is a scalar product?
>
>
>
So why is cross product defined in the way that it is?
I am mainly interested in the right... | 2016/09/25 | [
"https://math.stackexchange.com/questions/1941044",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/363952/"
] | Well, one can see the rule as is in order to agree with the standard orientation of $\mathbb{R}^3$ $(e\_1 \times e\_2=e\_3)$. Or just convention.
There is a way to see how this can come up "naturally", though.
Given $a,b \in \mathbb{R}^3$, $a \times b$ is the vector which comes out from Riesz representation theorem ... | The real reason is because it is convention to use a right-handed coordinate system. If you switched to a left-handed coordinate system for some reason (I'm not sure why), then you would need to do your cross-products using a left-hand rule to get the same answers. That's really as simple as it gets. It's a result of o... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.