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 |
|---|---|---|---|---|---|
25,055,712 | `Dataframe.resample()` works only with timeseries data. I cannot find a way of getting every nth row from non-timeseries data. What is the best method? | 2014/07/31 | [
"https://Stackoverflow.com/questions/25055712",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1014352/"
] | I'd use `iloc`, which takes a row/column slice, both based on integer position and following normal python syntax. If you want every 5th row:
```
df.iloc[::5, :]
``` | Though @chrisb's accepted answer does answer the question, I would like to add to it the following.
A simple method I use to get the `nth` data or drop the `nth` row is the following:
```
df1 = df[df.index % 3 != 0] # Excludes every 3rd row starting from 0
df2 = df[df.index % 3 == 0] # Selects every 3rd raw startin... |
24,415,148 | I have a page that references an external javascript file, and when I tell it run a function onload, it is giving me errors (I assume because it is firing before the page is loaded.) "Cannot set property 'innerHTML' of null"
What do I need to do here to fire run() after the page is loaded?
HTML
```
<!DOCTYPE html>
... | 2014/06/25 | [
"https://Stackoverflow.com/questions/24415148",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1229571/"
] | Your Rails -v and Ruby -v are correct for this tutorial.
I can also see from the input that your `gemfile` has `gem 'sqlite3', '1.3.8'` in it.
1: Have you bundled?
--------------------
When was the last time you ran `bundle update` or `bundle install`?
How did you go about uninstalling sqlite3? Did you use `$ gem ... | I experienced the same issue, I just switched to a different ruby version
e.g;
```
rvm use 1.9.3-p484
```
and then bundle again. |
589,001 | 1) Assume that there exist homomorphisms $f:\mathbb{Z} \rightarrow S\_{3}$ where $\ker(f)\neq \mathbb{Z}$? What are the possible kernels? Explain.
2) Lest at least two non-trivial homomorphisms $f:\mathbb{Z} \rightarrow S\_{3}$ whose kernel are not $\mathbb{Z}$. | 2013/12/02 | [
"https://math.stackexchange.com/questions/589001",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/112778/"
] | Note that if $\ker(f) \neq \mathbb{Z}$, then $f(1) \neq e$ ($e$ referring to the identity of $S\_3$). Why?
With the above established, we have two possibilities: either the order of $f(1)$ is $2$, or the order of $f(1)$ is $3$. In the first case, we have $f(2k) = f(2)^k = e^k = e$, so that $\ker(f) = 2\mathbb{Z}$. Sim... | Hint : $\mathbb{Z}\_2$ and $\mathbb{Z}\_3$ are subgroups of $S\_3$ (of course upto isomorphism) . |
40,454,714 | I'm dying to solve my problem with autogenerated input in a span. I'm using the Wordpress plugin Contact Form 7 on my website and I want so animate the label while the user in using the input field.
When the input-field is on focus or something is typed in it, the class active should appear in the div with the class ... | 2016/11/06 | [
"https://Stackoverflow.com/questions/40454714",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6291344/"
] | Your logic looks fine, although instead walking up two parent nodes, I'd suggest crawling up the DOM tree until you find the class you're looking for. That way it is less likely to break with changes to the DOM. In vanilla javascript something like the following should do the job. Note that it uses [classList](http://c... | Do you use CSS for this ?
I think u can achieve it easily with CSS3
```
<div class="grid-3">
<label for="schenkel2">Schenkel 2 in mm</label>
<span class="wpcf7-form-control-wrap schenkel2">
<input type="text" name="schenkel2" value="" size="40" class="wpcf7-form-control wpcf7-text inputHover" id="schenkel2" aria-i... |
59,384,333 | I have some text that i am trying to change the styling on based on route name.I have set up 2 route names, ads and webs and have set up a watcher to watch the routes. If the route name is either ads or webs i want the text to have `color:white;background-color:orange`. But i am not sure how to do it.
```js
new Vue({
... | 2019/12/18 | [
"https://Stackoverflow.com/questions/59384333",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11505813/"
] | I'd create a computed property to represent if the current route matches your criteria.
```js
computed: {
highlight () {
return this.$route.matched.some(({ name }) => /^(ad|web)s$/.test(name))
}
}
```
Then you can use that in a `class` binding expression.
```html
<span :class="{ highlight }">Text goes here... | I guess you are missing the route vuejs plugin and name your application into the route name too. Here the full example. Hope you get what you want
```js
const Foo = { template: '<div>foo</div>' }
const Bar = { template: '<div>bar</div>' }
const routes = [
{ path: '/foo', component: Foo, name: 'ads' },
{ path... |
42,499 | Simon Blackburn is describing the Poetic Interpretation of ascending from Plato's Cave:
>
> Part of the charm of Plato is the sense of being in a world in which these fractures did not exist. Ours may be a world in which there is a division between fact on the one hand, and value on the other. But his world is, in th... | 2017/05/18 | [
"https://philosophy.stackexchange.com/questions/42499",
"https://philosophy.stackexchange.com",
"https://philosophy.stackexchange.com/users/4506/"
] | "Does [Selfish desire has no place in the pure aesthetic experience] mean that purity comes with the consequence of selflessness? That if one is clean and pure they must be selfless?"
No, no, no. the causal relationship is the other way around. It is not the selflessness that allows you to experience purity, but it is... | I believe that the phrase explains that beauty in aesthetics is an a priori knowledge that is simultaneously the highest positive value and personification of truth. Aesthetics is an experiential phenomena that is external to ourselves and, ostensibly, is an appreciation for the truth of beauty (which is perceived as a... |
2,073,574 | I am using the [python-ldap](http://www.python-ldap.org/) module to (amongst other things) search for groups, and am running into the server's size limit and getting a `SIZELIMIT_EXCEEDED` exception. I have tried both synchronous and asynchronous searches and hit the problem both ways.
You are supposed to be able to w... | 2010/01/15 | [
"https://Stackoverflow.com/questions/2073574",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/206417/"
] | Here are some links related to paging in python-ldap.
* Documentation: <http://www.python-ldap.org/doc/html/ldap-controls.html#ldap.controls.SimplePagedResultsControl>
* Example code using paging: <http://www.novell.com/coolsolutions/tip/18274.html>
* More example code: <http://google-apps-for-your-domain-ldap-sync.go... | After some discussion on the python-ldap-dev mailing list, I can answer my own question.
Page controls ARE supported by the Python lDAP module, but the docs had not been updated for search\_ext to show that. The [example linked by Gorgapor](http://www.novell.com/coolsolutions/tip/18274.html) shows how to use the ldap... |
49,423,221 | My date range is
```
var currDay = Jan.1
var birthday = Feb.15
```
I know that to find the difference in number of weeks is
```
currDay.diff(birthday, 'week')
```
However, is there a way to find the full weeks and the remaining days? | 2018/03/22 | [
"https://Stackoverflow.com/questions/49423221",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2394970/"
] | You can make use of [`duration`](http://momentjs.com/docs/#/durations/).
You can get the years, months (excludes years) and days (excludes years and months) using this. Only problem is weeks are calculated using the value of days so you'd still have to get the remainder on days if you're getting the number of weeks.
... | ```js
var currDay = moment("Jan.1","MMM.DD");
var birthday = moment("Feb.15","MMM.DD");
var diff = moment.duration(birthday.diff(currDay));
console.log(diff.weeks() +" weeks & "+ diff.days()%7 +" days to go for birthday");
```
```html
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.21.0/moment.min... |
45,434,944 | I made a sample form validation using only plain javascript. Everything was ok until I decided to store the two functions inside an event callback function. I did it so my javascript file can only have lesser lines of code. The callback function can only execute one function.
```js
var query = document.querySelector.b... | 2017/08/01 | [
"https://Stackoverflow.com/questions/45434944",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | You should do this as a two-step process: First you parse out the `CompatibleVersions` attribute, and then you split out those version numbers. Otherwise you will have difficulties finding the version numbers individually without likely finding otheer version-like numbers.
```
$s = '[assembly: CompatibleVersions("1.7.... | You may use
```
$s | select-string -pattern "\d+(?:\.\d+)+" -AllMatches | Foreach {$_.Matches} | ForEach-Object {$_.Value}
```
The `\d+(?:\.\d+)+` pattern will match:
* `\d+` - 1 or more digits
* `(?:\.\d+)+` - 1 or more sequences of a `.` and 1+ digits.
[+" -AllMatches | Foreach {$_.Matches} | ForEach-Object {$_.Value}
```
The `\d+(?:\.\d+)+` pattern will match:
* `\d+` - 1 or more digits
* `(?:\.\d+)+` - 1 or more sequences of a `.` and 1+ digits.
["'` will match any substring composed of dots and digits (`\d`) and comprised into double quotes (")
[Try it here](https://regex101.com/r/lh4cv1/1) |
45,434,944 | I made a sample form validation using only plain javascript. Everything was ok until I decided to store the two functions inside an event callback function. I did it so my javascript file can only have lesser lines of code. The callback function can only execute one function.
```js
var query = document.querySelector.b... | 2017/08/01 | [
"https://Stackoverflow.com/questions/45434944",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | You may use
```
$s | select-string -pattern "\d+(?:\.\d+)+" -AllMatches | Foreach {$_.Matches} | ForEach-Object {$_.Value}
```
The `\d+(?:\.\d+)+` pattern will match:
* `\d+` - 1 or more digits
* `(?:\.\d+)+` - 1 or more sequences of a `.` and 1+ digits.
[(?:\.(?:[1-9]\d*|0)){3}"(?:,"(?:[1-9]\d*|0)(?:\.(?:[1-9]\d*|0)){3}")*\)]$
```
[Here](https://regex101.com/r/wEcCk3/2) is the regex with t... |
45,434,944 | I made a sample form validation using only plain javascript. Everything was ok until I decided to store the two functions inside an event callback function. I did it so my javascript file can only have lesser lines of code. The callback function can only execute one function.
```js
var query = document.querySelector.b... | 2017/08/01 | [
"https://Stackoverflow.com/questions/45434944",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | You should do this as a two-step process: First you parse out the `CompatibleVersions` attribute, and then you split out those version numbers. Otherwise you will have difficulties finding the version numbers individually without likely finding otheer version-like numbers.
```
$s = '[assembly: CompatibleVersions("1.7.... | Start by grabbing the parentheses pair and everything inside:
```
$string = '[assembly: CompatibleVersions("1.7.1.0","1.7.1.1","1.2.2.3")]'
if($string -match '\(([^)]+)\)'){
# Remove the parentheses themselves, split by comma and then trim the "
$versionList = $Matches[0].Trim("()") -split ',' |ForEach-Object ... |
45,434,944 | I made a sample form validation using only plain javascript. Everything was ok until I decided to store the two functions inside an event callback function. I did it so my javascript file can only have lesser lines of code. The callback function can only execute one function.
```js
var query = document.querySelector.b... | 2017/08/01 | [
"https://Stackoverflow.com/questions/45434944",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | Start by grabbing the parentheses pair and everything inside:
```
$string = '[assembly: CompatibleVersions("1.7.1.0","1.7.1.1","1.2.2.3")]'
if($string -match '\(([^)]+)\)'){
# Remove the parentheses themselves, split by comma and then trim the "
$versionList = $Matches[0].Trim("()") -split ',' |ForEach-Object ... | `'"([.\d]+)"'` will match any substring composed of dots and digits (`\d`) and comprised into double quotes (")
[Try it here](https://regex101.com/r/lh4cv1/1) |
45,434,944 | I made a sample form validation using only plain javascript. Everything was ok until I decided to store the two functions inside an event callback function. I did it so my javascript file can only have lesser lines of code. The callback function can only execute one function.
```js
var query = document.querySelector.b... | 2017/08/01 | [
"https://Stackoverflow.com/questions/45434944",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | Start by grabbing the parentheses pair and everything inside:
```
$string = '[assembly: CompatibleVersions("1.7.1.0","1.7.1.1","1.2.2.3")]'
if($string -match '\(([^)]+)\)'){
# Remove the parentheses themselves, split by comma and then trim the "
$versionList = $Matches[0].Trim("()") -split ',' |ForEach-Object ... | A number between .. can be 0, but cannot be 00, 01 or similar.
Pay attention to the starting [
This is a regex for the check:
```
^\[assembly: CompatibleVersions\("(?:[1-9]\d*|0)(?:\.(?:[1-9]\d*|0)){3}"(?:,"(?:[1-9]\d*|0)(?:\.(?:[1-9]\d*|0)){3}")*\)]$
```
[Here](https://regex101.com/r/wEcCk3/2) is the regex with t... |
45,434,944 | I made a sample form validation using only plain javascript. Everything was ok until I decided to store the two functions inside an event callback function. I did it so my javascript file can only have lesser lines of code. The callback function can only execute one function.
```js
var query = document.querySelector.b... | 2017/08/01 | [
"https://Stackoverflow.com/questions/45434944",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | You should do this as a two-step process: First you parse out the `CompatibleVersions` attribute, and then you split out those version numbers. Otherwise you will have difficulties finding the version numbers individually without likely finding otheer version-like numbers.
```
$s = '[assembly: CompatibleVersions("1.7.... | `'"([.\d]+)"'` will match any substring composed of dots and digits (`\d`) and comprised into double quotes (")
[Try it here](https://regex101.com/r/lh4cv1/1) |
45,434,944 | I made a sample form validation using only plain javascript. Everything was ok until I decided to store the two functions inside an event callback function. I did it so my javascript file can only have lesser lines of code. The callback function can only execute one function.
```js
var query = document.querySelector.b... | 2017/08/01 | [
"https://Stackoverflow.com/questions/45434944",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | You should do this as a two-step process: First you parse out the `CompatibleVersions` attribute, and then you split out those version numbers. Otherwise you will have difficulties finding the version numbers individually without likely finding otheer version-like numbers.
```
$s = '[assembly: CompatibleVersions("1.7.... | A number between .. can be 0, but cannot be 00, 01 or similar.
Pay attention to the starting [
This is a regex for the check:
```
^\[assembly: CompatibleVersions\("(?:[1-9]\d*|0)(?:\.(?:[1-9]\d*|0)){3}"(?:,"(?:[1-9]\d*|0)(?:\.(?:[1-9]\d*|0)){3}")*\)]$
```
[Here](https://regex101.com/r/wEcCk3/2) is the regex with t... |
9,295 | So I'm trying to find a way to download a report from salesforce programmatically, to a local machine.
so, I've found the XMLStreamWriter class, and am writing the XML just fine... I'm just wondering if it is possible to save this XML string to a file and then downloading it. Has anyone done something similar to this ... | 2013/03/06 | [
"https://salesforce.stackexchange.com/questions/9295",
"https://salesforce.stackexchange.com",
"https://salesforce.stackexchange.com/users/2273/"
] | I've worked on this multiple times recently for a client who needs to output various fixed width file formats - not quite the same situation as you, but once you've got yourself down to a string it's a piece of cake.
Check out this Gist for some boilerplate to get you going: <https://gist.github.com/Oblongmana/78c2807... | Although the above answer is the better solution IMO (and I have upvoted), this is an alternative solution I helped create a few years back. The scenario was similar, a fixed-width file needed to be generated and extracted twice a day.
The solution was to build a custom object where each record stored a line of the fi... |
7,956,631 | I am trying to call a php function from .net. I tried to a webrequest method but I am not sure how to specify the function to call in the url. A link below shows the method I am trying to call.
Thanks in advance for any help
<http://codex.wordpress.org/Function_Reference/wp_hash_password> | 2011/10/31 | [
"https://Stackoverflow.com/questions/7956631",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/686715/"
] | You would first need to create a webpage on the PHP server that calls the function you want, and returns the results (ideally in SOAP or XML format). Then, you can GET that webpage through the .NET WebRequest mechanism as you pointed out. | To call the function from C# you have to create a PHP file that executes the function, for example
`http://www.somesite.com/ScriptWithTheFunction.php`
with the content:
```
<?php
//your includes here
//You can set the value of $password from a $_GET parameter
echo wp_hash_password( $password );
```
... |
69,482,458 | I'm working on an implementation of EfficientNet in Tensorflow. My model is overfitting and predicting all three classes as just a single class. My training and validation accuracy is in the 99% after a few epochs and my loss is <0.5. I have 32,000 images between the three classes (12, 8, 12).
My hypothesis is that it... | 2021/10/07 | [
"https://Stackoverflow.com/questions/69482458",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14059931/"
] | Well first off you are writing more code than you need to. In train\_ds and val\_ds you did not specify the parameter label\_mode. By default it is set to 'int'. Which means your labels will be integers. This is fine if your compile your model using loss=tf.keras.losses.SparseCategoricalCrossentropy. If you had set
``... | If you use `labels='inferred'`, you should also specify `class_names` which will be the name of the three folders you're getting images from. |
3,108,987 | My tempdb size is growing too much, as we are doing too many transactions in the database. Can someone let me know how to shrink this tempdb without restarting the server. I have tried DBCC SHRINKDATABASE and it didn't help
Thanks in advance | 2010/06/24 | [
"https://Stackoverflow.com/questions/3108987",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/375115/"
] | Your tempdb is the size it needs to be...
It will just grow again, just even more fragmented on disk and possibly blocking while it grows too.
More seriously, I'd set the size of tempdb to soemthing sensible and slightly larger than now, shut down SQL, delete the old files to be 110% sure, start SQL Server up again..... | Shrink the data files. From tempdb:
```
dbcc shrinkfile ('tempdev')
dbcc shrinkfile ('templog')
```
If you have other data files for tempdb you may need to shrink them also. You can see this from the system data dictionary. Look in the 'name' column.
```
select * from sys.database_files
``` |
3,108,987 | My tempdb size is growing too much, as we are doing too many transactions in the database. Can someone let me know how to shrink this tempdb without restarting the server. I have tried DBCC SHRINKDATABASE and it didn't help
Thanks in advance | 2010/06/24 | [
"https://Stackoverflow.com/questions/3108987",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/375115/"
] | I have found shrinking the tempdb to often be a troublesome task.
The solution I have used previously is to set the initial size of the tempdb database to be the actual desired size of the database. Restarting the SQL Server Service will then re-create the tempdb database to this sepcified size.
You may also find the... | Shrink the data files. From tempdb:
```
dbcc shrinkfile ('tempdev')
dbcc shrinkfile ('templog')
```
If you have other data files for tempdb you may need to shrink them also. You can see this from the system data dictionary. Look in the 'name' column.
```
select * from sys.database_files
``` |
3,108,987 | My tempdb size is growing too much, as we are doing too many transactions in the database. Can someone let me know how to shrink this tempdb without restarting the server. I have tried DBCC SHRINKDATABASE and it didn't help
Thanks in advance | 2010/06/24 | [
"https://Stackoverflow.com/questions/3108987",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/375115/"
] | Your tempdb is the size it needs to be...
It will just grow again, just even more fragmented on disk and possibly blocking while it grows too.
More seriously, I'd set the size of tempdb to soemthing sensible and slightly larger than now, shut down SQL, delete the old files to be 110% sure, start SQL Server up again..... | Even with "DBCC SHRINKFILE" you can receive warning like "DBCC SHRINKFILE: Page 1:878039 could not be moved because it is a work file page." that lead to no shrinking.
I found a blog that explain well that situation and tell how to workaround and how to successfully shrink tempdb without restarting SQL:
<http://advent... |
3,108,987 | My tempdb size is growing too much, as we are doing too many transactions in the database. Can someone let me know how to shrink this tempdb without restarting the server. I have tried DBCC SHRINKDATABASE and it didn't help
Thanks in advance | 2010/06/24 | [
"https://Stackoverflow.com/questions/3108987",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/375115/"
] | I have found shrinking the tempdb to often be a troublesome task.
The solution I have used previously is to set the initial size of the tempdb database to be the actual desired size of the database. Restarting the SQL Server Service will then re-create the tempdb database to this sepcified size.
You may also find the... | Even with "DBCC SHRINKFILE" you can receive warning like "DBCC SHRINKFILE: Page 1:878039 could not be moved because it is a work file page." that lead to no shrinking.
I found a blog that explain well that situation and tell how to workaround and how to successfully shrink tempdb without restarting SQL:
<http://advent... |
34,014,790 | I am making a custom adapter extending ArrayAdapter. When I extend BaseAdapter, it works fine, but when I use ArrayAdapter, it shows error on super(). My Adapter code:
CustomAdapter.java
```
public class CustomAdapter extends ArrayAdapter {
private final Context context;
private List<String> Title=new ArrayList<Stri... | 2015/12/01 | [
"https://Stackoverflow.com/questions/34014790",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4810235/"
] | take a look at java basics for explanation.
This is an extract:
"You don't have to provide any `constructors` for your class, but you must be careful when doing this. The compiler automatically provides a no-argument, default `constructor` for any class without `constructors`. This default `constructor` will call the n... | You need to pass parameter to super(), replace **super()** with following
```
super(context,title,dis,desc);
``` |
23,385,325 | How to change an image to the next one in the array using a for loop, once a button has been clicked. At present I have this in my on click method.
```
int[] Pics = {R.drawable.pic1, R.drawable.pic2, R.drawable.pic3};
for (int i=0; i<Pics.length; i++){
mainpic.setImageResource(Pics[i]);
}
```
The problem ... | 2014/04/30 | [
"https://Stackoverflow.com/questions/23385325",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3535866/"
] | the answer is they all get separated by slashes as shown below
```
<HttpGet()> _
<Route("getsinglerangeprojection/symboltype/{symboltype:int}/symbol/{symbol}/requestdate/{requestDate:datetime}")> _
Public Function GetSingleRangeProjection(ByVal symboltype As Integer,
ByVal s... | You should create a model to represent your data like this
```
public class MyData
{
public string symboltype { get; set; }
public string symbol { get; set; }
public DateTime requestData { get; set; }
}
```
And change your method to use the model or **JObject** as the parameter.
F... |
3,432,389 | The original question: If we have a sequence of real numbers and on that, we define a sequence of $n^{th}$ rational numbers and another of irrational numbers, then they are both subsequences of the original sequence of real numbers?
In other words, can a rational sequence be a complementary subsequence of an irrationa... | 2019/11/12 | [
"https://math.stackexchange.com/questions/3432389",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/700226/"
] | Consider $(a\_n)$ given by
$a\_{2n}= \frac{\sqrt{2}}{2n}$ and $a\_{2n-1}= \frac{1}{2n-1}.$ | Consider the sequence $$1, 1.4, 1.41, 1.414, 1.4142\ldots$$ that converges to $\sqrt 2$, and the sequence $$\sqrt 2,\sqrt 2,\sqrt 2,\sqrt 2\ldots$$ that also converges to $\sqrt 2$. |
3,432,389 | The original question: If we have a sequence of real numbers and on that, we define a sequence of $n^{th}$ rational numbers and another of irrational numbers, then they are both subsequences of the original sequence of real numbers?
In other words, can a rational sequence be a complementary subsequence of an irrationa... | 2019/11/12 | [
"https://math.stackexchange.com/questions/3432389",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/700226/"
] | >
> Can a rational sequence and an irrational sequence have same limit?
>
>
>
Yes. Take the sequence of irrational numbers $\frac{1}{\sqrt{p}}$ as $p\rightarrow \infty$, which converges to zero. Now consider the sequence of rational numbers $\frac{1}{p}$, as $p\rightarrow \infty$, which converges to zero.
>
> Ca... | Consider the sequence $$1, 1.4, 1.41, 1.414, 1.4142\ldots$$ that converges to $\sqrt 2$, and the sequence $$\sqrt 2,\sqrt 2,\sqrt 2,\sqrt 2\ldots$$ that also converges to $\sqrt 2$. |
3,432,389 | The original question: If we have a sequence of real numbers and on that, we define a sequence of $n^{th}$ rational numbers and another of irrational numbers, then they are both subsequences of the original sequence of real numbers?
In other words, can a rational sequence be a complementary subsequence of an irrationa... | 2019/11/12 | [
"https://math.stackexchange.com/questions/3432389",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/700226/"
] | Just to give a simple example with a single formula, let
$$a\_n={(1+(-1)^n)\sqrt2\over n}$$
The sequence is
$$0,\sqrt2,0,{\sqrt2\over2},0,{\sqrt2\over3},0,{\sqrt2\over4},\ldots$$
which clearly has both a rational and an irrational subsequence, each converging to the same limit, namely $0$. | Consider the sequence $$1, 1.4, 1.41, 1.414, 1.4142\ldots$$ that converges to $\sqrt 2$, and the sequence $$\sqrt 2,\sqrt 2,\sqrt 2,\sqrt 2\ldots$$ that also converges to $\sqrt 2$. |
7,664,080 | I have been trying to figure this one out for the last 2 days. I feel like I'm really close, but just can't get it. I've gotten my c# program to successfully send an email with all the required information in it, but I can't change the sender's name and email address. Here is my code so far:
```
Outlook.Application oA... | 2011/10/05 | [
"https://Stackoverflow.com/questions/7664080",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/980678/"
] | I had the same issue (adding theme worked but it produces ugly warnings). I fixed it by explicitly referencing the theme's CSS file by:
1. Add the following to your flexmojos configuration:
```
<themes>
<theme>spark-theme-${flex.sdk.version}.css</theme>
</themes>
```
2. Add the theme as a dependency:
```
<depen... | I am using Flex-Mojos 4.1-beta, and themes "just work" ™ I cannot vouch for earlier versions.
Taking an example, pull in the spark theme (part of the SDK):
```
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>spark</artifactId>
<version>${flex.version}</version>
... |
7,664,080 | I have been trying to figure this one out for the last 2 days. I feel like I'm really close, but just can't get it. I've gotten my c# program to successfully send an email with all the required information in it, but I can't change the sender's name and email address. Here is my code so far:
```
Outlook.Application oA... | 2011/10/05 | [
"https://Stackoverflow.com/questions/7664080",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/980678/"
] | I had the same issue (adding theme worked but it produces ugly warnings). I fixed it by explicitly referencing the theme's CSS file by:
1. Add the following to your flexmojos configuration:
```
<themes>
<theme>spark-theme-${flex.sdk.version}.css</theme>
</themes>
```
2. Add the theme as a dependency:
```
<depen... | Or, more simple [with this answer](https://stackoverflow.com/a/5043813/244911) (just think to declare it in your *dependencyManagement* and *dependencies* tags of your pom |
10,415,040 | Now I want to try this program (link: <http://www.cogno-sys.com/azure-cloud-management/azure-cloud-director-single-click-azure-deployment/> ) because I have some problem to deploy my app to Azure.
So I downloaded it and it requires first to add a subscription ID. But after I fill all field I click the button OK but not... | 2012/05/02 | [
"https://Stackoverflow.com/questions/10415040",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1304813/"
] | `:whatever` is a symbol, you've got that part right.
When you're using a hash, this was how you used to define it in 1.8x ruby:
```
{:key => value, :another_key => another_value}
```
This is known as the hashrocket syntax. In ruby 1.9x, this changed to:
```
{key: value, another_key: another_value}
```
There is b... | the `{:key => value}` is the old hash syntax in ruby, now we have a new hash syntax that is more like json so
```
{:key => value}
```
is the same as
```
{key: value}
```
The old one, we’re all familiar with is:
```
old_hash = {:simon => "Talek", :lorem => "Ipsum"}
```
This is all nice and dandy, but it could ... |
224,709 | I'm looking at writing a simple app indicator and I need it to update it's information whenever it's clicked on to open the menu. Is there any kind of on\_click action thing?
Let me rephrase it then: How to perform an action (any action) when the user clicks on the appindicator to open its menu? | 2012/12/02 | [
"https://askubuntu.com/questions/224709",
"https://askubuntu.com",
"https://askubuntu.com/users/101066/"
] | An app indicator can only open its menu. It can't perform any other action and your program doesn't get notified when the menu is displayed.
You could either include some kind of "Update" menu item or find other events that trigger the update. | I have used the middle mouse click in one of my indicators to perform an action, so I think you could do the same... See related [answer](https://askubuntu.com/a/501050/67335).
*Note it only seems to work on Ubuntu (not Lubuntu/Xubuntu).* |
224,709 | I'm looking at writing a simple app indicator and I need it to update it's information whenever it's clicked on to open the menu. Is there any kind of on\_click action thing?
Let me rephrase it then: How to perform an action (any action) when the user clicks on the appindicator to open its menu? | 2012/12/02 | [
"https://askubuntu.com/questions/224709",
"https://askubuntu.com",
"https://askubuntu.com/users/101066/"
] | An app indicator can only open its menu. It can't perform any other action and your program doesn't get notified when the menu is displayed.
You could either include some kind of "Update" menu item or find other events that trigger the update. | Indeed, you may notice that some indicators (like volume or keyboard language ones) support middle mouse click. It can be done with `set_secondary_activate_target(menu_item)`.
My code snippet for pyGtk/pyGI:
```
menu_items = Gtk.MenuItem("Toggle Floater")
menu.append(menu_items)
menu_items.connect("activat... |
66,932,125 | so I have a coded a simple function in python and called it `Lag()`. The folder I am saving the python script at is `C:\Users\yo4226ka\Work Folders\Desktop\...\Code` and I call the file `2.5`. I am trying to do something like this:
`from 2.5 import Lag`
I am not quite sure how I could use the folder location to impor... | 2021/04/03 | [
"https://Stackoverflow.com/questions/66932125",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14127938/"
] | You can save the code as a package and import it later on and use it like regular python packages. This might help you: <https://www.tutorialsteacher.com/python/python-package> | did your main script file and 2.5 file exist same folder?
if its condition is true, it is simple.
you just write code below.
```
from Lag import 2.5
``` |
10,425,694 | In web page designing i am using css files and js files and these css files and javascript files are called in jsp page as follows:
```
<script type="text/javascript" src="datepick.js"></script>
<link rel="stylesheet" type="text/css" href="datepick.css" />
```
If somebody views page source then he can know `c... | 2012/05/03 | [
"https://Stackoverflow.com/questions/10425694",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1232355/"
] | You cannot **hide** CSS or JS as the are client-side scripts. The best you can do is to [obfuscate your JavaScript](https://stackoverflow.com/questions/194397/how-can-i-obfuscate-javascript) and [compress your CSS](https://www.google.com/search?q=compress%20css). | You can't. You have to give the browser the CSS and JS so that it can parse them. Anything you give to the browser you also give to the user. |
10,425,694 | In web page designing i am using css files and js files and these css files and javascript files are called in jsp page as follows:
```
<script type="text/javascript" src="datepick.js"></script>
<link rel="stylesheet" type="text/css" href="datepick.css" />
```
If somebody views page source then he can know `c... | 2012/05/03 | [
"https://Stackoverflow.com/questions/10425694",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1232355/"
] | You cannot **hide** CSS or JS as the are client-side scripts. The best you can do is to [obfuscate your JavaScript](https://stackoverflow.com/questions/194397/how-can-i-obfuscate-javascript) and [compress your CSS](https://www.google.com/search?q=compress%20css). | Short Answer: **NO**.
Whatever tricks may you used to hide your css and js, users can able to track it easily. Because there are lot of Developer tools available in the market. Better leave this idea for hiding your files... |
10,425,694 | In web page designing i am using css files and js files and these css files and javascript files are called in jsp page as follows:
```
<script type="text/javascript" src="datepick.js"></script>
<link rel="stylesheet" type="text/css" href="datepick.css" />
```
If somebody views page source then he can know `c... | 2012/05/03 | [
"https://Stackoverflow.com/questions/10425694",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1232355/"
] | You cannot **hide** CSS or JS as the are client-side scripts. The best you can do is to [obfuscate your JavaScript](https://stackoverflow.com/questions/194397/how-can-i-obfuscate-javascript) and [compress your CSS](https://www.google.com/search?q=compress%20css). | In HTML, if you can see it, you can get it.
JS runs in web browser.
JSP runs in JSP container. |
15,565,783 | How to auto delete file from Git cache when I deleted it by hand in sublime text 2? Is there a plugin to do so? | 2013/03/22 | [
"https://Stackoverflow.com/questions/15565783",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1401708/"
] | **This is the way you can remove file/folders from `git cache` manually.**
Remove tracking of file/folder - but keep them on disk - using
```
$ git rm --cached
```
Now they do not show up as "changed" but still show as
untracked files in
```
$ git status -u
```
Add them to `.gitignore`
Use
```
$ git config... | Remove the definite file which you want to ignore, rather than removing all files in cache, it will reduce risk.
1. add to `.gitignore`;
2. delete the file/files `git rm cached <file>` |
152,421 | What do you call the V-shaped figure one uses to check a checkbox? How about the X-shaped figure? | 2014/02/17 | [
"https://english.stackexchange.com/questions/152421",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/11268/"
] | You might be looking for "check" or "tick", or "check mark" or "tick mark". | Do you mean a check mark (also called a tick)? <http://en.wikipedia.org/wiki/Check_mark>
The x-shaped mark can be called simply an x or a cross.<http://en.wikipedia.org/wiki/X_mark> |
152,421 | What do you call the V-shaped figure one uses to check a checkbox? How about the X-shaped figure? | 2014/02/17 | [
"https://english.stackexchange.com/questions/152421",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/11268/"
] | You might be looking for "check" or "tick", or "check mark" or "tick mark". | In the UK we were usually told to put [a tick or a cross](https://books.google.com/ngrams/graph?content=a%20tick%20or%20a%20cross&year_start=1930&year_end=2000&corpus=15&smoothing=3&share=&direct_url=t1;,a%20tick%20or%20a%20cross;,c0) in the appropriate box...

{
... |
30,790,855 | Here is my current layout configuration:
```
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ListView
android:id="@+id/list_1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:cacheColorHint="@android:c... | 2015/06/11 | [
"https://Stackoverflow.com/questions/30790855",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1763767/"
] | Remember this is MVC. The request goes to the controller, where an action is performed and the result is shown in a view. You created a new view file, but there is no reference in the controller.
The default routing mechanism looks for a controller and then an action in the controller to fulfill a request. You should... | jfeston helped me out a bit. However, I had the method in my controller BUT I had [HttpPost] as part of the method header. I needed to create another method with [HttpPost] to accept requests from the new view.
So...
```
[AllowAnonymous] // this is a login page; there is no auth yet
public ActionResult Login()
{
... |
20,632,401 | I have a clientid and username and i want them both send with the socket.
```
client.userid = userid;
client.username = username;
client.emit('onconnected', { id: client.userid, name: client.username });
```
i tried this for example but it doesn't seem to work | 2013/12/17 | [
"https://Stackoverflow.com/questions/20632401",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3086742/"
] | You can try this
```
io.sockets.on('connection', function (socket) {
socket.on('event_name', function(data) {
// you can try one of these three options
// this is used to send to all connecting sockets
io.sockets.emit('eventToClient', { id: userid, name: username });
// this is used to send ... | Try sending the object as a whole:
```
$('form').submit(function(){
var loginDetails={
userid : userid,
username : username
};
client.emit('sentMsg',loginDetails);
}
``` |
20,632,401 | I have a clientid and username and i want them both send with the socket.
```
client.userid = userid;
client.username = username;
client.emit('onconnected', { id: client.userid, name: client.username });
```
i tried this for example but it doesn't seem to work | 2013/12/17 | [
"https://Stackoverflow.com/questions/20632401",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3086742/"
] | You can try this
```
io.sockets.on('connection', function (socket) {
socket.on('event_name', function(data) {
// you can try one of these three options
// this is used to send to all connecting sockets
io.sockets.emit('eventToClient', { id: userid, name: username });
// this is used to send ... | You should pass an object to socket event.
In server-side:
```
socket.emit('your-event', { name: 'Whatever', age: 18 })
```
In client-side:
```
socket.on('your-event', ({ name, age }) => {
// name: Whatever
// age: 18
})
``` |
6,253,173 | My Android project has a few jar libraries as dependencies. Alone, it compiles and works well.
I wrote a little test project but running it I don't get any result (no tests passed or failed) nor any error, but in the logcat's output there are warnings like this:
```
06-06 14:55:43.533: INFO/dalvikvm(7049): Failed res... | 2011/06/06 | [
"https://Stackoverflow.com/questions/6253173",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/321354/"
] | Go to your project that uses .jar files (i.e. project under test). Click right button -> Properties-> Java Build Path -> Order and Export -> check libraries there
 | Have you tried to put the jars in libs intead than lib ?
<http://android.foxykeep.com/dev/how-to-fix-the-classdefnotfounderror-with-adt-17> |
6,253,173 | My Android project has a few jar libraries as dependencies. Alone, it compiles and works well.
I wrote a little test project but running it I don't get any result (no tests passed or failed) nor any error, but in the logcat's output there are warnings like this:
```
06-06 14:55:43.533: INFO/dalvikvm(7049): Failed res... | 2011/06/06 | [
"https://Stackoverflow.com/questions/6253173",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/321354/"
] | Go to your project that uses .jar files (i.e. project under test). Click right button -> Properties-> Java Build Path -> Order and Export -> check libraries there
 | what worked for me was - in 'Order and Import' section bringing my jar file up |
6,253,173 | My Android project has a few jar libraries as dependencies. Alone, it compiles and works well.
I wrote a little test project but running it I don't get any result (no tests passed or failed) nor any error, but in the logcat's output there are warnings like this:
```
06-06 14:55:43.533: INFO/dalvikvm(7049): Failed res... | 2011/06/06 | [
"https://Stackoverflow.com/questions/6253173",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/321354/"
] | what worked for me was - in 'Order and Import' section bringing my jar file up | Have you tried to put the jars in libs intead than lib ?
<http://android.foxykeep.com/dev/how-to-fix-the-classdefnotfounderror-with-adt-17> |
46,199,583 | I want to display all customers who placed an order during 2010. When I display "customerid" and "orderdate" from the custorder table, the format looks like this:
```
C-300064 06-DEC-10
```
Basically I need to figure out how to get it to display only customerid where the last 2 digits of orderdate are 10.
Can so... | 2017/09/13 | [
"https://Stackoverflow.com/questions/46199583",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8332686/"
] | >
> I'm wanting to display all customers who placed an order during 2010.
>
>
>
As simple as:
```
SELECT customerid , orderdate
FROM your_table
WHERE orderdate >= DATE '2010-01-01' AND orderdate < DATE '2011-01-01';
```
If orderdate is `DATE` column then how it is displayed doesn't matter. `DATE 'YYYY-MM-DD'` ... | Since you are using Oracle, this will work.
```
SELECT
customerid
, orderdate
FROM yourtable
WHERE EXTRACT(YEAR FROM orderdate) = 2010;
``` |
46,199,583 | I want to display all customers who placed an order during 2010. When I display "customerid" and "orderdate" from the custorder table, the format looks like this:
```
C-300064 06-DEC-10
```
Basically I need to figure out how to get it to display only customerid where the last 2 digits of orderdate are 10.
Can so... | 2017/09/13 | [
"https://Stackoverflow.com/questions/46199583",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8332686/"
] | >
> I'm wanting to display all customers who placed an order during 2010.
>
>
>
As simple as:
```
SELECT customerid , orderdate
FROM your_table
WHERE orderdate >= DATE '2010-01-01' AND orderdate < DATE '2011-01-01';
```
If orderdate is `DATE` column then how it is displayed doesn't matter. `DATE 'YYYY-MM-DD'` ... | If you are using Oracle, you have several ways to achieve this using a WHERE clause on the "orderdate" column. However, when using Oracle SQL, you may need some additional code to account for different date formats. I believe these examples should work for you:
```sql
SELECT t1.customerid, t1.orderdate
FROM some_table... |
46,199,583 | I want to display all customers who placed an order during 2010. When I display "customerid" and "orderdate" from the custorder table, the format looks like this:
```
C-300064 06-DEC-10
```
Basically I need to figure out how to get it to display only customerid where the last 2 digits of orderdate are 10.
Can so... | 2017/09/13 | [
"https://Stackoverflow.com/questions/46199583",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8332686/"
] | Since you are using Oracle, this will work.
```
SELECT
customerid
, orderdate
FROM yourtable
WHERE EXTRACT(YEAR FROM orderdate) = 2010;
``` | If you are using Oracle, you have several ways to achieve this using a WHERE clause on the "orderdate" column. However, when using Oracle SQL, you may need some additional code to account for different date formats. I believe these examples should work for you:
```sql
SELECT t1.customerid, t1.orderdate
FROM some_table... |
55,739,464 | if I try to `import tkinter` in my project, pycharm underlines **tkinter** as being a missing library.
When I try to install the library, pycharm suggests to import the '**future**' library instead of the **tkinter** library. I don't know why.
If I go to the project interpreter window, I cannot find the **tkinter** l... | 2019/04/18 | [
"https://Stackoverflow.com/questions/55739464",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7736693/"
] | Install it via apt.
```
sudo apt-get update && sudo apt install python3-tk
```
Works for me. | **tkinter** is a built in library in python.
install this package :'**future**' using this command :
```
pip install future
```
now import '**tkinter**' in your project :
```
import tkinter
``` |
55,739,464 | if I try to `import tkinter` in my project, pycharm underlines **tkinter** as being a missing library.
When I try to install the library, pycharm suggests to import the '**future**' library instead of the **tkinter** library. I don't know why.
If I go to the project interpreter window, I cannot find the **tkinter** l... | 2019/04/18 | [
"https://Stackoverflow.com/questions/55739464",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7736693/"
] | I fixed the issue by uninstalling PyCharm, and reinstalling it from the command line. The previous version I had installed it through the Linux Mint 19.1 Software Manager, and the version installed behaved in very strange ways; for instance it showed a completely different file tree to the one in my machine when trying... | **tkinter** is a built in library in python.
install this package :'**future**' using this command :
```
pip install future
```
now import '**tkinter**' in your project :
```
import tkinter
``` |
177,858 | I have a Hewlett Packard DV6. I connected to the access point. I receive an IP address/default gateway/DNS,etc(DHCP). I cannot ping my gateway. DNS lookups fails. There is just no connectivity. My driver is listed as being IWLWIFI. An lspci shows my card to be a Realtek RTL8101E/RTL8102E.
I can't ping myself from anoth... | 2012/08/19 | [
"https://askubuntu.com/questions/177858",
"https://askubuntu.com",
"https://askubuntu.com/users/32933/"
] | ***No, this settings can't be changed in default setup***. Krunner and Kickoff are designed to display search suggestion after at least 3 letters in input. So, you can't change them because there is not configuration option to do so.
* [See this Wikipedia Article](http://en.wikipedia.org/wiki/KDE_Plasma_Workspaces#KRu... | Unlike Synapse, which tries to match items based on any input, Kickoff and Krunner are designed to match after you've inserted enough information to match with.
My suggestion would be to report a bug against the two as a wishlist item, since there are currently no options (that I know of), that allow you to change thi... |
24,921,650 | I am trying to do an elasticsearch query in the following way:
* search for query
* function score queries - one of which is on location that is nested, and another one to boost the scores of documents matching a particular type
* document must match `{ verified: true }`
I have an index called `users`, and within tha... | 2014/07/23 | [
"https://Stackoverflow.com/questions/24921650",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2205763/"
] | Here's what I came up with. This is run against ES v1.2.2 - which is important, because earlier versions don't have the \_type field exposed for the script like this. In 1.3.0, dynamic scripting is deprecated.
You can see I'm indexing several documents to demonstrate the successful application of the scoring functions... | Ok, after reading more into the query DSL, here is my solution:
```
query: {
function_score: {
query: {
query_string: {
query: query + '*'
},
},
filter: {
term: {
verified: true
}
},
functions: [... |
27,771,595 | [This code](http://jsfiddle.net/we67Lp6o/1/) leaves this weirdly shaped border *(it's the active link border)* when you click the image, like so:

And when we [put an orange background on the `<a>` element](http://jsfiddle.net/Lg5a0ksg/2/) we see tha... | 2015/01/04 | [
"https://Stackoverflow.com/questions/27771595",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3763850/"
] | First, by default element has an 'outline' decoration, to disable it use the following css rule:
```
a { outline: 0 }
```
Second, the area is created by another css property you apply on the image itself: 'margin', which is the margin between the image to the elements around it, in this case it affects the element w... | It's actually not spacing underneath at all. It's because your `a` tag is collapsed due to the default setting of `display:inline`. Adding `display: inline-block` to those `a`s will fix that issue:
[**FIDDLE**](http://jsfiddle.net/Lg5a0ksg/3/)
[Alohci offers a great explanation on why this happens](https://stackoverf... |
27,771,595 | [This code](http://jsfiddle.net/we67Lp6o/1/) leaves this weirdly shaped border *(it's the active link border)* when you click the image, like so:

And when we [put an orange background on the `<a>` element](http://jsfiddle.net/Lg5a0ksg/2/) we see tha... | 2015/01/04 | [
"https://Stackoverflow.com/questions/27771595",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3763850/"
] | It's actually not spacing underneath at all. It's because your `a` tag is collapsed due to the default setting of `display:inline`. Adding `display: inline-block` to those `a`s will fix that issue:
[**FIDDLE**](http://jsfiddle.net/Lg5a0ksg/3/)
[Alohci offers a great explanation on why this happens](https://stackoverf... | Set your images to `display: block` (or alternatively, to `vertical-align: bottom`) to remove the default space at the bottom. (By default, images align to the `baseline` of any potential text next to them, and they leave that space there even if there's no text beside them.) |
27,771,595 | [This code](http://jsfiddle.net/we67Lp6o/1/) leaves this weirdly shaped border *(it's the active link border)* when you click the image, like so:

And when we [put an orange background on the `<a>` element](http://jsfiddle.net/Lg5a0ksg/2/) we see tha... | 2015/01/04 | [
"https://Stackoverflow.com/questions/27771595",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3763850/"
] | It's actually not spacing underneath at all. It's because your `a` tag is collapsed due to the default setting of `display:inline`. Adding `display: inline-block` to those `a`s will fix that issue:
[**FIDDLE**](http://jsfiddle.net/Lg5a0ksg/3/)
[Alohci offers a great explanation on why this happens](https://stackoverf... | `inline-block`is the property you need for the `<a>` elements. For the spacing issues, the margins need to be removed.
The reason for the strangely shaped border, is of the `outline` property on `<a>`. It's showing you the area of your link, but due to the `display` and `margin` properties it is a different size than ... |
27,771,595 | [This code](http://jsfiddle.net/we67Lp6o/1/) leaves this weirdly shaped border *(it's the active link border)* when you click the image, like so:

And when we [put an orange background on the `<a>` element](http://jsfiddle.net/Lg5a0ksg/2/) we see tha... | 2015/01/04 | [
"https://Stackoverflow.com/questions/27771595",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3763850/"
] | First, by default element has an 'outline' decoration, to disable it use the following css rule:
```
a { outline: 0 }
```
Second, the area is created by another css property you apply on the image itself: 'margin', which is the margin between the image to the elements around it, in this case it affects the element w... | Set your images to `display: block` (or alternatively, to `vertical-align: bottom`) to remove the default space at the bottom. (By default, images align to the `baseline` of any potential text next to them, and they leave that space there even if there's no text beside them.) |
27,771,595 | [This code](http://jsfiddle.net/we67Lp6o/1/) leaves this weirdly shaped border *(it's the active link border)* when you click the image, like so:

And when we [put an orange background on the `<a>` element](http://jsfiddle.net/Lg5a0ksg/2/) we see tha... | 2015/01/04 | [
"https://Stackoverflow.com/questions/27771595",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3763850/"
] | First, by default element has an 'outline' decoration, to disable it use the following css rule:
```
a { outline: 0 }
```
Second, the area is created by another css property you apply on the image itself: 'margin', which is the margin between the image to the elements around it, in this case it affects the element w... | `inline-block`is the property you need for the `<a>` elements. For the spacing issues, the margins need to be removed.
The reason for the strangely shaped border, is of the `outline` property on `<a>`. It's showing you the area of your link, but due to the `display` and `margin` properties it is a different size than ... |
27,771,595 | [This code](http://jsfiddle.net/we67Lp6o/1/) leaves this weirdly shaped border *(it's the active link border)* when you click the image, like so:

And when we [put an orange background on the `<a>` element](http://jsfiddle.net/Lg5a0ksg/2/) we see tha... | 2015/01/04 | [
"https://Stackoverflow.com/questions/27771595",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3763850/"
] | `inline-block`is the property you need for the `<a>` elements. For the spacing issues, the margins need to be removed.
The reason for the strangely shaped border, is of the `outline` property on `<a>`. It's showing you the area of your link, but due to the `display` and `margin` properties it is a different size than ... | Set your images to `display: block` (or alternatively, to `vertical-align: bottom`) to remove the default space at the bottom. (By default, images align to the `baseline` of any potential text next to them, and they leave that space there even if there's no text beside them.) |
16,802,325 | I want to decrement a database table value if the field value is greater than or equal to 1 (`>= 1`). Otherwise (if it IS less than 1) then I want to delete that whole database record, My code decrements the value continuously but does not delete the record when it reaches less than 1.
I think the `$Check` variable do... | 2013/05/28 | [
"https://Stackoverflow.com/questions/16802325",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2296715/"
] | If you're running under iOS 6 then `shouldAutorotateToInterfaceOrientation` has been deprecated. You should use `supportedInterfaceOrientationsForWindow:` and `shouldAutorotate` methods.
Have a look at the iOS 6 release notes [here](https://developer.apple.com/library/ios/#releasenotes/General/RN-iOSSDK-6_0/index.html... | It's `supportedInterfaceOrientations` on `UIViewController` you want to implement for iOS6 rather than `shouldAutorotateToInterfaceOrientation`. |
10,272,950 | I want to make it clear that I have no prior experience programming, I only have experience in HTML and SQL, everyone seems to be like "Look like the documentation" well yes that sure helps me! *sniff* \*sniff\* is there a book that could be recommendable or a series of webcasts? | 2012/04/22 | [
"https://Stackoverflow.com/questions/10272950",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/519753/"
] | Welcome to the wonderful world of node.js!
I myself have also just started learning Node.js and often asked myself "what is express?" "Why use express over node?" etc.
Express is a fantastic web framework so you can develop robust applications with having a lot of the hard stuff done for you :)
I highly recommend re... | * I want to make it clear that I have no prior experience programming,
* I only have experience in HTML and SQL
Based on these two points, first you should learn programming. You want to learn NodeJS+Express+MongoDB which 3 of them are completely different things from what you already know.
1. First start with Javas... |
10,272,950 | I want to make it clear that I have no prior experience programming, I only have experience in HTML and SQL, everyone seems to be like "Look like the documentation" well yes that sure helps me! *sniff* \*sniff\* is there a book that could be recommendable or a series of webcasts? | 2012/04/22 | [
"https://Stackoverflow.com/questions/10272950",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/519753/"
] | Welcome to the wonderful world of node.js!
I myself have also just started learning Node.js and often asked myself "what is express?" "Why use express over node?" etc.
Express is a fantastic web framework so you can develop robust applications with having a lot of the hard stuff done for you :)
I highly recommend re... | I think you should learn the basics of a programming language before getting deep into the frameworks.
[**Code Year**](http://codeyear.com/) has a series of interactive programming lessons to learn JavaScript. You learn the language step by step from the ground up.
When you have grasped JavaScript you can start using... |
10,272,950 | I want to make it clear that I have no prior experience programming, I only have experience in HTML and SQL, everyone seems to be like "Look like the documentation" well yes that sure helps me! *sniff* \*sniff\* is there a book that could be recommendable or a series of webcasts? | 2012/04/22 | [
"https://Stackoverflow.com/questions/10272950",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/519753/"
] | Welcome to the wonderful world of node.js!
I myself have also just started learning Node.js and often asked myself "what is express?" "Why use express over node?" etc.
Express is a fantastic web framework so you can develop robust applications with having a lot of the hard stuff done for you :)
I highly recommend re... | You have a long way to go, if you only know HTML/CSS.
Take a look at <http://howtonode.org/express-mongodb>
You have to have an advanced understanding of how to code modular JavaScript, JSON,
Databases (especially NoSQL databases ).
Cheers! |
10,272,950 | I want to make it clear that I have no prior experience programming, I only have experience in HTML and SQL, everyone seems to be like "Look like the documentation" well yes that sure helps me! *sniff* \*sniff\* is there a book that could be recommendable or a series of webcasts? | 2012/04/22 | [
"https://Stackoverflow.com/questions/10272950",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/519753/"
] | * I want to make it clear that I have no prior experience programming,
* I only have experience in HTML and SQL
Based on these two points, first you should learn programming. You want to learn NodeJS+Express+MongoDB which 3 of them are completely different things from what you already know.
1. First start with Javas... | I think you should learn the basics of a programming language before getting deep into the frameworks.
[**Code Year**](http://codeyear.com/) has a series of interactive programming lessons to learn JavaScript. You learn the language step by step from the ground up.
When you have grasped JavaScript you can start using... |
10,272,950 | I want to make it clear that I have no prior experience programming, I only have experience in HTML and SQL, everyone seems to be like "Look like the documentation" well yes that sure helps me! *sniff* \*sniff\* is there a book that could be recommendable or a series of webcasts? | 2012/04/22 | [
"https://Stackoverflow.com/questions/10272950",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/519753/"
] | * I want to make it clear that I have no prior experience programming,
* I only have experience in HTML and SQL
Based on these two points, first you should learn programming. You want to learn NodeJS+Express+MongoDB which 3 of them are completely different things from what you already know.
1. First start with Javas... | You have a long way to go, if you only know HTML/CSS.
Take a look at <http://howtonode.org/express-mongodb>
You have to have an advanced understanding of how to code modular JavaScript, JSON,
Databases (especially NoSQL databases ).
Cheers! |
10,525,890 | How do I add a text to the right of the figure? I want to resize the plot to leave some empty space on the right and add some information there.
Thanks!! | 2012/05/10 | [
"https://Stackoverflow.com/questions/10525890",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1083320/"
] | If you want to put that text inside of a legend you can do:
```
legend('Some quick information','location','EastOutside')
```
That is easiest. For more control though, you can put a text box inside the figure window:
```
MyBox = uicontrol('style','text')
set(MyBox,'String','Here is a lot more information')
```
an... | Try this for short text:
```
plot(1:5);
text(5.05, 2.5, 'outside', 'clipping', 'off');
```
Or this solution for more complex annotations:
<http://radio.feld.cvut.cz/matlab/techdoc/creating_plots/chaxes6.html> |
333,467 | OK, I have an Alienware M14X and the keyboard backlight is always on and I can't turn it off... Google didn't me much. I want to turn it off because it's disturbing sometimes
I uninstalled Windows OS from my laptop so I can't really disable it from there | 2013/08/16 | [
"https://askubuntu.com/questions/333467",
"https://askubuntu.com",
"https://askubuntu.com/users/180793/"
] | Change the color to black and it will be off. | For GNU-Linux systems you can use [alienware-kbl](http://rsm.imap.cc/software/gnu-linux/software/alienware-kbl). With that program you can control the lights of alienware computers. |
71,669,133 | ```
df = pd.read_sql_query(query, con, parse_dates=["time"]).set_index("time")
type(df_aq.index)
```
Why does this set index as DatetimeIndex (pandas.core.indexes.datetimes.DatetimeIndex) while the code below returns a RangeIndex (pandas.core.indexes.range.RangeIndex):
```
df = pd.read_sql_query(query, con, parse_da... | 2022/03/29 | [
"https://Stackoverflow.com/questions/71669133",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16106459/"
] | You can use MIN to not allow the value to become greater than `0`
```
=MIN(SUM(A1,A2),0)
```
This will make any positive number `0` because `0` is lower than any positive number. | Something like this?
```
=IF(SUM(J87+K87)>0,0,J87+K87)
```
[](https://i.stack.imgur.com/qnory.png)
[](https://i.stack.imgur.com/7QOfs.png) |
42 | One thing that we are starting to see are variations of the question of "what martial art should I practice." For example:
* [Is aikido a good addition to Karate? Or shoud I go for jiu-jitsu?](https://martialarts.stackexchange.com/questions/94/is-aikido-a-good-addition-to-karate-or-shoud-i-go-for-jiu-jitsu)
* [Which m... | 2012/02/02 | [
"https://martialarts.meta.stackexchange.com/questions/42",
"https://martialarts.meta.stackexchange.com",
"https://martialarts.meta.stackexchange.com/users/11/"
] | **"What martial arts focus on x?" -style questions**
Where x is "grappling" or "self-defense" or "high kicks" or "joint manipulation" seem perfectly valid to me. Some arts *do* focus on certain areas more than others. It seems plausible that the answers to these types of questions could provide valid, factual response... | I agree. The problem with these questions is that they are both subjective and too localised - the question of what martial art to practice depends on too many factors (age, location, past experience).
Possibly a question "**How do I choose** what martial art to practice?" would be useful. Something like this would st... |
42 | One thing that we are starting to see are variations of the question of "what martial art should I practice." For example:
* [Is aikido a good addition to Karate? Or shoud I go for jiu-jitsu?](https://martialarts.stackexchange.com/questions/94/is-aikido-a-good-addition-to-karate-or-shoud-i-go-for-jiu-jitsu)
* [Which m... | 2012/02/02 | [
"https://martialarts.meta.stackexchange.com/questions/42",
"https://martialarts.meta.stackexchange.com",
"https://martialarts.meta.stackexchange.com/users/11/"
] | **"What martial arts focus on x?" -style questions**
Where x is "grappling" or "self-defense" or "high kicks" or "joint manipulation" seem perfectly valid to me. Some arts *do* focus on certain areas more than others. It seems plausible that the answers to these types of questions could provide valid, factual response... | 'What martial arts should I practice' is off-topic, because too personal - but this question comes up often, so the community should probably examine the possibility of a community wiki and/or a series of questions that can help someone decide. Not being able to offer insight into this question would be, I feel, a flaw... |
389,902 | In languages such as C or Java we have the concepts of the Stack and the Heap.
Are these abstractions the particular language runtime/compiler creates over the plain-old RAM? Or are these concepts inherent to the OS?
In other words, do the Stack and Heap "physically" generally exist in any application regardless of t... | 2019/04/06 | [
"https://softwareengineering.stackexchange.com/questions/389902",
"https://softwareengineering.stackexchange.com",
"https://softwareengineering.stackexchange.com/users/121368/"
] | All of the above. It's complicated.
Some CPU architectures, especially x86, include a dedicated stack pointer register and instructions that allow you to easily push/pop values on that stack.
The Java Virtual Machine is a specification that defines the operations of the JVM in terms of a stack. Most instructions push... | In principle, you don't need a stack in some high-level programming languages, whose implementation have a [garbage collector](https://en.wikipedia.org/wiki/Garbage_collection_(computer_science)).
At the low level (assembly, OS, ....) a stack is often needed (e.g. for [interrupts](https://en.wikipedia.org/wiki/Interru... |
389,902 | In languages such as C or Java we have the concepts of the Stack and the Heap.
Are these abstractions the particular language runtime/compiler creates over the plain-old RAM? Or are these concepts inherent to the OS?
In other words, do the Stack and Heap "physically" generally exist in any application regardless of t... | 2019/04/06 | [
"https://softwareengineering.stackexchange.com/questions/389902",
"https://softwareengineering.stackexchange.com",
"https://softwareengineering.stackexchange.com/users/121368/"
] | All of the above. It's complicated.
Some CPU architectures, especially x86, include a dedicated stack pointer register and instructions that allow you to easily push/pop values on that stack.
The Java Virtual Machine is a specification that defines the operations of the JVM in terms of a stack. Most instructions push... | Stack and heap are more or less general concepts to organize computer memory. Usually the heap is just a big block of memory controlled by the operating system to care, that programs do not use the same memory range. A program or compiler has to ask for heap memory to use it.
In most cases a stack ist controlled by th... |
5,997,677 | I am trying to mix video, coming from the camera with a static image (watermarking).
I have checked around questions/answers here and some examples, including WWDC AVEditDemo from Apple and ended with the following code.
Unfortunately, the exported video does not contain the layer with the image.
Any ideas?
```
- (vo... | 2011/05/13 | [
"https://Stackoverflow.com/questions/5997677",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/726927/"
] | After playing around I ended up with something like this in a addition to the above code, also changing the used method to videoCompositionCoreAnimationToolWithPostProcessingAsVideoLayer:
```
CALayer *parentLayer = [CALayer layer];
CALayer *videoLayer = [CALayer layer];
parentLayer.frame = CGRectMake(0, 0, videoSize.w... | i got this to work! heres the code! i didn't write most of it, i just tweaked some, but the only issue is the video itself is rotated for landscape in portrait mode? and then in landscape its portrait video, but the image is right side up!
```
CALayer *aLayer = [CALayer layer];
aLayer.frame = CGRectMake(5, 0, 320,... |
61,873,574 | I have looked at some threads here but could not find the solution to my question. I have a data.frame with 1284 columns (214 countries by 6 parameters) and I would like to reorder those. The principle is like the one in the example below.
```
# Reorder [A1 A2 A3 B1 B2 B3] to [A1 B1 A2 B2 A3 B3]
x <- data.frame("A1"=1... | 2020/05/18 | [
"https://Stackoverflow.com/questions/61873574",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4213982/"
] | You can use Biostrings :
```
library(Biostrings)
data = data.frame(Sequence=c("AGGATC","GTCCCA"))
dinucleotideFrequency(DNAStringSet(as.character(data$Sequence)))
AA AC AG AT CA CC CG CT GA GC GG GT TA TC TG TT
[1,] 0 0 1 1 0 0 0 0 1 0 1 0 0 1 0 0
[2,] 0 0 0 0 1 2 0 0 0 0 0 1 0 1 0 ... | This one gives you a count for each cell of `data$Sequence`.
```
require(stringr)
data <- data.frame(Sequence = c("AAGGATA", "TAAGCAA"))
Couples <- paste0(rep(c("A", "C", "G", "T"),4), rep(c("A", "C", "G", "T"), each=4))
sapply(Couples, function(x) str_count(data$Sequence, x))
```
For a total count add
```
... |
16,041,379 | I'm doing some research for a new project, for which the constraints and specifications have yet to be set. One thing that is wanted is a large number of paths, directly under the root domain. This could ramp up to millions of paths. The paths don't have a common structure or unique parts, so I have to look for exact m... | 2013/04/16 | [
"https://Stackoverflow.com/questions/16041379",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/339122/"
] | Redis is your best bet I think. SQL would be slow and regular expressions from my experience are always painfully slow in queries.
I would do the following steps to test Redis:
1. Fire up a Redis instance either with a local VM or in the cloud on something like EC2.
2. Download a dictionary or two and pump this data ... | I would suggest using some kind of key-value store (i.e. a hashing store), possibly along with hashing the key so it is shorter (something like SHA-1 would be OK IMHO). |
16,041,379 | I'm doing some research for a new project, for which the constraints and specifications have yet to be set. One thing that is wanted is a large number of paths, directly under the root domain. This could ramp up to millions of paths. The paths don't have a common structure or unique parts, so I have to look for exact m... | 2013/04/16 | [
"https://Stackoverflow.com/questions/16041379",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/339122/"
] | >
> Storing the paths in an SQL database and doing a lookup on every request. This seems like the worst option and will definitely not be used.
>
>
>
You're probably underestimating what a database can do. Can I invite you to reconsider your position there?
For Postgres (or MySQL w/ InnoDB), a million entries is ... | I would suggest using some kind of key-value store (i.e. a hashing store), possibly along with hashing the key so it is shorter (something like SHA-1 would be OK IMHO). |
16,041,379 | I'm doing some research for a new project, for which the constraints and specifications have yet to be set. One thing that is wanted is a large number of paths, directly under the root domain. This could ramp up to millions of paths. The paths don't have a common structure or unique parts, so I have to look for exact m... | 2013/04/16 | [
"https://Stackoverflow.com/questions/16041379",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/339122/"
] | >
> Storing the paths in an SQL database and doing a lookup on every request. This seems like the worst option and will definitely not be used.
>
>
>
You're probably underestimating what a database can do. Can I invite you to reconsider your position there?
For Postgres (or MySQL w/ InnoDB), a million entries is ... | Redis is your best bet I think. SQL would be slow and regular expressions from my experience are always painfully slow in queries.
I would do the following steps to test Redis:
1. Fire up a Redis instance either with a local VM or in the cloud on something like EC2.
2. Download a dictionary or two and pump this data ... |
25,377,610 | Hi i am new to wordpress , I am trying to validate a value. So each time the page loads the function must execute, is it possible to write it in my functions.php?
```
function checknewusr()
{
//My Code;
}
add_action('????', 'checknewusr');
```
I am not aware of the action hook to give on that area so that my func... | 2014/08/19 | [
"https://Stackoverflow.com/questions/25377610",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2938305/"
] | `add_action()` adds a function when a certain situation occurs,
`add_action('init','checknewusr');` should do it.
There is quite an extensive array of actions, each targeting certain functions. It would probably be better to call `add_action()` on the most appropriate scenario rather than the `init` hook but this wi... | Use like this in functions.php:
```
function checknewusr()
{
//My Code;
}
if ( ! is_admin() ) {
checknewusr();
}
```
This will execute every time any page loads in frontend. |
1,214,107 | .
my steps assume $d=2$ and $n=1$, then $2$ divides $1 = 1/2$
if d does not divide $(n +1)$ then $2/1+1 = 1$
$1/2$ is not equal to $1$
hence it is false! | 2015/03/31 | [
"https://math.stackexchange.com/questions/1214107",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/227220/"
] | Let $d$ divide $n$.
Therefore, for some natural $c$, $n=cd$.
Assume $d$ also divides $n+1$, and therefore, for some natural $f$, $n+1=fd$.
Since $n+1>n$ it follows $f>c$ so $f=c+g$ for some natural $g$.
From this it follows $n+1=d(c+g)=cd+gd$.
However $cd=n$ so we have $n+1=n+gd \Rightarrow 1=gd$.
This is a cont... | If $d$ divides $n+1$ as well
$d$ must divide $1\cdot(n+1)+(-1)\cdot n$ |
1,214,107 | .
my steps assume $d=2$ and $n=1$, then $2$ divides $1 = 1/2$
if d does not divide $(n +1)$ then $2/1+1 = 1$
$1/2$ is not equal to $1$
hence it is false! | 2015/03/31 | [
"https://math.stackexchange.com/questions/1214107",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/227220/"
] | Let $d$ divide $n$.
Therefore, for some natural $c$, $n=cd$.
Assume $d$ also divides $n+1$, and therefore, for some natural $f$, $n+1=fd$.
Since $n+1>n$ it follows $f>c$ so $f=c+g$ for some natural $g$.
From this it follows $n+1=d(c+g)=cd+gd$.
However $cd=n$ so we have $n+1=n+gd \Rightarrow 1=gd$.
This is a cont... | Assume $d|n$, and let $n=\alpha d$. Also assume $d|(n+1)$ and let $(n+1)=\beta d$. So $\alpha d + 1=\beta d$, and so $d(\beta-\alpha)=1$. But as $d\gt1$, this is impossible. |
788,991 | I wish to move files in a hadoop dir in a timely manner.
The hadoop dir contains 1000 files with the same extension. I wish to move 100 of them every 10 minutes. I can setup a cron job to move the files every 10 minutes but I don't know how to specify the number of files to be moved.
```
hdfs dfs -ls /src/ | tail -10... | 2016/06/19 | [
"https://askubuntu.com/questions/788991",
"https://askubuntu.com",
"https://askubuntu.com/users/558859/"
] | You can use mv like this: mv -t target file1 file2 file3 ...
```
ls | head -n 100 | xargs mv -t destination
``` | For the future generations:
```
hdfs dfs -mv `hdfs dfs -ls -C {your_src_hdfs_path} | head -{number_of_files}` {your_dest_hdfs_path}
``` |
788,991 | I wish to move files in a hadoop dir in a timely manner.
The hadoop dir contains 1000 files with the same extension. I wish to move 100 of them every 10 minutes. I can setup a cron job to move the files every 10 minutes but I don't know how to specify the number of files to be moved.
```
hdfs dfs -ls /src/ | tail -10... | 2016/06/19 | [
"https://askubuntu.com/questions/788991",
"https://askubuntu.com",
"https://askubuntu.com/users/558859/"
] | What about using a script like this:
```
#!/bin/bash
Source="/where/they/are/now/*"
Destination="/where/they/will/go"
while true; do
count=0
for file in $Source; do
if [ $((count++)) -eq 100 ];then
break
else mv "$file" "$Destination"
fi
done
sleep 10m
done
``` | For the future generations:
```
hdfs dfs -mv `hdfs dfs -ls -C {your_src_hdfs_path} | head -{number_of_files}` {your_dest_hdfs_path}
``` |
49,271 | Watching films of Miles Davis performing in the 50's and 60's I noticed that whenever his solo was done he would take his index finger and press it beneath his right ear. Sometimes he would also shake his head as if it were painful to do so. I'm not sure if he did this later in his career or not. He acted very differen... | 2016/10/03 | [
"https://music.stackexchange.com/questions/49271",
"https://music.stackexchange.com",
"https://music.stackexchange.com/users/23661/"
] | I believe it was to complaint to the band of some other aspect of the performance(intonation,rhythm, etc) he did not like. I do not have any specific source to back this at the moment, though I know that he was extremely sensitive of musicians playing slightly out of tune. | I always interpreted it as he was asking the band to "listen" - pay close attention to what is happening. |
49,271 | Watching films of Miles Davis performing in the 50's and 60's I noticed that whenever his solo was done he would take his index finger and press it beneath his right ear. Sometimes he would also shake his head as if it were painful to do so. I'm not sure if he did this later in his career or not. He acted very differen... | 2016/10/03 | [
"https://music.stackexchange.com/questions/49271",
"https://music.stackexchange.com",
"https://music.stackexchange.com/users/23661/"
] | I believe it was to complaint to the band of some other aspect of the performance(intonation,rhythm, etc) he did not like. I do not have any specific source to back this at the moment, though I know that he was extremely sensitive of musicians playing slightly out of tune. | I would suspect that he had temporo-mandibular joint dysfunction and pain below the ear. It’s only a guess, but common to press or rub the muscles around that joint where the lower jaw (mandible) articulates with upper jaw. |
49,271 | Watching films of Miles Davis performing in the 50's and 60's I noticed that whenever his solo was done he would take his index finger and press it beneath his right ear. Sometimes he would also shake his head as if it were painful to do so. I'm not sure if he did this later in his career or not. He acted very differen... | 2016/10/03 | [
"https://music.stackexchange.com/questions/49271",
"https://music.stackexchange.com",
"https://music.stackexchange.com/users/23661/"
] | Watching the Tonight Show from 1964, it seems he was angry about some aspect of the sound balance. When he does it during the blues, he changes where he's playing on the mic, putting his bell way past it, so maybe he thought he was way too hot and not balanced with the rest of the band. During So What, when he does it,... | I always interpreted it as he was asking the band to "listen" - pay close attention to what is happening. |
49,271 | Watching films of Miles Davis performing in the 50's and 60's I noticed that whenever his solo was done he would take his index finger and press it beneath his right ear. Sometimes he would also shake his head as if it were painful to do so. I'm not sure if he did this later in his career or not. He acted very differen... | 2016/10/03 | [
"https://music.stackexchange.com/questions/49271",
"https://music.stackexchange.com",
"https://music.stackexchange.com/users/23661/"
] | I've seen him do this countless times and I believe it's either some tick, OR it's something he consciously does on purpose simply to add to the mysteriousness that of which is... Miles Davis. | I always interpreted it as he was asking the band to "listen" - pay close attention to what is happening. |
49,271 | Watching films of Miles Davis performing in the 50's and 60's I noticed that whenever his solo was done he would take his index finger and press it beneath his right ear. Sometimes he would also shake his head as if it were painful to do so. I'm not sure if he did this later in his career or not. He acted very differen... | 2016/10/03 | [
"https://music.stackexchange.com/questions/49271",
"https://music.stackexchange.com",
"https://music.stackexchange.com/users/23661/"
] | The best I found via lmgtfy was these:
From [reddit](https://www.reddit.com/r/Jazz/comments/2kqxly/miles_davis_plugging_his_ears_during_a_lester/?st=itved15t&sh=8636e34b)
>
> I always heard Miles would cover his ears to hear the other soloist
> better.
>
>
>
OTOH, an [interview](http://hepcat1950.com/mdiv_sy.ht... | I would suspect that he had temporo-mandibular joint dysfunction and pain below the ear. It’s only a guess, but common to press or rub the muscles around that joint where the lower jaw (mandible) articulates with upper jaw. |
49,271 | Watching films of Miles Davis performing in the 50's and 60's I noticed that whenever his solo was done he would take his index finger and press it beneath his right ear. Sometimes he would also shake his head as if it were painful to do so. I'm not sure if he did this later in his career or not. He acted very differen... | 2016/10/03 | [
"https://music.stackexchange.com/questions/49271",
"https://music.stackexchange.com",
"https://music.stackexchange.com/users/23661/"
] | The best I found via lmgtfy was these:
From [reddit](https://www.reddit.com/r/Jazz/comments/2kqxly/miles_davis_plugging_his_ears_during_a_lester/?st=itved15t&sh=8636e34b)
>
> I always heard Miles would cover his ears to hear the other soloist
> better.
>
>
>
OTOH, an [interview](http://hepcat1950.com/mdiv_sy.ht... | I always interpreted it as he was asking the band to "listen" - pay close attention to what is happening. |
49,271 | Watching films of Miles Davis performing in the 50's and 60's I noticed that whenever his solo was done he would take his index finger and press it beneath his right ear. Sometimes he would also shake his head as if it were painful to do so. I'm not sure if he did this later in his career or not. He acted very differen... | 2016/10/03 | [
"https://music.stackexchange.com/questions/49271",
"https://music.stackexchange.com",
"https://music.stackexchange.com/users/23661/"
] | Watching the Tonight Show from 1964, it seems he was angry about some aspect of the sound balance. When he does it during the blues, he changes where he's playing on the mic, putting his bell way past it, so maybe he thought he was way too hot and not balanced with the rest of the band. During So What, when he does it,... | I believe it was to complaint to the band of some other aspect of the performance(intonation,rhythm, etc) he did not like. I do not have any specific source to back this at the moment, though I know that he was extremely sensitive of musicians playing slightly out of tune. |
49,271 | Watching films of Miles Davis performing in the 50's and 60's I noticed that whenever his solo was done he would take his index finger and press it beneath his right ear. Sometimes he would also shake his head as if it were painful to do so. I'm not sure if he did this later in his career or not. He acted very differen... | 2016/10/03 | [
"https://music.stackexchange.com/questions/49271",
"https://music.stackexchange.com",
"https://music.stackexchange.com/users/23661/"
] | I've seen him do this countless times and I believe it's either some tick, OR it's something he consciously does on purpose simply to add to the mysteriousness that of which is... Miles Davis. | I would suspect that he had temporo-mandibular joint dysfunction and pain below the ear. It’s only a guess, but common to press or rub the muscles around that joint where the lower jaw (mandible) articulates with upper jaw. |
49,271 | Watching films of Miles Davis performing in the 50's and 60's I noticed that whenever his solo was done he would take his index finger and press it beneath his right ear. Sometimes he would also shake his head as if it were painful to do so. I'm not sure if he did this later in his career or not. He acted very differen... | 2016/10/03 | [
"https://music.stackexchange.com/questions/49271",
"https://music.stackexchange.com",
"https://music.stackexchange.com/users/23661/"
] | Watching the Tonight Show from 1964, it seems he was angry about some aspect of the sound balance. When he does it during the blues, he changes where he's playing on the mic, putting his bell way past it, so maybe he thought he was way too hot and not balanced with the rest of the band. During So What, when he does it,... | I've seen him do this countless times and I believe it's either some tick, OR it's something he consciously does on purpose simply to add to the mysteriousness that of which is... Miles Davis. |
49,271 | Watching films of Miles Davis performing in the 50's and 60's I noticed that whenever his solo was done he would take his index finger and press it beneath his right ear. Sometimes he would also shake his head as if it were painful to do so. I'm not sure if he did this later in his career or not. He acted very differen... | 2016/10/03 | [
"https://music.stackexchange.com/questions/49271",
"https://music.stackexchange.com",
"https://music.stackexchange.com/users/23661/"
] | Watching the Tonight Show from 1964, it seems he was angry about some aspect of the sound balance. When he does it during the blues, he changes where he's playing on the mic, putting his bell way past it, so maybe he thought he was way too hot and not balanced with the rest of the band. During So What, when he does it,... | I would suspect that he had temporo-mandibular joint dysfunction and pain below the ear. It’s only a guess, but common to press or rub the muscles around that joint where the lower jaw (mandible) articulates with upper jaw. |
48,334,725 | ```
OleDbConn.ole = "SELECT InvoiceDate,InvoiceNo,Customer,SalesPerson,TotalAmount"
+" FROM Invoice WHERE InvoiceDate BETWEEN "
+ startDate.ToString("yyyy-MM-dd")
+ " AND " + endDate.ToString("yyyy-MM-dd")
+ " AND (InvoiceNo LIKE '%" + txtSearch.Text
+ "%' OR SalesPerson LIKE '%"+ txtSearch.Text
+ "%' OR Cust... | 2018/01/19 | [
"https://Stackoverflow.com/questions/48334725",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9238419/"
] | First save your input value to some variables using onChangeText
```
<TextInput
value= {this.state.userName}
onChangeText = {(text)=>{
this.setState({userName:text});
}
/>
```
Then you can pass the value ,
```
<Button
onPress={() => navigate('HomePage',{"userName":this.state.userName})} // you can pass objects
... | ```
class Login extends Component {
constructor(props) {
super(props);
this.state = {
userName:"",
password:""
};
}
updateUserName = (name) =>{
this.setState({
userName:name,
})
}
updatePwd = (pwd) =>{
this.setState({
password:pwd,
})
}
render() ... |
48,334,725 | ```
OleDbConn.ole = "SELECT InvoiceDate,InvoiceNo,Customer,SalesPerson,TotalAmount"
+" FROM Invoice WHERE InvoiceDate BETWEEN "
+ startDate.ToString("yyyy-MM-dd")
+ " AND " + endDate.ToString("yyyy-MM-dd")
+ " AND (InvoiceNo LIKE '%" + txtSearch.Text
+ "%' OR SalesPerson LIKE '%"+ txtSearch.Text
+ "%' OR Cust... | 2018/01/19 | [
"https://Stackoverflow.com/questions/48334725",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9238419/"
] | First save your input value to some variables using onChangeText
```
<TextInput
value= {this.state.userName}
onChangeText = {(text)=>{
this.setState({userName:text});
}
/>
```
Then you can pass the value ,
```
<Button
onPress={() => navigate('HomePage',{"userName":this.state.userName})} // you can pass objects
... | Do the following changes :
In Login component :
**Username Field**
```
<TextInput
style={{width:190,color:'white'}}
placeholder="User Name"
placeholderTextColor="#f9f9f9"
underlineColorAndroid='#f9f9f9'
onChangeText=
{(username)=>this.setState({usern... |
34,382,612 | I am using the following code to save a spark DataFrame to JSON file
```
unzipJSON.write.mode("append").json("/home/eranw/Workspace/JSON/output/unCompressedJson.json")
```
the output result is:
```
part-r-00000-704b5725-15ea-4705-b347-285a4b0e7fd8
.part-r-00000-704b5725-15ea-4705-b347-285a4b0e7fd8.crc
part-r-00001-... | 2015/12/20 | [
"https://Stackoverflow.com/questions/34382612",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3401244/"
] | If you want a single file, you need to do a `coalesce` to a single partition before calling write, so:
```
unzipJSON.coalesce(1).write.mode("append").json("/home/eranw/Workspace/JSON/output/unCompressedJson.json")
```
Personally, I find it rather annoying that the number of output files depend on number of partition... | Just a little update in above answer. To disable crc and SUCCESS file, simply set property in spark session as follows(example)
```
spark = SparkSession \
.builder \
.appName("Python Spark SQL Hive integration example") \
.config("spark.sql.warehouse.dir", warehouse_location) \
.enableH... |
34,382,612 | I am using the following code to save a spark DataFrame to JSON file
```
unzipJSON.write.mode("append").json("/home/eranw/Workspace/JSON/output/unCompressedJson.json")
```
the output result is:
```
part-r-00000-704b5725-15ea-4705-b347-285a4b0e7fd8
.part-r-00000-704b5725-15ea-4705-b347-285a4b0e7fd8.crc
part-r-00001-... | 2015/12/20 | [
"https://Stackoverflow.com/questions/34382612",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3401244/"
] | If you want a single file, you need to do a `coalesce` to a single partition before calling write, so:
```
unzipJSON.coalesce(1).write.mode("append").json("/home/eranw/Workspace/JSON/output/unCompressedJson.json")
```
Personally, I find it rather annoying that the number of output files depend on number of partition... | Ignore crc files on .write
```
val hadoopConf = spark.sparkContext.hadoopConfiguration
val fs = org.apache.hadoop.fs.FileSystem.get(hadoopConf)
fs.setWriteChecksum(false)
``` |
34,382,612 | I am using the following code to save a spark DataFrame to JSON file
```
unzipJSON.write.mode("append").json("/home/eranw/Workspace/JSON/output/unCompressedJson.json")
```
the output result is:
```
part-r-00000-704b5725-15ea-4705-b347-285a4b0e7fd8
.part-r-00000-704b5725-15ea-4705-b347-285a4b0e7fd8.crc
part-r-00001-... | 2015/12/20 | [
"https://Stackoverflow.com/questions/34382612",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3401244/"
] | Just a little update in above answer. To disable crc and SUCCESS file, simply set property in spark session as follows(example)
```
spark = SparkSession \
.builder \
.appName("Python Spark SQL Hive integration example") \
.config("spark.sql.warehouse.dir", warehouse_location) \
.enableH... | Ignore crc files on .write
```
val hadoopConf = spark.sparkContext.hadoopConfiguration
val fs = org.apache.hadoop.fs.FileSystem.get(hadoopConf)
fs.setWriteChecksum(false)
``` |
510,518 | Install 14.04 through live usb to external-hdd on ASUS 105E-DS02, currently running 12.04 with broken wifi. The 8GB live usb and 3 dvds from PRIZX will provide the software. Have read through many answers and web sites, did note the need for internet connection which is not available until thats fixed. Hoping that wifi... | 2014/08/12 | [
"https://askubuntu.com/questions/510518",
"https://askubuntu.com",
"https://askubuntu.com/users/315054/"
] | Overall just start the installation but when it gets to the page where it asks you to select install location and such select "something else" then set the bootloader install location to the external hdd and the / mount point on it as well. | Examples:
Does not hightlight changing boot loader to sdb, if external drive, but shows other install screen shots:
[How to Install Ubuntu on separate hard drive in a dual boot?](https://askubuntu.com/questions/312782/how-to-install-ubuntu-on-separate-hard-drive-in-a-dual-boot)
[Install on Second Hard Drive with star... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.