qid int64 1 74.7M | question stringlengths 0 58.3k | date stringlengths 10 10 | metadata list | response_j stringlengths 2 48.3k | response_k stringlengths 2 40.5k |
|---|---|---|---|---|---|
53,868,770 | I simply want to use a modified example of Nested flex on the [PrimeNG Flex](https://www.primefaces.org/primeng/#/flexgrid) by using the code below:
```
<h3>Nested</h3>
<div class="p-grid nested-grid">
<div class="p-col-8">
<div class="p-grid">
<div class="p-col-6">
<div class="... | 2018/12/20 | [
"https://Stackoverflow.com/questions/53868770",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/836018/"
] | the example in the site shows kind of like this
i don't think you need 'p-grid nested-grid'
```
<div class="p-grid">
<div class="p-col-8">
<div class="p-grid">
<div class="p-col-6">
6
</div>
<div class="p-col-6">
6
</div>
<div class="p-col-12">
... | To keep the `nested-grid` class in the first `div` element you can add the following to your global styles.css file to fix it.
```
* {
-webkit-box-sizing: border-box;
}
```
This will stop the col divs from acting as if the total size is 11 instead of 12 and works with all the examples shown on the primefaces websi... |
52,616,343 | I'm wondering if it's better practice to use Bundle or make another class entirely to save data?
During a fragment change I can set it up so that onSaveInstanceState() saves information. Alternatively, I could store that information as a static variable in another class, then create a getter function in that class an... | 2018/10/02 | [
"https://Stackoverflow.com/questions/52616343",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10318432/"
] | For the various steps, I can give you the following hints.
### File names
For obtaining mp3 file names the [glob](https://docs.python.org/3/library/glob.html) module is your friend: `glob.iglob('*.mp3', recursive=True)`.
### Dealing with mp3
For dealing with mp3 files you can use practically any command line utilit... | For my purposes ideally fits [mutagen](https://mutagen.readthedocs.io/en/latest/index.html) here is [**solution**](https://m5-web.com/blog/165) with comments.
Everything is pretty simple. |
13,823 | I have installed MySQL via [homebrew](https://brew.sh/): `brew install mysql`. I'd like to get the MySQL preference pane hooked up to my installation of MySQL through homebrew. How can I achieve this? | 2011/05/09 | [
"https://apple.stackexchange.com/questions/13823",
"https://apple.stackexchange.com",
"https://apple.stackexchange.com/users/6162/"
] | See [my answer to your question at superuser.com](https://superuser.com/a/413814/121764). | My understanding is that you can't get the MySQL Preference Pane via homebrew. But if you download the 64-bit DMG file from [MySQL's community server download page](http://www.mysql.com/downloads/mysql/), it includes an installer, preference pane, and startup script.
See also the answer to [this StackOverflow question... |
51,643,920 | Given these two classes:
```
public class Abc
{
public static void Method(string propertyName) { }
}
public class Def
{
public int Prop { get; }
public void Method2() { Abc.Method("Prop"); }
}
```
As is, Roslyn rule CA1507 (use nameof) will be triggered for `Method2`. I don't want that, because that strin... | 2018/08/02 | [
"https://Stackoverflow.com/questions/51643920",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2234468/"
] | I believe that this rule only [triggers](https://github.com/dotnet/roslyn-analyzers/blob/ea231a69f9891764f10c5ed214409627da010be7/src/Microsoft.CodeQuality.Analyzers/Core/Maintainability/UseNameofInPlaceOfString.cs#L67)1 when the name of your parameter is `paramName` or `propertyName`2. So let's change the parameter:
... | There's nothing that can be done to `Abc.Method` declaration regarding this warning because the warning is not on the method (or even on it's invocation) but on the literal itself.
It might be ugly, but it works:
```
public class Abc
{
public static void Method(string propertyName) { }
}
public class Def
{
pub... |
6,229,913 | I am struggling to get my interior background image to display in IE, works fine in FF and chrome. Cant figure it out.
```
<div id="banner">
<div id="banner-image"><cms:CMSEditableImage ID="BannerPhoto" runat="server" ImageHeight="284" ImageWidth="892" /></div>
</div>
<div id="interior-content-blo... | 2011/06/03 | [
"https://Stackoverflow.com/questions/6229913",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/783021/"
] | You can change how the keyboard behaves when it appears over the Ad. Go into your AndroidManifest.xml and add this attribute in the activity tag with the AdMob banner.
```
android:windowSoftInputMode="adjustPan"
```
This will prevent the ads from jumping above the keyboard and hiding the input. Instead, they will ap... | This may not be the ideal solution for you but it is what I found to be best for my users. When the keyboard was shown it was covering buttons and text in my WebView making for a bad user experience. To fix this I set my AdView height to the height of the banner ad, in my case 50dp and set the AdView layout to below to... |
6,229,913 | I am struggling to get my interior background image to display in IE, works fine in FF and chrome. Cant figure it out.
```
<div id="banner">
<div id="banner-image"><cms:CMSEditableImage ID="BannerPhoto" runat="server" ImageHeight="284" ImageWidth="892" /></div>
</div>
<div id="interior-content-blo... | 2011/06/03 | [
"https://Stackoverflow.com/questions/6229913",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/783021/"
] | You can change how the keyboard behaves when it appears over the Ad. Go into your AndroidManifest.xml and add this attribute in the activity tag with the AdMob banner.
```
android:windowSoftInputMode="adjustPan"
```
This will prevent the ads from jumping above the keyboard and hiding the input. Instead, they will ap... | I tried setting android:windowSoftInputMode="adjustPan".
it hides the adMob banner **but** also the EdiText.
So the solution I found is to hide the adMob banner when the keyboard opens.
I learned how to detect if the keyboard opens [here](https://stackoverflow.com/questions/2150078/how-to-check-visibility-of-software-k... |
6,229,913 | I am struggling to get my interior background image to display in IE, works fine in FF and chrome. Cant figure it out.
```
<div id="banner">
<div id="banner-image"><cms:CMSEditableImage ID="BannerPhoto" runat="server" ImageHeight="284" ImageWidth="892" /></div>
</div>
<div id="interior-content-blo... | 2011/06/03 | [
"https://Stackoverflow.com/questions/6229913",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/783021/"
] | You can change how the keyboard behaves when it appears over the Ad. Go into your AndroidManifest.xml and add this attribute in the activity tag with the AdMob banner.
```
android:windowSoftInputMode="adjustPan"
```
This will prevent the ads from jumping above the keyboard and hiding the input. Instead, they will ap... | add this in your Manifest in activity
android:windowSoftInputMode="stateVisible|adjustPan" |
6,229,913 | I am struggling to get my interior background image to display in IE, works fine in FF and chrome. Cant figure it out.
```
<div id="banner">
<div id="banner-image"><cms:CMSEditableImage ID="BannerPhoto" runat="server" ImageHeight="284" ImageWidth="892" /></div>
</div>
<div id="interior-content-blo... | 2011/06/03 | [
"https://Stackoverflow.com/questions/6229913",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/783021/"
] | You can change how the keyboard behaves when it appears over the Ad. Go into your AndroidManifest.xml and add this attribute in the activity tag with the AdMob banner.
```
android:windowSoftInputMode="adjustPan"
```
This will prevent the ads from jumping above the keyboard and hiding the input. Instead, they will ap... | I had a similar issue in my **Ionic app**. I wanted the Ad to completely be hidden when the soft keyboard shows up, but be visible when the soft keyboard is dismissed. I solved it by adding the following in the `<platform name="android">` tag of **config.xml:**
```
<platform name="android">
<edit-config file="... |
6,229,913 | I am struggling to get my interior background image to display in IE, works fine in FF and chrome. Cant figure it out.
```
<div id="banner">
<div id="banner-image"><cms:CMSEditableImage ID="BannerPhoto" runat="server" ImageHeight="284" ImageWidth="892" /></div>
</div>
<div id="interior-content-blo... | 2011/06/03 | [
"https://Stackoverflow.com/questions/6229913",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/783021/"
] | I tried setting android:windowSoftInputMode="adjustPan".
it hides the adMob banner **but** also the EdiText.
So the solution I found is to hide the adMob banner when the keyboard opens.
I learned how to detect if the keyboard opens [here](https://stackoverflow.com/questions/2150078/how-to-check-visibility-of-software-k... | This may not be the ideal solution for you but it is what I found to be best for my users. When the keyboard was shown it was covering buttons and text in my WebView making for a bad user experience. To fix this I set my AdView height to the height of the banner ad, in my case 50dp and set the AdView layout to below to... |
6,229,913 | I am struggling to get my interior background image to display in IE, works fine in FF and chrome. Cant figure it out.
```
<div id="banner">
<div id="banner-image"><cms:CMSEditableImage ID="BannerPhoto" runat="server" ImageHeight="284" ImageWidth="892" /></div>
</div>
<div id="interior-content-blo... | 2011/06/03 | [
"https://Stackoverflow.com/questions/6229913",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/783021/"
] | add this in your Manifest in activity
android:windowSoftInputMode="stateVisible|adjustPan" | This may not be the ideal solution for you but it is what I found to be best for my users. When the keyboard was shown it was covering buttons and text in my WebView making for a bad user experience. To fix this I set my AdView height to the height of the banner ad, in my case 50dp and set the AdView layout to below to... |
6,229,913 | I am struggling to get my interior background image to display in IE, works fine in FF and chrome. Cant figure it out.
```
<div id="banner">
<div id="banner-image"><cms:CMSEditableImage ID="BannerPhoto" runat="server" ImageHeight="284" ImageWidth="892" /></div>
</div>
<div id="interior-content-blo... | 2011/06/03 | [
"https://Stackoverflow.com/questions/6229913",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/783021/"
] | I tried setting android:windowSoftInputMode="adjustPan".
it hides the adMob banner **but** also the EdiText.
So the solution I found is to hide the adMob banner when the keyboard opens.
I learned how to detect if the keyboard opens [here](https://stackoverflow.com/questions/2150078/how-to-check-visibility-of-software-k... | I had a similar issue in my **Ionic app**. I wanted the Ad to completely be hidden when the soft keyboard shows up, but be visible when the soft keyboard is dismissed. I solved it by adding the following in the `<platform name="android">` tag of **config.xml:**
```
<platform name="android">
<edit-config file="... |
6,229,913 | I am struggling to get my interior background image to display in IE, works fine in FF and chrome. Cant figure it out.
```
<div id="banner">
<div id="banner-image"><cms:CMSEditableImage ID="BannerPhoto" runat="server" ImageHeight="284" ImageWidth="892" /></div>
</div>
<div id="interior-content-blo... | 2011/06/03 | [
"https://Stackoverflow.com/questions/6229913",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/783021/"
] | add this in your Manifest in activity
android:windowSoftInputMode="stateVisible|adjustPan" | I had a similar issue in my **Ionic app**. I wanted the Ad to completely be hidden when the soft keyboard shows up, but be visible when the soft keyboard is dismissed. I solved it by adding the following in the `<platform name="android">` tag of **config.xml:**
```
<platform name="android">
<edit-config file="... |
56,394 | I have replaced three flats on my new bike and found each time a tear or hole at the base of the air valve. What can cause this. | 2018/08/11 | [
"https://bicycles.stackexchange.com/questions/56394",
"https://bicycles.stackexchange.com",
"https://bicycles.stackexchange.com/users/38917/"
] | 1. As Kibbee suggests, the wrong size valve.
2. A badly-formed valve hole in the rim. It's not that unusual to find that there is a "lip" of metal at the hole that will cut into the tube. This requires a bit of filing with a small round file to correct.
3. Running the tire flat or with very low pressure. As an under-in... | The most likely cause is using a presto valve is a rim that's drilled for Schrader. Make sure you're using the correct tube for your rims. You can get a grommet to fill the hole if you want to use presto tubes on rims that are drilled for Schrader.
It might also be because the pressure was too low. This can cause the... |
1,650,529 | An often given example of a group of infinite order where every element has infinite order is the group $\dfrac{\mathbb{(Q, +)}}{(\mathbb{Z, +})}$.
But I don't see why every element necessarily has finite order in this group. Why is this true?
Also, what is the identity element of this group? | 2016/02/11 | [
"https://math.stackexchange.com/questions/1650529",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/312641/"
] | The identity of $G =\mathbb Q / \mathbb Z$ is $\mathbb Z$.
1) Every element of $G$ has **finite** order. Indeed, if you take any $r + \mathbb Z \in G$ where $r \in \mathbb Q$ then we may write $r = \frac{m}{n}$, with $m,n \in \mathbb Z $ and $n > 0$. Thus
$$n (r + \mathbb Z) = m + \mathbb Z = \mathbb Z$$
then it f... | If the group is of finite order then the order of every element in the group divides the order of the group. Hence no element can have infinite order.
In your example, if $\dfrac {p}{q} +\mathbb Z \in \mathbb Q/\mathbb Z$ then $\left(\dfrac{p} {q} +\mathbb Z\right)^q =q\left(\dfrac {p} {q} +\mathbb Z \right) =\mathbb ... |
32,730 | The following code evaluates the similarity between two time series:
```
set.seed(10)
RandData <- rnorm(8760*2)
America <- rep(c('NewYork','Miami'),each=8760)
Date = seq(from=as.POSIXct("1991-01-01 00:00"),
to=as.POSIXct("1991-12-31 23:00"), length=8760)
DatNew <- data.frame(Loc = America,
... | 2012/07/21 | [
"https://stats.stackexchange.com/questions/32730",
"https://stats.stackexchange.com",
"https://stats.stackexchange.com/users/12141/"
] | The "a" in "gam" stands for "additive" which means no interactions, so if you fit interactions you are really not fitting a gam model any more.
That said, there are ways to get some interaction like terms within the additive terms in a gam, you are already using one of those by using the `by` argument to `s`. You coul... | For two continuous variables then you can do what you want (whether this is an interaction or not I'll leave others to discuss as per comments to @Greg's Answer) using:
```
mod1 <- gam(Temp ~ Loc + s(Doy, bs = "cc", k = 5) +
s(Doy, bs = "cc", by = Loc, k = 5, m = 1) +
... |
36,403,859 | How do I use "UPSERT" or "INSERT INTO likes (user\_id,person\_id) VALUES (32,64) ON CONFLICT (user\_id,person\_id) DO NOTHING" in PostgreSQL 9.5 on Rails 4.2? | 2016/04/04 | [
"https://Stackoverflow.com/questions/36403859",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3384741/"
] | Have a look at `active_record_upsert` gem here: <https://github.com/jesjos/active_record_upsert>. This does the upsert, but obviously only on Postgres 9.5+. | You can achieve that by creating the SQL using the active records internals. You can use the `arel_attributes_with_values_for_create` to extract values for each active\_record for the insert sql with the Rails attributes, something like:
```
INSERT_REGEX = /(INSERT INTO .* VALUES) (.*)/
def values_for(active_record)
... |
27,150,695 | This may (should) have been asked before somewhere but I can't seem to find an answer. If someone provides a link I can delete this post!:
Just trying to get my head around some of composer's (probably applies to other package managers too) functionality.
Basically I just want to know what composer does in the follow... | 2014/11/26 | [
"https://Stackoverflow.com/questions/27150695",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1624933/"
] | ### To question 1
Yes Composer can only install one version of each extension/package.
### To question 2
Because of answer 1: Composer would consider your main project and the external package as incompatible.
In this case you could
* stay with version 5 at your main project too.
* ask the external package owner... | We had a situation today where we were using multiple libraries, and one used Guzzle v5 and the other Guzzle v6. Upgrading (or downgrading) was not a viable option, as it was third party code, so we had to be able to install both versions of Guzzle.
Here's what we did. This is a **TOTAL FRACKING HACK**, and I'd advis... |
38,092,075 | So simply put I'm trying to make a simple search engine where I've got a MySQL database and its contents being displayed on a HTML table (using PHP to get the information) and I want to make a search bar that as you type, filters the list automatically.
I've found tutorials on how to make that with plain text where it ... | 2016/06/29 | [
"https://Stackoverflow.com/questions/38092075",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5800070/"
] | I have doubt in the way you are passing the data.
Try to pass the data without doing **stringify** and see if it works. | 1. check if signin method is in document.ready function
2. if synchronous call is needed then you can use 'async': false
3. controller signin method expects AuthenticationModel as input parameter hence check ajax method returns the expected object, else try as string parameters in controller
4. as per the above control... |
1,199,486 | How can i use the server.mappath method in a C# class library class ,which acts as my BusinessLayer for My ASP.NET WEbsite | 2009/07/29 | [
"https://Stackoverflow.com/questions/1199486",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40521/"
] | You can get the base path by using the following code and append your needed path with that.
```
string path = System.AppDomain.CurrentDomain.BaseDirectory;
``` | Use this [System.Web.Hosting.HostingEnvironment.MapPath()](https://msdn.microsoft.com/en-us/library/system.web.hosting.hostingenvironment.mappath.aspx).
```
HostingEnvironment.MapPath("~/file")
```
Wonder why nobody mentioned it here. |
1,199,486 | How can i use the server.mappath method in a C# class library class ,which acts as my BusinessLayer for My ASP.NET WEbsite | 2009/07/29 | [
"https://Stackoverflow.com/questions/1199486",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40521/"
] | You should reference System.Web and call:
```
HttpContext.Current.Server.MapPath(...)
``` | ```
HostingEnvironment.MapPath
System.Web.Hosting.HostingEnvironment.MapPath(path);
``` |
1,199,486 | How can i use the server.mappath method in a C# class library class ,which acts as my BusinessLayer for My ASP.NET WEbsite | 2009/07/29 | [
"https://Stackoverflow.com/questions/1199486",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40521/"
] | Use this [System.Web.Hosting.HostingEnvironment.MapPath()](https://msdn.microsoft.com/en-us/library/system.web.hosting.hostingenvironment.mappath.aspx).
```
HostingEnvironment.MapPath("~/file")
```
Wonder why nobody mentioned it here. | Maybe you could abstract this as a dependency and create an IVirtualPathResolver. This way your service classes wouldn't be bound to System.Web and you could create another implementation if you wanted to reuse your logic in a different UI technology. |
1,199,486 | How can i use the server.mappath method in a C# class library class ,which acts as my BusinessLayer for My ASP.NET WEbsite | 2009/07/29 | [
"https://Stackoverflow.com/questions/1199486",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40521/"
] | By calling it?
```
var path = System.Web.HttpContext.Current.Server.MapPath("default.aspx");
```
Make sure you add a reference to the System.Web assembly. | You can get the base path by using the following code and append your needed path with that.
```
string path = System.AppDomain.CurrentDomain.BaseDirectory;
``` |
1,199,486 | How can i use the server.mappath method in a C# class library class ,which acts as my BusinessLayer for My ASP.NET WEbsite | 2009/07/29 | [
"https://Stackoverflow.com/questions/1199486",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40521/"
] | You should reference System.Web and call:
```
HttpContext.Current.Server.MapPath(...)
``` | Maybe you could abstract this as a dependency and create an IVirtualPathResolver. This way your service classes wouldn't be bound to System.Web and you could create another implementation if you wanted to reuse your logic in a different UI technology. |
1,199,486 | How can i use the server.mappath method in a C# class library class ,which acts as my BusinessLayer for My ASP.NET WEbsite | 2009/07/29 | [
"https://Stackoverflow.com/questions/1199486",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40521/"
] | By calling it?
```
var path = System.Web.HttpContext.Current.Server.MapPath("default.aspx");
```
Make sure you add a reference to the System.Web assembly. | Architecturally, System.web should not be referred in Business Logic Layer (BLL). Employ BLL into the solution structure to follow the separate of concern principle so refer System.Web is a bad practice. BLL should not load/run in Asp.net context. Because of the reason you should consider using of `System.AppDomain.Cur... |
1,199,486 | How can i use the server.mappath method in a C# class library class ,which acts as my BusinessLayer for My ASP.NET WEbsite | 2009/07/29 | [
"https://Stackoverflow.com/questions/1199486",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40521/"
] | Use this [System.Web.Hosting.HostingEnvironment.MapPath()](https://msdn.microsoft.com/en-us/library/system.web.hosting.hostingenvironment.mappath.aspx).
```
HostingEnvironment.MapPath("~/file")
```
Wonder why nobody mentioned it here. | ```
HostingEnvironment.MapPath
System.Web.Hosting.HostingEnvironment.MapPath(path);
``` |
1,199,486 | How can i use the server.mappath method in a C# class library class ,which acts as my BusinessLayer for My ASP.NET WEbsite | 2009/07/29 | [
"https://Stackoverflow.com/questions/1199486",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40521/"
] | By calling it?
```
var path = System.Web.HttpContext.Current.Server.MapPath("default.aspx");
```
Make sure you add a reference to the System.Web assembly. | You should reference System.Web and call:
```
HttpContext.Current.Server.MapPath(...)
``` |
1,199,486 | How can i use the server.mappath method in a C# class library class ,which acts as my BusinessLayer for My ASP.NET WEbsite | 2009/07/29 | [
"https://Stackoverflow.com/questions/1199486",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40521/"
] | By calling it?
```
var path = System.Web.HttpContext.Current.Server.MapPath("default.aspx");
```
Make sure you add a reference to the System.Web assembly. | Use this [System.Web.Hosting.HostingEnvironment.MapPath()](https://msdn.microsoft.com/en-us/library/system.web.hosting.hostingenvironment.mappath.aspx).
```
HostingEnvironment.MapPath("~/file")
```
Wonder why nobody mentioned it here. |
1,199,486 | How can i use the server.mappath method in a C# class library class ,which acts as my BusinessLayer for My ASP.NET WEbsite | 2009/07/29 | [
"https://Stackoverflow.com/questions/1199486",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40521/"
] | By calling it?
```
var path = System.Web.HttpContext.Current.Server.MapPath("default.aspx");
```
Make sure you add a reference to the System.Web assembly. | Maybe you could abstract this as a dependency and create an IVirtualPathResolver. This way your service classes wouldn't be bound to System.Web and you could create another implementation if you wanted to reuse your logic in a different UI technology. |
99,841 | >
> Slight specific staining with the antibody was observed in **isolated** peripheral blood lymphocytes.
>
>
>
Would this **isolated** always evoke the meaning "[happening or existing only once, separate](http://dictionary.cambridge.org/dictionary/english/isolated)", as in
>
> There were only a few **isolated... | 2016/08/06 | [
"https://ell.stackexchange.com/questions/99841",
"https://ell.stackexchange.com",
"https://ell.stackexchange.com/users/2127/"
] | I would interpret this sentence as meaning "isolated ... from tissue." However, I am not a physician or biologist and I can't say whether one would interpret it differently. What I can do is quote a number of publications that use that phrase:
>
> [*Apoptogenic effect of fentanyl on freshly isolated peripheral blood ... | >
> Actually, having just searched Google Books for [in isolated peripheral blood lymphocytes](https://www.google.com/search?tbm=bks&q=%22in+isolated+peripheral+blood+lymphocytes%22) it seems to me you might be dealing with a context-specific usage here. I think the default "natural" meaning would indeed be [a small n... |
37,739,324 | I have the following code where `Model.VerticalType` contains string. I want to compare it with an `Enum` but I get error:
Operator '==' cannot be applied to operands of type 'string' and
`DGS.DGSAPI.UI.BusinessModels.Enums.VerticalType.Voice`
```
@if (Model.VerticalType == DGS.DGSAPI.UI.BusinessModels.Enums.Vertica... | 2016/06/10 | [
"https://Stackoverflow.com/questions/37739324",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5788013/"
] | Call `.ToString()` on the enum value.
```
@if (Model.VerticalType == DGS.DGSAPI.UI.BusinessModels.Enums.VerticalType.Voice.ToString())
```
This will convert the enum to it's name, in this case `Voice`. | Try [`Enum.Parse`](https://msdn.microsoft.com/en-us/library/kxydatf9(v=vs.110).aspx) to convert from string to Enum value:
```
Enum.Parse(typeof(DGS.DGSAPI.UI.BusinessModels.Enums.VerticalType), Model.VerticalType, true) == DGS.DGSAPI.UI.BusinessModels.Enums.VerticalType.Voice
```
`true` means to ignore case while p... |
12,511,801 | I have two dictionaries as follows:
`D1={'a':1,'b':2,'c':3}`
and
`D2={'b':2,'c':3,'d':1}`
I want to merge these two dictionaries and the result should be as follows:
`D3={'a':1,'b':2,'c':3,'b':2,'c':3,'d':1}`
how can I achieve this in python? | 2012/09/20 | [
"https://Stackoverflow.com/questions/12511801",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1321663/"
] | You may want to try:
```
D3 = {}
D3.update(D1)
D3.update(D2)
```
Here, we're creating an empty dictionary `D3` first, then update it from the two other dictionaries.
Note that you need to be careful with the order of the updates: if `D2` shares some keys with `D1`, the code above will overwrite the corresponding en... | What are you asking is not possible, since you cannot have two different keys with the same value in a Python dictionary.
The closest answer to your question is:
`D3 = dict( D1.items() + D2.items() )`
Note: if you have different values for the same key, the ones from D2 will be the ones in D3.
Example:
`D1 = { ... |
12,511,801 | I have two dictionaries as follows:
`D1={'a':1,'b':2,'c':3}`
and
`D2={'b':2,'c':3,'d':1}`
I want to merge these two dictionaries and the result should be as follows:
`D3={'a':1,'b':2,'c':3,'b':2,'c':3,'d':1}`
how can I achieve this in python? | 2012/09/20 | [
"https://Stackoverflow.com/questions/12511801",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1321663/"
] | You may want to try:
```
D3 = {}
D3.update(D1)
D3.update(D2)
```
Here, we're creating an empty dictionary `D3` first, then update it from the two other dictionaries.
Note that you need to be careful with the order of the updates: if `D2` shares some keys with `D1`, the code above will overwrite the corresponding en... | Dictionaries by definition can't have duplicate keys, so "merging" dictionaries will actually give the following result (note the order is arbitrary):
```
{'a': 1, 'b': 2, 'c': 3, 'd': 1}
```
You can create a clone of one of the dictionaries and merge the entries from the other into it:
```
D3 = dict(D1)
D3.update(... |
12,511,801 | I have two dictionaries as follows:
`D1={'a':1,'b':2,'c':3}`
and
`D2={'b':2,'c':3,'d':1}`
I want to merge these two dictionaries and the result should be as follows:
`D3={'a':1,'b':2,'c':3,'b':2,'c':3,'d':1}`
how can I achieve this in python? | 2012/09/20 | [
"https://Stackoverflow.com/questions/12511801",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1321663/"
] | You may want to try:
```
D3 = {}
D3.update(D1)
D3.update(D2)
```
Here, we're creating an empty dictionary `D3` first, then update it from the two other dictionaries.
Note that you need to be careful with the order of the updates: if `D2` shares some keys with `D1`, the code above will overwrite the corresponding en... | ```
In [3]: D1={'a':1,'b':2,'c':3}
In [4]: D2={'b':2,'c':3,'d':1}
In [5]: D1.update(D2)
In [6]: D1
Out[6]: {'a': 1, 'b': 2, 'c': 3, 'd': 1}
```
**Update**
Alternative solutions
```
In [9]: D3=D1.copy()
In [10]: D3.update(D2)
In [11]: D3
Out[11]: {'a': 1, 'b': 2, 'c': 3, 'd': 1}
In [12]: D4=dict(D1, **D2)
```... |
12,511,801 | I have two dictionaries as follows:
`D1={'a':1,'b':2,'c':3}`
and
`D2={'b':2,'c':3,'d':1}`
I want to merge these two dictionaries and the result should be as follows:
`D3={'a':1,'b':2,'c':3,'b':2,'c':3,'d':1}`
how can I achieve this in python? | 2012/09/20 | [
"https://Stackoverflow.com/questions/12511801",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1321663/"
] | >
> I want to merge these two dictionaries and the result should be as
> follows:
>
>
> D3={'a':1,'b':2,'c':3,'b':2,'c':3,'d':1}
>
>
> how can I achieve this in python?
>
>
>
You can't. You can only have one value per key in a Python dict. What you can do is to have a list or a set as the value.
Here is an e... | You may want to try:
```
D3 = {}
D3.update(D1)
D3.update(D2)
```
Here, we're creating an empty dictionary `D3` first, then update it from the two other dictionaries.
Note that you need to be careful with the order of the updates: if `D2` shares some keys with `D1`, the code above will overwrite the corresponding en... |
12,511,801 | I have two dictionaries as follows:
`D1={'a':1,'b':2,'c':3}`
and
`D2={'b':2,'c':3,'d':1}`
I want to merge these two dictionaries and the result should be as follows:
`D3={'a':1,'b':2,'c':3,'b':2,'c':3,'d':1}`
how can I achieve this in python? | 2012/09/20 | [
"https://Stackoverflow.com/questions/12511801",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1321663/"
] | >
> I want to merge these two dictionaries and the result should be as
> follows:
>
>
> D3={'a':1,'b':2,'c':3,'b':2,'c':3,'d':1}
>
>
> how can I achieve this in python?
>
>
>
You can't. You can only have one value per key in a Python dict. What you can do is to have a list or a set as the value.
Here is an e... | What are you asking is not possible, since you cannot have two different keys with the same value in a Python dictionary.
The closest answer to your question is:
`D3 = dict( D1.items() + D2.items() )`
Note: if you have different values for the same key, the ones from D2 will be the ones in D3.
Example:
`D1 = { ... |
12,511,801 | I have two dictionaries as follows:
`D1={'a':1,'b':2,'c':3}`
and
`D2={'b':2,'c':3,'d':1}`
I want to merge these two dictionaries and the result should be as follows:
`D3={'a':1,'b':2,'c':3,'b':2,'c':3,'d':1}`
how can I achieve this in python? | 2012/09/20 | [
"https://Stackoverflow.com/questions/12511801",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1321663/"
] | >
> I want to merge these two dictionaries and the result should be as
> follows:
>
>
> D3={'a':1,'b':2,'c':3,'b':2,'c':3,'d':1}
>
>
> how can I achieve this in python?
>
>
>
You can't. You can only have one value per key in a Python dict. What you can do is to have a list or a set as the value.
Here is an e... | Dictionaries by definition can't have duplicate keys, so "merging" dictionaries will actually give the following result (note the order is arbitrary):
```
{'a': 1, 'b': 2, 'c': 3, 'd': 1}
```
You can create a clone of one of the dictionaries and merge the entries from the other into it:
```
D3 = dict(D1)
D3.update(... |
12,511,801 | I have two dictionaries as follows:
`D1={'a':1,'b':2,'c':3}`
and
`D2={'b':2,'c':3,'d':1}`
I want to merge these two dictionaries and the result should be as follows:
`D3={'a':1,'b':2,'c':3,'b':2,'c':3,'d':1}`
how can I achieve this in python? | 2012/09/20 | [
"https://Stackoverflow.com/questions/12511801",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1321663/"
] | >
> I want to merge these two dictionaries and the result should be as
> follows:
>
>
> D3={'a':1,'b':2,'c':3,'b':2,'c':3,'d':1}
>
>
> how can I achieve this in python?
>
>
>
You can't. You can only have one value per key in a Python dict. What you can do is to have a list or a set as the value.
Here is an e... | ```
In [3]: D1={'a':1,'b':2,'c':3}
In [4]: D2={'b':2,'c':3,'d':1}
In [5]: D1.update(D2)
In [6]: D1
Out[6]: {'a': 1, 'b': 2, 'c': 3, 'd': 1}
```
**Update**
Alternative solutions
```
In [9]: D3=D1.copy()
In [10]: D3.update(D2)
In [11]: D3
Out[11]: {'a': 1, 'b': 2, 'c': 3, 'd': 1}
In [12]: D4=dict(D1, **D2)
```... |
69,908,135 | I just tried building my old project in vs2019 to newer vs2022 but getting following error and unable to build it.
Can somebody suggest what can be done to resolve the issue?
```
Severity Code Description Project File Line Suppression State
Error The "ResolveManifestFiles" task failed unexpectedly.
... | 2021/11/10 | [
"https://Stackoverflow.com/questions/69908135",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1761822/"
] | Not sure why, but if you remove "Enable ClickOnce security settings" it'll work.
Regards | I did some research and finally I found the problematic code in my solution.
I have 198 Projects in my solution, in 197 of them is the line
[assembly: AssemblyCulture("")]
disabled: //[assembly: AssemblyCulture("")]
or the line does not exist at all
inside the Assembly.cs.
But in one of my (base) projects I found thi... |
72,363,010 | How can I add random numbers (for example from 1 to 100) into an array using Julia language? Also, the array already has to have a defined length (for example 30 numbers). | 2022/05/24 | [
"https://Stackoverflow.com/questions/72363010",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19053578/"
] | If your initial vector is `v`, you can do as follows:
```
v .+= rand(1:100,length(v))
```
* `rand(1:100,length(v))` will generate a random vector of integers between 1 and 100 and of length identical to `v`'s one (the `length(v)` part), you can read the [rand()](https://docs.julialang.org/en/v1/stdlib/Random/#Base.r... | the idiomatic way of doing this in one line is probably
```
julia> v = zeros(3)
julia> v .+= rand.((1:100, ))
3-element Vector{Float64}:
35.0
27.0
89.0
julia> @benchmark x .+= rand.((1:100, )) setup=(x = zeros(100))
BenchmarkTools.Trial: 10000 samples with 241 evaluations.
Range (min … max): 313.544 ns … 609.58... |
80,633 | What is the best textbook (or book) for studying Etale cohomology? | 2011/11/10 | [
"https://mathoverflow.net/questions/80633",
"https://mathoverflow.net",
"https://mathoverflow.net/users/-1/"
] | My first exposure to étale cohomology was through Bjorn Poonen's notes [Rational Points on Varieties](http://www-math.mit.edu/~poonen/papers/Qpoints.pdf), Ch. 6. Not all of the big theorems are mentioned there, but it provides a great introduction to those who have had no previous dealings with the subject. | In the web page of [Uwe Jannsen](http://www.mathematik.uni-regensburg.de/Jannsen/) there are great lecture notes of (étale cohomology) courses. In particular:
Sommersemester 2015: [Étale Kohomologie](http://www.mathematik.uni-regensburg.de/Jannsen/home/UebungSS15/seminar-Dateien/Etale-gesamt.pdf) ([Eng](http://www.mat... |
80,633 | What is the best textbook (or book) for studying Etale cohomology? | 2011/11/10 | [
"https://mathoverflow.net/questions/80633",
"https://mathoverflow.net",
"https://mathoverflow.net/users/-1/"
] | I would highly recommend [these notes](http://www.math.purdue.edu/~dvb/preprints/etale.pdf) by Donu Arapura for a good overview of etale cohomology, as well as [this short paper](http://www.tomsutherland.postgrad.shef.ac.uk/etale.pdf) by Tom Sutherland for an even quicker overview. | In the web page of [Uwe Jannsen](http://www.mathematik.uni-regensburg.de/Jannsen/) there are great lecture notes of (étale cohomology) courses. In particular:
Sommersemester 2015: [Étale Kohomologie](http://www.mathematik.uni-regensburg.de/Jannsen/home/UebungSS15/seminar-Dateien/Etale-gesamt.pdf) ([Eng](http://www.mat... |
80,633 | What is the best textbook (or book) for studying Etale cohomology? | 2011/11/10 | [
"https://mathoverflow.net/questions/80633",
"https://mathoverflow.net",
"https://mathoverflow.net/users/-1/"
] | Not a textbook, but a free PDF by J.S. Milne, <http://www.jmilne.org/math/CourseNotes/LEC.pdf>, pretty good IMHO. | My first exposure to étale cohomology was through Bjorn Poonen's notes [Rational Points on Varieties](http://www-math.mit.edu/~poonen/papers/Qpoints.pdf), Ch. 6. Not all of the big theorems are mentioned there, but it provides a great introduction to those who have had no previous dealings with the subject. |
80,633 | What is the best textbook (or book) for studying Etale cohomology? | 2011/11/10 | [
"https://mathoverflow.net/questions/80633",
"https://mathoverflow.net",
"https://mathoverflow.net/users/-1/"
] | Not a textbook, but a free PDF by J.S. Milne, <http://www.jmilne.org/math/CourseNotes/LEC.pdf>, pretty good IMHO. | In the web page of [Uwe Jannsen](http://www.mathematik.uni-regensburg.de/Jannsen/) there are great lecture notes of (étale cohomology) courses. In particular:
Sommersemester 2015: [Étale Kohomologie](http://www.mathematik.uni-regensburg.de/Jannsen/home/UebungSS15/seminar-Dateien/Etale-gesamt.pdf) ([Eng](http://www.mat... |
80,633 | What is the best textbook (or book) for studying Etale cohomology? | 2011/11/10 | [
"https://mathoverflow.net/questions/80633",
"https://mathoverflow.net",
"https://mathoverflow.net/users/-1/"
] | Lei Fu, Étale Cohomology Theory is also nice and has not been mentioned yet.
And the lecture notes of Alexander Schmidt: <http://theorics.yichuanshen.de/etale-kohomologie/> (unfortunately in German) | Here are some extra references:
* [Amazeen, Étale and Pro-Étale Fundamental Groups](http://page.mi.fu-berlin.de/lei/finalversion%20(1).pdf);
* [Belmans, Grothendieck Topologies and Étale Cohomology](https://pbelmans.ncag.info/notes/etale-cohomology.pdf);
* [Bergström--Rydh, Étale Cohomology Spring 2016](https://people... |
80,633 | What is the best textbook (or book) for studying Etale cohomology? | 2011/11/10 | [
"https://mathoverflow.net/questions/80633",
"https://mathoverflow.net",
"https://mathoverflow.net/users/-1/"
] | I'll complement the list of well known books on the subject by some freely available documents, which I find user-friendly.
[Here](http://stacks.math.columbia.edu/download/etale-cohomology.pdf) are great lecture notes , from a course that de Jong (of Stacks Project fame) gave in 2009.
Edgar José Martins Dias Costa'... | In the web page of [Uwe Jannsen](http://www.mathematik.uni-regensburg.de/Jannsen/) there are great lecture notes of (étale cohomology) courses. In particular:
Sommersemester 2015: [Étale Kohomologie](http://www.mathematik.uni-regensburg.de/Jannsen/home/UebungSS15/seminar-Dateien/Etale-gesamt.pdf) ([Eng](http://www.mat... |
80,633 | What is the best textbook (or book) for studying Etale cohomology? | 2011/11/10 | [
"https://mathoverflow.net/questions/80633",
"https://mathoverflow.net",
"https://mathoverflow.net/users/-1/"
] | Not a textbook, but a free PDF by J.S. Milne, <http://www.jmilne.org/math/CourseNotes/LEC.pdf>, pretty good IMHO. | Here are some extra references:
* [Amazeen, Étale and Pro-Étale Fundamental Groups](http://page.mi.fu-berlin.de/lei/finalversion%20(1).pdf);
* [Belmans, Grothendieck Topologies and Étale Cohomology](https://pbelmans.ncag.info/notes/etale-cohomology.pdf);
* [Bergström--Rydh, Étale Cohomology Spring 2016](https://people... |
80,633 | What is the best textbook (or book) for studying Etale cohomology? | 2011/11/10 | [
"https://mathoverflow.net/questions/80633",
"https://mathoverflow.net",
"https://mathoverflow.net/users/-1/"
] | I'll complement the list of well known books on the subject by some freely available documents, which I find user-friendly.
[Here](http://stacks.math.columbia.edu/download/etale-cohomology.pdf) are great lecture notes , from a course that de Jong (of Stacks Project fame) gave in 2009.
Edgar José Martins Dias Costa'... | Here are some extra references:
* [Amazeen, Étale and Pro-Étale Fundamental Groups](http://page.mi.fu-berlin.de/lei/finalversion%20(1).pdf);
* [Belmans, Grothendieck Topologies and Étale Cohomology](https://pbelmans.ncag.info/notes/etale-cohomology.pdf);
* [Bergström--Rydh, Étale Cohomology Spring 2016](https://people... |
80,633 | What is the best textbook (or book) for studying Etale cohomology? | 2011/11/10 | [
"https://mathoverflow.net/questions/80633",
"https://mathoverflow.net",
"https://mathoverflow.net/users/-1/"
] | I'll complement the list of well known books on the subject by some freely available documents, which I find user-friendly.
[Here](http://stacks.math.columbia.edu/download/etale-cohomology.pdf) are great lecture notes , from a course that de Jong (of Stacks Project fame) gave in 2009.
Edgar José Martins Dias Costa'... | My first exposure to étale cohomology was through Bjorn Poonen's notes [Rational Points on Varieties](http://www-math.mit.edu/~poonen/papers/Qpoints.pdf), Ch. 6. Not all of the big theorems are mentioned there, but it provides a great introduction to those who have had no previous dealings with the subject. |
80,633 | What is the best textbook (or book) for studying Etale cohomology? | 2011/11/10 | [
"https://mathoverflow.net/questions/80633",
"https://mathoverflow.net",
"https://mathoverflow.net/users/-1/"
] | I'll complement the list of well known books on the subject by some freely available documents, which I find user-friendly.
[Here](http://stacks.math.columbia.edu/download/etale-cohomology.pdf) are great lecture notes , from a course that de Jong (of Stacks Project fame) gave in 2009.
Edgar José Martins Dias Costa'... | Lei Fu, Étale Cohomology Theory is also nice and has not been mentioned yet.
And the lecture notes of Alexander Schmidt: <http://theorics.yichuanshen.de/etale-kohomologie/> (unfortunately in German) |
58,595 | >
> Es ist für beide fast so, als **seien** sie niemals getrennt gewesen.
>
>
>
Warum wird hier der Konjunktiv 1 verwendet?
Es handelt sich um keine indirekte Rede wo der Konjunktiv 1 hauptsächlich verwendet wird.
Meines Wissens nach sollte hier Konjunktiv 2 verwendet werden, also:
>
> Es ist für beide fast so, ... | 2020/05/14 | [
"https://german.stackexchange.com/questions/58595",
"https://german.stackexchange.com",
"https://german.stackexchange.com/users/40962/"
] | Von der Konsistenz her gesehen hast Du recht und es müsste der Konjunktiv 2 verwendet werden. Da sie tatsächlich getrennt waren, beschreibt der Nebensatz eine irreale Situation, wofür normalerweise der Konjunktiv 2 verwendet wird. Es liegt keine indirekte Rede (oder ähnliches) vor, die den Konjunktiv 1 verlangen würde.... | Nach meinem persönlichen Sprachempfinden ist der Satz schlicht falsch, und er müsste korrekt lauten: "... als **wären** sie ..." |
57,032,235 | I'm trying to filter a Dataframe based on the length of the string in the index. In the following example I'm trying to filter out everything but `Foo Bar`:
```
index Value
Foo 1
Foo Bar 2
Bar 3
In: df[df.index.apply(lambda x: len(x.split()) > 1]
Out: AttributeError: 'Index' object has no attribute 'ap... | 2019/07/15 | [
"https://Stackoverflow.com/questions/57032235",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7542939/"
] | We do not need `apply` here
```
df[df.index.str.count(' ')==1]
```
To fix your code `map`
```
df[df.index.map(lambda x: len(x.split()) > 1)]
``` | I'm having success with the following:
```
>>> df[df.index.str.split().str.len() > 1]
Value
Foo Bar 2
```
Basically split the string and then use len() to count the number of occurrences. This has the benefit of allowing you to split however you want and filter however you want, without using apply. |
6,904,065 | this is from selenium grid. How to write java/C# code to make parallel execution.
Is this enough?
```
ISelenium selenium1 = new DefaultSelenium("localhost", 5555, "*iehta", "http://localhost/");
ISelenium selenium2 = new DefaultSelenium("localhost", 5556, "*iehta", "http://localhost/");
ISelenium selenium4 = new Def... | 2011/08/01 | [
"https://Stackoverflow.com/questions/6904065",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/267679/"
] | Why is there parameter
```
<arg value="-parallel"/>?
```
This is for testng. This would run all the methods/classes/tests in parallel rather than sequentially. You can see more about this property [here](http://testng.org/doc/documentation-main.html#parallel-running). You have registered 3 RCs and ideally you should... | What you are doing will work but will be slow and almost as bad as doing it in a truly serial way. This is because most of the calls in Selenium will block until completion. To really take advantage of the parallelisation offered by the Grid, you should multi-thread your code. Have one thread for each Selenium object. |
6,904,065 | this is from selenium grid. How to write java/C# code to make parallel execution.
Is this enough?
```
ISelenium selenium1 = new DefaultSelenium("localhost", 5555, "*iehta", "http://localhost/");
ISelenium selenium2 = new DefaultSelenium("localhost", 5556, "*iehta", "http://localhost/");
ISelenium selenium4 = new Def... | 2011/08/01 | [
"https://Stackoverflow.com/questions/6904065",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/267679/"
] | Why is there parameter
```
<arg value="-parallel"/>?
```
This is for testng. This would run all the methods/classes/tests in parallel rather than sequentially. You can see more about this property [here](http://testng.org/doc/documentation-main.html#parallel-running). You have registered 3 RCs and ideally you should... | You don't need to multi-thread your test code to run selenium instances in parallel (although you could if you really wanted to). A framework that handles thread forking can do it for you, such as TestNG, Maven Surefire, or Gradle. For example, my project proves this by demonstrating multiple instances running through ... |
513,765 | The comments section of [this post](http://www.ehow.com/how_5157582_calculate-pi.html) says that $\pi$ does repeat itself if done under base 11... and that it somehow defines the universe.
* Can anyone expand on the idea that irrational numbers may repeat if a different base is used?
* Does $\pi$ in fact repeat under ... | 2013/10/03 | [
"https://math.stackexchange.com/questions/513765",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/4420/"
] | The comment is mistaken.
A number is rational if and only if its expansion *in any base* is eventually recurring (possibly with a recurring string of $0$s). Thus $\pi$ has no recurring expansion in any base.
---
**Why?** Well suppose it did. Then
$$\pi = n . d\_1d\_2 \cdots d\_k \overline{r\_1 r\_2 \cdots r\_{\ell}}... | **A irrational number is a number that cannot be expressed as an integer over another integer.**
That is the *definition*, and it does not say anything at all about repeating or terminating decimals. It is a **theorem, not a definition** that when expanded in a base-$b$ numeral system, where $b\ge 2$, it does not term... |
513,765 | The comments section of [this post](http://www.ehow.com/how_5157582_calculate-pi.html) says that $\pi$ does repeat itself if done under base 11... and that it somehow defines the universe.
* Can anyone expand on the idea that irrational numbers may repeat if a different base is used?
* Does $\pi$ in fact repeat under ... | 2013/10/03 | [
"https://math.stackexchange.com/questions/513765",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/4420/"
] | The comment is mistaken.
A number is rational if and only if its expansion *in any base* is eventually recurring (possibly with a recurring string of $0$s). Thus $\pi$ has no recurring expansion in any base.
---
**Why?** Well suppose it did. Then
$$\pi = n . d\_1d\_2 \cdots d\_k \overline{r\_1 r\_2 \cdots r\_{\ell}}... | >
> **Zach Lynch**
>
> actually, pi repeats if you use base 11 arithmetic and use a computer to search for patterns. It describes the universe as we know it.
>
>
>
*What* computer can tell whether a pattern will repeat? This means not knowing the basics of mathematics. The second statement is simply ridiculous... |
513,765 | The comments section of [this post](http://www.ehow.com/how_5157582_calculate-pi.html) says that $\pi$ does repeat itself if done under base 11... and that it somehow defines the universe.
* Can anyone expand on the idea that irrational numbers may repeat if a different base is used?
* Does $\pi$ in fact repeat under ... | 2013/10/03 | [
"https://math.stackexchange.com/questions/513765",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/4420/"
] | >
> **Zach Lynch**
>
> actually, pi repeats if you use base 11 arithmetic and use a computer to search for patterns. It describes the universe as we know it.
>
>
>
*What* computer can tell whether a pattern will repeat? This means not knowing the basics of mathematics. The second statement is simply ridiculous... | **A irrational number is a number that cannot be expressed as an integer over another integer.**
That is the *definition*, and it does not say anything at all about repeating or terminating decimals. It is a **theorem, not a definition** that when expanded in a base-$b$ numeral system, where $b\ge 2$, it does not term... |
43,185,964 | Getting this error why trying to deploy the war in weblogic
>
> Caused By: weblogic.management.DeploymentException: [HTTP:101170]The
> servlet Web Rest Services is referenced in servlet-mapping /myrest/\*
> but not defined in web.xml.
> at weblogic.servlet.internal.WebAppServletContext.verifyServletMappings(WebAp... | 2017/04/03 | [
"https://Stackoverflow.com/questions/43185964",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1847484/"
] | >
> `<servlet-name --> Jersey Web Application != Web Rest Services`
>
>
>
The `<servlet-name>` in the `<servlet-mapping>` should correspond to a `<servlet-name>` in a `<servlet>` definition. Hence the error
>
> The servlet Web Rest Services is referenced in servlet-mapping /myrest/\* but not defined in web.xml
>... | Try this configuration for your web.xml file:
```
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_... |
18,630,436 | I need to read permanent (burned-in) MAC address of network adapter. Since MAC address can be easily spoofed, I need to read the real one which is written on EEPROM. I need to do it using C++ on Linux.
I tried using [ethtool](http://linux.die.net/man/8/ethtool) which is quite good and works fine. However on some syste... | 2013/09/05 | [
"https://Stackoverflow.com/questions/18630436",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1338432/"
] | If you haven't find the answer yet, you might want to check this out.
<https://serverfault.com/questions/316976/can-i-get-the-original-mac-address-after-it-has-been-changed> | Take a look at a couple of things.
1. Look at packets on the wire (using a sniffer) emanating from this NIC and see the MAC address being used.
2. Look at the output of "ifconfig -a eth0". If the MAC address is the same as on the wire, then you can get that MAC address using the [mechanism that ifconfig uses](http://s... |
6,756 | It seems pretty normal to see screenshots of MS Word, steps for "this is how you generate a template". I don't think Microsoft would object.
But I'm not sure about reprinting images from in-game scenes for specific games, like Diablo II. Do you need to obtain permission to include a screenshot of a game in your book? | 2012/12/06 | [
"https://writers.stackexchange.com/questions/6756",
"https://writers.stackexchange.com",
"https://writers.stackexchange.com/users/389/"
] | There are four factors to determining Fair Use of copyrighted material that must be weighed in the balance:
* Purpose and character of use...better if not for profit; better if transforming in some way
* The nature of the work...factual is better, creative works less so
* The amount and substance of the work...less is... | There is a legal consideration concerning using part of one copyright work in another. The rules around it involve the quantity of material copied and the purpose for which it used.
However in your case there may be an over-riding consideration. If *Blizzard Entertainment* took exception to your use of material from *... |
6,756 | It seems pretty normal to see screenshots of MS Word, steps for "this is how you generate a template". I don't think Microsoft would object.
But I'm not sure about reprinting images from in-game scenes for specific games, like Diablo II. Do you need to obtain permission to include a screenshot of a game in your book? | 2012/12/06 | [
"https://writers.stackexchange.com/questions/6756",
"https://writers.stackexchange.com",
"https://writers.stackexchange.com/users/389/"
] | There is a legal consideration concerning using part of one copyright work in another. The rules around it involve the quantity of material copied and the purpose for which it used.
However in your case there may be an over-riding consideration. If *Blizzard Entertainment* took exception to your use of material from *... | The copyright information included with the game itself should tell you the answer to this. They will set out the parameters of what you can and can't do.
My hunch would be that a specific screenshot of a game in action, created by yourself, would be considered 'an original creative work' and would therefore not be re... |
6,756 | It seems pretty normal to see screenshots of MS Word, steps for "this is how you generate a template". I don't think Microsoft would object.
But I'm not sure about reprinting images from in-game scenes for specific games, like Diablo II. Do you need to obtain permission to include a screenshot of a game in your book? | 2012/12/06 | [
"https://writers.stackexchange.com/questions/6756",
"https://writers.stackexchange.com",
"https://writers.stackexchange.com/users/389/"
] | There is a legal consideration concerning using part of one copyright work in another. The rules around it involve the quantity of material copied and the purpose for which it used.
However in your case there may be an over-riding consideration. If *Blizzard Entertainment* took exception to your use of material from *... | Depends highly on the use.
If you were for example to make a story book and just use diablo screenshots as illustrations, that would (probably) not be considered fair use even if it is transformative. Neither would it be if you would just publish an outright art book by using the game assets as they are.
If you were ... |
6,756 | It seems pretty normal to see screenshots of MS Word, steps for "this is how you generate a template". I don't think Microsoft would object.
But I'm not sure about reprinting images from in-game scenes for specific games, like Diablo II. Do you need to obtain permission to include a screenshot of a game in your book? | 2012/12/06 | [
"https://writers.stackexchange.com/questions/6756",
"https://writers.stackexchange.com",
"https://writers.stackexchange.com/users/389/"
] | There are four factors to determining Fair Use of copyrighted material that must be weighed in the balance:
* Purpose and character of use...better if not for profit; better if transforming in some way
* The nature of the work...factual is better, creative works less so
* The amount and substance of the work...less is... | The copyright information included with the game itself should tell you the answer to this. They will set out the parameters of what you can and can't do.
My hunch would be that a specific screenshot of a game in action, created by yourself, would be considered 'an original creative work' and would therefore not be re... |
6,756 | It seems pretty normal to see screenshots of MS Word, steps for "this is how you generate a template". I don't think Microsoft would object.
But I'm not sure about reprinting images from in-game scenes for specific games, like Diablo II. Do you need to obtain permission to include a screenshot of a game in your book? | 2012/12/06 | [
"https://writers.stackexchange.com/questions/6756",
"https://writers.stackexchange.com",
"https://writers.stackexchange.com/users/389/"
] | There are four factors to determining Fair Use of copyrighted material that must be weighed in the balance:
* Purpose and character of use...better if not for profit; better if transforming in some way
* The nature of the work...factual is better, creative works less so
* The amount and substance of the work...less is... | Depends highly on the use.
If you were for example to make a story book and just use diablo screenshots as illustrations, that would (probably) not be considered fair use even if it is transformative. Neither would it be if you would just publish an outright art book by using the game assets as they are.
If you were ... |
6,756 | It seems pretty normal to see screenshots of MS Word, steps for "this is how you generate a template". I don't think Microsoft would object.
But I'm not sure about reprinting images from in-game scenes for specific games, like Diablo II. Do you need to obtain permission to include a screenshot of a game in your book? | 2012/12/06 | [
"https://writers.stackexchange.com/questions/6756",
"https://writers.stackexchange.com",
"https://writers.stackexchange.com/users/389/"
] | Depends highly on the use.
If you were for example to make a story book and just use diablo screenshots as illustrations, that would (probably) not be considered fair use even if it is transformative. Neither would it be if you would just publish an outright art book by using the game assets as they are.
If you were ... | The copyright information included with the game itself should tell you the answer to this. They will set out the parameters of what you can and can't do.
My hunch would be that a specific screenshot of a game in action, created by yourself, would be considered 'an original creative work' and would therefore not be re... |
7,615,807 | After renaming my heroku app from the heroku website, whenever I cd to its directory in a terminal and run any heroku command, I get `App not found`. Does anybody know of a way to remedy this? | 2011/09/30 | [
"https://Stackoverflow.com/questions/7615807",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/454761/"
] | ```
git remote rm heroku
heroku git:remote -a newname
``` | There is another way, you can fix it by renaming the app to the original name via web.
To find out the old name use heroku command line:
```
> heroku rename newname
```
which will spit out the old name. Use the old name to rename the app via web. You can check if renaming success by running
```
> heroku info
``... |
7,615,807 | After renaming my heroku app from the heroku website, whenever I cd to its directory in a terminal and run any heroku command, I get `App not found`. Does anybody know of a way to remedy this? | 2011/09/30 | [
"https://Stackoverflow.com/questions/7615807",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/454761/"
] | Try to update the git remote for the app:
```
git remote rm heroku
git remote add heroku git@heroku.com:yourappname.git
``` | ```
git remote rm heroku
heroku git:remote -a newname
``` |
7,615,807 | After renaming my heroku app from the heroku website, whenever I cd to its directory in a terminal and run any heroku command, I get `App not found`. Does anybody know of a way to remedy this? | 2011/09/30 | [
"https://Stackoverflow.com/questions/7615807",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/454761/"
] | The Answer by James Ward is also correct, alternatively try doing this:
1). open a terminal
2). Go to your\_app\_directory/.git/config
3). Once you open the config file then edit as follows:
Change
```
url = git@heroku.com:old_app_name.git
```
to
```
url = git@heroku.com:new_app_name.git
```
Obviously substit... | James Ward's solution didn't work for me. I had to enter my git url in a different format:
```
git remote rm heroku
git remote add heroku https://git.heroku.com/appname.git
``` |
7,615,807 | After renaming my heroku app from the heroku website, whenever I cd to its directory in a terminal and run any heroku command, I get `App not found`. Does anybody know of a way to remedy this? | 2011/09/30 | [
"https://Stackoverflow.com/questions/7615807",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/454761/"
] | Try to update the git remote for the app:
```
git remote rm heroku
git remote add heroku git@heroku.com:yourappname.git
``` | James Ward's solution didn't work for me. I had to enter my git url in a different format:
```
git remote rm heroku
git remote add heroku https://git.heroku.com/appname.git
``` |
7,615,807 | After renaming my heroku app from the heroku website, whenever I cd to its directory in a terminal and run any heroku command, I get `App not found`. Does anybody know of a way to remedy this? | 2011/09/30 | [
"https://Stackoverflow.com/questions/7615807",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/454761/"
] | ```
git remote rm heroku
heroku git:remote -a newname
``` | From [the Heroku docs](https://devcenter.heroku.com/articles/renaming-apps#updating-git-remotes)...
>
> If you rename from the website ... [your app] will need to be updated manually:
>
>
>
```
git remote rm heroku
heroku git:remote -a newname
``` |
7,615,807 | After renaming my heroku app from the heroku website, whenever I cd to its directory in a terminal and run any heroku command, I get `App not found`. Does anybody know of a way to remedy this? | 2011/09/30 | [
"https://Stackoverflow.com/questions/7615807",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/454761/"
] | From [the Heroku docs](https://devcenter.heroku.com/articles/renaming-apps#updating-git-remotes)...
>
> If you rename from the website ... [your app] will need to be updated manually:
>
>
>
```
git remote rm heroku
heroku git:remote -a newname
``` | James Ward's solution didn't work for me. I had to enter my git url in a different format:
```
git remote rm heroku
git remote add heroku https://git.heroku.com/appname.git
``` |
7,615,807 | After renaming my heroku app from the heroku website, whenever I cd to its directory in a terminal and run any heroku command, I get `App not found`. Does anybody know of a way to remedy this? | 2011/09/30 | [
"https://Stackoverflow.com/questions/7615807",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/454761/"
] | The Answer by James Ward is also correct, alternatively try doing this:
1). open a terminal
2). Go to your\_app\_directory/.git/config
3). Once you open the config file then edit as follows:
Change
```
url = git@heroku.com:old_app_name.git
```
to
```
url = git@heroku.com:new_app_name.git
```
Obviously substit... | ```
git remote rm heroku
heroku git:remote -a newname
``` |
7,615,807 | After renaming my heroku app from the heroku website, whenever I cd to its directory in a terminal and run any heroku command, I get `App not found`. Does anybody know of a way to remedy this? | 2011/09/30 | [
"https://Stackoverflow.com/questions/7615807",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/454761/"
] | The Answer by James Ward is also correct, alternatively try doing this:
1). open a terminal
2). Go to your\_app\_directory/.git/config
3). Once you open the config file then edit as follows:
Change
```
url = git@heroku.com:old_app_name.git
```
to
```
url = git@heroku.com:new_app_name.git
```
Obviously substit... | There is another way, you can fix it by renaming the app to the original name via web.
To find out the old name use heroku command line:
```
> heroku rename newname
```
which will spit out the old name. Use the old name to rename the app via web. You can check if renaming success by running
```
> heroku info
``... |
7,615,807 | After renaming my heroku app from the heroku website, whenever I cd to its directory in a terminal and run any heroku command, I get `App not found`. Does anybody know of a way to remedy this? | 2011/09/30 | [
"https://Stackoverflow.com/questions/7615807",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/454761/"
] | There is another way, you can fix it by renaming the app to the original name via web.
To find out the old name use heroku command line:
```
> heroku rename newname
```
which will spit out the old name. Use the old name to rename the app via web. You can check if renaming success by running
```
> heroku info
``... | James Ward's solution didn't work for me. I had to enter my git url in a different format:
```
git remote rm heroku
git remote add heroku https://git.heroku.com/appname.git
``` |
7,615,807 | After renaming my heroku app from the heroku website, whenever I cd to its directory in a terminal and run any heroku command, I get `App not found`. Does anybody know of a way to remedy this? | 2011/09/30 | [
"https://Stackoverflow.com/questions/7615807",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/454761/"
] | ```
git remote rm heroku
heroku git:remote -a newname
``` | James Ward's solution didn't work for me. I had to enter my git url in a different format:
```
git remote rm heroku
git remote add heroku https://git.heroku.com/appname.git
``` |
1,746,676 | I am creating a classifieds website.
Im storing all ads in mysql database, in different tables.
Is it possible to find these ads somehow, from googles search engine?
Is it possible to create meta information about each ad so that google finds them?
How does major companies do this?
I have thought about auto-genera... | 2009/11/17 | [
"https://Stackoverflow.com/questions/1746676",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | Google doesn't find database records. Google finds web pages. If you want your classifieds to be found then they'll need to be on a Web page of some kind. You can help this process by giving Google a site map/index of all your classifieds.
I suggest you take a look at [Google Basics](http://www.google.com/support/webm... | How would you normally access these classifieds? You're not just keeping them locked up in the database, are you?
Google sees your website like any other visitor would see your website. If you have a normal database-driven site, there's some unique URL for each classified where it it displayed. If there's a link to it... |
1,746,676 | I am creating a classifieds website.
Im storing all ads in mysql database, in different tables.
Is it possible to find these ads somehow, from googles search engine?
Is it possible to create meta information about each ad so that google finds them?
How does major companies do this?
I have thought about auto-genera... | 2009/11/17 | [
"https://Stackoverflow.com/questions/1746676",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | How would you normally access these classifieds? You're not just keeping them locked up in the database, are you?
Google sees your website like any other visitor would see your website. If you have a normal database-driven site, there's some unique URL for each classified where it it displayed. If there's a link to it... | Google can find you no matter *where* you try to hide. Even if you can somehow fit yourself into a mysql table. Because they're Google. :-D
Seriously, though, they use a bot to periodically spider your site so you mostly just need to make the data in your database available as web pages on your site, and make your sit... |
1,746,676 | I am creating a classifieds website.
Im storing all ads in mysql database, in different tables.
Is it possible to find these ads somehow, from googles search engine?
Is it possible to create meta information about each ad so that google finds them?
How does major companies do this?
I have thought about auto-genera... | 2009/11/17 | [
"https://Stackoverflow.com/questions/1746676",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | How would you normally access these classifieds? You're not just keeping them locked up in the database, are you?
Google sees your website like any other visitor would see your website. If you have a normal database-driven site, there's some unique URL for each classified where it it displayed. If there's a link to it... | First Create a PHP file that pulls the index plus human readable reference for all records.
That is your main page broken out into categories (like in the case of Craigslist.com - by Country and State).
Then each category link feeds back to the php script the selected value regardless of level(s) finally reaching t... |
1,746,676 | I am creating a classifieds website.
Im storing all ads in mysql database, in different tables.
Is it possible to find these ads somehow, from googles search engine?
Is it possible to create meta information about each ad so that google finds them?
How does major companies do this?
I have thought about auto-genera... | 2009/11/17 | [
"https://Stackoverflow.com/questions/1746676",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | Google doesn't find database records. Google finds web pages. If you want your classifieds to be found then they'll need to be on a Web page of some kind. You can help this process by giving Google a site map/index of all your classifieds.
I suggest you take a look at [Google Basics](http://www.google.com/support/webm... | If you want Google to index your site, you need to put all your pages on the web and link between them.
You do not have to auto-generate a static HTML page for everything, all pages can be dynamically created (JSP, ASP, PHP, what have you), but they need to be accessible for a web crawler. |
1,746,676 | I am creating a classifieds website.
Im storing all ads in mysql database, in different tables.
Is it possible to find these ads somehow, from googles search engine?
Is it possible to create meta information about each ad so that google finds them?
How does major companies do this?
I have thought about auto-genera... | 2009/11/17 | [
"https://Stackoverflow.com/questions/1746676",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | If you want Google to index your site, you need to put all your pages on the web and link between them.
You do not have to auto-generate a static HTML page for everything, all pages can be dynamically created (JSP, ASP, PHP, what have you), but they need to be accessible for a web crawler. | Google can find you no matter *where* you try to hide. Even if you can somehow fit yourself into a mysql table. Because they're Google. :-D
Seriously, though, they use a bot to periodically spider your site so you mostly just need to make the data in your database available as web pages on your site, and make your sit... |
1,746,676 | I am creating a classifieds website.
Im storing all ads in mysql database, in different tables.
Is it possible to find these ads somehow, from googles search engine?
Is it possible to create meta information about each ad so that google finds them?
How does major companies do this?
I have thought about auto-genera... | 2009/11/17 | [
"https://Stackoverflow.com/questions/1746676",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | If you want Google to index your site, you need to put all your pages on the web and link between them.
You do not have to auto-generate a static HTML page for everything, all pages can be dynamically created (JSP, ASP, PHP, what have you), but they need to be accessible for a web crawler. | First Create a PHP file that pulls the index plus human readable reference for all records.
That is your main page broken out into categories (like in the case of Craigslist.com - by Country and State).
Then each category link feeds back to the php script the selected value regardless of level(s) finally reaching t... |
1,746,676 | I am creating a classifieds website.
Im storing all ads in mysql database, in different tables.
Is it possible to find these ads somehow, from googles search engine?
Is it possible to create meta information about each ad so that google finds them?
How does major companies do this?
I have thought about auto-genera... | 2009/11/17 | [
"https://Stackoverflow.com/questions/1746676",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | Google doesn't find database records. Google finds web pages. If you want your classifieds to be found then they'll need to be on a Web page of some kind. You can help this process by giving Google a site map/index of all your classifieds.
I suggest you take a look at [Google Basics](http://www.google.com/support/webm... | Google can find you no matter *where* you try to hide. Even if you can somehow fit yourself into a mysql table. Because they're Google. :-D
Seriously, though, they use a bot to periodically spider your site so you mostly just need to make the data in your database available as web pages on your site, and make your sit... |
1,746,676 | I am creating a classifieds website.
Im storing all ads in mysql database, in different tables.
Is it possible to find these ads somehow, from googles search engine?
Is it possible to create meta information about each ad so that google finds them?
How does major companies do this?
I have thought about auto-genera... | 2009/11/17 | [
"https://Stackoverflow.com/questions/1746676",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | Google doesn't find database records. Google finds web pages. If you want your classifieds to be found then they'll need to be on a Web page of some kind. You can help this process by giving Google a site map/index of all your classifieds.
I suggest you take a look at [Google Basics](http://www.google.com/support/webm... | First Create a PHP file that pulls the index plus human readable reference for all records.
That is your main page broken out into categories (like in the case of Craigslist.com - by Country and State).
Then each category link feeds back to the php script the selected value regardless of level(s) finally reaching t... |
1,746,676 | I am creating a classifieds website.
Im storing all ads in mysql database, in different tables.
Is it possible to find these ads somehow, from googles search engine?
Is it possible to create meta information about each ad so that google finds them?
How does major companies do this?
I have thought about auto-genera... | 2009/11/17 | [
"https://Stackoverflow.com/questions/1746676",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | Google can find you no matter *where* you try to hide. Even if you can somehow fit yourself into a mysql table. Because they're Google. :-D
Seriously, though, they use a bot to periodically spider your site so you mostly just need to make the data in your database available as web pages on your site, and make your sit... | First Create a PHP file that pulls the index plus human readable reference for all records.
That is your main page broken out into categories (like in the case of Craigslist.com - by Country and State).
Then each category link feeds back to the php script the selected value regardless of level(s) finally reaching t... |
213,778 | I want to perform a statistical test: Wilcoxon Signed Rank Test to test if there is a significant difference between them, but I don't know if the two samples are dependent or not?
Context: I have a dataset that contains a set of elements, I want to predict the dependent variable, I use two models A and B to perform th... | 2016/05/21 | [
"https://stats.stackexchange.com/questions/213778",
"https://stats.stackexchange.com",
"https://stats.stackexchange.com/users/116392/"
] | The answer is *dependent*. Or, to be a bit more precise: paired.
The thing to keep in mind here is that you only have one sample, and have two measurements for each observations in that sample.
If, instead, you had two distinct samples (e.g., one representing the first 100 cases in your data set and the other the se... | Two or more samples are said to be dependent, in short, if one sample is dependent or is influenced by another. Suppose, one wants to study earning difference between men and women. So s/he randomly selects 100 men and 100 women, and records interested variable values. In this case, the samples are independent because ... |
22,875,579 | I would like to add a CSS class to a Bootstrap (3.x) tooltip, but it seems not working. So I would like to use Firebug to inspect the tooltip content. However, when I move my mouse to the Firebug area, the dynamically generated tooltip disappers.
How can I inspect a dynamically generated Bootstrap tooltip?
Here is t... | 2014/04/05 | [
"https://Stackoverflow.com/questions/22875579",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/997474/"
] | 1. Enable the [*Script* panel](https://getfirebug.com/wiki/index.php/Script_Panel)
2. Reload the page
3. Inspect the `<label>` element containing `Some Text?`
4. Right-click the element and choose *Break On Child Addition or Removal* from the context menu
5. Move the mouse over the question mark
=> The script execution... | I was looking for
How to inspect a JQuery tooltip in firebug
1. Inspect the element in Firebug
2. Select the "Event" tab to the right
3. Disable the mouseoutevent.
4. Now when the mouse is gone from the element, the tooltip stays. Can be inspected as any other element via FireBug.
Here is a small video: <https://you... |
22,875,579 | I would like to add a CSS class to a Bootstrap (3.x) tooltip, but it seems not working. So I would like to use Firebug to inspect the tooltip content. However, when I move my mouse to the Firebug area, the dynamically generated tooltip disappers.
How can I inspect a dynamically generated Bootstrap tooltip?
Here is t... | 2014/04/05 | [
"https://Stackoverflow.com/questions/22875579",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/997474/"
] | 1. Enable the [*Script* panel](https://getfirebug.com/wiki/index.php/Script_Panel)
2. Reload the page
3. Inspect the `<label>` element containing `Some Text?`
4. Right-click the element and choose *Break On Child Addition or Removal* from the context menu
5. Move the mouse over the question mark
=> The script execution... | I found that the only MAIN step (instead of steps 1-5 in the accepted answer of Sebastian Zartner) is to FIRST enable Firebug's HTML tab's "Break On Mutate" button. It is the most left-top button in that tab.
With just this step, JavaScript will be paused when there is dynamically shown tool-tip. Then, you could inspe... |
22,875,579 | I would like to add a CSS class to a Bootstrap (3.x) tooltip, but it seems not working. So I would like to use Firebug to inspect the tooltip content. However, when I move my mouse to the Firebug area, the dynamically generated tooltip disappers.
How can I inspect a dynamically generated Bootstrap tooltip?
Here is t... | 2014/04/05 | [
"https://Stackoverflow.com/questions/22875579",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/997474/"
] | I was looking for
How to inspect a JQuery tooltip in firebug
1. Inspect the element in Firebug
2. Select the "Event" tab to the right
3. Disable the mouseoutevent.
4. Now when the mouse is gone from the element, the tooltip stays. Can be inspected as any other element via FireBug.
Here is a small video: <https://you... | I found that the only MAIN step (instead of steps 1-5 in the accepted answer of Sebastian Zartner) is to FIRST enable Firebug's HTML tab's "Break On Mutate" button. It is the most left-top button in that tab.
With just this step, JavaScript will be paused when there is dynamically shown tool-tip. Then, you could inspe... |
64,288,547 | Currently doing a school mini-project where we have to make a program to extract the domain name from a few given URL's, and put those which end in .uk (ie are websites from the united kingdom) in a list.
A couple of specifications:
* We cannot import any modules or anything.
* We can ignore urls that don't start wit... | 2020/10/09 | [
"https://Stackoverflow.com/questions/64288547",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13292868/"
] | This should work
```py
def compute():
ret = []
hs = ['https:', 'http:']
domains = ['uk']
file = open('urlfile.txt','r')
urllist = file.read().splitlines()
for url in urllist:
url_t = url.split('/')
# \setminus {http*}
if url_t[0] in hs:
url_t = (url_t[2]).s... | Analyze the structure of the url first.
An url contains a few characters which cannot appear randomly e.g. the dot "."
The last dot allows therefore marks the end of the url + the country code.
The easiest solution could be to split the urls at the last dot with .rsplit(".", 1) and then take the first 2 letters after t... |
45,867,756 | I am trying to customize the font on my site title to Raleway in Wordpress.
I have added the google font code in `Customize` > `Typography`. This is working to change the font on my PC but not on my mobile device.
I added this code to the Custom CSS panel:
```
@site-title {
font-family: 'Raleway';
font-style... | 2017/08/24 | [
"https://Stackoverflow.com/questions/45867756",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8513028/"
] | `#` is only used to indicate a comment when used inside Python code. In your query, it is inside the query string, and so is not parsed as a comment identifier, but as part of the query.
If you delete it, you are left with 8 `%s` and only 7 items inside `payload`. | I believe the problem is you have multiple %s string indicators in your execute string but are only giving it a single item (in this case a list) which it doesn't know it should break down into multiple values.
Try using some of the suggestions in this post to get your desired effect.
[Using Python String Formatting ... |
33,273,809 | I'm making a basic calculator where you can plus, times, divide and minus as i was experimenting to see if it worked i noticed that instead of 5 divided by being equal to 1.25 it only displayed 1.
Here's the code i use to handle the math problems:
```
if (box.getSelectedItem().equals(divide)){
JOptionPane.showM... | 2015/10/22 | [
"https://Stackoverflow.com/questions/33273809",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5448013/"
] | Since you are using Integer,it is happening.
Use [Double](http://docs.oracle.com/javase/7/docs/api/java/lang/Double.html) to preserve decimals.
In your case,use
```
Double.parseDouble(first.getText()) / Double.parseDouble(second.getText())
``` | Integer division will give you Integer. Try using Double or BigDecimal data type. |
33,273,809 | I'm making a basic calculator where you can plus, times, divide and minus as i was experimenting to see if it worked i noticed that instead of 5 divided by being equal to 1.25 it only displayed 1.
Here's the code i use to handle the math problems:
```
if (box.getSelectedItem().equals(divide)){
JOptionPane.showM... | 2015/10/22 | [
"https://Stackoverflow.com/questions/33273809",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5448013/"
] | Since you are using Integer,it is happening.
Use [Double](http://docs.oracle.com/javase/7/docs/api/java/lang/Double.html) to preserve decimals.
In your case,use
```
Double.parseDouble(first.getText()) / Double.parseDouble(second.getText())
``` | You need to do the casting
```
(double)parseInt(first.getText()) / (double)parseInt(second.getText())
```
Int/Int will give you an Integer. So you need to cast it to Double to get the result in decimal.
**EDIT:**
If you dont want to show decimal when the result is a whole number then you need to check it like this... |
9,929 | One of Blackberry's [strongest assets](http://www.marketwatch.com/story/rim-the-long-slow-death-spiral-begins-2011-12-20?pagenumber=2) is the "network" that it uses. Can someone explain, or link to technical information that covers what this secure network is, and what it does better than the rest? | 2011/12/20 | [
"https://security.stackexchange.com/questions/9929",
"https://security.stackexchange.com",
"https://security.stackexchange.com/users/396/"
] | How dare you! How dare you question the most secure mobile platform available to mankind! My attempt at humor there.. now to a serious answer before the mods attack. Blackberry has some whitepapers regarding security here: <http://us.blackberry.com/ataglance/security/>
I would argue the network is not RIM's strongest ... | Blackberry Architecture is designed in such a way that the entire communication (data and not voice channel) is managed by the blackberry servers ecosystem in highly secured manner. The telco data channel acts as a carrier and transport medium of data packets to and fro between the mobile device and the blackberry serv... |
9,929 | One of Blackberry's [strongest assets](http://www.marketwatch.com/story/rim-the-long-slow-death-spiral-begins-2011-12-20?pagenumber=2) is the "network" that it uses. Can someone explain, or link to technical information that covers what this secure network is, and what it does better than the rest? | 2011/12/20 | [
"https://security.stackexchange.com/questions/9929",
"https://security.stackexchange.com",
"https://security.stackexchange.com/users/396/"
] | Obscurity. No seriously though. Thanks to Blackberry enterprise server (which has been out for years), corporate mobile phones were able to be managed and controlled through a policy set or a group of "rules".. Not altogether unlike your windows user account at work on your company domain controlled by Active Directory... | Blackberry Architecture is designed in such a way that the entire communication (data and not voice channel) is managed by the blackberry servers ecosystem in highly secured manner. The telco data channel acts as a carrier and transport medium of data packets to and fro between the mobile device and the blackberry serv... |
15,053,715 | I'm making a management program with C# & SQL Server 2008. I want to search records using Blood Group, District & Club Name wise all at a time. This is what is making prob:
```
SqlDataAdapter sda = new SqlDataAdapter("SELECT * FROM Table2
WHERE @Blood_Group =" + tsblood.Text + "AND @District =" + tsdist.Text ... | 2013/02/24 | [
"https://Stackoverflow.com/questions/15053715",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2104796/"
] | The correct syntax is to use parametrized queries and absolutely never use string concatenations when building a SQL query:
```
string query = "SELECT * FROM Table2 WHERE BloodGroup = @BloodGroup AND District = @District AND Club_Name = @ClubName";
using (SqlDataAdapter sda = new SqlDataAdapter(query, Mycon1))
{
s... | You forgot an `AND` (and possible an `@` in front of `Club_Name`?):
```
String CRLF = "\r\n";
String sql = String.Format(
"SELECT * FROM Table2" + CRLF+
"WHERE @Blood_Group = {0}" + CRLF+
"AND @District = {1} " + CRLF+
"AND Club_Name = {2}",
SqlUtils.QuotedStr(tsblood.Text),
SqlU... |
34,995 | I planted red and new potatoes in early May. They were planted 6-8 inches deep. The potatoes were sprouted potatoes from our local hardware store. Our soil is heavy clay but the potatoes were planted in purchased hummus which had been worked into the soil to a depth of about 15 inches. Our climate zone is zone 9B.
[!... | 2017/08/13 | [
"https://gardening.stackexchange.com/questions/34995",
"https://gardening.stackexchange.com",
"https://gardening.stackexchange.com/users/19536/"
] | Judging by the state of the plants when you dug them up, and what the soil surface looks like there are no nutrients whatever in it.
The potatoes *tried* to grow, using the material stored in the tuber, but that's as much as they managed to do. The leaves never developed properly, nor did the roots. They would have gr... | >
> However, the summer here has been very hot
>
>
>
This might very well be the reason. Potatoes tend to stop the production of tubers once the soil reaches a certain temperature. Gardeners that plant their potatoes in dark plastic bags and unwittingly put the bags into a sunny spot often have the same problem.
... |
34,995 | I planted red and new potatoes in early May. They were planted 6-8 inches deep. The potatoes were sprouted potatoes from our local hardware store. Our soil is heavy clay but the potatoes were planted in purchased hummus which had been worked into the soil to a depth of about 15 inches. Our climate zone is zone 9B.
[!... | 2017/08/13 | [
"https://gardening.stackexchange.com/questions/34995",
"https://gardening.stackexchange.com",
"https://gardening.stackexchange.com/users/19536/"
] | >
> However, the summer here has been very hot
>
>
>
This might very well be the reason. Potatoes tend to stop the production of tubers once the soil reaches a certain temperature. Gardeners that plant their potatoes in dark plastic bags and unwittingly put the bags into a sunny spot often have the same problem.
... | In addition to the answers above (*especially* regarding the need to improve the soil) you should be prepared to periodically mound more soil or mulch or straw around the plants as they grow. The tubers actually grow along the stems of the plants, so if you don't cover them up, you may grow larger plants next year, but... |
34,995 | I planted red and new potatoes in early May. They were planted 6-8 inches deep. The potatoes were sprouted potatoes from our local hardware store. Our soil is heavy clay but the potatoes were planted in purchased hummus which had been worked into the soil to a depth of about 15 inches. Our climate zone is zone 9B.
[!... | 2017/08/13 | [
"https://gardening.stackexchange.com/questions/34995",
"https://gardening.stackexchange.com",
"https://gardening.stackexchange.com/users/19536/"
] | Judging by the state of the plants when you dug them up, and what the soil surface looks like there are no nutrients whatever in it.
The potatoes *tried* to grow, using the material stored in the tuber, but that's as much as they managed to do. The leaves never developed properly, nor did the roots. They would have gr... | In addition to the answers above (*especially* regarding the need to improve the soil) you should be prepared to periodically mound more soil or mulch or straw around the plants as they grow. The tubers actually grow along the stems of the plants, so if you don't cover them up, you may grow larger plants next year, but... |
34,640,668 | I'm working on a plugin for Revit. Revit permits only dll type addins and I chose c# and wpf for gui. I couldn't initialize wpf natively so I needed to contain it in a system.windows.window as content.
Now if I close that window with upper right X program continues (looping processing etc.) it doesn't get terminated. ... | 2016/01/06 | [
"https://Stackoverflow.com/questions/34640668",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4338414/"
] | Unfortunately I don't know how to do this without any existing form. But I'm sure you have some kind of main form you can access. Or you can obtain a `Form` using
```
var invokingForm = Application.OpenForms[0];
```
So you can change the code of your method like this:
```
static void OnNewMessage(object sender, S22... | In WinForms there is still a requirement that the UI objects need to be on a thread with a message pump. This is usually the main application thread, also called the UI thread.
In Winforms checking to see if you are on the right thread to access a UI object is done with `Control.InvokeRequired`. If this returns true, ... |
35,253,840 | I am building an app which uploads files to the server via ajax.
The problem is that users most likely sometimes won't have the internet connection and client would like to have the ajax call scheduled to time when user have the connection back. This is possible that user will schedule the file upload when he's offline... | 2016/02/07 | [
"https://Stackoverflow.com/questions/35253840",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2008950/"
] | The short answer is no, your app can't run code after being terminated.
You can run code in your `AppDelegate`'s `applicationWillTerminate`, but that method is mainly intended for saving user data and other similar tasks.
See [this answer](https://stackoverflow.com/a/32225247/5389870) also. | Yes you can do stuff in the background. You are limited to several different background modes of execution. Server communication is one of the modes that is allowed (background fetch). Make sure you set the properties correctly in Xcode per the guidelines (i.e. don't say you are a audio app when you are doing data tran... |
35,253,840 | I am building an app which uploads files to the server via ajax.
The problem is that users most likely sometimes won't have the internet connection and client would like to have the ajax call scheduled to time when user have the connection back. This is possible that user will schedule the file upload when he's offline... | 2016/02/07 | [
"https://Stackoverflow.com/questions/35253840",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2008950/"
] | The short answer is no, your app can't run code after being terminated.
You can run code in your `AppDelegate`'s `applicationWillTerminate`, but that method is mainly intended for saving user data and other similar tasks.
See [this answer](https://stackoverflow.com/a/32225247/5389870) also. | ```
- (void)applicationWillTerminate:(UIApplication *)application {
if (application) {
__block UIBackgroundTaskIdentifier backgroundTask = UIBackgroundTaskInvalid;
backgroundTask = [application beginBackgroundTaskWithName:@"MyTask" expirationHandler:^{
backgroundTask = UIBackgroundTaskI... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.