qid int64 1 74.7M | question stringlengths 15 58.3k | date stringlengths 10 10 | metadata list | response_j stringlengths 4 30.2k | response_k stringlengths 11 36.5k |
|---|---|---|---|---|---|
58,556 | I need a new chainring but when I called the manufacturer they said my model is so old they don't have the part any more.
I've attached an image of the crank from the manual and a photo from my bike. Can someone tell me if it is possible to get this type of chainring, or an entire new crank?
How do I measure it to m... | 2018/12/17 | [
"https://bicycles.stackexchange.com/questions/58556",
"https://bicycles.stackexchange.com",
"https://bicycles.stackexchange.com/users/40542/"
] | It seems that you're asking about a BMX chainring. As far as I can see (I'm no expert in BMX) they are fairly standard. To be sure you'd neet to take three measurements:
* the diameter of the hole that goes on the bottom bracket spindle (1)
* the diameter of the hole that attaches to the drive-side crank (2)
* the dis... | You have a [one-piece Ashtabula-style crank](https://www.sheldonbrown.com/opc.html). These were commonly found on inexpensive department store bikes.
Unless you can find a donor bike or donor parts for cheap (say at your local bike coop) the bikes themselves are almost always not worth the cost of trying to repair wi... |
58,556 | I need a new chainring but when I called the manufacturer they said my model is so old they don't have the part any more.
I've attached an image of the crank from the manual and a photo from my bike. Can someone tell me if it is possible to get this type of chainring, or an entire new crank?
How do I measure it to m... | 2018/12/17 | [
"https://bicycles.stackexchange.com/questions/58556",
"https://bicycles.stackexchange.com",
"https://bicycles.stackexchange.com/users/40542/"
] | It seems that you're asking about a BMX chainring. As far as I can see (I'm no expert in BMX) they are fairly standard. To be sure you'd neet to take three measurements:
* the diameter of the hole that goes on the bottom bracket spindle (1)
* the diameter of the hole that attaches to the drive-side crank (2)
* the dis... | You have what is called a one-piece or 'Ashtabula' crank. Don't ask me why it has that name. Info on Sheldon Brown here: <https://www.sheldonbrown.com/opc.html>.
Unike cars, bicycles generally use common standardized and commoditized components that do not have to be replaced with the exact part originally used. You c... |
890,274 | Short best practice question: If an object A is injected into another object B, should then object B implement IDisposable and dispose A when B is disposed? | 2009/05/20 | [
"https://Stackoverflow.com/questions/890274",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/80589/"
] | If you're referring to the [dependency injection](http://www.martinfowler.com/articles/injection.html) pattern, I think it depends on the knowledge in Object B about the implementation of Object A. The reason for doing dependency injection like this is usually because you do not know on beforehand how Object A will be ... | I think that would really end up being subjective.
It would all boil down to, Who should control the lifetime of object A?
Say for instance object C and D also have object A injected into them, in that case you wouldn't want object B disposing of object A prematurely.
However, in some cases when you know the lifetim... |
890,274 | Short best practice question: If an object A is injected into another object B, should then object B implement IDisposable and dispose A when B is disposed? | 2009/05/20 | [
"https://Stackoverflow.com/questions/890274",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/80589/"
] | (edit: when answering, it wan't clear to me that the question was about IoC/DI; I'll leave this here for reference, but look first at the accepted answer).
If by "injected" you mean that `B` assumes ownership of `A`, then yes; example of this would be things like [`StreamReader`](http://msdn.microsoft.com/en-us/librar... | I think that would really end up being subjective.
It would all boil down to, Who should control the lifetime of object A?
Say for instance object C and D also have object A injected into them, in that case you wouldn't want object B disposing of object A prematurely.
However, in some cases when you know the lifetim... |
890,274 | Short best practice question: If an object A is injected into another object B, should then object B implement IDisposable and dispose A when B is disposed? | 2009/05/20 | [
"https://Stackoverflow.com/questions/890274",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/80589/"
] | I would generally say no; the nature of dependency injection means that the injected object does not know much about the lifecycle of what it was injected with; to some extent, this is the definition of injection. As such, I do not think the injected object should dispose whatever it was injected with; the injecting co... | I think that would really end up being subjective.
It would all boil down to, Who should control the lifetime of object A?
Say for instance object C and D also have object A injected into them, in that case you wouldn't want object B disposing of object A prematurely.
However, in some cases when you know the lifetim... |
890,274 | Short best practice question: If an object A is injected into another object B, should then object B implement IDisposable and dispose A when B is disposed? | 2009/05/20 | [
"https://Stackoverflow.com/questions/890274",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/80589/"
] | If you're referring to the [dependency injection](http://www.martinfowler.com/articles/injection.html) pattern, I think it depends on the knowledge in Object B about the implementation of Object A. The reason for doing dependency injection like this is usually because you do not know on beforehand how Object A will be ... | (edit: when answering, it wan't clear to me that the question was about IoC/DI; I'll leave this here for reference, but look first at the accepted answer).
If by "injected" you mean that `B` assumes ownership of `A`, then yes; example of this would be things like [`StreamReader`](http://msdn.microsoft.com/en-us/librar... |
890,274 | Short best practice question: If an object A is injected into another object B, should then object B implement IDisposable and dispose A when B is disposed? | 2009/05/20 | [
"https://Stackoverflow.com/questions/890274",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/80589/"
] | If you're referring to the [dependency injection](http://www.martinfowler.com/articles/injection.html) pattern, I think it depends on the knowledge in Object B about the implementation of Object A. The reason for doing dependency injection like this is usually because you do not know on beforehand how Object A will be ... | My 2p would be to argue that A should not be disposed when B is disposed. The whole idea of dependency injection is that you don't have to worry about the bahaviour and lifecycle of the objects you are receiving, you are just handed them.
Then again you want to ensure the object gets cleaned up as soon as it is it is ... |
890,274 | Short best practice question: If an object A is injected into another object B, should then object B implement IDisposable and dispose A when B is disposed? | 2009/05/20 | [
"https://Stackoverflow.com/questions/890274",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/80589/"
] | (edit: when answering, it wan't clear to me that the question was about IoC/DI; I'll leave this here for reference, but look first at the accepted answer).
If by "injected" you mean that `B` assumes ownership of `A`, then yes; example of this would be things like [`StreamReader`](http://msdn.microsoft.com/en-us/librar... | My 2p would be to argue that A should not be disposed when B is disposed. The whole idea of dependency injection is that you don't have to worry about the bahaviour and lifecycle of the objects you are receiving, you are just handed them.
Then again you want to ensure the object gets cleaned up as soon as it is it is ... |
890,274 | Short best practice question: If an object A is injected into another object B, should then object B implement IDisposable and dispose A when B is disposed? | 2009/05/20 | [
"https://Stackoverflow.com/questions/890274",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/80589/"
] | I would generally say no; the nature of dependency injection means that the injected object does not know much about the lifecycle of what it was injected with; to some extent, this is the definition of injection. As such, I do not think the injected object should dispose whatever it was injected with; the injecting co... | (edit: when answering, it wan't clear to me that the question was about IoC/DI; I'll leave this here for reference, but look first at the accepted answer).
If by "injected" you mean that `B` assumes ownership of `A`, then yes; example of this would be things like [`StreamReader`](http://msdn.microsoft.com/en-us/librar... |
890,274 | Short best practice question: If an object A is injected into another object B, should then object B implement IDisposable and dispose A when B is disposed? | 2009/05/20 | [
"https://Stackoverflow.com/questions/890274",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/80589/"
] | I would generally say no; the nature of dependency injection means that the injected object does not know much about the lifecycle of what it was injected with; to some extent, this is the definition of injection. As such, I do not think the injected object should dispose whatever it was injected with; the injecting co... | My 2p would be to argue that A should not be disposed when B is disposed. The whole idea of dependency injection is that you don't have to worry about the bahaviour and lifecycle of the objects you are receiving, you are just handed them.
Then again you want to ensure the object gets cleaned up as soon as it is it is ... |
47,031 | I'm using **Advanced Custom Fields / ACF** to create custom fields. One of them is a list of checkboxes that display some options *(option1, option2, option3...)*.
Now I want to display all options of this field on a separate page on the frontend like so:
Options:
- option 1
- option 2
- option 3
- ...
... | 2012/03/27 | [
"https://wordpress.stackexchange.com/questions/47031",
"https://wordpress.stackexchange.com",
"https://wordpress.stackexchange.com/users/14608/"
] | The [`get_field_object`](http://www.advancedcustomfields.com/resources/functions/get_field_object/) ACF function can be used to get info and options for a specific field.
First you need the field key of the specific field you wish to output. When editing a field group, click on the screen options tab at the top of the... | If you're trying to output something if a checkbox was checked, use:
```
<?php if(in_array('news', get_field('checkbox') )): ?>
<h1>News was ticked!</h1>
<?php endif; ?>
```
If you're trying to just display a list of the checked options, use this:
```
<p>Categories: <?php get_field('checkbox'); ?></p>
```
Thi... |
4,097,551 | I am looking for an improvement to the below query, any input gratefully received
```
with cteA as (
select name, count(1) as "A"
from mytable
where y="A"
group by name
),
cteB as (
select name, count(1) as "B"
from mytable
where y="B"
... | 2010/11/04 | [
"https://Stackoverflow.com/questions/4097551",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/106261/"
] | ```
select name,
sum(case when y='A' then 1 else 0 end) as [count x when A],
sum(case when y='B' then 1 else 0 end) as [count x when B]
from mytable
where y in ('A','B')
group by name
order by name
``` | The simplest answer is:
```
select name, y, count(*)
from mytable
where y in ('A','B')
group by name, y
```
You can use a PIVOT to move Y row values into columns, if you need them in columns. |
113,226 | There is a rule in Mac Mail that I cant seem to get to work: "Date Received is Greater Than 1 Day Old". I'm expecting this to apply to messages from yesterday (and so on). Mac Mail rules only seem to apply to messages as they arrive, so of course new messages wont trigger the rule I am trying to make work.
Has anyone ... | 2010/02/25 | [
"https://superuser.com/questions/113226",
"https://superuser.com",
"https://superuser.com/users/-1/"
] | The Apple Mail help says that you can manually run your mail rules …
```
To apply rules to messages you’ve already received, select the messages in the
viewer window and then choose Message > Apply Rules.
```
All I can suggest is that select all of the messages in your Inbox and then click on `Message->Apply Rules`.... | I am not sure what you are trying to do with this, but for what it's worth, you may be looking for a smart mailbox. This will not move the message, but it will filter all of your messages that meet a certain criteria into a mailbox (in apple land, they call folders mailboxes).
If you are looking to do this in order to... |
113,226 | There is a rule in Mac Mail that I cant seem to get to work: "Date Received is Greater Than 1 Day Old". I'm expecting this to apply to messages from yesterday (and so on). Mac Mail rules only seem to apply to messages as they arrive, so of course new messages wont trigger the rule I am trying to make work.
Has anyone ... | 2010/02/25 | [
"https://superuser.com/questions/113226",
"https://superuser.com",
"https://superuser.com/users/-1/"
] | The Apple Mail help says that you can manually run your mail rules …
```
To apply rules to messages you’ve already received, select the messages in the
viewer window and then choose Message > Apply Rules.
```
All I can suggest is that select all of the messages in your Inbox and then click on `Message->Apply Rules`.... | It's simple: Create this Smart Mailbox rule:
Date Received--is not in the last--1 days. |
36,291 | Did Luther have any disagreements with the teachings of Augustine of Hippo? The Wikipedia page on Luther doesn't mention any, and from my limited knowledge of Luther's books, I can't recall any either. However, there might have been some. | 2015/01/09 | [
"https://christianity.stackexchange.com/questions/36291",
"https://christianity.stackexchange.com",
"https://christianity.stackexchange.com/users/234/"
] | Luther and Augustine seem to have disagreed on:
* [Ecclesiology](https://christianity.stackexchange.com/q/26279/9289)
* Purgatory: [Augustine believed it](https://christianity.stackexchange.com/q/42718/9289), though Luther claimed he "[held nothing at all of purgatory.](http://www.ccel.org/ccel/luther/tabletalk.v.xix.... | Luther had a very high opinion of St. Augustine. He often spoke about him in his table talks, praised him even:
>
> "Augustine was the ablest and purest of all the doctors..."
> -----------------------------------------------------------
>
>
> *—Luther, [Table Talk DXXXI.](http://www.ccel.org/ccel/luther/tabletalk.... |
26,332,999 | I have a base `class A` that provides some functionality and a subclass `B extends A` that provides additional functionality on top of `A`.
Assuming classes `C`, `D`, and `E` extend `A`, how would I construct classes of `C`, `D`, and `E` that extend `B` instead (without making new classes that basically duplicate `C`,... | 2014/10/13 | [
"https://Stackoverflow.com/questions/26332999",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1059070/"
] | In java, a class can only extend *one* class. If you want implementations of C, D and E that extend B instead of A, you must create new classes.
But, behaviour can be controlled in ways *other* that class hierarchy.
One option would be to use the [delegation pattern](http://en.wikipedia.org/wiki/Delegation_pattern), ... | If Class B extends A. Then you can make Classes (C,D and E) extends class B instead of A. By this the three classes (C, D and E) can use the public functionality(attributes and methods) available in both classes B and A (inheritance hierarchy). |
26,332,999 | I have a base `class A` that provides some functionality and a subclass `B extends A` that provides additional functionality on top of `A`.
Assuming classes `C`, `D`, and `E` extend `A`, how would I construct classes of `C`, `D`, and `E` that extend `B` instead (without making new classes that basically duplicate `C`,... | 2014/10/13 | [
"https://Stackoverflow.com/questions/26332999",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1059070/"
] | In java, a class can only extend *one* class. If you want implementations of C, D and E that extend B instead of A, you must create new classes.
But, behaviour can be controlled in ways *other* that class hierarchy.
One option would be to use the [delegation pattern](http://en.wikipedia.org/wiki/Delegation_pattern), ... | Class B extends Class A. So all functionality of Class A will be inherited in Class B.
```
Class B extends A{}
```
Now you want Class C, D, E to extend functionality of Class A and B Which can be done by simply extending Class B instead of Class A
```
Class C extends B{}
Class D extends B{}
Class E extends B{}
``` |
26,332,999 | I have a base `class A` that provides some functionality and a subclass `B extends A` that provides additional functionality on top of `A`.
Assuming classes `C`, `D`, and `E` extend `A`, how would I construct classes of `C`, `D`, and `E` that extend `B` instead (without making new classes that basically duplicate `C`,... | 2014/10/13 | [
"https://Stackoverflow.com/questions/26332999",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1059070/"
] | In java, a class can only extend *one* class. If you want implementations of C, D and E that extend B instead of A, you must create new classes.
But, behaviour can be controlled in ways *other* that class hierarchy.
One option would be to use the [delegation pattern](http://en.wikipedia.org/wiki/Delegation_pattern), ... | Extend class B directly instead of class A. you can understand better if you look into [this](http://www.tutorialspoint.com/java/java_inheritance.htm) |
26,332,999 | I have a base `class A` that provides some functionality and a subclass `B extends A` that provides additional functionality on top of `A`.
Assuming classes `C`, `D`, and `E` extend `A`, how would I construct classes of `C`, `D`, and `E` that extend `B` instead (without making new classes that basically duplicate `C`,... | 2014/10/13 | [
"https://Stackoverflow.com/questions/26332999",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1059070/"
] | In java, a class can only extend *one* class. If you want implementations of C, D and E that extend B instead of A, you must create new classes.
But, behaviour can be controlled in ways *other* that class hierarchy.
One option would be to use the [delegation pattern](http://en.wikipedia.org/wiki/Delegation_pattern), ... | Add Basic functionalities of Ball Like roll(), bounce() and spin() in Ball Class as all Balls should have these three. And Extend Class A in Class B so by doing this you can instantiate Ball and Beach Ball where Ball and Beach Ball both will be having roll bounce and Spin and Beach Ball would be having its own features |
26,332,999 | I have a base `class A` that provides some functionality and a subclass `B extends A` that provides additional functionality on top of `A`.
Assuming classes `C`, `D`, and `E` extend `A`, how would I construct classes of `C`, `D`, and `E` that extend `B` instead (without making new classes that basically duplicate `C`,... | 2014/10/13 | [
"https://Stackoverflow.com/questions/26332999",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1059070/"
] | In java, a class can only extend *one* class. If you want implementations of C, D and E that extend B instead of A, you must create new classes.
But, behaviour can be controlled in ways *other* that class hierarchy.
One option would be to use the [delegation pattern](http://en.wikipedia.org/wiki/Delegation_pattern), ... | My guess:
```
abstract class Ball {
< some common functionality >
}
```
Now BeachBall is a concrete class, it is a specific ball. So you should take it as a separated class, now
```
:
class BeachBall extends Ball {
< some common functionality inherited from Ball >
<additional functionality>
}
```
... |
28,260,777 | I come from a Java background, where everything is Object Oriented. While Getting into a bit more of Javascript (more into the class areas of javascript), I've noticed complete changes. The biggest for me is getting used to the prototyping of the so-called "classes" javascript has. So, my question is if you need to int... | 2015/02/01 | [
"https://Stackoverflow.com/questions/28260777",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3123094/"
] | **So, my question is if you need to intialize the varialbes you pass into your class function constructor method-thing.**
Do they need initializing, no. Javascript is a loosely typed language and declared variables can be of any type.
You do not need to declare a variable type for the arguments, they can be anything.... | You can't be sure what parameter types are being passed to your method. That is a main Javascript language trait which can be used for both good and bad.
So, what happens if there are wrong parameter types? Javascript will try to silently convert them to something common.
For example:
```
var a = [100,2,3];
var b = 5... |
14,708,584 | We are developing a Qt Desktop application. Application can open multiple files one in each tab, and each tab (file) has its own context. User can open multiple files and switch among these tabs.
e.g. : Like one tab is of Truck management for which action (add\_Vehicle) in tool bar should display tool-tip "Add Truck",... | 2013/02/05 | [
"https://Stackoverflow.com/questions/14708584",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1293563/"
] | Value has the type object
```
Value.ToString().Equals("1")
```
to compare it as a string | Did you try:
```
if (dgvPeople.CurrentRow.Cells[6].Value.ToString() == "1")
``` |
14,708,584 | We are developing a Qt Desktop application. Application can open multiple files one in each tab, and each tab (file) has its own context. User can open multiple files and switch among these tabs.
e.g. : Like one tab is of Truck management for which action (add\_Vehicle) in tool bar should display tool-tip "Add Truck",... | 2013/02/05 | [
"https://Stackoverflow.com/questions/14708584",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1293563/"
] | Your trying to check a boolean value against a string object.
This will work:
```
if (dgvPeople.CurrentRow.Cells[6].Value.ToString() == "1")
{
chkGerman.Checked = true;
}
else
{
chkGerman.Checked = false;
}
``` | Did you try:
```
if (dgvPeople.CurrentRow.Cells[6].Value.ToString() == "1")
``` |
12,477,738 | When in a Java editor in Eclipse, pressing `Ctrl`+`Alt`+`M` inserts a new line (like hitting the enter key). How can I disable that? I did not find any corresponding entry in **Preferences** > **General** > **Keys**.
The same happens if I press `Alt Gr`+`M` (generally, `Alt Gr` seems to be the same as `Ctrl`+`Alt` in ... | 2012/09/18 | [
"https://Stackoverflow.com/questions/12477738",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/757308/"
] | @msa, Go to : Window --> Preferences --> General --> Keys. Now type `Ctrl`+`Alt`+`M` in the search box. You will find a command named as "Add Memory Block" & an option below that "Unbind Command". Select the command & press the button. Now Click on "Apply" button & you're done. | As stated by RAS, you can unbind the key combination functionality through eclipse **preferences** - > **General** -> **Keys** . Here's a screenshot for easy reference.
 |
12,477,738 | When in a Java editor in Eclipse, pressing `Ctrl`+`Alt`+`M` inserts a new line (like hitting the enter key). How can I disable that? I did not find any corresponding entry in **Preferences** > **General** > **Keys**.
The same happens if I press `Alt Gr`+`M` (generally, `Alt Gr` seems to be the same as `Ctrl`+`Alt` in ... | 2012/09/18 | [
"https://Stackoverflow.com/questions/12477738",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/757308/"
] | In my case, it unbinds when binding it to another command (for example, maven install) when in Windows. | As stated by RAS, you can unbind the key combination functionality through eclipse **preferences** - > **General** -> **Keys** . Here's a screenshot for easy reference.
 |
3,287,870 | I have a `CustomRequestContext` object that has to be disposed after each request. I create it in `Page_Load` and dispose of it in `Page_Unload`. The only issue is that in certain circumstances I need to call `Server.Transfer` to redirect to another aspx page instead. In this case, the object should not be unloaded unt... | 2010/07/20 | [
"https://Stackoverflow.com/questions/3287870",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/165495/"
] | Start of a string.
See the ["Permanent Start of String and End of String Anchors"](http://www.regular-expressions.info/anchors.html) section | [As Chris Diver said, start of a string.](https://stackoverflow.com/questions/3287866/regular-expressions/3287900#3287900)
You can experiment with Regular Expressions at <http://rubular.com>. |
3,287,870 | I have a `CustomRequestContext` object that has to be disposed after each request. I create it in `Page_Load` and dispose of it in `Page_Unload`. The only issue is that in certain circumstances I need to call `Server.Transfer` to redirect to another aspx page instead. In this case, the object should not be unloaded unt... | 2010/07/20 | [
"https://Stackoverflow.com/questions/3287870",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/165495/"
] | The `\A` and `\Z` markers are meant to provide a way to identify the start and end of a string, primarily for multi-line strings.
If you're processing one line at a time (which is mostly, but not completely, the case with UNIXy text processing tools), you could simply use `^` and `$` because start/end of string is the... | Start of a string.
See the ["Permanent Start of String and End of String Anchors"](http://www.regular-expressions.info/anchors.html) section |
3,287,870 | I have a `CustomRequestContext` object that has to be disposed after each request. I create it in `Page_Load` and dispose of it in `Page_Unload`. The only issue is that in certain circumstances I need to call `Server.Transfer` to redirect to another aspx page instead. In this case, the object should not be unloaded unt... | 2010/07/20 | [
"https://Stackoverflow.com/questions/3287870",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/165495/"
] | The `\A` and `\Z` markers are meant to provide a way to identify the start and end of a string, primarily for multi-line strings.
If you're processing one line at a time (which is mostly, but not completely, the case with UNIXy text processing tools), you could simply use `^` and `$` because start/end of string is the... | [As Chris Diver said, start of a string.](https://stackoverflow.com/questions/3287866/regular-expressions/3287900#3287900)
You can experiment with Regular Expressions at <http://rubular.com>. |
2,280,020 | For $x \ge 1$, is $2^{\sqrt{x}} \ge x$
The answer appears to me to be yes since:
$$\sqrt{x} \ge \log\_2 x$$
Here's my reasoning:
(1) For $x > 16$, $5\sqrt{x} > 4\sqrt{x} + 4$
(2) For $x > 25$, $x > 5\sqrt{x}$
(3) So, $x > 25$, $2x > x + 4\sqrt{x} + 4$ and it follows that $\sqrt{2x} > \sqrt{x} +2$
(4) So, as $x$ ... | 2017/05/14 | [
"https://math.stackexchange.com/questions/2280020",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/48606/"
] | The inequality doesn't always hold, as can be seen by taking $x=9$.
Notice that your question is about comparing $a^b$ and $b^a$ with $a=2,b=\sqrt{x}$. It is well known that $a^b \leq b^a$ if and only if $$a^{1/a} \leq b^{1/b} $$
which in our case is
$$\sqrt{2} \leq b^{1/b}.$$
This inequality holds iff $$2 \leq b \leq... | The claim is in fact false. Take $x=9$, we have
$$2^{\sqrt{9}}=2^3=8<9.$$ |
2,280,020 | For $x \ge 1$, is $2^{\sqrt{x}} \ge x$
The answer appears to me to be yes since:
$$\sqrt{x} \ge \log\_2 x$$
Here's my reasoning:
(1) For $x > 16$, $5\sqrt{x} > 4\sqrt{x} + 4$
(2) For $x > 25$, $x > 5\sqrt{x}$
(3) So, $x > 25$, $2x > x + 4\sqrt{x} + 4$ and it follows that $\sqrt{2x} > \sqrt{x} +2$
(4) So, as $x$ ... | 2017/05/14 | [
"https://math.stackexchange.com/questions/2280020",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/48606/"
] | The inequality doesn't always hold, as can be seen by taking $x=9$.
Notice that your question is about comparing $a^b$ and $b^a$ with $a=2,b=\sqrt{x}$. It is well known that $a^b \leq b^a$ if and only if $$a^{1/a} \leq b^{1/b} $$
which in our case is
$$\sqrt{2} \leq b^{1/b}.$$
This inequality holds iff $$2 \leq b \leq... | Instead of considering $$f(x)=2^{\sqrt x}-x$$ consider function and derivatives $$g(x)={\sqrt x}\log 2-\log(x)$$ $$g'(x)=\frac{\log (2)}{2 \sqrt{x}}-\frac{1}{x}$$ $$g''(x)=\frac{1}{x^2}-\frac{\log (2)}{4 x^{3/2}}$$ The first derivative cancels at $x\_0=\frac{4}{\log ^2(2)}$ and, for this value $$g(x\_0)=2-2\log (2)+2 \... |
45,247,837 | Am getting data from ajax call, How to bind data for text box auto-completion with name and id as fields.
How to bind the data in front end and get selected name's id in back end java.
```
$(document).ready(function() {
$(function() {
$("#customerName").autocomplete({
source : function(request,... | 2017/07/21 | [
"https://Stackoverflow.com/questions/45247837",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8274042/"
] | You can pass the data from your AJAX call to a method to initialize the auto complete plugin.
The method can have a name of selectors to initialize or if your selectors are in the data then you can map the data to an array of selectors you want to bind auto complete for.
```
$(document).ready(function()
$.aja... | Final working code :
```
$(document).ready(function() {
$(function() {
$("#customerName").autocomplete({
source : function(request, response) {
$.ajax({
url : "/customer/getByNames",
type : "GET",
data : {
... |
39,536,794 | I want to create a full width layout with a blue halft on the left and a red half on the right.
After that I want to add text inside the layout but inside a container.
Is this possible?
EDIT: you can see, that the green container has a different size than the col-6 inside the blue and red half.
```css
* {
color:... | 2016/09/16 | [
"https://Stackoverflow.com/questions/39536794",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1788961/"
] | Variant 2. Divide the container into two parts
----------------------------------------------
You can define a new class for each half of the container. But in this solution you needs to control that the two halves have the same height.
```css
.blue { background: blue; color: white; }
.red { background: red; color... | Try this
```
<div class="container-fluid">
<div class="row">
<div class="col-xs-6 blue">
<div class="container">
<!--content-->
</div>
</div>
<div class="col-xs-6 red">
<div class="container">
<!--content-->
</div>
</div>
</div>
```
CSS
```
... |
39,536,794 | I want to create a full width layout with a blue halft on the left and a red half on the right.
After that I want to add text inside the layout but inside a container.
Is this possible?
EDIT: you can see, that the green container has a different size than the col-6 inside the blue and red half.
```css
* {
color:... | 2016/09/16 | [
"https://Stackoverflow.com/questions/39536794",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1788961/"
] | Try this
```
<div class="container-fluid">
<div class="row">
<div class="col-xs-6 blue">
<div class="container">
<!--content-->
</div>
</div>
<div class="col-xs-6 red">
<div class="container">
<!--content-->
</div>
</div>
</div>
```
CSS
```
... | Try this:
```
<div class="container">
<div class="row">
<div class="col-md-6">Left Column</div>
<div class="col-md-6 col-expand">Right Column</div>
</div>
</div>
```
CSS:
```
.col-expand {
position: absolute;
background-color: orange;
width: 100%;
right: 0px;
}
``` |
39,536,794 | I want to create a full width layout with a blue halft on the left and a red half on the right.
After that I want to add text inside the layout but inside a container.
Is this possible?
EDIT: you can see, that the green container has a different size than the col-6 inside the blue and red half.
```css
* {
color:... | 2016/09/16 | [
"https://Stackoverflow.com/questions/39536794",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1788961/"
] | Variant 2. Divide the container into two parts
----------------------------------------------
You can define a new class for each half of the container. But in this solution you needs to control that the two halves have the same height.
```css
.blue { background: blue; color: white; }
.red { background: red; color... | Something like this?
```css
* { color: white; }
.blue-half {
background: blue;
}
.red-half {
background: red;
}
```
```html
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
<div class="container-fluid">
<div class="row">
<div class="col-xs-6 co... |
39,536,794 | I want to create a full width layout with a blue halft on the left and a red half on the right.
After that I want to add text inside the layout but inside a container.
Is this possible?
EDIT: you can see, that the green container has a different size than the col-6 inside the blue and red half.
```css
* {
color:... | 2016/09/16 | [
"https://Stackoverflow.com/questions/39536794",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1788961/"
] | Something like this?
```css
* { color: white; }
.blue-half {
background: blue;
}
.red-half {
background: red;
}
```
```html
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
<div class="container-fluid">
<div class="row">
<div class="col-xs-6 co... | Try this:
```
<div class="container">
<div class="row">
<div class="col-md-6">Left Column</div>
<div class="col-md-6 col-expand">Right Column</div>
</div>
</div>
```
CSS:
```
.col-expand {
position: absolute;
background-color: orange;
width: 100%;
right: 0px;
}
``` |
39,536,794 | I want to create a full width layout with a blue halft on the left and a red half on the right.
After that I want to add text inside the layout but inside a container.
Is this possible?
EDIT: you can see, that the green container has a different size than the col-6 inside the blue and red half.
```css
* {
color:... | 2016/09/16 | [
"https://Stackoverflow.com/questions/39536794",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1788961/"
] | Variant 2. Divide the container into two parts
----------------------------------------------
You can define a new class for each half of the container. But in this solution you needs to control that the two halves have the same height.
```css
.blue { background: blue; color: white; }
.red { background: red; color... | Try this:
```
<div class="container">
<div class="row">
<div class="col-md-6">Left Column</div>
<div class="col-md-6 col-expand">Right Column</div>
</div>
</div>
```
CSS:
```
.col-expand {
position: absolute;
background-color: orange;
width: 100%;
right: 0px;
}
``` |
22,484,224 | im writing a program to extract data between paragraph tags
```
<h2>User Reviews</h2>
<div class="user-comments">
<div class="tinystarbar" title="2/10">
<div style="width: 20px;"> </div>
</div>
<span itemprop="review" itemscope="" itemtype="h... | 2014/03/18 | [
"https://Stackoverflow.com/questions/22484224",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3211319/"
] | This code correctly serializes and de-serializes the object:
```
//write out the object
FileOutputStream fos = new FileOutputStream("out.myobj");
ObjectOutputStream oos = new ObjectOutputStream(fos);
Protocol p = new Protocol(4);
p.setState(5);
oos.writeObject(p);
oos.close();
//read it in
FileInputStream fis = new F... | **("protocol Controller") I think you should implement and use this**
```
import java.io.Serializable;
import javax.swing.table.TableModel;
@Named(value = "protocolController")
@SessionScoped
public class Protocol implements Serializable
``` |
4,104 | I just bought a Sony camcorder that records videos in AVCHD.
I only have a modest, older XP host with an Athlon 64 X2 5200+ and 2GB of RAM.
It looks like I should first convert the AVCHD files into something smaller before editing the segments with standard applications. I need to edit videos I took over a vacation, ... | 2012/06/04 | [
"https://avp.stackexchange.com/questions/4104",
"https://avp.stackexchange.com",
"https://avp.stackexchange.com/users/2445/"
] | There are a large number of these, mostly advertised on gaming websites, but I think this question may be too localised.
Google will find you many, 2 seconds found me this:
<http://www.anewmorning.com/2009/01/06/5-free-alternatives-to-fraps/>
And if you want to find a good one, that link gives some information abou... | I use Open Broadcaster Software for that purpose. It is well known for its streaming capability but can also record the screen with high quality and flexibility.
<https://obsproject.com/> |
4,104 | I just bought a Sony camcorder that records videos in AVCHD.
I only have a modest, older XP host with an Athlon 64 X2 5200+ and 2GB of RAM.
It looks like I should first convert the AVCHD files into something smaller before editing the segments with standard applications. I need to edit videos I took over a vacation, ... | 2012/06/04 | [
"https://avp.stackexchange.com/questions/4104",
"https://avp.stackexchange.com",
"https://avp.stackexchange.com/users/2445/"
] | I love using Camstudio!
It's free I've used it , not the best interface but great to use until you are willing to pony up $300 for Camtasia.
<http://camstudio.org/> | I use Open Broadcaster Software for that purpose. It is well known for its streaming capability but can also record the screen with high quality and flexibility.
<https://obsproject.com/> |
416,044 | Given $$y=2\sqrt{\ln(x+3) }$$
How do I determine a (x,y) pair satisfying the above relation which is the closest to the origin (0,0)? | 2013/06/10 | [
"https://math.stackexchange.com/questions/416044",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/80794/"
] | Minimize the square of the distance from the curve to the origin (and hence, the distance from the curve to the origin), namely: $$x^2+y^2=x^2+4\ln(x+3).$$ | To minimize the distance from the origin, minimize the square of the distance from the origin, given by $d^2 = M = x^2+y^2$,
$$M = x^2+y^2=x^2+(2\sqrt{\ln(x+3)})^2 = x^2 + 4\ln(x+3)$$
$$\frac{dM}{dx} = 2x + \frac{4}{x+3} = \frac{2x(x+3) + 4}{x+3} = \frac{2x^2 + 6x + 4}{x+3}.$$
This is only (possibly) equal to zero w... |
9,371 | As I have seen [here](https://judaism.stackexchange.com/questions/8921/nefesh-neshama-and-ruach-as-words-for-soul/9360#9360), some say that only Jews have a *neshama*, others say that all humans have one. There was a reference there only of the former opinion (Jews only), and I know from elsewhere that that is indeed w... | 2011/08/08 | [
"https://judaism.stackexchange.com/questions/9371",
"https://judaism.stackexchange.com",
"https://judaism.stackexchange.com/users/693/"
] | See ["The Soul of a Jew, the Soul of a Non-Jew: Two Views "](http://www.yutorah.org/lectures/lecture.cfm/744571/Rabbi_Hanan_Balk/The_Soul_of_a_Jew,_the_Soul_of_a_Non-Jew%3a__Two_Views)(mp3) by Rabbi Chanan Balk.
Tanya posits that all humans possess a *nefesh bahamit* ("animalistic soul") whereas only Jews possess a *n... | Peshat of the pesukim in chumash seem to be saying that. Vayivra Adam B'Tzelem Elokim, or Vayipach B'Apav Nishmas Chayim, are both talkiung about Adam, and Adam was not Jewish. And don't bring me "atem nikra'im adam", as that's a halachic principle, not applicable to the peshat of the text, which is talking about the s... |
9,371 | As I have seen [here](https://judaism.stackexchange.com/questions/8921/nefesh-neshama-and-ruach-as-words-for-soul/9360#9360), some say that only Jews have a *neshama*, others say that all humans have one. There was a reference there only of the former opinion (Jews only), and I know from elsewhere that that is indeed w... | 2011/08/08 | [
"https://judaism.stackexchange.com/questions/9371",
"https://judaism.stackexchange.com",
"https://judaism.stackexchange.com/users/693/"
] | See ["The Soul of a Jew, the Soul of a Non-Jew: Two Views "](http://www.yutorah.org/lectures/lecture.cfm/744571/Rabbi_Hanan_Balk/The_Soul_of_a_Jew,_the_Soul_of_a_Non-Jew%3a__Two_Views)(mp3) by Rabbi Chanan Balk.
Tanya posits that all humans possess a *nefesh bahamit* ("animalistic soul") whereas only Jews possess a *n... | You're confusing a *nefesh elokit*(G-dly soul) with a *nefesh Yehudit*(Jewish soul). I have yet to see a description in Tanya of a nefesh Yehudit. Tanya is describing a *nefesh elokit* (G-dly Soul), a *nefesh haAdam* (human soul), and a *nefesh bahamit* (animalistic soul).
The nefesh haAdam(human soul) which everyone ... |
9,371 | As I have seen [here](https://judaism.stackexchange.com/questions/8921/nefesh-neshama-and-ruach-as-words-for-soul/9360#9360), some say that only Jews have a *neshama*, others say that all humans have one. There was a reference there only of the former opinion (Jews only), and I know from elsewhere that that is indeed w... | 2011/08/08 | [
"https://judaism.stackexchange.com/questions/9371",
"https://judaism.stackexchange.com",
"https://judaism.stackexchange.com/users/693/"
] | I don't think there is a conflict. Each human has a *neshama*, however, Jews have two *neshamot* - one that all the nations have, and an extra one that only Jews have. Additionally, there is a third *neshama* that only Jews Receive on shabbat. | Peshat of the pesukim in chumash seem to be saying that. Vayivra Adam B'Tzelem Elokim, or Vayipach B'Apav Nishmas Chayim, are both talkiung about Adam, and Adam was not Jewish. And don't bring me "atem nikra'im adam", as that's a halachic principle, not applicable to the peshat of the text, which is talking about the s... |
9,371 | As I have seen [here](https://judaism.stackexchange.com/questions/8921/nefesh-neshama-and-ruach-as-words-for-soul/9360#9360), some say that only Jews have a *neshama*, others say that all humans have one. There was a reference there only of the former opinion (Jews only), and I know from elsewhere that that is indeed w... | 2011/08/08 | [
"https://judaism.stackexchange.com/questions/9371",
"https://judaism.stackexchange.com",
"https://judaism.stackexchange.com/users/693/"
] | See ["The Soul of a Jew, the Soul of a Non-Jew: Two Views "](http://www.yutorah.org/lectures/lecture.cfm/744571/Rabbi_Hanan_Balk/The_Soul_of_a_Jew,_the_Soul_of_a_Non-Jew%3a__Two_Views)(mp3) by Rabbi Chanan Balk.
Tanya posits that all humans possess a *nefesh bahamit* ("animalistic soul") whereas only Jews possess a *n... | That answer there is just wrong. It represents that the Lubavitcher Rebbe says that the level of *Neshamah* is not present with non-Jews. In fact, the Lubavitcher Rebbe [says](http://www.chabadlibrary.org/books/admur/tm/13/31/291) that all 5 levels of Nefesh, Ruach, Neshama, Chaya and Yechida exist in all human souls. ... |
9,371 | As I have seen [here](https://judaism.stackexchange.com/questions/8921/nefesh-neshama-and-ruach-as-words-for-soul/9360#9360), some say that only Jews have a *neshama*, others say that all humans have one. There was a reference there only of the former opinion (Jews only), and I know from elsewhere that that is indeed w... | 2011/08/08 | [
"https://judaism.stackexchange.com/questions/9371",
"https://judaism.stackexchange.com",
"https://judaism.stackexchange.com/users/693/"
] | I don't think there is a conflict. Each human has a *neshama*, however, Jews have two *neshamot* - one that all the nations have, and an extra one that only Jews have. Additionally, there is a third *neshama* that only Jews Receive on shabbat. | You're confusing a *nefesh elokit*(G-dly soul) with a *nefesh Yehudit*(Jewish soul). I have yet to see a description in Tanya of a nefesh Yehudit. Tanya is describing a *nefesh elokit* (G-dly Soul), a *nefesh haAdam* (human soul), and a *nefesh bahamit* (animalistic soul).
The nefesh haAdam(human soul) which everyone ... |
9,371 | As I have seen [here](https://judaism.stackexchange.com/questions/8921/nefesh-neshama-and-ruach-as-words-for-soul/9360#9360), some say that only Jews have a *neshama*, others say that all humans have one. There was a reference there only of the former opinion (Jews only), and I know from elsewhere that that is indeed w... | 2011/08/08 | [
"https://judaism.stackexchange.com/questions/9371",
"https://judaism.stackexchange.com",
"https://judaism.stackexchange.com/users/693/"
] | See ["The Soul of a Jew, the Soul of a Non-Jew: Two Views "](http://www.yutorah.org/lectures/lecture.cfm/744571/Rabbi_Hanan_Balk/The_Soul_of_a_Jew,_the_Soul_of_a_Non-Jew%3a__Two_Views)(mp3) by Rabbi Chanan Balk.
Tanya posits that all humans possess a *nefesh bahamit* ("animalistic soul") whereas only Jews possess a *n... | I don't think there is a conflict. Each human has a *neshama*, however, Jews have two *neshamot* - one that all the nations have, and an extra one that only Jews have. Additionally, there is a third *neshama* that only Jews Receive on shabbat. |
9,371 | As I have seen [here](https://judaism.stackexchange.com/questions/8921/nefesh-neshama-and-ruach-as-words-for-soul/9360#9360), some say that only Jews have a *neshama*, others say that all humans have one. There was a reference there only of the former opinion (Jews only), and I know from elsewhere that that is indeed w... | 2011/08/08 | [
"https://judaism.stackexchange.com/questions/9371",
"https://judaism.stackexchange.com",
"https://judaism.stackexchange.com/users/693/"
] | See ["The Soul of a Jew, the Soul of a Non-Jew: Two Views "](http://www.yutorah.org/lectures/lecture.cfm/744571/Rabbi_Hanan_Balk/The_Soul_of_a_Jew,_the_Soul_of_a_Non-Jew%3a__Two_Views)(mp3) by Rabbi Chanan Balk.
Tanya posits that all humans possess a *nefesh bahamit* ("animalistic soul") whereas only Jews possess a *n... | The baal hatanya explains that gentiles have animal souls, whereas Jews have both animal and godly souls.
However, some non-Jews who are especially righteous have a godly soul too IIRC. |
9,371 | As I have seen [here](https://judaism.stackexchange.com/questions/8921/nefesh-neshama-and-ruach-as-words-for-soul/9360#9360), some say that only Jews have a *neshama*, others say that all humans have one. There was a reference there only of the former opinion (Jews only), and I know from elsewhere that that is indeed w... | 2011/08/08 | [
"https://judaism.stackexchange.com/questions/9371",
"https://judaism.stackexchange.com",
"https://judaism.stackexchange.com/users/693/"
] | To read more about the Rebbe Schneerson's view that Gentiles do have a neshamah, please see: <http://portraitofaleader.blogspot.com/2009/12/soul-of-gentile.html>
>
> I cannot see where there could have been any difference of opinion on this matter, inasmuch as it is explicitly stated in various sources, and statement... | You're confusing a *nefesh elokit*(G-dly soul) with a *nefesh Yehudit*(Jewish soul). I have yet to see a description in Tanya of a nefesh Yehudit. Tanya is describing a *nefesh elokit* (G-dly Soul), a *nefesh haAdam* (human soul), and a *nefesh bahamit* (animalistic soul).
The nefesh haAdam(human soul) which everyone ... |
9,371 | As I have seen [here](https://judaism.stackexchange.com/questions/8921/nefesh-neshama-and-ruach-as-words-for-soul/9360#9360), some say that only Jews have a *neshama*, others say that all humans have one. There was a reference there only of the former opinion (Jews only), and I know from elsewhere that that is indeed w... | 2011/08/08 | [
"https://judaism.stackexchange.com/questions/9371",
"https://judaism.stackexchange.com",
"https://judaism.stackexchange.com/users/693/"
] | I don't think there is a conflict. Each human has a *neshama*, however, Jews have two *neshamot* - one that all the nations have, and an extra one that only Jews have. Additionally, there is a third *neshama* that only Jews Receive on shabbat. | That answer there is just wrong. It represents that the Lubavitcher Rebbe says that the level of *Neshamah* is not present with non-Jews. In fact, the Lubavitcher Rebbe [says](http://www.chabadlibrary.org/books/admur/tm/13/31/291) that all 5 levels of Nefesh, Ruach, Neshama, Chaya and Yechida exist in all human souls. ... |
9,371 | As I have seen [here](https://judaism.stackexchange.com/questions/8921/nefesh-neshama-and-ruach-as-words-for-soul/9360#9360), some say that only Jews have a *neshama*, others say that all humans have one. There was a reference there only of the former opinion (Jews only), and I know from elsewhere that that is indeed w... | 2011/08/08 | [
"https://judaism.stackexchange.com/questions/9371",
"https://judaism.stackexchange.com",
"https://judaism.stackexchange.com/users/693/"
] | I don't think there is a conflict. Each human has a *neshama*, however, Jews have two *neshamot* - one that all the nations have, and an extra one that only Jews have. Additionally, there is a third *neshama* that only Jews Receive on shabbat. | The baal hatanya explains that gentiles have animal souls, whereas Jews have both animal and godly souls.
However, some non-Jews who are especially righteous have a godly soul too IIRC. |
10,078,772 | I have a problem with SQL sentence. I have entity Gallery which belongs to one Category (entity). Then I have entity GalleryImages and there are stored images for particular gallery. Gallery can have a lot of images, but gallery can also exists without images (no images are added yet).
Now I want to build SQL query to... | 2012/04/09 | [
"https://Stackoverflow.com/questions/10078772",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1045769/"
] | No JavaScript (includes jQuery) needed, use pure CSS: <http://www.css3.info/preview/media-queries/>.
A longer explanation can be found at <http://css-tricks.com/css-media-queries/> | I am not sure about the 'and if lines of text' but the left side of the AND, would be:
-EDIT- I see, let see if this is what you want.
```
$(window).resize(function(){
var h =$('#services h2').css('line-height');
var size = $(window).width();
if (size > 768){
if( $('#services h2').height() ==... |
10,078,772 | I have a problem with SQL sentence. I have entity Gallery which belongs to one Category (entity). Then I have entity GalleryImages and there are stored images for particular gallery. Gallery can have a lot of images, but gallery can also exists without images (no images are added yet).
Now I want to build SQL query to... | 2012/04/09 | [
"https://Stackoverflow.com/questions/10078772",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1045769/"
] | Could you not just set the vertical position of background image to be 50%? Rather than adding js to a relatively minor cosmetic change. | I am not sure about the 'and if lines of text' but the left side of the AND, would be:
-EDIT- I see, let see if this is what you want.
```
$(window).resize(function(){
var h =$('#services h2').css('line-height');
var size = $(window).width();
if (size > 768){
if( $('#services h2').height() ==... |
10,078,772 | I have a problem with SQL sentence. I have entity Gallery which belongs to one Category (entity). Then I have entity GalleryImages and there are stored images for particular gallery. Gallery can have a lot of images, but gallery can also exists without images (no images are added yet).
Now I want to build SQL query to... | 2012/04/09 | [
"https://Stackoverflow.com/questions/10078772",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1045769/"
] | Could you not just set the vertical position of background image to be 50%? Rather than adding js to a relatively minor cosmetic change. | No JavaScript (includes jQuery) needed, use pure CSS: <http://www.css3.info/preview/media-queries/>.
A longer explanation can be found at <http://css-tricks.com/css-media-queries/> |
27,843,860 | I am new in learning PHP/CSS and I'm confused:
I have created this CSS code to divide my website into divisions.
When I use the code like this, there is no problem:
```
#main {
float:left
min-height:500px
min-width:350px
}
```
but using the code below, with the semicolons, it is creating a problem.
```... | 2015/01/08 | [
"https://Stackoverflow.com/questions/27843860",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4433519/"
] | it's the other way around... your code IS working with the semicolons, and it isn't without...
I added a border to make it more clear, in [this jsFiddle](http://jsfiddle.net/w1as5t1g/) the semicolons aren't there, in [this one](http://jsfiddle.net/w1as5t1g/1/) they are. You'll see the black border in the second examp... | It looks like in your first block you aren't actually getting ANY css styling. You are getting the INLINE styling of
`<p style=text-align:center>`
In your second block you are actually setting styling, it's just not doing what you think it's suppose to do. |
27,843,860 | I am new in learning PHP/CSS and I'm confused:
I have created this CSS code to divide my website into divisions.
When I use the code like this, there is no problem:
```
#main {
float:left
min-height:500px
min-width:350px
}
```
but using the code below, with the semicolons, it is creating a problem.
```... | 2015/01/08 | [
"https://Stackoverflow.com/questions/27843860",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4433519/"
] | it's the other way around... your code IS working with the semicolons, and it isn't without...
I added a border to make it more clear, in [this jsFiddle](http://jsfiddle.net/w1as5t1g/) the semicolons aren't there, in [this one](http://jsfiddle.net/w1as5t1g/1/) they are. You'll see the black border in the second examp... | See if this helps you out... [jsfiddle](http://jsfiddle.net/wvz55cgb/)
```
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>Your page title</title>
<style type="text/css">
#main {
text-align: center;
}
</style>
</head>
<body>
<div id="main">
<p>This ... |
60,317 | It's a game mechanic that takes many hours of practice to perfect, but is it worth it to learn if you're hardly using the AD carries in LoL? | 2012/04/01 | [
"https://gaming.stackexchange.com/questions/60317",
"https://gaming.stackexchange.com",
"https://gaming.stackexchange.com/users/22954/"
] | Sort of a tangent, but if you plan to successfully climb the solo queue ladder, you **will** have to play AD carries. Not to mention that understanding the aspects of all lanes is essential regardless of which role you fill.
Animation cancelling is more prevalent in other games such as StarCraft:BW and DOTA, but it is... | I use it in any farming lane, not the jungle. I'd say its nice to know how to do if you want, otherwise dont worry about it. |
60,317 | It's a game mechanic that takes many hours of practice to perfect, but is it worth it to learn if you're hardly using the AD carries in LoL? | 2012/04/01 | [
"https://gaming.stackexchange.com/questions/60317",
"https://gaming.stackexchange.com",
"https://gaming.stackexchange.com/users/22954/"
] | Sort of a tangent, but if you plan to successfully climb the solo queue ladder, you **will** have to play AD carries. Not to mention that understanding the aspects of all lanes is essential regardless of which role you fill.
Animation cancelling is more prevalent in other games such as StarCraft:BW and DOTA, but it is... | Animation cancelling shows huge mechanical control. Learning it may improve your game in other ways. It is always good to learn new things.
No it is not required but is a good way to gain more control over all characters |
58,672,441 | **EDIT: This is a Web component in a static HTML file, I'm only using Angular to compile it.**
I am experimenting with Angular Elements and have created a webcompoent that is a simple NgFor with an input from a JSON file.
```
<div *ngFor="let name of names | keyvalue" (click)="onClick(name)">
{{name.value | json}}
<... | 2019/11/02 | [
"https://Stackoverflow.com/questions/58672441",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4867472/"
] | Since `names` is an array of objects, you do not need to use `keyvalue` in here.
Try like this:
```
<div *ngFor="let name of names" (click)="onClick(name)">
{{name.image}}
</div>
``` | I think you need something like this:
component.ts:
```
import { Component } from '@angular/core';
@Component({
selector: 'my-app',
templateUrl: './app.component.html',
styleUrls: [ './app.component.css' ]
})
export class AppComponent {
public names = [
{
"id":1,
"name": "star 1",
"image":"http... |
58,672,441 | **EDIT: This is a Web component in a static HTML file, I'm only using Angular to compile it.**
I am experimenting with Angular Elements and have created a webcompoent that is a simple NgFor with an input from a JSON file.
```
<div *ngFor="let name of names | keyvalue" (click)="onClick(name)">
{{name.value | json}}
<... | 2019/11/02 | [
"https://Stackoverflow.com/questions/58672441",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4867472/"
] | Since `names` is an array of objects, you do not need to use `keyvalue` in here.
Try like this:
```
<div *ngFor="let name of names" (click)="onClick(name)">
{{name.image}}
</div>
``` | OK so I realised what I was doing wrong. Because it is a Web Component and any string or object can be passed via the html property I can't know what the property names will be when compiling the component in angular. So names.anything will cause an error when compiling.
The solution was to emit the whole object via t... |
33,218,860 | I looked over a few online tutorials and got a hamburger menu to work. However, after the animation from 3 bars to an X, the X icon isn't symmetrical.
Before: <https://gyazo.com/351864d80fda15dfa2745ca1d1daa433>
After: <https://gyazo.com/7122592ea36e3f36d37d0779f4687a61>
In the after image we see that the right s... | 2015/10/19 | [
"https://Stackoverflow.com/questions/33218860",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3566732/"
] | Use a non-greedy `.+?` instead of `.+`, and switch to `gregexpr` for *multiple* matches:
```
R> regmatches(x, gregexpr("M.+?\\*", x))[[1]]
#"MEALYRAQVLVDLT*"
#"MQLPSSFAALAAQFDQL*"
#"MFSLLVASVFTPCSALPFWSIKFTLFILS*"
``` | ```
M[^*]+\\*
```
use negated character class.See demo.Also use `perl=True` option.
<https://regex101.com/r/tD0dU9/6> |
33,218,860 | I looked over a few online tutorials and got a hamburger menu to work. However, after the animation from 3 bars to an X, the X icon isn't symmetrical.
Before: <https://gyazo.com/351864d80fda15dfa2745ca1d1daa433>
After: <https://gyazo.com/7122592ea36e3f36d37d0779f4687a61>
In the after image we see that the right s... | 2015/10/19 | [
"https://Stackoverflow.com/questions/33218860",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3566732/"
] | I will add an option for capture of non-overlapping patterns as you requested. We have to check that another pattern hasn't begun within our match:
```
regmatches(x, gregexpr("M[^M]+?\\*", x))[[1]]
#[1] "MEALYRAQVLVDLT*"
#[2] "MQLPSSFAALAAQFDQL*"
#[3] "MFSLLVASVFTPCSALPFWSIKFTLFILS*"
``` | ```
M[^*]+\\*
```
use negated character class.See demo.Also use `perl=True` option.
<https://regex101.com/r/tD0dU9/6> |
33,218,860 | I looked over a few online tutorials and got a hamburger menu to work. However, after the animation from 3 bars to an X, the X icon isn't symmetrical.
Before: <https://gyazo.com/351864d80fda15dfa2745ca1d1daa433>
After: <https://gyazo.com/7122592ea36e3f36d37d0779f4687a61>
In the after image we see that the right s... | 2015/10/19 | [
"https://Stackoverflow.com/questions/33218860",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3566732/"
] | I will add an option for capture of non-overlapping patterns as you requested. We have to check that another pattern hasn't begun within our match:
```
regmatches(x, gregexpr("M[^M]+?\\*", x))[[1]]
#[1] "MEALYRAQVLVDLT*"
#[2] "MQLPSSFAALAAQFDQL*"
#[3] "MFSLLVASVFTPCSALPFWSIKFTLFILS*"
``` | Use a non-greedy `.+?` instead of `.+`, and switch to `gregexpr` for *multiple* matches:
```
R> regmatches(x, gregexpr("M.+?\\*", x))[[1]]
#"MEALYRAQVLVDLT*"
#"MQLPSSFAALAAQFDQL*"
#"MFSLLVASVFTPCSALPFWSIKFTLFILS*"
``` |
18,222,993 | I've been fighting with this for a while and have simplified the problem down to this:
I am attempting to take a word like 'assessments' and substitute all 's' characters except the first instance found. IE as5e55ment5. It seems that re.sub() does all of the matching before calling the function retfun(). This seems cou... | 2013/08/14 | [
"https://Stackoverflow.com/questions/18222993",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2680916/"
] | Just do a trivial trick with `Substring()` method:
```
//KeyPress event handler for your richTextBox
private void richTextBox_KeyPress(object sender, KeyPressEventArgs e){
if(e.KeyChar == ' '){
int i = richTextBox.Text.TrimEnd().LastIndexOf(' ');
if(i != -1) MessageBox.Show(richTextBox.Text.Substring(i+1)... | This should be enough
```
string lastWord = richTextBox1.Text.TrimEnd().Substring(richTextBox1.Text.TrimEnd()
.LastIndexOf(' ')).Trim();
``` |
69,308 | I imported a file (text and numbers) and made constructed this.
e[[1,All,{1,2,3,4,6}]]
Column 1 is the name of the state. How can I get a subset of this where, say Column 1 is not equal to "New York", or Column 1 equals "California". | 2014/12/18 | [
"https://mathematica.stackexchange.com/questions/69308",
"https://mathematica.stackexchange.com",
"https://mathematica.stackexchange.com/users/23274/"
] | Your question is not clear. Assuming I understood right. You can try this.
```
states = Table[Subscript[state, i] , {i, 1, 50}];
dat = RandomReal[{1, 5}, {50, 3}];
mergeddat = Transpose[Prepend[Transpose[dat], states]];
key = Table[Subscript[state, i] , {i, 1, 50, 10}];
mydata =
Flatten[Table[
Select[mergeddat, ... | An option if you haven't got Mathematica 10 is using Cases
```
cityList = {#, CityData[#, "Region"], CityData[#, "Population"]} & /@
CityData[{Large, "UnitedStates"}];
Cases[cityList, {_, a_ /; ! StringMatchQ[a, "NewYork"], _}]
``` |
69,308 | I imported a file (text and numbers) and made constructed this.
e[[1,All,{1,2,3,4,6}]]
Column 1 is the name of the state. How can I get a subset of this where, say Column 1 is not equal to "New York", or Column 1 equals "California". | 2014/12/18 | [
"https://mathematica.stackexchange.com/questions/69308",
"https://mathematica.stackexchange.com",
"https://mathematica.stackexchange.com/users/23274/"
] | Assuming you want to to filter your original list by strings - something that is fairly lightly covered in the MMA help imo - you can do this. Note that the usage of Entity and Quantity are a result of using the CityData and not essential for these examples.
There are a number of good threads on Stack Exchange coverin... | An option if you haven't got Mathematica 10 is using Cases
```
cityList = {#, CityData[#, "Region"], CityData[#, "Population"]} & /@
CityData[{Large, "UnitedStates"}];
Cases[cityList, {_, a_ /; ! StringMatchQ[a, "NewYork"], _}]
``` |
5,117,782 | I am busy writing my own custom attribute for my action method called MyAuthorizeAttribute, I am still busy writing the code, here is my partial code:
```
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
public class MyAuthorizeAttribute : AuthorizeAttribute
{
public new Role Roles;
public over... | 2011/02/25 | [
"https://Stackoverflow.com/questions/5117782",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/225799/"
] | Would it not be better if MyAuthorizeAttribute accepted an IList ( or similar)
That way it is both typesafe, but you don't have to use bit flags.
Bit flags are great if you want to save the reult, but this is the other way.
Edit (Now with examples):
```
Attribute:
[AttributeUsage(AttributeTargets.Method, AllowMulti... | If I understand correctly, your problem here is not with inheriting the `AuthorizeAttribute`, but rather with comparing enum values. You probably want an enum type that you can use as a bit flag - if so, take a look at [the section about Enumeration Types in the C# Programming guide](http://msdn.microsoft.com/en-us/lib... |
1,271,288 | Let $f : S^n \rightarrow \mathbb{R}$ be a continuous, odd function. Want to show that $f$ has a zero.
I have done this for $S^1$ by using connectedness of $S^1$ and the intermediate value theorem. However I am not quite sure on how to extend the result to $S^n$ | 2015/05/07 | [
"https://math.stackexchange.com/questions/1271288",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/215671/"
] | Since $S^n$ contains a copy of $S^1$ you can just restrict $f$ to that copy and use your result for $S^1$. | I suppose that by odd function you mean $f(a(x))=-f(x)$, where $a: S^n\to S^n$ is the antipodal map. Assume WLOG that $f(x\_0)>0$ for some $x\_0\in S^n$. Then $f(a(x\_0))<0$. Apply intermediate value theorem for continuous functions. |
121,039 | Sometimes, when Devash is mentioned in scriptural passages, Rashi observes that the Hebrew word is general and included many sweet fluids.
For example, Leviticus 2:11 commands “For you shall not cause to go up in smoke any leavening or any Devash”; Rashi remarks that any sweet fruit extract is called Devash. At Deuter... | 2021/03/14 | [
"https://judaism.stackexchange.com/questions/121039",
"https://judaism.stackexchange.com",
"https://judaism.stackexchange.com/users/13969/"
] | We find in the Mishnah in [Makhshirin Perk 6 Mishna 4](https://www.sefaria.org/Mishnah_Makhshirin.6.4?lang=bi&with=all&lang2=bi) that דבש means honey of bees specifically:
>
> שִׁבְעָה מַשְׁקִין הֵן. הַטַּל וְהַמַּיִם, הַיַּיִן וְהַשֶּׁמֶן, וְהַדָּם, וְהֶחָלָב, וּדְבַשׁ דְּבוֹרִים. דְּבַשׁ צְרָעִים, טָהוֹר, וּמֻתָּר ... | I think you might technically be correct that דבש just means a sweet sticky substance; honey, molasses, and syrup should all be equally applicable.
Rashi in Leviticus 2:11 clearly says that the term דבש refers to any sweetness from fruit. It's even clearer from his commentary on 2:12, where he says that you bring from... |
121,039 | Sometimes, when Devash is mentioned in scriptural passages, Rashi observes that the Hebrew word is general and included many sweet fluids.
For example, Leviticus 2:11 commands “For you shall not cause to go up in smoke any leavening or any Devash”; Rashi remarks that any sweet fruit extract is called Devash. At Deuter... | 2021/03/14 | [
"https://judaism.stackexchange.com/questions/121039",
"https://judaism.stackexchange.com",
"https://judaism.stackexchange.com/users/13969/"
] | As a general rule, unless specified otherwise, d'vash will mean fruit honey,
particularly date honey (see shiva'as haminim where d'vash is reffering to dates),
and also fig honey (a few examples are found in the gemara with stories relating
to figs' honey). | I think you might technically be correct that דבש just means a sweet sticky substance; honey, molasses, and syrup should all be equally applicable.
Rashi in Leviticus 2:11 clearly says that the term דבש refers to any sweetness from fruit. It's even clearer from his commentary on 2:12, where he says that you bring from... |
1,994,083 | Rails is supposed to magically see that a request is a "DELETE" versus "GET" request, right?
I can hit `http://localhost/controller/destroy/1` and it'll delete the record. How do developers typically prevent such silly deleting? | 2010/01/03 | [
"https://Stackoverflow.com/questions/1994083",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/112377/"
] | It's good practice to remove the following generated routes from the bottom of your routes file:
```
map.connect ':controller/:action/:id'
map.connect ':controller/:action/:id.:format'
```
As these can leave doors open to guessable, destructive actions like destroy. I try to be explicit about which routes are allowe... | There's a bit of an underlying problem here.
The HTML specification provides no way for to spawn a PUT or DELETE request. In Rails and most other RESTful web applications, PUT and DELETE requests are forged via a Javascript onclick property. So it's useful to have around to handle destroy requests from browsers witho... |
19,943,655 | I have an intranet application that stores files in SQL filestream.
On my dev machine, everything works like a charm.
I'm able to upload and store files into SQL filestream (AjaxUpload) and able to downlaod them.
On the live server, I'm able to upload files, delete them, but when I try to download the file from file... | 2013/11/13 | [
"https://Stackoverflow.com/questions/19943655",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2946368/"
] | I had the same issue and I was able to fix the issue by ensuring that the account used to access the database has SELECT and UPDATE privileges to the FILESTREAM column in the table being accessed. Here is the T-SQL code needed:
```
GRANT SELECT, UPDATE ON OBJECT::[schema name].[table name]([file stream column name]) T... | Sounds more like the problem is with OS permissions and not SQL Server permissions. Try granting read/write access to the path where the filestream is created to the Domain account used by your application pool |
19,943,655 | I have an intranet application that stores files in SQL filestream.
On my dev machine, everything works like a charm.
I'm able to upload and store files into SQL filestream (AjaxUpload) and able to downlaod them.
On the live server, I'm able to upload files, delete them, but when I try to download the file from file... | 2013/11/13 | [
"https://Stackoverflow.com/questions/19943655",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2946368/"
] | FILESTREAM requires integrated security on the connection string. SQL Server Auth is not supported.
See <https://social.msdn.microsoft.com/Forums/fr-FR/c2b9e316-f77d-49e4-8433-440afd392d1a/sqlfilestream-opensqlfilestream-access-is-denied-in-c?forum=adodotnetdataproviders> | Sounds more like the problem is with OS permissions and not SQL Server permissions. Try granting read/write access to the path where the filestream is created to the Domain account used by your application pool |
19,943,655 | I have an intranet application that stores files in SQL filestream.
On my dev machine, everything works like a charm.
I'm able to upload and store files into SQL filestream (AjaxUpload) and able to downlaod them.
On the live server, I'm able to upload files, delete them, but when I try to download the file from file... | 2013/11/13 | [
"https://Stackoverflow.com/questions/19943655",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2946368/"
] | FILESTREAM requires integrated security on the connection string. SQL Server Auth is not supported.
See <https://social.msdn.microsoft.com/Forums/fr-FR/c2b9e316-f77d-49e4-8433-440afd392d1a/sqlfilestream-opensqlfilestream-access-is-denied-in-c?forum=adodotnetdataproviders> | I had the same issue and I was able to fix the issue by ensuring that the account used to access the database has SELECT and UPDATE privileges to the FILESTREAM column in the table being accessed. Here is the T-SQL code needed:
```
GRANT SELECT, UPDATE ON OBJECT::[schema name].[table name]([file stream column name]) T... |
64,531,709 | I am trying to use the audio\_service package to allow background controls for my podcast playing app. The service does not start. When I call `AudioService.start()`, nothing is ever returned (I'm `await`ing this function and trying to print a statement after this returns, but it never returns. Also, when I first attem... | 2020/10/26 | [
"https://Stackoverflow.com/questions/64531709",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/888826/"
] | Calling `AudioService.connect();` before starting the service will solve the error. | For me `AudioService.start()` would freeze until I added the `WAKE_LOCK` and `FOREGROUND_SERVICE` permissions to the AndroidManifest.xml file per the audio\_service README file. |
29,334,896 | I have an image and I want to animate some parts of it using CSS.
So, I got a question:
1. Can I animate some parts of an image with AutoPlay?
I mean after some period of time it should animate itself without reloading the entire page. Possible?
Image example:
![The disk with 24 has to slightly appear rounding (lik... | 2015/03/29 | [
"https://Stackoverflow.com/questions/29334896",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4293281/"
] | Using only a single HTML element and CSS (and an optional background image)
===========================================================================
### It looks like these, but smoother!
 - with images

===========================================================================
### It looks like these, but smoother!
 - with images
 and browse the backups of your emails, scrolling up and down to "travel through time".
If you find a message that you want to restore, you can drag just a single message or a set of emails onto your desktop for import.... | Open Mail, then open Time Machine. Providing the backup disk is available, Time Machine will open and allow you to find deleted emails available for restoration. |
7,136,738 | I would like to hear about usefull free libraries for asp.net mvc 3
I heard about 2 good libraries
1. Fluent validation
2. MvcContrib
Does someone know more of them? | 2011/08/21 | [
"https://Stackoverflow.com/questions/7136738",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/601179/"
] | checkout nuget for all these packages:
<http://nuget.org/List/Packages/EFCodeFirst.SqlServerCompact>
<http://nuget.org/List/Packages/T4Scaffolding>
<http://nuget.org/List/Packages/MvcScaffolding>
<http://nuget.org/List/Packages/Newtonsoft.Json>
<http://nuget.org/List/Packages/Lucene>
<http://nuget.org/List/Packa... | * [ELMAH](http://code.google.com/p/elmah/) - [To work with Asp.Net MVC](http://www.hanselman.com/blog/ELMAHErrorLoggingModulesAndHandlersForASPNETAndMVCToo.aspx)
* [ASP.NET MVC Project Awesome (ajax toolkit for asp.net mvc)](http://awesome.codeplex.com/) |
7,136,738 | I would like to hear about usefull free libraries for asp.net mvc 3
I heard about 2 good libraries
1. Fluent validation
2. MvcContrib
Does someone know more of them? | 2011/08/21 | [
"https://Stackoverflow.com/questions/7136738",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/601179/"
] | * [ELMAH](http://code.google.com/p/elmah/) - [To work with Asp.Net MVC](http://www.hanselman.com/blog/ELMAHErrorLoggingModulesAndHandlersForASPNETAndMVCToo.aspx)
* [ASP.NET MVC Project Awesome (ajax toolkit for asp.net mvc)](http://awesome.codeplex.com/) | * [jQuery ASP.Net MVC Controls](http://mvcjquerycontrols.codeplex.com/)
* [MVC Controls Toolkit](http://mvccontrolstoolkit.codeplex.com/)
* [Fluent Filters](http://fluentfilters.codeplex.com/)
* [Sharp Architecture](https://github.com/sharparchitecture/sharp-architecture/wiki) |
7,136,738 | I would like to hear about usefull free libraries for asp.net mvc 3
I heard about 2 good libraries
1. Fluent validation
2. MvcContrib
Does someone know more of them? | 2011/08/21 | [
"https://Stackoverflow.com/questions/7136738",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/601179/"
] | checkout nuget for all these packages:
<http://nuget.org/List/Packages/EFCodeFirst.SqlServerCompact>
<http://nuget.org/List/Packages/T4Scaffolding>
<http://nuget.org/List/Packages/MvcScaffolding>
<http://nuget.org/List/Packages/Newtonsoft.Json>
<http://nuget.org/List/Packages/Lucene>
<http://nuget.org/List/Packa... | * [jQuery ASP.Net MVC Controls](http://mvcjquerycontrols.codeplex.com/)
* [MVC Controls Toolkit](http://mvccontrolstoolkit.codeplex.com/)
* [Fluent Filters](http://fluentfilters.codeplex.com/)
* [Sharp Architecture](https://github.com/sharparchitecture/sharp-architecture/wiki) |
18,977,748 | ```
function($) {
$.fn.listnav = function(options) {
var opts = $.extend({}, $.fn.listnav.defaults, options);
var letters = ['_', 'a', 'ä', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l','m'
, 'n', 'o', 'ö', 'p', 'q', 'r', 's', 't', 'u', 'ü', 'v', 'w', 'x', 'y', 'z', '-'];
```
AND
```
function createLette... | 2013/09/24 | [
"https://Stackoverflow.com/questions/18977748",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2806161/"
] | Use like this:
```
public class SplashScreen extends Activity {
// Splash screen timer
private static int SPLASH_TIME_OUT = 3000;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_splash);
new ... | I think u have done wrong in intent-filter section
First remove intent filter code in second activity and check the output and comment about it
Modify this line
```
Intent openLoginActivity = new Intent("com.sanginfo.loginsample.LOGINACTIVITY");
```
as
```
Intent openLoginActivity = new Intent("Splash.this"... |
18,977,748 | ```
function($) {
$.fn.listnav = function(options) {
var opts = $.extend({}, $.fn.listnav.defaults, options);
var letters = ['_', 'a', 'ä', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l','m'
, 'n', 'o', 'ö', 'p', 'q', 'r', 's', 't', 'u', 'ü', 'v', 'w', 'x', 'y', 'z', '-'];
```
AND
```
function createLette... | 2013/09/24 | [
"https://Stackoverflow.com/questions/18977748",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2806161/"
] | Use like this:
```
public class SplashScreen extends Activity {
// Splash screen timer
private static int SPLASH_TIME_OUT = 3000;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_splash);
new ... | you should pass the intent using below constructor
```
Intent it = new Intent(packageContext, cls);//
```
declare your intent like this
```
Intent it = new Intent(splash.this, LOGINACTIVITY.class);//
```
constructor that you are using is for implicit intent which takes `action` as parameter and
change
```
... |
18,977,748 | ```
function($) {
$.fn.listnav = function(options) {
var opts = $.extend({}, $.fn.listnav.defaults, options);
var letters = ['_', 'a', 'ä', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l','m'
, 'n', 'o', 'ö', 'p', 'q', 'r', 's', 't', 'u', 'ü', 'v', 'w', 'x', 'y', 'z', '-'];
```
AND
```
function createLette... | 2013/09/24 | [
"https://Stackoverflow.com/questions/18977748",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2806161/"
] | Use like this:
```
public class SplashScreen extends Activity {
// Splash screen timer
private static int SPLASH_TIME_OUT = 3000;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_splash);
new ... | Please have a look at intent,Where you have to set the activity name at which you wants to go.
```
Thread th = new Thread(){
public void run()
{
try {
sleep(4000);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
... |
18,977,748 | ```
function($) {
$.fn.listnav = function(options) {
var opts = $.extend({}, $.fn.listnav.defaults, options);
var letters = ['_', 'a', 'ä', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l','m'
, 'n', 'o', 'ö', 'p', 'q', 'r', 's', 't', 'u', 'ü', 'v', 'w', 'x', 'y', 'z', '-'];
```
AND
```
function createLette... | 2013/09/24 | [
"https://Stackoverflow.com/questions/18977748",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2806161/"
] | Use like this:
```
public class SplashScreen extends Activity {
// Splash screen timer
private static int SPLASH_TIME_OUT = 3000;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_splash);
new ... | Try removing the following code from your LoginActivity manifest.
```
<intent-filter>
<action android:name="com.sanginfo.loginsample.LOGINACTIVITY" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
``` |
887,769 | How do I line up textfields so they look more neat? At the moment I've got:
```
<div id="content">
<h2>Change password</h2>
<% form_tag({:action => "change_password"}, :method => "post") do %>
<%= @error %>
<div class="form_row">
<label for="current_password">Current password:</label>
... | 2009/05/20 | [
"https://Stackoverflow.com/questions/887769",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/58521/"
] | You put a width in the label element.
```
<form action="">
<label style='float: left; display: block; width: 100px;'>Hello</label><input type="text" size="3"><br />
<label style='float: left; display: block; width: 100px;'>Long World</label><input type="text" size="3"><br />
<label style='float: left; disp... | For your question: Set a width to the label element. On a separate note, I'd do the styling in an external stylesheet and use the following syntax for form, just a matter of taste. Sure it is a bit more verbose, but a bit easier to style imo.
```
<div id="#content">
<h2>Change Password</h2>
<form>
<dl>... |
54,330,848 | I have a CSV file with information and want to replace the information in a specific location with a new value.
For example if my CSV file looks like this:
```
example1,example2,0
example3,example4,0
exampple5,example6,0
```
Note that each `row` is labelled for example:
```
test = row[0]
test1 = row[1]
test2 =... | 2019/01/23 | [
"https://Stackoverflow.com/questions/54330848",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10956665/"
] | Simplest way without installing any additional package would be to use built-in csv to read the whole file in a matrix and replace the desired element.
Here is code that would do just that:
```
import csv
with open('test.csv', 'r') as in_file, open('test_out.csv', 'wb') as out_file:
data = [row for row in csv.re... | There are a handful of ways to do this, but personally I'm a big fan of pandas. With pandas, you can read a csv file with `df = pd.read_csv('path_to_file.csv')`. Make changes however you want, if you wanted row 1 column 1, you'd use `df.loc[0,0] = new_val`. Then when you are done save to the same file `df.to_csv('path_... |
65,738,471 | After upgrade to php8 I have a problem with `php-cs-fixer` which I installed globally via composer. Right now I can not use `php-cs-fixer` because every time I get:
```
PHP needs to be a minimum version of PHP 5.6.0 and maximum version of PHP 7.4.*.
To ignore this requirement please set `PHP_CS_FIXER_IGNORE_ENV`.
```... | 2021/01/15 | [
"https://Stackoverflow.com/questions/65738471",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7354959/"
] | The first version of php-cs-fixer to support PHP 8 was [Version 2.18](https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/tag/v2.18.0) released on 18th Jan 2021. | In the file: `./vendor/bin/php-cs-fixer`
Remove the code below (starting at line 26):
```
elseif (!defined('PHP_VERSION_ID') || \PHP_VERSION_ID < 50600 || \PHP_VERSION_ID >= 70500) {
fwrite(STDERR, "PHP needs to be a minimum version of PHP 5.6.0 and maximum version of PHP 7.4.*.\n");
if (getenv('PHP_CS_FIXER... |
65,738,471 | After upgrade to php8 I have a problem with `php-cs-fixer` which I installed globally via composer. Right now I can not use `php-cs-fixer` because every time I get:
```
PHP needs to be a minimum version of PHP 5.6.0 and maximum version of PHP 7.4.*.
To ignore this requirement please set `PHP_CS_FIXER_IGNORE_ENV`.
```... | 2021/01/15 | [
"https://Stackoverflow.com/questions/65738471",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7354959/"
] | <https://cs.symfony.com/doc/usage.html#environment-options>
`PHP_CS_FIXER_IGNORE_ENV=1 php php-cs-fixer.phar fix /path/to/dir` | In the file: `./vendor/bin/php-cs-fixer`
Remove the code below (starting at line 26):
```
elseif (!defined('PHP_VERSION_ID') || \PHP_VERSION_ID < 50600 || \PHP_VERSION_ID >= 70500) {
fwrite(STDERR, "PHP needs to be a minimum version of PHP 5.6.0 and maximum version of PHP 7.4.*.\n");
if (getenv('PHP_CS_FIXER... |
65,738,471 | After upgrade to php8 I have a problem with `php-cs-fixer` which I installed globally via composer. Right now I can not use `php-cs-fixer` because every time I get:
```
PHP needs to be a minimum version of PHP 5.6.0 and maximum version of PHP 7.4.*.
To ignore this requirement please set `PHP_CS_FIXER_IGNORE_ENV`.
```... | 2021/01/15 | [
"https://Stackoverflow.com/questions/65738471",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7354959/"
] | The first version of php-cs-fixer to support PHP 8 was [Version 2.18](https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/tag/v2.18.0) released on 18th Jan 2021. | <https://cs.symfony.com/doc/usage.html#environment-options>
`PHP_CS_FIXER_IGNORE_ENV=1 php php-cs-fixer.phar fix /path/to/dir` |
65,627,977 | I'm trying to upload a ipa file to saucelabs storage but getting the error as mentioned above.
The command that I'm using -
```
$ curl -F 'payload=@/Users/<user-name>/Downloads/<file_name>.ipa' -F name=<file_name>.apk -u "$SAUCE_USERNAME:$SAUCE_ACCESS_KEY" 'https://api.us-west-1.saucelabs.com/v1/storage/upload'
```... | 2021/01/08 | [
"https://Stackoverflow.com/questions/65627977",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8177428/"
] | There might be a problem escaping your path. For me your command works, if the file is correct (I get an unauthorized of course). (curl 7.64.1)
Try your command from the Downloads folder:
```
cd /Users/<user-name>/Downloads
curl -F @<file_name>.ipa -F name=<file_name>.apk -u "$SAUCE_USERNAME:$SAUCE_ACCESS_KEY" 'http... | Use below command for me it resolved
```
curl -F "file=@C:/Users/LENOVO/Desktop/git/ppt/8.apk" http://localhost:8000/api/v1/upload -H "Authorization:f06ecb3505899296f03b0c21d7dc5baf83fb999e3d0b4c1243874c82c0184874"
``` |
65,627,977 | I'm trying to upload a ipa file to saucelabs storage but getting the error as mentioned above.
The command that I'm using -
```
$ curl -F 'payload=@/Users/<user-name>/Downloads/<file_name>.ipa' -F name=<file_name>.apk -u "$SAUCE_USERNAME:$SAUCE_ACCESS_KEY" 'https://api.us-west-1.saucelabs.com/v1/storage/upload'
```... | 2021/01/08 | [
"https://Stackoverflow.com/questions/65627977",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8177428/"
] | There might be a problem escaping your path. For me your command works, if the file is correct (I get an unauthorized of course). (curl 7.64.1)
Try your command from the Downloads folder:
```
cd /Users/<user-name>/Downloads
curl -F @<file_name>.ipa -F name=<file_name>.apk -u "$SAUCE_USERNAME:$SAUCE_ACCESS_KEY" 'http... | I resolved this problem by replacing ***single quotes*** with ***double quotes*** instead.
I changed this:
```
curl -F 'file=@addresses.json' https://location-bq-datasets.cloudfunctions.net/sample-endpoint
```
`curl: (26) Failed to open/read local data from file/application`
To this:
```
curl -F "file=@addresses.... |
65,627,977 | I'm trying to upload a ipa file to saucelabs storage but getting the error as mentioned above.
The command that I'm using -
```
$ curl -F 'payload=@/Users/<user-name>/Downloads/<file_name>.ipa' -F name=<file_name>.apk -u "$SAUCE_USERNAME:$SAUCE_ACCESS_KEY" 'https://api.us-west-1.saucelabs.com/v1/storage/upload'
```... | 2021/01/08 | [
"https://Stackoverflow.com/questions/65627977",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8177428/"
] | There might be a problem escaping your path. For me your command works, if the file is correct (I get an unauthorized of course). (curl 7.64.1)
Try your command from the Downloads folder:
```
cd /Users/<user-name>/Downloads
curl -F @<file_name>.ipa -F name=<file_name>.apk -u "$SAUCE_USERNAME:$SAUCE_ACCESS_KEY" 'http... | In addition to making sure the quotes were in the correct place, I had to remove the tilde that I first included in my file path.
**Bad:**
```
curl -F dsym=@"~/Users/<user-name>/Downloads/<file_name>.dSYM.zip" -H "X-APP-LICENSE-KEY: theKey" https://theplaceto.upload
```
**Good:**
```
curl -F dsym=@"/Users/<user-na... |
65,627,977 | I'm trying to upload a ipa file to saucelabs storage but getting the error as mentioned above.
The command that I'm using -
```
$ curl -F 'payload=@/Users/<user-name>/Downloads/<file_name>.ipa' -F name=<file_name>.apk -u "$SAUCE_USERNAME:$SAUCE_ACCESS_KEY" 'https://api.us-west-1.saucelabs.com/v1/storage/upload'
```... | 2021/01/08 | [
"https://Stackoverflow.com/questions/65627977",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8177428/"
] | I was able to resolve this by not using single or double quotes around the file name.
`curl -u "<userName>:<accessKey>" \ -X POST "https://api-cloud.browserstack.com/app-automate/xcuitest/v2/test-suite" \ -F file=@/path/to/app/file/Application-debug-test.zip. I hope it helps.` | Use below command for me it resolved
```
curl -F "file=@C:/Users/LENOVO/Desktop/git/ppt/8.apk" http://localhost:8000/api/v1/upload -H "Authorization:f06ecb3505899296f03b0c21d7dc5baf83fb999e3d0b4c1243874c82c0184874"
``` |
65,627,977 | I'm trying to upload a ipa file to saucelabs storage but getting the error as mentioned above.
The command that I'm using -
```
$ curl -F 'payload=@/Users/<user-name>/Downloads/<file_name>.ipa' -F name=<file_name>.apk -u "$SAUCE_USERNAME:$SAUCE_ACCESS_KEY" 'https://api.us-west-1.saucelabs.com/v1/storage/upload'
```... | 2021/01/08 | [
"https://Stackoverflow.com/questions/65627977",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8177428/"
] | I was able to resolve this by not using single or double quotes around the file name.
`curl -u "<userName>:<accessKey>" \ -X POST "https://api-cloud.browserstack.com/app-automate/xcuitest/v2/test-suite" \ -F file=@/path/to/app/file/Application-debug-test.zip. I hope it helps.` | I resolved this problem by replacing ***single quotes*** with ***double quotes*** instead.
I changed this:
```
curl -F 'file=@addresses.json' https://location-bq-datasets.cloudfunctions.net/sample-endpoint
```
`curl: (26) Failed to open/read local data from file/application`
To this:
```
curl -F "file=@addresses.... |
65,627,977 | I'm trying to upload a ipa file to saucelabs storage but getting the error as mentioned above.
The command that I'm using -
```
$ curl -F 'payload=@/Users/<user-name>/Downloads/<file_name>.ipa' -F name=<file_name>.apk -u "$SAUCE_USERNAME:$SAUCE_ACCESS_KEY" 'https://api.us-west-1.saucelabs.com/v1/storage/upload'
```... | 2021/01/08 | [
"https://Stackoverflow.com/questions/65627977",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8177428/"
] | I was able to resolve this by not using single or double quotes around the file name.
`curl -u "<userName>:<accessKey>" \ -X POST "https://api-cloud.browserstack.com/app-automate/xcuitest/v2/test-suite" \ -F file=@/path/to/app/file/Application-debug-test.zip. I hope it helps.` | In addition to making sure the quotes were in the correct place, I had to remove the tilde that I first included in my file path.
**Bad:**
```
curl -F dsym=@"~/Users/<user-name>/Downloads/<file_name>.dSYM.zip" -H "X-APP-LICENSE-KEY: theKey" https://theplaceto.upload
```
**Good:**
```
curl -F dsym=@"/Users/<user-na... |
65,627,977 | I'm trying to upload a ipa file to saucelabs storage but getting the error as mentioned above.
The command that I'm using -
```
$ curl -F 'payload=@/Users/<user-name>/Downloads/<file_name>.ipa' -F name=<file_name>.apk -u "$SAUCE_USERNAME:$SAUCE_ACCESS_KEY" 'https://api.us-west-1.saucelabs.com/v1/storage/upload'
```... | 2021/01/08 | [
"https://Stackoverflow.com/questions/65627977",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8177428/"
] | I resolved this problem by replacing ***single quotes*** with ***double quotes*** instead.
I changed this:
```
curl -F 'file=@addresses.json' https://location-bq-datasets.cloudfunctions.net/sample-endpoint
```
`curl: (26) Failed to open/read local data from file/application`
To this:
```
curl -F "file=@addresses.... | Use below command for me it resolved
```
curl -F "file=@C:/Users/LENOVO/Desktop/git/ppt/8.apk" http://localhost:8000/api/v1/upload -H "Authorization:f06ecb3505899296f03b0c21d7dc5baf83fb999e3d0b4c1243874c82c0184874"
``` |
65,627,977 | I'm trying to upload a ipa file to saucelabs storage but getting the error as mentioned above.
The command that I'm using -
```
$ curl -F 'payload=@/Users/<user-name>/Downloads/<file_name>.ipa' -F name=<file_name>.apk -u "$SAUCE_USERNAME:$SAUCE_ACCESS_KEY" 'https://api.us-west-1.saucelabs.com/v1/storage/upload'
```... | 2021/01/08 | [
"https://Stackoverflow.com/questions/65627977",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8177428/"
] | I resolved this problem by replacing ***single quotes*** with ***double quotes*** instead.
I changed this:
```
curl -F 'file=@addresses.json' https://location-bq-datasets.cloudfunctions.net/sample-endpoint
```
`curl: (26) Failed to open/read local data from file/application`
To this:
```
curl -F "file=@addresses.... | In addition to making sure the quotes were in the correct place, I had to remove the tilde that I first included in my file path.
**Bad:**
```
curl -F dsym=@"~/Users/<user-name>/Downloads/<file_name>.dSYM.zip" -H "X-APP-LICENSE-KEY: theKey" https://theplaceto.upload
```
**Good:**
```
curl -F dsym=@"/Users/<user-na... |
35,746 | With the official release only a few days away (June 3, 2020) and the Drupal 9 porting weekend having just completed with a big effort by KarinG (<https://github.com/colemanw/webform_civicrm/pull/314>), what is the status of CiviCRM working with Drupal 9? | 2020/05/24 | [
"https://civicrm.stackexchange.com/questions/35746",
"https://civicrm.stackexchange.com",
"https://civicrm.stackexchange.com/users/96/"
] | Sounds like perhaps you’re missing ->
<https://gitlab.com/roundearth/drupal-civicrm-project/-/issues/2>
But I do recommend you change how you install D8/CiviCRM to as described in here:
[Downstream Git/Composer Issues](https://civicrm.stackexchange.com/questions/35599/downstream-git-composer-issues) | my weeks-long missing civicrm-menu and related issues has finally been resolved through the creation of symlinks. This article provided some guidance:
<https://colorfield.be/blog/install-civicrm-5-with-drupal-8-using-lando>
Studying the 404 errors in the network tab of `inspect element` provided clues. The use of mlo... |
65,070 | I know about geometrical method of construction of discrete subgroups of $SL(2,\mathbb{R})$ using Lobachevsky plane (e.g. B.A. Dubrovin, A.T. Fomenko, S.P. Novikov, Modern Geometry --- Methods and Applications, Springer) via fundamental polygon. Such construction has many applications and some relevant themes were alre... | 2011/05/15 | [
"https://mathoverflow.net/questions/65070",
"https://mathoverflow.net",
"https://mathoverflow.net/users/14175/"
] | The units of $k=\mathbf{Q}(\sqrt{7})$ have the form $\pm (8+3 \sqrt{7})^n$ with $n \in \mathbf{Z}$. If $\pi = x+y\sqrt{7}$ is a prime element of $k$, then $\lambda(\pi):= \log |x+y\sqrt{7}|$ is well-defined in $\mathbf{R}/\alpha \mathbf{Z}$ where $\alpha = \log(8+3\sqrt{7})$. Note that $\lambda$ factors as $\lambda = f... | It is true, with the same proof as Iwaniec-Kowalski. Real or complex, the generators of principal primes are equidistributed modulo units. There just happen to be no units in the complex case. |
450 | After reading the question [Is anecdotal evidence sufficient for answers?](https://skeptics.meta.stackexchange.com/questions/424/is-anecdotal-evidence-sufficient-for-answers) I realized that **Mythbusters** is basically just that - video-taped experiments meant to prove or disprove some hypothesis.
It's popular becaus... | 2011/04/05 | [
"https://skeptics.meta.stackexchange.com/questions/450",
"https://skeptics.meta.stackexchange.com",
"https://skeptics.meta.stackexchange.com/users/1073/"
] | Mythbusters has been discussed and is considered a very good, but [non authoritative reference](https://skeptics.meta.stackexchange.com/questions/132/list-of-useful-sources-for-skeptics-se).
They don't claim scientific correctness (and nor could they).
So it's fine to add a reference to Mythbusters in a question, or... | I agree with the ticked answer, this post is just to outline specific examples and explain why the show can't be considered an authoritative source.
Mythbusters should not be considered anecdotal evidence at all. Instead, in my opinion, they should be considered a ***notable claim*** only.
Here is a good example whic... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.