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 |
|---|---|---|---|---|---|
22,726 | I know that I can significantly improve my hiking efficiency by reducing the weight of my footwear. However, I have historically had trouble with blisters while hiking. I also often do long distance hikes that require heavy packs, and I am an overweight (but fit) hiker.
So I want to know, is the extra weight on your ... | 2019/07/30 | [
"https://outdoors.stackexchange.com/questions/22726",
"https://outdoors.stackexchange.com",
"https://outdoors.stackexchange.com/users/18339/"
] | Blisters are more a function of improperly fitting/not broken in footwear than the specific type, although some kinds can be worse than others. Heavier and stiffer boots take longer to break in than light running shoes for example.
I would get the type of footwear that works best for the terrain and size and break the... | Prevention is important:
1. Wear the shoes with trip socks for a few weeks before the trip. The shorter distances involved in day to day living will get your feet accustomed to your shoes.
2. There are compounds sold that will toughen skin. Rubbing alcohol is one. Salt water is one. Running shoe stores carry others.
3... |
22,726 | I know that I can significantly improve my hiking efficiency by reducing the weight of my footwear. However, I have historically had trouble with blisters while hiking. I also often do long distance hikes that require heavy packs, and I am an overweight (but fit) hiker.
So I want to know, is the extra weight on your ... | 2019/07/30 | [
"https://outdoors.stackexchange.com/questions/22726",
"https://outdoors.stackexchange.com",
"https://outdoors.stackexchange.com/users/18339/"
] | There are a lot of factors that determine when you will get blisters that it is hard to say if one is better than the other. For example, brand new hiking boots vs. brand new trail runners is a totally different question than 1 year old worn in boots vs. runners.
You also need to consider (not exhaustive):
* Shoe fit... | Prevention is important:
1. Wear the shoes with trip socks for a few weeks before the trip. The shorter distances involved in day to day living will get your feet accustomed to your shoes.
2. There are compounds sold that will toughen skin. Rubbing alcohol is one. Salt water is one. Running shoe stores carry others.
3... |
22,726 | I know that I can significantly improve my hiking efficiency by reducing the weight of my footwear. However, I have historically had trouble with blisters while hiking. I also often do long distance hikes that require heavy packs, and I am an overweight (but fit) hiker.
So I want to know, is the extra weight on your ... | 2019/07/30 | [
"https://outdoors.stackexchange.com/questions/22726",
"https://outdoors.stackexchange.com",
"https://outdoors.stackexchange.com/users/18339/"
] | I also have feet which are blister sensitive, but I'm not overweight.
In principle, everything that 'dampens' your steps, avoids blisters, but cost energy. So it's a tradeoff. This includes for example thick/extra socks, soles.
My experiences with hiking and walking events:
About shoes:
* Not too long, this causes ... | Prevention is important:
1. Wear the shoes with trip socks for a few weeks before the trip. The shorter distances involved in day to day living will get your feet accustomed to your shoes.
2. There are compounds sold that will toughen skin. Rubbing alcohol is one. Salt water is one. Running shoe stores carry others.
3... |
22,726 | I know that I can significantly improve my hiking efficiency by reducing the weight of my footwear. However, I have historically had trouble with blisters while hiking. I also often do long distance hikes that require heavy packs, and I am an overweight (but fit) hiker.
So I want to know, is the extra weight on your ... | 2019/07/30 | [
"https://outdoors.stackexchange.com/questions/22726",
"https://outdoors.stackexchange.com",
"https://outdoors.stackexchange.com/users/18339/"
] | I'm likely out of the norm, but I believe properly fitting (and thickness) socks may be even more important than the shoes with regard to blisters. I personally use Darn Tough because they are knit so that there aren't any seams per se that could cause any issues. I size them so they are somewhat snug so there can be n... | Prevention is important:
1. Wear the shoes with trip socks for a few weeks before the trip. The shorter distances involved in day to day living will get your feet accustomed to your shoes.
2. There are compounds sold that will toughen skin. Rubbing alcohol is one. Salt water is one. Running shoe stores carry others.
3... |
16,923,641 | I am using gwt in my web application. Since it supports Italian language along with English (ISO-8859-1 charset)so have used gwt i18n.
The issue is some characters are not getting displayed properly on jsp page on browser. Characters like (Ó é etc) are displayed like diamond �. Reading properties file like
```
XXX_p... | 2013/06/04 | [
"https://Stackoverflow.com/questions/16923641",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/567089/"
] | GWT mandates UTF-8 everywhere: <http://www.gwtproject.org/doc/latest/DevGuideI18n.html#DevGuidePropertiesFiles>
If you can't use UTF-8 for your properties files, you can escape characters using the `\uNNNN` notation like in Java strings:
>
> Characters that cannot be directly represented in this encoding can be writ... | All special characters in HTML, such as those of italian or the spanish ñ need to be scaped. For example: città needs to be returned by the JSP as città
For a list of all the HTML scape characters look [here](http://www.theukwebdesigncompany.com/articles/entity-escape-characters.php). For a way to scape all characters... |
5,897,832 | I want to do this but it won't compile:
```
Public MyVariable as Integer = 123
```
What's the best way of achieving this? | 2011/05/05 | [
"https://Stackoverflow.com/questions/5897832",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/559993/"
] | .NET has spoiled us :)
Your declaration is not valid for VBA.
Only constants can be given a value upon application load. You declare them like so:
```
Public Const APOSTROPHE_KEYCODE = 222
```
Here's a sample declaration from one of my vba projects:

If yo... | You can define the variable in General Declarations and then initialise it in the first event that fires in your environment.
Alternatively, you could create yourself a class with the relevant properties and initialise them in the Initialise method |
5,897,832 | I want to do this but it won't compile:
```
Public MyVariable as Integer = 123
```
What's the best way of achieving this? | 2011/05/05 | [
"https://Stackoverflow.com/questions/5897832",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/559993/"
] | Sure you know, but if its a constant then `const MyVariable as Integer = 123` otherwise your out of luck; the variable must be assigned an initial value elsewhere.
You could:
```
public property get myIntegerThing() as integer
myIntegerThing= 123
end property
```
In a Class module then globally create it;
```
... | there is one way to properly solve your question. i have the same concern with you for a long time. after searching and learning for a long time, finally i get a solution for this kind of question.
The solution is that no need to declare the variable and no need to set value to the variable, and even no need VBA code.... |
5,897,832 | I want to do this but it won't compile:
```
Public MyVariable as Integer = 123
```
What's the best way of achieving this? | 2011/05/05 | [
"https://Stackoverflow.com/questions/5897832",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/559993/"
] | .NET has spoiled us :)
Your declaration is not valid for VBA.
Only constants can be given a value upon application load. You declare them like so:
```
Public Const APOSTROPHE_KEYCODE = 222
```
Here's a sample declaration from one of my vba projects:

If yo... | Just to offer you a different angle -
I find it's not a good idea to maintain public variables between function calls. Any variables you need to use should be stored in Subs and Functions and passed as parameters. Once the code is done running, you shouldn't expect the VBA Project to maintain the values of any variabl... |
5,897,832 | I want to do this but it won't compile:
```
Public MyVariable as Integer = 123
```
What's the best way of achieving this? | 2011/05/05 | [
"https://Stackoverflow.com/questions/5897832",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/559993/"
] | You can define the variable in General Declarations and then initialise it in the first event that fires in your environment.
Alternatively, you could create yourself a class with the relevant properties and initialise them in the Initialise method | there is one way to properly solve your question. i have the same concern with you for a long time. after searching and learning for a long time, finally i get a solution for this kind of question.
The solution is that no need to declare the variable and no need to set value to the variable, and even no need VBA code.... |
5,897,832 | I want to do this but it won't compile:
```
Public MyVariable as Integer = 123
```
What's the best way of achieving this? | 2011/05/05 | [
"https://Stackoverflow.com/questions/5897832",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/559993/"
] | .NET has spoiled us :)
Your declaration is not valid for VBA.
Only constants can be given a value upon application load. You declare them like so:
```
Public Const APOSTROPHE_KEYCODE = 222
```
Here's a sample declaration from one of my vba projects:

If yo... | there is one way to properly solve your question. i have the same concern with you for a long time. after searching and learning for a long time, finally i get a solution for this kind of question.
The solution is that no need to declare the variable and no need to set value to the variable, and even no need VBA code.... |
5,897,832 | I want to do this but it won't compile:
```
Public MyVariable as Integer = 123
```
What's the best way of achieving this? | 2011/05/05 | [
"https://Stackoverflow.com/questions/5897832",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/559993/"
] | .NET has spoiled us :)
Your declaration is not valid for VBA.
Only constants can be given a value upon application load. You declare them like so:
```
Public Const APOSTROPHE_KEYCODE = 222
```
Here's a sample declaration from one of my vba projects:

If yo... | As told above, To declare global accessible variables you can do it outside functions preceded with the public keyword.
And, since the affectation is NOT PERMITTED outside the procedures, you can, for example, create a sub called InitGlobals that initializes your public variables, then you just call this subroutine at... |
5,897,832 | I want to do this but it won't compile:
```
Public MyVariable as Integer = 123
```
What's the best way of achieving this? | 2011/05/05 | [
"https://Stackoverflow.com/questions/5897832",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/559993/"
] | .NET has spoiled us :)
Your declaration is not valid for VBA.
Only constants can be given a value upon application load. You declare them like so:
```
Public Const APOSTROPHE_KEYCODE = 222
```
Here's a sample declaration from one of my vba projects:

If yo... | Sure you know, but if its a constant then `const MyVariable as Integer = 123` otherwise your out of luck; the variable must be assigned an initial value elsewhere.
You could:
```
public property get myIntegerThing() as integer
myIntegerThing= 123
end property
```
In a Class module then globally create it;
```
... |
5,897,832 | I want to do this but it won't compile:
```
Public MyVariable as Integer = 123
```
What's the best way of achieving this? | 2011/05/05 | [
"https://Stackoverflow.com/questions/5897832",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/559993/"
] | Just to offer you a different angle -
I find it's not a good idea to maintain public variables between function calls. Any variables you need to use should be stored in Subs and Functions and passed as parameters. Once the code is done running, you shouldn't expect the VBA Project to maintain the values of any variabl... | As told above, To declare global accessible variables you can do it outside functions preceded with the public keyword.
And, since the affectation is NOT PERMITTED outside the procedures, you can, for example, create a sub called InitGlobals that initializes your public variables, then you just call this subroutine at... |
5,897,832 | I want to do this but it won't compile:
```
Public MyVariable as Integer = 123
```
What's the best way of achieving this? | 2011/05/05 | [
"https://Stackoverflow.com/questions/5897832",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/559993/"
] | This is what I do when I need Initialized Global Constants:
1. Add a module called `Globals`
2. Add Properties like this into the `Globals` module:
```
Property Get PSIStartRow() As Integer
PSIStartRow = Sheets("FOB Prices").Range("F1").Value
End Property
Property Get PSIStartCell() As String
PS... | It's been quite a while, but this may satisfy you :
```
Public MyVariable as Integer: MyVariable = 123
```
It's a bit ugly since you have to retype the variable name, but it's on one line. |
5,897,832 | I want to do this but it won't compile:
```
Public MyVariable as Integer = 123
```
What's the best way of achieving this? | 2011/05/05 | [
"https://Stackoverflow.com/questions/5897832",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/559993/"
] | Sure you know, but if its a constant then `const MyVariable as Integer = 123` otherwise your out of luck; the variable must be assigned an initial value elsewhere.
You could:
```
public property get myIntegerThing() as integer
myIntegerThing= 123
end property
```
In a Class module then globally create it;
```
... | As told above, To declare global accessible variables you can do it outside functions preceded with the public keyword.
And, since the affectation is NOT PERMITTED outside the procedures, you can, for example, create a sub called InitGlobals that initializes your public variables, then you just call this subroutine at... |
836,090 | I need to find the geodesics of a sphere. Then in polar coordinates
$$x=a \sin\theta \cos\phi \\y=a \sin\theta \sin\phi\\
z=a\cos\theta$$
Then $ds^2=dx^2+dy^2+dz^2$.
Can someone please tell me how is $ds^2=a^2(d\theta^2+\sin^2\theta \, d\phi ^2)$ obtained. I don't know much about spherical coordinates. | 2014/06/16 | [
"https://math.stackexchange.com/questions/836090",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/138659/"
] | Rather than discuss via comments, here's an explicit list of steps/hints. Perhaps you can look at them only when stuck:
**Step 1.** Admittedly, the integral you mentioned is not easy. Here's one approach:
\begin{align\*}
\phi &= \int \frac{k \, d\theta}{\sin \theta \sqrt{ \sin^2 \theta-k^2}}
= \int\frac{k \, d \theta... | Well from
$\begin{eqnarray}
x &=& r \sin(\theta) \cos(\phi)\\
y &=& r \sin(\theta) \sin(\phi)\\
z &=& r \cos(\theta)\\
\end{eqnarray}$
follows
$\begin{eqnarray}
dx &=& \sin(\theta) \cos(\phi) dr + r \cos(\theta) \cos(\phi) d\theta - r \sin(\theta) \sin(\phi) d\phi\\
dy &=& \sin(\theta) \sin(\phi) dr + r \cos(\theta)... |
57,849,589 | This error is basically related to FirebaseAnalytics Framework. It means your framework can't be loaded or it can't be mapped, basically it happens in release mode. As in my case if i ran my app in debug mode then it works fine but when i run it into release this error shows. | 2019/09/09 | [
"https://Stackoverflow.com/questions/57849589",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4570375/"
] | If you want to pass the `text` with `html` tag then you have to pass all the text/tags in `html` form. Check below code.
```
import React, { Component } from 'react';
import ReactDOM,{ render } from 'react-dom';
import Badge from './Badge';
import './style.css';
class App extends React.Component {
render() {
re... | The more appropriate system is take label value as badge's children. to declare Badge component code like this example:
```
const Badge = props => {
return (
<div className={`badge-class`}>
<Text weight={'bold'}>
{props.children}
</Text>
</div>
)
}
```
and now... |
54,725,485 | I am writing some json results in files in PHP on shared hosting (fwrite).
Then I read those files to extract json results (file\_get\_contents).
It happens some times (maybe one out of more than one thousand) that when I read this file it appears truncated: I can only read a multiple of the first 32768 bytes of the ... | 2019/02/16 | [
"https://Stackoverflow.com/questions/54725485",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2708647/"
] | You can use **ternary operator** and change code as follows
```
$showname = $shoeName == 1 ? '<h4>Posted by:'.$name.'</h4>': '';
$posts .= "<div class='posts'><p>$output</p>".$showname."</div>";
``` | i gathered the response into a var called response then appended it to the string.
```
if($showName == 1){
$response = '<h4>Posted by: '.$name.'</h4>';
}else{
$response = '';
}
$posts = "<div class='posts'><p>".$output."</p>".$response."</div>";
echo $posts;
``` |
232,712 | I have a website set up on shared hosting like so...
<http://www.mysite.com/cms/index.php>
I'd like to have the /cms folder hidden from the URL. I also need to manage redirects from the old folder structure - if that is necessary.
Thanks
---
**Update**
I ended up using this:
`RewriteRule (.*) cms/$1 [L]` [from t... | 2011/02/08 | [
"https://serverfault.com/questions/232712",
"https://serverfault.com",
"https://serverfault.com/users/2608/"
] | I'm afraid this is due to corruption on the filesystem or problems on the underlying hardware, since it's the root filesystem my recommendation is to boot the server again with a rescue disc (or in single user mode) and try to repair the disk through `fsck`.
* Check what `dmesg` says to confirm the corruption
* Run `f... | I've seen this before when a RAID card went bad, and the ext3 journal file couldn't be written to. At that point, the kernel marked the root FS read-only and wouldn't allow it to go back.
Nothing was logged about this, because of course the /var FS was on the same disc, and also RO. `dmesg`, however, was pleased to te... |
232,712 | I have a website set up on shared hosting like so...
<http://www.mysite.com/cms/index.php>
I'd like to have the /cms folder hidden from the URL. I also need to manage redirects from the old folder structure - if that is necessary.
Thanks
---
**Update**
I ended up using this:
`RewriteRule (.*) cms/$1 [L]` [from t... | 2011/02/08 | [
"https://serverfault.com/questions/232712",
"https://serverfault.com",
"https://serverfault.com/users/2608/"
] | I've seen this before when a RAID card went bad, and the ext3 journal file couldn't be written to. At that point, the kernel marked the root FS read-only and wouldn't allow it to go back.
Nothing was logged about this, because of course the /var FS was on the same disc, and also RO. `dmesg`, however, was pleased to te... | I solved this problem in Arch Linux by installing "NTFS filesystem driver and utilities" using this:
```
sudo yaourt ntfs-3g
``` |
232,712 | I have a website set up on shared hosting like so...
<http://www.mysite.com/cms/index.php>
I'd like to have the /cms folder hidden from the URL. I also need to manage redirects from the old folder structure - if that is necessary.
Thanks
---
**Update**
I ended up using this:
`RewriteRule (.*) cms/$1 [L]` [from t... | 2011/02/08 | [
"https://serverfault.com/questions/232712",
"https://serverfault.com",
"https://serverfault.com/users/2608/"
] | I've seen this before when a RAID card went bad, and the ext3 journal file couldn't be written to. At that point, the kernel marked the root FS read-only and wouldn't allow it to go back.
Nothing was logged about this, because of course the /var FS was on the same disc, and also RO. `dmesg`, however, was pleased to te... | I had this, and it was an OOM (Out Of Memory / Kernel Panic), I found this when I checked dmesg for any issues with the volume after already trying 'mount -o remount,rw /' and getting an error saying the disk was write-protected, when I found the OOM in dmesg, I rebooted and the volume was read-write once again. |
232,712 | I have a website set up on shared hosting like so...
<http://www.mysite.com/cms/index.php>
I'd like to have the /cms folder hidden from the URL. I also need to manage redirects from the old folder structure - if that is necessary.
Thanks
---
**Update**
I ended up using this:
`RewriteRule (.*) cms/$1 [L]` [from t... | 2011/02/08 | [
"https://serverfault.com/questions/232712",
"https://serverfault.com",
"https://serverfault.com/users/2608/"
] | I'm afraid this is due to corruption on the filesystem or problems on the underlying hardware, since it's the root filesystem my recommendation is to boot the server again with a rescue disc (or in single user mode) and try to repair the disk through `fsck`.
* Check what `dmesg` says to confirm the corruption
* Run `f... | I solved this problem in Arch Linux by installing "NTFS filesystem driver and utilities" using this:
```
sudo yaourt ntfs-3g
``` |
232,712 | I have a website set up on shared hosting like so...
<http://www.mysite.com/cms/index.php>
I'd like to have the /cms folder hidden from the URL. I also need to manage redirects from the old folder structure - if that is necessary.
Thanks
---
**Update**
I ended up using this:
`RewriteRule (.*) cms/$1 [L]` [from t... | 2011/02/08 | [
"https://serverfault.com/questions/232712",
"https://serverfault.com",
"https://serverfault.com/users/2608/"
] | I'm afraid this is due to corruption on the filesystem or problems on the underlying hardware, since it's the root filesystem my recommendation is to boot the server again with a rescue disc (or in single user mode) and try to repair the disk through `fsck`.
* Check what `dmesg` says to confirm the corruption
* Run `f... | I had this, and it was an OOM (Out Of Memory / Kernel Panic), I found this when I checked dmesg for any issues with the volume after already trying 'mount -o remount,rw /' and getting an error saying the disk was write-protected, when I found the OOM in dmesg, I rebooted and the volume was read-write once again. |
232,712 | I have a website set up on shared hosting like so...
<http://www.mysite.com/cms/index.php>
I'd like to have the /cms folder hidden from the URL. I also need to manage redirects from the old folder structure - if that is necessary.
Thanks
---
**Update**
I ended up using this:
`RewriteRule (.*) cms/$1 [L]` [from t... | 2011/02/08 | [
"https://serverfault.com/questions/232712",
"https://serverfault.com",
"https://serverfault.com/users/2608/"
] | I had this, and it was an OOM (Out Of Memory / Kernel Panic), I found this when I checked dmesg for any issues with the volume after already trying 'mount -o remount,rw /' and getting an error saying the disk was write-protected, when I found the OOM in dmesg, I rebooted and the volume was read-write once again. | I solved this problem in Arch Linux by installing "NTFS filesystem driver and utilities" using this:
```
sudo yaourt ntfs-3g
``` |
36,351,764 | When I use Apple's `UIActivityViewController` to share a few images to WeChat (weixin). I find that sometimes it doesn't work. Most of the time it works well when I select only 1~3 images, but if I share 9 images (largest number allowed by WeChat), it will certainly fail, and the console will print
>
> 2016-04-01 16:... | 2016/04/01 | [
"https://Stackoverflow.com/questions/36351764",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6143942/"
] | WeChat's Share Extension is Terminated due to App Extension's Memory Limit.
According to Apple's [App Extension Programming Guide](https://developer.apple.com/library/ios/documentation/General/Conceptual/ExtensibilityPG/ExtensionCreation.html#//apple_ref/doc/uid/TP40014214-CH5-SW1): Optimize Efficiency and Performan... | I have the same problem.@wj2061's answer is right but not the solution. I think you probably set shareItem with UIImage. If you have the image's fileUrl, set it to shareItem. If not, try save the UIImage to file first.
in your shareItem class, return the fileUrl.
```
- (nullable id)activityViewController:(UIActivityVi... |
30,569,126 | I have done quite a bit of research and can not seem to find any answers. What I need to do is the following:
REPLACE all characters in a MSSQL column which are non ascii characters with their ascii equivalents. For example:
```
ë --> e
ï --> i
ñ --> n
```
I have read through the following which may seem similar bu... | 2015/06/01 | [
"https://Stackoverflow.com/questions/30569126",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2282036/"
] | You cannot do it any other way than the old-fashioned, "hard" way (in any language, even, not only SQL).
Since in many (spoken/written) languages, accented characters are not the same as non-accented ones, it's actually just a visual similarity, so there is no true correspondance. Some letters can look like just the s... | set a value for for your starting symbol or the equivalent value in ascii table.
And start a loop and replace all values in your new code. |
30,569,126 | I have done quite a bit of research and can not seem to find any answers. What I need to do is the following:
REPLACE all characters in a MSSQL column which are non ascii characters with their ascii equivalents. For example:
```
ë --> e
ï --> i
ñ --> n
```
I have read through the following which may seem similar bu... | 2015/06/01 | [
"https://Stackoverflow.com/questions/30569126",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2282036/"
] | For those that come across this, as I did, I find the below to be simplest, it's even fairly simple to update multiple columns in one inplace statement, make sure to set the varchar size to match the columns you change:
```
UPDATE myTable
SET [Column1] = cast([Column1] as varchar(10)) collate SQL_Latin1_General_Cp12... | set a value for for your starting symbol or the equivalent value in ascii table.
And start a loop and replace all values in your new code. |
13,430 | What exactly makes an organization worthy of the title “criminal organization”?
For instance, say, at some particular bank, it is discovered that several high-ranking officials were involved in an embezzlement scheme. Over the course of three years, these individuals pocketed money intended for company use.
Does thi... | 2016/08/17 | [
"https://law.stackexchange.com/questions/13430",
"https://law.stackexchange.com",
"https://law.stackexchange.com/users/8804/"
] | "Criminal organization" is an informal term with no legal significance. It is, however, often used to refer to something specifically addressed by [18 USC 96], the RICO statutes. The definitions section refers to "racketeering activity", "pattern of racketeering activity", and "enterprise". The first term which starts ... | Technically, the name for what you describe is the common law offence of conspiracy to do another crime. In NSW the Supreme Court has the power under Section 1 of the [CRIMES ACT 1900](http://www.austlii.edu.au/au/legis/nsw/consol_act/ca190082/sch10.html) to deal with these summarily.
A *criminal organisation* is an o... |
36,024,866 | This may come out very convoluted but I will try to keep it as clear as possible.
I am trying to to find out if its possible to have an simple html form. That has 3 drop-downs that have similar options for different variable, that I want to be able to then use in JavaScript functions to return a sum. Ultimately I am tr... | 2016/03/16 | [
"https://Stackoverflow.com/questions/36024866",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6063036/"
] | This is indeed possible. This post on eduMaven does a good job of showing how to do pretty much this exact thing: <http://edumaven.com/javascript-programming/get-value-of-selected-option> . This post gives an example in pure JS:
```
var selector = document.getElementById('id_of_select');
var value = selector[selector.... | First of all - remove the value attribute from each option element as this will make things easier when obtaining the values from the select elements
```
<div class="w3-container">
<select id="numberOfDice">
<option>1</option>
<option>2</option>
<option>3</option>
....
</select>
</div>
<div class="w3-container">
<p>N... |
36,024,866 | This may come out very convoluted but I will try to keep it as clear as possible.
I am trying to to find out if its possible to have an simple html form. That has 3 drop-downs that have similar options for different variable, that I want to be able to then use in JavaScript functions to return a sum. Ultimately I am tr... | 2016/03/16 | [
"https://Stackoverflow.com/questions/36024866",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6063036/"
] | This is indeed possible. This post on eduMaven does a good job of showing how to do pretty much this exact thing: <http://edumaven.com/javascript-programming/get-value-of-selected-option> . This post gives an example in pure JS:
```
var selector = document.getElementById('id_of_select');
var value = selector[selector.... | The values for your select dropdowns don't have to be unique, they can be anything you like. You've given each of your selects a unique id e.g `id="numberOfDice"` which is good - the `<option>` tag in each of them is a child of the `<select>` tag, and we can get that value using javascript.
I'd remove the text from yo... |
36,024,866 | This may come out very convoluted but I will try to keep it as clear as possible.
I am trying to to find out if its possible to have an simple html form. That has 3 drop-downs that have similar options for different variable, that I want to be able to then use in JavaScript functions to return a sum. Ultimately I am tr... | 2016/03/16 | [
"https://Stackoverflow.com/questions/36024866",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6063036/"
] | ```js
var submit_button = document.getElementById("form_submit");
submit_button.addEventListener("click", getSum);
function getSum() {
var constMod = parseInt(document.getElementById("constMod").value),
sidesPerDice = parseInt(document.getElementById("sidesPerDice").value),
numberOfDice = parseInt... | This is indeed possible. This post on eduMaven does a good job of showing how to do pretty much this exact thing: <http://edumaven.com/javascript-programming/get-value-of-selected-option> . This post gives an example in pure JS:
```
var selector = document.getElementById('id_of_select');
var value = selector[selector.... |
36,024,866 | This may come out very convoluted but I will try to keep it as clear as possible.
I am trying to to find out if its possible to have an simple html form. That has 3 drop-downs that have similar options for different variable, that I want to be able to then use in JavaScript functions to return a sum. Ultimately I am tr... | 2016/03/16 | [
"https://Stackoverflow.com/questions/36024866",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6063036/"
] | ```js
var submit_button = document.getElementById("form_submit");
submit_button.addEventListener("click", getSum);
function getSum() {
var constMod = parseInt(document.getElementById("constMod").value),
sidesPerDice = parseInt(document.getElementById("sidesPerDice").value),
numberOfDice = parseInt... | First of all - remove the value attribute from each option element as this will make things easier when obtaining the values from the select elements
```
<div class="w3-container">
<select id="numberOfDice">
<option>1</option>
<option>2</option>
<option>3</option>
....
</select>
</div>
<div class="w3-container">
<p>N... |
36,024,866 | This may come out very convoluted but I will try to keep it as clear as possible.
I am trying to to find out if its possible to have an simple html form. That has 3 drop-downs that have similar options for different variable, that I want to be able to then use in JavaScript functions to return a sum. Ultimately I am tr... | 2016/03/16 | [
"https://Stackoverflow.com/questions/36024866",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6063036/"
] | ```js
var submit_button = document.getElementById("form_submit");
submit_button.addEventListener("click", getSum);
function getSum() {
var constMod = parseInt(document.getElementById("constMod").value),
sidesPerDice = parseInt(document.getElementById("sidesPerDice").value),
numberOfDice = parseInt... | The values for your select dropdowns don't have to be unique, they can be anything you like. You've given each of your selects a unique id e.g `id="numberOfDice"` which is good - the `<option>` tag in each of them is a child of the `<select>` tag, and we can get that value using javascript.
I'd remove the text from yo... |
13,804,071 | Take a look at this test
```
String s1 = "1234";
String s2 = "123";
Field field = String.class.getDeclaredField("value");
field.setAccessible(true);
char[] value1 = (char[]) field.get(s1);
char[] value2 = (char[]) field.get(s2);
System.out.println(value1 == value2);
```
It prints `false` ... | 2012/12/10 | [
"https://Stackoverflow.com/questions/13804071",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1831293/"
] | >
> Can anybody explain the reason why s1 and s2 cannot share the same char array?
>
>
>
They *can*, they just don't, probably because the JVM start-up time would be impacted by looking through the [string `intern` pool](http://docs.oracle.com/javase/7/docs/api/java/lang/String.html#intern%28%29) for partial match... | >
> Can anybody explain the reason why s1 and s2 cannot share the same char array?
>
>
>
Because `"1234"` is not the same sequence of characters as `"123"`. |
13,804,071 | Take a look at this test
```
String s1 = "1234";
String s2 = "123";
Field field = String.class.getDeclaredField("value");
field.setAccessible(true);
char[] value1 = (char[]) field.get(s1);
char[] value2 = (char[]) field.get(s2);
System.out.println(value1 == value2);
```
It prints `false` ... | 2012/12/10 | [
"https://Stackoverflow.com/questions/13804071",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1831293/"
] | >
> Can anybody explain the reason why s1 and s2 cannot share the same char array?
>
>
>
Because `"1234"` is not the same sequence of characters as `"123"`. | My take is the reason that JVMs don't go to that length in interning the strings is that it is simply not worth it:
A naive implementation of interning that *minimized* the usage of space as you propose would have `O(N^2)` performance where `N` is the number of characters of unique string data that is interned in the ... |
13,804,071 | Take a look at this test
```
String s1 = "1234";
String s2 = "123";
Field field = String.class.getDeclaredField("value");
field.setAccessible(true);
char[] value1 = (char[]) field.get(s1);
char[] value2 = (char[]) field.get(s2);
System.out.println(value1 == value2);
```
It prints `false` ... | 2012/12/10 | [
"https://Stackoverflow.com/questions/13804071",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1831293/"
] | >
> Can anybody explain the reason why s1 and s2 cannot share the same char array?
>
>
>
They *can*, they just don't, probably because the JVM start-up time would be impacted by looking through the [string `intern` pool](http://docs.oracle.com/javase/7/docs/api/java/lang/String.html#intern%28%29) for partial match... | My take is the reason that JVMs don't go to that length in interning the strings is that it is simply not worth it:
A naive implementation of interning that *minimized* the usage of space as you propose would have `O(N^2)` performance where `N` is the number of characters of unique string data that is interned in the ... |
571,325 | got the simple code below
```
USERS=`cat /etc/passwd`
for USER in $USERS
do
echo "---------- $USER --------------"
last -n 4 $USER
done
```
I want to ideally remove all users who haven't logged in for over 60 days.
But the problem with reading the `/etc/passwd` is that i get all of the system users as well.
... | 2013/03/25 | [
"https://superuser.com/questions/571325",
"https://superuser.com",
"https://superuser.com/users/213412/"
] | Check if the UID is between `UID_MIN` and `UID_MAX` (defined in `/etc/login.defs`):
```
UID_MIN=$(awk '/^UID_MIN/ {print $2}' /etc/login.defs)
UID_MAX=$(awk '/^UID_MAX/ {print $2}' /etc/login.defs)
USERS=$(awk -F: -v min=$UID_MIN -v max=$UID_MAX '{
if ($3 >= min && $3 <= max) print $1
}' /etc/passwd)
now=$(date +%... | Check the home directory of the user (6th column) and ignore those that are empty. |
71,204,192 | I have setup a free tier azure web app and also basic tier azure database. However i noticed that I have to enable Allow Azure Services in the sql database firewall settings to allow database connectivity to my webapp. I am not sure if this is safe as i have read that other azure subscriptions can have access to my db ... | 2022/02/21 | [
"https://Stackoverflow.com/questions/71204192",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14707842/"
] | You can connect your web app to the Azure SQL database by using private connectivity.
The web app can securely connect to a backend database over a fully private connection. The public internet can't reach the database, which eliminates a common attack vector.
Also, you have other options to connect your web app secu... | Yes, if you enable "Allow Azure Services" on your Azure SQL database, this enables services that run on Azure to access your database from a firewall perspective. Even if those services are not yours. Still, to access the database, one would still need to know:
1. The name of the server hosting the database
2. The nam... |
185,645 | Not too long ago I started a campaign in Pathfinder 2e, and at a certain point I hinted at an enemy group's location and (superior) strength, while telling the party to go somewhere else and complete an objective. It was just foreshadowing, but the players went and tried to fight this group anyway, resulting not in a T... | 2021/05/29 | [
"https://rpg.stackexchange.com/questions/185645",
"https://rpg.stackexchange.com",
"https://rpg.stackexchange.com/users/45588/"
] | One reason they may be ignoring signals is they are not real signals.
---------------------------------------------------------------------
**Consequences**
If you are bailing them out of their bad decisions then they are fake signals, a signal of danger is lying if they are not suffering consequences. If you want th... | Here's how many DMs (including me) do this:
Give opportunities to scout
===========================
Try to avoid moving the group directly into combat.
>
> Alice: "We're going to go fight that orc fortress!"
>
> DM: "After a long journey, you arrive in front of the orc fortress. The guards see you coming and so... |
71,129,102 | I have a Google map with markers placed, with clustering.
I'm able to easily change the marker icon with code like this:
```
marker = new google.maps.Marker({
position: {
lat: location_data.lat,
lng: location_data.lng
},
map: map,
icon: img_url + 'map-marker.svg',
});
```
However, I'... | 2022/02/15 | [
"https://Stackoverflow.com/questions/71129102",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1087660/"
] | The MarkerClusterer expects an [interface with a render method](https://googlemaps.github.io/js-markerclusterer/interfaces/Renderer.html):
```js
const renderer = {
render: ({ count, position }) =>
new google.maps.Marker({
label: { text: String(count), color: "white", fontSize: "10px" },
position,
... | Changing Default Icon by updating the first answer from @jpoehnelt
```
const svg = window.btoa(`
<svg fill="#edba31" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240">
<circle cx="120" cy="120" opacity="1" r="70" />
<circle cx="120" cy="120" opacity=".7"... |
35,674,790 | In html, you have the `<img src='...'/>` tags vs. `<div> </div>`
I know that the img tags above are called void / self closing tags. what are the div tags called? Also, is there an implication between using 1 or the other in HTML, or other markups beyond HTML (i.e. say XML)? | 2016/02/27 | [
"https://Stackoverflow.com/questions/35674790",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1091807/"
] | In HTML you have void elements. These are elements which cannot have any child nodes. Elements which are not void elements are non-void elements.
In HTML `<img>` is a start tag. `<img />` is a start tag with a `/` in it (the `/` has no special meaning). `<div>` is a start tag. `</div>` is an end tag.
In XML `<foo />... | I don't think there is an official name for those. I would simply call them "non-void elements" if you need to be specific that the elements are not void elements =)
<https://www.w3.org/TR/html-markup/syntax.html#void-element> |
35,674,790 | In html, you have the `<img src='...'/>` tags vs. `<div> </div>`
I know that the img tags above are called void / self closing tags. what are the div tags called? Also, is there an implication between using 1 or the other in HTML, or other markups beyond HTML (i.e. say XML)? | 2016/02/27 | [
"https://Stackoverflow.com/questions/35674790",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1091807/"
] | In HTML you have void elements. These are elements which cannot have any child nodes. Elements which are not void elements are non-void elements.
In HTML `<img>` is a start tag. `<img />` is a start tag with a `/` in it (the `/` has no special meaning). `<div>` is a start tag. `</div>` is an end tag.
In XML `<foo />... | I'd like to propose the name
>
> sandwich tag
>
>
>
The reason I don't like "normal tags" is because it's not saying anything at all really.
I think "container tag" makes sense too. But with frameworks like bootstrap, exploiting the `<div class="container"></div>` sandwich, I think it's a bit confusing.
I agre... |
35,674,790 | In html, you have the `<img src='...'/>` tags vs. `<div> </div>`
I know that the img tags above are called void / self closing tags. what are the div tags called? Also, is there an implication between using 1 or the other in HTML, or other markups beyond HTML (i.e. say XML)? | 2016/02/27 | [
"https://Stackoverflow.com/questions/35674790",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1091807/"
] | According to this list <https://www.w3.org/TR/html/syntax.html#writing-html-documents-elements> on the same page what @corgrath referred to they call them `normal elements`. (Mentioning another 3 categories beyond void and normal). | I don't think there is an official name for those. I would simply call them "non-void elements" if you need to be specific that the elements are not void elements =)
<https://www.w3.org/TR/html-markup/syntax.html#void-element> |
35,674,790 | In html, you have the `<img src='...'/>` tags vs. `<div> </div>`
I know that the img tags above are called void / self closing tags. what are the div tags called? Also, is there an implication between using 1 or the other in HTML, or other markups beyond HTML (i.e. say XML)? | 2016/02/27 | [
"https://Stackoverflow.com/questions/35674790",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1091807/"
] | According to this list <https://www.w3.org/TR/html/syntax.html#writing-html-documents-elements> on the same page what @corgrath referred to they call them `normal elements`. (Mentioning another 3 categories beyond void and normal). | I'd like to propose the name
>
> sandwich tag
>
>
>
The reason I don't like "normal tags" is because it's not saying anything at all really.
I think "container tag" makes sense too. But with frameworks like bootstrap, exploiting the `<div class="container"></div>` sandwich, I think it's a bit confusing.
I agre... |
21,089 | I exercise occasionally once in 4-5 days for half an hour. Today I ran for 5 minutes on the treadmill inside a room not too well ventilated. Afterwards I walked at brisk pace for about 500 meters. 10 minutes that I was having breafast, while in course of breakfast I felt dizzines so much so that I stopped taking breakf... | 2015/01/05 | [
"https://fitness.stackexchange.com/questions/21089",
"https://fitness.stackexchange.com",
"https://fitness.stackexchange.com/users/13559/"
] | As with all health questions, the answer is to see a doctor. Dizziness could indicate that an insufficient amount of oxygen is reaching your brain. Causes of that can be as benign as being very winded or as serious as a heart problem. A physical examination by a doctor is the only way to know the cause is benign. | Maybe your blood sugar was a bit off before you started. Try having a small snack an hour before you run and make sure you are sufficiently hydrated beforehand. I doubt it is anything serious, but if it persists, talk to your doctor. |
184,689 | I have a custom attribute called `customer_products_changedate` it saves the date when I link a product to it and it's linked to the customer.
How do I get the customers, filtered by that attribute, but only if the date in the attribute is older than 14 days.
I currently have this:
```
$collection = Mage::getResourc... | 2017/07/20 | [
"https://magento.stackexchange.com/questions/184689",
"https://magento.stackexchange.com",
"https://magento.stackexchange.com/users/54090/"
] | Get the date which was 14 days ago.
```
$date = date('Y-m-d', strtotime('-14 day'));
```
Now filter the collection with the date.
```
$collection->addFieldToFilter(
'customer_products_changedate',
array(
'lt'=>$date
)
);
``` | Get date
```
$to= Mage::app()->getLocale()->date()->sub(14,Zend_Date::DAY);
$to=$to->toString('yyyy-MM-dd');
```
Add that in filter:
```
$collection->addFieldToFilter(
'customer_products_changedate',
array(
'lt'=>$to
)
);
``` |
35,823,166 | I am working on a project in php/MySQL that requires me to check the username in real-time means as the user inputs the username.
This is my **username.php** where the user actually enters the username & password and from where the **check.php** is triggered...
```
<html>
<head>
<script type="text/javascript"... | 2016/03/06 | [
"https://Stackoverflow.com/questions/35823166",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5800637/"
] | Send your data in javascript using jQuery like this:
```
$.post( "check.php", { user: $("#username").val() }, function (data){
if(data=='1'){
//do 1
}
elseif(data=='0'){
//do 0
}
});
```
In your check.php get username like this
```
//some basic validation
if(!isset($_POST['user'] || empty($_POST['use... | You need to pass $username variable correctly.
Single quotes php vars are treated as plain strings and variables aren't evaluated.
```
$query = mysqli_query($con,"SELECT * FROM users WHERE username = " . $username . ";");
```
OR
```
$query = mysqli_query($con,"SELECT * FROM users WHERE username = {$username}");
... |
35,823,166 | I am working on a project in php/MySQL that requires me to check the username in real-time means as the user inputs the username.
This is my **username.php** where the user actually enters the username & password and from where the **check.php** is triggered...
```
<html>
<head>
<script type="text/javascript"... | 2016/03/06 | [
"https://Stackoverflow.com/questions/35823166",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5800637/"
] | soo I spent some time looking for, and testing answer, so I should, posted my results and what working for me..
```
html, or php form:
<script src="http://code.jquery.com/jquery-3.3.1.js"></script>
<form class="a16" action="register.php" method="POST" autocomplete="on">
<label for=... | You need to pass $username variable correctly.
Single quotes php vars are treated as plain strings and variables aren't evaluated.
```
$query = mysqli_query($con,"SELECT * FROM users WHERE username = " . $username . ";");
```
OR
```
$query = mysqli_query($con,"SELECT * FROM users WHERE username = {$username}");
... |
35,823,166 | I am working on a project in php/MySQL that requires me to check the username in real-time means as the user inputs the username.
This is my **username.php** where the user actually enters the username & password and from where the **check.php** is triggered...
```
<html>
<head>
<script type="text/javascript"... | 2016/03/06 | [
"https://Stackoverflow.com/questions/35823166",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5800637/"
] | ```
data:"username =" + username
data:"username=" + username
```
you must delete space after username and all work | You need to pass $username variable correctly.
Single quotes php vars are treated as plain strings and variables aren't evaluated.
```
$query = mysqli_query($con,"SELECT * FROM users WHERE username = " . $username . ";");
```
OR
```
$query = mysqli_query($con,"SELECT * FROM users WHERE username = {$username}");
... |
35,823,166 | I am working on a project in php/MySQL that requires me to check the username in real-time means as the user inputs the username.
This is my **username.php** where the user actually enters the username & password and from where the **check.php** is triggered...
```
<html>
<head>
<script type="text/javascript"... | 2016/03/06 | [
"https://Stackoverflow.com/questions/35823166",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5800637/"
] | Send your data in javascript using jQuery like this:
```
$.post( "check.php", { user: $("#username").val() }, function (data){
if(data=='1'){
//do 1
}
elseif(data=='0'){
//do 0
}
});
```
In your check.php get username like this
```
//some basic validation
if(!isset($_POST['user'] || empty($_POST['use... | soo I spent some time looking for, and testing answer, so I should, posted my results and what working for me..
```
html, or php form:
<script src="http://code.jquery.com/jquery-3.3.1.js"></script>
<form class="a16" action="register.php" method="POST" autocomplete="on">
<label for=... |
35,823,166 | I am working on a project in php/MySQL that requires me to check the username in real-time means as the user inputs the username.
This is my **username.php** where the user actually enters the username & password and from where the **check.php** is triggered...
```
<html>
<head>
<script type="text/javascript"... | 2016/03/06 | [
"https://Stackoverflow.com/questions/35823166",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5800637/"
] | Send your data in javascript using jQuery like this:
```
$.post( "check.php", { user: $("#username").val() }, function (data){
if(data=='1'){
//do 1
}
elseif(data=='0'){
//do 0
}
});
```
In your check.php get username like this
```
//some basic validation
if(!isset($_POST['user'] || empty($_POST['use... | ```
data:"username =" + username
data:"username=" + username
```
you must delete space after username and all work |
35,823,166 | I am working on a project in php/MySQL that requires me to check the username in real-time means as the user inputs the username.
This is my **username.php** where the user actually enters the username & password and from where the **check.php** is triggered...
```
<html>
<head>
<script type="text/javascript"... | 2016/03/06 | [
"https://Stackoverflow.com/questions/35823166",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5800637/"
] | soo I spent some time looking for, and testing answer, so I should, posted my results and what working for me..
```
html, or php form:
<script src="http://code.jquery.com/jquery-3.3.1.js"></script>
<form class="a16" action="register.php" method="POST" autocomplete="on">
<label for=... | ```
data:"username =" + username
data:"username=" + username
```
you must delete space after username and all work |
2,910,928 | i would like to run a command prompt to run the project and set its startup project | 2010/05/26 | [
"https://Stackoverflow.com/questions/2910928",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/324960/"
] | You could record a macro and assign it to some combination of keys. I think it would be the easiest way. | Using this project <https://github.com/ParticularLabs/SetStartupProjects> you can include a nuget and then do
```
var startupProjectGuids = new List<string>
{
"11111111-1111-1111-1111-111111111111",
"22222222-2222-2222-2222-222222222222"
};
var suoHacker = new SuoHacker();
suoHacker.CreateStartProjectSuoFiles(testSol... |
2,910,928 | i would like to run a command prompt to run the project and set its startup project | 2010/05/26 | [
"https://Stackoverflow.com/questions/2910928",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/324960/"
] | Great Idea @Klausbyskov. Here is the code for the Macro. Please, any upvotes to Klaus
[See MSDN VS Macros](http://msdn.microsoft.com/en-us/library/b4c73967.aspx)
```
Option Strict Off
Option Explicit Off
Imports System
Imports EnvDTE
Imports EnvDTE80
Imports EnvDTE90
Imports System.Diagnostics
Public Module Recordin... | Using this project <https://github.com/ParticularLabs/SetStartupProjects> you can include a nuget and then do
```
var startupProjectGuids = new List<string>
{
"11111111-1111-1111-1111-111111111111",
"22222222-2222-2222-2222-222222222222"
};
var suoHacker = new SuoHacker();
suoHacker.CreateStartProjectSuoFiles(testSol... |
12,276,180 | Can someone explain how these results are possible (python 2.6):
```
>>> 1<3>2
True
>>> (1<3)>2
False
>>> 1<(3>2)
False
```
I would think that one of the last two would match the first one, but apparently the operators in the first statement is somehow linked?! | 2012/09/05 | [
"https://Stackoverflow.com/questions/12276180",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/242348/"
] | Your first example shows [comparison chaining](http://docs.python.org/reference/expressions.html#not-in). `1<3>2` means `1<3 and 3>2` (except each expression is evaluated only once). This applies to all comparison operators in Python.
Your second two examples force one comparison to be evaluated first, resulting in a ... | In your first case `1<3>2` `1` is actually lesser than `3` and `3` is greater than `2`, so `True`.
In your second case `(1<3)>2` `(1<3)` evaluates as `True` that represented as `1`, so `1` is not greater than `2`.
In your third case `1<(3>2)`, `1` is not lesser than `True` that represented as `1`. |
12,276,180 | Can someone explain how these results are possible (python 2.6):
```
>>> 1<3>2
True
>>> (1<3)>2
False
>>> 1<(3>2)
False
```
I would think that one of the last two would match the first one, but apparently the operators in the first statement is somehow linked?! | 2012/09/05 | [
"https://Stackoverflow.com/questions/12276180",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/242348/"
] | In your first case `1<3>2` `1` is actually lesser than `3` and `3` is greater than `2`, so `True`.
In your second case `(1<3)>2` `(1<3)` evaluates as `True` that represented as `1`, so `1` is not greater than `2`.
In your third case `1<(3>2)`, `1` is not lesser than `True` that represented as `1`. | As per [docs](http://docs.python.org/reference/expressions.html#not-in),
>
> Unlike C, all comparison operations in Python have the same priority, which is lower than that of any arithmetic, shifting or bitwise operation. Also unlike C, expressions like a < b < c have the interpretation that is conventional in mathem... |
12,276,180 | Can someone explain how these results are possible (python 2.6):
```
>>> 1<3>2
True
>>> (1<3)>2
False
>>> 1<(3>2)
False
```
I would think that one of the last two would match the first one, but apparently the operators in the first statement is somehow linked?! | 2012/09/05 | [
"https://Stackoverflow.com/questions/12276180",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/242348/"
] | Your first example shows [comparison chaining](http://docs.python.org/reference/expressions.html#not-in). `1<3>2` means `1<3 and 3>2` (except each expression is evaluated only once). This applies to all comparison operators in Python.
Your second two examples force one comparison to be evaluated first, resulting in a ... | The last two statements compare booleans against an integer:
```
>>> True > 2
False
>>> 1 < True
False
```
The first statement is [comparison chaining](http://docs.python.org/reference/expressions.html#not-in), which works for all boolean comparisons in Python. Note from the documentation:
>
> Comparisons yield bo... |
12,276,180 | Can someone explain how these results are possible (python 2.6):
```
>>> 1<3>2
True
>>> (1<3)>2
False
>>> 1<(3>2)
False
```
I would think that one of the last two would match the first one, but apparently the operators in the first statement is somehow linked?! | 2012/09/05 | [
"https://Stackoverflow.com/questions/12276180",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/242348/"
] | The last two statements compare booleans against an integer:
```
>>> True > 2
False
>>> 1 < True
False
```
The first statement is [comparison chaining](http://docs.python.org/reference/expressions.html#not-in), which works for all boolean comparisons in Python. Note from the documentation:
>
> Comparisons yield bo... | As per [docs](http://docs.python.org/reference/expressions.html#not-in),
>
> Unlike C, all comparison operations in Python have the same priority, which is lower than that of any arithmetic, shifting or bitwise operation. Also unlike C, expressions like a < b < c have the interpretation that is conventional in mathem... |
12,276,180 | Can someone explain how these results are possible (python 2.6):
```
>>> 1<3>2
True
>>> (1<3)>2
False
>>> 1<(3>2)
False
```
I would think that one of the last two would match the first one, but apparently the operators in the first statement is somehow linked?! | 2012/09/05 | [
"https://Stackoverflow.com/questions/12276180",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/242348/"
] | Your first example shows [comparison chaining](http://docs.python.org/reference/expressions.html#not-in). `1<3>2` means `1<3 and 3>2` (except each expression is evaluated only once). This applies to all comparison operators in Python.
Your second two examples force one comparison to be evaluated first, resulting in a ... | As per [docs](http://docs.python.org/reference/expressions.html#not-in),
>
> Unlike C, all comparison operations in Python have the same priority, which is lower than that of any arithmetic, shifting or bitwise operation. Also unlike C, expressions like a < b < c have the interpretation that is conventional in mathem... |
218,125 | I am trying to spatially join characteristics from a larger unit (here: county) to a smaller unit (say, local district), such that for every local district I will also know in which county it is in.
The problem arises when a district lies in two (or more) different counties. In this case, I would like the local distri... | 2016/11/17 | [
"https://gis.stackexchange.com/questions/218125",
"https://gis.stackexchange.com",
"https://gis.stackexchange.com/users/86431/"
] | You'll want to use [intersect](https://pro.arcgis.com/en/pro-app/tool-reference/analysis/intersect.htm), and then find the output feature with the largest area per district.
```
#distrcit feature class
distFc = r"Path\to\Districts"
#district name field
distFld = "DISTRICT"
#county feature class
countyFc = r"Path\to\C... | As commented by @Vince:
>
> A spatial join, by design, does not fracture features on boundaries.
> You need to look in the Overlay toolset for Union or Intersect
>
>
> |
78,719 | I am doing a project where, for troubleshooting reasons, I find myself often swapping components to different serial ports. Maybe one time it's in Serial, then in Serial1, maybe I need to try if software serial works.
But changing every line where Serial.print or Serial.write is written for the new port is a hassle an... | 2020/10/19 | [
"https://arduino.stackexchange.com/questions/78719",
"https://arduino.stackexchange.com",
"https://arduino.stackexchange.com/users/67917/"
] | Yes. The simplest way is with a preprocessor macro. Macros get replaced verbatim before compilation happens, so you can do something like:
```
#define MY_SERIAL Serial
void setup() {
MY_SERIAL.begin(115200);
}
void loop() {
MY_SERIAL.println(millis());
delay(1000);
}
``` | Majenko's answer is the right answer for your question. But to answer the title of the question, if you ever need to use different Arduino outputs and inputs as variable, most of them have common type Stream or Print. So it would be:
```
Stream& SensorSerial = Serial;
```
or
```
Stream* SensorSerial;
SensorSerial ... |
8,951,273 | I want to make an animation that runs as soon as someone enters my site and everything loads (can jQuery do it?)
Mostly everything will be static except for little black silhouettes of leaves.
Think of a very simplified version of Blizzard's site animation:
<http://us.blizzard.com/en-us/>
Just simple silhouette follo... | 2012/01/21 | [
"https://Stackoverflow.com/questions/8951273",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1150599/"
] | This is definitely do-able, though a little tricky. I'm doing the same thing on a site I'm making, except with snow. There are 2 layers of png files and I used the backgroundPosition plugin to make animate be able to change background position - <http://cornerstonegreentraining.com/comfortize.com/index.php> if you want... | There's a number of ways in which this can be done.
1. If your animating anything in the animation queue such as positions, colors, background colors, margins, font sizes etc. you can use the animate() function of JQuery. So you could animate the position, width and height of the HTML elements that you have, for which... |
57,116,127 | I have found myself cornered, so here we go.
Context
-------
I need to produce a fingerprint hash code for object diffing. Comparing the hashes of two sets of objects will need to tell me if there are identical objects with the same hash.
The fingerprint [hash must be platform-independent](https://stackoverflow.com/... | 2019/07/19 | [
"https://Stackoverflow.com/questions/57116127",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3873799/"
] | The simple solution here is to completely sidestep the root cause of your issue.
When you can't modify the existing classes, but you need some modifications for them, the easiest way to do that is to create a **new and improved** subclass, where the modifications you require are available.
Considering that the legacy... | You pointed out that
>
> *If two objects have the same hash, you consider them exact copies of each other*
>
>
>
Please realise that a hash has a finite entropy, while the source objects have infinite entropy. Hash collisions are bound to happen. Let's have a look at some examples:
```
public class Point
{
... |
32,927,820 | Trying to create a component class with separate files
Index.html
```
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="../../assets/libs/react-0.13.3/build/react.js"></script>
<script src="../../assets/libs/babel.min.js"></script>
</head>
<body>
<section class="reactive"></secti... | 2015/10/03 | [
"https://Stackoverflow.com/questions/32927820",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3911584/"
] | The problem was with the scope of the variable.
Solve by use
```
window.NavBar = React.createClass({
// ...
});
``` | If you are using OOP react,it should be like this
```
class NavBar extends React.Component{
// ...
});
window.NavBar = NavBar;
``` |
5,995,776 | Is there a built in or a proper way to handle errors in asp.net mvc 3?
This is what I want to do:
1. If the application crashes, or throws an error, it goes to a specific error page.
2. I can throw my own error from the controller action. (and it goes to an error page).
I found the following ways:
1. I see there is... | 2011/05/13 | [
"https://Stackoverflow.com/questions/5995776",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/400861/"
] | I would suggest implementing a custom HandleErrorAttribute action filter.
See this link for more details:
<http://msdn.microsoft.com/en-us/library/dd410203%28v=vs.90%29.aspx>
Setting up a HandleErrorAttribute action filter gives you complete control over which actions are handled by the filter, and it's easy to se... | The easiest way I think you can do that is using the elmah library.
Take a look at this: <http://code.google.com/p/elmah/wiki/MVC> and this
<http://www.hanselman.com/blog/ELMAHErrorLoggingModulesAndHandlersForASPNETAndMVCToo.aspx> |
5,995,776 | Is there a built in or a proper way to handle errors in asp.net mvc 3?
This is what I want to do:
1. If the application crashes, or throws an error, it goes to a specific error page.
2. I can throw my own error from the controller action. (and it goes to an error page).
I found the following ways:
1. I see there is... | 2011/05/13 | [
"https://Stackoverflow.com/questions/5995776",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/400861/"
] | I would suggest implementing a custom HandleErrorAttribute action filter.
See this link for more details:
<http://msdn.microsoft.com/en-us/library/dd410203%28v=vs.90%29.aspx>
Setting up a HandleErrorAttribute action filter gives you complete control over which actions are handled by the filter, and it's easy to se... | I think the easiest way is using ExceptionHandler attribute since it's ready to use anytime you create a new ASP.NET MVC 3 project. You can still configure Web.config to use a custom error page and handling exceptions in global Application\_Error method as usual but when an exception occurs the URL is not displayed as ... |
5,995,776 | Is there a built in or a proper way to handle errors in asp.net mvc 3?
This is what I want to do:
1. If the application crashes, or throws an error, it goes to a specific error page.
2. I can throw my own error from the controller action. (and it goes to an error page).
I found the following ways:
1. I see there is... | 2011/05/13 | [
"https://Stackoverflow.com/questions/5995776",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/400861/"
] | **For Global Error Handling**
All you have to do is change the customErrors mode="On" in web.config page
Error will be displayed through Error.cshtml resides in shared folder.
*Make sure that Error.cshtml Layout is not null*.
[It sould be something like: @{ Layout = "~/Views/Shared/\_Layout.cshtml"; } ... | I would suggest implementing a custom HandleErrorAttribute action filter.
See this link for more details:
<http://msdn.microsoft.com/en-us/library/dd410203%28v=vs.90%29.aspx>
Setting up a HandleErrorAttribute action filter gives you complete control over which actions are handled by the filter, and it's easy to se... |
5,995,776 | Is there a built in or a proper way to handle errors in asp.net mvc 3?
This is what I want to do:
1. If the application crashes, or throws an error, it goes to a specific error page.
2. I can throw my own error from the controller action. (and it goes to an error page).
I found the following ways:
1. I see there is... | 2011/05/13 | [
"https://Stackoverflow.com/questions/5995776",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/400861/"
] | I would suggest implementing a custom HandleErrorAttribute action filter.
See this link for more details:
<http://msdn.microsoft.com/en-us/library/dd410203%28v=vs.90%29.aspx>
Setting up a HandleErrorAttribute action filter gives you complete control over which actions are handled by the filter, and it's easy to se... | you can create custom exception in MVC if you want to customize a way of exception handling.
you can find useful post here .
<http://www.professionals-helpdesk.com/2012/07/creating-custom-exception-filter-in-mvc.html> |
5,995,776 | Is there a built in or a proper way to handle errors in asp.net mvc 3?
This is what I want to do:
1. If the application crashes, or throws an error, it goes to a specific error page.
2. I can throw my own error from the controller action. (and it goes to an error page).
I found the following ways:
1. I see there is... | 2011/05/13 | [
"https://Stackoverflow.com/questions/5995776",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/400861/"
] | **For Global Error Handling**
All you have to do is change the customErrors mode="On" in web.config page
Error will be displayed through Error.cshtml resides in shared folder.
*Make sure that Error.cshtml Layout is not null*.
[It sould be something like: @{ Layout = "~/Views/Shared/\_Layout.cshtml"; } ... | The easiest way I think you can do that is using the elmah library.
Take a look at this: <http://code.google.com/p/elmah/wiki/MVC> and this
<http://www.hanselman.com/blog/ELMAHErrorLoggingModulesAndHandlersForASPNETAndMVCToo.aspx> |
5,995,776 | Is there a built in or a proper way to handle errors in asp.net mvc 3?
This is what I want to do:
1. If the application crashes, or throws an error, it goes to a specific error page.
2. I can throw my own error from the controller action. (and it goes to an error page).
I found the following ways:
1. I see there is... | 2011/05/13 | [
"https://Stackoverflow.com/questions/5995776",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/400861/"
] | The easiest way I think you can do that is using the elmah library.
Take a look at this: <http://code.google.com/p/elmah/wiki/MVC> and this
<http://www.hanselman.com/blog/ELMAHErrorLoggingModulesAndHandlersForASPNETAndMVCToo.aspx> | you can create custom exception in MVC if you want to customize a way of exception handling.
you can find useful post here .
<http://www.professionals-helpdesk.com/2012/07/creating-custom-exception-filter-in-mvc.html> |
5,995,776 | Is there a built in or a proper way to handle errors in asp.net mvc 3?
This is what I want to do:
1. If the application crashes, or throws an error, it goes to a specific error page.
2. I can throw my own error from the controller action. (and it goes to an error page).
I found the following ways:
1. I see there is... | 2011/05/13 | [
"https://Stackoverflow.com/questions/5995776",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/400861/"
] | **For Global Error Handling**
All you have to do is change the customErrors mode="On" in web.config page
Error will be displayed through Error.cshtml resides in shared folder.
*Make sure that Error.cshtml Layout is not null*.
[It sould be something like: @{ Layout = "~/Views/Shared/\_Layout.cshtml"; } ... | I think the easiest way is using ExceptionHandler attribute since it's ready to use anytime you create a new ASP.NET MVC 3 project. You can still configure Web.config to use a custom error page and handling exceptions in global Application\_Error method as usual but when an exception occurs the URL is not displayed as ... |
5,995,776 | Is there a built in or a proper way to handle errors in asp.net mvc 3?
This is what I want to do:
1. If the application crashes, or throws an error, it goes to a specific error page.
2. I can throw my own error from the controller action. (and it goes to an error page).
I found the following ways:
1. I see there is... | 2011/05/13 | [
"https://Stackoverflow.com/questions/5995776",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/400861/"
] | I think the easiest way is using ExceptionHandler attribute since it's ready to use anytime you create a new ASP.NET MVC 3 project. You can still configure Web.config to use a custom error page and handling exceptions in global Application\_Error method as usual but when an exception occurs the URL is not displayed as ... | you can create custom exception in MVC if you want to customize a way of exception handling.
you can find useful post here .
<http://www.professionals-helpdesk.com/2012/07/creating-custom-exception-filter-in-mvc.html> |
5,995,776 | Is there a built in or a proper way to handle errors in asp.net mvc 3?
This is what I want to do:
1. If the application crashes, or throws an error, it goes to a specific error page.
2. I can throw my own error from the controller action. (and it goes to an error page).
I found the following ways:
1. I see there is... | 2011/05/13 | [
"https://Stackoverflow.com/questions/5995776",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/400861/"
] | **For Global Error Handling**
All you have to do is change the customErrors mode="On" in web.config page
Error will be displayed through Error.cshtml resides in shared folder.
*Make sure that Error.cshtml Layout is not null*.
[It sould be something like: @{ Layout = "~/Views/Shared/\_Layout.cshtml"; } ... | you can create custom exception in MVC if you want to customize a way of exception handling.
you can find useful post here .
<http://www.professionals-helpdesk.com/2012/07/creating-custom-exception-filter-in-mvc.html> |
20,679,780 | Still trying to figure out oop in PHP5. The question is, how to access a parent's static variable from an extended class' method. Example below.
```
<?php
error_reporting(E_ALL);
class config {
public static $base_url = 'http://example.moo';
}
class dostuff extends config {
public static function get_url(){
... | 2013/12/19 | [
"https://Stackoverflow.com/questions/20679780",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/654499/"
] | It's completely irrelevant that the property is declared in the parent, you access it the way you access *any* static property:
```
self::$base_url
```
or
```
static::$base_url // for late static binding
``` | Yes, it's possible, but actually should be written like this:
```
class dostuff extends config {
public static function get_url(){
echo parent::$base_url;
}
}
```
But in this case you can access it both with `self::$base_url` and `static::$base_url` - as you don't redeclare this property in the extendin... |
7,900,787 | Can you give me a tip on what to investigate or where to look at first if a table element in a div has its border's right side is not visible? | 2011/10/26 | [
"https://Stackoverflow.com/questions/7900787",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/136141/"
] | Open your browser debugger (firebug, opera dragonfly, ...) and rightclick the TD, do 'inspect element'. Check the (computed) style. | My first test would be to test in several different web browsers and/or versions of those. |
7,900,787 | Can you give me a tip on what to investigate or where to look at first if a table element in a div has its border's right side is not visible? | 2011/10/26 | [
"https://Stackoverflow.com/questions/7900787",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/136141/"
] | Open your browser debugger (firebug, opera dragonfly, ...) and rightclick the TD, do 'inspect element'. Check the (computed) style. | The border will disappear if the `<div>` is set to `overflow:hidden;` your table is set to `width:100%;`
Try adding:
```
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
```
...to the table element. |
3,719,725 | From online integral calculators I am aware that:
$$ \int\_a^b\frac{1}{\sqrt{Ax-\frac{x^2}{2}}}dx=\sqrt{2}\left[\arcsin\left(\frac{x}{A}-1\right)\right]\Bigg|\_a^b$$
When I work backwards starting with: $$y=\sqrt{2}\left[\arcsin\left(\frac{x-A}{A}\right)\right]\Bigg |\_a^b$$
$$=\sqrt{2}\left[\arcsin\left(\frac{x}{A}-... | 2020/06/14 | [
"https://math.stackexchange.com/questions/3719725",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/181004/"
] | Let $u=\sqrt{x}$:
$$\int \frac{2}{\sqrt{A-\frac{u^2}{2}}} \; du$$
Then let $t=\frac{u}{\sqrt{2A}}$:
$$\int \frac{2 \sqrt{2}}{\sqrt{1-t^2}} \; dt$$
$$2\sqrt{2}\arcsin{t}+C$$
$$2\sqrt{2}\arcsin{\left(\sqrt{\frac{x}{2A}}\right)} \bigg \rvert\_a^b$$
The expression that I have and the one that your integral calculator gave ... | $$I=\sqrt{2}\int\_{a}^{b} \frac{dx}{\sqrt{2Ax-x^2}}=\sqrt{2}\int\_{a}^{b} \frac{dx}{\sqrt{A^2-(x-A)^2}}$$ Let $x-A=A \sin \theta$, then
$$\sqrt{2}\int\_{\sin^{-1}(a-A)/A}^{\sin^{-1}(b-A)/A} \frac{A \cos \theta}{A \cos\theta} =\sqrt{2}\int\_{\sin^{-1}(a-A)/A}^{\sin^{-1}(b-A)/A} d\theta$$
$$\implies I=\sqrt{2}[\sin^{-1}(... |
3,719,725 | From online integral calculators I am aware that:
$$ \int\_a^b\frac{1}{\sqrt{Ax-\frac{x^2}{2}}}dx=\sqrt{2}\left[\arcsin\left(\frac{x}{A}-1\right)\right]\Bigg|\_a^b$$
When I work backwards starting with: $$y=\sqrt{2}\left[\arcsin\left(\frac{x-A}{A}\right)\right]\Bigg |\_a^b$$
$$=\sqrt{2}\left[\arcsin\left(\frac{x}{A}-... | 2020/06/14 | [
"https://math.stackexchange.com/questions/3719725",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/181004/"
] | Let $u=\sqrt{x}$:
$$\int \frac{2}{\sqrt{A-\frac{u^2}{2}}} \; du$$
Then let $t=\frac{u}{\sqrt{2A}}$:
$$\int \frac{2 \sqrt{2}}{\sqrt{1-t^2}} \; dt$$
$$2\sqrt{2}\arcsin{t}+C$$
$$2\sqrt{2}\arcsin{\left(\sqrt{\frac{x}{2A}}\right)} \bigg \rvert\_a^b$$
The expression that I have and the one that your integral calculator gave ... | $$\int\_a^b \frac{1}{\sqrt{Ax-\frac{x^2}{2}}}dx$$
$$=\int\_a^b \frac{\sqrt 2}{\sqrt{2Ax-x^2}}dx$$
$$=\sqrt 2\int\_a^b \frac{1}{\sqrt{A^2-(x-A)^2}}dx$$
$$=\sqrt 2\int\_a^b \frac{d(x-A)}{\sqrt{A^2-(x-A)^2}}$$
$$=\sqrt 2\left[\sin^{-1}\left(\frac{x-A}{A}\right)\right]\_a^b $$ |
29,446,826 | I have created a JavaFx8 Maven project in eclipse. I have put my fxml files in /src/main/resources/fxml/. I am able to the load the fxml from the java files using FxmlLoader. But, I'm not able to pick the controller class from Fxml file using Scenebuilder.
What should I do to be able to see the controller class automa... | 2015/04/04 | [
"https://Stackoverflow.com/questions/29446826",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/691197/"
] | I have put the fxml file in the same folder /src/main/java initially. Then, I mapped all the elements/controller using scenebuilder.
Once mapping is done, I have moved the fxml to /src/main/resources folder. This works. | You Must Put FXML beside its Controller in the same Package
And Scene Builder will see the Controller |
29,446,826 | I have created a JavaFx8 Maven project in eclipse. I have put my fxml files in /src/main/resources/fxml/. I am able to the load the fxml from the java files using FxmlLoader. But, I'm not able to pick the controller class from Fxml file using Scenebuilder.
What should I do to be able to see the controller class automa... | 2015/04/04 | [
"https://Stackoverflow.com/questions/29446826",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/691197/"
] | Automated solution for same thing: Locate your controller and fxml files as same as standard java-fx projects. I mean put your fxml and controller files at the same place same as non-maven projects. Then add the following maven configuration into your project.
```
<plugin>
<artifactId>maven-resources-p... | You Must Put FXML beside its Controller in the same Package
And Scene Builder will see the Controller |
29,446,826 | I have created a JavaFx8 Maven project in eclipse. I have put my fxml files in /src/main/resources/fxml/. I am able to the load the fxml from the java files using FxmlLoader. But, I'm not able to pick the controller class from Fxml file using Scenebuilder.
What should I do to be able to see the controller class automa... | 2015/04/04 | [
"https://Stackoverflow.com/questions/29446826",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/691197/"
] | I have put the fxml file in the same folder /src/main/java initially. Then, I mapped all the elements/controller using scenebuilder.
Once mapping is done, I have moved the fxml to /src/main/resources folder. This works. | Automated solution for same thing: Locate your controller and fxml files as same as standard java-fx projects. I mean put your fxml and controller files at the same place same as non-maven projects. Then add the following maven configuration into your project.
```
<plugin>
<artifactId>maven-resources-p... |
29,446,826 | I have created a JavaFx8 Maven project in eclipse. I have put my fxml files in /src/main/resources/fxml/. I am able to the load the fxml from the java files using FxmlLoader. But, I'm not able to pick the controller class from Fxml file using Scenebuilder.
What should I do to be able to see the controller class automa... | 2015/04/04 | [
"https://Stackoverflow.com/questions/29446826",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/691197/"
] | I have put the fxml file in the same folder /src/main/java initially. Then, I mapped all the elements/controller using scenebuilder.
Once mapping is done, I have moved the fxml to /src/main/resources folder. This works. | I know this is an old question but I have put in a pull request on the Gluon release of Scenebuilder that modifies the controller search path, [here](https://bitbucket.org/gluon-oss/scenebuilder/pull-requests/46/modification-to-search-for-fxml-controller/diff). There is also a corresponding issue raised [here](https://... |
29,446,826 | I have created a JavaFx8 Maven project in eclipse. I have put my fxml files in /src/main/resources/fxml/. I am able to the load the fxml from the java files using FxmlLoader. But, I'm not able to pick the controller class from Fxml file using Scenebuilder.
What should I do to be able to see the controller class automa... | 2015/04/04 | [
"https://Stackoverflow.com/questions/29446826",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/691197/"
] | Automated solution for same thing: Locate your controller and fxml files as same as standard java-fx projects. I mean put your fxml and controller files at the same place same as non-maven projects. Then add the following maven configuration into your project.
```
<plugin>
<artifactId>maven-resources-p... | I know this is an old question but I have put in a pull request on the Gluon release of Scenebuilder that modifies the controller search path, [here](https://bitbucket.org/gluon-oss/scenebuilder/pull-requests/46/modification-to-search-for-fxml-controller/diff). There is also a corresponding issue raised [here](https://... |
31,865,992 | I'm designing a website but I used a base template that I found and now I'm modifying it. I'm using a web hosting service, so the root directory isn't on my computer. So, inside public\_html I have /js/ javascript files and /css/ CSS files. In the root folder I have my home page etc, but I want to put the store's page ... | 2015/08/06 | [
"https://Stackoverflow.com/questions/31865992",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5199870/"
] | You have problem here
```
<noscript>
<link rel="stylesheet" href="http://mywebsite.com/css/skel-noscript.css" />
<link rel="stylesheet" href="http://mywebsite.com/css/style.css" />
</noscript>
```
Remove `<noscript></noscript>`
And it should be like
```
<link rel="stylesheet" href="http://mywebsite.com... | Late, but nevertheless... Looking at your header, the only css loaded comes from google. The other two are within noscript, so where are you getting your css from in the first place? |
5,970,677 | I want to have a script on one website and database on other website.
First website has 2 fields where they enter username and password. Then php posts username/password to other php file and that php does *something* and then somehow sends the data to my second website, where I insert username and password to MySql d... | 2011/05/11 | [
"https://Stackoverflow.com/questions/5970677",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/625189/"
] | Why can't your script on your dummy website retrieve the data via $\_POST and then call the script from your real website?
<http://davidwalsh.name/execute-http-post-php-curl>
Check that out. This way your can POST to your real website from your dummy site's script, completely transparent to the user.
Hope that makes... | There are three obvious ways to do this:
1) Simple – keep the page hosted on site 2, but use an iframe on site 1 to embed it.
2) Post the form from site 1 to site 2 by setting the action attribute to a script on site 2.
3) Post the form on site 1 to a script on site 1, then use CURL to post it to the other site behi... |
5,970,677 | I want to have a script on one website and database on other website.
First website has 2 fields where they enter username and password. Then php posts username/password to other php file and that php does *something* and then somehow sends the data to my second website, where I insert username and password to MySql d... | 2011/05/11 | [
"https://Stackoverflow.com/questions/5970677",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/625189/"
] | Why can't your script on your dummy website retrieve the data via $\_POST and then call the script from your real website?
<http://davidwalsh.name/execute-http-post-php-curl>
Check that out. This way your can POST to your real website from your dummy site's script, completely transparent to the user.
Hope that makes... | You can use the PHP cURL library to send these kinds of data requests.
Link: <http://php.net/manual/en/book.curl.php> |
5,970,677 | I want to have a script on one website and database on other website.
First website has 2 fields where they enter username and password. Then php posts username/password to other php file and that php does *something* and then somehow sends the data to my second website, where I insert username and password to MySql d... | 2011/05/11 | [
"https://Stackoverflow.com/questions/5970677",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/625189/"
] | Why can't your script on your dummy website retrieve the data via $\_POST and then call the script from your real website?
<http://davidwalsh.name/execute-http-post-php-curl>
Check that out. This way your can POST to your real website from your dummy site's script, completely transparent to the user.
Hope that makes... | ```
/**
* create request || application/json
* @param $method
* @param $url
* @param $args
* @param $isSentBody
* @param $cert
* @return resource
*/
function createRequest($method, $url, $args, $isSentBody, $cert = false)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
if ($method == 'PO... |
5,970,677 | I want to have a script on one website and database on other website.
First website has 2 fields where they enter username and password. Then php posts username/password to other php file and that php does *something* and then somehow sends the data to my second website, where I insert username and password to MySql d... | 2011/05/11 | [
"https://Stackoverflow.com/questions/5970677",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/625189/"
] | You can use the PHP cURL library to send these kinds of data requests.
Link: <http://php.net/manual/en/book.curl.php> | There are three obvious ways to do this:
1) Simple – keep the page hosted on site 2, but use an iframe on site 1 to embed it.
2) Post the form from site 1 to site 2 by setting the action attribute to a script on site 2.
3) Post the form on site 1 to a script on site 1, then use CURL to post it to the other site behi... |
5,970,677 | I want to have a script on one website and database on other website.
First website has 2 fields where they enter username and password. Then php posts username/password to other php file and that php does *something* and then somehow sends the data to my second website, where I insert username and password to MySql d... | 2011/05/11 | [
"https://Stackoverflow.com/questions/5970677",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/625189/"
] | You can use the PHP cURL library to send these kinds of data requests.
Link: <http://php.net/manual/en/book.curl.php> | ```
/**
* create request || application/json
* @param $method
* @param $url
* @param $args
* @param $isSentBody
* @param $cert
* @return resource
*/
function createRequest($method, $url, $args, $isSentBody, $cert = false)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
if ($method == 'PO... |
203,340 | I'm looking for a current (1.2), well-formatted, printable version of the jQuery documentation. I've checked the alternative resources page and see the PDF versions from CF and Java, but both are out of date.
The jQuery site has the API browser with "Printable Version" in the toolbox, but it prints terribly, and I don... | 2008/10/15 | [
"https://Stackoverflow.com/questions/203340",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27580/"
] | [http://www.amazon.com/jQuery-Action-Bear-Bibeault/dp/1933988355/ref=pd\_bbs\_sr\_1?ie=UTF8&s=books&qid=1224036401&sr=8-1](https://rads.stackoverflow.com/amzn/click/com/1933988355)
and
[http://www.amazon.com/jQuery-Reference-Guide-Karl-Swedberg/dp/1847193811/ref=pd\_sim\_b\_3](https://rads.stackoverflow.com/amzn/cli... | There are many good jQuery cheat sheets on the Web. Here is one...
<http://www.gscottolson.com/jquery/jQuery1.2.cheatsheet.v1.0.pdf>
One of these, the Manning book previously referenced, and the excellent online docs make you an expert pretty quickly. |
203,340 | I'm looking for a current (1.2), well-formatted, printable version of the jQuery documentation. I've checked the alternative resources page and see the PDF versions from CF and Java, but both are out of date.
The jQuery site has the API browser with "Printable Version" in the toolbox, but it prints terribly, and I don... | 2008/10/15 | [
"https://Stackoverflow.com/questions/203340",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27580/"
] | take a look at [this page](http://charupload.wordpress.com/2007/12/07/jquery-documentation-chm/).
it has compiled html help file (CHM) for latest jQuery 1.3.
that guy also compiles another useful CHM manuals. | I personally use and prefer: <http://colorcharge.com/wp-content/uploads/2007/12/jquery12_colorcharge.png> |
203,340 | I'm looking for a current (1.2), well-formatted, printable version of the jQuery documentation. I've checked the alternative resources page and see the PDF versions from CF and Java, but both are out of date.
The jQuery site has the API browser with "Printable Version" in the toolbox, but it prints terribly, and I don... | 2008/10/15 | [
"https://Stackoverflow.com/questions/203340",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27580/"
] | You could also do a little work yourself by usng a service like [PediaPress](http://pediapress.com/) which specializes in converting MediaWiki data to print form.
The jQuery API is all MediaWiki that you could write a simple scraper to gather (just look at the "Edit" pages).
[PediaPress has some code](http://code.ped... | From
<http://roshanbh.com.np/2008/03/jquery-benefits-examples-free-ebook.html> you can download a chm, and print it. The link is at the end of the entry. |
203,340 | I'm looking for a current (1.2), well-formatted, printable version of the jQuery documentation. I've checked the alternative resources page and see the PDF versions from CF and Java, but both are out of date.
The jQuery site has the API browser with "Printable Version" in the toolbox, but it prints terribly, and I don... | 2008/10/15 | [
"https://Stackoverflow.com/questions/203340",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27580/"
] | There are many good jQuery cheat sheets on the Web. Here is one...
<http://www.gscottolson.com/jquery/jQuery1.2.cheatsheet.v1.0.pdf>
One of these, the Manning book previously referenced, and the excellent online docs make you an expert pretty quickly. | [Here are some jQuery cheat sheets](http://www.javascripttoolbox.com/jquery/cheatsheet/) available in multiple printable formats with descriptions and examples on usages. |
203,340 | I'm looking for a current (1.2), well-formatted, printable version of the jQuery documentation. I've checked the alternative resources page and see the PDF versions from CF and Java, but both are out of date.
The jQuery site has the API browser with "Printable Version" in the toolbox, but it prints terribly, and I don... | 2008/10/15 | [
"https://Stackoverflow.com/questions/203340",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27580/"
] | The last time I checked, all of the *printable* jQuery documentation is out of date. There is one for v1.1 available here:
<http://www.bennadel.com/blog/544-Printing-The-Entire-jQuery-API-As-A-PDF-Using-CFDocument-And-XML-Parsing-.htm>
I don't know of any *up-to-date* versions of the documentation though. | From
<http://roshanbh.com.np/2008/03/jquery-benefits-examples-free-ebook.html> you can download a chm, and print it. The link is at the end of the entry. |
203,340 | I'm looking for a current (1.2), well-formatted, printable version of the jQuery documentation. I've checked the alternative resources page and see the PDF versions from CF and Java, but both are out of date.
The jQuery site has the API browser with "Printable Version" in the toolbox, but it prints terribly, and I don... | 2008/10/15 | [
"https://Stackoverflow.com/questions/203340",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27580/"
] | <http://api.jquery.com/> is the best reference I've come across, it also has a [downloadable app](http://api.jquery.com/update/jquery-api-browser-2.0.air) at the bottom that installs as an [Adobe AIR](http://www.adobe.com/products/air/) application...very handy. | Yeah i also disappointed with manning jquery in action book, learning jquery by packt is much better but still not covered most common needs, probably john resig need to write a book himself. |
203,340 | I'm looking for a current (1.2), well-formatted, printable version of the jQuery documentation. I've checked the alternative resources page and see the PDF versions from CF and Java, but both are out of date.
The jQuery site has the API browser with "Printable Version" in the toolbox, but it prints terribly, and I don... | 2008/10/15 | [
"https://Stackoverflow.com/questions/203340",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27580/"
] | [http://www.amazon.com/jQuery-Action-Bear-Bibeault/dp/1933988355/ref=pd\_bbs\_sr\_1?ie=UTF8&s=books&qid=1224036401&sr=8-1](https://rads.stackoverflow.com/amzn/click/com/1933988355)
and
[http://www.amazon.com/jQuery-Reference-Guide-Karl-Swedberg/dp/1847193811/ref=pd\_sim\_b\_3](https://rads.stackoverflow.com/amzn/cli... | <http://api.jquery.com/> is the best reference I've come across, it also has a [downloadable app](http://api.jquery.com/update/jquery-api-browser-2.0.air) at the bottom that installs as an [Adobe AIR](http://www.adobe.com/products/air/) application...very handy. |
203,340 | I'm looking for a current (1.2), well-formatted, printable version of the jQuery documentation. I've checked the alternative resources page and see the PDF versions from CF and Java, but both are out of date.
The jQuery site has the API browser with "Printable Version" in the toolbox, but it prints terribly, and I don... | 2008/10/15 | [
"https://Stackoverflow.com/questions/203340",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27580/"
] | take a look at [this page](http://charupload.wordpress.com/2007/12/07/jquery-documentation-chm/).
it has compiled html help file (CHM) for latest jQuery 1.3.
that guy also compiles another useful CHM manuals. | From
<http://roshanbh.com.np/2008/03/jquery-benefits-examples-free-ebook.html> you can download a chm, and print it. The link is at the end of the entry. |
203,340 | I'm looking for a current (1.2), well-formatted, printable version of the jQuery documentation. I've checked the alternative resources page and see the PDF versions from CF and Java, but both are out of date.
The jQuery site has the API browser with "Printable Version" in the toolbox, but it prints terribly, and I don... | 2008/10/15 | [
"https://Stackoverflow.com/questions/203340",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27580/"
] | take a look at [this page](http://charupload.wordpress.com/2007/12/07/jquery-documentation-chm/).
it has compiled html help file (CHM) for latest jQuery 1.3.
that guy also compiles another useful CHM manuals. | <http://api.jquery.com/> is the best reference I've come across, it also has a [downloadable app](http://api.jquery.com/update/jquery-api-browser-2.0.air) at the bottom that installs as an [Adobe AIR](http://www.adobe.com/products/air/) application...very handy. |
203,340 | I'm looking for a current (1.2), well-formatted, printable version of the jQuery documentation. I've checked the alternative resources page and see the PDF versions from CF and Java, but both are out of date.
The jQuery site has the API browser with "Printable Version" in the toolbox, but it prints terribly, and I don... | 2008/10/15 | [
"https://Stackoverflow.com/questions/203340",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27580/"
] | The last time I checked, all of the *printable* jQuery documentation is out of date. There is one for v1.1 available here:
<http://www.bennadel.com/blog/544-Printing-The-Entire-jQuery-API-As-A-PDF-Using-CFDocument-And-XML-Parsing-.htm>
I don't know of any *up-to-date* versions of the documentation though. | [Here are some jQuery cheat sheets](http://www.javascripttoolbox.com/jquery/cheatsheet/) available in multiple printable formats with descriptions and examples on usages. |
24,503,556 | In master page
```
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat=... | 2014/07/01 | [
"https://Stackoverflow.com/questions/24503556",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3494471/"
] | This will Work for you...
```
<script type="text/javascript">
$(document).ready(function() {
$("input[id$='TextBox1']").datepicker();
});
</script>
```
You could also give it a class of something like `CssClass="datePicker"` and use that to grab it with jQuery:
```
$(".datePicker").datepicker();
``` | Use Like, In Your Page where Datepicker is Located
Place it at bottom of Page where you Datpicker is located,
Put This [Jquery](https://code.google.com/p/simile-widgets/source/browse/exhibit/trunk/src/webapp/api/extensions/dataeditor/jquery_ui/js/jquery-ui-1.8.16.custom.min.js?r=2176)
```
<script src="js/jquery-ui-1.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.