qid int64 1 74.7M | question stringlengths 15 58.3k | date stringlengths 10 10 | metadata list | response_j stringlengths 4 30.2k | response_k stringlengths 11 36.5k |
|---|---|---|---|---|---|
5,056,699 | I am trying to update my application , but after uploading the binary , Itunes connect sends me this email :
>
> Dear Developer, Thank you for your
> recent binary submission for "MY APP"
> to the App Store. Unfortunately we
> discovered an issue with your binary
> that you will need to correct in order
> for yo... | 2011/02/20 | [
"https://Stackoverflow.com/questions/5056699",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/319097/"
] | I had the same message appear from Apple, and selecting "targets" not "projects" when setting code signing identity did NOT resolve my issue.
Turns out, as the last step of submitting the app to the store (via XCode4's Organizer panel - Archives tab), I was presented with a dialog sheet that showed the distribution c... | I got the same problem and spent many evenings solving it!
For my app the problem was a **question mark in the executable name**. In the apple developer docs is noted you can't use special character in executable name but not which ones are allowed.
I changed the executable name in build settings and the upload works... |
5,056,699 | I am trying to update my application , but after uploading the binary , Itunes connect sends me this email :
>
> Dear Developer, Thank you for your
> recent binary submission for "MY APP"
> to the App Store. Unfortunately we
> discovered an issue with your binary
> that you will need to correct in order
> for yo... | 2011/02/20 | [
"https://Stackoverflow.com/questions/5056699",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/319097/"
] | I had the same message appear from Apple, and selecting "targets" not "projects" when setting code signing identity did NOT resolve my issue.
Turns out, as the last step of submitting the app to the store (via XCode4's Organizer panel - Archives tab), I was presented with a dialog sheet that showed the distribution c... | I have been battling this issue for almost a week! For me, it turned out that the Error email from Apple was completely wrong and misleading. (I knew that all of my certificates and code signing settings were in fact correct.) It turned out, that my app was getting rejected because there was an exclamation point (!) in... |
5,056,699 | I am trying to update my application , but after uploading the binary , Itunes connect sends me this email :
>
> Dear Developer, Thank you for your
> recent binary submission for "MY APP"
> to the App Store. Unfortunately we
> discovered an issue with your binary
> that you will need to correct in order
> for yo... | 2011/02/20 | [
"https://Stackoverflow.com/questions/5056699",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/319097/"
] | I had the same message appear from Apple, and selecting "targets" not "projects" when setting code signing identity did NOT resolve my issue.
Turns out, as the last step of submitting the app to the store (via XCode4's Organizer panel - Archives tab), I was presented with a dialog sheet that showed the distribution c... | I had exactly the same problem, checked everything but couldn't find any issues.
Problem ended up being because my project was stored on a FAT32 USB stick! Copied it to my Mac and everything worked perfectly after that.
Hope this helps! |
5,056,699 | I am trying to update my application , but after uploading the binary , Itunes connect sends me this email :
>
> Dear Developer, Thank you for your
> recent binary submission for "MY APP"
> to the App Store. Unfortunately we
> discovered an issue with your binary
> that you will need to correct in order
> for yo... | 2011/02/20 | [
"https://Stackoverflow.com/questions/5056699",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/319097/"
] | Note that this QA is incredibly old. Apple have largely ameliorated this problem. Enjoy.
---
99 times out of 100, here is the problem:
### Select "TARGETS", not "PROJECT"
Click on the name of your project at the Top Left of the main XCode6 window. (ie, just above where it probably says "Classes".)
![enter image de... | I got the same problem and spent many evenings solving it!
For my app the problem was a **question mark in the executable name**. In the apple developer docs is noted you can't use special character in executable name but not which ones are allowed.
I changed the executable name in build settings and the upload works... |
5,056,699 | I am trying to update my application , but after uploading the binary , Itunes connect sends me this email :
>
> Dear Developer, Thank you for your
> recent binary submission for "MY APP"
> to the App Store. Unfortunately we
> discovered an issue with your binary
> that you will need to correct in order
> for yo... | 2011/02/20 | [
"https://Stackoverflow.com/questions/5056699",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/319097/"
] | A main point I'd like to offer is that Archive Validation (or submission thru App Loader) is **supposed** to identify the signature problem *before* sending the application to iTunes Connect. This is a first indication that the problem is related to a developer tools error.
Having witnessed this problem with multiple ... | I got the same problem and spent many evenings solving it!
For my app the problem was a **question mark in the executable name**. In the apple developer docs is noted you can't use special character in executable name but not which ones are allowed.
I changed the executable name in build settings and the upload works... |
5,056,699 | I am trying to update my application , but after uploading the binary , Itunes connect sends me this email :
>
> Dear Developer, Thank you for your
> recent binary submission for "MY APP"
> to the App Store. Unfortunately we
> discovered an issue with your binary
> that you will need to correct in order
> for yo... | 2011/02/20 | [
"https://Stackoverflow.com/questions/5056699",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/319097/"
] | Note that this QA is incredibly old. Apple have largely ameliorated this problem. Enjoy.
---
99 times out of 100, here is the problem:
### Select "TARGETS", not "PROJECT"
Click on the name of your project at the Top Left of the main XCode6 window. (ie, just above where it probably says "Classes".)
![enter image de... | I had the same message appear from Apple, and selecting "targets" not "projects" when setting code signing identity did NOT resolve my issue.
Turns out, as the last step of submitting the app to the store (via XCode4's Organizer panel - Archives tab), I was presented with a dialog sheet that showed the distribution c... |
5,056,699 | I am trying to update my application , but after uploading the binary , Itunes connect sends me this email :
>
> Dear Developer, Thank you for your
> recent binary submission for "MY APP"
> to the App Store. Unfortunately we
> discovered an issue with your binary
> that you will need to correct in order
> for yo... | 2011/02/20 | [
"https://Stackoverflow.com/questions/5056699",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/319097/"
] | Note that this QA is incredibly old. Apple have largely ameliorated this problem. Enjoy.
---
99 times out of 100, here is the problem:
### Select "TARGETS", not "PROJECT"
Click on the name of your project at the Top Left of the main XCode6 window. (ie, just above where it probably says "Classes".)
![enter image de... | I have been battling this issue for almost a week! For me, it turned out that the Error email from Apple was completely wrong and misleading. (I knew that all of my certificates and code signing settings were in fact correct.) It turned out, that my app was getting rejected because there was an exclamation point (!) in... |
5,056,699 | I am trying to update my application , but after uploading the binary , Itunes connect sends me this email :
>
> Dear Developer, Thank you for your
> recent binary submission for "MY APP"
> to the App Store. Unfortunately we
> discovered an issue with your binary
> that you will need to correct in order
> for yo... | 2011/02/20 | [
"https://Stackoverflow.com/questions/5056699",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/319097/"
] | Note that this QA is incredibly old. Apple have largely ameliorated this problem. Enjoy.
---
99 times out of 100, here is the problem:
### Select "TARGETS", not "PROJECT"
Click on the name of your project at the Top Left of the main XCode6 window. (ie, just above where it probably says "Classes".)
![enter image de... | I had exactly the same problem, checked everything but couldn't find any issues.
Problem ended up being because my project was stored on a FAT32 USB stick! Copied it to my Mac and everything worked perfectly after that.
Hope this helps! |
5,056,699 | I am trying to update my application , but after uploading the binary , Itunes connect sends me this email :
>
> Dear Developer, Thank you for your
> recent binary submission for "MY APP"
> to the App Store. Unfortunately we
> discovered an issue with your binary
> that you will need to correct in order
> for yo... | 2011/02/20 | [
"https://Stackoverflow.com/questions/5056699",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/319097/"
] | A main point I'd like to offer is that Archive Validation (or submission thru App Loader) is **supposed** to identify the signature problem *before* sending the application to iTunes Connect. This is a first indication that the problem is related to a developer tools error.
Having witnessed this problem with multiple ... | I have been battling this issue for almost a week! For me, it turned out that the Error email from Apple was completely wrong and misleading. (I knew that all of my certificates and code signing settings were in fact correct.) It turned out, that my app was getting rejected because there was an exclamation point (!) in... |
18,499,011 | I have 3 `NSManagedObjet`s; Person, Stuff, and Collection.

I want to use a `NSPredicate` to get a list of all `Collection`s that `ThePerson` has.
Example: Scott has objectA and objectB which are in collection Letters and object1 which is in collect... | 2013/08/28 | [
"https://Stackoverflow.com/questions/18499011",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/875498/"
] | When I put the following in mainpage.md
```
1 Test with backticks `-L$(MKLROOT)/lib/intel64 -lmkl_rt`
2 Test without backticks -L\$(MKLROOT)/lib/intel64 -lmkl_rt
3 Test with code <code>-L\$(MKLROOT)/lib/intel64 -lmkl_rt</code>
@verbatim
4 Test with verbatim -L$(MKLROOT)/lib/intel64 -lmkl_rt
@endverbatim
```
The `... | FWIW the latest version of Doxygen as of this writing (1.8.15) still behave in the same way and escaping the backslash still doesn't work. I'm using the following workaround for now:
```
`-L$``$(MKLROOT)`
```
which, while ugly, works and doesn't require adding the `<code>` tags everywhere.
I've also created [an iss... |
31,127,874 | JS Fiddle: <https://jsfiddle.net/7p81bnto/2/>
HTML:
`<body>
<main>
<div>
<div style="
height: 50px;
width: 200px;
background-color: green;
float: right;
"></div>
<div style="
height: 50px;
width: 100%;
background-color: yellow;
display: table;
padding-top: 50px;
"></div>
</div>
</main>
</body>`
View... | 2015/06/30 | [
"https://Stackoverflow.com/questions/31127874",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1662268/"
] | You are using `next()` which will not delimit your lines, try using `nextLine()` instead:
>
> String **nextLine**() Advances this scanner past the current line and
> returns the input that was skipped.
>
>
>
I'd suggest not using the delimiter, and get the whole line instead as a string, and then split the strin... | Aha, solved!
What this does is pull the entire text file into a String (using Scanner.nextLine() removes the '\n') and then adds the " = " at the end of each line instead. Thus, when the Scanner runs back over the String for the switch, it will already be ignoring the " = " and pull the desired information from the St... |
31,127,874 | JS Fiddle: <https://jsfiddle.net/7p81bnto/2/>
HTML:
`<body>
<main>
<div>
<div style="
height: 50px;
width: 200px;
background-color: green;
float: right;
"></div>
<div style="
height: 50px;
width: 100%;
background-color: yellow;
display: table;
padding-top: 50px;
"></div>
</div>
</main>
</body>`
View... | 2015/06/30 | [
"https://Stackoverflow.com/questions/31127874",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1662268/"
] | Instead of using .hasNext and .next(), you will have to use .hasNextLine() and .nextLine(). I would write this as a comment, but do not have enought rep to comment yet. | Aha, solved!
What this does is pull the entire text file into a String (using Scanner.nextLine() removes the '\n') and then adds the " = " at the end of each line instead. Thus, when the Scanner runs back over the String for the switch, it will already be ignoring the " = " and pull the desired information from the St... |
157,567 | Vertically inserted into the water I have a rectangle 6 feet wide and 4 feet high that is submerged under the water with 2 feet of water above it.
Using a riemann sum how do I find the pressure? I am not able to use the triangle ratio trick so what do I do now?
I tried to do the ratio and I got
$$\frac{a}{4-x}$$
$$... | 2012/06/13 | [
"https://math.stackexchange.com/questions/157567",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/-1/"
] | The geometry here is simpler than in your previous triangle question. We give a highly informal description that should lead you to the answer.
Divide the rectangle into a large number of horizontal strips of width $\Delta x$. Consider such a strip, which is more or less at depth $x$ feet beneath the water. The area o... | The pressure at a certain depth is given by $P = \rho g d$, where $\rho$ is the denstity of the fluid, $g$ is gravitational acceleration, and $d$ is depth.
Hydrostatic force $F$ can be calculated from the equation $F = PA$, where $P$ is the pressure and $A$ is the area.
The idea here is that water pressure changes ba... |
157,567 | Vertically inserted into the water I have a rectangle 6 feet wide and 4 feet high that is submerged under the water with 2 feet of water above it.
Using a riemann sum how do I find the pressure? I am not able to use the triangle ratio trick so what do I do now?
I tried to do the ratio and I got
$$\frac{a}{4-x}$$
$$... | 2012/06/13 | [
"https://math.stackexchange.com/questions/157567",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/-1/"
] | The [hydrostatic pressure](http://en.wikipedia.org/wiki/Fluid_statics#Hydrostatic_pressure) $P$ "is the pressure exerted by a fluid at
equilibrium due to the force of gravity". "For water and other liquids $P$ can be calculated according to the following formula"
$$
P=\rho gh,\tag{1}
$$
where
* $P$ is the hydrostatic... | The pressure at a certain depth is given by $P = \rho g d$, where $\rho$ is the denstity of the fluid, $g$ is gravitational acceleration, and $d$ is depth.
Hydrostatic force $F$ can be calculated from the equation $F = PA$, where $P$ is the pressure and $A$ is the area.
The idea here is that water pressure changes ba... |
157,567 | Vertically inserted into the water I have a rectangle 6 feet wide and 4 feet high that is submerged under the water with 2 feet of water above it.
Using a riemann sum how do I find the pressure? I am not able to use the triangle ratio trick so what do I do now?
I tried to do the ratio and I got
$$\frac{a}{4-x}$$
$$... | 2012/06/13 | [
"https://math.stackexchange.com/questions/157567",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/-1/"
] | The geometry here is simpler than in your previous triangle question. We give a highly informal description that should lead you to the answer.
Divide the rectangle into a large number of horizontal strips of width $\Delta x$. Consider such a strip, which is more or less at depth $x$ feet beneath the water. The area o... | The pressure difference from sea level at depth $x$ is given by $P(x) = \rho g x$, where $\rho$ is the density, and $g$ is the acceleration due to gravity. The force on a element '$dx$' tall at depth $x$ is $P(x) w \, dx$, where $w$ is the width.
Hence the total force in the plate is:
$$ F = w\int\_2^6 P(x) \, dx = \... |
157,567 | Vertically inserted into the water I have a rectangle 6 feet wide and 4 feet high that is submerged under the water with 2 feet of water above it.
Using a riemann sum how do I find the pressure? I am not able to use the triangle ratio trick so what do I do now?
I tried to do the ratio and I got
$$\frac{a}{4-x}$$
$$... | 2012/06/13 | [
"https://math.stackexchange.com/questions/157567",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/-1/"
] | The [hydrostatic pressure](http://en.wikipedia.org/wiki/Fluid_statics#Hydrostatic_pressure) $P$ "is the pressure exerted by a fluid at
equilibrium due to the force of gravity". "For water and other liquids $P$ can be calculated according to the following formula"
$$
P=\rho gh,\tag{1}
$$
where
* $P$ is the hydrostatic... | The geometry here is simpler than in your previous triangle question. We give a highly informal description that should lead you to the answer.
Divide the rectangle into a large number of horizontal strips of width $\Delta x$. Consider such a strip, which is more or less at depth $x$ feet beneath the water. The area o... |
157,567 | Vertically inserted into the water I have a rectangle 6 feet wide and 4 feet high that is submerged under the water with 2 feet of water above it.
Using a riemann sum how do I find the pressure? I am not able to use the triangle ratio trick so what do I do now?
I tried to do the ratio and I got
$$\frac{a}{4-x}$$
$$... | 2012/06/13 | [
"https://math.stackexchange.com/questions/157567",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/-1/"
] | The [hydrostatic pressure](http://en.wikipedia.org/wiki/Fluid_statics#Hydrostatic_pressure) $P$ "is the pressure exerted by a fluid at
equilibrium due to the force of gravity". "For water and other liquids $P$ can be calculated according to the following formula"
$$
P=\rho gh,\tag{1}
$$
where
* $P$ is the hydrostatic... | The pressure difference from sea level at depth $x$ is given by $P(x) = \rho g x$, where $\rho$ is the density, and $g$ is the acceleration due to gravity. The force on a element '$dx$' tall at depth $x$ is $P(x) w \, dx$, where $w$ is the width.
Hence the total force in the plate is:
$$ F = w\int\_2^6 P(x) \, dx = \... |
50,691,816 | I'm building a rails application and usign devise and omniauth-facebook for facebook authentication.
When the user signup with facebook, facebook prompts user to give access to the fields we requested.
If the user un checked the email field, facebook doesn't return email. But devise needs email field to create a user... | 2018/06/05 | [
"https://Stackoverflow.com/questions/50691816",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9873649/"
] | If you want the exact function Matlab has, why not just use that function? If you have the rest of your data in Python, then you can just use the [module](https://se.mathworks.com/help/matlab/matlab-engine-for-python.html) provided by Matlab.
```
import matlab.engine #import matlab engine
eng = matlab.engine.start_ma... | Try the [findpeaks library](https://erdogant.github.io/findpeaks). Multiple methods are available for the detections of peaks and valleys in 1D-vectors and 2D-arrays (images).
```
pip install findpeaks
```
Lets create some peaks:
```
i = 10000
xs = np.linspace(0,3.7*np.pi,i)
X = (0.3*np.sin(xs) + np.sin(1.3 * xs) +... |
2,564,111 | Here's the problem in full, and what I've got so far:
>
> Let $E= \lbrace (x, y) \in \mathbb{R}^2 | x-y \in \mathbb{Q} \rbrace$
>
>
> 1. Find $m(E)$, where $m$ is the Lebesgue measure on $\mathbb{R}^2$.
> 2. Do there exist measurable sets $A\_{1}$, $A\_{2} \subset \mathbb{R}$ with positive Lebesgue measure such tha... | 2017/12/13 | [
"https://math.stackexchange.com/questions/2564111",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/367539/"
] | The answer is indeed no, by [Lebesgue's density theorem](https://en.wikipedia.org/wiki/Lebesgue%27s_density_theorem).
Suppose $m(A)>0$ and $m(B)>0$ for $A,B \subset \mathbb{R}$. Then almost every $a \in A$ is a density point, and almost every $b \in B$ is a density point. For given density points $a \in A$ and $b \in ... | *Incorrect answer, but I'm keeping this hoping that part of the arguments can be reused.*
Assume such $A\_1,A\_2$ exist. Then they have positive Lebesgue measure. Similar to the proof in the linked question, define $Q=\Bbb Q\cap[0,1]$. Note that since all sets here is measurable, so [measure and product are interchang... |
2,564,111 | Here's the problem in full, and what I've got so far:
>
> Let $E= \lbrace (x, y) \in \mathbb{R}^2 | x-y \in \mathbb{Q} \rbrace$
>
>
> 1. Find $m(E)$, where $m$ is the Lebesgue measure on $\mathbb{R}^2$.
> 2. Do there exist measurable sets $A\_{1}$, $A\_{2} \subset \mathbb{R}$ with positive Lebesgue measure such tha... | 2017/12/13 | [
"https://math.stackexchange.com/questions/2564111",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/367539/"
] | The answer is indeed no, by [Lebesgue's density theorem](https://en.wikipedia.org/wiki/Lebesgue%27s_density_theorem).
Suppose $m(A)>0$ and $m(B)>0$ for $A,B \subset \mathbb{R}$. Then almost every $a \in A$ is a density point, and almost every $b \in B$ is a density point. For given density points $a \in A$ and $b \in ... | This is not possible. It's a consequence of the [Steinhaus theorem](https://en.wikipedia.org/wiki/Steinhaus_theorem): if $A,B$ have positive measure, then $A-B$ has nonempty interior.
There is an analogous theorem for category, namely $A-B$ has nonempty interior if $A$ and $B$ are both non-meagre. |
646,890 | What I am looking to do is find a match and then replace everything after character in the next line.
Example file contents:
```
super_service:
app_version: 1.02
duper_service:
app_version: 4.0.1
happy_service:
app_version: 2.03
turbo_service:
app_version: 1.28.0
```
Expected outcome: What I... | 2021/04/26 | [
"https://unix.stackexchange.com/questions/646890",
"https://unix.stackexchange.com",
"https://unix.stackexchange.com/users/389389/"
] | From the `lp` manpage.
>
> DESCRIPTION lp submits files for printing or alters a pending job. Use a filename of "-" to force printing from the standard input.
>
>
>
So depending on your print system you might get different results from
```bsh
lp *.txt
```
vs
```bsh
cat *.txt | lp -
```
The former lp looks a... | `ls *.txt` and `cat *.txt` is not the same at all.
`ls *.txt` will list all the files in the current directory with the extension ".txt".
while `cat *.txt` try to find a file "\*.txt" from the current directory and print the file content on standard output.
Solution:
```
ls *.txt > ouput_file
lp output_file
``` |
57,229 | The word confrère(s) in French is used to refer to males sharing the same profession; the word for females is consoeur(s).
How about English? Is this term used for both genders? | 2012/02/06 | [
"https://english.stackexchange.com/questions/57229",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/-1/"
] | The definition of confrere is gender-free in American dictionaries ([AHED](http://ahdictionary.com/word/search.html?q=confrere), [Merriam-Webster](http://www.merriam-webster.com/dictionary/confrere), and [Dictionary.com](http://dictionary.reference.com/browse/confrere), to name three).
Note that the usage example giv... | I've only heard *colleague* used in English instead of *confrère* or *consoeur*. Colleague does not imply gender in any way. It is not at all unusual for a male and female to be colleagues and that does not signify anything more than a professional association. |
44,713,096 | Div formations:
[](https://i.stack.imgur.com/v4rSA.png)
I'd like to make an inner div float right of the parent, regardless of the width of the parent and child div's.
I need to move the Refresh button to the right of Parent where I added the red color box(please ... | 2017/06/23 | [
"https://Stackoverflow.com/questions/44713096",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6413090/"
] | Sounds like a broken package. First things first, try cleaning it and rebuilding
```
bitbake -c cleanall batctl
bitbake -c cleanall batman-adv
bitbake batman-adv
bitbake batctl
```
Also, do you actually need those packages? If not just remove them by adding to your local.conf
```
IMAGE_INSTALL_remove = " bat... | Yes, like you just found out, you need to add `pkg-config` to your recipe's `DEPENDS`.
In earlier OpenEmbedded (Yocto) it often worked out anyway, as some other recipe had `pkg-config` in its `DEPENDS`. However, from the `Pyro` release, each recipe gets it's own sysroot; thus, you have to explicitly add everything th... |
33,327,541 | I'm trying to connect as subscriber (for recieving messages) to an azure event hub using python and the proton library.
I have found an example code and eventually got to:
```
import sys
import optparse
from proton import *
import urllib
mng = Messenger()
mng.start()
nb_partitions = 8
sasKeyName = "NAME"
sasPolicyK... | 2015/10/25 | [
"https://Stackoverflow.com/questions/33327541",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/989659/"
] | There could be multiple reasons why you are not able to receive messages.
this could also be one of the reason Please do check **outbound ports 5671 /9352** used by the Event hub are not blocked by firewall .
Refer to this [link](http://thecodetricks.blogspot.in/2015/10/azure-event-hub-on-premise-blocked.html) | change consumer group --> `$Default` to `$default`
```
address = "amqps://%s:%s@%s.servicebus.windows.net/%s/ConsumerGroups/$default" % (sasKeyName, safeSasPolicyKey,name_space,eventhub)
``` |
42,576,966 | I am trying to count matches between columns resulting from an INNER JOIN of two tables on unique values of a single column in one of the two tables. An example may make things more clear:
If I had the following two tables:
```
Table A
-------
id_A: info_A
1 'a'
2 'b'
3 'c'
3 'd'
Table B
--... | 2017/03/03 | [
"https://Stackoverflow.com/questions/42576966",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2205916/"
] | The Kalman Filter is not suitable for your problem.
Issues
======
1. You describe the noise as "some interference". You will need to know
the noise distribution in advance.
2. The error caused by occlusion (the human is situated between the
mobile device and a BLE beacon) will make the filtering error very
large. I... | Using BLE it is really difficult to estimate accurate distance. If you are using many beacons (every 1 m) you can estimate it but if the distance between beacons are large, it is difficult because of reflection and absorption of signal.
You can try using fingerprinting for better accuracy. Kalman filter is not right ch... |
42,576,966 | I am trying to count matches between columns resulting from an INNER JOIN of two tables on unique values of a single column in one of the two tables. An example may make things more clear:
If I had the following two tables:
```
Table A
-------
id_A: info_A
1 'a'
2 'b'
3 'c'
3 'd'
Table B
--... | 2017/03/03 | [
"https://Stackoverflow.com/questions/42576966",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2205916/"
] | The Kalman Filter is not suitable for your problem.
Issues
======
1. You describe the noise as "some interference". You will need to know
the noise distribution in advance.
2. The error caused by occlusion (the human is situated between the
mobile device and a BLE beacon) will make the filtering error very
large. I... | Kalman filter is relevant only for "presence" detection rather than "position" i.e. it can be useful if the position is static.
The prediction function will be a simple constant function: `RSSI(t) = RSSI(t-1)`.
For correction you will need to set an arbitrary value representing how much you "trust" your measures.
Thi... |
42,576,966 | I am trying to count matches between columns resulting from an INNER JOIN of two tables on unique values of a single column in one of the two tables. An example may make things more clear:
If I had the following two tables:
```
Table A
-------
id_A: info_A
1 'a'
2 'b'
3 'c'
3 'd'
Table B
--... | 2017/03/03 | [
"https://Stackoverflow.com/questions/42576966",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2205916/"
] | Using BLE it is really difficult to estimate accurate distance. If you are using many beacons (every 1 m) you can estimate it but if the distance between beacons are large, it is difficult because of reflection and absorption of signal.
You can try using fingerprinting for better accuracy. Kalman filter is not right ch... | Kalman filter is relevant only for "presence" detection rather than "position" i.e. it can be useful if the position is static.
The prediction function will be a simple constant function: `RSSI(t) = RSSI(t-1)`.
For correction you will need to set an arbitrary value representing how much you "trust" your measures.
Thi... |
315,818 | For creating document structure I usually use something like this:
```
\section{1}
Text for chapter 1
\section{2}
Text for chapter 2
\subsection{2.1}
Text for chapter 2.1
\subsubsection{2.1.1}
Text for chapter 2.1.1
\paragraph{2.1.1.1}\mbox{}\\
Text for chapter 2.1.1.1
```
Is it pos... | 2016/06/21 | [
"https://tex.stackexchange.com/questions/315818",
"https://tex.stackexchange.com",
"https://tex.stackexchange.com/users/22193/"
] | You can do it, but I see no point: if the superscripts and subscripts should be outside the scope of the overline, place them outside the argument.
Note that the `k` feature of `xparse` I'm using is classified as experimental and may disappear in the future (not really likely).
```
\documentclass{article}
\usepackage... | Even with your definition, you can use `\mset R_2^1` and it will work as you want. In any case, in case you definitely want `\mset{R_2^1}` you can use
```
\newcommand*\mset[1]{\overline#1}
```
Which will work as you want, and it will even work with the `\mset R_2^1` syntax. |
315,818 | For creating document structure I usually use something like this:
```
\section{1}
Text for chapter 1
\section{2}
Text for chapter 2
\subsection{2.1}
Text for chapter 2.1
\subsubsection{2.1.1}
Text for chapter 2.1.1
\paragraph{2.1.1.1}\mbox{}\\
Text for chapter 2.1.1.1
```
Is it pos... | 2016/06/21 | [
"https://tex.stackexchange.com/questions/315818",
"https://tex.stackexchange.com",
"https://tex.stackexchange.com/users/22193/"
] | You can do it, but I see no point: if the superscripts and subscripts should be outside the scope of the overline, place them outside the argument.
Note that the `k` feature of `xparse` I'm using is classified as experimental and may disappear in the future (not really likely).
```
\documentclass{article}
\usepackage... | Here's a LuaLaTeX-based solution. It scans the input for instances of `\mset{...}` and rearranges the argument "on the fly", so that only leading single or multiple letters are part of the argument of `\mset`. Whitespace before or after the left-hand curly brace is allowed.
[):
try
{
$form->values($this->request->post());
}
catch (ORM_Vali... | 2013/04/29 | [
"https://Stackoverflow.com/questions/16270075",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/853613/"
] | I'm not sure I understand your requirement correctly. But if you don't want to store `Birthstone` but calculate it on the fly, just change your code to
```
public partial class Jewel
{
private string _birthstone;
public string Birthstone
{
get
{
if (_birthstone == null)
... | Isn't your Jewels EntityObject in a partial class too? You can most likely just add a Jewels partial class to "extend" it and add the wanted property there. |
16,270,075 | I have multiple submit buttons, such as Preview and Submit. How do I code it to say if I click Preview do this or if I click Submit do that.
I currently have the following set up:
```
if (HTTP_Request::POST == $this->request->method()):
try
{
$form->values($this->request->post());
}
catch (ORM_Vali... | 2013/04/29 | [
"https://Stackoverflow.com/questions/16270075",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/853613/"
] | I'm not sure I understand your requirement correctly. But if you don't want to store `Birthstone` but calculate it on the fly, just change your code to
```
public partial class Jewel
{
private string _birthstone;
public string Birthstone
{
get
{
if (_birthstone == null)
... | For me, it depends on where the logic for the calculated column resides.
If it resides in database, then you must do join query in the Linq. I assume in this case, you has a table named BirthStoneTable, with the month as the relation. I don't suggest to add a ternary operation inside linq query, such as `select j.Birt... |
33,316,533 | The `data` and `type` keywords always confuse me.
I want to know what is the difference between `data` and `type` and how to use them. | 2015/10/24 | [
"https://Stackoverflow.com/questions/33316533",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5362936/"
] | `type` declares a *type synonym*. A type synonym is a new name for an existing type. For example, this is how `String` is defined [in the standard library](http://hackage.haskell.org/package/base-4.8.1.0/docs/src/GHC.Base.html#String):
```
type String = [Char]
```
`String` is another name for a list of `Char`s. GHC ... | With `data` you create **new** datatype and declare a constructor for it:
```
data NewData = NewDataConstructor
```
With `type` you define just an alias:
```
type MyChar = Char
```
In the `type` case you can pass value of `MyChar` type to function expecting a `Char` and vice versa, but you can't do this for `data... |
33,316,533 | The `data` and `type` keywords always confuse me.
I want to know what is the difference between `data` and `type` and how to use them. | 2015/10/24 | [
"https://Stackoverflow.com/questions/33316533",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5362936/"
] | `type` declares a *type synonym*. A type synonym is a new name for an existing type. For example, this is how `String` is defined [in the standard library](http://hackage.haskell.org/package/base-4.8.1.0/docs/src/GHC.Base.html#String):
```
type String = [Char]
```
`String` is another name for a list of `Char`s. GHC ... | `type` works just like `let`: it allows you to give a re-usable name to something, but that something will always work just as if you had inlined the definition. So
```
type ℝ = Double
f :: ℝ -> ℝ -> ℝ
f x y = let x2 = x^2
in x2 + y
```
behaves exactly the same way as
```
f' :: Double -> Double -> Double
f... |
31,364 | What does a *Holzmacher* do, or what is their job? Is it a common last name? It seems to be literally, *wood maker* or *wood doer.* Is the name used to describe a carpenter, craftsmen or lumberjack? | 2016/08/15 | [
"https://german.stackexchange.com/questions/31364",
"https://german.stackexchange.com",
"https://german.stackexchange.com/users/23032/"
] | "Holz machen" is a common idiom for collecting firewood or other wood by cutting down trees. So your word translates to "lumberjack".
The term "Holzmacher", however, is not commonly used in contemporary German. Translating *lumberjack* into German would be "Holzfäller", official terminology uses "Forstwirt".
An yes, ... | As @tofro already explained, "holz machen" is a common idiom for collecting firewood (or other wood) or to prepare wood.
It can be used instead of "Holzfäller", which is the german term for *lumberjack* (or, more modern, "Forstwirt").
The term "Holzmacher" however, can also refer to craftsmen creating things out of w... |
21,739,276 | I'm trying to make a `POST` request to my API and it works in `Postman` (I get a valid JSON object), but not using `Volley`. With the following code:
```
String URL = "http://somename/token";
RequestQueue queue = Volley.newRequestQueue(StartActivity.this);
queue.add(new JsonObjectRequest(Method.POST, URL, null,
new... | 2014/02/12 | [
"https://Stackoverflow.com/questions/21739276",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/163799/"
] | I have the same issue before and I got the solution in my project:
```
RequestQueue requestManager = Volley.newRequestQueue(this);
String requestURL = "http://www.mywebsite.org";
Listener<String> jsonListerner = new Response.Listener<String>() {
@Override
public void onResponse... | Check if you are using correct SDK
For Android Studio / IntelliJIDEA:
```
File -> Project Structure -> Project -> Project SDK
Modules -> Check each modules "Module SDK"
```
Preferably, you should use "Google API (x.x)" instead of Android API |
21,739,276 | I'm trying to make a `POST` request to my API and it works in `Postman` (I get a valid JSON object), but not using `Volley`. With the following code:
```
String URL = "http://somename/token";
RequestQueue queue = Volley.newRequestQueue(StartActivity.this);
queue.add(new JsonObjectRequest(Method.POST, URL, null,
new... | 2014/02/12 | [
"https://Stackoverflow.com/questions/21739276",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/163799/"
] | There can be multiple reasons for this error.
One reason, of course, as said by others, is that maybe you are missing or have improperly set 'Content-type' header.
If you have properly implemented that, another possible reason is that you are sending params directly from your URL. There may be a case when params is a... | Somertimes this error 400 is arise due to Request type so you need to change the `Request.Method.GET` to `Request.Method.POST` and than it works like a charm. |
21,739,276 | I'm trying to make a `POST` request to my API and it works in `Postman` (I get a valid JSON object), but not using `Volley`. With the following code:
```
String URL = "http://somename/token";
RequestQueue queue = Volley.newRequestQueue(StartActivity.this);
queue.add(new JsonObjectRequest(Method.POST, URL, null,
new... | 2014/02/12 | [
"https://Stackoverflow.com/questions/21739276",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/163799/"
] | I have removed this params.put("Content-Type", "application/x-www-form-urlencoded");
This is my Code Change.
```
@Override
protected Map<String,String> getParams(){
Map<String,String> params = new HashMap<String, String>();
if(!isLogout) {
params.put("username", userna... | Check if you are using correct SDK
For Android Studio / IntelliJIDEA:
```
File -> Project Structure -> Project -> Project SDK
Modules -> Check each modules "Module SDK"
```
Preferably, you should use "Google API (x.x)" instead of Android API |
21,739,276 | I'm trying to make a `POST` request to my API and it works in `Postman` (I get a valid JSON object), but not using `Volley`. With the following code:
```
String URL = "http://somename/token";
RequestQueue queue = Volley.newRequestQueue(StartActivity.this);
queue.add(new JsonObjectRequest(Method.POST, URL, null,
new... | 2014/02/12 | [
"https://Stackoverflow.com/questions/21739276",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/163799/"
] | 400 error is because Content-Type is set wrong.
Please do the following.
1. GetHeader function should be as
```
@Override
public Map<String, String> getHeaders() throws AuthFailureError {
Map<String, String> param = new HashMap<String, String>();
return param;
}
```
2. Add this new ove... | In Android 2.3 there is a problem using Base64.encodeToString() as it introduces a new line in HTTP header. See my response [to this question](https://stackoverflow.com/questions/23573692/authorization-header-on-2-3-4-gets-400-bad-request/34339639#34339639) here in SO.
Short answer: Don't use Base64.encodeToString() b... |
21,739,276 | I'm trying to make a `POST` request to my API and it works in `Postman` (I get a valid JSON object), but not using `Volley`. With the following code:
```
String URL = "http://somename/token";
RequestQueue queue = Volley.newRequestQueue(StartActivity.this);
queue.add(new JsonObjectRequest(Method.POST, URL, null,
new... | 2014/02/12 | [
"https://Stackoverflow.com/questions/21739276",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/163799/"
] | There can be multiple reasons for this error.
One reason, of course, as said by others, is that maybe you are missing or have improperly set 'Content-type' header.
If you have properly implemented that, another possible reason is that you are sending params directly from your URL. There may be a case when params is a... | I have removed this params.put("Content-Type", "application/x-www-form-urlencoded");
This is my Code Change.
```
@Override
protected Map<String,String> getParams(){
Map<String,String> params = new HashMap<String, String>();
if(!isLogout) {
params.put("username", userna... |
21,739,276 | I'm trying to make a `POST` request to my API and it works in `Postman` (I get a valid JSON object), but not using `Volley`. With the following code:
```
String URL = "http://somename/token";
RequestQueue queue = Volley.newRequestQueue(StartActivity.this);
queue.add(new JsonObjectRequest(Method.POST, URL, null,
new... | 2014/02/12 | [
"https://Stackoverflow.com/questions/21739276",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/163799/"
] | There can be multiple reasons for this error.
One reason, of course, as said by others, is that maybe you are missing or have improperly set 'Content-type' header.
If you have properly implemented that, another possible reason is that you are sending params directly from your URL. There may be a case when params is a... | I have find a solution if you are using postman for hitting the api and your api have defined serializer field like skill = serializers.JSONField() then that type of error occurred-
**Solution For POSTMAN-**
you just add binary=True inside JSONField ex- **skill = serializers.JSONField(binary=True)**
Solution for And... |
21,739,276 | I'm trying to make a `POST` request to my API and it works in `Postman` (I get a valid JSON object), but not using `Volley`. With the following code:
```
String URL = "http://somename/token";
RequestQueue queue = Volley.newRequestQueue(StartActivity.this);
queue.add(new JsonObjectRequest(Method.POST, URL, null,
new... | 2014/02/12 | [
"https://Stackoverflow.com/questions/21739276",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/163799/"
] | If you are passing the json value to in body(raw json).No need to set the content type as headers.put("Content-Type", "application/json; charset=utf-8");
When I was using the content type in header callback ,the 400 response status I was getting in logcat.I commented headers.put("Content-Type", "application/json; char... | I've got this error and now Iit's been fixed. I did what is told in [this link](https://salesforce.stackexchange.com/questions/50382/requestforupdate-always-returns-400). What you need to do is
1. go to src/com/android/volley/toolbox/BasicNetwork.java
2. Change the following lines
```js
if (statusCode < 200 || statu... |
21,739,276 | I'm trying to make a `POST` request to my API and it works in `Postman` (I get a valid JSON object), but not using `Volley`. With the following code:
```
String URL = "http://somename/token";
RequestQueue queue = Volley.newRequestQueue(StartActivity.this);
queue.add(new JsonObjectRequest(Method.POST, URL, null,
new... | 2014/02/12 | [
"https://Stackoverflow.com/questions/21739276",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/163799/"
] | I had the same problem and i removed from the header:
```
headers.put("Content-Type", "application/json");
```
now it works great! | There can be multiple reasons for this error.
One reason, of course, as said by others, is that maybe you are missing or have improperly set 'Content-type' header.
If you have properly implemented that, another possible reason is that you are sending params directly from your URL. There may be a case when params is a... |
21,739,276 | I'm trying to make a `POST` request to my API and it works in `Postman` (I get a valid JSON object), but not using `Volley`. With the following code:
```
String URL = "http://somename/token";
RequestQueue queue = Volley.newRequestQueue(StartActivity.this);
queue.add(new JsonObjectRequest(Method.POST, URL, null,
new... | 2014/02/12 | [
"https://Stackoverflow.com/questions/21739276",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/163799/"
] | 400 error is because Content-Type is set wrong.
Please do the following.
1. GetHeader function should be as
```
@Override
public Map<String, String> getHeaders() throws AuthFailureError {
Map<String, String> param = new HashMap<String, String>();
return param;
}
```
2. Add this new ove... | I have the same issue before and I got the solution in my project:
```
RequestQueue requestManager = Volley.newRequestQueue(this);
String requestURL = "http://www.mywebsite.org";
Listener<String> jsonListerner = new Response.Listener<String>() {
@Override
public void onResponse... |
21,739,276 | I'm trying to make a `POST` request to my API and it works in `Postman` (I get a valid JSON object), but not using `Volley`. With the following code:
```
String URL = "http://somename/token";
RequestQueue queue = Volley.newRequestQueue(StartActivity.this);
queue.add(new JsonObjectRequest(Method.POST, URL, null,
new... | 2014/02/12 | [
"https://Stackoverflow.com/questions/21739276",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/163799/"
] | There can be multiple reasons for this error.
One reason, of course, as said by others, is that maybe you are missing or have improperly set 'Content-type' header.
If you have properly implemented that, another possible reason is that you are sending params directly from your URL. There may be a case when params is a... | Check if you are using correct SDK
For Android Studio / IntelliJIDEA:
```
File -> Project Structure -> Project -> Project SDK
Modules -> Check each modules "Module SDK"
```
Preferably, you should use "Google API (x.x)" instead of Android API |
27,703,039 | I have to detect whether a string contains any special characters. How can I check it? Does Swift support regular expressions?
```
var characterSet:NSCharacterSet = NSCharacterSet(charactersInString: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789")
if (searchTerm!.rangeOfCharacterFromSet(characterSet)... | 2014/12/30 | [
"https://Stackoverflow.com/questions/27703039",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/711963/"
] | This answer may help the people who are using **Swift 4.1**
```
func hasSpecialCharacters() -> Bool {
do {
let regex = try NSRegularExpression(pattern: ".*[^A-Za-z0-9].*", options: .caseInsensitive)
if let _ = regex.firstMatch(in: self, options: NSRegularExpression.MatchingOptions.reportCompletion... | In Swift 5 and later you can do
```swift
func validateGenericString(_ string: String) -> Bool {
return string.range(of: ".*[^A-Za-z0-9].*", options: .regularExpression) == nil
}
```
to check if a string have special characters or not |
27,703,039 | I have to detect whether a string contains any special characters. How can I check it? Does Swift support regular expressions?
```
var characterSet:NSCharacterSet = NSCharacterSet(charactersInString: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789")
if (searchTerm!.rangeOfCharacterFromSet(characterSet)... | 2014/12/30 | [
"https://Stackoverflow.com/questions/27703039",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/711963/"
] | Inverting your character set will work, because in your character set you have all the valid characters:
```
var characterSet:NSCharacterSet = NSCharacterSet(charactersInString: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789")
if (searchTerm!.rangeOfCharacterFromSet(characterSet.invertedSet).location ... | Two Solutions:
**1)**
```
extension String {
var stripped: String {
let okayChars = Set("abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ")
return self.filter {okayChars.contains($0) }
}
}
```
**2)**
```
class TrimDictionary {
static func trimmedWord(wordString: String) -> String ... |
27,703,039 | I have to detect whether a string contains any special characters. How can I check it? Does Swift support regular expressions?
```
var characterSet:NSCharacterSet = NSCharacterSet(charactersInString: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789")
if (searchTerm!.rangeOfCharacterFromSet(characterSet)... | 2014/12/30 | [
"https://Stackoverflow.com/questions/27703039",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/711963/"
] | This answer may help the people who are using **Swift 4.1**
```
func hasSpecialCharacters() -> Bool {
do {
let regex = try NSRegularExpression(pattern: ".*[^A-Za-z0-9].*", options: .caseInsensitive)
if let _ = regex.firstMatch(in: self, options: NSRegularExpression.MatchingOptions.reportCompletion... | Two Solutions:
**1)**
```
extension String {
var stripped: String {
let okayChars = Set("abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ")
return self.filter {okayChars.contains($0) }
}
}
```
**2)**
```
class TrimDictionary {
static func trimmedWord(wordString: String) -> String ... |
27,703,039 | I have to detect whether a string contains any special characters. How can I check it? Does Swift support regular expressions?
```
var characterSet:NSCharacterSet = NSCharacterSet(charactersInString: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789")
if (searchTerm!.rangeOfCharacterFromSet(characterSet)... | 2014/12/30 | [
"https://Stackoverflow.com/questions/27703039",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/711963/"
] | With **Swift 5** you can just do
```
if let hasSpecialCharacters = "your string".range(of: ".*[^A-Za-z0-9].*", options: .regularExpression) != nil {}
``` | Inverting your character set will work, because in your character set you have all the valid characters:
```
var characterSet:NSCharacterSet = NSCharacterSet(charactersInString: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789")
if (searchTerm!.rangeOfCharacterFromSet(characterSet.invertedSet).location ... |
27,703,039 | I have to detect whether a string contains any special characters. How can I check it? Does Swift support regular expressions?
```
var characterSet:NSCharacterSet = NSCharacterSet(charactersInString: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789")
if (searchTerm!.rangeOfCharacterFromSet(characterSet)... | 2014/12/30 | [
"https://Stackoverflow.com/questions/27703039",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/711963/"
] | @Martin R answer is great, I just wanted to update it (the second part) to Swift 2.1 version
```
let regex = try! NSRegularExpression(pattern: ".*[^A-Za-z0-9].*", options: NSRegularExpressionOptions())
if regex.firstMatchInString(searchTerm!, options: NSMatchingOptions(), range:NSMakeRange(0, searchTerm!.characters.co... | In Swift 5 and later you can do
```swift
func validateGenericString(_ string: String) -> Bool {
return string.range(of: ".*[^A-Za-z0-9].*", options: .regularExpression) == nil
}
```
to check if a string have special characters or not |
27,703,039 | I have to detect whether a string contains any special characters. How can I check it? Does Swift support regular expressions?
```
var characterSet:NSCharacterSet = NSCharacterSet(charactersInString: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789")
if (searchTerm!.rangeOfCharacterFromSet(characterSet)... | 2014/12/30 | [
"https://Stackoverflow.com/questions/27703039",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/711963/"
] | In Swift 5 and later you can do
```swift
func validateGenericString(_ string: String) -> Bool {
return string.range(of: ".*[^A-Za-z0-9].*", options: .regularExpression) == nil
}
```
to check if a string have special characters or not | Mahendra's answer can be stripped down a bit by using an inversion(^) within the regex clause. Additionally, you don't need A-Z and a-z when using the caseInsensitive option, as Swift covers that eventuality for you:
```js
extension String {
func containsSpecialCharacters(string: String) -> Bool {
do {
... |
27,703,039 | I have to detect whether a string contains any special characters. How can I check it? Does Swift support regular expressions?
```
var characterSet:NSCharacterSet = NSCharacterSet(charactersInString: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789")
if (searchTerm!.rangeOfCharacterFromSet(characterSet)... | 2014/12/30 | [
"https://Stackoverflow.com/questions/27703039",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/711963/"
] | Password validation With following:- (Password at least eight characters long, one special character, one uppercase, one lower case letter and one digit)
```
var isValidateSecialPassword : Bool {
if(self.count>=8 && self.count<=20){
}else{
return false
}
let nonUpperCase = ... | In Swift 5 and later you can do
```swift
func validateGenericString(_ string: String) -> Bool {
return string.range(of: ".*[^A-Za-z0-9].*", options: .regularExpression) == nil
}
```
to check if a string have special characters or not |
27,703,039 | I have to detect whether a string contains any special characters. How can I check it? Does Swift support regular expressions?
```
var characterSet:NSCharacterSet = NSCharacterSet(charactersInString: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789")
if (searchTerm!.rangeOfCharacterFromSet(characterSet)... | 2014/12/30 | [
"https://Stackoverflow.com/questions/27703039",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/711963/"
] | With **Swift 5** you can just do
```
if let hasSpecialCharacters = "your string".range(of: ".*[^A-Za-z0-9].*", options: .regularExpression) != nil {}
``` | For the purpose of filename sanitization, I prefer to detect the invalid characters, rather than provide an allowed character set. After all, many non-English speaking users need accented characters. The following function is inspired by [this gist](https://gist.github.com/totocaster/3a1f008c780793b86a6c4d2d6ae735c4):
... |
27,703,039 | I have to detect whether a string contains any special characters. How can I check it? Does Swift support regular expressions?
```
var characterSet:NSCharacterSet = NSCharacterSet(charactersInString: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789")
if (searchTerm!.rangeOfCharacterFromSet(characterSet)... | 2014/12/30 | [
"https://Stackoverflow.com/questions/27703039",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/711963/"
] | Your code check if no character in the string is from the given set.
What you want is to check if *any* character is *not* in the given set:
```
if (searchTerm!.rangeOfCharacterFromSet(characterSet.invertedSet).location != NSNotFound){
println("Could not handle special characters")
}
```
You can also achieve thi... | This answer may help the people who are using **Swift 4.1**
```
func hasSpecialCharacters() -> Bool {
do {
let regex = try NSRegularExpression(pattern: ".*[^A-Za-z0-9].*", options: .caseInsensitive)
if let _ = regex.firstMatch(in: self, options: NSRegularExpression.MatchingOptions.reportCompletion... |
27,703,039 | I have to detect whether a string contains any special characters. How can I check it? Does Swift support regular expressions?
```
var characterSet:NSCharacterSet = NSCharacterSet(charactersInString: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789")
if (searchTerm!.rangeOfCharacterFromSet(characterSet)... | 2014/12/30 | [
"https://Stackoverflow.com/questions/27703039",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/711963/"
] | This answer may help the people who are using **Swift 4.1**
```
func hasSpecialCharacters() -> Bool {
do {
let regex = try NSRegularExpression(pattern: ".*[^A-Za-z0-9].*", options: .caseInsensitive)
if let _ = regex.firstMatch(in: self, options: NSRegularExpression.MatchingOptions.reportCompletion... | For the purpose of filename sanitization, I prefer to detect the invalid characters, rather than provide an allowed character set. After all, many non-English speaking users need accented characters. The following function is inspired by [this gist](https://gist.github.com/totocaster/3a1f008c780793b86a6c4d2d6ae735c4):
... |
33,680,285 | ```
#Caesar Cipher Muntanga
FinalMessage=""
Mode=""
MessageNumber=""
while Mode!="encrypt" and Mode!="decrypt":
Mode = input("Do you wish to encrypt or decrypt a message?")
Mode = Mode.lower()
Message = input("Please enter the message you wish to encrypt:")
Message = Message.upper()
Key = input("Please ente... | 2015/11/12 | [
"https://Stackoverflow.com/questions/33680285",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5551545/"
] | You can use for and increment the itterator by 2.
```js
var iWantToBelieve = []
for (var i = 0; i < data.length; i += 2) { // i = 0, 2, 4..
iWantToBelieve.push({
Date: data[i], // 1st value is the date
Score: data[i + 1] // 2nd value is score
});
}
``` | ```
var data = ["5/10/2014", 2, "5/10/2014", 5, "5/11/2014", 6]
var result = []
for (var j=0; j<data.length; j+=2)
result.push({ Date: data[j], Score: data[j + 1]})
console.log(result)
``` |
33,680,285 | ```
#Caesar Cipher Muntanga
FinalMessage=""
Mode=""
MessageNumber=""
while Mode!="encrypt" and Mode!="decrypt":
Mode = input("Do you wish to encrypt or decrypt a message?")
Mode = Mode.lower()
Message = input("Please enter the message you wish to encrypt:")
Message = Message.upper()
Key = input("Please ente... | 2015/11/12 | [
"https://Stackoverflow.com/questions/33680285",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5551545/"
] | You can use for and increment the itterator by 2.
```js
var iWantToBelieve = []
for (var i = 0; i < data.length; i += 2) { // i = 0, 2, 4..
iWantToBelieve.push({
Date: data[i], // 1st value is the date
Score: data[i + 1] // 2nd value is score
});
}
``` | ```
var data = ["5/10/2014", 2, "5/10/2014", 5, "5/11/2014", 6];
var result = [];
while (data.length) result.push({Date: data.shift(), Score: data.shift()});
console.log(result);
``` |
287 | There was a small debate which took place in the comments for [podcast #58](https://blog.stackoverflow.com/2009/06/podcast-58/#comments) regarding linking to an answer (such as MSDN, php.net, or other definitive sources) versus providing it inline. What is the community's position on the proper etiquette here? | 2009/06/28 | [
"https://meta.stackexchange.com/questions/287",
"https://meta.stackexchange.com",
"https://meta.stackexchange.com/users/149/"
] | My usual practice is to link to the resource but either quote a short but relevant section (e.g. the "remarks" section of an MSDN page) or praise it. Creating a verbatim copy of a large amount of text is *only* good in the face of the resource being removed - which I suspect isn't going to happen for MSDN .NET document... | IMO, link to the original source and provide a quote of the text of the relevant section. It saves time for the reader who can then at least decide if the response is relevant before trudging their way through whatever page they land on. It also provides historical context for the original intent of the answerer in cas... |
287 | There was a small debate which took place in the comments for [podcast #58](https://blog.stackoverflow.com/2009/06/podcast-58/#comments) regarding linking to an answer (such as MSDN, php.net, or other definitive sources) versus providing it inline. What is the community's position on the proper etiquette here? | 2009/06/28 | [
"https://meta.stackexchange.com/questions/287",
"https://meta.stackexchange.com",
"https://meta.stackexchange.com/users/149/"
] | My usual practice is to link to the resource but either quote a short but relevant section (e.g. the "remarks" section of an MSDN page) or praise it. Creating a verbatim copy of a large amount of text is *only* good in the face of the resource being removed - which I suspect isn't going to happen for MSDN .NET document... | I assume by "another site" you mean in some forum somewhere, rather than on ServerFault, etc.
Personally, when I find the answer to a question in a forum, I do something like this:
Sounds like your problem is X - I found this solution on [WebsiteX](http://www.google.com):
```
\\ Code example
Example code is here
``... |
287 | There was a small debate which took place in the comments for [podcast #58](https://blog.stackoverflow.com/2009/06/podcast-58/#comments) regarding linking to an answer (such as MSDN, php.net, or other definitive sources) versus providing it inline. What is the community's position on the proper etiquette here? | 2009/06/28 | [
"https://meta.stackexchange.com/questions/287",
"https://meta.stackexchange.com",
"https://meta.stackexchange.com/users/149/"
] | My usual practice is to link to the resource but either quote a short but relevant section (e.g. the "remarks" section of an MSDN page) or praise it. Creating a verbatim copy of a large amount of text is *only* good in the face of the resource being removed - which I suspect isn't going to happen for MSDN .NET document... | I think the StackOverflow sites should strive to be both **authoritative and self-contained**.
While a link to a pre-existing answer might be appropriate for "fair use," the **most relevant information should be included** (an re-authored, where appropriate) as part of a specific and complete answer to question.
I'm ... |
287 | There was a small debate which took place in the comments for [podcast #58](https://blog.stackoverflow.com/2009/06/podcast-58/#comments) regarding linking to an answer (such as MSDN, php.net, or other definitive sources) versus providing it inline. What is the community's position on the proper etiquette here? | 2009/06/28 | [
"https://meta.stackexchange.com/questions/287",
"https://meta.stackexchange.com",
"https://meta.stackexchange.com/users/149/"
] | IMO, link to the original source and provide a quote of the text of the relevant section. It saves time for the reader who can then at least decide if the response is relevant before trudging their way through whatever page they land on. It also provides historical context for the original intent of the answerer in cas... | I assume by "another site" you mean in some forum somewhere, rather than on ServerFault, etc.
Personally, when I find the answer to a question in a forum, I do something like this:
Sounds like your problem is X - I found this solution on [WebsiteX](http://www.google.com):
```
\\ Code example
Example code is here
``... |
287 | There was a small debate which took place in the comments for [podcast #58](https://blog.stackoverflow.com/2009/06/podcast-58/#comments) regarding linking to an answer (such as MSDN, php.net, or other definitive sources) versus providing it inline. What is the community's position on the proper etiquette here? | 2009/06/28 | [
"https://meta.stackexchange.com/questions/287",
"https://meta.stackexchange.com",
"https://meta.stackexchange.com/users/149/"
] | IMO, link to the original source and provide a quote of the text of the relevant section. It saves time for the reader who can then at least decide if the response is relevant before trudging their way through whatever page they land on. It also provides historical context for the original intent of the answerer in cas... | I think the StackOverflow sites should strive to be both **authoritative and self-contained**.
While a link to a pre-existing answer might be appropriate for "fair use," the **most relevant information should be included** (an re-authored, where appropriate) as part of a specific and complete answer to question.
I'm ... |
22,771,525 | I am newbie in iOS programming. I have read so may threads regarding this problem but also couldn't figure out what is actually causing the error. I need to pass first tableview cell's text of tableview of `bookmarkViewController` back to URL address bar of `myViewController` which is the root ViewController when i cli... | 2014/03/31 | [
"https://Stackoverflow.com/questions/22771525",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1888031/"
] | You shouldn't use `dequeueReusableCellWithIdentifier:` method when a row is selected. It should be used only when you want to get a reusable cell actually. You can use:
```
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
UITableViewCell * cell = [tableView cellForRowAt... | ```
Another way to do same is by using navigation controller stack if your application is navigation based.
Try this:-
1.Define a global NSString in MyViewController.h like
@property(strong, nonatomic) NSString *strText;
2.Do following code on didSelectRowAtIndexPath of BookMarkViewController
-(void)tableView:(UITa... |
56,530,033 | I currently have a script in place to auto reply to messages sent over the weekend, checking for unread messages in the last 5 minutes, and then replying and marking as read.
I was wondering if it were possible to only have this script look for unread messages INSIDE a specific folder/filter. The reason for this is we... | 2019/06/10 | [
"https://Stackoverflow.com/questions/56530033",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11626705/"
] | ### Requirement:
Find unread emails inside a label.
---
### Solution:
Enhance your current `GmailApp.search()` query to include this criteria.
---
### Example:
```
//replace "labelname" with the name of your label
var threads = GmailApp.search('in:labelname is:unread after:' + timeFrom);
```
---
### Explanati... | Cat, have you played with having your filters apply labels and then using getLabels()? |
15,361,548 | I am using Meteor.router to set up a RESTful interface to my web-app. In certain cases I would like to execute the call asynchronously and just tell the caller it is alright.
I have done that like so:
first a Meteor method is defined
```
Meteor.methods( {
async: function() {
//do nothing
}
});
```
this... | 2013/03/12 | [
"https://Stackoverflow.com/questions/15361548",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/763962/"
] | Find all occurences of `quick` and wrap them intp a specific element (e.g. `<del>`) hidden via css
CSS
```
p del {
display: none;
}
```
jQuery
```
$('p').each(function() {
var $this = $(this);
$this.html($this.text().replace(/\bquick\b/g, '<del>quick</del>'));
});
```
Example jsbin: <http://jsbin.com/o... | I think this is what you want ..!!
```
<!DOCTYPE html>
<html>
<body id ="demo">
<p>The quick brown fox jump over the lazy dog.</p>
<p>The quick brown fox is too hungry.</p>
<p>The poor quick brown fox is tired and thirsty.</p>
<button onclick="myFunction()">Try it</button>
<script>
function myFunction()
{
var str=d... |
15,361,548 | I am using Meteor.router to set up a RESTful interface to my web-app. In certain cases I would like to execute the call asynchronously and just tell the caller it is alright.
I have done that like so:
first a Meteor method is defined
```
Meteor.methods( {
async: function() {
//do nothing
}
});
```
this... | 2013/03/12 | [
"https://Stackoverflow.com/questions/15361548",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/763962/"
] | Find all occurences of `quick` and wrap them intp a specific element (e.g. `<del>`) hidden via css
CSS
```
p del {
display: none;
}
```
jQuery
```
$('p').each(function() {
var $this = $(this);
$this.html($this.text().replace(/\bquick\b/g, '<del>quick</del>'));
});
```
Example jsbin: <http://jsbin.com/o... | see the fiddle [jsfiddle](http://jsfiddle.net/jLu7h/2/) now its working
```
$(document).ready(function(){
$('p').each(function () {
var $this = $(this);
$this.html($this.text().replace(/\bquick\b/g, '<span style="display:none">quick</span>'));
});
});
``` |
15,361,548 | I am using Meteor.router to set up a RESTful interface to my web-app. In certain cases I would like to execute the call asynchronously and just tell the caller it is alright.
I have done that like so:
first a Meteor method is defined
```
Meteor.methods( {
async: function() {
//do nothing
}
});
```
this... | 2013/03/12 | [
"https://Stackoverflow.com/questions/15361548",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/763962/"
] | see the fiddle [jsfiddle](http://jsfiddle.net/jLu7h/2/) now its working
```
$(document).ready(function(){
$('p').each(function () {
var $this = $(this);
$this.html($this.text().replace(/\bquick\b/g, '<span style="display:none">quick</span>'));
});
});
``` | I think this is what you want ..!!
```
<!DOCTYPE html>
<html>
<body id ="demo">
<p>The quick brown fox jump over the lazy dog.</p>
<p>The quick brown fox is too hungry.</p>
<p>The poor quick brown fox is tired and thirsty.</p>
<button onclick="myFunction()">Try it</button>
<script>
function myFunction()
{
var str=d... |
37,204,041 | UWP application plays videos from a specific folder as you navigate through different screens.
if i've to package this UWP application and share it on Windows Store , should i've to place all the videos inside the application i.e, Place all videos inside **Assets** folder and then create a package ( which i don't want... | 2016/05/13 | [
"https://Stackoverflow.com/questions/37204041",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5431638/"
] | Hi instead of `background-image` use `mask-image` and then change the `background-color` color on hover... kindly check <https://jsfiddle.net/RRR0308/v3n0g8zt/1/>
**HTML**
```
<a href="javascript:void(0)">
<div class="img-smiley">
</div>
</a>
```
**CSS**
```
.img-smiley
{
background-color: r... | The current color of the image is something that's embedded inside the image's encoding and something that CSS can't know anything about, so in order to change it you need another base64 image and set it as the background.
Assuming the green base64 green image in base64 is `data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPS... |
37,204,041 | UWP application plays videos from a specific folder as you navigate through different screens.
if i've to package this UWP application and share it on Windows Store , should i've to place all the videos inside the application i.e, Place all videos inside **Assets** folder and then create a package ( which i don't want... | 2016/05/13 | [
"https://Stackoverflow.com/questions/37204041",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5431638/"
] | The current color of the image is something that's embedded inside the image's encoding and something that CSS can't know anything about, so in order to change it you need another base64 image and set it as the background.
Assuming the green base64 green image in base64 is `data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPS... | **Firstly** you have to encode your SVG html tag or SVG image in the base 64 format. Here is the [link](https://base64.guru/converter/encode/image/svg) to convert from SVG to base 64.
**Next** you have to set your encoded base64 to the background-image property.
**For ex:**
```
background-image: url("data:image/sv... |
37,204,041 | UWP application plays videos from a specific folder as you navigate through different screens.
if i've to package this UWP application and share it on Windows Store , should i've to place all the videos inside the application i.e, Place all videos inside **Assets** folder and then create a package ( which i don't want... | 2016/05/13 | [
"https://Stackoverflow.com/questions/37204041",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5431638/"
] | Hi instead of `background-image` use `mask-image` and then change the `background-color` color on hover... kindly check <https://jsfiddle.net/RRR0308/v3n0g8zt/1/>
**HTML**
```
<a href="javascript:void(0)">
<div class="img-smiley">
</div>
</a>
```
**CSS**
```
.img-smiley
{
background-color: r... | **Firstly** you have to encode your SVG html tag or SVG image in the base 64 format. Here is the [link](https://base64.guru/converter/encode/image/svg) to convert from SVG to base 64.
**Next** you have to set your encoded base64 to the background-image property.
**For ex:**
```
background-image: url("data:image/sv... |
9,135 | If the server is set up PCIDSS Compliant and I want to store the card details to be processed using a conventional cart facility, is this possible?
I also need to be able to take direct debit info, can this also be done in some way, or in conjunction with another plugin like freeform etc?
Thanks
Guy | 2013/04/09 | [
"https://expressionengine.stackexchange.com/questions/9135",
"https://expressionengine.stackexchange.com",
"https://expressionengine.stackexchange.com/users/1308/"
] | I'd highly recommend *against* storing any card details. It can only go to cause problems. PCI DSS compliance is not just about the server security but even physical security. The premises will need to be highly secure and adhere to compliance levels as well as external locations for backups etc. Everything would need ... | It's unclear whether you want to store credit cards and charge them later, or just initiate a charge and complete it at a later date (usually once you have shipped the items). This is known as separate authorize/capture.
Store doesn't support storing credit cards, but it does support authorize/capture, you just need t... |
25,889 | I just got my first Smart phone (Galaxy S II) and it splits up texts longer than 160 characters when I receive them. I often forward these long texts. Is there something I can do? | 2012/07/15 | [
"https://android.stackexchange.com/questions/25889",
"https://android.stackexchange.com",
"https://android.stackexchange.com/users/17012/"
] | The following may work: download an app called [SMS Backup+](https://play.google.com/store/apps/details?id=com.zegoggles.smssync&hl=en) from Play which backs up texts to Gmail. From there, it should be simple enough to forward. | in my experience the division of texts like this has more to do with the carrier.
For instance, I am on T-Mo.. and texts I get from other T-Mo users are never split.
This is not a limitation of the device so much as it is a limitation with SimpleMessageSyntax |
521,518 | **TL;DR: Is the shape of a bell curve / normal distribution idependent of the units chosen to represent a certain variable?**
**More detail:**
I was playing around with some data from [this paper](https://www.researchgate.net/publication/339873481_High_Temperature_and_High_Humidity_Reduce_the_Transmission_of_COVID-19)... | 2021/04/26 | [
"https://stats.stackexchange.com/questions/521518",
"https://stats.stackexchange.com",
"https://stats.stackexchange.com/users/319813/"
] | From the Wikipedia page for Wilks' theorem:
>
> The theorem no longer applies when any one of the estimated parameters is at its upper or lower limit: Wilks’ theorem assumes that the ‘true’ but unknown values of the estimated parameters lie within the interior of the supported parameter space. The likelihood maximum ... | ### Wilks' theorem does not apply here
Before getting to Wilks' theorem, one problem here (as with many questions about uniform distributions on this site) is that you have not taken account of the support of the uniform distribution in your mathematics, and this leads you to an incorrect form for the likelihood-ratio... |
521,518 | **TL;DR: Is the shape of a bell curve / normal distribution idependent of the units chosen to represent a certain variable?**
**More detail:**
I was playing around with some data from [this paper](https://www.researchgate.net/publication/339873481_High_Temperature_and_High_Humidity_Reduce_the_Transmission_of_COVID-19)... | 2021/04/26 | [
"https://stats.stackexchange.com/questions/521518",
"https://stats.stackexchange.com",
"https://stats.stackexchange.com/users/319813/"
] | Wilk's theorem assumes that the support of the distribution, i.e., the sample space, does not depend on the unknown parameter. Here, the parameter $b$ determines the width of the sample space so Wilk's theorem cannot be applied.
All the standard asymptotic tests associated with likelihood theory (Wald tests, likelihoo... | ### Wilks' theorem does not apply here
Before getting to Wilks' theorem, one problem here (as with many questions about uniform distributions on this site) is that you have not taken account of the support of the uniform distribution in your mathematics, and this leads you to an incorrect form for the likelihood-ratio... |
17,146,438 | I have installed `Visual studio 2010` Ultimate verion but while running below simple windows form programme getting error....
```
MsgBox("Hello !")
"error while trying to run project uncaught exception thrown by method called
through reflection"
```
anything wrong with installation ??
Its Visula stud... | 2013/06/17 | [
"https://Stackoverflow.com/questions/17146438",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2186087/"
] | This is an annoying problem.
============================
If you **Enable native code Debugging** then you cannot Edit-and-Continue:
>
> Changes are not allowed when unmanaged debugging is enabled.
>
>
>
I finally solved it by unticking **Enable native code Debugging** and unticking **Enable IntelliTrace**
[![... | Restarting Visual Studio fixed this for me. |
17,146,438 | I have installed `Visual studio 2010` Ultimate verion but while running below simple windows form programme getting error....
```
MsgBox("Hello !")
"error while trying to run project uncaught exception thrown by method called
through reflection"
```
anything wrong with installation ??
Its Visula stud... | 2013/06/17 | [
"https://Stackoverflow.com/questions/17146438",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2186087/"
] | 1. Go to the project right click and select properties.
2. Select 'Debug' tab on the left.
3. Go to ‘Enable Debuggers’ on the bottom
4. Check ‘Enable Native code debugging’ (or 'Enable unmanaged code debugging', depends on version) check box
5. Run the project | Well if it is a problem with the installation then I would recommend reinstalling. :(
Maybe try checking for updates and/or restarting your PC. If you still can't run your projects then I would recommend re-installing. |
17,146,438 | I have installed `Visual studio 2010` Ultimate verion but while running below simple windows form programme getting error....
```
MsgBox("Hello !")
"error while trying to run project uncaught exception thrown by method called
through reflection"
```
anything wrong with installation ??
Its Visula stud... | 2013/06/17 | [
"https://Stackoverflow.com/questions/17146438",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2186087/"
] | [](https://i.stack.imgur.com/xHQ2I.png)
I have uploaded the steps to your problem.
As you see the image, check the native code debugging option and that's all.
Hope it helps.
I'm using Visual Studio 2017 | I just had to restart vs. As right clicking the solution was giving the same error. |
17,146,438 | I have installed `Visual studio 2010` Ultimate verion but while running below simple windows form programme getting error....
```
MsgBox("Hello !")
"error while trying to run project uncaught exception thrown by method called
through reflection"
```
anything wrong with installation ??
Its Visula stud... | 2013/06/17 | [
"https://Stackoverflow.com/questions/17146438",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2186087/"
] | Well if it is a problem with the installation then I would recommend reinstalling. :(
Maybe try checking for updates and/or restarting your PC. If you still can't run your projects then I would recommend re-installing. | Restarting Visual Studio fixed this for me. |
17,146,438 | I have installed `Visual studio 2010` Ultimate verion but while running below simple windows form programme getting error....
```
MsgBox("Hello !")
"error while trying to run project uncaught exception thrown by method called
through reflection"
```
anything wrong with installation ??
Its Visula stud... | 2013/06/17 | [
"https://Stackoverflow.com/questions/17146438",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2186087/"
] | 1. Go to the project right click and select properties.
2. Select 'Debug' tab on the left.
3. Go to ‘Enable Debuggers’ on the bottom
4. Check ‘Enable Native code debugging’ (or 'Enable unmanaged code debugging', depends on version) check box
5. Run the project | [](https://i.stack.imgur.com/xHQ2I.png)
I have uploaded the steps to your problem.
As you see the image, check the native code debugging option and that's all.
Hope it helps.
I'm using Visual Studio 2017 |
17,146,438 | I have installed `Visual studio 2010` Ultimate verion but while running below simple windows form programme getting error....
```
MsgBox("Hello !")
"error while trying to run project uncaught exception thrown by method called
through reflection"
```
anything wrong with installation ??
Its Visula stud... | 2013/06/17 | [
"https://Stackoverflow.com/questions/17146438",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2186087/"
] | 1. Go to the project right click and select properties.
2. Select 'Debug' tab on the left.
3. Go to ‘Enable Debuggers’ on the bottom
4. Check ‘Enable Native code debugging’ (or 'Enable unmanaged code debugging', depends on version) check box
5. Run the project | This is an annoying problem.
============================
If you **Enable native code Debugging** then you cannot Edit-and-Continue:
>
> Changes are not allowed when unmanaged debugging is enabled.
>
>
>
I finally solved it by unticking **Enable native code Debugging** and unticking **Enable IntelliTrace**
[![... |
17,146,438 | I have installed `Visual studio 2010` Ultimate verion but while running below simple windows form programme getting error....
```
MsgBox("Hello !")
"error while trying to run project uncaught exception thrown by method called
through reflection"
```
anything wrong with installation ??
Its Visula stud... | 2013/06/17 | [
"https://Stackoverflow.com/questions/17146438",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2186087/"
] | [](https://i.stack.imgur.com/xHQ2I.png)
I have uploaded the steps to your problem.
As you see the image, check the native code debugging option and that's all.
Hope it helps.
I'm using Visual Studio 2017 | Restarting Visual Studio fixed this for me. |
17,146,438 | I have installed `Visual studio 2010` Ultimate verion but while running below simple windows form programme getting error....
```
MsgBox("Hello !")
"error while trying to run project uncaught exception thrown by method called
through reflection"
```
anything wrong with installation ??
Its Visula stud... | 2013/06/17 | [
"https://Stackoverflow.com/questions/17146438",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2186087/"
] | 1. Go to the project right click and select properties.
2. Select 'Debug' tab on the left.
3. Go to ‘Enable Debuggers’ on the bottom
4. Check ‘Enable Native code debugging’ (or 'Enable unmanaged code debugging', depends on version) check box
5. Run the project | I just had to restart vs. As right clicking the solution was giving the same error. |
17,146,438 | I have installed `Visual studio 2010` Ultimate verion but while running below simple windows form programme getting error....
```
MsgBox("Hello !")
"error while trying to run project uncaught exception thrown by method called
through reflection"
```
anything wrong with installation ??
Its Visula stud... | 2013/06/17 | [
"https://Stackoverflow.com/questions/17146438",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2186087/"
] | Well if it is a problem with the installation then I would recommend reinstalling. :(
Maybe try checking for updates and/or restarting your PC. If you still can't run your projects then I would recommend re-installing. | I just had to restart vs. As right clicking the solution was giving the same error. |
17,146,438 | I have installed `Visual studio 2010` Ultimate verion but while running below simple windows form programme getting error....
```
MsgBox("Hello !")
"error while trying to run project uncaught exception thrown by method called
through reflection"
```
anything wrong with installation ??
Its Visula stud... | 2013/06/17 | [
"https://Stackoverflow.com/questions/17146438",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2186087/"
] | 1. Go to the project right click and select properties.
2. Select 'Debug' tab on the left.
3. Go to ‘Enable Debuggers’ on the bottom
4. Check ‘Enable Native code debugging’ (or 'Enable unmanaged code debugging', depends on version) check box
5. Run the project | Restarting Visual Studio fixed this for me. |
31,277,484 | Oracle PL/SQL function that takes a string as a parameter.
What is the correct syntax for including this parameter in the Select portion of a statement.
The function is :
```
create or replace function GetHorizonTime(HorizonWindowMinutes IN VARCHAR2)
return timestamp
IS
RETVALUE TIMESTAMP;
BEGIN
SELECT SYSDATE ... | 2015/07/07 | [
"https://Stackoverflow.com/questions/31277484",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/490614/"
] | Use the [`numToDSInterval` function](http://docs.oracle.com/cd/B19306_01/server.102/b14200/functions103.htm) rather than constructing an interval literal
```
create or replace function GetHorizonTime(HorizonWindowMinutes IN NUMBER)
return timestamp
IS
BEGIN
return SYSDATE + numtodsinterval( HorizonWindowMinutes, ... | ```
create or replace function GetHorizonTime(HorizonWindowMinutes IN NUMBER)
return timestamp
IS
RETVALUE TIMESTAMP;
BEGIN
RETURN (SYSDATE + HorizonWindowMinutes/1440);
END;
/
``` |
31,277,484 | Oracle PL/SQL function that takes a string as a parameter.
What is the correct syntax for including this parameter in the Select portion of a statement.
The function is :
```
create or replace function GetHorizonTime(HorizonWindowMinutes IN VARCHAR2)
return timestamp
IS
RETVALUE TIMESTAMP;
BEGIN
SELECT SYSDATE ... | 2015/07/07 | [
"https://Stackoverflow.com/questions/31277484",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/490614/"
] | ```
create or replace function GetHorizonTime(HorizonWindowMinutes IN NUMBER)
return timestamp
IS
RETVALUE TIMESTAMP;
BEGIN
RETURN (SYSDATE + HorizonWindowMinutes/1440);
END;
/
``` | Another way of doing it is this one:
```
SELECT systimestamp + HorizonWindowMinutes * Interval '1' MINUTE
INTO RETVALUE
FROM DUAL;
``` |
31,277,484 | Oracle PL/SQL function that takes a string as a parameter.
What is the correct syntax for including this parameter in the Select portion of a statement.
The function is :
```
create or replace function GetHorizonTime(HorizonWindowMinutes IN VARCHAR2)
return timestamp
IS
RETVALUE TIMESTAMP;
BEGIN
SELECT SYSDATE ... | 2015/07/07 | [
"https://Stackoverflow.com/questions/31277484",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/490614/"
] | Use the [`numToDSInterval` function](http://docs.oracle.com/cd/B19306_01/server.102/b14200/functions103.htm) rather than constructing an interval literal
```
create or replace function GetHorizonTime(HorizonWindowMinutes IN NUMBER)
return timestamp
IS
BEGIN
return SYSDATE + numtodsinterval( HorizonWindowMinutes, ... | Another way of doing it is this one:
```
SELECT systimestamp + HorizonWindowMinutes * Interval '1' MINUTE
INTO RETVALUE
FROM DUAL;
``` |
18,004,416 | How would I go about allowing a `UITableView` to bounce when it reaches the bottom, but not the top. Essentially I'm adding a `UIImageView` as my `TableView's` section header, but currently if I pull up at the top there's an ugly space between my `UIImageView` and my `UINavigationBar`.
I look at this [question](https:... | 2013/08/01 | [
"https://Stackoverflow.com/questions/18004416",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1281736/"
] | The question you link to has 2 different solutions. As the delegate of the table view you are already the scroll view delegate, so you could implement something like (this is the answer that isn't tagged as correct in the other question...):
```
- (void)scrollViewDidScroll:(UIScrollView *)scrollView {
scrollView.b... | The contentOffset is the distance between the origin of your frame (0, 0) and the origin of the first cell.
![iOS: The default coordinate system has its origin at the upper left of the drawing area, and positive values extend down and to the right from it. You cannot change the default orientation of a view’s coordina... |
54,941,530 | Let me just give a code example.
```
#include <iostream>
#include <utility>
#include <tuple>
template <typename Service>
struct SubscriberImpl {
virtual void handleService(Service const&) = 0;
};
template <typename...ServiceType>
struct Subscriber : SubscriberImpl<ServiceType>... {
};
struct IntService {};
str... | 2019/03/01 | [
"https://Stackoverflow.com/questions/54941530",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3121568/"
] | You cannot put such implementations directly into the class, you have to inherit them (similarly to how `Subscriber` inherits from multiple `SubscriberImpl` instantiations). However, to override them all and still keep your class polymorphically usable as a `Subscriber`, you will have to inherit them "sequentially" ins... | I can't see a solution to do exactly what you want. However you can achieve the same behavior without needing the `virtual`ity at all. I initially thought about a CRTP solution just like @Angew's answer and then came up with another possibility:
You could edit your `Subscriber` class like this:
```
template <typename... |
45,244 | For all I know, I might be asking this question to programmed beings. | 2017/08/09 | [
"https://philosophy.stackexchange.com/questions/45244",
"https://philosophy.stackexchange.com",
"https://philosophy.stackexchange.com/users/27700/"
] | We cannot know from any observed behaviour that another person is conscious. This is the 'other minds' problem and it is well known. There may be other ways to know but if there are they lie outside of the natural sciences. The natural sciences cannot establish the existence of consciousness. It is reliant on untestabl... | Dao De Jing, chapter 58, says:
```
祸兮福之所倚
福兮祸之所伏
孰知其极
其无正也
```
Which may be translated as:
```
Disgrace brings luck on its side,
beyond luck disgrace is hidden.
Who knows how will this end?
There are no certainties.
```
The point here is: there are no certainties. You can never be sure, so [solipsism](https://en.... |
45,244 | For all I know, I might be asking this question to programmed beings. | 2017/08/09 | [
"https://philosophy.stackexchange.com/questions/45244",
"https://philosophy.stackexchange.com",
"https://philosophy.stackexchange.com/users/27700/"
] | >
> According to the argument from analogy, I infer the existence of mental states in other people, by analogy with myself. Just as I observe a correlation of my own behavior with my mental states, so I can infer the presence of appropriate mental states in others when I observe their behavior. I have already pointed ... | We cannot know from any observed behaviour that another person is conscious. This is the 'other minds' problem and it is well known. There may be other ways to know but if there are they lie outside of the natural sciences. The natural sciences cannot establish the existence of consciousness. It is reliant on untestabl... |
45,244 | For all I know, I might be asking this question to programmed beings. | 2017/08/09 | [
"https://philosophy.stackexchange.com/questions/45244",
"https://philosophy.stackexchange.com",
"https://philosophy.stackexchange.com/users/27700/"
] | We cannot know from any observed behaviour that another person is conscious. This is the 'other minds' problem and it is well known. There may be other ways to know but if there are they lie outside of the natural sciences. The natural sciences cannot establish the existence of consciousness. It is reliant on untestabl... | Consciousness is a spectrum, all things having some amount of it. Even things we perceive as inanimate objects still have some, but just a relatively smaller amount. Consider an atom of your brain, on its own it does not appear to have any consciousness, but you have consciousness, therefore a fraction of your consciou... |
45,244 | For all I know, I might be asking this question to programmed beings. | 2017/08/09 | [
"https://philosophy.stackexchange.com/questions/45244",
"https://philosophy.stackexchange.com",
"https://philosophy.stackexchange.com/users/27700/"
] | We cannot know from any observed behaviour that another person is conscious. This is the 'other minds' problem and it is well known. There may be other ways to know but if there are they lie outside of the natural sciences. The natural sciences cannot establish the existence of consciousness. It is reliant on untestabl... | In vedic philosophy, It is believed that the atmosphere surrounding us, or our perception of reality surrounding us can be clouded by our biases and so can be untrue but it doesn't render the reality of our surroundings untrue, it is only the perception which can be debated not the existence. |
45,244 | For all I know, I might be asking this question to programmed beings. | 2017/08/09 | [
"https://philosophy.stackexchange.com/questions/45244",
"https://philosophy.stackexchange.com",
"https://philosophy.stackexchange.com/users/27700/"
] | We cannot know from any observed behaviour that another person is conscious. This is the 'other minds' problem and it is well known. There may be other ways to know but if there are they lie outside of the natural sciences. The natural sciences cannot establish the existence of consciousness. It is reliant on untestabl... | JimmyJames nailed it in his comment. Any discussion of the nature of consciousness is irrelevant. To prove something "for sure" is establishing a level of certainty at 100%. Consciousness requires existence. Can you prove at 100% that I exist? I think that you cannot. Therefore, you cannot prove at 100% that I am consc... |
45,244 | For all I know, I might be asking this question to programmed beings. | 2017/08/09 | [
"https://philosophy.stackexchange.com/questions/45244",
"https://philosophy.stackexchange.com",
"https://philosophy.stackexchange.com/users/27700/"
] | >
> According to the argument from analogy, I infer the existence of mental states in other people, by analogy with myself. Just as I observe a correlation of my own behavior with my mental states, so I can infer the presence of appropriate mental states in others when I observe their behavior. I have already pointed ... | Dao De Jing, chapter 58, says:
```
祸兮福之所倚
福兮祸之所伏
孰知其极
其无正也
```
Which may be translated as:
```
Disgrace brings luck on its side,
beyond luck disgrace is hidden.
Who knows how will this end?
There are no certainties.
```
The point here is: there are no certainties. You can never be sure, so [solipsism](https://en.... |
45,244 | For all I know, I might be asking this question to programmed beings. | 2017/08/09 | [
"https://philosophy.stackexchange.com/questions/45244",
"https://philosophy.stackexchange.com",
"https://philosophy.stackexchange.com/users/27700/"
] | >
> According to the argument from analogy, I infer the existence of mental states in other people, by analogy with myself. Just as I observe a correlation of my own behavior with my mental states, so I can infer the presence of appropriate mental states in others when I observe their behavior. I have already pointed ... | Consciousness is a spectrum, all things having some amount of it. Even things we perceive as inanimate objects still have some, but just a relatively smaller amount. Consider an atom of your brain, on its own it does not appear to have any consciousness, but you have consciousness, therefore a fraction of your consciou... |
45,244 | For all I know, I might be asking this question to programmed beings. | 2017/08/09 | [
"https://philosophy.stackexchange.com/questions/45244",
"https://philosophy.stackexchange.com",
"https://philosophy.stackexchange.com/users/27700/"
] | >
> According to the argument from analogy, I infer the existence of mental states in other people, by analogy with myself. Just as I observe a correlation of my own behavior with my mental states, so I can infer the presence of appropriate mental states in others when I observe their behavior. I have already pointed ... | In vedic philosophy, It is believed that the atmosphere surrounding us, or our perception of reality surrounding us can be clouded by our biases and so can be untrue but it doesn't render the reality of our surroundings untrue, it is only the perception which can be debated not the existence. |
45,244 | For all I know, I might be asking this question to programmed beings. | 2017/08/09 | [
"https://philosophy.stackexchange.com/questions/45244",
"https://philosophy.stackexchange.com",
"https://philosophy.stackexchange.com/users/27700/"
] | >
> According to the argument from analogy, I infer the existence of mental states in other people, by analogy with myself. Just as I observe a correlation of my own behavior with my mental states, so I can infer the presence of appropriate mental states in others when I observe their behavior. I have already pointed ... | JimmyJames nailed it in his comment. Any discussion of the nature of consciousness is irrelevant. To prove something "for sure" is establishing a level of certainty at 100%. Consciousness requires existence. Can you prove at 100% that I exist? I think that you cannot. Therefore, you cannot prove at 100% that I am consc... |
11,317,774 | I get the error
```
Fatal error: Call to a member function retrieve_products() on a non-object
```
The controller is:
```
<?php
class Cart extends CI_Controller { // Our Cart class extends the Controller class
public function _construct()
{
parent::_construct(); // We define the the Controlle... | 2012/07/03 | [
"https://Stackoverflow.com/questions/11317774",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1474204/"
] | I want to say that your call
```
$data['products'] = $this->cart_model->retrieve_products();
```
Should be:
```
$data['products'] = $this->Cart_model->retrieve_products();
```
Ie: uppercase "C" in cart\_model | Maybe we're using different versions (I have 1.7.2), but to declare a model, `CI_` does not appear. My working code has the equivalent of:
```
class Cart_model extends Model
```
Also, the class should capitalized:
```
$this->Cart_model->retrieve_products();
```
(instead of)
```
$this->cart_model->retrieve_produc... |
11,317,774 | I get the error
```
Fatal error: Call to a member function retrieve_products() on a non-object
```
The controller is:
```
<?php
class Cart extends CI_Controller { // Our Cart class extends the Controller class
public function _construct()
{
parent::_construct(); // We define the the Controlle... | 2012/07/03 | [
"https://Stackoverflow.com/questions/11317774",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1474204/"
] | Maybe we're using different versions (I have 1.7.2), but to declare a model, `CI_` does not appear. My working code has the equivalent of:
```
class Cart_model extends Model
```
Also, the class should capitalized:
```
$this->Cart_model->retrieve_products();
```
(instead of)
```
$this->cart_model->retrieve_produc... | I think its your typo error you have spelled construct function as `_construct` rather than `__construct` thats why codeigniter considers it as a function rather than a class constructor and model loading is limited to only that function. |
11,317,774 | I get the error
```
Fatal error: Call to a member function retrieve_products() on a non-object
```
The controller is:
```
<?php
class Cart extends CI_Controller { // Our Cart class extends the Controller class
public function _construct()
{
parent::_construct(); // We define the the Controlle... | 2012/07/03 | [
"https://Stackoverflow.com/questions/11317774",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1474204/"
] | I want to say that your call
```
$data['products'] = $this->cart_model->retrieve_products();
```
Should be:
```
$data['products'] = $this->Cart_model->retrieve_products();
```
Ie: uppercase "C" in cart\_model | I think its your typo error you have spelled construct function as `_construct` rather than `__construct` thats why codeigniter considers it as a function rather than a class constructor and model loading is limited to only that function. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.