qid int64 1 74.6M | question stringlengths 45 24.2k | date stringlengths 10 10 | metadata stringlengths 101 178 | response_j stringlengths 32 23.2k | response_k stringlengths 21 13.2k |
|---|---|---|---|---|---|
10,262,114 | I need to script my app (not a game) and I have a problem, choosing a script lang for this.
Lua looks fine (actually, it is ideal for my task), but it has problems with unicode strings, which will be used.
Also, I thought about Python, but I don't like It's syntax, and it's Dll is too big for me ( about 2.5 Mib).
Pytho... | 2012/04/21 | ['https://Stackoverflow.com/questions/10262114', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/684275/'] | There isn't really such a thing as a "unicode string". Strings are a sequence of bytes that can contain anything. Knowing the encoding of the data in the string matters, though.
I use Lua with [UTF-8 strings](http://en.wikipedia.org/wiki/UTF-8), which just works for all the operations I care about. I do not use any Un... | Take look at [Jim Tcl](http://jim.tcl.tk). It's small, easily embeddable and extendable, supports UTF-8 strings, and it's pretty powerful |
43,979,563 | We have code that loads html to div with class content. We have div element with link class which has data-href and some other data-\* properties. The code looks like:
```
$(document).on('click', '.link', linkClick);
linkClick: function (event) {
event.stopPropagation();
$('.content').load($(th... | 2017/05/15 | ['https://Stackoverflow.com/questions/43979563', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/4930231/'] | Create a scoped reference to it before the load call:
```
function (event) {
event.stopPropagation();
var $that = $(this); // <- Like this
$('.content').load($(this).data('href'), function (response, status) {
// You can use $that here
if (status == 'error') {
$('.content').... | ```
$(document).on('click', '.link', linkClick);
var href = $(this).data('href');
linkClick: function (event) {
event.stopPropagation();
$('.content').load(href, function (response, status) {
if (status == 'error') {
$('.content').html("Something went wrong. Please try again later");
... |
43,979,563 | We have code that loads html to div with class content. We have div element with link class which has data-href and some other data-\* properties. The code looks like:
```
$(document).on('click', '.link', linkClick);
linkClick: function (event) {
event.stopPropagation();
$('.content').load($(th... | 2017/05/15 | ['https://Stackoverflow.com/questions/43979563', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/4930231/'] | Create a scoped reference to it before the load call:
```
function (event) {
event.stopPropagation();
var $that = $(this); // <- Like this
$('.content').load($(this).data('href'), function (response, status) {
// You can use $that here
if (status == 'error') {
$('.content').... | You can use `event.target` to access clicked element. Most common way is to store it under *that* or *self* variable.
```
$(document).on('click', '.link', linkClick);
linkClick = function (event) {
event.stopPropagation();
var that = event.target;
$('.content').load($(that).data('href'), function (respons... |
14,465,060 | Ok so I have a map loaded with pins from a remote JSON feed which is loaded into the app. This all works fine.
Now from initial experimenting `regionDidChangeAnimated` gets called multiple times and so I moved my post request to a method that uses a drag map gesture recogniser which then performs a post request to get... | 2013/01/22 | ['https://Stackoverflow.com/questions/14465060', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/652028/'] | I have a similar problem: I want do distinguish if the displayed part of a map has been changed by program or by user interaction. Apparently, `MKMapView` objects do not tell me so, i.e. `regionDidChangeAnimated` is called in both cases without an indication why.
But since `MKMapView` is a subclass of `UIView`, and ... | I am such a plank sometimes writing problems can help. I simply removed the regionDidChangeAnimated as I have no need for it and the code that was present there I moved to my gesture which was to removeAnnotations before re-adding them doh! |
6,394,968 | Yet another template issue ! I'm trying to get a template method that will output an object if it has an overload for the operator <<.
I have pretty much everything working, and implemented an enable\_if in order to make g++ choose the intended specialization for each type of objects.
Thing is, with a non-overloaded o... | 2011/06/18 | ['https://Stackoverflow.com/questions/6394968', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/538377/'] | You'll get the ambiguity because in both cases you have a function that takes a stream followed by your type `T` as the first two arguments. This works though:
```
#include <iostream>
#include <boost/utility/enable_if.hpp>
#include <typeinfo>
template <class T>
struct CanPrint { enum { value = 0 }; };
template <>
st... | The ambiguity is because of the default parameter value.
Calling `Print(stream, whatever)` can be resolved to either the first version with the default third parameter or the second version with no third parameter.
Remove the default value, and the compiler will understand. Otherwise both of them can be chosen always... |
6,394,968 | Yet another template issue ! I'm trying to get a template method that will output an object if it has an overload for the operator <<.
I have pretty much everything working, and implemented an enable\_if in order to make g++ choose the intended specialization for each type of objects.
Thing is, with a non-overloaded o... | 2011/06/18 | ['https://Stackoverflow.com/questions/6394968', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/538377/'] | You'll get the ambiguity because in both cases you have a function that takes a stream followed by your type `T` as the first two arguments. This works though:
```
#include <iostream>
#include <boost/utility/enable_if.hpp>
#include <typeinfo>
template <class T>
struct CanPrint { enum { value = 0 }; };
template <>
st... | I believe this has nothing to do with templates. A free function overloaded in this fashion would give the same ambigious error.
check this simple code example, It is similar to what you are doing in your template example:
```
void doSomething(int i, int j, int k );
void doSomething(int i, int j, int k = 10);
void d... |
53,596,009 | I am trying to remove the last `","` of a string however i am getting an error stating that
>
> System.ArgumentOutOfRangeException: 'StartIndex cannot be less than zero.
>
>
>
the string is written to the file fine but it breaks when running with the above error. I'm unsure as to why this is happening, any sugge... | 2018/12/03 | ['https://Stackoverflow.com/questions/53596009', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/5424254/'] | Appending `string` in a loop:
```
foreach (int s in connectionData)
{
writeUnEditedData += (s + ",");
}
```
is *not* a good idea. Put `Join`:
```
writeUnEditedData = string.Join(",", connectionData);
```
Having this done, you don't have to remove anything:
```
using (StreamWriter sw = ... | This usually means that the string is empty.
Try to put this guard code in:
```
string writeData = string.IsNullOrEmpty(writeUnEditedData)
? string.Empty
: writeUnEditedData.Remove(writeUnEditedData.Length - 1);
``` |
53,596,009 | I am trying to remove the last `","` of a string however i am getting an error stating that
>
> System.ArgumentOutOfRangeException: 'StartIndex cannot be less than zero.
>
>
>
the string is written to the file fine but it breaks when running with the above error. I'm unsure as to why this is happening, any sugge... | 2018/12/03 | ['https://Stackoverflow.com/questions/53596009', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/5424254/'] | Add a check to see if writeUnEditedData is not an empty string before you do the Remove. An empty string will results in a Remove(-1) which I would assume would throw an error that the StartIndex cannot be less then 0. | This usually means that the string is empty.
Try to put this guard code in:
```
string writeData = string.IsNullOrEmpty(writeUnEditedData)
? string.Empty
: writeUnEditedData.Remove(writeUnEditedData.Length - 1);
``` |
53,596,009 | I am trying to remove the last `","` of a string however i am getting an error stating that
>
> System.ArgumentOutOfRangeException: 'StartIndex cannot be less than zero.
>
>
>
the string is written to the file fine but it breaks when running with the above error. I'm unsure as to why this is happening, any sugge... | 2018/12/03 | ['https://Stackoverflow.com/questions/53596009', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/5424254/'] | Try `string.TrimEnd()`:
```
writeUnEditedData = writeUnEditedData.TrimEnd(',');
``` | This usually means that the string is empty.
Try to put this guard code in:
```
string writeData = string.IsNullOrEmpty(writeUnEditedData)
? string.Empty
: writeUnEditedData.Remove(writeUnEditedData.Length - 1);
``` |
53,596,009 | I am trying to remove the last `","` of a string however i am getting an error stating that
>
> System.ArgumentOutOfRangeException: 'StartIndex cannot be less than zero.
>
>
>
the string is written to the file fine but it breaks when running with the above error. I'm unsure as to why this is happening, any sugge... | 2018/12/03 | ['https://Stackoverflow.com/questions/53596009', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/5424254/'] | Appending `string` in a loop:
```
foreach (int s in connectionData)
{
writeUnEditedData += (s + ",");
}
```
is *not* a good idea. Put `Join`:
```
writeUnEditedData = string.Join(",", connectionData);
```
Having this done, you don't have to remove anything:
```
using (StreamWriter sw = ... | Add a check to see if writeUnEditedData is not an empty string before you do the Remove. An empty string will results in a Remove(-1) which I would assume would throw an error that the StartIndex cannot be less then 0. |
53,596,009 | I am trying to remove the last `","` of a string however i am getting an error stating that
>
> System.ArgumentOutOfRangeException: 'StartIndex cannot be less than zero.
>
>
>
the string is written to the file fine but it breaks when running with the above error. I'm unsure as to why this is happening, any sugge... | 2018/12/03 | ['https://Stackoverflow.com/questions/53596009', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/5424254/'] | Appending `string` in a loop:
```
foreach (int s in connectionData)
{
writeUnEditedData += (s + ",");
}
```
is *not* a good idea. Put `Join`:
```
writeUnEditedData = string.Join(",", connectionData);
```
Having this done, you don't have to remove anything:
```
using (StreamWriter sw = ... | Try `string.TrimEnd()`:
```
writeUnEditedData = writeUnEditedData.TrimEnd(',');
``` |
53,596,009 | I am trying to remove the last `","` of a string however i am getting an error stating that
>
> System.ArgumentOutOfRangeException: 'StartIndex cannot be less than zero.
>
>
>
the string is written to the file fine but it breaks when running with the above error. I'm unsure as to why this is happening, any sugge... | 2018/12/03 | ['https://Stackoverflow.com/questions/53596009', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/5424254/'] | Appending `string` in a loop:
```
foreach (int s in connectionData)
{
writeUnEditedData += (s + ",");
}
```
is *not* a good idea. Put `Join`:
```
writeUnEditedData = string.Join(",", connectionData);
```
Having this done, you don't have to remove anything:
```
using (StreamWriter sw = ... | You can improve on this pattern:
```
string writeUnEditedData = "";
foreach (int s in connectionData)
{
writeUnEditedData += (s + ",");
}
```
to avoid adding the comma in the first place:
```
string delimiter = "";
string writeUnEditedData = "";
foreach (int s in connectionData)
{
writeUnEdi... |
53,596,009 | I am trying to remove the last `","` of a string however i am getting an error stating that
>
> System.ArgumentOutOfRangeException: 'StartIndex cannot be less than zero.
>
>
>
the string is written to the file fine but it breaks when running with the above error. I'm unsure as to why this is happening, any sugge... | 2018/12/03 | ['https://Stackoverflow.com/questions/53596009', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/5424254/'] | Try `string.TrimEnd()`:
```
writeUnEditedData = writeUnEditedData.TrimEnd(',');
``` | Add a check to see if writeUnEditedData is not an empty string before you do the Remove. An empty string will results in a Remove(-1) which I would assume would throw an error that the StartIndex cannot be less then 0. |
53,596,009 | I am trying to remove the last `","` of a string however i am getting an error stating that
>
> System.ArgumentOutOfRangeException: 'StartIndex cannot be less than zero.
>
>
>
the string is written to the file fine but it breaks when running with the above error. I'm unsure as to why this is happening, any sugge... | 2018/12/03 | ['https://Stackoverflow.com/questions/53596009', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/5424254/'] | Add a check to see if writeUnEditedData is not an empty string before you do the Remove. An empty string will results in a Remove(-1) which I would assume would throw an error that the StartIndex cannot be less then 0. | You can improve on this pattern:
```
string writeUnEditedData = "";
foreach (int s in connectionData)
{
writeUnEditedData += (s + ",");
}
```
to avoid adding the comma in the first place:
```
string delimiter = "";
string writeUnEditedData = "";
foreach (int s in connectionData)
{
writeUnEdi... |
53,596,009 | I am trying to remove the last `","` of a string however i am getting an error stating that
>
> System.ArgumentOutOfRangeException: 'StartIndex cannot be less than zero.
>
>
>
the string is written to the file fine but it breaks when running with the above error. I'm unsure as to why this is happening, any sugge... | 2018/12/03 | ['https://Stackoverflow.com/questions/53596009', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/5424254/'] | Try `string.TrimEnd()`:
```
writeUnEditedData = writeUnEditedData.TrimEnd(',');
``` | You can improve on this pattern:
```
string writeUnEditedData = "";
foreach (int s in connectionData)
{
writeUnEditedData += (s + ",");
}
```
to avoid adding the comma in the first place:
```
string delimiter = "";
string writeUnEditedData = "";
foreach (int s in connectionData)
{
writeUnEdi... |
49,182 | The question goes:
Expand $(1-2x)^{1/2}-(1-3x)^{2/3}$ as far as the 4th term.
Ans: $x + x^2/2 + 5x^3/6 + 41x^4/24$
How should I do it? | 2011/07/03 | ['https://math.stackexchange.com/questions/49182', 'https://math.stackexchange.com', 'https://math.stackexchange.com/users/11103/'] | You can translate the inequality to $\frac{y^2 \cdot y'}{1+y^6} \leq x^{2011}$ and then integrate from $x\_00$ to $s$ with respect to $x$.
$$ \int\_{x\_0}^s \frac{y(x)^2 \cdot y(x)'}{1+y(x)^6} dx \leq \frac{s^{2012}}{2012}-\frac{x\_0^{2012}}{2012}$$
$$ \frac{1}{3} \arctan y^3(s) -\frac{1}{3}\arctan y^3(x\_0) \leq \f... | What you basically have is this:
\begin{align\*}
\frac{dy}{dx} & \leq \frac{x^{2011}\cdot (1+y^{6})}{y^{2}} \\ \Longrightarrow \int\frac{y^{2}}{1+y^{6}}\ dy &\leq \int x^{2011} \ dx
\end{align\*} |
52,074,170 | I've got two data frames: `zerowy_nazwa5`, `zatwierdzony_nazwa5`,
and working 2 lines:
```
setdiff(zatwierdzony_nazwa5, zerowy_nazwa5)
setdiff(zerowy_nazwa5, zatwierdzony_nazwa5)
```
how I implement this in PowerBi?
Thanks for help | 2018/08/29 | ['https://Stackoverflow.com/questions/52074170', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2298197/'] | If you remove the `seleniumAddress` from your protractor `conf.js`, protractor will start the selenium automatically. Example:
**With the `seleniumAddress` on the `conf.js`:**
```
exports.config = {
seleniumAddress: 'http://localhost:4444/wd/hub',
specs: [ 'spec.js' ]
};
```
**Removing the `seleniumAddress` on ... | You can archive your goal with npm packages: [concurrently](https://www.npmjs.com/package/concurrently) and [delay-cli](https://www.npmjs.com/package/delay-cli).
Add them as dependencies.
```
// package.json
"scripts": [
"wstart": "webdriver-manager update && webdriver-manager start",
"test": "concurrently --... |
12,803,508 | I have a program that recevice message in udp in visual studio.
sometime I miss a message.I want to use select to see udp buffer used size if udp rec buffer is full.
How I can use select for this purpose?
where can I see a example? | 2012/10/09 | ['https://Stackoverflow.com/questions/12803508', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/598470/'] | Post-fact discovery that your receive buffer is full will not do you any good - packets have already been dropped. Even more - you need to set your buffer sizes before `connect()` or `bind()`, they will not change after that.
What you should do is pre-set socket receive buffer to some large value that would accommodat... | I think one of the main properties of UDP (as opposed to TCP) is that you will sometimes lose messages. You have to design your protocol to account for that. I'm not an expert in UDP, but I don't understand how seeing the size of the buffer will help you, and I don't understand why you want to use `select` to do it. |
12,803,508 | I have a program that recevice message in udp in visual studio.
sometime I miss a message.I want to use select to see udp buffer used size if udp rec buffer is full.
How I can use select for this purpose?
where can I see a example? | 2012/10/09 | ['https://Stackoverflow.com/questions/12803508', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/598470/'] | Post-fact discovery that your receive buffer is full will not do you any good - packets have already been dropped. Even more - you need to set your buffer sizes before `connect()` or `bind()`, they will not change after that.
What you should do is pre-set socket receive buffer to some large value that would accommodat... | You can use [`getsockopt`](http://linux.die.net/man/3/getsockopt) to get socket options, including receive buffer size. Use [`setsockopt`](http://linux.die.net/man/3/setsockopt) to set the size.
Example of getting the size:
```
int size;
getsockopt(socket_fd, SOL_SOCKET, SO_RCVBUF, &size);
std::cout << "Buffer size i... |
1,569,238 | I am having performance problem when truing to fill typed list. Below is my simplified code:
```
public static List<Product> GetProducts()
{
List<Product> products = new List<Product>();
using (DbQuery query = new DbQuery()) //this is database access class
{
... | 2009/10/14 | ['https://Stackoverflow.com/questions/1569238', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/190204/'] | Have you tried to put an index on the fields you're filtering on? This will definitely speed up your queries versus not having indices. | I would be surprised if that is your bottleneck. I would try making a little test app that has a mock database connection.
You can usually do a little bit better if you can pre-size the list. If there is a reasonable minimum size for the query, or if you have some other way of knowing (or reasonably guessing) a good ... |
1,569,238 | I am having performance problem when truing to fill typed list. Below is my simplified code:
```
public static List<Product> GetProducts()
{
List<Product> products = new List<Product>();
using (DbQuery query = new DbQuery()) //this is database access class
{
... | 2009/10/14 | ['https://Stackoverflow.com/questions/1569238', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/190204/'] | Have you tried to put an index on the fields you're filtering on? This will definitely speed up your queries versus not having indices. | Just from the sounds of it, this has to be a database performance or latency issue (if connecting remotely.) |
1,569,238 | I am having performance problem when truing to fill typed list. Below is my simplified code:
```
public static List<Product> GetProducts()
{
List<Product> products = new List<Product>();
using (DbQuery query = new DbQuery()) //this is database access class
{
... | 2009/10/14 | ['https://Stackoverflow.com/questions/1569238', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/190204/'] | List insertion is very fast. Something else must be going on here. Try timing it with and without `products.Add(prd)` commented out. I suspect you'll find they're almost identical.
Here's how I'd solve this: comment out one line at a time until you see a big jump in performance-- then you'll have found your culprit. ... | I would be surprised if that is your bottleneck. I would try making a little test app that has a mock database connection.
You can usually do a little bit better if you can pre-size the list. If there is a reasonable minimum size for the query, or if you have some other way of knowing (or reasonably guessing) a good ... |
1,569,238 | I am having performance problem when truing to fill typed list. Below is my simplified code:
```
public static List<Product> GetProducts()
{
List<Product> products = new List<Product>();
using (DbQuery query = new DbQuery()) //this is database access class
{
... | 2009/10/14 | ['https://Stackoverflow.com/questions/1569238', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/190204/'] | List insertion is very fast. Something else must be going on here. Try timing it with and without `products.Add(prd)` commented out. I suspect you'll find they're almost identical.
Here's how I'd solve this: comment out one line at a time until you see a big jump in performance-- then you'll have found your culprit. ... | Just from the sounds of it, this has to be a database performance or latency issue (if connecting remotely.) |
1,569,238 | I am having performance problem when truing to fill typed list. Below is my simplified code:
```
public static List<Product> GetProducts()
{
List<Product> products = new List<Product>();
using (DbQuery query = new DbQuery()) //this is database access class
{
... | 2009/10/14 | ['https://Stackoverflow.com/questions/1569238', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/190204/'] | As Justin recommends, I personally would start commenting out sections of code until I found what was causing the bottleneck. For example, I might start by making the routine only run the database-centric code:
```
public static List<Product> GetProducts()
{
List<Product> products = new List<Produc... | I would be surprised if that is your bottleneck. I would try making a little test app that has a mock database connection.
You can usually do a little bit better if you can pre-size the list. If there is a reasonable minimum size for the query, or if you have some other way of knowing (or reasonably guessing) a good ... |
1,569,238 | I am having performance problem when truing to fill typed list. Below is my simplified code:
```
public static List<Product> GetProducts()
{
List<Product> products = new List<Product>();
using (DbQuery query = new DbQuery()) //this is database access class
{
... | 2009/10/14 | ['https://Stackoverflow.com/questions/1569238', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/190204/'] | As Justin recommends, I personally would start commenting out sections of code until I found what was causing the bottleneck. For example, I might start by making the routine only run the database-centric code:
```
public static List<Product> GetProducts()
{
List<Product> products = new List<Produc... | Just from the sounds of it, this has to be a database performance or latency issue (if connecting remotely.) |
9,866,679 | I came across `html>body` in one of the stylesheets and wanted to know as to why it is used.
```
html>body {
font-size: 16px;
font-size: 78.75%;
}
``` | 2012/03/26 | ['https://Stackoverflow.com/questions/9866679', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1184100/'] | It's called a [Child Selector](http://www.w3.org/TR/CSS2/selector.html#child-selectors).
The reason it's being used is likely because it's a hack to exclude IE6 and below. Those browsers don't understand the `>` selector.
**[More Information](http://en.wikipedia.org/wiki/CSS_filter#Child_selector_hack)** | Child selector, more info here: <http://www.w3.org/TR/CSS2/selector.html#child-selectors>
So in your code it would be any body child of html |
9,866,679 | I came across `html>body` in one of the stylesheets and wanted to know as to why it is used.
```
html>body {
font-size: 16px;
font-size: 78.75%;
}
``` | 2012/03/26 | ['https://Stackoverflow.com/questions/9866679', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1184100/'] | It's called a [Child Selector](http://www.w3.org/TR/CSS2/selector.html#child-selectors).
The reason it's being used is likely because it's a hack to exclude IE6 and below. Those browsers don't understand the `>` selector.
**[More Information](http://en.wikipedia.org/wiki/CSS_filter#Child_selector_hack)** | '> symbol indicates `child of`
Above code means
The style applies to all the tag body which is a child of html
```
#sample>div
```
above applies to all divs which are children of the element with id sample |
9,866,679 | I came across `html>body` in one of the stylesheets and wanted to know as to why it is used.
```
html>body {
font-size: 16px;
font-size: 78.75%;
}
``` | 2012/03/26 | ['https://Stackoverflow.com/questions/9866679', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1184100/'] | It's called a [Child Selector](http://www.w3.org/TR/CSS2/selector.html#child-selectors).
The reason it's being used is likely because it's a hack to exclude IE6 and below. Those browsers don't understand the `>` selector.
**[More Information](http://en.wikipedia.org/wiki/CSS_filter#Child_selector_hack)** | the '>' means that it is referencing on child elements of the parent (in this case 'html')
so for example I could have an arrangement of divs that look like so
```
<div id="outermost">
<div class="inner">
<div class="inner">
</div>
</div>
</div>
```
and i wrote some css like so
```
#outermost>.inner ... |
9,866,679 | I came across `html>body` in one of the stylesheets and wanted to know as to why it is used.
```
html>body {
font-size: 16px;
font-size: 78.75%;
}
``` | 2012/03/26 | ['https://Stackoverflow.com/questions/9866679', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1184100/'] | the '>' means that it is referencing on child elements of the parent (in this case 'html')
so for example I could have an arrangement of divs that look like so
```
<div id="outermost">
<div class="inner">
<div class="inner">
</div>
</div>
</div>
```
and i wrote some css like so
```
#outermost>.inner ... | Child selector, more info here: <http://www.w3.org/TR/CSS2/selector.html#child-selectors>
So in your code it would be any body child of html |
9,866,679 | I came across `html>body` in one of the stylesheets and wanted to know as to why it is used.
```
html>body {
font-size: 16px;
font-size: 78.75%;
}
``` | 2012/03/26 | ['https://Stackoverflow.com/questions/9866679', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1184100/'] | the '>' means that it is referencing on child elements of the parent (in this case 'html')
so for example I could have an arrangement of divs that look like so
```
<div id="outermost">
<div class="inner">
<div class="inner">
</div>
</div>
</div>
```
and i wrote some css like so
```
#outermost>.inner ... | '> symbol indicates `child of`
Above code means
The style applies to all the tag body which is a child of html
```
#sample>div
```
above applies to all divs which are children of the element with id sample |
124,342 | When a singer asks to tune a song a half step down from Gbm would that be Fminor or Gb? | 2022/08/12 | ['https://music.stackexchange.com/questions/124342', 'https://music.stackexchange.com', 'https://music.stackexchange.com/users/88138/'] | It means F minor.
Singers frequently change the key of (transpose) a song in order to best fit their vocal range.
Changing to Gb major would be a change of mode, which would entirely change the character of the music.
The below video is timed to a performance of the Beatles's "Here Comes the Sun", first in major, th... | I'd be surprised if the original key was G♭m - F♯m is far more the common way to call it. But you wouldn't change the key of any song from minor to major - or vice versa, just to suit someone's range. In fact, merely dropping a semitone is unusual. if it's that awkward to sing in G♭m, Em could be even better! (And prob... |
108,713 | I'm thinking of buying entry level DSLR Nikon D3500. I haven't used DSLR before, so I'm not sure if it is a good decision to buy DSLR. I would like to know if with this camera I can shoot portraits with blured background such as on the new smartphones with two cameras. Another thing I want to know if buying DSLR is goo... | 2019/06/05 | ['https://photo.stackexchange.com/questions/108713', 'https://photo.stackexchange.com', 'https://photo.stackexchange.com/users/85164/'] | If you read the other answers, it should be apparent that the qualities you seek such as (a) better portraits and (b) the desire to have a blurred background ... aren't really one thing, but a combination of many factors.
There are some nuances but the short answer is ... portraits do not require advanced DSLRs (so en... | I had an entry level for years (Canon 550D) and I have taken really good shots on it. Although lenses are important, I would like to enumerate a few other factors (sorted from the most important to the less important) that will influence on your results
1. **The subject**: This is by far the most important of all. You... |
108,713 | I'm thinking of buying entry level DSLR Nikon D3500. I haven't used DSLR before, so I'm not sure if it is a good decision to buy DSLR. I would like to know if with this camera I can shoot portraits with blured background such as on the new smartphones with two cameras. Another thing I want to know if buying DSLR is goo... | 2019/06/05 | ['https://photo.stackexchange.com/questions/108713', 'https://photo.stackexchange.com', 'https://photo.stackexchange.com/users/85164/'] | **It's not the camera, it's the lens.**
If you want a cheap and good option for shooting portrait pictures, you should definitely purchase in addition to a DSLR, a 50mm f/1.8 "nifty fifty" lens. Do expect to spend $100-$200 for the lens.
50mm is about optimal for portraits, because the relatively long 50mm focal leng... | A DX sensor has a crop factor of 2/3. You are presumably talking about the 18-55mm kit lens. For portrait work, you'd likely use it at its long end, giving you about 83mm equivalent focal length with an aperture of 1:5.6. That will give you the same depth of field as an 1:8 aperture setting on a 35mm film camera with t... |
108,713 | I'm thinking of buying entry level DSLR Nikon D3500. I haven't used DSLR before, so I'm not sure if it is a good decision to buy DSLR. I would like to know if with this camera I can shoot portraits with blured background such as on the new smartphones with two cameras. Another thing I want to know if buying DSLR is goo... | 2019/06/05 | ['https://photo.stackexchange.com/questions/108713', 'https://photo.stackexchange.com', 'https://photo.stackexchange.com/users/85164/'] | Is an entry level DSLR going to shoot nice portrait pictures? By itself, *no*, absolutely not.
It's easy to make the joke that the camera by itself just sits there and doesn't take pictures at all, being an inanimate object and all. Of course, we know what you actually mean, but there's really some truth to that. A DS... | Yes, low-end DSLRs can get you nice photos. But it depends a lot on the photographer, not just the camera.
The main thing to keep in mind for blurry backgrounds is the ratio between two distances:
* camera to the point of focus; and
* camera to background.
The further the background relative to the subject, the blur... |
108,713 | I'm thinking of buying entry level DSLR Nikon D3500. I haven't used DSLR before, so I'm not sure if it is a good decision to buy DSLR. I would like to know if with this camera I can shoot portraits with blured background such as on the new smartphones with two cameras. Another thing I want to know if buying DSLR is goo... | 2019/06/05 | ['https://photo.stackexchange.com/questions/108713', 'https://photo.stackexchange.com', 'https://photo.stackexchange.com/users/85164/'] | **It's not the camera, it's the lens.**
If you want a cheap and good option for shooting portrait pictures, you should definitely purchase in addition to a DSLR, a 50mm f/1.8 "nifty fifty" lens. Do expect to spend $100-$200 for the lens.
50mm is about optimal for portraits, because the relatively long 50mm focal leng... | Is an entry level DSLR going to shoot nice portrait pictures? By itself, *no*, absolutely not.
It's easy to make the joke that the camera by itself just sits there and doesn't take pictures at all, being an inanimate object and all. Of course, we know what you actually mean, but there's really some truth to that. A DS... |
108,713 | I'm thinking of buying entry level DSLR Nikon D3500. I haven't used DSLR before, so I'm not sure if it is a good decision to buy DSLR. I would like to know if with this camera I can shoot portraits with blured background such as on the new smartphones with two cameras. Another thing I want to know if buying DSLR is goo... | 2019/06/05 | ['https://photo.stackexchange.com/questions/108713', 'https://photo.stackexchange.com', 'https://photo.stackexchange.com/users/85164/'] | If you read the other answers, it should be apparent that the qualities you seek such as (a) better portraits and (b) the desire to have a blurred background ... aren't really one thing, but a combination of many factors.
There are some nuances but the short answer is ... portraits do not require advanced DSLRs (so en... | A DX sensor has a crop factor of 2/3. You are presumably talking about the 18-55mm kit lens. For portrait work, you'd likely use it at its long end, giving you about 83mm equivalent focal length with an aperture of 1:5.6. That will give you the same depth of field as an 1:8 aperture setting on a 35mm film camera with t... |
108,713 | I'm thinking of buying entry level DSLR Nikon D3500. I haven't used DSLR before, so I'm not sure if it is a good decision to buy DSLR. I would like to know if with this camera I can shoot portraits with blured background such as on the new smartphones with two cameras. Another thing I want to know if buying DSLR is goo... | 2019/06/05 | ['https://photo.stackexchange.com/questions/108713', 'https://photo.stackexchange.com', 'https://photo.stackexchange.com/users/85164/'] | Is an entry level DSLR going to shoot nice portrait pictures? By itself, *no*, absolutely not.
It's easy to make the joke that the camera by itself just sits there and doesn't take pictures at all, being an inanimate object and all. Of course, we know what you actually mean, but there's really some truth to that. A DS... | I had an entry level for years (Canon 550D) and I have taken really good shots on it. Although lenses are important, I would like to enumerate a few other factors (sorted from the most important to the less important) that will influence on your results
1. **The subject**: This is by far the most important of all. You... |
108,713 | I'm thinking of buying entry level DSLR Nikon D3500. I haven't used DSLR before, so I'm not sure if it is a good decision to buy DSLR. I would like to know if with this camera I can shoot portraits with blured background such as on the new smartphones with two cameras. Another thing I want to know if buying DSLR is goo... | 2019/06/05 | ['https://photo.stackexchange.com/questions/108713', 'https://photo.stackexchange.com', 'https://photo.stackexchange.com/users/85164/'] | Is an entry level DSLR going to shoot nice portrait pictures? By itself, *no*, absolutely not.
It's easy to make the joke that the camera by itself just sits there and doesn't take pictures at all, being an inanimate object and all. Of course, we know what you actually mean, but there's really some truth to that. A DS... | A DX sensor has a crop factor of 2/3. You are presumably talking about the 18-55mm kit lens. For portrait work, you'd likely use it at its long end, giving you about 83mm equivalent focal length with an aperture of 1:5.6. That will give you the same depth of field as an 1:8 aperture setting on a 35mm film camera with t... |
108,713 | I'm thinking of buying entry level DSLR Nikon D3500. I haven't used DSLR before, so I'm not sure if it is a good decision to buy DSLR. I would like to know if with this camera I can shoot portraits with blured background such as on the new smartphones with two cameras. Another thing I want to know if buying DSLR is goo... | 2019/06/05 | ['https://photo.stackexchange.com/questions/108713', 'https://photo.stackexchange.com', 'https://photo.stackexchange.com/users/85164/'] | **It's not the camera, it's the lens.**
If you want a cheap and good option for shooting portrait pictures, you should definitely purchase in addition to a DSLR, a 50mm f/1.8 "nifty fifty" lens. Do expect to spend $100-$200 for the lens.
50mm is about optimal for portraits, because the relatively long 50mm focal leng... | I had an entry level for years (Canon 550D) and I have taken really good shots on it. Although lenses are important, I would like to enumerate a few other factors (sorted from the most important to the less important) that will influence on your results
1. **The subject**: This is by far the most important of all. You... |
108,713 | I'm thinking of buying entry level DSLR Nikon D3500. I haven't used DSLR before, so I'm not sure if it is a good decision to buy DSLR. I would like to know if with this camera I can shoot portraits with blured background such as on the new smartphones with two cameras. Another thing I want to know if buying DSLR is goo... | 2019/06/05 | ['https://photo.stackexchange.com/questions/108713', 'https://photo.stackexchange.com', 'https://photo.stackexchange.com/users/85164/'] | If you read the other answers, it should be apparent that the qualities you seek such as (a) better portraits and (b) the desire to have a blurred background ... aren't really one thing, but a combination of many factors.
There are some nuances but the short answer is ... portraits do not require advanced DSLRs (so en... | Is an entry level DSLR going to shoot nice portrait pictures? By itself, *no*, absolutely not.
It's easy to make the joke that the camera by itself just sits there and doesn't take pictures at all, being an inanimate object and all. Of course, we know what you actually mean, but there's really some truth to that. A DS... |
108,713 | I'm thinking of buying entry level DSLR Nikon D3500. I haven't used DSLR before, so I'm not sure if it is a good decision to buy DSLR. I would like to know if with this camera I can shoot portraits with blured background such as on the new smartphones with two cameras. Another thing I want to know if buying DSLR is goo... | 2019/06/05 | ['https://photo.stackexchange.com/questions/108713', 'https://photo.stackexchange.com', 'https://photo.stackexchange.com/users/85164/'] | I had an entry level for years (Canon 550D) and I have taken really good shots on it. Although lenses are important, I would like to enumerate a few other factors (sorted from the most important to the less important) that will influence on your results
1. **The subject**: This is by far the most important of all. You... | A DX sensor has a crop factor of 2/3. You are presumably talking about the 18-55mm kit lens. For portrait work, you'd likely use it at its long end, giving you about 83mm equivalent focal length with an aperture of 1:5.6. That will give you the same depth of field as an 1:8 aperture setting on a 35mm film camera with t... |
11,967,306 | I am trying to use the package doBy, which requires an installation of the package lme4.
I have found the CRAN for it here <http://cran.r-project.org/web/packages/lme4//index.html>
However when I try download the .zip version I get the error "Object not found!".
From what I gather it is not an out of date package (wi... | 2012/08/15 | ['https://Stackoverflow.com/questions/11967306', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1545812/'] | try
```
install.packages("lme4",repos="http://r-forge.r-project.org")
``` | Do you use R Studio? I was having the same issue but then I used R Studio's tab "Packages" -> Install tab --> write lme4 from th CRAN repository. |
5,738,073 | I know from [this question](https://stackoverflow.com/questions/356846/c-var-vs-specific-type-performance) that `var i = 1` and `int i = 1` are exactly the same in IL. The compiler simply replaces `var` with the actual type at compile time. But, are there any instances where `var` could cause problem behavior (maybe th... | 2011/04/21 | ['https://Stackoverflow.com/questions/5738073', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/221061/'] | No, I don't think so. The only time it can't figure things out is if you try to do something like
```
var product = null;
```
Which makes sense, and in this case you get a compile error. | In addition to the ambiguous:
```
var x = null;
```
the compiler will also not infer the type of overloaded method groups:
```
var m = String.Equals;
```
nor will it infer the type of lambda expressions, which can be either `Func<>` or `Expression<Func<>>`:
```
var l = (int x) => x + 1;
```
All that said, Anth... |
5,738,073 | I know from [this question](https://stackoverflow.com/questions/356846/c-var-vs-specific-type-performance) that `var i = 1` and `int i = 1` are exactly the same in IL. The compiler simply replaces `var` with the actual type at compile time. But, are there any instances where `var` could cause problem behavior (maybe th... | 2011/04/21 | ['https://Stackoverflow.com/questions/5738073', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/221061/'] | I don't believe the compiler will *guess the wrong type.* However, it might *infer a type you didn't intend*, but that's not the same.
Consider the perfectly legal
```
decimal foo = 10;
decimal bar = 4;
decimal baz = foo / bar;
```
In the code, `baz` will very clearly be 2.5. The integer literals will be conver... | No, I don't think so. The only time it can't figure things out is if you try to do something like
```
var product = null;
```
Which makes sense, and in this case you get a compile error. |
5,738,073 | I know from [this question](https://stackoverflow.com/questions/356846/c-var-vs-specific-type-performance) that `var i = 1` and `int i = 1` are exactly the same in IL. The compiler simply replaces `var` with the actual type at compile time. But, are there any instances where `var` could cause problem behavior (maybe th... | 2011/04/21 | ['https://Stackoverflow.com/questions/5738073', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/221061/'] | No, I don't think so. The only time it can't figure things out is if you try to do something like
```
var product = null;
```
Which makes sense, and in this case you get a compile error. | ```
var x = 0
x = 0.10
```
`Cannot convert source type 'double' to target type 'int'`
An example:
```
double x = 0; //to initialize it
switch (something) {
case condition1:
x = 0.1;
break;
case condition2:
x = 0.2;
break;
}
```
Using `var` instead of `double` will give a co... |
5,738,073 | I know from [this question](https://stackoverflow.com/questions/356846/c-var-vs-specific-type-performance) that `var i = 1` and `int i = 1` are exactly the same in IL. The compiler simply replaces `var` with the actual type at compile time. But, are there any instances where `var` could cause problem behavior (maybe th... | 2011/04/21 | ['https://Stackoverflow.com/questions/5738073', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/221061/'] | It won't cause any "issues", regarding code however you could have a regression issue...
```
IObject1
{
void DoSomething();
}
IObject2
{
void DoSomething();
}
var result = SomeMethod();
result.DoSomething();
```
Now, if SomeMethod returned IObject1 and then was changed to return IObject2 this would still c... | In addition to the ambiguous:
```
var x = null;
```
the compiler will also not infer the type of overloaded method groups:
```
var m = String.Equals;
```
nor will it infer the type of lambda expressions, which can be either `Func<>` or `Expression<Func<>>`:
```
var l = (int x) => x + 1;
```
All that said, Anth... |
5,738,073 | I know from [this question](https://stackoverflow.com/questions/356846/c-var-vs-specific-type-performance) that `var i = 1` and `int i = 1` are exactly the same in IL. The compiler simply replaces `var` with the actual type at compile time. But, are there any instances where `var` could cause problem behavior (maybe th... | 2011/04/21 | ['https://Stackoverflow.com/questions/5738073', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/221061/'] | I don't believe the compiler will *guess the wrong type.* However, it might *infer a type you didn't intend*, but that's not the same.
Consider the perfectly legal
```
decimal foo = 10;
decimal bar = 4;
decimal baz = foo / bar;
```
In the code, `baz` will very clearly be 2.5. The integer literals will be conver... | It won't cause any "issues", regarding code however you could have a regression issue...
```
IObject1
{
void DoSomething();
}
IObject2
{
void DoSomething();
}
var result = SomeMethod();
result.DoSomething();
```
Now, if SomeMethod returned IObject1 and then was changed to return IObject2 this would still c... |
5,738,073 | I know from [this question](https://stackoverflow.com/questions/356846/c-var-vs-specific-type-performance) that `var i = 1` and `int i = 1` are exactly the same in IL. The compiler simply replaces `var` with the actual type at compile time. But, are there any instances where `var` could cause problem behavior (maybe th... | 2011/04/21 | ['https://Stackoverflow.com/questions/5738073', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/221061/'] | It won't cause any "issues", regarding code however you could have a regression issue...
```
IObject1
{
void DoSomething();
}
IObject2
{
void DoSomething();
}
var result = SomeMethod();
result.DoSomething();
```
Now, if SomeMethod returned IObject1 and then was changed to return IObject2 this would still c... | ```
var x = 0
x = 0.10
```
`Cannot convert source type 'double' to target type 'int'`
An example:
```
double x = 0; //to initialize it
switch (something) {
case condition1:
x = 0.1;
break;
case condition2:
x = 0.2;
break;
}
```
Using `var` instead of `double` will give a co... |
5,738,073 | I know from [this question](https://stackoverflow.com/questions/356846/c-var-vs-specific-type-performance) that `var i = 1` and `int i = 1` are exactly the same in IL. The compiler simply replaces `var` with the actual type at compile time. But, are there any instances where `var` could cause problem behavior (maybe th... | 2011/04/21 | ['https://Stackoverflow.com/questions/5738073', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/221061/'] | I don't believe the compiler will *guess the wrong type.* However, it might *infer a type you didn't intend*, but that's not the same.
Consider the perfectly legal
```
decimal foo = 10;
decimal bar = 4;
decimal baz = foo / bar;
```
In the code, `baz` will very clearly be 2.5. The integer literals will be conver... | In addition to the ambiguous:
```
var x = null;
```
the compiler will also not infer the type of overloaded method groups:
```
var m = String.Equals;
```
nor will it infer the type of lambda expressions, which can be either `Func<>` or `Expression<Func<>>`:
```
var l = (int x) => x + 1;
```
All that said, Anth... |
5,738,073 | I know from [this question](https://stackoverflow.com/questions/356846/c-var-vs-specific-type-performance) that `var i = 1` and `int i = 1` are exactly the same in IL. The compiler simply replaces `var` with the actual type at compile time. But, are there any instances where `var` could cause problem behavior (maybe th... | 2011/04/21 | ['https://Stackoverflow.com/questions/5738073', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/221061/'] | In addition to the ambiguous:
```
var x = null;
```
the compiler will also not infer the type of overloaded method groups:
```
var m = String.Equals;
```
nor will it infer the type of lambda expressions, which can be either `Func<>` or `Expression<Func<>>`:
```
var l = (int x) => x + 1;
```
All that said, Anth... | ```
var x = 0
x = 0.10
```
`Cannot convert source type 'double' to target type 'int'`
An example:
```
double x = 0; //to initialize it
switch (something) {
case condition1:
x = 0.1;
break;
case condition2:
x = 0.2;
break;
}
```
Using `var` instead of `double` will give a co... |
5,738,073 | I know from [this question](https://stackoverflow.com/questions/356846/c-var-vs-specific-type-performance) that `var i = 1` and `int i = 1` are exactly the same in IL. The compiler simply replaces `var` with the actual type at compile time. But, are there any instances where `var` could cause problem behavior (maybe th... | 2011/04/21 | ['https://Stackoverflow.com/questions/5738073', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/221061/'] | I don't believe the compiler will *guess the wrong type.* However, it might *infer a type you didn't intend*, but that's not the same.
Consider the perfectly legal
```
decimal foo = 10;
decimal bar = 4;
decimal baz = foo / bar;
```
In the code, `baz` will very clearly be 2.5. The integer literals will be conver... | ```
var x = 0
x = 0.10
```
`Cannot convert source type 'double' to target type 'int'`
An example:
```
double x = 0; //to initialize it
switch (something) {
case condition1:
x = 0.1;
break;
case condition2:
x = 0.2;
break;
}
```
Using `var` instead of `double` will give a co... |
4,138 | I'd like to know whether the messages delivered to the ethereum network by my wallet are encrypted such that any identifying information about the wallet is inaccessible to the ISP?
in other words, can ownership of the wallet be traced to me via knowledge of the IP address I'm using at the time of the communication?
... | 2016/05/21 | ['https://ethereum.stackexchange.com/questions/4138', 'https://ethereum.stackexchange.com', 'https://ethereum.stackexchange.com/users/2164/'] | ### No, they cannot trace your IP from the data stored in ethereum network.
Your wallet, if it is Mist, it is actually writing the transaction data to your wn private Ethereum node and then only publishes to the live ethereum network.
So, it is traceable back to you if and only if they are logging all the requests o... | The network is public, messages across it aren't encrypted and your ISP can see the transactions you're sending.
Edit: I'm wrong, see @dbryson's comment. |
4,138 | I'd like to know whether the messages delivered to the ethereum network by my wallet are encrypted such that any identifying information about the wallet is inaccessible to the ISP?
in other words, can ownership of the wallet be traced to me via knowledge of the IP address I'm using at the time of the communication?
... | 2016/05/21 | ['https://ethereum.stackexchange.com/questions/4138', 'https://ethereum.stackexchange.com', 'https://ethereum.stackexchange.com/users/2164/'] | ### No, they cannot trace your IP from the data stored in ethereum network.
Your wallet, if it is Mist, it is actually writing the transaction data to your wn private Ethereum node and then only publishes to the live ethereum network.
So, it is traceable back to you if and only if they are logging all the requests o... | You mention your ISP. If you use a VPN, Tor or I2P you ISP may be able to see that but they cannot see what you are doing on those private networks.
Encryption of your message and the metadata you ask about (ip address, etc) are two separate issues. |
71,493,412 | I have elasticsearch and Kibana are up and running and I want to read logs using logstash so for that I have passed csv file as an input in logstash.conf file but its not reading logs and shutting down automatically.
This is how I am running logstash command:
```
D:\logstash-8.1.0\bin>logstash -f "D:/logstash.conf"
... | 2022/03/16 | ['https://Stackoverflow.com/questions/71493412', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/7780102/'] | It's actually very simple. Since you use `&&` as an operator, gcc can deduce that the condition always yields false.
If you use the bitwise and operator (`&`), gcc adds code for the if:
```
#include <stdio.h>
unsigned char c = 0xff;
int n = 1;
int main(){
if ((c & 0xc0) == 0xc0 ) {
n=0;
}
printf... | In C `&&` casts operands to `bool` which even though its an `int`, it is changed to 1 meaning true, if nonzero.
`&` is a bitwise and, which returns the bits that are the same. If you combine this with `&&` it returns true if there are any bits left.
If you compile with `-Wall` you will get a warning when something ge... |
33,264,891 | I'm a new baby in Dapper. Trying to incorporate CRUD operations with Dapper and Dapper.SimpleCRUD lib. Here is the sample code...
My Data Model Looks like
```
Class Product
{
public string prodId {get;set;}
public string prodName {get;set;}
public string Location {get;set;}
}
```
Dapper Implementation - Ins... | 2015/10/21 | ['https://Stackoverflow.com/questions/33264891', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2066540/'] | This is happening since you are using a Dapper Extension, which has implemented the `Insert` CRUD extension method. Ideally this can be achieved using simple
`con.Execute` in the Dapper, but since you want to pass an object and create an insert query automatically by the extension, you need to help it understand, whic... | Connecting to SQL Server 2016, I had this error with both Dapper.Contrib & Dapper.SimpleCRUD when I forgot to attach the Primary Key to the Id column of the table.
Primary Key added to the table, project rebuilt & published to clear cache and all is good with both [Key] & [ExplicitKey] ( the latter in DapperContrib). |
321,083 | I've got [DavMail](http://davmail.sourceforge.net/) running in Linux Mint so Thunderbird can access IMAP/SMTP/LDAP/CalDav. I've got everything working at this point except LDAP. Basically I can't figure out what the base DN should be. Where on my Windows XP box can I find this? I've tried a few things, and the address ... | 2011/08/09 | ['https://superuser.com/questions/321083', 'https://superuser.com', 'https://superuser.com/users/75269/'] | The "Base DN" when adding a new LDAP directory in Thunderbird should be `ou=people` as specified on [this page](http://davmail.sourceforge.net/thunderbirddirectorysetup.html) [davmail.sourceforge.net].
Contrary to what the screenshot in those instructions shows (in French, no less), your "Bind DN" should might actuall... | The `base object` for searches is something that your directory server administrator tells you. It might be possible to discover the `namingContext` of the directory server if you know the hostname and port upon which the server listens by querying the root DSE. See *[The root DSE](http://bit.ly/osZXFG)* for more infor... |
9,389,381 | In order to demonstrate the security feature of Oracle one has to call **OCIServerVersion()** or **OCIServerRelease()** when the user session has not yet been established.
While having the database parameter `sec_return_server_release_banner = false`.
I am using Python cx\_Oracle module for this, but I am not sure how... | 2012/02/22 | ['https://Stackoverflow.com/questions/9389381', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1224977/'] | If you want the snapshot, make sure you have the repository tags for it as well, for wherever you are getting that build from. Otherwise use the latest release, `3.0.0-beta3`.
If you are building your own local copies, or deploying to an internal repo, then 3.0.0-SNAPSHOT should work - make sure the jar can be found i... | GXT 3.0.1 is on maven central
```
<dependency>
<groupId>com.sencha.gxt</groupId>
<artifactId>gxt</artifactId>
<version>3.0.1</version>
</dependency>
``` |
9,389,381 | In order to demonstrate the security feature of Oracle one has to call **OCIServerVersion()** or **OCIServerRelease()** when the user session has not yet been established.
While having the database parameter `sec_return_server_release_banner = false`.
I am using Python cx\_Oracle module for this, but I am not sure how... | 2012/02/22 | ['https://Stackoverflow.com/questions/9389381', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1224977/'] | If you want the snapshot, make sure you have the repository tags for it as well, for wherever you are getting that build from. Otherwise use the latest release, `3.0.0-beta3`.
If you are building your own local copies, or deploying to an internal repo, then 3.0.0-SNAPSHOT should work - make sure the jar can be found i... | Use these dependencies:
```
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<version>2.5.0</version>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-servlet</artifactId>
<version>2.5.0</version>
</dependency>
<dependency>
<groupI... |
9,389,381 | In order to demonstrate the security feature of Oracle one has to call **OCIServerVersion()** or **OCIServerRelease()** when the user session has not yet been established.
While having the database parameter `sec_return_server_release_banner = false`.
I am using Python cx\_Oracle module for this, but I am not sure how... | 2012/02/22 | ['https://Stackoverflow.com/questions/9389381', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1224977/'] | Use these dependencies:
```
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<version>2.5.0</version>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-servlet</artifactId>
<version>2.5.0</version>
</dependency>
<dependency>
<groupI... | GXT 3.0.1 is on maven central
```
<dependency>
<groupId>com.sencha.gxt</groupId>
<artifactId>gxt</artifactId>
<version>3.0.1</version>
</dependency>
``` |
40,585,550 | i want a make a feed reader...i want load politics news from multiple data dource in one tableview synchronously.
what do i do?
i went to this link: [table view with multiple data sources/nibs](https://stackoverflow.com/questions/35960403/ios-swift-table-view-with-multiple-data-sources-nibs)
but this solution is not s... | 2016/11/14 | ['https://Stackoverflow.com/questions/40585550', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/6856597/'] | you are sorting from the older to the newer date which is ok,
if you need upside down then do invert the comparation criteria by doing:
```
return date2.compareTo(date1);
```
another way to go is inverte the sorted list...
1st sort then do `Collections.reverse();`
Edit:
=====
I try your code and the reason is the... | In java 8 you can write it in this way..
Please note that I have used apache CompareToBuilder.
```
Collections.sort(opportunities,
Collections.reverseOrder((item1, item2) -> new CompareToBuilder()
.append(item1.getExpires(), item2.getExpires()).toComparison()));
``` |
40,585,550 | i want a make a feed reader...i want load politics news from multiple data dource in one tableview synchronously.
what do i do?
i went to this link: [table view with multiple data sources/nibs](https://stackoverflow.com/questions/35960403/ios-swift-table-view-with-multiple-data-sources-nibs)
but this solution is not s... | 2016/11/14 | ['https://Stackoverflow.com/questions/40585550', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/6856597/'] | Because format "YYYY" in your `DateFormat`
Change `MM/DD/YYYY` to `MM/DD/yyyy` will work | you are sorting from the older to the newer date which is ok,
if you need upside down then do invert the comparation criteria by doing:
```
return date2.compareTo(date1);
```
another way to go is inverte the sorted list...
1st sort then do `Collections.reverse();`
Edit:
=====
I try your code and the reason is the... |
40,585,550 | i want a make a feed reader...i want load politics news from multiple data dource in one tableview synchronously.
what do i do?
i went to this link: [table view with multiple data sources/nibs](https://stackoverflow.com/questions/35960403/ios-swift-table-view-with-multiple-data-sources-nibs)
but this solution is not s... | 2016/11/14 | ['https://Stackoverflow.com/questions/40585550', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/6856597/'] | Because format "YYYY" in your `DateFormat`
Change `MM/DD/YYYY` to `MM/DD/yyyy` will work | In java 8 you can write it in this way..
Please note that I have used apache CompareToBuilder.
```
Collections.sort(opportunities,
Collections.reverseOrder((item1, item2) -> new CompareToBuilder()
.append(item1.getExpires(), item2.getExpires()).toComparison()));
``` |
61,689,419 | I am trying to find the max and min of a line of text from a data file. Though there is plenty of lines of text in this data file.
**DATA**
```
-99 1 2 3 4 5 6 7 8 9 10 12345
10 9 8 7 6 5 4 3 2 1 -99
10 20 30 40 50 -11818 40 30 20 10
32767
255 255
9 10 -88 100 -555 1000
10 10 10 11 456
-111 1 2 3 9 11 20 30
9 8 7 6 ... | 2020/05/08 | ['https://Stackoverflow.com/questions/61689419', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/11991346/'] | You can compare using int
```
public static String getMax(String[] inputArray) {
int maxValue = Integer.MIN_VALUE;
for(int i = 0; i < inputArray.length; i++) {
if(maxValue < Integer.parseInt(inputArray[i])){
maxValue = Integer.parseInt(inputArray[i]);
}
... | You should use: Integer.pharseToInt()
Then when you'll have an array of integers and you can find the max value easily:
```
int getMax(int [] array){
int max = INTEGER.MIN_VALUE;
for (int i=0: i<array.length; i++)
if (array[i]>max)
max = array[i];
return max;
}
```
Totally symetric functi... |
61,689,419 | I am trying to find the max and min of a line of text from a data file. Though there is plenty of lines of text in this data file.
**DATA**
```
-99 1 2 3 4 5 6 7 8 9 10 12345
10 9 8 7 6 5 4 3 2 1 -99
10 20 30 40 50 -11818 40 30 20 10
32767
255 255
9 10 -88 100 -555 1000
10 10 10 11 456
-111 1 2 3 9 11 20 30
9 8 7 6 ... | 2020/05/08 | ['https://Stackoverflow.com/questions/61689419', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/11991346/'] | Compact solution with comments and explanations:
```
public static void main(String[] args) {
// Create an input stream
try (Stream<String> stream = Files.lines(Paths.get("average.dat"))) {
// Get each line from the stream
stream.forEach(line -> {
// Cut the line into peaces
... | You should use: Integer.pharseToInt()
Then when you'll have an array of integers and you can find the max value easily:
```
int getMax(int [] array){
int max = INTEGER.MIN_VALUE;
for (int i=0: i<array.length; i++)
if (array[i]>max)
max = array[i];
return max;
}
```
Totally symetric functi... |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 6