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 |
|---|---|---|---|---|---|
29,604,313 | I would like to change the vmsize of a running Azure web role during deployment preferrably using powershell.
Is this at all possible?
The use case here is that not all of our customers (and test environments) should run the same vm sizes, but they all use the same .csdef file. | 2015/04/13 | [
"https://Stackoverflow.com/questions/29604313",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/571308/"
] | You can use the Set-AzureDeployment cmdlet to upgrade a webrole size, which you could then work into your existing PowerShell script. For instance, if you automatically deploy every customer web service/web role at a basic level/scale and then only upgraded them to larger capacity as needed, you could then use the foll... | This is not possible for a role, you have to do a new deployment with the settings change. You can however change the number of instances without redeploying maybe that could help you out?
On plain VM's you can use the following powershell snippet:
```
Get-AzureVM –ServiceName $ServiceName –Name $Name |
Set-AzureVMS... |
29,604,313 | I would like to change the vmsize of a running Azure web role during deployment preferrably using powershell.
Is this at all possible?
The use case here is that not all of our customers (and test environments) should run the same vm sizes, but they all use the same .csdef file. | 2015/04/13 | [
"https://Stackoverflow.com/questions/29604313",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/571308/"
] | This is not possible for a role, you have to do a new deployment with the settings change. You can however change the number of instances without redeploying maybe that could help you out?
On plain VM's you can use the following powershell snippet:
```
Get-AzureVM –ServiceName $ServiceName –Name $Name |
Set-AzureVMS... | We use `MSBuild` to convert VM size in Service Definition file. It's part of the build step that runs before the deployment.
```
<Target Name="ChangeVM">
<RegexReplace
Pattern='vmsize="Standard_D3"'
Replacement='vmsize="$(VMSize)"'
Files='../Web/ServiceDefinition.csdef' />
</Target>
```
Where `(VMSize)... |
29,604,313 | I would like to change the vmsize of a running Azure web role during deployment preferrably using powershell.
Is this at all possible?
The use case here is that not all of our customers (and test environments) should run the same vm sizes, but they all use the same .csdef file. | 2015/04/13 | [
"https://Stackoverflow.com/questions/29604313",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/571308/"
] | You can use the Set-AzureDeployment cmdlet to upgrade a webrole size, which you could then work into your existing PowerShell script. For instance, if you automatically deploy every customer web service/web role at a basic level/scale and then only upgraded them to larger capacity as needed, you could then use the foll... | We use `MSBuild` to convert VM size in Service Definition file. It's part of the build step that runs before the deployment.
```
<Target Name="ChangeVM">
<RegexReplace
Pattern='vmsize="Standard_D3"'
Replacement='vmsize="$(VMSize)"'
Files='../Web/ServiceDefinition.csdef' />
</Target>
```
Where `(VMSize)... |
28,853,341 | I have a HTML page which is divided into two frame sets,
the first frame contains 4 buttons, the second frame shows forms, only 1 of 4 forms can be shown according to which button is clicked.
e.g. if the user clicks on button 'form1' in frame1, the 2nd frame should show 'FORM1' if the user clicks on button 'frame3' i... | 2015/03/04 | [
"https://Stackoverflow.com/questions/28853341",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2339140/"
] | This should do what you need:
```
<a target="Frame2" href="form1.php">Show form 1</a>
<a target="Frame2" href="form2.php">Show form 2</a>
<a target="Frame2" href="form3.php">Show form 3</a>
<a target="Frame2" href="form4.php">Show form 4</a>
```
More about targets and frames in [HTML 4 spec](http://www.w3.org/TR/htm... | In frame1 that is in buttons.php your code for buttons should be like this
```
<input type="button1" value="button1"
onClick="parent.Frame2.location.href='Form1.php'">
</form>
<input type="button2" value="button2"
onClick="parent.Frame2.location.href='Form2.php'">
</form>
<input type="button3" value="button3"
on... |
28,853,341 | I have a HTML page which is divided into two frame sets,
the first frame contains 4 buttons, the second frame shows forms, only 1 of 4 forms can be shown according to which button is clicked.
e.g. if the user clicks on button 'form1' in frame1, the 2nd frame should show 'FORM1' if the user clicks on button 'frame3' i... | 2015/03/04 | [
"https://Stackoverflow.com/questions/28853341",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2339140/"
] | This should do what you need:
```
<a target="Frame2" href="form1.php">Show form 1</a>
<a target="Frame2" href="form2.php">Show form 2</a>
<a target="Frame2" href="form3.php">Show form 3</a>
<a target="Frame2" href="form4.php">Show form 4</a>
```
More about targets and frames in [HTML 4 spec](http://www.w3.org/TR/htm... | Child (Frame1):
```
// Get Button Values & Pass to Parent
$(document).ready(function() {
$('#list-1').click(function() {
// alert($(this).attr("value"));
window.parent.fchanger($(this).attr("value"));
});
... |
39,965,322 | I know recipes aren't versioned, but is it possible in an environment to have some recipes use a specific version of their cookbook and some use a different version? | 2016/10/10 | [
"https://Stackoverflow.com/questions/39965322",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1028270/"
] | You can only pin cookbooks in environments. There is no way to mix a cookbook with recipes from different cookbook versions. | Nope.
Cookbooks are the unit of versioning, there's no way to pin recipes.
You can copy either the old or the new cookbook to a new name (`cookbook_v1` or `cookbook_ng`) or you can include two different versions of the recipe in the new cookbook (`recipes/stuff_v1.rb` `recipes/stuff_v2.rb`) but you can't do what you'... |
6,781,204 | How does WebLogic 11g load libraries in an EAR file? I have this problem with a web application, that when deployed as a WAR (with libraries it depends on in WEB-INF/lib), it works just fine. However, when it's inside an EAR file, WebLogic does not find those libraries unless I put them in APP-INF/lib. Does that mean t... | 2011/07/21 | [
"https://Stackoverflow.com/questions/6781204",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/86857/"
] | If you have JAR files that you need to share between multiple WAR files or between WAR files and EAR files then you will need to package them in the EAR.
If WAR#1 has a JAR in its WEB-INF/lib and is packaged in an EAR with WAR#2, then WAR#2 will not be able to see the JAR files in WAR#1/WEB-INF/lib. | Solving your problem will take some understanding of how Java EE classloading works in a container. You should look at [this link](http://download.oracle.com/docs/cd/E12839_01/web.1111/e13706/classloading.htm) to get an understanding, but the basic problem is that when you package your application as an EAR, you've int... |
49,018,118 | I have decided to make my own Tool bar
So i removed the regular ToolBar :
```
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="false"
android:theme="@style/Theme.AppCo... | 2018/02/27 | [
"https://Stackoverflow.com/questions/49018118",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6528032/"
] | In your `<include>` tag, you've set the id of the toolbar to be `@+id/custombar`, but you're looking it up using `R.id.toolbar`. Change that line to this:
```
_CustomToolBar = (android.support.v7.widget.Toolbar) findViewById(R.id.custombar);
``` | Didn't get your question clearly, but still I will post how I code to set custom toolbar.
1) My Manifest have NoActionBar theme to remove default toolbar.
2) My custom\_toolbar.xml file -
```
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res... |
16,594,511 | So I need to upgrade an rails 2.3.14 app to rails 3. We use git, so decided to create another branch 'rails3' (git checkout -b rails3). The easiest solution I found to the problem of the upgrade was removing all stuff and generating a new project and copy/pasting controllers , views, etc.. from master. But now `git sta... | 2013/05/16 | [
"https://Stackoverflow.com/questions/16594511",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1740079/"
] | this might be a clean solution for you:
```
<form action="" method="post">
<input type="submit" name="page" value="Home" />
<input type="submit" name="page" value="About Us" />
<input type="submit" name="page" value="Games" />
<input type="submit" name="page" value="Pages" />
</form>
<?php
switch($... | So, this will check, if `$_POST` is not set, load home.php else, if it is set then continue
```
if (!isset($_POST)){ // if post is not set, show home.php
include 'home.php';
}else if (isset($_POST['AboutUs'])){
include 'au.php';
}else if (isset($_POST['Games'])){
... |
16,594,511 | So I need to upgrade an rails 2.3.14 app to rails 3. We use git, so decided to create another branch 'rails3' (git checkout -b rails3). The easiest solution I found to the problem of the upgrade was removing all stuff and generating a new project and copy/pasting controllers , views, etc.. from master. But now `git sta... | 2013/05/16 | [
"https://Stackoverflow.com/questions/16594511",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1740079/"
] | this might be a clean solution for you:
```
<form action="" method="post">
<input type="submit" name="page" value="Home" />
<input type="submit" name="page" value="About Us" />
<input type="submit" name="page" value="Games" />
<input type="submit" name="page" value="Pages" />
</form>
<?php
switch($... | Just so you have options to choose from...
```
<html>
<head>
<title>
Test
</title>
</head>
<body>
<?php
include 'header.php';
?>
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" id="menuForm">
<input type="submit" name="submit" value="Home" />
<input type="submit" name... |
37,894,081 | I see that no active development is going on from vogels page from a long time i.e, about 5 months <https://github.com/ryanfitz/vogels>
Are there any better options?
Has anyone faced issues with scalibility or I/O time with it? | 2016/06/18 | [
"https://Stackoverflow.com/questions/37894081",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2379271/"
] | I've been using vogels on a project recently. While it seems like it isn't as well maintained as it used to be, it's still quite a nice API wrapper - certainly much nicer than using the SDK directly.
I haven't encountered any performance cost with it - it's really just assembling AWS SDK calls, and doesn't do anythin... | I've been using Vogels for around 6 months now and it's done everything I've needed it to do. The raw dynamoDB api is too low level for what I need. I too noticed that the module wasn't being 'maintained' so I created a fork of the project and republished it to npm:
[npm](https://www.npmjs.com/package/dynogels)
[gith... |
50,309,017 | I have a invite link of private channel, and I wanna forwards (or delivery) posts from this channel to me. My desired pseudo code is like below.
```
def get_channel(bot, update):
message=update.channel_post.text
print(message)
updater = Updater(my_token)
channel_handler = MessageHandler(Filters.text, get_channe... | 2018/05/12 | [
"https://Stackoverflow.com/questions/50309017",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9247484/"
] | With awk:
```
kubectl get pods -l run=hello-kube -o yaml | awk '/podIP:/ {print $2}'
```
Output:
```
10.244.1.9
``` | You may also use the format json to get the value with jsonpath, something like,
```
kubectl get pods -l app=cron -o=jsonpath='{.items[0].status.podIP}'
```
Thanks |
50,309,017 | I have a invite link of private channel, and I wanna forwards (or delivery) posts from this channel to me. My desired pseudo code is like below.
```
def get_channel(bot, update):
message=update.channel_post.text
print(message)
updater = Updater(my_token)
channel_handler = MessageHandler(Filters.text, get_channe... | 2018/05/12 | [
"https://Stackoverflow.com/questions/50309017",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9247484/"
] | With awk:
```
kubectl get pods -l run=hello-kube -o yaml | awk '/podIP:/ {print $2}'
```
Output:
```
10.244.1.9
``` | You can also use `yq` (<https://github.com/mikefarah/yq>), which is a tool similar to `jq`.
Then do:
```
% yq read file.yaml items.0.spec.podIP
10.244.1.9
``` |
4,298,595 | I have the following from the slime repl (no clojure.contib functions found):
```
M-X slime
user=> (:require 'clojure.contrib.string)
nil
user=> (doc clojure.contrib.string/blank?)
java.lang.Exception: Unable to resolve var: clojure.contrib.string/blank? in this context (NO_SOURCE_FILE:10)
```
And the following when... | 2010/11/28 | [
"https://Stackoverflow.com/questions/4298595",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/160992/"
] | The new [ECMAScript 5 specification](http://www.ecma262-5.com/ELS5_HTML.htm) allows property names to be reserved words. Some engines might have adopted this new "feature", while others might still require property names to be quoted when they happen to be reserved words. | For sake of clarity you might want to avoid `delete` or `new` or other operators as property names, even while newer specs is relaxed about it |
10,515,412 | I have a table with column node\_id as number, where,
```
node_id
0
2000
300300300
400400400
```
what i am trying to get is convert this number into string and add '-' after every third digit from right.
So expected output is,
```
node_id
000-000-000
000-002-000
300-300-300
400-400-400
```
This is the query which... | 2012/05/09 | [
"https://Stackoverflow.com/questions/10515412",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1073023/"
] | Just change your format mask to:
```
'099G999G999'
```
(Note the leading '0') | An alternative for prepending 0s that works in any database is something like:
```
right('000000000000' || cast(<val> to varchar(100)), <numdigits>)
```
Of course, some databases use "concat()" or "+" instead of "||" for concatenation. |
6,345 | Nel romanzo *Non so niente di te* di Paola Mastrocola, pubblicato da Einaudi, ho letto (il corsivo è mio):
>
> Ognuno ha il suo modo di non dormire, la notte, il suo stile, le sue tecniche di insonnia. C'è chi [...]. E c'è chi si ribella, non ammette, non concepisce che possa capitare a lui, è ostile, sbuffa, *sbrait... | 2015/12/20 | [
"https://italian.stackexchange.com/questions/6345",
"https://italian.stackexchange.com",
"https://italian.stackexchange.com/users/707/"
] | Il termine ***[sbraitare](http://dizionari.repubblica.it/Italiano/S/sbraitare.php)*** nel brano viene probabilmente usato nel senso figurato di protestare, indignarsi:
>
> * Vociare concitatamente, scompostamente, quasi urlando: sbraitava come un ossesso di avere ragione
> * (per estensione) Protestare, ribellarsi, ... | La definizione del Treccani è obsoleta, scorretta o, comunque, imprecisa, ciò perché 'sbraitare' non implica necessariamente una 'voce alta'. Infatti, essa -- la voce --, può anche essere normale, giusto quello che serve acché possa essere sentita.
Peraltro, a suffragio di quanto sopra, 'sbraitare silenziosamente' non... |
6,345 | Nel romanzo *Non so niente di te* di Paola Mastrocola, pubblicato da Einaudi, ho letto (il corsivo è mio):
>
> Ognuno ha il suo modo di non dormire, la notte, il suo stile, le sue tecniche di insonnia. C'è chi [...]. E c'è chi si ribella, non ammette, non concepisce che possa capitare a lui, è ostile, sbuffa, *sbrait... | 2015/12/20 | [
"https://italian.stackexchange.com/questions/6345",
"https://italian.stackexchange.com",
"https://italian.stackexchange.com/users/707/"
] | >
> Comunque, non mi sembra il caso di mettersi a gridare durante la notte quando si ha l'insonnia.
>
>
>
Beh, sicuramente non è il caso, ma se lo vedi come un gesto di disappunto ha senso che capiti.
>
> il verbo "sbraitare" può avere un uso figurato che non implichi parlare a voce alta o gridare?
>
>
>
Non... | La definizione del Treccani è obsoleta, scorretta o, comunque, imprecisa, ciò perché 'sbraitare' non implica necessariamente una 'voce alta'. Infatti, essa -- la voce --, può anche essere normale, giusto quello che serve acché possa essere sentita.
Peraltro, a suffragio di quanto sopra, 'sbraitare silenziosamente' non... |
6,345 | Nel romanzo *Non so niente di te* di Paola Mastrocola, pubblicato da Einaudi, ho letto (il corsivo è mio):
>
> Ognuno ha il suo modo di non dormire, la notte, il suo stile, le sue tecniche di insonnia. C'è chi [...]. E c'è chi si ribella, non ammette, non concepisce che possa capitare a lui, è ostile, sbuffa, *sbrait... | 2015/12/20 | [
"https://italian.stackexchange.com/questions/6345",
"https://italian.stackexchange.com",
"https://italian.stackexchange.com/users/707/"
] | >
> Comunque, non mi sembra il caso di mettersi a gridare durante la notte quando si ha l'insonnia.
>
>
>
Beh, sicuramente non è il caso, ma se lo vedi come un gesto di disappunto ha senso che capiti.
>
> il verbo "sbraitare" può avere un uso figurato che non implichi parlare a voce alta o gridare?
>
>
>
Non... | Il termine ***[sbraitare](http://dizionari.repubblica.it/Italiano/S/sbraitare.php)*** nel brano viene probabilmente usato nel senso figurato di protestare, indignarsi:
>
> * Vociare concitatamente, scompostamente, quasi urlando: sbraitava come un ossesso di avere ragione
> * (per estensione) Protestare, ribellarsi, ... |
46,622,918 | This is my sample html code.
```
<div class="content">
<M class="mclass">
<section id="sideA">
<div id="mainContent">
<div class="requestClass">
<span>Check</span>
<input type="text" id="box">
</div>
</div>
<section>
<section id="sideB">
... | 2017/10/07 | [
"https://Stackoverflow.com/questions/46622918",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4804899/"
] | As per the `HTML` you have provided to fill in some value to the text field represented by `<input type="text" id="box">` you can use either of the following line of code:
1. `cssSelector` :
```
driver.findElement(By.cssSelector("section#sideA input#box")).sendKeys("SetValue");
```
2. `xpath` :
```
driver.findEleme... | If you still want to use XPath. This worked for me-
```
driver.FindElement(By.XPath(@"//*[@id='box']")).SendKeys("AB");
```
I don't think the custom tag causes any problem as the CssSelector also works-
```
driver.FindElement(By.CssSelector(@"m[class='mclass'] input")).SendKeys("AB");
``` |
46,622,918 | This is my sample html code.
```
<div class="content">
<M class="mclass">
<section id="sideA">
<div id="mainContent">
<div class="requestClass">
<span>Check</span>
<input type="text" id="box">
</div>
</div>
<section>
<section id="sideB">
... | 2017/10/07 | [
"https://Stackoverflow.com/questions/46622918",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4804899/"
] | As per the `HTML` you have provided to fill in some value to the text field represented by `<input type="text" id="box">` you can use either of the following line of code:
1. `cssSelector` :
```
driver.findElement(By.cssSelector("section#sideA input#box")).sendKeys("SetValue");
```
2. `xpath` :
```
driver.findEleme... | You can use `ID` or `xpath` to locate it, My suggestion you have to use `ID`. Also use Explicit wait till element to be visible.
Using `ID`, your code is like this:
```
WebElement elem= driver.findElement(By.id("box"));
WebDriverWait wait=new WebDriverWait(driver, 10);
wait.until(ExpectedConditions.visibilityOf(elem)... |
2,869,504 | >
> I would like a **hint and only a hint** to prove
>
>
> $\forall \sigma\in S\_n$ , $S\_n$ is a finite symmetric group of permutation
>
>
> $\displaystyle \left|\prod\limits\_{1\le i<j\le n}\big(\sigma(i)-\sigma(j)\big)\right|=\left|\prod\limits\_{1\le i<j\le n}\big(i-j\big)\right|$
>
>
>
thanks !! | 2018/08/01 | [
"https://math.stackexchange.com/questions/2869504",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/460772/"
] | HINT: try by induction, starting from $n=2$ | Here is another: prove their squares are equal, both being $\prod\_{i\neq j} (i-j)$. |
2,869,504 | >
> I would like a **hint and only a hint** to prove
>
>
> $\forall \sigma\in S\_n$ , $S\_n$ is a finite symmetric group of permutation
>
>
> $\displaystyle \left|\prod\limits\_{1\le i<j\le n}\big(\sigma(i)-\sigma(j)\big)\right|=\left|\prod\limits\_{1\le i<j\le n}\big(i-j\big)\right|$
>
>
>
thanks !! | 2018/08/01 | [
"https://math.stackexchange.com/questions/2869504",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/460772/"
] | HINT: Consider the [Vandermonde matrix](https://en.wikipedia.org/wiki/Vandermonde_matrix) | Here is another: prove their squares are equal, both being $\prod\_{i\neq j} (i-j)$. |
29,498,006 | I tried some commands such as
```
echo "Your text here" | ssh hostname 'cat >> output.txt'
```
but it didnt work.
How can I write in a file inside the server using this exec code or just the ssh command that I will put to String command.
```
public class TestWrite{
private static final String user = "usernam... | 2015/04/07 | [
"https://Stackoverflow.com/questions/29498006",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3880831/"
] | You can write to a file with
```
echo "your text here" > file
```
You don't need `ssh` because Jsch takes its place. | Try a command like:
```
ssh hostname 'echo "Your text here" >> output.txt'
``` |
11,671 | Vistors to our website can fill out a form to create an account. It is a CiviCRM profile, and "WordPress user account registration option" is set to "Account creation required". The username and password fields are shown above the profile but a Wordpress account is not created when the form is saved. A Contact is creat... | 2016/05/06 | [
"https://civicrm.stackexchange.com/questions/11671",
"https://civicrm.stackexchange.com",
"https://civicrm.stackexchange.com/users/897/"
] | Occasionally WordPress plugins can interfere with user account creation. Have you installed any spam prevention plugins recently? If so, try turning it off and seeing if the user creation option shows up on your profile.
The reason this isn't working with WordPress demo site, is that User Creation is turned off on al... | As it turns out, it was a custom extension that was causing the problem. Under certain conditions the extension would generate a blank `cms_name` value. When `wp_insert_user` was called with a blank username in the Wordpress.php system backend, it returned a `WP_Error` object instead of a userID. This error was ignored... |
24,752,810 | While browsing the web, **I need to fake my screen resolution** to websites I'm viewing but **keep my viewport the same** (Chrome's or FF's emulating doesn't solve my problem).
For instance, if I go to <http://www.whatismyscreenresolution.com/> from a browser in full screen mode which has 1920x1080px resolution **I wa... | 2014/07/15 | [
"https://Stackoverflow.com/questions/24752810",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3839707/"
] | A very, very lazy option (to avoid setting up a [Google Custom Search Engine](http://google.com/cse)) is to make a form that points at Google with a hidden query element that limits the search to your own site:
```
<div id="contentsearch">
<form id="searchForm" name="searchForm" action="http://google.com/search">
... | If your site is well index by Google a quick and ready solution is use [Google CSE](http://google.com/cse).
Other than that for a static website with hard coded html pages and directory containing images; yes it is possible to create search mechanism. But trust me it is more hectic and resource consuming then creating... |
24,752,810 | While browsing the web, **I need to fake my screen resolution** to websites I'm viewing but **keep my viewport the same** (Chrome's or FF's emulating doesn't solve my problem).
For instance, if I go to <http://www.whatismyscreenresolution.com/> from a browser in full screen mode which has 1920x1080px resolution **I wa... | 2014/07/15 | [
"https://Stackoverflow.com/questions/24752810",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3839707/"
] | There are quite a few solutions available for this. In no particular order:
**Free or Open Source**
1. [Google Custom Search Engine](https://www.google.com/cse/)
2. [Tapir](http://tapirgo.com/) - hosted service that indexes pages on your RSS feed.
3. [Tipue](http://www.tipue.com/search/) - self hosted javaScript plug... | If your site is well index by Google a quick and ready solution is use [Google CSE](http://google.com/cse).
Other than that for a static website with hard coded html pages and directory containing images; yes it is possible to create search mechanism. But trust me it is more hectic and resource consuming then creating... |
24,752,810 | While browsing the web, **I need to fake my screen resolution** to websites I'm viewing but **keep my viewport the same** (Chrome's or FF's emulating doesn't solve my problem).
For instance, if I go to <http://www.whatismyscreenresolution.com/> from a browser in full screen mode which has 1920x1080px resolution **I wa... | 2014/07/15 | [
"https://Stackoverflow.com/questions/24752810",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3839707/"
] | I was searching for solution for searching for my blog created using Jekyll but didn't found good one, also Custom Google Search was giving me ads and results from subdomains, so it was not good. So I've created my own solution for this. I've written an article about [how to create search for static site like Jekyll](h... | If your site is well index by Google a quick and ready solution is use [Google CSE](http://google.com/cse).
Other than that for a static website with hard coded html pages and directory containing images; yes it is possible to create search mechanism. But trust me it is more hectic and resource consuming then creating... |
24,752,810 | While browsing the web, **I need to fake my screen resolution** to websites I'm viewing but **keep my viewport the same** (Chrome's or FF's emulating doesn't solve my problem).
For instance, if I go to <http://www.whatismyscreenresolution.com/> from a browser in full screen mode which has 1920x1080px resolution **I wa... | 2014/07/15 | [
"https://Stackoverflow.com/questions/24752810",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3839707/"
] | A very, very lazy option (to avoid setting up a [Google Custom Search Engine](http://google.com/cse)) is to make a form that points at Google with a hidden query element that limits the search to your own site:
```
<div id="contentsearch">
<form id="searchForm" name="searchForm" action="http://google.com/search">
... | I was searching for solution for searching for my blog created using Jekyll but didn't found good one, also Custom Google Search was giving me ads and results from subdomains, so it was not good. So I've created my own solution for this. I've written an article about [how to create search for static site like Jekyll](h... |
24,752,810 | While browsing the web, **I need to fake my screen resolution** to websites I'm viewing but **keep my viewport the same** (Chrome's or FF's emulating doesn't solve my problem).
For instance, if I go to <http://www.whatismyscreenresolution.com/> from a browser in full screen mode which has 1920x1080px resolution **I wa... | 2014/07/15 | [
"https://Stackoverflow.com/questions/24752810",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3839707/"
] | There are quite a few solutions available for this. In no particular order:
**Free or Open Source**
1. [Google Custom Search Engine](https://www.google.com/cse/)
2. [Tapir](http://tapirgo.com/) - hosted service that indexes pages on your RSS feed.
3. [Tipue](http://www.tipue.com/search/) - self hosted javaScript plug... | I was searching for solution for searching for my blog created using Jekyll but didn't found good one, also Custom Google Search was giving me ads and results from subdomains, so it was not good. So I've created my own solution for this. I've written an article about [how to create search for static site like Jekyll](h... |
402,150 | For a prime $p$, let $N(p)$ be the number of solutions $1 \le x \le p$ to $x^x \equiv 1 \mod p$. I am interested in methods to bound $N(p)$.
**Background:** This quantity appears in Problem 1 of the Miklós Schweitzer Competition 2010 where it was asked to prove $N(p) \ll p^{c}$ for some $c<\frac{1}{2}$. Let me quickly... | 2021/08/20 | [
"https://mathoverflow.net/questions/402150",
"https://mathoverflow.net",
"https://mathoverflow.net/users/81145/"
] | The $1/3 + \varepsilon$ is not a barrier anymore!
Resorting to estimates of exponential sums over subgroups due to Shkredov and Shteinikov, in the paper ["On the congruence $x^{x} \equiv 1 \pmod{p}$" (PAMS, **144** (2016), no. 6, pp. 2411 - 2418)](https://www.ams.org/journals/proc/2016-144-06/S0002-9939-2015-12919-X/S... | Another answer already gives a reference to a smaller exponent, but since the OP states that they are interested in an elementary proof, this is a proof I came up with which shows $c < \frac{3}{7} + \varepsilon$ (which is smaller than $\frac{4}{9}$).
For $A \subset \left( \mathbb{Z} / p \mathbb{Z} \right)^{\*}$ we def... |
18,770,450 | I have a header on my website with a large image ( 1000px width ).
This image is centered (horizontally). If a user comes to this website with a browser window which is slimmer than 1000px in width, he can scroll horizontally. This is what I would like to prevent, since the outer parts of the image are not important an... | 2013/09/12 | [
"https://Stackoverflow.com/questions/18770450",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1816644/"
] | You will need to use CSS for that.
```
div {
overflow-x: hidden;
}
``` | Should work by itself if you just set it as a background image, centered. You'll need to put it on a div that has 100% width applied to it, and a height specified in order to expand the div to see anything. |
18,770,450 | I have a header on my website with a large image ( 1000px width ).
This image is centered (horizontally). If a user comes to this website with a browser window which is slimmer than 1000px in width, he can scroll horizontally. This is what I would like to prevent, since the outer parts of the image are not important an... | 2013/09/12 | [
"https://Stackoverflow.com/questions/18770450",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1816644/"
] | You will need to use CSS for that.
```
div {
overflow-x: hidden;
}
``` | Try `position: fixed;`
This fixes the position and doesn't allow any scrolling |
18,770,450 | I have a header on my website with a large image ( 1000px width ).
This image is centered (horizontally). If a user comes to this website with a browser window which is slimmer than 1000px in width, he can scroll horizontally. This is what I would like to prevent, since the outer parts of the image are not important an... | 2013/09/12 | [
"https://Stackoverflow.com/questions/18770450",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1816644/"
] | You will need to use CSS for that.
```
div {
overflow-x: hidden;
}
``` | You can do this with background-size: cover
css
```
main-page { // making a container for demonstration purposes
display: block; // custom tags need a display, block forces 100% width
max-width: 1000px; // just matching your image width
margin: 0 auto; // centering if window is bigger than max-width
}
banner-i... |
18,770,450 | I have a header on my website with a large image ( 1000px width ).
This image is centered (horizontally). If a user comes to this website with a browser window which is slimmer than 1000px in width, he can scroll horizontally. This is what I would like to prevent, since the outer parts of the image are not important an... | 2013/09/12 | [
"https://Stackoverflow.com/questions/18770450",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1816644/"
] | Try `position: fixed;`
This fixes the position and doesn't allow any scrolling | Should work by itself if you just set it as a background image, centered. You'll need to put it on a div that has 100% width applied to it, and a height specified in order to expand the div to see anything. |
18,770,450 | I have a header on my website with a large image ( 1000px width ).
This image is centered (horizontally). If a user comes to this website with a browser window which is slimmer than 1000px in width, he can scroll horizontally. This is what I would like to prevent, since the outer parts of the image are not important an... | 2013/09/12 | [
"https://Stackoverflow.com/questions/18770450",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1816644/"
] | Should work by itself if you just set it as a background image, centered. You'll need to put it on a div that has 100% width applied to it, and a height specified in order to expand the div to see anything. | You can do this with background-size: cover
css
```
main-page { // making a container for demonstration purposes
display: block; // custom tags need a display, block forces 100% width
max-width: 1000px; // just matching your image width
margin: 0 auto; // centering if window is bigger than max-width
}
banner-i... |
18,770,450 | I have a header on my website with a large image ( 1000px width ).
This image is centered (horizontally). If a user comes to this website with a browser window which is slimmer than 1000px in width, he can scroll horizontally. This is what I would like to prevent, since the outer parts of the image are not important an... | 2013/09/12 | [
"https://Stackoverflow.com/questions/18770450",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1816644/"
] | Try `position: fixed;`
This fixes the position and doesn't allow any scrolling | You can do this with background-size: cover
css
```
main-page { // making a container for demonstration purposes
display: block; // custom tags need a display, block forces 100% width
max-width: 1000px; // just matching your image width
margin: 0 auto; // centering if window is bigger than max-width
}
banner-i... |
6,513,207 | I'm trying to understand how the events in a BSD socket interface translate to the state of a TCP Connection. In particular, I'm trying to understand at what stage in the connection process `accept()` returns on the server side
1. client sends SYN
2. server sends SYN+ACK
3. client sends ACK
In which one of these step... | 2011/06/28 | [
"https://Stackoverflow.com/questions/6513207",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/357024/"
] | `accept` returns when the connection is complete. The connection is complete **after the client sends his ACK**.
`accept` gives you a socket on which you can communicate. Of course you know, you can't communicate until the connection is established. And the connection can't be established before the handshake.
It wou... | The TCP/IP stack code in the kernel normally[1] completes the three-way handshake entirely without intervention from any user space code. The three steps you list all happen *before* `accept()` returns. Indeed, they may happen before `accept()` is even called!
When you tell the stack to `listen()` for connections on a... |
65,709,060 | My employee's IT department refuses to install R for me (claiming the open source version is a security risk) and I tried to create reports with Microsoft Access 2010.
I got stuck trying to create a query on a simple table of hospital wards (for the purpose of keeping track of a data collection exercise):
[![example ... | 2021/01/13 | [
"https://Stackoverflow.com/questions/65709060",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11451936/"
] | **Amazon Simple Storage Service (S3)**
>
> It allows you to store an infinite amount of data that can be accessed
> programmatically via different methods like REST API, SOAP, web
> interface, and more. It is an ideal storage option for videos, images
> and application data.
>
>
>
Features:
* Fully managed
* Sto... | I would go with aws s3 for such a use case where I want to store this kind of information.
[Setting default server-side encryption behavior for Amazon S3 buckets](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucket-encryption.html). Depending on the type of setup and amount of money I am willing to spend, I w... |
55,521,985 | Im trying to display the results from the json response from the server on my page, but some variables are displaying as NaN?
This is my json response from the server:
```
{"data":[{"id":"2","attributes":{"title":"Customer 1","status":"cancelled","end-date":"2019-01-01"}}]}
```
My customer service:
```
getCustomer... | 2019/04/04 | [
"https://Stackoverflow.com/questions/55521985",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10847474/"
] | Dashes are not allowed in Typescript/JavaScript identifiers, you will have to use array syntax to get the end date.
```
<td>{{ customer.attributes["end-date"] }}</td>
``` | You need handle the data first.
```
let date = new Date('2019-01-01');
``` |
47,675,065 | Well i am using laratrust to handle roles and permissions for my application.
I want to attach a role to a user when registering but after reading laratrust documentation i cant seem to figure out whats the issue!
Here is my code
```
public function register(Request $request) {
$this->validation($request); ... | 2017/12/06 | [
"https://Stackoverflow.com/questions/47675065",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | you forget to define **$user** (see in my code example) but there would be also error with the **$employer** it isn't definied in the function...
```
$user = User::create([
'name' => $request->name,
'lastname' => $request->lastname,
'email' => $request->email,
'password' => bcrypt($request->pas... | This works for me
```
User::create([
'name' => $request->name,
'lastname' => $request->lastname,
'email' => $request->email,
'password' => bcrypt($request->password)
])->attachRole('employer');
``` |
6,131,896 | Where I got stuck:
------------------
In my spare time I work on a private website. My self-teaching is *really* unstructured, and I've run up against a huge hole in my fundamentals.
I'm looking at a jQuery example from the jQuery API website, [serializeArray](http://api.jquery.com/serializeArray/), and I can't wrap ... | 2011/05/25 | [
"https://Stackoverflow.com/questions/6131896",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/769780/"
] | The [`jQuery.each`](http://api.jquery.com/jQuery.each/) runs the function you provide (here, an anonymous function) against each key/value pair in an array or object. This works much like iteration in a functional language.
The parameter names are neither special nor even required. The function is called with the curr... | I believe i is passed to the inner workings of Jquery for it to work out which value in the array to pass/use in the function. Without i Jquery cant tell where it is on the iteration. |
6,131,896 | Where I got stuck:
------------------
In my spare time I work on a private website. My self-teaching is *really* unstructured, and I've run up against a huge hole in my fundamentals.
I'm looking at a jQuery example from the jQuery API website, [serializeArray](http://api.jquery.com/serializeArray/), and I can't wrap ... | 2011/05/25 | [
"https://Stackoverflow.com/questions/6131896",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/769780/"
] | **Why does the function need two parameters?**
First of all you should read the documentation of [.each](http://api.jquery.com/jQuery.each/). It tells you that it expects a function defined as such:
```
callback(indexInArray, valueOfElement)
```
That has been decided, so you have to abide to it (the reasoning is be... | I believe i is passed to the inner workings of Jquery for it to work out which value in the array to pass/use in the function. Without i Jquery cant tell where it is on the iteration. |
6,131,896 | Where I got stuck:
------------------
In my spare time I work on a private website. My self-teaching is *really* unstructured, and I've run up against a huge hole in my fundamentals.
I'm looking at a jQuery example from the jQuery API website, [serializeArray](http://api.jquery.com/serializeArray/), and I can't wrap ... | 2011/05/25 | [
"https://Stackoverflow.com/questions/6131896",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/769780/"
] | **Why does the function need two parameters?**
First of all you should read the documentation of [.each](http://api.jquery.com/jQuery.each/). It tells you that it expects a function defined as such:
```
callback(indexInArray, valueOfElement)
```
That has been decided, so you have to abide to it (the reasoning is be... | The [`jQuery.each`](http://api.jquery.com/jQuery.each/) runs the function you provide (here, an anonymous function) against each key/value pair in an array or object. This works much like iteration in a functional language.
The parameter names are neither special nor even required. The function is called with the curr... |
366,496 | I've seen that both 'hoi polloi' and 'the hoi polloi' can be used. Does anyone know which is more accepted or correct? Or are they the same? | 2017/01/03 | [
"https://english.stackexchange.com/questions/366496",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/170840/"
] | In its definition of *[hoi polloi](http://unabridged.merriam-webster.com/unabridged/hoi%20polloi)*, M-W Unabridged notes:
>
> Since *hoi polloi* is a transliteration of the Greek for “the many,”
> some critics have asserted that the phrase should not be preceded by
> the. They find “the hoi polloi” to be redundant,... | From [this](http://www.phrases.org.uk/meanings/183475.html) article it seems like an article (the) is necessary because it translates directly to 'the many' |
366,496 | I've seen that both 'hoi polloi' and 'the hoi polloi' can be used. Does anyone know which is more accepted or correct? Or are they the same? | 2017/01/03 | [
"https://english.stackexchange.com/questions/366496",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/170840/"
] | In its definition of *[hoi polloi](http://unabridged.merriam-webster.com/unabridged/hoi%20polloi)*, M-W Unabridged notes:
>
> Since *hoi polloi* is a transliteration of the Greek for “the many,”
> some critics have asserted that the phrase should not be preceded by
> the. They find “the hoi polloi” to be redundant,... | I have been lectured by Brits that "the" should never be used, so English vs. American usage may be the crux of this question. |
230,299 | I've been looking for and thinking of a solution to the following but I cant come up with it, and hope someone can help me.
I have the following table:
```
ClientId RecordDateTime
-------- -------------------
1 2019-02-14 14:05:49
1 2019-02-14 14:06:34
1 2019-02-14 14:07:19
... | 2019/02/20 | [
"https://dba.stackexchange.com/questions/230299",
"https://dba.stackexchange.com",
"https://dba.stackexchange.com/users/172985/"
] | You need to do some grouping for it
```
CREATE TABLE Table1
([ClientId] int, [RecordDateTime] datetime)
;
INSERT INTO Table1
([ClientId], [RecordDateTime])
VALUES
(1, '2019-02-14 14:05:49'),
(1, '2019-02-14 14:06:34'),
(1, '2019-02-14 14:07:19'),
(1, '2019-02-14 14:08:49'),
(1, '2019-02-14... | For small and medium resultset , Recursive CTE is not bad and it is very simple.
In case my script is not working for any other sample data that means that Test case is not covered and please provide that sample data with output.
```
create table #temp(ClientId int,RecordDateTime Datetime)
insert into #temp values
(... |
57,649,122 | I want to wait till the execution of one loop is completed in below code.Dont intended to process next item in list until one is done. How to ensure that execution inside foreach loop is completed once at a time or one loop at a time in the below scenario
Please note, this is a sample code only to demonstrate the issu... | 2019/08/25 | [
"https://Stackoverflow.com/questions/57649122",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8143566/"
] | Use async await. `await` allows you to wait for a `Task` to finish without blocking the thread (thus your application won't freeze)
```cs
foreach(var itm in Items)
{
await MyFunction(itm);
}
// you must return Task to await it. void won't work
private Task MyFunction(int value)
{
// Task.Run is preferred over... | Task.Run returns a Task object that represents that work. You need to call Wait on that.
```
var myTask = Task.Run(() =>
{
MyFunction(itm);
});
myTask.Wait();
``` |
18,076,879 | RTFM is the most natural reply but I have tried that and it did not work.
This is what I have done so far:
1. Install all the necessary USB drivers from the vendor's site. The USB device is properly installed.
2. Add `android:debuggable="true"` to my manifest
3. Tried `adb devices` in command prompt and it s... | 2013/08/06 | [
"https://Stackoverflow.com/questions/18076879",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1894684/"
] | I have same issue with my Galaxy S3 (GT-I9300). I solved this issue after "Factory Data Reset". Now when i connect my phone with USB ,Eclipse shows my device perfectly.
Hope its helpful to you... | Download Samsung Kies mini And Than Try To Connect Your Device. |
18,076,879 | RTFM is the most natural reply but I have tried that and it did not work.
This is what I have done so far:
1. Install all the necessary USB drivers from the vendor's site. The USB device is properly installed.
2. Add `android:debuggable="true"` to my manifest
3. Tried `adb devices` in command prompt and it s... | 2013/08/06 | [
"https://Stackoverflow.com/questions/18076879",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1894684/"
] | I have same issue with my Galaxy S3 (GT-I9300). I solved this issue after "Factory Data Reset". Now when i connect my phone with USB ,Eclipse shows my device perfectly.
Hope its helpful to you... | I think this is due to the driver problem. Just install the drivers properly and try reconnecting it.
 this is a driver for S5830 similarly you should install drivers for your device |
18,076,879 | RTFM is the most natural reply but I have tried that and it did not work.
This is what I have done so far:
1. Install all the necessary USB drivers from the vendor's site. The USB device is properly installed.
2. Add `android:debuggable="true"` to my manifest
3. Tried `adb devices` in command prompt and it s... | 2013/08/06 | [
"https://Stackoverflow.com/questions/18076879",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1894684/"
] | You could try Run-> Run Configurations-> Target in eclipse and change it to always prompt to pick device. This worked for me in the past. | Install the software Moborobo
and then
Try Run-> Run Configurations-> Target in eclipse and change it to always prompt to pick device. |
18,076,879 | RTFM is the most natural reply but I have tried that and it did not work.
This is what I have done so far:
1. Install all the necessary USB drivers from the vendor's site. The USB device is properly installed.
2. Add `android:debuggable="true"` to my manifest
3. Tried `adb devices` in command prompt and it s... | 2013/08/06 | [
"https://Stackoverflow.com/questions/18076879",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1894684/"
] | I think this is due to the driver problem. Just install the drivers properly and try reconnecting it.
 this is a driver for S5830 similarly you should install drivers for your device | Install the software Moborobo
and then
Try Run-> Run Configurations-> Target in eclipse and change it to always prompt to pick device. |
18,076,879 | RTFM is the most natural reply but I have tried that and it did not work.
This is what I have done so far:
1. Install all the necessary USB drivers from the vendor's site. The USB device is properly installed.
2. Add `android:debuggable="true"` to my manifest
3. Tried `adb devices` in command prompt and it s... | 2013/08/06 | [
"https://Stackoverflow.com/questions/18076879",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1894684/"
] | My friend had similar problem, solution was restarting adb server. Try running:
```
adb kill-server
adb start-server
```
from command line. | You could try Run-> Run Configurations-> Target in eclipse and change it to always prompt to pick device. This worked for me in the past. |
18,076,879 | RTFM is the most natural reply but I have tried that and it did not work.
This is what I have done so far:
1. Install all the necessary USB drivers from the vendor's site. The USB device is properly installed.
2. Add `android:debuggable="true"` to my manifest
3. Tried `adb devices` in command prompt and it s... | 2013/08/06 | [
"https://Stackoverflow.com/questions/18076879",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1894684/"
] | I have same issue with my Galaxy S3 (GT-I9300). I solved this issue after "Factory Data Reset". Now when i connect my phone with USB ,Eclipse shows my device perfectly.
Hope its helpful to you... | Install the software Moborobo
and then
Try Run-> Run Configurations-> Target in eclipse and change it to always prompt to pick device. |
18,076,879 | RTFM is the most natural reply but I have tried that and it did not work.
This is what I have done so far:
1. Install all the necessary USB drivers from the vendor's site. The USB device is properly installed.
2. Add `android:debuggable="true"` to my manifest
3. Tried `adb devices` in command prompt and it s... | 2013/08/06 | [
"https://Stackoverflow.com/questions/18076879",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1894684/"
] | My friend had similar problem, solution was restarting adb server. Try running:
```
adb kill-server
adb start-server
```
from command line. | Install the software Moborobo
and then
Try Run-> Run Configurations-> Target in eclipse and change it to always prompt to pick device. |
18,076,879 | RTFM is the most natural reply but I have tried that and it did not work.
This is what I have done so far:
1. Install all the necessary USB drivers from the vendor's site. The USB device is properly installed.
2. Add `android:debuggable="true"` to my manifest
3. Tried `adb devices` in command prompt and it s... | 2013/08/06 | [
"https://Stackoverflow.com/questions/18076879",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1894684/"
] | My friend had similar problem, solution was restarting adb server. Try running:
```
adb kill-server
adb start-server
```
from command line. | Download Samsung Kies mini And Than Try To Connect Your Device. |
18,076,879 | RTFM is the most natural reply but I have tried that and it did not work.
This is what I have done so far:
1. Install all the necessary USB drivers from the vendor's site. The USB device is properly installed.
2. Add `android:debuggable="true"` to my manifest
3. Tried `adb devices` in command prompt and it s... | 2013/08/06 | [
"https://Stackoverflow.com/questions/18076879",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1894684/"
] | My friend had similar problem, solution was restarting adb server. Try running:
```
adb kill-server
adb start-server
```
from command line. | I think this is due to the driver problem. Just install the drivers properly and try reconnecting it.
 this is a driver for S5830 similarly you should install drivers for your device |
18,076,879 | RTFM is the most natural reply but I have tried that and it did not work.
This is what I have done so far:
1. Install all the necessary USB drivers from the vendor's site. The USB device is properly installed.
2. Add `android:debuggable="true"` to my manifest
3. Tried `adb devices` in command prompt and it s... | 2013/08/06 | [
"https://Stackoverflow.com/questions/18076879",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1894684/"
] | I have same issue with my Galaxy S3 (GT-I9300). I solved this issue after "Factory Data Reset". Now when i connect my phone with USB ,Eclipse shows my device perfectly.
Hope its helpful to you... | You could try Run-> Run Configurations-> Target in eclipse and change it to always prompt to pick device. This worked for me in the past. |
51,117,498 | I am completely new to programming. However, I just wanna write a simple bit of code on Python, that allows me to input any data and the type of the data is relayed or 'printed' back at me.
The current script I have is:
```
x = input()
print(x)
print(type(x))
```
However, regardless of i input a string, integer or... | 2018/06/30 | [
"https://Stackoverflow.com/questions/51117498",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10015517/"
] | In Python `input` always returns a `string`.
If you want to consider it as an `int` you have to convert it.
```
num = int(input('Choose a number: '))
print(num, type(num))
```
If you aren't sure of the type you can do:
```
num = input('Choose a number: ')
try:
num = int(num)
except:
pass
print(num, type(num... | 1111 or 1.10 are valid strings
------------------------------
If the user presses the "1" key four times and then Enter, there's no magic way to tell if they wanted to enter the number 1111 or the string "1111". The input function gives your program the arbitrary textual data entered by user as a string, and it's up t... |
6,365,448 | As per the title, it seems only Chrome isn't playign along. Note that form fields cannot be clicked on which are on the left portion of the screen. This only occurs on some pages (such as the Contact page). It appears that the #left\_outer div is overlaying the content. When I edit the css via Firebug or Chrome's dev t... | 2011/06/15 | [
"https://Stackoverflow.com/questions/6365448",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/262374/"
] | Usually when you have set the `z-index` property, but things aren't working as you might expect, it is related to the `position` attribute.
In order for `z-index` to work properly, the element needs to be "positioned". This means that it must have the `position` attribute set to one of `absolute`, `relative`, or `fix... | Without a link to look at, it's a bit tough to see what the problem might be.
Do you have a `z-index: -1;` anywhere (a negative number is the key here, doesn't matter the number)?
I have found in the past this renders the container void from being interacted with.
Good luck! |
6,365,448 | As per the title, it seems only Chrome isn't playign along. Note that form fields cannot be clicked on which are on the left portion of the screen. This only occurs on some pages (such as the Contact page). It appears that the #left\_outer div is overlaying the content. When I edit the css via Firebug or Chrome's dev t... | 2011/06/15 | [
"https://Stackoverflow.com/questions/6365448",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/262374/"
] | Usually when you have set the `z-index` property, but things aren't working as you might expect, it is related to the `position` attribute.
In order for `z-index` to work properly, the element needs to be "positioned". This means that it must have the `position` attribute set to one of `absolute`, `relative`, or `fix... | Google Chrome to 84.0.4147.135 (Official Build) (64-bit) 2020-02-22.
Since my last update, CSS element z-index is broken in Chrome.
Chrome added "z-index: 1;" to the BODY element.
It now wrongly displays all z-index: ?; values in the BODY child elements.
Setting the position, z-index of BODY does not solve the prob... |
6,365,448 | As per the title, it seems only Chrome isn't playign along. Note that form fields cannot be clicked on which are on the left portion of the screen. This only occurs on some pages (such as the Contact page). It appears that the #left\_outer div is overlaying the content. When I edit the css via Firebug or Chrome's dev t... | 2011/06/15 | [
"https://Stackoverflow.com/questions/6365448",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/262374/"
] | Usually when you have set the `z-index` property, but things aren't working as you might expect, it is related to the `position` attribute.
In order for `z-index` to work properly, the element needs to be "positioned". This means that it must have the `position` attribute set to one of `absolute`, `relative`, or `fix... | Markt's answer (see first answer) is great and this is the "by definition" of the z-index property.
Chrome's specific issue are usually related to the overflow property from the top container bottom.
So, for the following:
```
<div class="first-container">...</div>
<div class="second-container">
<div ...>
... |
6,365,448 | As per the title, it seems only Chrome isn't playign along. Note that form fields cannot be clicked on which are on the left portion of the screen. This only occurs on some pages (such as the Contact page). It appears that the #left\_outer div is overlaying the content. When I edit the css via Firebug or Chrome's dev t... | 2011/06/15 | [
"https://Stackoverflow.com/questions/6365448",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/262374/"
] | Markt's answer (see first answer) is great and this is the "by definition" of the z-index property.
Chrome's specific issue are usually related to the overflow property from the top container bottom.
So, for the following:
```
<div class="first-container">...</div>
<div class="second-container">
<div ...>
... | Google Chrome to 84.0.4147.135 (Official Build) (64-bit) 2020-02-22.
Since my last update, CSS element z-index is broken in Chrome.
Chrome added "z-index: 1;" to the BODY element.
It now wrongly displays all z-index: ?; values in the BODY child elements.
Setting the position, z-index of BODY does not solve the prob... |
6,365,448 | As per the title, it seems only Chrome isn't playign along. Note that form fields cannot be clicked on which are on the left portion of the screen. This only occurs on some pages (such as the Contact page). It appears that the #left\_outer div is overlaying the content. When I edit the css via Firebug or Chrome's dev t... | 2011/06/15 | [
"https://Stackoverflow.com/questions/6365448",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/262374/"
] | Usually when you have set the `z-index` property, but things aren't working as you might expect, it is related to the `position` attribute.
In order for `z-index` to work properly, the element needs to be "positioned". This means that it must have the `position` attribute set to one of `absolute`, `relative`, or `fix... | I know this is now resolved but posted solution didn't work for me. Here is what resolved my problem:
```
<act:AutoCompleteExtender ID="ace" runat="server" OnClientShown="clientShown">
</act:AutoCompleteExtender>
<script language="javascript" type="text/javascript">
function clientShown(ctl, args) {
ctl._... |
6,365,448 | As per the title, it seems only Chrome isn't playign along. Note that form fields cannot be clicked on which are on the left portion of the screen. This only occurs on some pages (such as the Contact page). It appears that the #left\_outer div is overlaying the content. When I edit the css via Firebug or Chrome's dev t... | 2011/06/15 | [
"https://Stackoverflow.com/questions/6365448",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/262374/"
] | Markt's answer (see first answer) is great and this is the "by definition" of the z-index property.
Chrome's specific issue are usually related to the overflow property from the top container bottom.
So, for the following:
```
<div class="first-container">...</div>
<div class="second-container">
<div ...>
... | I know this is now resolved but posted solution didn't work for me. Here is what resolved my problem:
```
<act:AutoCompleteExtender ID="ace" runat="server" OnClientShown="clientShown">
</act:AutoCompleteExtender>
<script language="javascript" type="text/javascript">
function clientShown(ctl, args) {
ctl._... |
6,365,448 | As per the title, it seems only Chrome isn't playign along. Note that form fields cannot be clicked on which are on the left portion of the screen. This only occurs on some pages (such as the Contact page). It appears that the #left\_outer div is overlaying the content. When I edit the css via Firebug or Chrome's dev t... | 2011/06/15 | [
"https://Stackoverflow.com/questions/6365448",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/262374/"
] | Without a link to look at, it's a bit tough to see what the problem might be.
Do you have a `z-index: -1;` anywhere (a negative number is the key here, doesn't matter the number)?
I have found in the past this renders the container void from being interacted with.
Good luck! | I know this is now resolved but posted solution didn't work for me. Here is what resolved my problem:
```
<act:AutoCompleteExtender ID="ace" runat="server" OnClientShown="clientShown">
</act:AutoCompleteExtender>
<script language="javascript" type="text/javascript">
function clientShown(ctl, args) {
ctl._... |
6,365,448 | As per the title, it seems only Chrome isn't playign along. Note that form fields cannot be clicked on which are on the left portion of the screen. This only occurs on some pages (such as the Contact page). It appears that the #left\_outer div is overlaying the content. When I edit the css via Firebug or Chrome's dev t... | 2011/06/15 | [
"https://Stackoverflow.com/questions/6365448",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/262374/"
] | I had a weird issue with zIndex on Chrome and I kept fiddling with the position attribute to see if anything worked. But, it didn't. Turns out, in my case, the issue was with the transform attribute. So, if you have a transform attribute in place, disable it and it should be fine. Other browsers work fine with stuff li... | Google Chrome to 84.0.4147.135 (Official Build) (64-bit) 2020-02-22.
Since my last update, CSS element z-index is broken in Chrome.
Chrome added "z-index: 1;" to the BODY element.
It now wrongly displays all z-index: ?; values in the BODY child elements.
Setting the position, z-index of BODY does not solve the prob... |
6,365,448 | As per the title, it seems only Chrome isn't playign along. Note that form fields cannot be clicked on which are on the left portion of the screen. This only occurs on some pages (such as the Contact page). It appears that the #left\_outer div is overlaying the content. When I edit the css via Firebug or Chrome's dev t... | 2011/06/15 | [
"https://Stackoverflow.com/questions/6365448",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/262374/"
] | Without a link to look at, it's a bit tough to see what the problem might be.
Do you have a `z-index: -1;` anywhere (a negative number is the key here, doesn't matter the number)?
I have found in the past this renders the container void from being interacted with.
Good luck! | I had a weird issue with zIndex on Chrome and I kept fiddling with the position attribute to see if anything worked. But, it didn't. Turns out, in my case, the issue was with the transform attribute. So, if you have a transform attribute in place, disable it and it should be fine. Other browsers work fine with stuff li... |
6,365,448 | As per the title, it seems only Chrome isn't playign along. Note that form fields cannot be clicked on which are on the left portion of the screen. This only occurs on some pages (such as the Contact page). It appears that the #left\_outer div is overlaying the content. When I edit the css via Firebug or Chrome's dev t... | 2011/06/15 | [
"https://Stackoverflow.com/questions/6365448",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/262374/"
] | Markt's answer (see first answer) is great and this is the "by definition" of the z-index property.
Chrome's specific issue are usually related to the overflow property from the top container bottom.
So, for the following:
```
<div class="first-container">...</div>
<div class="second-container">
<div ...>
... | I had a weird issue with zIndex on Chrome and I kept fiddling with the position attribute to see if anything worked. But, it didn't. Turns out, in my case, the issue was with the transform attribute. So, if you have a transform attribute in place, disable it and it should be fine. Other browsers work fine with stuff li... |
54,174 | Lately I've started learning some basic music theory and I have been trying to rationalize some of the interesting chords I have heard of from famous pieces. Here is an example of which I am not sure if my understanding is correct.
Below are bar 11-12 from Mozart's Piano Sonata No.11 in A major, K.331. I have marked t... | 2017/03/08 | [
"https://music.stackexchange.com/questions/54174",
"https://music.stackexchange.com",
"https://music.stackexchange.com/users/37541/"
] | You ask how to rationalise the progression. Here's how. It's a bare-bones B7, the dominant of the following chord, E, to which it resolves, delayed by a suspension. There's no room for all the notes of B7 in 3-part texture, but that's no reason to analyse it as something unnecessarily complicated. | I'm not exactly qualified to give you the classical language answer but conceptually I hope I point you in the right direction. I had to look up the difference between an appogiatura, a suspension etc. etc. In Jazz we tend to call all resolving non chord tones suspensions, but I'm pretty sure in classical music a suspe... |
54,174 | Lately I've started learning some basic music theory and I have been trying to rationalize some of the interesting chords I have heard of from famous pieces. Here is an example of which I am not sure if my understanding is correct.
Below are bar 11-12 from Mozart's Piano Sonata No.11 in A major, K.331. I have marked t... | 2017/03/08 | [
"https://music.stackexchange.com/questions/54174",
"https://music.stackexchange.com",
"https://music.stackexchange.com/users/37541/"
] | >
> If this is the case I was wondering how come the IV chord, as a pre-dominant chord, appears after the dominant chord vii° instead of before it? Why would the progression still sound inevitable when the strong dominant -> tonic progression is broken?
>
>
>
Due to the E as a root instead of an A, the second last... | I'm not exactly qualified to give you the classical language answer but conceptually I hope I point you in the right direction. I had to look up the difference between an appogiatura, a suspension etc. etc. In Jazz we tend to call all resolving non chord tones suspensions, but I'm pretty sure in classical music a suspe... |
54,174 | Lately I've started learning some basic music theory and I have been trying to rationalize some of the interesting chords I have heard of from famous pieces. Here is an example of which I am not sure if my understanding is correct.
Below are bar 11-12 from Mozart's Piano Sonata No.11 in A major, K.331. I have marked t... | 2017/03/08 | [
"https://music.stackexchange.com/questions/54174",
"https://music.stackexchange.com",
"https://music.stackexchange.com/users/37541/"
] | >
> If this is the case I was wondering how come the IV chord, as a pre-dominant chord, appears after the dominant chord vii° instead of before it? Why would the progression still sound inevitable when the strong dominant -> tonic progression is broken?
>
>
>
Due to the E as a root instead of an A, the second last... | You ask how to rationalise the progression. Here's how. It's a bare-bones B7, the dominant of the following chord, E, to which it resolves, delayed by a suspension. There's no room for all the notes of B7 in 3-part texture, but that's no reason to analyse it as something unnecessarily complicated. |
54,174 | Lately I've started learning some basic music theory and I have been trying to rationalize some of the interesting chords I have heard of from famous pieces. Here is an example of which I am not sure if my understanding is correct.
Below are bar 11-12 from Mozart's Piano Sonata No.11 in A major, K.331. I have marked t... | 2017/03/08 | [
"https://music.stackexchange.com/questions/54174",
"https://music.stackexchange.com",
"https://music.stackexchange.com/users/37541/"
] | You ask how to rationalise the progression. Here's how. It's a bare-bones B7, the dominant of the following chord, E, to which it resolves, delayed by a suspension. There's no room for all the notes of B7 in 3-part texture, but that's no reason to analyse it as something unnecessarily complicated. | The second chord could easily be the leading tone chord with the E functioning like an escape tone. That big jump up and the step down is typical of an escape tone.
The d sharp that resolves to an e in bar two gives the very real impression of a leading tone resolving, Im thinking E major. The notes in the top two voi... |
54,174 | Lately I've started learning some basic music theory and I have been trying to rationalize some of the interesting chords I have heard of from famous pieces. Here is an example of which I am not sure if my understanding is correct.
Below are bar 11-12 from Mozart's Piano Sonata No.11 in A major, K.331. I have marked t... | 2017/03/08 | [
"https://music.stackexchange.com/questions/54174",
"https://music.stackexchange.com",
"https://music.stackexchange.com/users/37541/"
] | >
> If this is the case I was wondering how come the IV chord, as a pre-dominant chord, appears after the dominant chord vii° instead of before it? Why would the progression still sound inevitable when the strong dominant -> tonic progression is broken?
>
>
>
Due to the E as a root instead of an A, the second last... | The second chord could easily be the leading tone chord with the E functioning like an escape tone. That big jump up and the step down is typical of an escape tone.
The d sharp that resolves to an e in bar two gives the very real impression of a leading tone resolving, Im thinking E major. The notes in the top two voi... |
39,640,684 | I have these in my header rather than under the body as it said bootstrap needs jQuery to run:
```
<script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha256-cCueBR6CsyA4/9szpPfrX3s49M9vUU5BgtiJj06wt/s=" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap... | 2016/09/22 | [
"https://Stackoverflow.com/questions/39640684",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6864067/"
] | HTML Some Unwanted div change HTML
```
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed navb... | 1. do not include jQuery twice (you have version 3.1.0 and 1.8.3)
2. Include bootstrap CSS
3. Include bootstrap-collapse plugin: <https://getbootstrap.com/javascript/#collapse> |
39,640,684 | I have these in my header rather than under the body as it said bootstrap needs jQuery to run:
```
<script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha256-cCueBR6CsyA4/9szpPfrX3s49M9vUU5BgtiJj06wt/s=" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap... | 2016/09/22 | [
"https://Stackoverflow.com/questions/39640684",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6864067/"
] | HTML Some Unwanted div change HTML
```
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed navb... | You have added two div with navbar-collapse collapse classes, remove the inner one before ul.
**See Demo**
```html
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<scrip... |
39,640,684 | I have these in my header rather than under the body as it said bootstrap needs jQuery to run:
```
<script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha256-cCueBR6CsyA4/9szpPfrX3s49M9vUU5BgtiJj06wt/s=" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap... | 2016/09/22 | [
"https://Stackoverflow.com/questions/39640684",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6864067/"
] | HTML Some Unwanted div change HTML
```
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed navb... | Remove the div on line 17 and its closing tag. Also, remove the extra closing divs on line 11 and 22.
```
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<but... |
18,514,346 | im very new to C# and ASP.Net. Does anybody know how to create a popup in Asp?
My scenario:
When I click on a button, it checks some states. If a condition is being fulfilled a popup shall be thrown due to the state (here: achieved percentages).
So 2 invidual Popup Windows shall be thrown by clicking the same button... | 2013/08/29 | [
"https://Stackoverflow.com/questions/18514346",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2729782/"
] | Hmm. Well, first of all,this code is probably so heavily I/O bound that optimizing anything but disk access is probably inconsequential. You might try throwing a pointless loop to 1000 before every if-test just to see how much difference that makes.
It doesn't appear like indexing would help you here, since you must a... | You are going in right direction with your proposed answer, but I would change it slightly to avoid using xecute (xecute and performance rarely play well) and make overall architecture a bit better.
Instead of deciding what to do in main routine and passing in only needed parameters, pass in all parameters and decide... |
18,514,346 | im very new to C# and ASP.Net. Does anybody know how to create a popup in Asp?
My scenario:
When I click on a button, it checks some states. If a condition is being fulfilled a popup shall be thrown due to the state (here: achieved percentages).
So 2 invidual Popup Windows shall be thrown by clicking the same button... | 2013/08/29 | [
"https://Stackoverflow.com/questions/18514346",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2729782/"
] | I have come up with a solution that works well for me. This might not be the perfect I was initially looking for, but it works for me for these reasons:
1. When I'm done with this work other programmers will periodically work on the reports and I want to make their life as easy as possible in this regard.
2. A report-... | You are going in right direction with your proposed answer, but I would change it slightly to avoid using xecute (xecute and performance rarely play well) and make overall architecture a bit better.
Instead of deciding what to do in main routine and passing in only needed parameters, pass in all parameters and decide... |
4,950,396 | We are getting a CommunicationsException (from DBCP) after iding for a while (a few hours). The error message (in the Exception) is at the end of this question - but I dont see wait\_timeout defined in any of the configuration files. (Where should we look? Somewhere out of the tomcat/conf directory?).
Secondly, as sug... | 2011/02/09 | [
"https://Stackoverflow.com/questions/4950396",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/580796/"
] | Since DBCP keeps returned mysql connections open for upcoming connection requests, they fall victims to the [MySQL Server timeout](http://dev.mysql.com/doc/refman/5.0/en/gone-away.html).
DBCP has a number of features that can help (can be used starting with Tomcat 5.5 IIRC).
```
validationQuery="SELECT 1"
testOnBorro... | DBCP is not meant for use in production, even the authors say that (see this presentation: <http://www.infoq.com/presentations/Tuning-Tomcat-Mark-Thomas>).
I suggest taking a look at C3P0: <http://www.mchange.com/projects/c3p0/index.html> |
17,487,538 | i am working with Sencha touch application like multiple choice Questions Quiz.
in sencha touch there is model-store concept,but i want to use database like Sqlite for Questions and answers.
so, is there any way to use database in Sencha toch ?
or can we make queries for databas operation ?
any help will be appr... | 2013/07/05 | [
"https://Stackoverflow.com/questions/17487538",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1992254/"
] | Take a look at the [Filter menu customization](http://demos.kendoui.com/web/grid/filter-menu-customization.html) demo. It appears you would do something along these lines:
```
@(Html.Kendo()
.Grid<MyClass>()
.Name("grid")
.DataSource(data =>
data.Ajax()
.Server... | If you have source code open kendo solution and find
class name `StringOperators` under `Kendo.Mvc/UI/Grid/Settings`
In `Operators = new Dictionary<string, string>()`
change the order as you wish , reBuild the solution and then overwrite generated file in your project. |
89,052 | We read in Lk 4: 38-39 :
>
> After leaving the synagogue he entered Simon’s house. Now Simon’s mother-in-law was suffering from a high fever, and they asked him about her. Then he stood over her and rebuked the fever, and it left her.
>
>
>
Elsewhere, we see Jesus rebuking the evil spirit (Lk 9: 42). But it is do... | 2022/01/17 | [
"https://christianity.stackexchange.com/questions/89052",
"https://christianity.stackexchange.com",
"https://christianity.stackexchange.com/users/21496/"
] | **What exactly did Jesus rebuke while healing the mother-in-law of Simon?**
English translations vary and if you do not mind I would like to use another version than the one you used. Translation can make a big difference. Thus I will use the Douay-Rheims 1899 American Edition (DRA). After all it is a Catholic Catholi... | On September 1, 2021, Fr. Simon, on his show Father Simon Says on Relevant Radio, discussed this.
<https://relevantradio.com/2021/09/father-simon-says-september-1-2021-orthodox-musings/>
>
> All right, let's go to the word of the day! [gong]
>
>
> Very interestingly, Jesus goes from the synagogue to Simon Peter's
... |
180,382 | Which one is the correct way of asking this question? When?
a) Why you changed your job?
b) Why did you change your Job?
c) Let me know why you changed your job?
d) Let me know why did you change your job? | 2018/09/21 | [
"https://ell.stackexchange.com/questions/180382",
"https://ell.stackexchange.com",
"https://ell.stackexchange.com/users/4084/"
] | Not in Standard English. Main clause interrogatives like this require subject-auxiliary inversion: "Where did you bring all these vegetables from?" Note that the plain verb-form "bring" is required after the auxiliary verb "did".
(answer transcribed from comment) | The format of the question is not quite correct. You need to have:
* auxiliary verb + subject + verb
So, we would say:
>
> Where **did** (*aux verb*) **you** (*subject*) **bring** (*verb*) all these vegetables from?
>
>
> |
8,132,594 | While making a project with Makefile, I get this error:
```
error: implicit declaration of function ‘fatal’ [-Werror=implicit-function-declaration]
cc1: all warnings being treated as errors
```
The `./configure --help` shows:
```
Optional Features:
--disable-option-checking ignore unrecognized --enable/--with o... | 2011/11/15 | [
"https://Stackoverflow.com/questions/8132594",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/859227/"
] | [Werror](https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Werror) is a GCC argument, and you cannot remove it directly via [./configure](https://en.wikipedia.org/wiki/Configure_script). Otherwise, an option like `--disable-error` would show up in the help text. However, it's possible.
Set an environment v... | It seems like the feature has been in [autotools](https://en.wikipedia.org/wiki/GNU_Autotools) for many years:
```
./configure --disable-werror
```
Unfortunately, I wasn't able to get the following specific case to work:
```
./configure --enable-wno-error=unused-value
```
Maybe it could work if one escaped the '`... |
8,132,594 | While making a project with Makefile, I get this error:
```
error: implicit declaration of function ‘fatal’ [-Werror=implicit-function-declaration]
cc1: all warnings being treated as errors
```
The `./configure --help` shows:
```
Optional Features:
--disable-option-checking ignore unrecognized --enable/--with o... | 2011/11/15 | [
"https://Stackoverflow.com/questions/8132594",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/859227/"
] | [Werror](https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Werror) is a GCC argument, and you cannot remove it directly via [./configure](https://en.wikipedia.org/wiki/Configure_script). Otherwise, an option like `--disable-error` would show up in the help text. However, it's possible.
Set an environment v... | This works for me, compiling curlpp on [Lubuntu](https://en.wikipedia.org/wiki/Lubuntu) 16.10:
```
./configure --disable-ewarning
``` |
8,132,594 | While making a project with Makefile, I get this error:
```
error: implicit declaration of function ‘fatal’ [-Werror=implicit-function-declaration]
cc1: all warnings being treated as errors
```
The `./configure --help` shows:
```
Optional Features:
--disable-option-checking ignore unrecognized --enable/--with o... | 2011/11/15 | [
"https://Stackoverflow.com/questions/8132594",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/859227/"
] | [Werror](https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Werror) is a GCC argument, and you cannot remove it directly via [./configure](https://en.wikipedia.org/wiki/Configure_script). Otherwise, an option like `--disable-error` would show up in the help text. However, it's possible.
Set an environment v... | I had to use `--disable-Werror` (with an uppercase `W`) on my module. While [sudoman's answer above](https://stackoverflow.com/a/24481662/474034) suggests to use `--disable-werror` (with a lowercase `w`).
It may look like a typo, but it is actually dependent on your particular `configure` setup, especially if `configu... |
8,132,594 | While making a project with Makefile, I get this error:
```
error: implicit declaration of function ‘fatal’ [-Werror=implicit-function-declaration]
cc1: all warnings being treated as errors
```
The `./configure --help` shows:
```
Optional Features:
--disable-option-checking ignore unrecognized --enable/--with o... | 2011/11/15 | [
"https://Stackoverflow.com/questions/8132594",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/859227/"
] | [Werror](https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Werror) is a GCC argument, and you cannot remove it directly via [./configure](https://en.wikipedia.org/wiki/Configure_script). Otherwise, an option like `--disable-error` would show up in the help text. However, it's possible.
Set an environment v... | I ran into this problem, and it turned out that GCC ***was not installed*** on my freshly-started [EC2](https://en.wikipedia.org/wiki/Amazon_Elastic_Compute_Cloud) instance running [Ubuntu 20.04](https://en.wikipedia.org/wiki/Ubuntu_version_history#Ubuntu_20.04_LTS_(Focal_Fossa)) (Focal Fossa).
Simply running `sudo ap... |
8,132,594 | While making a project with Makefile, I get this error:
```
error: implicit declaration of function ‘fatal’ [-Werror=implicit-function-declaration]
cc1: all warnings being treated as errors
```
The `./configure --help` shows:
```
Optional Features:
--disable-option-checking ignore unrecognized --enable/--with o... | 2011/11/15 | [
"https://Stackoverflow.com/questions/8132594",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/859227/"
] | It seems like the feature has been in [autotools](https://en.wikipedia.org/wiki/GNU_Autotools) for many years:
```
./configure --disable-werror
```
Unfortunately, I wasn't able to get the following specific case to work:
```
./configure --enable-wno-error=unused-value
```
Maybe it could work if one escaped the '`... | This works for me, compiling curlpp on [Lubuntu](https://en.wikipedia.org/wiki/Lubuntu) 16.10:
```
./configure --disable-ewarning
``` |
8,132,594 | While making a project with Makefile, I get this error:
```
error: implicit declaration of function ‘fatal’ [-Werror=implicit-function-declaration]
cc1: all warnings being treated as errors
```
The `./configure --help` shows:
```
Optional Features:
--disable-option-checking ignore unrecognized --enable/--with o... | 2011/11/15 | [
"https://Stackoverflow.com/questions/8132594",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/859227/"
] | It seems like the feature has been in [autotools](https://en.wikipedia.org/wiki/GNU_Autotools) for many years:
```
./configure --disable-werror
```
Unfortunately, I wasn't able to get the following specific case to work:
```
./configure --enable-wno-error=unused-value
```
Maybe it could work if one escaped the '`... | I had to use `--disable-Werror` (with an uppercase `W`) on my module. While [sudoman's answer above](https://stackoverflow.com/a/24481662/474034) suggests to use `--disable-werror` (with a lowercase `w`).
It may look like a typo, but it is actually dependent on your particular `configure` setup, especially if `configu... |
8,132,594 | While making a project with Makefile, I get this error:
```
error: implicit declaration of function ‘fatal’ [-Werror=implicit-function-declaration]
cc1: all warnings being treated as errors
```
The `./configure --help` shows:
```
Optional Features:
--disable-option-checking ignore unrecognized --enable/--with o... | 2011/11/15 | [
"https://Stackoverflow.com/questions/8132594",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/859227/"
] | It seems like the feature has been in [autotools](https://en.wikipedia.org/wiki/GNU_Autotools) for many years:
```
./configure --disable-werror
```
Unfortunately, I wasn't able to get the following specific case to work:
```
./configure --enable-wno-error=unused-value
```
Maybe it could work if one escaped the '`... | I ran into this problem, and it turned out that GCC ***was not installed*** on my freshly-started [EC2](https://en.wikipedia.org/wiki/Amazon_Elastic_Compute_Cloud) instance running [Ubuntu 20.04](https://en.wikipedia.org/wiki/Ubuntu_version_history#Ubuntu_20.04_LTS_(Focal_Fossa)) (Focal Fossa).
Simply running `sudo ap... |
8,132,594 | While making a project with Makefile, I get this error:
```
error: implicit declaration of function ‘fatal’ [-Werror=implicit-function-declaration]
cc1: all warnings being treated as errors
```
The `./configure --help` shows:
```
Optional Features:
--disable-option-checking ignore unrecognized --enable/--with o... | 2011/11/15 | [
"https://Stackoverflow.com/questions/8132594",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/859227/"
] | I had to use `--disable-Werror` (with an uppercase `W`) on my module. While [sudoman's answer above](https://stackoverflow.com/a/24481662/474034) suggests to use `--disable-werror` (with a lowercase `w`).
It may look like a typo, but it is actually dependent on your particular `configure` setup, especially if `configu... | This works for me, compiling curlpp on [Lubuntu](https://en.wikipedia.org/wiki/Lubuntu) 16.10:
```
./configure --disable-ewarning
``` |
8,132,594 | While making a project with Makefile, I get this error:
```
error: implicit declaration of function ‘fatal’ [-Werror=implicit-function-declaration]
cc1: all warnings being treated as errors
```
The `./configure --help` shows:
```
Optional Features:
--disable-option-checking ignore unrecognized --enable/--with o... | 2011/11/15 | [
"https://Stackoverflow.com/questions/8132594",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/859227/"
] | This works for me, compiling curlpp on [Lubuntu](https://en.wikipedia.org/wiki/Lubuntu) 16.10:
```
./configure --disable-ewarning
``` | I ran into this problem, and it turned out that GCC ***was not installed*** on my freshly-started [EC2](https://en.wikipedia.org/wiki/Amazon_Elastic_Compute_Cloud) instance running [Ubuntu 20.04](https://en.wikipedia.org/wiki/Ubuntu_version_history#Ubuntu_20.04_LTS_(Focal_Fossa)) (Focal Fossa).
Simply running `sudo ap... |
8,132,594 | While making a project with Makefile, I get this error:
```
error: implicit declaration of function ‘fatal’ [-Werror=implicit-function-declaration]
cc1: all warnings being treated as errors
```
The `./configure --help` shows:
```
Optional Features:
--disable-option-checking ignore unrecognized --enable/--with o... | 2011/11/15 | [
"https://Stackoverflow.com/questions/8132594",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/859227/"
] | I had to use `--disable-Werror` (with an uppercase `W`) on my module. While [sudoman's answer above](https://stackoverflow.com/a/24481662/474034) suggests to use `--disable-werror` (with a lowercase `w`).
It may look like a typo, but it is actually dependent on your particular `configure` setup, especially if `configu... | I ran into this problem, and it turned out that GCC ***was not installed*** on my freshly-started [EC2](https://en.wikipedia.org/wiki/Amazon_Elastic_Compute_Cloud) instance running [Ubuntu 20.04](https://en.wikipedia.org/wiki/Ubuntu_version_history#Ubuntu_20.04_LTS_(Focal_Fossa)) (Focal Fossa).
Simply running `sudo ap... |
15,769,521 | I ran the following code to install the underscore js module:
```
npm install -g underscore
```
I then tried to access it via the node console, but I get the following error:
```
node
> __ = require('underscore');
Error: Cannot find module 'underscore'
at Function.Module._resolveFilename (module.js:338:15)
at F... | 2013/04/02 | [
"https://Stackoverflow.com/questions/15769521",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/89761/"
] | I don't really know why, but it fails indeed (when installing underscore globally, as you have done).
If you install it without -g, it should work (be careful, however, as '\_' is already used by Node REPL to hold the result of the last operation, as explained here:
[Using the Underscore module with Node.js](https://... | I just had the same problem
```
$ export NODE_PATH=/usr/local/share/npm/lib/node_modules
```
sorted it out for me; this obviously depends on your platform and where npm has installed it. Also, as mentioned in Javo's answer, don't name it \_ in the REPL. |
5,149,982 | after exporting to p.12 in MacOSX, can i run the following 3 step in Linux? Or i must get it done in the same machine where i export to P.12 before i upload to Linux server to use with my php script?
```
openssl pkcs12 -clcerts -nokeys -out apns-dev-cert.pem -in apns-dev-cert.p12
openssl pkcs12 -nocerts -out apns-dev-... | 2011/03/01 | [
"https://Stackoverflow.com/questions/5149982",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/633765/"
] | ```
double dArray[][];
```
is Array-of-arrays while
```
double dArray[,];
```
is a two dimentional array.
it's easy enough to look them up.
[MSDN Reference link](http://msdn.microsoft.com/en-us/library/aa288453%28v=vs.71%29.aspx) | [See the official documentation](http://msdn.microsoft.com/en-us/library/2s05feca.aspx) (click on the *C#* tab). |
5,149,982 | after exporting to p.12 in MacOSX, can i run the following 3 step in Linux? Or i must get it done in the same machine where i export to P.12 before i upload to Linux server to use with my php script?
```
openssl pkcs12 -clcerts -nokeys -out apns-dev-cert.pem -in apns-dev-cert.p12
openssl pkcs12 -nocerts -out apns-dev-... | 2011/03/01 | [
"https://Stackoverflow.com/questions/5149982",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/633765/"
] | ```
double dArray[][];
```
is Array-of-arrays while
```
double dArray[,];
```
is a two dimentional array.
it's easy enough to look them up.
[MSDN Reference link](http://msdn.microsoft.com/en-us/library/aa288453%28v=vs.71%29.aspx) | The last syntax is easy, it declares a multidimensional array of doubles. Imagine the array is 3x2, then there would be 6 doubles in the array.
The 1st syntax declares a jagged array. The second syntax is rectangular or square, but this syntax need not be. You could have three rows, followed by 3 columns, then 2 colum... |
5,149,982 | after exporting to p.12 in MacOSX, can i run the following 3 step in Linux? Or i must get it done in the same machine where i export to P.12 before i upload to Linux server to use with my php script?
```
openssl pkcs12 -clcerts -nokeys -out apns-dev-cert.pem -in apns-dev-cert.p12
openssl pkcs12 -nocerts -out apns-dev-... | 2011/03/01 | [
"https://Stackoverflow.com/questions/5149982",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/633765/"
] | ```
double dArray[][];
```
is Array-of-arrays while
```
double dArray[,];
```
is a two dimentional array.
it's easy enough to look them up.
[MSDN Reference link](http://msdn.microsoft.com/en-us/library/aa288453%28v=vs.71%29.aspx) | The first is an array of `double` arrays, meaning each separate element in `dArray` can contain a different number of doubles depending on the length of the array.
```
double[][] dArray = new double[3][];
dArray[0] = new double[3];
dArray[1] = new double[2];
dArray[2] = new double[4];
Index
0 ... |
5,149,982 | after exporting to p.12 in MacOSX, can i run the following 3 step in Linux? Or i must get it done in the same machine where i export to P.12 before i upload to Linux server to use with my php script?
```
openssl pkcs12 -clcerts -nokeys -out apns-dev-cert.pem -in apns-dev-cert.p12
openssl pkcs12 -nocerts -out apns-dev-... | 2011/03/01 | [
"https://Stackoverflow.com/questions/5149982",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/633765/"
] | The last syntax is easy, it declares a multidimensional array of doubles. Imagine the array is 3x2, then there would be 6 doubles in the array.
The 1st syntax declares a jagged array. The second syntax is rectangular or square, but this syntax need not be. You could have three rows, followed by 3 columns, then 2 colum... | [See the official documentation](http://msdn.microsoft.com/en-us/library/2s05feca.aspx) (click on the *C#* tab). |
5,149,982 | after exporting to p.12 in MacOSX, can i run the following 3 step in Linux? Or i must get it done in the same machine where i export to P.12 before i upload to Linux server to use with my php script?
```
openssl pkcs12 -clcerts -nokeys -out apns-dev-cert.pem -in apns-dev-cert.p12
openssl pkcs12 -nocerts -out apns-dev-... | 2011/03/01 | [
"https://Stackoverflow.com/questions/5149982",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/633765/"
] | The first is an array of `double` arrays, meaning each separate element in `dArray` can contain a different number of doubles depending on the length of the array.
```
double[][] dArray = new double[3][];
dArray[0] = new double[3];
dArray[1] = new double[2];
dArray[2] = new double[4];
Index
0 ... | [See the official documentation](http://msdn.microsoft.com/en-us/library/2s05feca.aspx) (click on the *C#* tab). |
40,262,413 | I wanted to use CloudFlare for my website (hosted on Microsoft Azure).
I have added my domain to Cloudflare, and changed my domains nameservers to the ones I got from Cloudflare.
Furthermore, cloudflare imported my current DNS settings which are the following (my domain has been replaced with domain.com):
[![enter i... | 2016/10/26 | [
"https://Stackoverflow.com/questions/40262413",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6047390/"
] | For the first issue...if you are seeing inconsistent responses from your Azure Website, they you should raise an Azure support ticket.
For the second issue...try verifying the CLOUDFLARE DNS resolution via <http://digwebinterface.com>, both via a recursive DNS service and by querying against the CLOUDFLARE name server... | You need both @ and www CNAME specified in your host records. Not just www.
the refresh is normal after you make a dns change. The browser keeps the dns lookup in cache, so if you visit the site on another browser you won't have to do a refresh. Just clear your browser cache when you want to see dns changes, but some ... |
443,268 | В анкетах и формах ввода данных часто встречаются следующие конструкции:
>
> Фамилия: Говоров.
>
>
> Пол: мужской.
>
>
> Образование: высшее.
>
>
> Телефон: 89151234567.
>
>
> Адрес: г. Москва, ул. Ленина, д. 1.
>
>
>
Каким членом предложения является слово после двоеточия? | 2018/08/05 | [
"https://rus.stackexchange.com/questions/443268",
"https://rus.stackexchange.com",
"https://rus.stackexchange.com/users/189895/"
] | В анкетах после двоеточия стоит сказуемое. Назван предмет и его признак, в этом случае предмет - это подлежащее, а признак - сказуемое. Такое определение есть у Розенталя: Сказуемое - главный член двусоставного предложения, выражающий признак предмета, названного подлежащим. Всё вроде сходится.
Цель урока: научиться р... | Думаю, это вообще не есть полноценные предложения, потому и говорить о членах смысла нет. Интересно, в связи с чем такой вопрос? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.