qid int64 1 74.7M | question stringlengths 0 58.3k | date stringlengths 10 10 | metadata list | response_j stringlengths 2 48.3k | response_k stringlengths 2 40.5k |
|---|---|---|---|---|---|
30,739,144 | All:
Suppose I have two directives( dir1 and dir2) , which are both isolated scope. From some posts, I learnt that I need to use "require" to get scope of the other directive, but there is one question confused me so much:
Suppose I use ng-repeat generated a lot of dir1 and dir2, how do I know in certain dir1, which ... | 2015/06/09 | [
"https://Stackoverflow.com/questions/30739144",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1647559/"
] | There's no hard rule, but sometimes you do have to do it. You will also need to do if you inherit from something or need the protocol declaration.
In general I would restate the rule as "use forward declarations of @class and @protocol whenever possible." | If `ClassA` depends on `ClassB` such that a consumer of `ClassA` is certainly going to need to import `ClassB` in order to make use of `ClassA`, I would prefer header imports over forward declarations. |
30,739,144 | All:
Suppose I have two directives( dir1 and dir2) , which are both isolated scope. From some posts, I learnt that I need to use "require" to get scope of the other directive, but there is one question confused me so much:
Suppose I use ng-repeat generated a lot of dir1 and dir2, how do I know in certain dir1, which ... | 2015/06/09 | [
"https://Stackoverflow.com/questions/30739144",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1647559/"
] | If you've read such a rule, that rule is wrong. You can include (and import, which is just a safer way of include) things into your header, if that's something required for the interface declaration. Otherwise save it for the implementation files. | If `ClassA` depends on `ClassB` such that a consumer of `ClassA` is certainly going to need to import `ClassB` in order to make use of `ClassA`, I would prefer header imports over forward declarations. |
11,875,828 | I have 3 models, User, Army and Engineer. When a User creates an Army which belongs to them, they can check a checkbox called `siege` that will create an Engineer which belongs to that Army and User. I have a concern about mass assignment though. The Engineer gets created by my method in my Army model:
```
attr_reader... | 2012/08/09 | [
"https://Stackoverflow.com/questions/11875828",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/604023/"
] | What's wrong with:
```
engineer = Engineer.new
engineer.user_id = self.user.id
engineer.army_id = self.id
engineer.save!
```
You could alternatively specify that you don't care about the mass assignment issues here only:
```
params = { :user_id => self.user.id, :army_id => self.id }
Engineer.create!(params, without... | Why do you need to relate the Engineer to the User explicitly? If you related the Engineer to the Army, wouldn't that Engineer get the relationship through Army to the User? |
667,056 | Here is the code.
```
\documentclass[12pt,letterpaper]{article}
\usepackage[left=20mm,top=30mm,bottom=30mm,right=20mm]{geometry}
\usepackage[siunitx]{circuitikz} % circuit package and include electrical units in our labels
\begin{document}
\begin{center}
\begin{circuitikz} [american voltages] \draw
(5,0) to
(5... | 2022/11/30 | [
"https://tex.stackexchange.com/questions/667056",
"https://tex.stackexchange.com",
"https://tex.stackexchange.com/users/206160/"
] | As supplement to @marijn answer:
[](https://i.stack.imgur.com/uu5u1.png)
```
\documentclass[12pt,margin=3mm]{standalone}
\usepackage[siunitx]{circuitikz}
\usetikzlibrary{arrows.meta}
\begin{document}
\begin{circuitikz} [american voltages,
> = S... | The longer resistor is described in the CircuiTikZ [manual](http://mirrors.ctan.org/graphics/pgf/contrib/circuitikz/doc/circuitikzmanual.pdf) on page 52:
>
> For the american style resistors, you can change the number of "zig-zags" by setting the key `resistors/zigs` (default value 3).
>
>
>
In the manual this se... |
248,040 | I have interfaced [M25P16](https://www.micron.com/~/media/documents/.../m25p16.pdf) with PIC32MX795F512L. MISO and CS is pulled up to VCC with 10k resistor.
I am sending the 0x9f (MSB first) command for reading device ID and after that 20 dummy bytes are transmitted for generating clock for receiving bytes. But I'm ge... | 2016/07/26 | [
"https://electronics.stackexchange.com/questions/248040",
"https://electronics.stackexchange.com",
"https://electronics.stackexchange.com/users/117832/"
] | I not sure if this problem was solved, I had exactly the same problem as you two days ago and nothing on the internet I found helped, it seems everyone had a unique problem expect yours...
After 2 days of debugging I found the solution, its very simple.. the chip 3.3V tolerant (power supply and input signals.. they N... | It looks like the flash memory is trying to respond to the command, but can't. I would check that there are no conflicts with the MISO pin. Make sure that some other peripheral on your microcontroller isn't using the MISO pin, that the MISO pin is not shorted to another pin, and make sure there is not a problem with an... |
21,385,369 | I need to check whether the Property contains one of the or all following strings
**"C-I", "C-II", "C-III", "C-IV", "C-V"**
if not it Errormessage must be
**"Invalid Property. Must be blank or C-I, C-II, C-III, C-IV, or C-V.",**
i don know which "DataAnnotation Attribute" to use and How? if possible please provide... | 2014/01/27 | [
"https://Stackoverflow.com/questions/21385369",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2114018/"
] | You could use the [Regular Expression](http://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.regularexpressionattribute%28v=vs.110%29.aspx) data annotation. However, I would recommend implementing `IValidatableObject` on your data class. You can then write your custom logic within the `Validate`... | It can be done using anyone of the follwing Attributes
\*\*
>
> 1.EnumDataTypeAttribute
> 2.CustomValidationAttribute
> 3. Creating New Custom Attribute.
>
>
>
\*\* |
1,976,129 | Given a regular curve $\gamma \colon I \to \mathbb{R}^n$, if we consider the variable $t \in I \subset \mathbb{R}$ as the time, then we have the usual interpretation of $\gamma'(t)$ as the (instantaneous) velocity vector at the position $\gamma(t)$ and $\lvert\gamma'(t)\rvert$ as the speed (or scalar velocity).
From t... | 2016/10/19 | [
"https://math.stackexchange.com/questions/1976129",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/177211/"
] | In (special) relativity $\mathbb{R}^n$ comes with a different metric, with signature $(-,+, \ldots +)$.
The mathematical study of manifolds with a Lorentzian metric is called lorentzian geometry, or pseudo-Riemannian geometry or semi-Riemannian geometry (the latter are more general as it refers to any metric which is ... | Initially ignore the effects of spacetime curvature (general relativity). Consider a homogeneous (flat) real four-dimensional space. If the distance between a pair of points is given by a definite (Euclidean) quadratic form, the symmetries of space include the usual orthogonal symmetry group $\mathrm{O}(4)$ and transla... |
1,976,129 | Given a regular curve $\gamma \colon I \to \mathbb{R}^n$, if we consider the variable $t \in I \subset \mathbb{R}$ as the time, then we have the usual interpretation of $\gamma'(t)$ as the (instantaneous) velocity vector at the position $\gamma(t)$ and $\lvert\gamma'(t)\rvert$ as the speed (or scalar velocity).
From t... | 2016/10/19 | [
"https://math.stackexchange.com/questions/1976129",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/177211/"
] | In (special) relativity $\mathbb{R}^n$ comes with a different metric, with signature $(-,+, \ldots +)$.
The mathematical study of manifolds with a Lorentzian metric is called lorentzian geometry, or pseudo-Riemannian geometry or semi-Riemannian geometry (the latter are more general as it refers to any metric which is ... | This question is more about physics than about math, so I hope you will bear with a physicist for posting an answer. The OP expressed the following doubt:
>
> ...Of course, at these examples, the speed of these curves increase infinitely ("goes to infinity"). ... what axioms do I insert to my models in order to get s... |
1,976,129 | Given a regular curve $\gamma \colon I \to \mathbb{R}^n$, if we consider the variable $t \in I \subset \mathbb{R}$ as the time, then we have the usual interpretation of $\gamma'(t)$ as the (instantaneous) velocity vector at the position $\gamma(t)$ and $\lvert\gamma'(t)\rvert$ as the speed (or scalar velocity).
From t... | 2016/10/19 | [
"https://math.stackexchange.com/questions/1976129",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/177211/"
] | Initially ignore the effects of spacetime curvature (general relativity). Consider a homogeneous (flat) real four-dimensional space. If the distance between a pair of points is given by a definite (Euclidean) quadratic form, the symmetries of space include the usual orthogonal symmetry group $\mathrm{O}(4)$ and transla... | This question is more about physics than about math, so I hope you will bear with a physicist for posting an answer. The OP expressed the following doubt:
>
> ...Of course, at these examples, the speed of these curves increase infinitely ("goes to infinity"). ... what axioms do I insert to my models in order to get s... |
41,653,013 | I have several versions of Java on my Gentoo:
```
$ java-config --list-available-vms
The following VMs are available for generation-2:
1) IcedTea JDK 7.2.6.7 [icedtea-bin-7]
2) IcedTea JDK 3.1.0 [icedtea-bin-8]
3) Oracle JDK 1.8.0.112 [oracle-jdk-bin-1.8]
```
When I have settings like this, my Android Studio does... | 2017/01/14 | [
"https://Stackoverflow.com/questions/41653013",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5940806/"
] | I have tried bunch of different solution (f.e. calculating view direction with PageTransformer and so on.) but they usually doesn't work very well. You may get wrong direction if you are on first/last tab. You may not get any direction if the page is moved by viewpager itself instead of user's swipe ...
In the end th... | Set setOnPageChangeListener to your ViewPager.
```
viewpager.addOnPageChangeListener(
new OnPageChangeListener(){
@Override
public void onPageSelected(int arg0) {
if(lastPage>arg0)
{//User Move to left}
else(lastPage<arg0)
{//User Move to right}
lastPage=arg0
}
});
```
Look at t... |
2,207,519 | What solutions exist to persist data, *without* requiring a full-blown enterprise server? I am fairly new to Java. At uni the whole curriculum was based on Java, so I coded a bit already. But it never went into depth with the available frameworks. The only way we actually touched on persistens was using "vanilla" JDBC ... | 2010/02/05 | [
"https://Stackoverflow.com/questions/2207519",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/160665/"
] | I recommend JPA -- while it's a standard, it is completely separate from the whole Java EE spec. You don't need a enterprise application server to use it. In fact, Sun has a ["Using JPA in Desktop Applications"](http://java.sun.com/developer/technicalArticles/J2SE/Desktop/persistenceapi/) article. | JPA + Hibernate, Derby in memory java database, Swing destop App. After annotating my Model classes and specifying the derby driver and such trivia in XML files, persistency was all automagic. |
2,055,999 | Currently I'm working on creating a view of displaying a entire school database in the form of a graphical view.
1. School;
2. Classes;
3. Teachers; and
4. Students
I display an Image for each of the above mentioned ones. I need a plugin/tool (freeware) to use to create the links between them.
My default view would ... | 2010/01/13 | [
"https://Stackoverflow.com/questions/2055999",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/185412/"
] | I would check out [Flare](http://flare.prefuse.org/). Check out the [demo](http://flare.prefuse.org/demo). I think you will be most interested in the Layouts section. | Check the "tour de flex"
<http://www.adobe.com/devnet/flex/tourdeflex/>
It's a big demo of what you can do with flex. Check the Data Visualisation part, it's contains some very nice exemple
But i doubs that you will find exactly what your are looking for, why not just code it.
* A image for the scool.
* a list of ... |
2,055,999 | Currently I'm working on creating a view of displaying a entire school database in the form of a graphical view.
1. School;
2. Classes;
3. Teachers; and
4. Students
I display an Image for each of the above mentioned ones. I need a plugin/tool (freeware) to use to create the links between them.
My default view would ... | 2010/01/13 | [
"https://Stackoverflow.com/questions/2055999",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/185412/"
] | Another option would be the [RaVis](http://code.google.com/p/birdeye/wiki/RaVis) portion of the BirdEye project. The graphs it generates are pretty customizable (i.e. controlling the image used for each node), as seen in [this demo](http://birdeye.googlecode.com/svn/trunk/ravis/RaVisExamples/example-binaries/RaVisExplo... | Check the "tour de flex"
<http://www.adobe.com/devnet/flex/tourdeflex/>
It's a big demo of what you can do with flex. Check the Data Visualisation part, it's contains some very nice exemple
But i doubs that you will find exactly what your are looking for, why not just code it.
* A image for the scool.
* a list of ... |
4,538,392 | I am using RHEL 6 with 64 bit OS. For one of my application I had installed “jre-6u23-linux-x64.bin”. When I execute my application I am getting the below ERROR:
```
# A fatal error has been detected by the Java Runtime Environment:
# SIGSEGV (0xb) at pc=0x0000003222414d70, pid=4977, tid=140076581496592
# JRE vers... | 2010/12/27 | [
"https://Stackoverflow.com/questions/4538392",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/554909/"
] | Between
>
> The crash happened outside the Java Virtual Machine in native code.
>
>
>
and
>
> An error report file with more information is saved as
> /root/Desktop/Madhu/SELVIEW10.0-B4/Linux/hs\_err\_pid4977.log
>
>
>
it looks like you're dealing with a defective native library. Have a look at that hs\_er... | This issue is also discussed here: [community.oracle.com thread](https://community.oracle.com/thread/2561823)
The suggested solution is to set LD\_BIND\_NOW=1:
```
export LD_BIND_NOW=1
$JAVA_HOME/bin/java -jar yourapp.jar
``` |
4,232,144 | This is actually from Zurich's book (chapter on Integration).
>
> **Definition.** A set $E\subset \mathbb{R}$ *has measure zero* or *is of measure zero* (in the sense of Lebesgue) if for every number
> $\epsilon>0$ there exists a covering of the set $E$ by an at most
> countable system $\{I\_k\}$ of intervals, the su... | 2021/08/24 | [
"https://math.stackexchange.com/questions/4232144",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/99694/"
] | I don't think Zorich is super clear on this point. The closest he comes to an explanation is this:
>
> The order of summation $\sum\_{n,k} |I^n\_k|$ on the indices $n$ and $k$ is of no importance, since the series converges to the same sum for any order of summation if it converges in even one ordering. [Zorich is re... | The point here is that you don't actually need to compute it. What you do is for your first set, $E\_1$, choose a covering so that the total measure is less than $\frac \epsilon 2$. The second set you choose one whose total is less than $\frac \epsilon 4$, then $n'th$ one a cover whose total length is less than $\frac ... |
1,215,928 | In the latest release of ASP.NET MVC 2 they have launched the concept of areas as supported by MS. However to perform this areas concept one has to create multiple separate projects. One project per area. In ASP.NET MVC 1 there were many other ways out there to support areas where you would still be working within the ... | 2009/08/01 | [
"https://Stackoverflow.com/questions/1215928",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/83889/"
] | fixed it
```
$pagefixed = str_replace("href=\"/","href=\"http://www.domain.com/","$page");
```
Thanks all | You'll either need to use a regular expression (preg\_replace) or 2 str\_replaces since quotes vary. |
10,976,548 | I want to do something like this:
click a Link (a URL of apk)
1. If the apk didn't install before, so the apk will be downloaded.
2. If the apk have installed the apk before, the apk will be open.
So is it possible to open the apk by URL link? | 2012/06/11 | [
"https://Stackoverflow.com/questions/10976548",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1448441/"
] | You can use [PackageManager](http://developer.android.com/reference/android/content/pm/PackageManager.html) class to search for a package, the one that you want to start downloading, if the package is present you can call to its launch intent.
Some examples here.
[How to get a list of installed android applications a... | Look at [this example](https://testflightapp.com/androidsplash/) and TestFlight's webpage. There's a link `Already Installed? Launch the App` -- a simple `<a>` tag with `href` set to `testflightapp://com.testflightapp.androidapp?scheme=http&host=testflightapp.com&path=m/builds`.
It works partially, like you wa... |
69,077,614 | Trying to print the value in y for the number of times that shows in x.
How should I modify the following syntax to achieve the expected output?
```
x = 5
y = ['a', 'b']
z = []
for num in list(range(x)):
for idx, num1 in enumerate(y):
z.append(num1)
```
Output based on above:
```
['a', 'b', 'a', 'b', ... | 2021/09/06 | [
"https://Stackoverflow.com/questions/69077614",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16803074/"
] | The first reduce is working as intended. As it is already reduced it will not perform anything.
To be more explicit, the callback you pass to the `reduce()` method will be called on each element of the array, but as your array is empty, there it will not be called.
See <https://developer.mozilla.org/en-US/docs/Web/Ja... | As mentioned in the docs:
>
> The reduce() method executes a user-supplied “reducer” callback function on each element of the array
>
>
>
If there are no elements the callback won't run
<https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/Reduce> |
69,077,614 | Trying to print the value in y for the number of times that shows in x.
How should I modify the following syntax to achieve the expected output?
```
x = 5
y = ['a', 'b']
z = []
for num in list(range(x)):
for idx, num1 in enumerate(y):
z.append(num1)
```
Output based on above:
```
['a', 'b', 'a', 'b', ... | 2021/09/06 | [
"https://Stackoverflow.com/questions/69077614",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16803074/"
] | An empty array have no element, so it dose not run reduce function.
But [null] array has one element 'null'. So this array run reduce function. | As mentioned in the docs:
>
> The reduce() method executes a user-supplied “reducer” callback function on each element of the array
>
>
>
If there are no elements the callback won't run
<https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/Reduce> |
2,476,690 | We've noticed that when checking in updates, our `.DFM` files have added `ExplicitWidth` and `ExplicitHeight` properties - but we don't know why.
My questions are:
* What are these properties for?
* Why are they automatically added by Delphi?
Below is an example showing the added `ExplicitWidth` property:
```
obje... | 2010/03/19 | [
"https://Stackoverflow.com/questions/2476690",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17461/"
] | From Googling....
[Original article can be found here.](http://jedqc.blogspot.com/2006/02/d2006-what-on-earth-are-these-explicit.html)
>
> The Explicit properties remember the
> previous bounds of a control before
> the Align or Anchor properties are
> changed from their defaults.
>
>
> The only time the Expli... | Delphi adds value of published properties to DFM file only when its value different from default.
For example:
```
property ExplicitWidth: Integer read FExplicitWidth write FExplicitWidth default 1;
```
If ExplicitWidth value is not 1 then it will be written to the DFM.
When the "default" is not defined then any val... |
2,476,690 | We've noticed that when checking in updates, our `.DFM` files have added `ExplicitWidth` and `ExplicitHeight` properties - but we don't know why.
My questions are:
* What are these properties for?
* Why are they automatically added by Delphi?
Below is an example showing the added `ExplicitWidth` property:
```
obje... | 2010/03/19 | [
"https://Stackoverflow.com/questions/2476690",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17461/"
] | With DDevExtensions you can disable storing these properties in the dfm:
<http://andy.jgknet.de/blog/?page_id=10>
>
> Adds Explicit\* property remover to keep DFM files compatible to older Delphi versions
>
>
> | Delphi adds value of published properties to DFM file only when its value different from default.
For example:
```
property ExplicitWidth: Integer read FExplicitWidth write FExplicitWidth default 1;
```
If ExplicitWidth value is not 1 then it will be written to the DFM.
When the "default" is not defined then any val... |
2,476,690 | We've noticed that when checking in updates, our `.DFM` files have added `ExplicitWidth` and `ExplicitHeight` properties - but we don't know why.
My questions are:
* What are these properties for?
* Why are they automatically added by Delphi?
Below is an example showing the added `ExplicitWidth` property:
```
obje... | 2010/03/19 | [
"https://Stackoverflow.com/questions/2476690",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17461/"
] | From Googling....
[Original article can be found here.](http://jedqc.blogspot.com/2006/02/d2006-what-on-earth-are-these-explicit.html)
>
> The Explicit properties remember the
> previous bounds of a control before
> the Align or Anchor properties are
> changed from their defaults.
>
>
> The only time the Expli... | With DDevExtensions you can disable storing these properties in the dfm:
<http://andy.jgknet.de/blog/?page_id=10>
>
> Adds Explicit\* property remover to keep DFM files compatible to older Delphi versions
>
>
> |
2,476,690 | We've noticed that when checking in updates, our `.DFM` files have added `ExplicitWidth` and `ExplicitHeight` properties - but we don't know why.
My questions are:
* What are these properties for?
* Why are they automatically added by Delphi?
Below is an example showing the added `ExplicitWidth` property:
```
obje... | 2010/03/19 | [
"https://Stackoverflow.com/questions/2476690",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17461/"
] | From Googling....
[Original article can be found here.](http://jedqc.blogspot.com/2006/02/d2006-what-on-earth-are-these-explicit.html)
>
> The Explicit properties remember the
> previous bounds of a control before
> the Align or Anchor properties are
> changed from their defaults.
>
>
> The only time the Expli... | I encounter a lot of noise from random (dis)appearances of these:
```
ExplicitLeft = 0
ExplicitTop = 0
ExplicitWidth = 0
ExplicitHeight = 0
```
So I wrote a tool that removes only these (all 4 exist and are 0) from DFM files:
<https://github.com/gonutz/dfm_clear_explicit_zeros> |
2,476,690 | We've noticed that when checking in updates, our `.DFM` files have added `ExplicitWidth` and `ExplicitHeight` properties - but we don't know why.
My questions are:
* What are these properties for?
* Why are they automatically added by Delphi?
Below is an example showing the added `ExplicitWidth` property:
```
obje... | 2010/03/19 | [
"https://Stackoverflow.com/questions/2476690",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17461/"
] | With DDevExtensions you can disable storing these properties in the dfm:
<http://andy.jgknet.de/blog/?page_id=10>
>
> Adds Explicit\* property remover to keep DFM files compatible to older Delphi versions
>
>
> | I encounter a lot of noise from random (dis)appearances of these:
```
ExplicitLeft = 0
ExplicitTop = 0
ExplicitWidth = 0
ExplicitHeight = 0
```
So I wrote a tool that removes only these (all 4 exist and are 0) from DFM files:
<https://github.com/gonutz/dfm_clear_explicit_zeros> |
5,737 | In the new version of Google Docs is it possible to view/compare revision differences as you used to be able to do to see the changes highlighted.
I know you can view previous versions but what I want is to see the individual changes highlighted by the user that made them. | 2010/08/16 | [
"https://webapps.stackexchange.com/questions/5737",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/3447/"
] | This method will create a new document with the changes as suggestions.
1. In the updated document:
1. Select the menu item: **File/Version History/See Version History**
2. Find the version upon which you wish to base the compare/diff.
3. Click the vertical ellipsis, and select "Make a Copy"
2. In this new copy of ... | If you have access to Adobe Acrobat, you can print the two documents to PDF files using Docs Print/Save As PDF command, then compare them using Adobe Acrobat's Compare Documents feature. |
5,737 | In the new version of Google Docs is it possible to view/compare revision differences as you used to be able to do to see the changes highlighted.
I know you can view previous versions but what I want is to see the individual changes highlighted by the user that made them. | 2010/08/16 | [
"https://webapps.stackexchange.com/questions/5737",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/3447/"
] | The best way I found is to use named version.
You can set names for each versions and you can compare current named version with previous named version. So the step is
1. Set names to two versions you want to compare with.
2. Turn on "Only show named versions".
Then you can see the difference between specific version... | If you have access to Adobe Acrobat, you can print the two documents to PDF files using Docs Print/Save As PDF command, then compare them using Adobe Acrobat's Compare Documents feature. |
5,737 | In the new version of Google Docs is it possible to view/compare revision differences as you used to be able to do to see the changes highlighted.
I know you can view previous versions but what I want is to see the individual changes highlighted by the user that made them. | 2010/08/16 | [
"https://webapps.stackexchange.com/questions/5737",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/3447/"
] | The best way I found is to use named version.
You can set names for each versions and you can compare current named version with previous named version. So the step is
1. Set names to two versions you want to compare with.
2. Turn on "Only show named versions".
Then you can see the difference between specific version... | This method will create a new document with the changes as suggestions.
1. In the updated document:
1. Select the menu item: **File/Version History/See Version History**
2. Find the version upon which you wish to base the compare/diff.
3. Click the vertical ellipsis, and select "Make a Copy"
2. In this new copy of ... |
5,737 | In the new version of Google Docs is it possible to view/compare revision differences as you used to be able to do to see the changes highlighted.
I know you can view previous versions but what I want is to see the individual changes highlighted by the user that made them. | 2010/08/16 | [
"https://webapps.stackexchange.com/questions/5737",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/3447/"
] | The best way I found is to use named version.
You can set names for each versions and you can compare current named version with previous named version. So the step is
1. Set names to two versions you want to compare with.
2. Turn on "Only show named versions".
Then you can see the difference between specific version... | This is no longer possible in the latest version of Google Docs. Please, see other answers instead.
---
**It previously worked this way:**
1. Open the document in Google Docs
2. Click the [File] menu item
3. Click the [See revision history] option
4. Check the box for the newest revision you want to compare.
5. Scro... |
5,737 | In the new version of Google Docs is it possible to view/compare revision differences as you used to be able to do to see the changes highlighted.
I know you can view previous versions but what I want is to see the individual changes highlighted by the user that made them. | 2010/08/16 | [
"https://webapps.stackexchange.com/questions/5737",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/3447/"
] | You can use <https://github.com/larsks/gitdriver> to create a git repository mirroring a google doc. In the repository is only one file stored and there is a commit for each Google Drive revision. Then, you can use commands like `git log` of `git diff` or graphical tools for showing the diff as described here: <https:/... | This method will create a new document with the changes as suggestions.
1. In the updated document:
1. Select the menu item: **File/Version History/See Version History**
2. Find the version upon which you wish to base the compare/diff.
3. Click the vertical ellipsis, and select "Make a Copy"
2. In this new copy of ... |
5,737 | In the new version of Google Docs is it possible to view/compare revision differences as you used to be able to do to see the changes highlighted.
I know you can view previous versions but what I want is to see the individual changes highlighted by the user that made them. | 2010/08/16 | [
"https://webapps.stackexchange.com/questions/5737",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/3447/"
] | This is no longer possible in the latest version of Google Docs. Please, see other answers instead.
---
**It previously worked this way:**
1. Open the document in Google Docs
2. Click the [File] menu item
3. Click the [See revision history] option
4. Check the box for the newest revision you want to compare.
5. Scro... | If you have access to Adobe Acrobat, you can print the two documents to PDF files using Docs Print/Save As PDF command, then compare them using Adobe Acrobat's Compare Documents feature. |
5,737 | In the new version of Google Docs is it possible to view/compare revision differences as you used to be able to do to see the changes highlighted.
I know you can view previous versions but what I want is to see the individual changes highlighted by the user that made them. | 2010/08/16 | [
"https://webapps.stackexchange.com/questions/5737",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/3447/"
] | The best way I found is to use named version.
You can set names for each versions and you can compare current named version with previous named version. So the step is
1. Set names to two versions you want to compare with.
2. Turn on "Only show named versions".
Then you can see the difference between specific version... | Docs has "Tools -> Compare documents". This can be used. For each (from/to) version, create a new document, and then compare these documents.
This creates 3 documents (two source documents and the comparison result), that you then may want to delete afterwards. But it is possible. |
5,737 | In the new version of Google Docs is it possible to view/compare revision differences as you used to be able to do to see the changes highlighted.
I know you can view previous versions but what I want is to see the individual changes highlighted by the user that made them. | 2010/08/16 | [
"https://webapps.stackexchange.com/questions/5737",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/3447/"
] | This method will create a new document with the changes as suggestions.
1. In the updated document:
1. Select the menu item: **File/Version History/See Version History**
2. Find the version upon which you wish to base the compare/diff.
3. Click the vertical ellipsis, and select "Make a Copy"
2. In this new copy of ... | Docs has "Tools -> Compare documents". This can be used. For each (from/to) version, create a new document, and then compare these documents.
This creates 3 documents (two source documents and the comparison result), that you then may want to delete afterwards. But it is possible. |
5,737 | In the new version of Google Docs is it possible to view/compare revision differences as you used to be able to do to see the changes highlighted.
I know you can view previous versions but what I want is to see the individual changes highlighted by the user that made them. | 2010/08/16 | [
"https://webapps.stackexchange.com/questions/5737",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/3447/"
] | You can use <https://github.com/larsks/gitdriver> to create a git repository mirroring a google doc. In the repository is only one file stored and there is a commit for each Google Drive revision. Then, you can use commands like `git log` of `git diff` or graphical tools for showing the diff as described here: <https:/... | If you have access to Adobe Acrobat, you can print the two documents to PDF files using Docs Print/Save As PDF command, then compare them using Adobe Acrobat's Compare Documents feature. |
5,737 | In the new version of Google Docs is it possible to view/compare revision differences as you used to be able to do to see the changes highlighted.
I know you can view previous versions but what I want is to see the individual changes highlighted by the user that made them. | 2010/08/16 | [
"https://webapps.stackexchange.com/questions/5737",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/3447/"
] | You can see differences between named and unnamed versions.
Go to File->Version history->See version history
On the right hand side, you'll see the versions. If you click on one of them, you will see above your document, on the right hand side
[](https://i.stack.im... | Docs has "Tools -> Compare documents". This can be used. For each (from/to) version, create a new document, and then compare these documents.
This creates 3 documents (two source documents and the comparison result), that you then may want to delete afterwards. But it is possible. |
27,016 | I was wondering if there were any space probe systems that were actually launched as part of a larger satellite bus. As in, one rocket launch from earth releases 6 different satellites on a singular mission at different points on the main-buses trajectory. I did a mission [earlier on KSP](https://imgur.com/gallery/NSQ1... | 2018/05/01 | [
"https://space.stackexchange.com/questions/27016",
"https://space.stackexchange.com",
"https://space.stackexchange.com/users/25224/"
] | The [Pioneer Venus Multiprobe](https://en.wikipedia.org/wiki/Pioneer_Venus_Multiprobe) seems to fit the bill. It had one Large Probe and three smaller ones.
[](https://i.stack.imgur.com/kcHPP.jpg)
I don't think the different probes had propulsion tho... | Magnetosphere missions such as NASA's MMS <https://mms.gsfc.nasa.gov/> consist of four spacecraft flying in formation in order to obtain a three dimensional view of what is happening between them.
SpaceX is planning to launch the NASA/DFZ Grace Follow On mission next month, which is comprised of two spacecraft. One sp... |
152,916 | At the beginning of the winter season my boiler wasn't turning on, but I got it to work by turning on the inlet valve and just letting it feed water until the gas burners kicked in. The sight glass completely (over)filled with water to the point I couldn't see any air in the top. I was happy because my heat was working... | 2018/12/18 | [
"https://diy.stackexchange.com/questions/152916",
"https://diy.stackexchange.com",
"https://diy.stackexchange.com/users/84517/"
] | If this steam boiler has not been serviced in a while I would recommend that you have this done to insure safe operation this winter. Using this boiler with too little or too much water in it can damage it and can be very dangerous. Without knowing more about how the boiler is connected into the heating system and what... | Here are some facts that may help: You have a steam boiler. All steam boilers have what is called a low water cut-off. This devise makes sure that the boiler never fires dry or without water covering the cast iron exchanger. This would destroy your boiler in short order. The Mfg's install literature will tell you how h... |
33,404,576 | Let's say I have these values in a table
```
| Start Date | End date |Other Value
---------------------------------------------------------------------
| 2015-01-07 01:00:00.000 | 2015-01-08 04:00:00.000 | Yes
| 2015-01-08 10:00:00.000 | 2015-01-10 20:00:00.000 | No
```
I want to... | 2015/10/29 | [
"https://Stackoverflow.com/questions/33404576",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5283587/"
] | Actually I was using Hibernate 5 jars . But the tutorial is actually for Hibernate 4. When I used Hibernate 4 jars everything seems to working fine. | May be you don't need `<mapping resource="com/simpleprogrammer/User.hbm.xml" />`. Instead, try `<mapping resource="User.hbm.xml" />` |
28,982,551 | *I know that for Android it's possible to use Chrome://inspect to view the phone screen on your desktop. Clicking there is equal to tapping on the phone.*
It's fine for browsers and after 4.4 - for apps that have some special lines of code inserted.
Whether it's possible for iPhone / iPad?
i.e. I have a REAL device wi... | 2015/03/11 | [
"https://Stackoverflow.com/questions/28982551",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2878233/"
] | For C, gdb's "expression language" is just ordinary C expressions, with a few handy extensions for debugging. This is less true for C++, primarily because C++ is just much more difficult to parse, so there expression language tends to be a subset of C++ plus some gdb extensions.
So, the short answer is you can just ty... | In C/C++, you have the `sizeof` function which will give you the size of any type (including `struct`) or variable.
I'm not sure if you can apply this while debugging but you could simply have a test program with the same headers (type definitions) tell you what the size of your types is. |
155,507 | I am using SSH to connect to a CentOS server and I want to get the file in mb of some files and folders, how can I do it? | 2010/06/22 | [
"https://superuser.com/questions/155507",
"https://superuser.com",
"https://superuser.com/users/40705/"
] | use the du command
```
du -m filename
``` | `du` is the primary tool for this, but if you're looking for something more interactive, I quite like `ncdu`
[](https://i.stack.imgur.com/mtQMJ.jpg) |
155,507 | I am using SSH to connect to a CentOS server and I want to get the file in mb of some files and folders, how can I do it? | 2010/06/22 | [
"https://superuser.com/questions/155507",
"https://superuser.com",
"https://superuser.com/users/40705/"
] | use the du command
```
du -m filename
``` | ```
du -msh FolderName
```
will get the size with units. Unlike using -h, this will show a single size, while -h shows all the individual files within the folder.
e.g.
```
349M FolderName
``` |
155,507 | I am using SSH to connect to a CentOS server and I want to get the file in mb of some files and folders, how can I do it? | 2010/06/22 | [
"https://superuser.com/questions/155507",
"https://superuser.com",
"https://superuser.com/users/40705/"
] | ```
du -msh FolderName
```
will get the size with units. Unlike using -h, this will show a single size, while -h shows all the individual files within the folder.
e.g.
```
349M FolderName
``` | `du` is the primary tool for this, but if you're looking for something more interactive, I quite like `ncdu`
[](https://i.stack.imgur.com/mtQMJ.jpg) |
66,450,581 | Below is the code sample I tried coding it out in Angular but it's not something that I want.
```
<table>
<th >No.</th>
<th >Merchant </th>
<th >Last Order Grand Total </th>
<th >Last Order Date </th>
... | 2021/03/03 | [
"https://Stackoverflow.com/questions/66450581",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15048815/"
] | One oversight (remove the heads):
`printf("\n\n--- TOTAL COUNT ---\n", heads);`
you may also want to remove `getch();` inside `flip()` and fix the indentation of the overall file if that matters. | 1. NO need to define function signature above the main and implement later. You can do this in one way.
2. Need to return 0 in your main function(last line in your main function).
3. Don't use unnecessary header unless you use their function/value. |
61,399 | [Devarim 1:23](http://www.chabad.org/library/bible_cdo/aid/9965#showrashi=true) reads:
>
> וַיִּיטַב בְּעֵינַי הַדָּבָר וָאֶקַּח מִכֶּם שְׁנֵים עָשָׂר אֲנָשִׁים
> אִישׁ אֶחָד לַשָּׁבֶט׃
>
>
> And the matter pleased me; so I took twelve men from you, one man for
> each tribe.
>
>
>
Rashi:
>
> שנים עשר אנשים ... | 2015/07/21 | [
"https://judaism.stackexchange.com/questions/61399",
"https://judaism.stackexchange.com",
"https://judaism.stackexchange.com/users/1863/"
] | Sifsei Chachamim brings this question from Rabi Elazar Mizrachi who left it as a question.
The Sifsei Chachamim goes on to suggest that this limud is to tell us that Shevet Levi was not even involved in the council to send spies. He quotes Rashi, who's words are now clearer, who says Levi was not with them, but did n... | The [Gur Aryeh](http://www.hebrewbooks.org/pdfpager.aspx?req=42848&st=&pgnum=39) explains this Rashi.
He cites the question of Rabbi Eliyahu Mizrachi ([the Re'em](https://he.wikipedia.org/wiki/%D7%90%D7%9C%D7%99%D7%94%D7%95_%D7%9E%D7%96%D7%A8%D7%97%D7%99))
>
> והקשה הרא״ם, דכבר כתיב בפרשת שלח (במדבר יג, ל-טו) שנים ע... |
4,859,774 | I have one table with 2 columns that i essentially want to split into 2 tables:
table A columns: user\_id, col1, col2
New tables:
B: user\_id, col1
C: user\_id, col2
I want to do:
```
INSERT INTO B (user_id, col1) SELECT user_id,col1 from A;
INSERT INTO C (user_id,col2) SELECT user_id, col2 from A;
```
But i wa... | 2011/02/01 | [
"https://Stackoverflow.com/questions/4859774",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/277332/"
] | No, you can't insert into more than one table at the same time. `INSERT` syntax allows only a single table name.
<http://dev.mysql.com/doc/refman/5.5/en/insert.html>
>
> INSERT [LOW\_PRIORITY | DELAYED |
> HIGH\_PRIORITY] [IGNORE] [INTO]
> **tbl\_name** [...
>
>
> | Write a stored procedure to encapsulate the two inserts and protect the transaction. |
4,859,774 | I have one table with 2 columns that i essentially want to split into 2 tables:
table A columns: user\_id, col1, col2
New tables:
B: user\_id, col1
C: user\_id, col2
I want to do:
```
INSERT INTO B (user_id, col1) SELECT user_id,col1 from A;
INSERT INTO C (user_id,col2) SELECT user_id, col2 from A;
```
But i wa... | 2011/02/01 | [
"https://Stackoverflow.com/questions/4859774",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/277332/"
] | No, you can't insert into more than one table at the same time. `INSERT` syntax allows only a single table name.
<http://dev.mysql.com/doc/refman/5.5/en/insert.html>
>
> INSERT [LOW\_PRIORITY | DELAYED |
> HIGH\_PRIORITY] [IGNORE] [INTO]
> **tbl\_name** [...
>
>
> | If by "in one statement", you mean "atomically" - so that it can never happen that it's inserted into one table but not the other - then transactions are what you're looking for:
```
START TRANSACTION;
INSERT INTO B (user_id, col1) SELECT user_id,col1 from A;
INSERT INTO C (user_id,col2) SELECT user_id, col2 from A;
C... |
4,859,774 | I have one table with 2 columns that i essentially want to split into 2 tables:
table A columns: user\_id, col1, col2
New tables:
B: user\_id, col1
C: user\_id, col2
I want to do:
```
INSERT INTO B (user_id, col1) SELECT user_id,col1 from A;
INSERT INTO C (user_id,col2) SELECT user_id, col2 from A;
```
But i wa... | 2011/02/01 | [
"https://Stackoverflow.com/questions/4859774",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/277332/"
] | No, you can't insert into more than one table at the same time. `INSERT` syntax allows only a single table name.
<http://dev.mysql.com/doc/refman/5.5/en/insert.html>
>
> INSERT [LOW\_PRIORITY | DELAYED |
> HIGH\_PRIORITY] [IGNORE] [INTO]
> **tbl\_name** [...
>
>
> | Unless your tables are spread over multiple physical disks, then the speed of the select/insert is likely to be IO bound.
Trying to insert into two tables at once (even if it were possible) is likely to increase the total insert time as the disk will have to thrash more writing to your tables. |
4,859,774 | I have one table with 2 columns that i essentially want to split into 2 tables:
table A columns: user\_id, col1, col2
New tables:
B: user\_id, col1
C: user\_id, col2
I want to do:
```
INSERT INTO B (user_id, col1) SELECT user_id,col1 from A;
INSERT INTO C (user_id,col2) SELECT user_id, col2 from A;
```
But i wa... | 2011/02/01 | [
"https://Stackoverflow.com/questions/4859774",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/277332/"
] | Write a stored procedure to encapsulate the two inserts and protect the transaction. | Unless your tables are spread over multiple physical disks, then the speed of the select/insert is likely to be IO bound.
Trying to insert into two tables at once (even if it were possible) is likely to increase the total insert time as the disk will have to thrash more writing to your tables. |
4,859,774 | I have one table with 2 columns that i essentially want to split into 2 tables:
table A columns: user\_id, col1, col2
New tables:
B: user\_id, col1
C: user\_id, col2
I want to do:
```
INSERT INTO B (user_id, col1) SELECT user_id,col1 from A;
INSERT INTO C (user_id,col2) SELECT user_id, col2 from A;
```
But i wa... | 2011/02/01 | [
"https://Stackoverflow.com/questions/4859774",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/277332/"
] | If by "in one statement", you mean "atomically" - so that it can never happen that it's inserted into one table but not the other - then transactions are what you're looking for:
```
START TRANSACTION;
INSERT INTO B (user_id, col1) SELECT user_id,col1 from A;
INSERT INTO C (user_id,col2) SELECT user_id, col2 from A;
C... | Unless your tables are spread over multiple physical disks, then the speed of the select/insert is likely to be IO bound.
Trying to insert into two tables at once (even if it were possible) is likely to increase the total insert time as the disk will have to thrash more writing to your tables. |
34,432,977 | I am currently learming Go. I am readging the book *An Introduction to programming in go*
I am at the concurrency section and form what I understand I can see two way to define an infinite loop a go program.
```
func pinger(c chan string) {
for i := 0; ; i++ {
c <- "ping"
}
}
func printer(c chan str... | 2015/12/23 | [
"https://Stackoverflow.com/questions/34432977",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1440666/"
] | The `i` in the first loop is redundant; it's always best to get rid of unused variables therefore You should use a `for{}` in the pinger() function as well.
Here is a working example:
```
package main
import(
"time"
"fmt"
)
func main() {
c := make(chan string)
go printer(c)
go pinger(c)
time.Slee... | The "best" way is to write code that is easy to read and maintain. Your variable `i` in `func pinger` serves no purpose and someone stumbling upon that code later on will have a hard time understand what it's for.
I would just do
```
func pinger(c chan string) {
for {
c <- "ping"
}
}
``` |
4,323,802 | I am learning C++ and I am not clear about the destructor of a class. For example:
```
class A:
{
public:
int valueA;
private:
int valueB;
};
A:~A()
{
delete valueA;
delete valueB;
}
```
So, basically is it right to delete every declarations in the public and private? | 2010/12/01 | [
"https://Stackoverflow.com/questions/4323802",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/413174/"
] | No, you only need to `delete` that which has been allocated using `new`. Simple value types like `int`s never need to be deleted.
If your class *did* include data dynamically allocated using `new` either by the constructor or later by some other method then the destructor should typically de-allocate all of it, regard... | You can't delete ints only pointers.
Your destructor will have access to private members though so yes it could delete them if they were actually pointers (as well as the public ones).
Also just because a member of your class is a pointer, it doesn't mean your destructor is meant to delete it. C++ has a concept of "o... |
4,323,802 | I am learning C++ and I am not clear about the destructor of a class. For example:
```
class A:
{
public:
int valueA;
private:
int valueB;
};
A:~A()
{
delete valueA;
delete valueB;
}
```
So, basically is it right to delete every declarations in the public and private? | 2010/12/01 | [
"https://Stackoverflow.com/questions/4323802",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/413174/"
] | No, you only need to `delete` that which has been allocated using `new`. Simple value types like `int`s never need to be deleted.
If your class *did* include data dynamically allocated using `new` either by the constructor or later by some other method then the destructor should typically de-allocate all of it, regard... | `delete` is only intended for pointers. In the general sense, yes, you should delete all public and private variables for which memory you own (you've reserved inside your class and it's your responsibility to delete). |
4,323,802 | I am learning C++ and I am not clear about the destructor of a class. For example:
```
class A:
{
public:
int valueA;
private:
int valueB;
};
A:~A()
{
delete valueA;
delete valueB;
}
```
So, basically is it right to delete every declarations in the public and private? | 2010/12/01 | [
"https://Stackoverflow.com/questions/4323802",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/413174/"
] | No, you only need to `delete` that which has been allocated using `new`. Simple value types like `int`s never need to be deleted.
If your class *did* include data dynamically allocated using `new` either by the constructor or later by some other method then the destructor should typically de-allocate all of it, regard... | No,just delete some pointers that are constructed in your class. |
4,323,802 | I am learning C++ and I am not clear about the destructor of a class. For example:
```
class A:
{
public:
int valueA;
private:
int valueB;
};
A:~A()
{
delete valueA;
delete valueB;
}
```
So, basically is it right to delete every declarations in the public and private? | 2010/12/01 | [
"https://Stackoverflow.com/questions/4323802",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/413174/"
] | You can't delete ints only pointers.
Your destructor will have access to private members though so yes it could delete them if they were actually pointers (as well as the public ones).
Also just because a member of your class is a pointer, it doesn't mean your destructor is meant to delete it. C++ has a concept of "o... | No,just delete some pointers that are constructed in your class. |
4,323,802 | I am learning C++ and I am not clear about the destructor of a class. For example:
```
class A:
{
public:
int valueA;
private:
int valueB;
};
A:~A()
{
delete valueA;
delete valueB;
}
```
So, basically is it right to delete every declarations in the public and private? | 2010/12/01 | [
"https://Stackoverflow.com/questions/4323802",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/413174/"
] | `delete` is only intended for pointers. In the general sense, yes, you should delete all public and private variables for which memory you own (you've reserved inside your class and it's your responsibility to delete). | No,just delete some pointers that are constructed in your class. |
1,285,756 | I'm working on a Drupal 6 module where I use jquery (and more specifically, the $.ajax method) to retrieve a RSS feed from Yahoo's weather API. I decided against using the JFeed library because I need access to the elements with "yweather" prefix (and I couldn't find a way of accessing them via JFeed). I decided to use... | 2009/08/17 | [
"https://Stackoverflow.com/questions/1285756",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17640/"
] | Maybe just treating the the XML as data and using jQuery selectors to pull out what you want would work.
`$(xml).find("yweather:atmosphere").attr("humidity")` - you might need to use filter instead of find - what do you think? | Have you tried atmosphere[1] instead of 0 for Chrome and Safari? |
1,285,756 | I'm working on a Drupal 6 module where I use jquery (and more specifically, the $.ajax method) to retrieve a RSS feed from Yahoo's weather API. I decided against using the JFeed library because I need access to the elements with "yweather" prefix (and I couldn't find a way of accessing them via JFeed). I decided to use... | 2009/08/17 | [
"https://Stackoverflow.com/questions/1285756",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17640/"
] | I had the exact same problem, but came across the answer here:
<http://reference.sitepoint.com/javascript/Document/getElementsByTagName>
It has to do with the yweather namespace. Use getElementByTagNameNS function instead.
`var atmosphere = xml.getElementsByTagName("yweather:atmosphere");`
becomes
`var atmosphere ... | Have you tried atmosphere[1] instead of 0 for Chrome and Safari? |
52,865 | I have custom module, where after form\_submit, i do some calculations, and get result of those calculations in a variable.
After i hit "submit", i can output those calculations with **drupal\_set\_message** , but i would like to format results (array), and print it bellow the submit button. How can i output resulting... | 2012/12/11 | [
"https://drupal.stackexchange.com/questions/52865",
"https://drupal.stackexchange.com",
"https://drupal.stackexchange.com/users/5970/"
] | What you want to do is use something like `$form_state['temporary']` in your `myMod_submit` function. Set `$form_state['temporary'] = $someValue` and rebuild your form. You also want your `myMod_form` function to have a place holder for your data. When the form is loaded, simply check to see if your temp holder is popu... | If its a node form you can add an extra form submit handler to get the values Printed if not you probably have a submit function try [`print_r`](http://php.net/manual/en/function.print-r.php)
As its a form submit you should try [`exit`](http://php.net/manual/en/function.exit.php) OR [`die`](http://php.net/manual/en/f... |
52,865 | I have custom module, where after form\_submit, i do some calculations, and get result of those calculations in a variable.
After i hit "submit", i can output those calculations with **drupal\_set\_message** , but i would like to format results (array), and print it bellow the submit button. How can i output resulting... | 2012/12/11 | [
"https://drupal.stackexchange.com/questions/52865",
"https://drupal.stackexchange.com",
"https://drupal.stackexchange.com/users/5970/"
] | What you want to do is use something like `$form_state['temporary']` in your `myMod_submit` function. Set `$form_state['temporary'] = $someValue` and rebuild your form. You also want your `myMod_form` function to have a place holder for your data. When the form is loaded, simply check to see if your temp holder is popu... | A simple solution to access variables outside the function in other function is to make the scope of the variable as [global](http://php.net/manual/en/language.variables.scope.php#language.variables.scope.global).
```
function mymodule_form_submit($form, &$form_state) {
global $a;
$a=$b+$c;
}
```
And on subm... |
40,064,239 | Today a very weird bug (or so I believe) started occurring. Here is the piece of code:
```
let dateFormatter = NSDateFormatter()
dateFormatter.dateFormat = "yyyy-MM-dd"
let dateObj = dateFormatter.dateFromString(serviceDate)
dateFormatter.dateFormat = "dd/MM/yyyy"
let serviceDateBr = dateFormatter.stringFromDate(dateO... | 2016/10/15 | [
"https://Stackoverflow.com/questions/40064239",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6071143/"
] | I suppose you are living in Brasil.
On October 16, 2016 the daylight saving time changes and there is no 0:00. | I have tried on Xcode 7.3 and it seems work fine and the results
```
dateSQL: 2016-10-15, dateBR: 15/10/2016
```
cloud you provide more info? |
972,077 | we know that view state is easily get abused, but asp.net webform are heavily depending on this feature.
I want to know whether you disable viewstate by default, and ONLY add it wehn it's needed. Or you take the visual studio default, which actually enables viewstate by default. | 2009/06/09 | [
"https://Stackoverflow.com/questions/972077",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35829/"
] | I tend to take the default of having it on when doing web.forms.
But when writing my own user controls I disable it until I need it, or I find something doesn't work. I also monitor the size of the view state and when/if it gets too big I look at what the page is doing and change what I'm doing on the page. I.e. bind... | Personnaly, no. Eventually, to have it disabled will be the behaviour that you will want but most of the time, no. Also, I would do a manual ViewState optimization pass and disabled controls' ViewState that wouldn't need it if really necessary. It's better not to have the ViewState to worry about while you are in heavy... |
972,077 | we know that view state is easily get abused, but asp.net webform are heavily depending on this feature.
I want to know whether you disable viewstate by default, and ONLY add it wehn it's needed. Or you take the visual studio default, which actually enables viewstate by default. | 2009/06/09 | [
"https://Stackoverflow.com/questions/972077",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35829/"
] | I tend to take the default of having it on when doing web.forms.
But when writing my own user controls I disable it until I need it, or I find something doesn't work. I also monitor the size of the view state and when/if it gets too big I look at what the page is doing and change what I'm doing on the page. I.e. bind... | I go one step further, I've created a class that inherits from the Page class and override 2 functions
```
protected override void SavePageStateToPersistenceMedium(object viewState)
{
}
protected override object LoadPageStateFromPersistenceMedium()
{
return null;
}
```
Then have my page that requires the viewsta... |
972,077 | we know that view state is easily get abused, but asp.net webform are heavily depending on this feature.
I want to know whether you disable viewstate by default, and ONLY add it wehn it's needed. Or you take the visual studio default, which actually enables viewstate by default. | 2009/06/09 | [
"https://Stackoverflow.com/questions/972077",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35829/"
] | I tend to take the default of having it on when doing web.forms.
But when writing my own user controls I disable it until I need it, or I find something doesn't work. I also monitor the size of the view state and when/if it gets too big I look at what the page is doing and change what I'm doing on the page. I.e. bind... | As others have said, unless we are talking about a fairly static page, I tend to leave the ViewState on while developing, and begin selectively disabling it when the page works. That way, it's one less thing to worry about upfront.
You may find this interesting, in ASP.NET 4.0, we will have more efficient control ove... |
972,077 | we know that view state is easily get abused, but asp.net webform are heavily depending on this feature.
I want to know whether you disable viewstate by default, and ONLY add it wehn it's needed. Or you take the visual studio default, which actually enables viewstate by default. | 2009/06/09 | [
"https://Stackoverflow.com/questions/972077",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35829/"
] | I tend to take the default of having it on when doing web.forms.
But when writing my own user controls I disable it until I need it, or I find something doesn't work. I also monitor the size of the view state and when/if it gets too big I look at what the page is doing and change what I'm doing on the page. I.e. bind... | Turn off the ViewState by default by using a `<page>` element in the web.config. Using `EnableViewState="true"` in the `@Page` directive will no longer work once you disable the ViewState in the web.config. If you decide later that you need the ViewState for a specific page, you can turn it back on for just that page u... |
972,077 | we know that view state is easily get abused, but asp.net webform are heavily depending on this feature.
I want to know whether you disable viewstate by default, and ONLY add it wehn it's needed. Or you take the visual studio default, which actually enables viewstate by default. | 2009/06/09 | [
"https://Stackoverflow.com/questions/972077",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35829/"
] | Personnaly, no. Eventually, to have it disabled will be the behaviour that you will want but most of the time, no. Also, I would do a manual ViewState optimization pass and disabled controls' ViewState that wouldn't need it if really necessary. It's better not to have the ViewState to worry about while you are in heavy... | I go one step further, I've created a class that inherits from the Page class and override 2 functions
```
protected override void SavePageStateToPersistenceMedium(object viewState)
{
}
protected override object LoadPageStateFromPersistenceMedium()
{
return null;
}
```
Then have my page that requires the viewsta... |
972,077 | we know that view state is easily get abused, but asp.net webform are heavily depending on this feature.
I want to know whether you disable viewstate by default, and ONLY add it wehn it's needed. Or you take the visual studio default, which actually enables viewstate by default. | 2009/06/09 | [
"https://Stackoverflow.com/questions/972077",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35829/"
] | As others have said, unless we are talking about a fairly static page, I tend to leave the ViewState on while developing, and begin selectively disabling it when the page works. That way, it's one less thing to worry about upfront.
You may find this interesting, in ASP.NET 4.0, we will have more efficient control ove... | Personnaly, no. Eventually, to have it disabled will be the behaviour that you will want but most of the time, no. Also, I would do a manual ViewState optimization pass and disabled controls' ViewState that wouldn't need it if really necessary. It's better not to have the ViewState to worry about while you are in heavy... |
972,077 | we know that view state is easily get abused, but asp.net webform are heavily depending on this feature.
I want to know whether you disable viewstate by default, and ONLY add it wehn it's needed. Or you take the visual studio default, which actually enables viewstate by default. | 2009/06/09 | [
"https://Stackoverflow.com/questions/972077",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35829/"
] | As others have said, unless we are talking about a fairly static page, I tend to leave the ViewState on while developing, and begin selectively disabling it when the page works. That way, it's one less thing to worry about upfront.
You may find this interesting, in ASP.NET 4.0, we will have more efficient control ove... | I go one step further, I've created a class that inherits from the Page class and override 2 functions
```
protected override void SavePageStateToPersistenceMedium(object viewState)
{
}
protected override object LoadPageStateFromPersistenceMedium()
{
return null;
}
```
Then have my page that requires the viewsta... |
972,077 | we know that view state is easily get abused, but asp.net webform are heavily depending on this feature.
I want to know whether you disable viewstate by default, and ONLY add it wehn it's needed. Or you take the visual studio default, which actually enables viewstate by default. | 2009/06/09 | [
"https://Stackoverflow.com/questions/972077",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35829/"
] | Turn off the ViewState by default by using a `<page>` element in the web.config. Using `EnableViewState="true"` in the `@Page` directive will no longer work once you disable the ViewState in the web.config. If you decide later that you need the ViewState for a specific page, you can turn it back on for just that page u... | I go one step further, I've created a class that inherits from the Page class and override 2 functions
```
protected override void SavePageStateToPersistenceMedium(object viewState)
{
}
protected override object LoadPageStateFromPersistenceMedium()
{
return null;
}
```
Then have my page that requires the viewsta... |
972,077 | we know that view state is easily get abused, but asp.net webform are heavily depending on this feature.
I want to know whether you disable viewstate by default, and ONLY add it wehn it's needed. Or you take the visual studio default, which actually enables viewstate by default. | 2009/06/09 | [
"https://Stackoverflow.com/questions/972077",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35829/"
] | As others have said, unless we are talking about a fairly static page, I tend to leave the ViewState on while developing, and begin selectively disabling it when the page works. That way, it's one less thing to worry about upfront.
You may find this interesting, in ASP.NET 4.0, we will have more efficient control ove... | Turn off the ViewState by default by using a `<page>` element in the web.config. Using `EnableViewState="true"` in the `@Page` directive will no longer work once you disable the ViewState in the web.config. If you decide later that you need the ViewState for a specific page, you can turn it back on for just that page u... |
319,781 | This is my dmesg error:
```
[10678.069113] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
[10678.069119] ata1.00: irq_stat 0x40000001
[10678.069124] ata1.00: failed command: FLUSH CACHE EXT
[10678.069134] ata1.00: cmd ea/00:00:00:00:00/00:00:00:00:00/a0 tag 0
[10678.069136] res 51/04:00:34:cf:f3/00... | 2011/10/08 | [
"https://serverfault.com/questions/319781",
"https://serverfault.com",
"https://serverfault.com/users/74468/"
] | Your system is momentarily hanging because a (most likely) disk fault is causing all kinds of interrupt errors and ATA errors.
You *could* investigate further but if i were you, i'd just double check all the connections of that storage unit (which seems to be using an IDE 40pin or IDE 44pin flat cable) and if they're... | This error is most likely related to spread centrum clocking (SSC) out of boundery on the sata bus. there are far too many dwords accumulated during the slow period to practically buffer for release in the fast periods. However sata supports downspreading, there should be an option in your BIOS to turn SSC off and driv... |
319,781 | This is my dmesg error:
```
[10678.069113] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
[10678.069119] ata1.00: irq_stat 0x40000001
[10678.069124] ata1.00: failed command: FLUSH CACHE EXT
[10678.069134] ata1.00: cmd ea/00:00:00:00:00/00:00:00:00:00/a0 tag 0
[10678.069136] res 51/04:00:34:cf:f3/00... | 2011/10/08 | [
"https://serverfault.com/questions/319781",
"https://serverfault.com",
"https://serverfault.com/users/74468/"
] | I recently went through another scenario causing these problems:
After a server crash I had to replace some pieces of my hardware. After setting up the new HW, some of my disks, which worked perfectly well before, threw those messages.
Since I did not want to believe that all my disks failed at once, I digged a bit de... | This error is most likely related to spread centrum clocking (SSC) out of boundery on the sata bus. there are far too many dwords accumulated during the slow period to practically buffer for release in the fast periods. However sata supports downspreading, there should be an option in your BIOS to turn SSC off and driv... |
5,145,143 | I have a result table with one row and some columns:
```
column1 column2 column3 column4 column5 column6 column7 column8 column9
------------------------------------------------------------------------------------
1.4 2.2 3.4 6.57 5.6 9.7 67.6 3.4 5.9
```
... | 2011/02/28 | [
"https://Stackoverflow.com/questions/5145143",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/265519/"
] | If you are using SQL Server 2008, the you can use `UNPIVOT` and dynamic SQL so you don't have to write every column on your own (Before using dynamic SQL take a look at this [link](http://www.sommarskog.se/dynamic_sql.html)). Try this:
**UPDATED after comments**
```
DECLARE @Columns NVARCHAR(MAX)='', @Query NVARCHAR(... | You need to do a cross-tab query to transform from a row with many columns to a number of rows with a couple of columns, good example [in this article](http://www.simple-talk.com/sql/t-sql-programming/creating-cross-tab-queries-and-pivot-tables-in-sql/). Or in [Celko's fantastic Sql For Smarties Book](http://books.goog... |
27,737,104 | I have been working Augmented Reality for quite a few months. I have used third party tools like Unity/Vuforia to create augmented reality applications for android.
I would like to create my own framework in which I will create my own AR apps. Can someone guide me to right tutorials/links to achieve my target. On a hi... | 2015/01/02 | [
"https://Stackoverflow.com/questions/27737104",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4311444/"
] | You can get `administrator`'s SID by doing this:
```
wmic useraccount where name='administrator' get sid
```
This returns a result similar to this:
```
SID
S-1-5-21-4067126559-1921051348-1512596144-500
``` | Thanks to well known SIDs we know that an admin account is always going to start with S-1-5- and ends with -500 (<http://blogs.technet.com/b/heyscriptingguy/archive/2005/07/22/how-can-i-determine-if-the-local-administrator-account-has-been-renamed-on-a-computer.aspx>). This also ensures you are getting the admin accoun... |
11,900,991 | I have a normal HTTP page where in top header section I have a Sign in Link. On click of sign in link a twitter style Flyout sign in window appears, which should be a secured signin section.
Can any one suggest me how could I achieve loading a HTTPS page or section in a HTTP page.
Thanks | 2012/08/10 | [
"https://Stackoverflow.com/questions/11900991",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1590130/"
] | Your statement is false. Any number of synchronized blocks can execute in parallel as long as they don't contend for the same lock.
But if your question is about blocks contending for the same lock, then it is wrong to ask "why is it so" because that is the purpose of the whole concept. Programmers **need** a mutual e... | Two Threads can execute synchronized blocks simultaneously till the point they are not locking the same object.
In case the blocks are synchronized on different object... they can execute simultaneously.
```
synchronized(object1){
...
}
synchronized(object2){
...
}
```
**EDIT:**
`Please reason the output f... |
11,900,991 | I have a normal HTTP page where in top header section I have a Sign in Link. On click of sign in link a twitter style Flyout sign in window appears, which should be a secured signin section.
Can any one suggest me how could I achieve loading a HTTPS page or section in a HTTP page.
Thanks | 2012/08/10 | [
"https://Stackoverflow.com/questions/11900991",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1590130/"
] | Your statement is false. Any number of synchronized blocks can execute in parallel as long as they don't contend for the same lock.
But if your question is about blocks contending for the same lock, then it is wrong to ask "why is it so" because that is the purpose of the whole concept. Programmers **need** a mutual e... | That is the whole concept of synchronization, if you are taking a lock on an object (or a class), none of the other threads can access any synchronized blocks.
Example
```
Class A{
public void method1()
{
synchronized(this)//Block 1 taking lock on Object
{
//do something
}
}
public void method2()
{
synchroni... |
11,900,991 | I have a normal HTTP page where in top header section I have a Sign in Link. On click of sign in link a twitter style Flyout sign in window appears, which should be a secured signin section.
Can any one suggest me how could I achieve loading a HTTPS page or section in a HTTP page.
Thanks | 2012/08/10 | [
"https://Stackoverflow.com/questions/11900991",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1590130/"
] | Your statement is false. Any number of synchronized blocks can execute in parallel as long as they don't contend for the same lock.
But if your question is about blocks contending for the same lock, then it is wrong to ask "why is it so" because that is the purpose of the whole concept. Programmers **need** a mutual e... | This is not absolutely true. If you are dealing with locks on different objects then multiple threads can execute those blocks.
```
synchronized(obj1){
//your code here
}
synchronized(obj2){
//your code here
}
```
In above case one thread can execute first and second can execute second blo... |
11,900,991 | I have a normal HTTP page where in top header section I have a Sign in Link. On click of sign in link a twitter style Flyout sign in window appears, which should be a secured signin section.
Can any one suggest me how could I achieve loading a HTTPS page or section in a HTTP page.
Thanks | 2012/08/10 | [
"https://Stackoverflow.com/questions/11900991",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1590130/"
] | That is the whole concept of synchronization, if you are taking a lock on an object (or a class), none of the other threads can access any synchronized blocks.
Example
```
Class A{
public void method1()
{
synchronized(this)//Block 1 taking lock on Object
{
//do something
}
}
public void method2()
{
synchroni... | Two Threads can execute synchronized blocks simultaneously till the point they are not locking the same object.
In case the blocks are synchronized on different object... they can execute simultaneously.
```
synchronized(object1){
...
}
synchronized(object2){
...
}
```
**EDIT:**
`Please reason the output f... |
11,900,991 | I have a normal HTTP page where in top header section I have a Sign in Link. On click of sign in link a twitter style Flyout sign in window appears, which should be a secured signin section.
Can any one suggest me how could I achieve loading a HTTPS page or section in a HTTP page.
Thanks | 2012/08/10 | [
"https://Stackoverflow.com/questions/11900991",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1590130/"
] | That is the whole concept of synchronization, if you are taking a lock on an object (or a class), none of the other threads can access any synchronized blocks.
Example
```
Class A{
public void method1()
{
synchronized(this)//Block 1 taking lock on Object
{
//do something
}
}
public void method2()
{
synchroni... | This is not absolutely true. If you are dealing with locks on different objects then multiple threads can execute those blocks.
```
synchronized(obj1){
//your code here
}
synchronized(obj2){
//your code here
}
```
In above case one thread can execute first and second can execute second blo... |
12,207 | Well, 2016 is finally over. It's been a long year and our first regularly scheduled Bridge Movie Night season. [Can you believe that it's been two years](https://gaming.meta.stackexchange.com/questions/10160/bridge-movie-night)? Putting aside how old I'm making you all feeling, it's time to begin another year of Bridge... | 2017/01/09 | [
"https://gaming.meta.stackexchange.com/questions/12207",
"https://gaming.meta.stackexchange.com",
"https://gaming.meta.stackexchange.com/users/27975/"
] | Hell or High Water
==================
This is different from the movies we normally watch, but it looks good, and the critical reception was been positive. Essentially, in order to protect his family ranch and provide for his son a man teams up with his brother (who's an ex-con) to rob a bank. Summary courtesy of IMBD... | Idiocracy
=========
Relevant.
>
> Private Joe Bauers, the definition of "average American", is selected by the Pentagon to be the guinea pig for a top-secret hibernation program. Forgotten, he awakes five centuries in the future. He discovers a society so incredibly dumbed down that he's easily the most intelligent ... |
12,207 | Well, 2016 is finally over. It's been a long year and our first regularly scheduled Bridge Movie Night season. [Can you believe that it's been two years](https://gaming.meta.stackexchange.com/questions/10160/bridge-movie-night)? Putting aside how old I'm making you all feeling, it's time to begin another year of Bridge... | 2017/01/09 | [
"https://gaming.meta.stackexchange.com/questions/12207",
"https://gaming.meta.stackexchange.com",
"https://gaming.meta.stackexchange.com/users/27975/"
] | Kubo and the Two Strings
========================
This looks like a fun little movie good for the whole family, with some pretty solid animation. The critical reception to the movie was been really positive as well. Summary courtesy of google is:
>
> Young Kubo's peaceful existence comes crashing down when he accide... | District 9
==========
I see GnomeSlice's relevance, and raise more relevant. Idea shamelessly stolen. Sue me. In addition to being relevant, this is also a good movie.
>
> An extraterrestrial race forced to live in slum-like conditions on Earth suddenly finds a kindred spirit in a government agent who is exposed to ... |
12,207 | Well, 2016 is finally over. It's been a long year and our first regularly scheduled Bridge Movie Night season. [Can you believe that it's been two years](https://gaming.meta.stackexchange.com/questions/10160/bridge-movie-night)? Putting aside how old I'm making you all feeling, it's time to begin another year of Bridge... | 2017/01/09 | [
"https://gaming.meta.stackexchange.com/questions/12207",
"https://gaming.meta.stackexchange.com",
"https://gaming.meta.stackexchange.com/users/27975/"
] | Kubo and the Two Strings
========================
This looks like a fun little movie good for the whole family, with some pretty solid animation. The critical reception to the movie was been really positive as well. Summary courtesy of google is:
>
> Young Kubo's peaceful existence comes crashing down when he accide... | Idiocracy
=========
Relevant.
>
> Private Joe Bauers, the definition of "average American", is selected by the Pentagon to be the guinea pig for a top-secret hibernation program. Forgotten, he awakes five centuries in the future. He discovers a society so incredibly dumbed down that he's easily the most intelligent ... |
12,207 | Well, 2016 is finally over. It's been a long year and our first regularly scheduled Bridge Movie Night season. [Can you believe that it's been two years](https://gaming.meta.stackexchange.com/questions/10160/bridge-movie-night)? Putting aside how old I'm making you all feeling, it's time to begin another year of Bridge... | 2017/01/09 | [
"https://gaming.meta.stackexchange.com/questions/12207",
"https://gaming.meta.stackexchange.com",
"https://gaming.meta.stackexchange.com/users/27975/"
] | Hell or High Water
==================
This is different from the movies we normally watch, but it looks good, and the critical reception was been positive. Essentially, in order to protect his family ranch and provide for his son a man teams up with his brother (who's an ex-con) to rob a bank. Summary courtesy of IMBD... | District 9
==========
I see GnomeSlice's relevance, and raise more relevant. Idea shamelessly stolen. Sue me. In addition to being relevant, this is also a good movie.
>
> An extraterrestrial race forced to live in slum-like conditions on Earth suddenly finds a kindred spirit in a government agent who is exposed to ... |
12,207 | Well, 2016 is finally over. It's been a long year and our first regularly scheduled Bridge Movie Night season. [Can you believe that it's been two years](https://gaming.meta.stackexchange.com/questions/10160/bridge-movie-night)? Putting aside how old I'm making you all feeling, it's time to begin another year of Bridge... | 2017/01/09 | [
"https://gaming.meta.stackexchange.com/questions/12207",
"https://gaming.meta.stackexchange.com",
"https://gaming.meta.stackexchange.com/users/27975/"
] | Kubo and the Two Strings
========================
This looks like a fun little movie good for the whole family, with some pretty solid animation. The critical reception to the movie was been really positive as well. Summary courtesy of google is:
>
> Young Kubo's peaceful existence comes crashing down when he accide... | Viva Amiga
==========
I'm not sure if documentaries are up for consideration, but this one covers the rise and fall of the Commodore Amiga and the culture that developed around it, which I think would be interesting to people here.
From IMDB:
>
> In a world of green on black, they dared to dream in color. 1985: An ... |
12,207 | Well, 2016 is finally over. It's been a long year and our first regularly scheduled Bridge Movie Night season. [Can you believe that it's been two years](https://gaming.meta.stackexchange.com/questions/10160/bridge-movie-night)? Putting aside how old I'm making you all feeling, it's time to begin another year of Bridge... | 2017/01/09 | [
"https://gaming.meta.stackexchange.com/questions/12207",
"https://gaming.meta.stackexchange.com",
"https://gaming.meta.stackexchange.com/users/27975/"
] | Hell or High Water
==================
This is different from the movies we normally watch, but it looks good, and the critical reception was been positive. Essentially, in order to protect his family ranch and provide for his son a man teams up with his brother (who's an ex-con) to rob a bank. Summary courtesy of IMBD... | Viva Amiga
==========
I'm not sure if documentaries are up for consideration, but this one covers the rise and fall of the Commodore Amiga and the culture that developed around it, which I think would be interesting to people here.
From IMDB:
>
> In a world of green on black, they dared to dream in color. 1985: An ... |
12,207 | Well, 2016 is finally over. It's been a long year and our first regularly scheduled Bridge Movie Night season. [Can you believe that it's been two years](https://gaming.meta.stackexchange.com/questions/10160/bridge-movie-night)? Putting aside how old I'm making you all feeling, it's time to begin another year of Bridge... | 2017/01/09 | [
"https://gaming.meta.stackexchange.com/questions/12207",
"https://gaming.meta.stackexchange.com",
"https://gaming.meta.stackexchange.com/users/27975/"
] | Movie Night Decision:
=====================
[](https://i.stack.imgur.com/r8e1c.jpg)
### Kubo and the Two Strings
The scheduling poll has resulted as follows:
[](https://i.stack.img... | Viva Amiga
==========
I'm not sure if documentaries are up for consideration, but this one covers the rise and fall of the Commodore Amiga and the culture that developed around it, which I think would be interesting to people here.
From IMDB:
>
> In a world of green on black, they dared to dream in color. 1985: An ... |
12,207 | Well, 2016 is finally over. It's been a long year and our first regularly scheduled Bridge Movie Night season. [Can you believe that it's been two years](https://gaming.meta.stackexchange.com/questions/10160/bridge-movie-night)? Putting aside how old I'm making you all feeling, it's time to begin another year of Bridge... | 2017/01/09 | [
"https://gaming.meta.stackexchange.com/questions/12207",
"https://gaming.meta.stackexchange.com",
"https://gaming.meta.stackexchange.com/users/27975/"
] | Hell or High Water
==================
This is different from the movies we normally watch, but it looks good, and the critical reception was been positive. Essentially, in order to protect his family ranch and provide for his son a man teams up with his brother (who's an ex-con) to rob a bank. Summary courtesy of IMBD... | Old spy movie based in WW2 starring Richard Burton and Clint Eastwood. I watched it back in the day and thought it was pretty interesting and had some pretty good acting.
>
> Allied agents stage a daring raid on a castle where the Nazis are holding an American General prisoner... but that's not all that's really goin... |
12,207 | Well, 2016 is finally over. It's been a long year and our first regularly scheduled Bridge Movie Night season. [Can you believe that it's been two years](https://gaming.meta.stackexchange.com/questions/10160/bridge-movie-night)? Putting aside how old I'm making you all feeling, it's time to begin another year of Bridge... | 2017/01/09 | [
"https://gaming.meta.stackexchange.com/questions/12207",
"https://gaming.meta.stackexchange.com",
"https://gaming.meta.stackexchange.com/users/27975/"
] | Movie Night Decision:
=====================
[](https://i.stack.imgur.com/r8e1c.jpg)
### Kubo and the Two Strings
The scheduling poll has resulted as follows:
[](https://i.stack.img... | Old spy movie based in WW2 starring Richard Burton and Clint Eastwood. I watched it back in the day and thought it was pretty interesting and had some pretty good acting.
>
> Allied agents stage a daring raid on a castle where the Nazis are holding an American General prisoner... but that's not all that's really goin... |
12,207 | Well, 2016 is finally over. It's been a long year and our first regularly scheduled Bridge Movie Night season. [Can you believe that it's been two years](https://gaming.meta.stackexchange.com/questions/10160/bridge-movie-night)? Putting aside how old I'm making you all feeling, it's time to begin another year of Bridge... | 2017/01/09 | [
"https://gaming.meta.stackexchange.com/questions/12207",
"https://gaming.meta.stackexchange.com",
"https://gaming.meta.stackexchange.com/users/27975/"
] | Movie Night Decision:
=====================
[](https://i.stack.imgur.com/r8e1c.jpg)
### Kubo and the Two Strings
The scheduling poll has resulted as follows:
[](https://i.stack.img... | District 9
==========
I see GnomeSlice's relevance, and raise more relevant. Idea shamelessly stolen. Sue me. In addition to being relevant, this is also a good movie.
>
> An extraterrestrial race forced to live in slum-like conditions on Earth suddenly finds a kindred spirit in a government agent who is exposed to ... |
35,584,981 | do you know the minesweeper game of windows . well , the following problem is the same , you will input m and n ...
```
0 < n,m <= 100
n : colons , m : rows
```
>
> input :
>
>
>
```
4 4
*...
....
.*..
....
```
>
> output :
>
>
>
```
*100
2210
1*10
1110
```
and , that is my code .
```
#include <stdio.... | 2016/02/23 | [
"https://Stackoverflow.com/questions/35584981",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5334741/"
] | ```
scanf("%d", ...);
```
leaves whitespace (the ENTER) in the input buffer. Then
```
scanf("%c", ...);
```
reads that whitespace into the variable.
You need to ignore the whitespace before (and during) reading the stars and dots.
Use
```
scanf(" %c", ...);
// ^^^ ignore whitespace
```
*Note: the conversio... | In this line you can go out of bounds:
```
if(r >= 0 && c >= 0 && ms[r][c] != '*')
ms[r][c] += 1 ;
```
You only test if *r* and *c* are not negative, but you should also test they are not too large.
The thing becomes more complicated because you have global variables *m* and *n* which are the d... |
5,248 | **Which layout works best for your users?**:
* Field labels on the side of fields
* Field labels above the data entry fields
* What about prompt text, format tips, examples and validation or error messages?
I've done many online forms over the past few years. I have "pre-designed" patterns and layouts I've used over... | 2010/05/28 | [
"https://ux.stackexchange.com/questions/5248",
"https://ux.stackexchange.com",
"https://ux.stackexchange.com/users/1061/"
] | Luke Wroblewski has some good articles about form design. I recommend you these two:
[Web Application Form Design](http://www.lukew.com/resources/articles/web_forms.html)
[Primary & Secondary Actions in Web Forms](http://www.lukew.com/resources/articles/psactions.asp)
Or do you need something even more specific? | [Matteo Penzo’s study](http://www.uxmatters.com/mt/archives/2006/07/label-placement-in-forms.php) provides the best evidence to date for the advantages of placing the label above the field control. However, the [merits of this continue to be debated](http://www.uxmatters.com/mt/archives/2010/01/label-alignment-in-long-... |
5,248 | **Which layout works best for your users?**:
* Field labels on the side of fields
* Field labels above the data entry fields
* What about prompt text, format tips, examples and validation or error messages?
I've done many online forms over the past few years. I have "pre-designed" patterns and layouts I've used over... | 2010/05/28 | [
"https://ux.stackexchange.com/questions/5248",
"https://ux.stackexchange.com",
"https://ux.stackexchange.com/users/1061/"
] | Luke Wroblewski has some good articles about form design. I recommend you these two:
[Web Application Form Design](http://www.lukew.com/resources/articles/web_forms.html)
[Primary & Secondary Actions in Web Forms](http://www.lukew.com/resources/articles/psactions.asp)
Or do you need something even more specific? | Look at this <http://www.csskarma.com/lab/plugin_slidinglabels/>
found it just the other day, impressed me to tears. |
5,248 | **Which layout works best for your users?**:
* Field labels on the side of fields
* Field labels above the data entry fields
* What about prompt text, format tips, examples and validation or error messages?
I've done many online forms over the past few years. I have "pre-designed" patterns and layouts I've used over... | 2010/05/28 | [
"https://ux.stackexchange.com/questions/5248",
"https://ux.stackexchange.com",
"https://ux.stackexchange.com/users/1061/"
] | Luke Wroblewski has some good articles about form design. I recommend you these two:
[Web Application Form Design](http://www.lukew.com/resources/articles/web_forms.html)
[Primary & Secondary Actions in Web Forms](http://www.lukew.com/resources/articles/psactions.asp)
Or do you need something even more specific? | Another option to consider is Infield Top Aligned Labels.
>
> Most websites today either use top aligned or infield form labels
> because they aren’t aware of a better way.
>
>
>
<http://uxmovement.com/forms/why-infield-top-aligned-form-labels-are-quickest-to-scan/> |
5,248 | **Which layout works best for your users?**:
* Field labels on the side of fields
* Field labels above the data entry fields
* What about prompt text, format tips, examples and validation or error messages?
I've done many online forms over the past few years. I have "pre-designed" patterns and layouts I've used over... | 2010/05/28 | [
"https://ux.stackexchange.com/questions/5248",
"https://ux.stackexchange.com",
"https://ux.stackexchange.com/users/1061/"
] | [Matteo Penzo’s study](http://www.uxmatters.com/mt/archives/2006/07/label-placement-in-forms.php) provides the best evidence to date for the advantages of placing the label above the field control. However, the [merits of this continue to be debated](http://www.uxmatters.com/mt/archives/2010/01/label-alignment-in-long-... | Look at this <http://www.csskarma.com/lab/plugin_slidinglabels/>
found it just the other day, impressed me to tears. |
5,248 | **Which layout works best for your users?**:
* Field labels on the side of fields
* Field labels above the data entry fields
* What about prompt text, format tips, examples and validation or error messages?
I've done many online forms over the past few years. I have "pre-designed" patterns and layouts I've used over... | 2010/05/28 | [
"https://ux.stackexchange.com/questions/5248",
"https://ux.stackexchange.com",
"https://ux.stackexchange.com/users/1061/"
] | [Matteo Penzo’s study](http://www.uxmatters.com/mt/archives/2006/07/label-placement-in-forms.php) provides the best evidence to date for the advantages of placing the label above the field control. However, the [merits of this continue to be debated](http://www.uxmatters.com/mt/archives/2010/01/label-alignment-in-long-... | Another option to consider is Infield Top Aligned Labels.
>
> Most websites today either use top aligned or infield form labels
> because they aren’t aware of a better way.
>
>
>
<http://uxmovement.com/forms/why-infield-top-aligned-form-labels-are-quickest-to-scan/> |
5,248 | **Which layout works best for your users?**:
* Field labels on the side of fields
* Field labels above the data entry fields
* What about prompt text, format tips, examples and validation or error messages?
I've done many online forms over the past few years. I have "pre-designed" patterns and layouts I've used over... | 2010/05/28 | [
"https://ux.stackexchange.com/questions/5248",
"https://ux.stackexchange.com",
"https://ux.stackexchange.com/users/1061/"
] | Look at this <http://www.csskarma.com/lab/plugin_slidinglabels/>
found it just the other day, impressed me to tears. | Another option to consider is Infield Top Aligned Labels.
>
> Most websites today either use top aligned or infield form labels
> because they aren’t aware of a better way.
>
>
>
<http://uxmovement.com/forms/why-infield-top-aligned-form-labels-are-quickest-to-scan/> |
1,147,796 | $Z\_1, Z\_2$ are $\mathrm{Bin}(n,\frac{1}{2})$ and independent.
Show that $Y=Z\_1+Z\_2$ and $X=|Z\_1-Z\_2|$ are uncorrelated but not independent.
My attempt:
$$P(Y=k\_Y)=\binom{2n}{k\_Y}\left(\frac{1}{4}\right)^n$$ $\forall k\_Y \in [0,2n]$
$$P(X=k\_X)=2(\frac{1}{4})^n\sum\_{j=0}^{j=n-k\_X}\binom n j \binom n {j... | 2015/02/14 | [
"https://math.stackexchange.com/questions/1147796",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/100051/"
] | First show that the distribution of $(X,Y)$ is the same as that of $(X,2n-Y)$. Hence
$$\operatorname{cov}(X,Y) = \operatorname{cov}(X,2n-Y) = \operatorname{cov}(X,-Y) = -\operatorname{cov}(X,Y)$$
and uncorrelatedness follows. | As Michael Hardy suggested let's show that the distribution of $(Y,X)$ are the same as $(2n-Y,X)$
$$P(Y=k\_Y,X=k\_X)=2(\frac{1}{4})^n\binom n {(k\_Y-k\_X)/2}\binom n {(k\_X+k\_Y)/2}\text{ if }k\_X \in [0,n] ,k\_Y \in [0,2n] ,k\_Y \ge k\_X$$ and $k\_X±k\_Y$ are even, $0$ otherwise.
$$P(2n-Y=k\_Y,X=k\_X)=P(Y=2n-k\_Y,X=... |
51,389,809 | I have this angular code to get the datas
```
$http({
header: 'content-type:application/json',
method:'GET',
url: 'https://us-central1-****-*****.cloudfunctions.net/**/GetAll****',
}).then(function(messages){
$scope.member = messages.data.****
})
```
the error in the console is
```
Failed to lo... | 2018/07/17 | [
"https://Stackoverflow.com/questions/51389809",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | Just add these lines before sending the response in your cloud function, as you need to enable **CORS**:
```
function foo(req, res) {
res.set('Access-Control-Allow-Origin', "*");
res.set('Access-Control-Allow-Methods', 'GET, POST');
res.set('Access-Control-Allow-Headers: Origin, Content-Type, X-Auth-Token'); /... | I had the same problem but when i was trying. Normally this error happens because of when you try to access "http" to "https" so the browser blocks for security reasons. What you have to do is, use cors like below
Step 1 : first install cors with npm in the firebase functions.
Step 2 : After installing the cors, writ... |
459,592 | I have winXP LibreOffice and MS office installed.
How do I make LibreOffice the default opening program for all of its know document types?
I know that I can change one extension at a time. But is there a way to change all of them?
I want LibreOffice to open .doc .xls and ... (I do not know all of them) | 2012/08/09 | [
"https://superuser.com/questions/459592",
"https://superuser.com",
"https://superuser.com/users/114476/"
] | from [here](http://user.services.openoffice.org/en/forum/viewtopic.php?f=15&t=42104):
please try a 'Custom Setup', see
→ Installation of LibreOffice 3.3 on Windows
<http://www.libreoffice.org/get-help/installation/windows/>
especially:
- Dialog Box #6: Choice of Typical or Custom Installation
- Dialog B... | 'Modify' worked for me. Thanks!
On Windows Vista:
* click START
* Settings
* Control Panel
* Programs
* Programs and Features
* Uninstall a Program
* Select the right program from the list
* click 'change'
* follow instructions. |
459,592 | I have winXP LibreOffice and MS office installed.
How do I make LibreOffice the default opening program for all of its know document types?
I know that I can change one extension at a time. But is there a way to change all of them?
I want LibreOffice to open .doc .xls and ... (I do not know all of them) | 2012/08/09 | [
"https://superuser.com/questions/459592",
"https://superuser.com",
"https://superuser.com/users/114476/"
] | from [here](http://user.services.openoffice.org/en/forum/viewtopic.php?f=15&t=42104):
please try a 'Custom Setup', see
→ Installation of LibreOffice 3.3 on Windows
<http://www.libreoffice.org/get-help/installation/windows/>
especially:
- Dialog Box #6: Choice of Typical or Custom Installation
- Dialog B... | To make office libre the default reader for all your documents:
Right click any document, tap Properties. A box opens that enables you to change the opener to office libre. Do this for a couple documents and OL magically becomes the default opener for all docs of the same type This works for windows 10 at least. |
459,592 | I have winXP LibreOffice and MS office installed.
How do I make LibreOffice the default opening program for all of its know document types?
I know that I can change one extension at a time. But is there a way to change all of them?
I want LibreOffice to open .doc .xls and ... (I do not know all of them) | 2012/08/09 | [
"https://superuser.com/questions/459592",
"https://superuser.com",
"https://superuser.com/users/114476/"
] | from [here](http://user.services.openoffice.org/en/forum/viewtopic.php?f=15&t=42104):
please try a 'Custom Setup', see
→ Installation of LibreOffice 3.3 on Windows
<http://www.libreoffice.org/get-help/installation/windows/>
especially:
- Dialog Box #6: Choice of Typical or Custom Installation
- Dialog B... | For me it worked to just use the "default apps" in windows system settings.
just hit start and type default apps |
459,592 | I have winXP LibreOffice and MS office installed.
How do I make LibreOffice the default opening program for all of its know document types?
I know that I can change one extension at a time. But is there a way to change all of them?
I want LibreOffice to open .doc .xls and ... (I do not know all of them) | 2012/08/09 | [
"https://superuser.com/questions/459592",
"https://superuser.com",
"https://superuser.com/users/114476/"
] | 'Modify' worked for me. Thanks!
On Windows Vista:
* click START
* Settings
* Control Panel
* Programs
* Programs and Features
* Uninstall a Program
* Select the right program from the list
* click 'change'
* follow instructions. | To make office libre the default reader for all your documents:
Right click any document, tap Properties. A box opens that enables you to change the opener to office libre. Do this for a couple documents and OL magically becomes the default opener for all docs of the same type This works for windows 10 at least. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.