qid int64 1 74.7M | question stringlengths 15 58.3k | date stringlengths 10 10 | metadata list | response_j stringlengths 4 30.2k | response_k stringlengths 11 36.5k |
|---|---|---|---|---|---|
9,465,759 | All our projects in our SLN shares a VersionInfo.cs which holds the project version number
```
[assembly: AssemblyVersion("0.0.1.0")]
[assembly: AssemblyFileVersion("0.0.1.0")]
```
I want to staticly define the 3 first parts of the version number and the last part i want to be the working copy SVN revision.
Step nu... | 2012/02/27 | [
"https://Stackoverflow.com/questions/9465759",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/548048/"
] | >
> Is there an easy way of getting the working copy revision from cmd?
>
>
>
There is an executable called `svnversion.exe` which prints on standard output the revision. If you ensure this is in your `PATH` you could call this.
>
> To insert that number into the VersionInfo.cs file
>
>
>
You could generate ... | You could try using [Keyword Substitutes](http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html) to replace the number as you're committing. They have this as an example:
```
$Rev$: Revision of last commit
$Author$: Author of last commit
$Date$: Date of last commit
``` |
9,465,759 | All our projects in our SLN shares a VersionInfo.cs which holds the project version number
```
[assembly: AssemblyVersion("0.0.1.0")]
[assembly: AssemblyFileVersion("0.0.1.0")]
```
I want to staticly define the 3 first parts of the version number and the last part i want to be the working copy SVN revision.
Step nu... | 2012/02/27 | [
"https://Stackoverflow.com/questions/9465759",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/548048/"
] | >
> Is there an easy way of getting the working copy revision from cmd?
>
>
>
There is an executable called `svnversion.exe` which prints on standard output the revision. If you ensure this is in your `PATH` you could call this.
>
> To insert that number into the VersionInfo.cs file
>
>
>
You could generate ... | * If it's VisualStudio, it's Windows
* If it's Windows, you can use SubWCRev from TortoiseSVN
1. Write template of VersionInfo.cs into repository instead of final file, there changeable part of data replaced by (appropriate) SubWCRev-keyword
2. On every build-process run SubWCRev, which write final file with actual ... |
9,465,759 | All our projects in our SLN shares a VersionInfo.cs which holds the project version number
```
[assembly: AssemblyVersion("0.0.1.0")]
[assembly: AssemblyFileVersion("0.0.1.0")]
```
I want to staticly define the 3 first parts of the version number and the last part i want to be the working copy SVN revision.
Step nu... | 2012/02/27 | [
"https://Stackoverflow.com/questions/9465759",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/548048/"
] | >
> Is there an easy way of getting the working copy revision from cmd?
>
>
>
There is an executable called `svnversion.exe` which prints on standard output the revision. If you ensure this is in your `PATH` you could call this.
>
> To insert that number into the VersionInfo.cs file
>
>
>
You could generate ... | Download [MSBuild Community Task](https://github.com/loresoft/msbuildtasks/downloads) and install it.
Open your .csproj and at the end (before closure `</project>` tag)
Paste the following code (don't change the `<Import>` tag):
```
<Import Project="$(MSBuildExtensionsPath)\MSBuildCommunityTasks\MSBuild.Community.Ta... |
9,465,759 | All our projects in our SLN shares a VersionInfo.cs which holds the project version number
```
[assembly: AssemblyVersion("0.0.1.0")]
[assembly: AssemblyFileVersion("0.0.1.0")]
```
I want to staticly define the 3 first parts of the version number and the last part i want to be the working copy SVN revision.
Step nu... | 2012/02/27 | [
"https://Stackoverflow.com/questions/9465759",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/548048/"
] | * If it's VisualStudio, it's Windows
* If it's Windows, you can use SubWCRev from TortoiseSVN
1. Write template of VersionInfo.cs into repository instead of final file, there changeable part of data replaced by (appropriate) SubWCRev-keyword
2. On every build-process run SubWCRev, which write final file with actual ... | You could try using [Keyword Substitutes](http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html) to replace the number as you're committing. They have this as an example:
```
$Rev$: Revision of last commit
$Author$: Author of last commit
$Date$: Date of last commit
``` |
9,465,759 | All our projects in our SLN shares a VersionInfo.cs which holds the project version number
```
[assembly: AssemblyVersion("0.0.1.0")]
[assembly: AssemblyFileVersion("0.0.1.0")]
```
I want to staticly define the 3 first parts of the version number and the last part i want to be the working copy SVN revision.
Step nu... | 2012/02/27 | [
"https://Stackoverflow.com/questions/9465759",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/548048/"
] | hmjd:s solution was only half there, if you write to the file every time you build all projects refering to the Versionfile needs to rebuild even if nothing has changed, I altered the script to only write to the file if its a new revision number
```
@ECHO off
FOR /F "tokens=1,2 delims=:M" %%A in ('svnversion ../ -c')... | You could try using [Keyword Substitutes](http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html) to replace the number as you're committing. They have this as an example:
```
$Rev$: Revision of last commit
$Author$: Author of last commit
$Date$: Date of last commit
``` |
9,465,759 | All our projects in our SLN shares a VersionInfo.cs which holds the project version number
```
[assembly: AssemblyVersion("0.0.1.0")]
[assembly: AssemblyFileVersion("0.0.1.0")]
```
I want to staticly define the 3 first parts of the version number and the last part i want to be the working copy SVN revision.
Step nu... | 2012/02/27 | [
"https://Stackoverflow.com/questions/9465759",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/548048/"
] | Download [MSBuild Community Task](https://github.com/loresoft/msbuildtasks/downloads) and install it.
Open your .csproj and at the end (before closure `</project>` tag)
Paste the following code (don't change the `<Import>` tag):
```
<Import Project="$(MSBuildExtensionsPath)\MSBuildCommunityTasks\MSBuild.Community.Ta... | You could try using [Keyword Substitutes](http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html) to replace the number as you're committing. They have this as an example:
```
$Rev$: Revision of last commit
$Author$: Author of last commit
$Date$: Date of last commit
``` |
9,465,759 | All our projects in our SLN shares a VersionInfo.cs which holds the project version number
```
[assembly: AssemblyVersion("0.0.1.0")]
[assembly: AssemblyFileVersion("0.0.1.0")]
```
I want to staticly define the 3 first parts of the version number and the last part i want to be the working copy SVN revision.
Step nu... | 2012/02/27 | [
"https://Stackoverflow.com/questions/9465759",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/548048/"
] | hmjd:s solution was only half there, if you write to the file every time you build all projects refering to the Versionfile needs to rebuild even if nothing has changed, I altered the script to only write to the file if its a new revision number
```
@ECHO off
FOR /F "tokens=1,2 delims=:M" %%A in ('svnversion ../ -c')... | * If it's VisualStudio, it's Windows
* If it's Windows, you can use SubWCRev from TortoiseSVN
1. Write template of VersionInfo.cs into repository instead of final file, there changeable part of data replaced by (appropriate) SubWCRev-keyword
2. On every build-process run SubWCRev, which write final file with actual ... |
9,465,759 | All our projects in our SLN shares a VersionInfo.cs which holds the project version number
```
[assembly: AssemblyVersion("0.0.1.0")]
[assembly: AssemblyFileVersion("0.0.1.0")]
```
I want to staticly define the 3 first parts of the version number and the last part i want to be the working copy SVN revision.
Step nu... | 2012/02/27 | [
"https://Stackoverflow.com/questions/9465759",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/548048/"
] | hmjd:s solution was only half there, if you write to the file every time you build all projects refering to the Versionfile needs to rebuild even if nothing has changed, I altered the script to only write to the file if its a new revision number
```
@ECHO off
FOR /F "tokens=1,2 delims=:M" %%A in ('svnversion ../ -c')... | Download [MSBuild Community Task](https://github.com/loresoft/msbuildtasks/downloads) and install it.
Open your .csproj and at the end (before closure `</project>` tag)
Paste the following code (don't change the `<Import>` tag):
```
<Import Project="$(MSBuildExtensionsPath)\MSBuildCommunityTasks\MSBuild.Community.Ta... |
55,533,917 | I am working on Outlook add-in which would pull the list of pre-defined categories from shared mailbox. User then assign each email from shared mailbox to those categories.
My issue is I can get access to all categories linked to account using
```
Outlook.Application application = new Outlook.Application();
Outlook.... | 2019/04/05 | [
"https://Stackoverflow.com/questions/55533917",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10980235/"
] | Categories are stored in a hidden message with the message class of "IPM.Configuration.CategoryList" in the store's Calendar folder. You can see it in [OutlookSpy](http://www.dimastr.com/outspy) if you go to the shared Calendar folder and click the IMAPIFolder button, then go to the "Associated Contents" tab.
That hid... | Following is the code to get Categories of selected folder.
```
public void LoadCategories()
{
CategoriesCombo.Items.Clear();
Outlook.Application application = new Outlook.Application();
Outlook.NameSpace ns = application.GetNamespace("MAPI");
Outlook.MAPIFolder selectedFolder = app... |
30,672,940 | I have a JTable. One column in the JTable is assigned an extended TableCellEditor that displays an extended JComboBox.
There is a fixed list of 100 String objects that populates the comboboxes.
The challenge:
* Design the JComboBoxes so that any selection is unique relative to other boxes? That is, if "A" is slected... | 2015/06/05 | [
"https://Stackoverflow.com/questions/30672940",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4887545/"
] | >
> When a new room is added to the table, the combobox it contains should auto-populate to the first available list item.
>
>
>
When you add a new row of data to the TableModel you must add the values of all columns in the row. This should not be a function of the editor. The editor allows you to change values in... | I was able to get around my problem by creating an abstract superclass for my combobox that can be accessed from the tablemodel extension when it sets up its data. |
32,545,465 | Can you help me what is the usage of `$` in the following regular expression; I don't understand what is the usage? Does it mean just the end of string?
```
p.match(/^\.\.?($|\/)/)
``` | 2015/09/13 | [
"https://Stackoverflow.com/questions/32545465",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | Let's deconstruct your regex (I removed the backslashes that are used to escape characters for the sake of simplification, we will use the dots and slashes as literal here) so we're left with :
`^..?($|/)`
* `^` means the beginning of a line
* `.` then we must have a dot
* `.?` then we may or may not have a second do... | It doesn't mean anything special.
But because $ is allowed in identifier names, many Javascript libraries have taken to using $ as the "central" interface to them, or at least as a shortcut for accessing their functionality.
For example, if you're using jQuery and you say $("div"), this is a call to the $ function wi... |
32,545,465 | Can you help me what is the usage of `$` in the following regular expression; I don't understand what is the usage? Does it mean just the end of string?
```
p.match(/^\.\.?($|\/)/)
``` | 2015/09/13 | [
"https://Stackoverflow.com/questions/32545465",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | To answer your question: yes, the $ in this regular expression means the end of string.
The following part:
```
($|\/)
```
means end of string or '/'.
In terms of string matching, this regular expression matches:
* .
* ..
* Any string begin with './'
* Any string begin with '../'
The first 2 strings are matched ... | It doesn't mean anything special.
But because $ is allowed in identifier names, many Javascript libraries have taken to using $ as the "central" interface to them, or at least as a shortcut for accessing their functionality.
For example, if you're using jQuery and you say $("div"), this is a call to the $ function wi... |
32,545,465 | Can you help me what is the usage of `$` in the following regular expression; I don't understand what is the usage? Does it mean just the end of string?
```
p.match(/^\.\.?($|\/)/)
``` | 2015/09/13 | [
"https://Stackoverflow.com/questions/32545465",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | Let's deconstruct your regex (I removed the backslashes that are used to escape characters for the sake of simplification, we will use the dots and slashes as literal here) so we're left with :
`^..?($|/)`
* `^` means the beginning of a line
* `.` then we must have a dot
* `.?` then we may or may not have a second do... | To answer your question: yes, the $ in this regular expression means the end of string.
The following part:
```
($|\/)
```
means end of string or '/'.
In terms of string matching, this regular expression matches:
* .
* ..
* Any string begin with './'
* Any string begin with '../'
The first 2 strings are matched ... |
2,833,358 | I'm seeing the following error in my application:
>
> (4446,0xa0bc94e0) malloc: **\* error for object 0x1d153000: pointer
> being freed was not allocated
> \*** set a breakpoint in malloc\_error\_break to debug
>
>
>
What does this error mean?
I am trying to display 2000 addresses in a table view, and am seein... | 2010/05/14 | [
"https://Stackoverflow.com/questions/2833358",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/139205/"
] | The application is giving you a hint as to how to proceed: set a breakpoint in `malloc_error_break`. When you get there, inspect the application's backtrace. You'll probably find that you're over-releasing an object or holding on to a stale pointer. | Two odd things:
```
obdata = [AddressBookData alloc];
```
You're not calling init on this object - in obj-c you usually have alloc-init together.
```
obdata = [arrayLocalAddressbook objectAtIndex:indexPath.row];
```
Then you're immediately assigning something else to this variable, so the first AddressBookData is... |
5,991,981 | Everyone says that a destructor should be virtual when at least one of class methods is virtual.
My questions is, isn't it correct to say that a destructor should be virtual when using upcasting ?
```
class A {
public:
~A(){
cout << "Destructor in A" << endl;
}
};
class B: public A
{
public:
... | 2011/05/13 | [
"https://Stackoverflow.com/questions/5991981",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/340554/"
] | You need a virtual destructor if you ever delete a derived object via a base pointer. That's it, in a nutshell. | You should always declare a virtual destructor when one of the class methods is virtual if you are deleting a pointer to a derived class, but the pointer type is the base class then base class must have a virtual destructor in this case or the compiler doesn't (or isn't supposed to) know what destructor it should call ... |
5,991,981 | Everyone says that a destructor should be virtual when at least one of class methods is virtual.
My questions is, isn't it correct to say that a destructor should be virtual when using upcasting ?
```
class A {
public:
~A(){
cout << "Destructor in A" << endl;
}
};
class B: public A
{
public:
... | 2011/05/13 | [
"https://Stackoverflow.com/questions/5991981",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/340554/"
] | >
> a destructor should be virtual when at least one of class methods is virtual
>
>
>
This is a rule of thumb which arises from the fact that when you use virtual functions you are using runtime polymorphism and are more likely to run into situations were you need to destroy a class that may be of a derived type ... | You should always declare a virtual destructor when one of the class methods is virtual if you are deleting a pointer to a derived class, but the pointer type is the base class then base class must have a virtual destructor in this case or the compiler doesn't (or isn't supposed to) know what destructor it should call ... |
5,991,981 | Everyone says that a destructor should be virtual when at least one of class methods is virtual.
My questions is, isn't it correct to say that a destructor should be virtual when using upcasting ?
```
class A {
public:
~A(){
cout << "Destructor in A" << endl;
}
};
class B: public A
{
public:
... | 2011/05/13 | [
"https://Stackoverflow.com/questions/5991981",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/340554/"
] | You should always declare a virtual destructor when one of the class methods is virtual if you are deleting a pointer to a derived class, but the pointer type is the base class then base class must have a virtual destructor in this case or the compiler doesn't (or isn't supposed to) know what destructor it should call ... | It's incorrect:
```
shared_ptr<A> ptr = make_shared<B>();
```
does up cast and deletes `B` correctly. Just follow @Neil Butterworth's answer. |
5,991,981 | Everyone says that a destructor should be virtual when at least one of class methods is virtual.
My questions is, isn't it correct to say that a destructor should be virtual when using upcasting ?
```
class A {
public:
~A(){
cout << "Destructor in A" << endl;
}
};
class B: public A
{
public:
... | 2011/05/13 | [
"https://Stackoverflow.com/questions/5991981",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/340554/"
] | You need a virtual destructor if you ever delete a derived object via a base pointer. That's it, in a nutshell. | The destructor should be made `virtual` if you are doing something useful (memory deallocation etc.) in the derived class destructor.
By the way, It's **advisable** (not mandatory) to have virtual destructor when a `class` contains a `virtual` method. |
5,991,981 | Everyone says that a destructor should be virtual when at least one of class methods is virtual.
My questions is, isn't it correct to say that a destructor should be virtual when using upcasting ?
```
class A {
public:
~A(){
cout << "Destructor in A" << endl;
}
};
class B: public A
{
public:
... | 2011/05/13 | [
"https://Stackoverflow.com/questions/5991981",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/340554/"
] | >
> a destructor should be virtual when at least one of class methods is virtual
>
>
>
This is a rule of thumb which arises from the fact that when you use virtual functions you are using runtime polymorphism and are more likely to run into situations were you need to destroy a class that may be of a derived type ... | The destructor should be made `virtual` if you are doing something useful (memory deallocation etc.) in the derived class destructor.
By the way, It's **advisable** (not mandatory) to have virtual destructor when a `class` contains a `virtual` method. |
5,991,981 | Everyone says that a destructor should be virtual when at least one of class methods is virtual.
My questions is, isn't it correct to say that a destructor should be virtual when using upcasting ?
```
class A {
public:
~A(){
cout << "Destructor in A" << endl;
}
};
class B: public A
{
public:
... | 2011/05/13 | [
"https://Stackoverflow.com/questions/5991981",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/340554/"
] | The destructor should be made `virtual` if you are doing something useful (memory deallocation etc.) in the derived class destructor.
By the way, It's **advisable** (not mandatory) to have virtual destructor when a `class` contains a `virtual` method. | It's incorrect:
```
shared_ptr<A> ptr = make_shared<B>();
```
does up cast and deletes `B` correctly. Just follow @Neil Butterworth's answer. |
5,991,981 | Everyone says that a destructor should be virtual when at least one of class methods is virtual.
My questions is, isn't it correct to say that a destructor should be virtual when using upcasting ?
```
class A {
public:
~A(){
cout << "Destructor in A" << endl;
}
};
class B: public A
{
public:
... | 2011/05/13 | [
"https://Stackoverflow.com/questions/5991981",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/340554/"
] | You need a virtual destructor if you ever delete a derived object via a base pointer. That's it, in a nutshell. | It's incorrect:
```
shared_ptr<A> ptr = make_shared<B>();
```
does up cast and deletes `B` correctly. Just follow @Neil Butterworth's answer. |
5,991,981 | Everyone says that a destructor should be virtual when at least one of class methods is virtual.
My questions is, isn't it correct to say that a destructor should be virtual when using upcasting ?
```
class A {
public:
~A(){
cout << "Destructor in A" << endl;
}
};
class B: public A
{
public:
... | 2011/05/13 | [
"https://Stackoverflow.com/questions/5991981",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/340554/"
] | >
> a destructor should be virtual when at least one of class methods is virtual
>
>
>
This is a rule of thumb which arises from the fact that when you use virtual functions you are using runtime polymorphism and are more likely to run into situations were you need to destroy a class that may be of a derived type ... | It's incorrect:
```
shared_ptr<A> ptr = make_shared<B>();
```
does up cast and deletes `B` correctly. Just follow @Neil Butterworth's answer. |
659,123 | According to [this answer](https://physics.stackexchange.com/a/659078/305718) and [this](https://physics.stackexchange.com/a/658939/305718) ; When an object moves **very slowly** under the influence of an external force, why it can be treated as being in equilibrium? Is this a valid assumption?
---
For reference:
Th... | 2021/08/13 | [
"https://physics.stackexchange.com/questions/659123",
"https://physics.stackexchange.com",
"https://physics.stackexchange.com/users/305718/"
] | >
> But the universe expands faster than light-speed, and this expansion was caused by the big bang. Doesn't this demonstrate that the speed of light cannot be the speed of causality?
>
>
>
No, because the big bang happened everywhere. So there is no spatial distance between any point in the universe and the big b... | Your mistake is to have assumed that the expansion of the Universe is in itself a cause of something else. Nothing is 'caused' by the expansion. |
47,640,401 | I have 2 web sites that communicate with REST API on my server side.
The main web site has the main domain and the second website has a sub domain.
for example **www.example.com** and **www.admin.example.com**
i have a REST API on the **www.example.com** root directory and when the **www.example.com** address to the A... | 2017/12/04 | [
"https://Stackoverflow.com/questions/47640401",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1528238/"
] | Previously you have to either write your own code or other hacking methods, but now Microsoft ships an official IIS extension, called [IIS CORS Module](https://blogs.iis.net/iisteam/introducing-iis-cors-1-0).
You can configure CORS responses easily after installing it. | First you should set the Access-Control-Allow-Origin just in one place. I would recommend to do that in your php controller. Otherwise you might run into that "The 'Access-Control-Allow-Origin' header contains multiple values '\*, \*, but only one is allowed."
Second if you are doing a GET request everything is OK but... |
37,293 | I know initially it seems like only George R. R. Martin or a magician can answer my question.
What am I asking actually is, are the names and surnames used in the books real? Are "Theon" and "Tywin" real names that people use in some country? Are there real family names like Lannister or Stark?
Since Westeros seems a... | 2013/06/23 | [
"https://scifi.stackexchange.com/questions/37293",
"https://scifi.stackexchange.com",
"https://scifi.stackexchange.com/users/13253/"
] | The only source I could find about how George names his characters is [this](http://www.westeros.org/Citadel/SSM/Entry/1316). Relevant part quoted below:
>
> Coming up with the names for the characters is very tough. They can't
> be too weird (with like apostrophies and stuff) and they can't be too
> "real", like F... | The name Stark means strength. If you are wondering Stark is an old and important family in the United States. Look at Vermont, Brigadier General Stark of American Revolutionary war as well as Aaron Stark of Connecticut. |
37,293 | I know initially it seems like only George R. R. Martin or a magician can answer my question.
What am I asking actually is, are the names and surnames used in the books real? Are "Theon" and "Tywin" real names that people use in some country? Are there real family names like Lannister or Stark?
Since Westeros seems a... | 2013/06/23 | [
"https://scifi.stackexchange.com/questions/37293",
"https://scifi.stackexchange.com",
"https://scifi.stackexchange.com/users/13253/"
] | The only source I could find about how George names his characters is [this](http://www.westeros.org/Citadel/SSM/Entry/1316). Relevant part quoted below:
>
> Coming up with the names for the characters is very tough. They can't
> be too weird (with like apostrophies and stuff) and they can't be too
> "real", like F... | GRRM has answered this question himself when asked it in an interview alongside Robin Hobb.
The following is a summary from the interview as given by [@Möoz on a related answer](https://scifi.stackexchange.com/a/92690/58193):
* He dislikes most Fantasy names (e.g. Riznakh)
* He has tried many methods of name creation... |
37,293 | I know initially it seems like only George R. R. Martin or a magician can answer my question.
What am I asking actually is, are the names and surnames used in the books real? Are "Theon" and "Tywin" real names that people use in some country? Are there real family names like Lannister or Stark?
Since Westeros seems a... | 2013/06/23 | [
"https://scifi.stackexchange.com/questions/37293",
"https://scifi.stackexchange.com",
"https://scifi.stackexchange.com/users/13253/"
] | GRRM has answered this question himself when asked it in an interview alongside Robin Hobb.
The following is a summary from the interview as given by [@Möoz on a related answer](https://scifi.stackexchange.com/a/92690/58193):
* He dislikes most Fantasy names (e.g. Riznakh)
* He has tried many methods of name creation... | The name Stark means strength. If you are wondering Stark is an old and important family in the United States. Look at Vermont, Brigadier General Stark of American Revolutionary war as well as Aaron Stark of Connecticut. |
19,266,680 | I have 2 classes , CLASS locationdata is a private member of CLASS PointTwoD .
CLASS locationdata
```
class locationdata
{
public:
locationdata(); //default constructor
locationdata(string,int,int,float,float); //constructor
//setter
void set_sunType(string);
void set_noOfEarthLikePlanets(int);
void set_n... | 2013/10/09 | [
"https://Stackoverflow.com/questions/19266680",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1832057/"
] | This has nothing to do with private/public. You're using the pointer-access operator `->` to access the member of a class; you should be using `.` instead:
```
string sunType = l.get_sunType();
``` | This is not an issue of access privilege, `get_sunType()` is `public` already.
`l` is not a pointer, you could access it by `.` operator
update:
```
string sunType = l->get_sunType(); // this line generates an error
// ^^
```
to:
```
string sunType = l.get_sunType();
// ^
``` |
19,266,680 | I have 2 classes , CLASS locationdata is a private member of CLASS PointTwoD .
CLASS locationdata
```
class locationdata
{
public:
locationdata(); //default constructor
locationdata(string,int,int,float,float); //constructor
//setter
void set_sunType(string);
void set_noOfEarthLikePlanets(int);
void set_n... | 2013/10/09 | [
"https://Stackoverflow.com/questions/19266680",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1832057/"
] | This is not an issue of access privilege, `get_sunType()` is `public` already.
`l` is not a pointer, you could access it by `.` operator
update:
```
string sunType = l->get_sunType(); // this line generates an error
// ^^
```
to:
```
string sunType = l.get_sunType();
// ^
``` | The operator `->` has no implementation in locationdata.
You need to use `.` operator:
`string sunType = l.get_sunType();`
Razvan. |
19,266,680 | I have 2 classes , CLASS locationdata is a private member of CLASS PointTwoD .
CLASS locationdata
```
class locationdata
{
public:
locationdata(); //default constructor
locationdata(string,int,int,float,float); //constructor
//setter
void set_sunType(string);
void set_noOfEarthLikePlanets(int);
void set_n... | 2013/10/09 | [
"https://Stackoverflow.com/questions/19266680",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1832057/"
] | This is not an issue of access privilege, `get_sunType()` is `public` already.
`l` is not a pointer, you could access it by `.` operator
update:
```
string sunType = l->get_sunType(); // this line generates an error
// ^^
```
to:
```
string sunType = l.get_sunType();
// ^
``` | As per your code, p1 is not a reference.
Try
```
p1.get_locationdata()
```
instead of
```
p1->get_locationdata()
``` |
19,266,680 | I have 2 classes , CLASS locationdata is a private member of CLASS PointTwoD .
CLASS locationdata
```
class locationdata
{
public:
locationdata(); //default constructor
locationdata(string,int,int,float,float); //constructor
//setter
void set_sunType(string);
void set_noOfEarthLikePlanets(int);
void set_n... | 2013/10/09 | [
"https://Stackoverflow.com/questions/19266680",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1832057/"
] | This has nothing to do with private/public. You're using the pointer-access operator `->` to access the member of a class; you should be using `.` instead:
```
string sunType = l.get_sunType();
``` | The operator `->` has no implementation in locationdata.
You need to use `.` operator:
`string sunType = l.get_sunType();`
Razvan. |
19,266,680 | I have 2 classes , CLASS locationdata is a private member of CLASS PointTwoD .
CLASS locationdata
```
class locationdata
{
public:
locationdata(); //default constructor
locationdata(string,int,int,float,float); //constructor
//setter
void set_sunType(string);
void set_noOfEarthLikePlanets(int);
void set_n... | 2013/10/09 | [
"https://Stackoverflow.com/questions/19266680",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1832057/"
] | This has nothing to do with private/public. You're using the pointer-access operator `->` to access the member of a class; you should be using `.` instead:
```
string sunType = l.get_sunType();
``` | As per your code, p1 is not a reference.
Try
```
p1.get_locationdata()
```
instead of
```
p1->get_locationdata()
``` |
19,266,680 | I have 2 classes , CLASS locationdata is a private member of CLASS PointTwoD .
CLASS locationdata
```
class locationdata
{
public:
locationdata(); //default constructor
locationdata(string,int,int,float,float); //constructor
//setter
void set_sunType(string);
void set_noOfEarthLikePlanets(int);
void set_n... | 2013/10/09 | [
"https://Stackoverflow.com/questions/19266680",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1832057/"
] | The operator `->` has no implementation in locationdata.
You need to use `.` operator:
`string sunType = l.get_sunType();`
Razvan. | As per your code, p1 is not a reference.
Try
```
p1.get_locationdata()
```
instead of
```
p1->get_locationdata()
``` |
21,624,849 | I'm currently writing a simple space war game, (a screenshot is available here : <http://prntscr.com/2q9juj> )
The enemy ships are coming from the right side of the screen randomly. I apply a `bullet.hitTestObject(enemyShip)` to check whether a bullet touches an enemy ship or not.
If it hits, I need to remove both b... | 2014/02/07 | [
"https://Stackoverflow.com/questions/21624849",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3251141/"
] | Use `removeChild' like so, (I don't know how you have added them to display list though)
```
for each(var bullet:Bullet_ in bullets)
{
bullet.x+=2;
for each(var enemyShip:Enemy in enemies)
{
if(bullet.hitTestObject(enemyShip))
{
removeChild(bullet)... | ***I think i can solve it, i do not know... but try this change:***
```
for each(var bullet:Bullet_ in bullets){
bullet.x+=2;
for each(var enemyShip:Enemy in enemies) {
if (bullet.hitTestObject(enemyShip)) {
enemyShip.parent.removeChild(enemyShip);
bullet.paren... |
38,856,279 | I am trying to do small application in mvc 5. In this I have 3 models say Organisation model, Product model and Package model.
Organisation model:
```
namespace Own.Models
{
public class OrganisationViewModel
{
[Key]
public int OrganisationID { get; set; }
[Required(ErrorMessage = "Please enter Organ... | 2016/08/09 | [
"https://Stackoverflow.com/questions/38856279",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6695797/"
] | So I was able to figure out the issue here.
Turns out that border-box setting was being over-ridden by an entry buried in another section of the CSS. It was added 10px of padding around everything, which was causing the text to be displayed out of the area, thus creating the illusion that nothing was being typed.
I... | Add this to the top of your stylesheet:
```
html,
body {
box-sizing: border-box;
}
*,
*:before,
*:after {
box-sizing: inherit;
}
```
Remove this:
```
*, input[type="search"] {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: padding-box; }
```
If you have anymore `box-s... |
18,806,361 | i have a situation where i want to add unique constaint only when there is a certain value in other field
for example the table is
ID
CategoryName
Name
Value
CategoryID
the constraint will be on ID, CategoryName and Name only is CategoryID is 0
is it possible? | 2013/09/14 | [
"https://Stackoverflow.com/questions/18806361",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/466195/"
] | ```
CREATE UNIQUE NONCLUSTERED INDEX [UQ_ID_CategoryName_Name, CategoryName, Name] ON TableName
(
ID, CategoryName, Name
)
WHERE (CategoryID = 0)
``` | One way to achieve this would be to have two tables, one for `categoryId` 0 and one for the rest. You can define the uniqueness constraint on the first table, and use a view and union any time you want to use them as a single table. |
18,806,361 | i have a situation where i want to add unique constaint only when there is a certain value in other field
for example the table is
ID
CategoryName
Name
Value
CategoryID
the constraint will be on ID, CategoryName and Name only is CategoryID is 0
is it possible? | 2013/09/14 | [
"https://Stackoverflow.com/questions/18806361",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/466195/"
] | ```
CREATE UNIQUE NONCLUSTERED INDEX [UQ_ID_CategoryName_Name, CategoryName, Name] ON TableName
(
ID, CategoryName, Name
)
WHERE (CategoryID = 0)
``` | Create a filtered unique index on `Name` for `CategoryID = 0`. |
36,593,056 | I searched lot of post related to my questions on stack overflow and other developer sites but i am unable to find exact and fit answer for that. I need to create section view of table with corner radius with out third party framework , similar like Grouped tableview styled in iOS 6.
Please help !!!
Want to like this... | 2016/04/13 | [
"https://Stackoverflow.com/questions/36593056",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1169264/"
] | Try following:
```
-(UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
{
UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, tableView.frame.size.width, 50)];
[view setBackgroundColor:[UIColor orangeColor]];
[view fnForMakingRoundCorners];
UILabel *label =... | I think one of the option will be adding a containerView(customView) inside the section header and do the corner radius settings on it.
```
UITableViewHeaderFooterView *footerView = [tableView dequeueReusableHeaderFooterViewWithIdentifier:@"identifier"];
UIView *customView = (UIView *)[footerView viewWithTag:888];
i... |
36,593,056 | I searched lot of post related to my questions on stack overflow and other developer sites but i am unable to find exact and fit answer for that. I need to create section view of table with corner radius with out third party framework , similar like Grouped tableview styled in iOS 6.
Please help !!!
Want to like this... | 2016/04/13 | [
"https://Stackoverflow.com/questions/36593056",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1169264/"
] | Helping out here: I believe you are looking for an effect where the entire section corner is rounded (please see the attached screen-shot).
You can get this by setting **tableview style** to **.insetGrouped**
<https://developer.apple.com/documentation/uikit/uitableview/style/insetgrouped>
[![enter image description ... | I think one of the option will be adding a containerView(customView) inside the section header and do the corner radius settings on it.
```
UITableViewHeaderFooterView *footerView = [tableView dequeueReusableHeaderFooterViewWithIdentifier:@"identifier"];
UIView *customView = (UIView *)[footerView viewWithTag:888];
i... |
36,593,056 | I searched lot of post related to my questions on stack overflow and other developer sites but i am unable to find exact and fit answer for that. I need to create section view of table with corner radius with out third party framework , similar like Grouped tableview styled in iOS 6.
Please help !!!
Want to like this... | 2016/04/13 | [
"https://Stackoverflow.com/questions/36593056",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1169264/"
] | Try following:
```
-(UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
{
UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, tableView.frame.size.width, 50)];
[view setBackgroundColor:[UIColor orangeColor]];
[view fnForMakingRoundCorners];
UILabel *label =... | add this for table view
```
func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath) {
let cornerRadius: CGFloat = 10
cell.backgroundColor = .clear
let layer = CAShapeLayer()
let pathRef = CGMutablePath()
let bounds = cell.... |
36,593,056 | I searched lot of post related to my questions on stack overflow and other developer sites but i am unable to find exact and fit answer for that. I need to create section view of table with corner radius with out third party framework , similar like Grouped tableview styled in iOS 6.
Please help !!!
Want to like this... | 2016/04/13 | [
"https://Stackoverflow.com/questions/36593056",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1169264/"
] | Helping out here: I believe you are looking for an effect where the entire section corner is rounded (please see the attached screen-shot).
You can get this by setting **tableview style** to **.insetGrouped**
<https://developer.apple.com/documentation/uikit/uitableview/style/insetgrouped>
[![enter image description ... | Try following:
```
-(UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
{
UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, tableView.frame.size.width, 50)];
[view setBackgroundColor:[UIColor orangeColor]];
[view fnForMakingRoundCorners];
UILabel *label =... |
36,593,056 | I searched lot of post related to my questions on stack overflow and other developer sites but i am unable to find exact and fit answer for that. I need to create section view of table with corner radius with out third party framework , similar like Grouped tableview styled in iOS 6.
Please help !!!
Want to like this... | 2016/04/13 | [
"https://Stackoverflow.com/questions/36593056",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1169264/"
] | Helping out here: I believe you are looking for an effect where the entire section corner is rounded (please see the attached screen-shot).
You can get this by setting **tableview style** to **.insetGrouped**
<https://developer.apple.com/documentation/uikit/uitableview/style/insetgrouped>
[![enter image description ... | add this for table view
```
func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath) {
let cornerRadius: CGFloat = 10
cell.backgroundColor = .clear
let layer = CAShapeLayer()
let pathRef = CGMutablePath()
let bounds = cell.... |
23,708,040 | I want to have the `class="children"` centered in the middle of the page container preferably using css only but if it is not possible you can provide the best js answer. Currently it is just a normal drop down but I want to use it as a mega menu. If I have to add another div structure that's fine.
```
<div class="mai... | 2014/05/17 | [
"https://Stackoverflow.com/questions/23708040",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1461158/"
] | ```
<div class="main-navigation-wrapper">
<div class="nav pull-left">
<div class="menu-main-menu-container">
<ul id="menu" class="menu no-dropdown" style="margin: auto;">
<li class="menu-item four">
<a href="#">Blog</a>
<div class="children">
-... | Give it Width something like 50% to you outer div and set margin:0 auto;
```
style="margin:0 auto;"
``` |
23,708,040 | I want to have the `class="children"` centered in the middle of the page container preferably using css only but if it is not possible you can provide the best js answer. Currently it is just a normal drop down but I want to use it as a mega menu. If I have to add another div structure that's fine.
```
<div class="mai... | 2014/05/17 | [
"https://Stackoverflow.com/questions/23708040",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1461158/"
] | The simplest would be to add this CSS to horizontaly center your mega menu items :
*CSS :*
```
#menu li, .second-menu li {
display:inline-block;
position:relative;
}
#menu > li.mega_width {
display:inline-block;
position:static;
}
#menu > li.mega_width > .children {
position:absolute;
left:0;
... | You can made certain modifications in your code. Like to avoid scrollbar in children div you have to use width:auto , and some position settings. Please do check with the code below. It may help you.
```
.menu-main-menu-container ul#menu .children {
left: 0;
position: absolute;
width: auto;
}
.menu-main-m... |
23,708,040 | I want to have the `class="children"` centered in the middle of the page container preferably using css only but if it is not possible you can provide the best js answer. Currently it is just a normal drop down but I want to use it as a mega menu. If I have to add another div structure that's fine.
```
<div class="mai... | 2014/05/17 | [
"https://Stackoverflow.com/questions/23708040",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1461158/"
] | The simplest would be to add this CSS to horizontaly center your mega menu items :
*CSS :*
```
#menu li, .second-menu li {
display:inline-block;
position:relative;
}
#menu > li.mega_width {
display:inline-block;
position:static;
}
#menu > li.mega_width > .children {
position:absolute;
left:0;
... | ```
<div class="main-navigation-wrapper">
<div class="nav pull-left">
<div class="menu-main-menu-container">
<ul id="menu" class="menu no-dropdown" style="margin: auto;">
<li class="menu-item four">
<a href="#">Blog</a>
<div class="children">
-... |
23,708,040 | I want to have the `class="children"` centered in the middle of the page container preferably using css only but if it is not possible you can provide the best js answer. Currently it is just a normal drop down but I want to use it as a mega menu. If I have to add another div structure that's fine.
```
<div class="mai... | 2014/05/17 | [
"https://Stackoverflow.com/questions/23708040",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1461158/"
] | The simplest would be to add this CSS to horizontaly center your mega menu items :
*CSS :*
```
#menu li, .second-menu li {
display:inline-block;
position:relative;
}
#menu > li.mega_width {
display:inline-block;
position:static;
}
#menu > li.mega_width > .children {
position:absolute;
left:0;
... | I took some liberty and added some CSS in your existing code. Those are -
```
.main-navigation-wrapper{width: 1140px; margin: 0 auto; background: #E5F0FF;}
#menu{text-align:center; padding:0px; position:relative;}
#menu li.mega-three.fullwidth{position:static;}
#menu .mega-three div.children{left:0px; box-sizing:bor... |
23,708,040 | I want to have the `class="children"` centered in the middle of the page container preferably using css only but if it is not possible you can provide the best js answer. Currently it is just a normal drop down but I want to use it as a mega menu. If I have to add another div structure that's fine.
```
<div class="mai... | 2014/05/17 | [
"https://Stackoverflow.com/questions/23708040",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1461158/"
] | Do a small change in your code:
```
<div class="main-navigation-wrapper">
<div class="nav pull-left">
<div class="menu-main-menu-container">
<ul id="menu" class="menu no-dropdown" style="margin: auto;">
<li class="menu-item">
<a href="#">Blog</a>
... | You can made certain modifications in your code. Like to avoid scrollbar in children div you have to use width:auto , and some position settings. Please do check with the code below. It may help you.
```
.menu-main-menu-container ul#menu .children {
left: 0;
position: absolute;
width: auto;
}
.menu-main-m... |
23,708,040 | I want to have the `class="children"` centered in the middle of the page container preferably using css only but if it is not possible you can provide the best js answer. Currently it is just a normal drop down but I want to use it as a mega menu. If I have to add another div structure that's fine.
```
<div class="mai... | 2014/05/17 | [
"https://Stackoverflow.com/questions/23708040",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1461158/"
] | The simplest would be to add this CSS to horizontaly center your mega menu items :
*CSS :*
```
#menu li, .second-menu li {
display:inline-block;
position:relative;
}
#menu > li.mega_width {
display:inline-block;
position:static;
}
#menu > li.mega_width > .children {
position:absolute;
left:0;
... | Give it Width something like 50% to you outer div and set margin:0 auto;
```
style="margin:0 auto;"
``` |
23,708,040 | I want to have the `class="children"` centered in the middle of the page container preferably using css only but if it is not possible you can provide the best js answer. Currently it is just a normal drop down but I want to use it as a mega menu. If I have to add another div structure that's fine.
```
<div class="mai... | 2014/05/17 | [
"https://Stackoverflow.com/questions/23708040",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1461158/"
] | I took some liberty and added some CSS in your existing code. Those are -
```
.main-navigation-wrapper{width: 1140px; margin: 0 auto; background: #E5F0FF;}
#menu{text-align:center; padding:0px; position:relative;}
#menu li.mega-three.fullwidth{position:static;}
#menu .mega-three div.children{left:0px; box-sizing:bor... | Give it Width something like 50% to you outer div and set margin:0 auto;
```
style="margin:0 auto;"
``` |
23,708,040 | I want to have the `class="children"` centered in the middle of the page container preferably using css only but if it is not possible you can provide the best js answer. Currently it is just a normal drop down but I want to use it as a mega menu. If I have to add another div structure that's fine.
```
<div class="mai... | 2014/05/17 | [
"https://Stackoverflow.com/questions/23708040",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1461158/"
] | The simplest would be to add this CSS to horizontaly center your mega menu items :
*CSS :*
```
#menu li, .second-menu li {
display:inline-block;
position:relative;
}
#menu > li.mega_width {
display:inline-block;
position:static;
}
#menu > li.mega_width > .children {
position:absolute;
left:0;
... | Here is a rough example of what you're looking for:
<http://jsfiddle.net/m8Vj4/>
A couple main tips:
1. `position:absolute;` / `position:relative;`
`position:absolute` will position something relative to its nearest parent that has `position:relative`. In your case you are positioning the `.children` elements relati... |
23,708,040 | I want to have the `class="children"` centered in the middle of the page container preferably using css only but if it is not possible you can provide the best js answer. Currently it is just a normal drop down but I want to use it as a mega menu. If I have to add another div structure that's fine.
```
<div class="mai... | 2014/05/17 | [
"https://Stackoverflow.com/questions/23708040",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1461158/"
] | Do a small change in your code:
```
<div class="main-navigation-wrapper">
<div class="nav pull-left">
<div class="menu-main-menu-container">
<ul id="menu" class="menu no-dropdown" style="margin: auto;">
<li class="menu-item">
<a href="#">Blog</a>
... | Give it Width something like 50% to you outer div and set margin:0 auto;
```
style="margin:0 auto;"
``` |
23,708,040 | I want to have the `class="children"` centered in the middle of the page container preferably using css only but if it is not possible you can provide the best js answer. Currently it is just a normal drop down but I want to use it as a mega menu. If I have to add another div structure that's fine.
```
<div class="mai... | 2014/05/17 | [
"https://Stackoverflow.com/questions/23708040",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1461158/"
] | Do a small change in your code:
```
<div class="main-navigation-wrapper">
<div class="nav pull-left">
<div class="menu-main-menu-container">
<ul id="menu" class="menu no-dropdown" style="margin: auto;">
<li class="menu-item">
<a href="#">Blog</a>
... | Here is a rough example of what you're looking for:
<http://jsfiddle.net/m8Vj4/>
A couple main tips:
1. `position:absolute;` / `position:relative;`
`position:absolute` will position something relative to its nearest parent that has `position:relative`. In your case you are positioning the `.children` elements relati... |
4,282,596 | $B\_{i} $ is a standard Brownian motion.
$$E[\prod\_{i=1}^3 B\_{i}]$$
I know how to find $E[B\_{1}B\_{2}]$, but how do I find the expectation of this one?
$E[B\_{1}(B\_{2}-B\_{1}+B\_{1})(B\_{3}-B{2}+B\_{2})]=E[B\_{1}(B\_{2}-B\_{1})(B\_{3}-B\_{2})+B\_{1}B\_{2}(B\_{2}-B\_{1})+B\_{1}^2B\_{2}+B\_{1}^2(B\_{3}-B\_{2})]=E[B... | 2021/10/20 | [
"https://math.stackexchange.com/questions/4282596",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/766750/"
] | What you did is fine. Here is a conceptual overkill. First as $f(x)$ has no root in $\mathbb F\_3$, if it's reducible, all its roots must be in $\mathbb F\_9$, and the Galois group $G(\mathbb F\_9/\mathbb F\_3) = \{1, \rho\}$ where $\rho(x) = x^3$ is the Frobenius element. In particular, if $x\in \mathbb F\_9\setminus ... | Assume that we have a factorization
$$x^4 + x + e= (x^2 + a x + b)(x^2 + c x + d)$$
Looking at the coefficient of $x^3$ we get $c=-a$. Now the coefficient of $x^2$ on RHS is $-a^2 + b + d$ so $d = a^2- b$. Now we get
$$(x^2 + a x + b)(x^2 - a x + (a^2 - b))= x^4 + (a^3 - 2 a b)x + a^2 b - b^2 $$
Now we get the syste... |
170,088 | Using ArcPy, how do you check if two feature classes have the same spatial reference?
Just checking if the two are equal doesn't work:
```
>>> import arcpy
>>> fc1 = r"C:\Users\e1b8\Desktop\E1B8\GIS_Stackexchange\data.gdb\test"
>>> sr1 = arcpy.Describe (fc1).spatialReference
>>> sr2 = arcpy.Describe (fc1).spatialRef... | 2015/11/12 | [
"https://gis.stackexchange.com/questions/170088",
"https://gis.stackexchange.com",
"https://gis.stackexchange.com/users/35230/"
] | Judging from comments, you might have it already :)
You could compare the Well-Known Text (WKT) descriptions of the spatial references.
```
sr1 = arcpy.Describe(dataset1).spatialReference
sr2 = arcpy.Describe(dataset2).spatialReference
sr1String = sr1.exportToString()
sr2String = sr2.exportToString()
matching = Fals... | In case 2019, I had similar issues using ArcMap 10.3 and wanted to be as sure as possible as to whether projections matched. As in the above question/answers, you can get the spatial reference using `arcpy.Describe(dataset).spatialReference`. In a function library of mine, I then integrate this into a workflow, set-up ... |
57,509,532 | I have a simple `Person` class and a `Club` class that should contain lots of `Person` instances:
```
from django.db import models
class Person(models.Model):
name = models.CharField(max_length=200)
class Club(models.Model):
name = models.CharField(max_length=200)
persons = models.ForeignKey(Person, on_d... | 2019/08/15 | [
"https://Stackoverflow.com/questions/57509532",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5058116/"
] | Of course you can !
The best way would be to use `structures`, and to declare an array of structures.
Here is an example :
```
struct doublesContainers{
double value1;
double value2;
double value3;
double value4;
}
```
And after that declare an array of `doublesContainers` : `doublesContaine... | Either you can declare a two-dimensional array as for example
```
enum { N = 100 };
double a[N][4];
```
To access an element of the array you can use an expression with the subscript operator as
```
a[i][j]
```
where `i` is in the range `[0, N)` and `j` in the range `[0, 4)`.
Here is a demonstrative program.
``... |
57,509,532 | I have a simple `Person` class and a `Club` class that should contain lots of `Person` instances:
```
from django.db import models
class Person(models.Model):
name = models.CharField(max_length=200)
class Club(models.Model):
name = models.CharField(max_length=200)
persons = models.ForeignKey(Person, on_d... | 2019/08/15 | [
"https://Stackoverflow.com/questions/57509532",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5058116/"
] | Of course you can !
The best way would be to use `structures`, and to declare an array of structures.
Here is an example :
```
struct doublesContainers{
double value1;
double value2;
double value3;
double value4;
}
```
And after that declare an array of `doublesContainers` : `doublesContaine... | As @cocool97 said using structures is a good way to go. In addition, you can do a structure with an array of 4 doubles.
```
struct four_doubles {
double tupple[4];
};
int sum(double a, double b, double c, double d) {
struct four_doubles s;
s.tupple[0] = a;
s.tupple[1] = b;
s.tupple[2] = c;
s.tupple[3] = d;... |
57,509,532 | I have a simple `Person` class and a `Club` class that should contain lots of `Person` instances:
```
from django.db import models
class Person(models.Model):
name = models.CharField(max_length=200)
class Club(models.Model):
name = models.CharField(max_length=200)
persons = models.ForeignKey(Person, on_d... | 2019/08/15 | [
"https://Stackoverflow.com/questions/57509532",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5058116/"
] | Of course you can !
The best way would be to use `structures`, and to declare an array of structures.
Here is an example :
```
struct doublesContainers{
double value1;
double value2;
double value3;
double value4;
}
```
And after that declare an array of `doublesContainers` : `doublesContaine... | I would recommend using pointers. Pointers are dynamically allocated and can be closely managed to maintain efficiency. Here is some example code of how to accomplish this task with pointers:
```
double** dblPtr = malloc(sizeof(double*)*numberOfDoubleGroupsToStore);
int i = 0;
for (int i; i < numberOfDoubleGroupsToSto... |
57,509,532 | I have a simple `Person` class and a `Club` class that should contain lots of `Person` instances:
```
from django.db import models
class Person(models.Model):
name = models.CharField(max_length=200)
class Club(models.Model):
name = models.CharField(max_length=200)
persons = models.ForeignKey(Person, on_d... | 2019/08/15 | [
"https://Stackoverflow.com/questions/57509532",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5058116/"
] | Of course you can !
The best way would be to use `structures`, and to declare an array of structures.
Here is an example :
```
struct doublesContainers{
double value1;
double value2;
double value3;
double value4;
}
```
And after that declare an array of `doublesContainers` : `doublesContaine... | >
> Is there an array where each array element will hold a another array of doubles?
>
>
>
Yes - you're asking for a 2D array (which in C is declared as an array of arrays):
```
double arr[N][4]; // where N is the number of groups you want.
```
You'd assign each value as
```
arr[i][j] = some_value; // where 0 ... |
57,509,532 | I have a simple `Person` class and a `Club` class that should contain lots of `Person` instances:
```
from django.db import models
class Person(models.Model):
name = models.CharField(max_length=200)
class Club(models.Model):
name = models.CharField(max_length=200)
persons = models.ForeignKey(Person, on_d... | 2019/08/15 | [
"https://Stackoverflow.com/questions/57509532",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5058116/"
] | >
> Is there an array where each array element will hold a another array of doubles?
>
>
>
Yes - you're asking for a 2D array (which in C is declared as an array of arrays):
```
double arr[N][4]; // where N is the number of groups you want.
```
You'd assign each value as
```
arr[i][j] = some_value; // where 0 ... | Either you can declare a two-dimensional array as for example
```
enum { N = 100 };
double a[N][4];
```
To access an element of the array you can use an expression with the subscript operator as
```
a[i][j]
```
where `i` is in the range `[0, N)` and `j` in the range `[0, 4)`.
Here is a demonstrative program.
``... |
57,509,532 | I have a simple `Person` class and a `Club` class that should contain lots of `Person` instances:
```
from django.db import models
class Person(models.Model):
name = models.CharField(max_length=200)
class Club(models.Model):
name = models.CharField(max_length=200)
persons = models.ForeignKey(Person, on_d... | 2019/08/15 | [
"https://Stackoverflow.com/questions/57509532",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5058116/"
] | >
> Is there an array where each array element will hold a another array of doubles?
>
>
>
Yes - you're asking for a 2D array (which in C is declared as an array of arrays):
```
double arr[N][4]; // where N is the number of groups you want.
```
You'd assign each value as
```
arr[i][j] = some_value; // where 0 ... | As @cocool97 said using structures is a good way to go. In addition, you can do a structure with an array of 4 doubles.
```
struct four_doubles {
double tupple[4];
};
int sum(double a, double b, double c, double d) {
struct four_doubles s;
s.tupple[0] = a;
s.tupple[1] = b;
s.tupple[2] = c;
s.tupple[3] = d;... |
57,509,532 | I have a simple `Person` class and a `Club` class that should contain lots of `Person` instances:
```
from django.db import models
class Person(models.Model):
name = models.CharField(max_length=200)
class Club(models.Model):
name = models.CharField(max_length=200)
persons = models.ForeignKey(Person, on_d... | 2019/08/15 | [
"https://Stackoverflow.com/questions/57509532",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5058116/"
] | >
> Is there an array where each array element will hold a another array of doubles?
>
>
>
Yes - you're asking for a 2D array (which in C is declared as an array of arrays):
```
double arr[N][4]; // where N is the number of groups you want.
```
You'd assign each value as
```
arr[i][j] = some_value; // where 0 ... | I would recommend using pointers. Pointers are dynamically allocated and can be closely managed to maintain efficiency. Here is some example code of how to accomplish this task with pointers:
```
double** dblPtr = malloc(sizeof(double*)*numberOfDoubleGroupsToStore);
int i = 0;
for (int i; i < numberOfDoubleGroupsToSto... |
294,541 | I often come across situations where creating and editing actions are very similar, but they are not exactly the same story. So should they be handled as separate user stories, or as one? For example, I could have:
>
> **Option A:**
>
>
> **US A1**: As a system administrator, I want to create new user accounts so t... | 2015/08/25 | [
"https://softwareengineering.stackexchange.com/questions/294541",
"https://softwareengineering.stackexchange.com",
"https://softwareengineering.stackexchange.com/users/193136/"
] | I think that Option A, with separate user stories, would be preferred.
User stories are requirements. There are a [set of characteristics of a good requirement](https://en.wikipedia.org/wiki/Requirement#Characteristics_of_good_requirements) that tend to be well accepted. Option A ensures that your user stories are coh... | I think it really depends on the stories themselves, are you going to differentiate the process or administration of the two tasks?
I could envision a scenario where there really is no difference beyond whether or not you are creating a new record. This could be done as a single story.
I could also envision a scenari... |
294,541 | I often come across situations where creating and editing actions are very similar, but they are not exactly the same story. So should they be handled as separate user stories, or as one? For example, I could have:
>
> **Option A:**
>
>
> **US A1**: As a system administrator, I want to create new user accounts so t... | 2015/08/25 | [
"https://softwareengineering.stackexchange.com/questions/294541",
"https://softwareengineering.stackexchange.com",
"https://softwareengineering.stackexchange.com/users/193136/"
] | The key thing to consider here is whether your stories are **manageable chunks of work**.
To be manageable they need to be:
* Unambiguously defined
* Fairly easy to estimate
* Completable within a sprint
So, if you find that merging two stories somehow compromises any of the above points, then don't do it.
Personal... | I think that Option A, with separate user stories, would be preferred.
User stories are requirements. There are a [set of characteristics of a good requirement](https://en.wikipedia.org/wiki/Requirement#Characteristics_of_good_requirements) that tend to be well accepted. Option A ensures that your user stories are coh... |
294,541 | I often come across situations where creating and editing actions are very similar, but they are not exactly the same story. So should they be handled as separate user stories, or as one? For example, I could have:
>
> **Option A:**
>
>
> **US A1**: As a system administrator, I want to create new user accounts so t... | 2015/08/25 | [
"https://softwareengineering.stackexchange.com/questions/294541",
"https://softwareengineering.stackexchange.com",
"https://softwareengineering.stackexchange.com/users/193136/"
] | **TL;DR** They ought to be two separate, but related requirements.
The risk in running them as separate requirements is that you'll have duplicated code for the associated UI and underlying services. But the risk in combining them as a single requirement is that the edit path has a slightly different setup to it.
---... | I think it really depends on the stories themselves, are you going to differentiate the process or administration of the two tasks?
I could envision a scenario where there really is no difference beyond whether or not you are creating a new record. This could be done as a single story.
I could also envision a scenari... |
294,541 | I often come across situations where creating and editing actions are very similar, but they are not exactly the same story. So should they be handled as separate user stories, or as one? For example, I could have:
>
> **Option A:**
>
>
> **US A1**: As a system administrator, I want to create new user accounts so t... | 2015/08/25 | [
"https://softwareengineering.stackexchange.com/questions/294541",
"https://softwareengineering.stackexchange.com",
"https://softwareengineering.stackexchange.com/users/193136/"
] | The key thing to consider here is whether your stories are **manageable chunks of work**.
To be manageable they need to be:
* Unambiguously defined
* Fairly easy to estimate
* Completable within a sprint
So, if you find that merging two stories somehow compromises any of the above points, then don't do it.
Personal... | **TL;DR** They ought to be two separate, but related requirements.
The risk in running them as separate requirements is that you'll have duplicated code for the associated UI and underlying services. But the risk in combining them as a single requirement is that the edit path has a slightly different setup to it.
---... |
294,541 | I often come across situations where creating and editing actions are very similar, but they are not exactly the same story. So should they be handled as separate user stories, or as one? For example, I could have:
>
> **Option A:**
>
>
> **US A1**: As a system administrator, I want to create new user accounts so t... | 2015/08/25 | [
"https://softwareengineering.stackexchange.com/questions/294541",
"https://softwareengineering.stackexchange.com",
"https://softwareengineering.stackexchange.com/users/193136/"
] | The key thing to consider here is whether your stories are **manageable chunks of work**.
To be manageable they need to be:
* Unambiguously defined
* Fairly easy to estimate
* Completable within a sprint
So, if you find that merging two stories somehow compromises any of the above points, then don't do it.
Personal... | I think it really depends on the stories themselves, are you going to differentiate the process or administration of the two tasks?
I could envision a scenario where there really is no difference beyond whether or not you are creating a new record. This could be done as a single story.
I could also envision a scenari... |
1,734,824 | What are the primary differences between DOM in different browsers(Mozilla FireFox, IE, Opera, other)? If You can, please, give me some examples. | 2009/11/14 | [
"https://Stackoverflow.com/questions/1734824",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/51591/"
] | Use a list element
```
<ul>
<li><a href="...">entry 1</a></li>
<li><a href="...">entry 2</a></li>
... etc
</ul>
```
Apply a 'float:left;' and a percentage-based width to the each of the 'li' elements. The width you choose will obviously depend on the number of entries you have. To ensure the elements clear ... | Personally, I see nothing wrong with using tables for this. I feel that all the people who look down on us table users are soft in the head.
However, you could do it in CSS with a bunch of `DIV`s `float`ing next to one another, each of which has a width of a fixed `%`age of the overall width. |
1,734,824 | What are the primary differences between DOM in different browsers(Mozilla FireFox, IE, Opera, other)? If You can, please, give me some examples. | 2009/11/14 | [
"https://Stackoverflow.com/questions/1734824",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/51591/"
] | Use a list element
```
<ul>
<li><a href="...">entry 1</a></li>
<li><a href="...">entry 2</a></li>
... etc
</ul>
```
Apply a 'float:left;' and a percentage-based width to the each of the 'li' elements. The width you choose will obviously depend on the number of entries you have. To ensure the elements clear ... | Ken,
I'm not sure on your skill with creating web elements and css, but there are also lots of open source solutions which don't use tables (and some that do).
Here's a few examples:
<http://phoenity.com/newtedge/horizontal_nav/>
That is a great example that will show you both an "inline" version and a "block" versio... |
55,112,722 | So what I want to be able to do is take a field value, a date field, and add a set period of time to it and then make that into a merge tag that I can then add back into that value or use else where.
I know how to make a new merge tag, that's not the issue. My question is how do I get a field value to use in that cal... | 2019/03/12 | [
"https://Stackoverflow.com/questions/55112722",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9786126/"
] | From the stack trace, I notice that you're using tensorflow.keras but EarlyStopping from keras (based on the the other answer you referenced). This is the cause of the error.
This should work(import from tensorflow keras):
```
from tensorflow.keras.callbacks import EarlyStopping
``` | If you want to use all of Keras's functionality you can't use Tensorflow 2.0. Keras integration is incomplete.
```
pip install --upgrade "tensorflow==1.4" "keras>=2.0"
``` |
300,712 | I've played a bunch of games as Nobushi and feel slightly better than utter trash as her, and I've figured out at least what all her moves do except for one called Hidden Stance. She just stands there, and doesn't seem to get much benefit out of it like a Warlord might with his full block.
What exactly is the Hidden S... | 2017/02/16 | [
"https://gaming.stackexchange.com/questions/300712",
"https://gaming.stackexchange.com",
"https://gaming.stackexchange.com/users/1719/"
] | I found a pretty good summary and when-to-use guide for Nobushi's Hidden Stance in [this thread](https://www.reddit.com/r/forhonor/comments/5ry1li/i_dont_get_how_nobushis_hidden_stance_works_can/):
>
> Entering Hidden Stance gives you a small amount of I-frames, as if you were dodging an attack. While in hidden stanc... | Just adding to the previous answers, Hidden stance also counts as the first move in the 3 light attack combo, so instead of having to light attack 3 times to get the bleed effect, you only need to press it twice from hidden stance. |
300,712 | I've played a bunch of games as Nobushi and feel slightly better than utter trash as her, and I've figured out at least what all her moves do except for one called Hidden Stance. She just stands there, and doesn't seem to get much benefit out of it like a Warlord might with his full block.
What exactly is the Hidden S... | 2017/02/16 | [
"https://gaming.stackexchange.com/questions/300712",
"https://gaming.stackexchange.com",
"https://gaming.stackexchange.com/users/1719/"
] | There is an entire [Nobushi guide](http://segmentnext.com/2017/02/15/for-honor-nobushi-guide/) that comes up too.
From there specifically on the Hidden Stance:
>
> **For Honor Nobushi Hidden Stance**
>
>
> With Nobushi, if you guard down, you’ll enter the Hidden Stance which
> allows you to avoid any incoming at... | Just adding to the previous answers, Hidden stance also counts as the first move in the 3 light attack combo, so instead of having to light attack 3 times to get the bleed effect, you only need to press it twice from hidden stance. |
7,413,508 | I'm using the [Google Charts API](http://code.google.com/apis/chart/) to include various graphs on a webapp I'm working on. I'm using the javascript chart tools (**not** the image chart tools), and am wondering if it's possible to use a transparent background on a chart (e.g. line graph, pie chart, etc.)? | 2011/09/14 | [
"https://Stackoverflow.com/questions/7413508",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/218481/"
] | In the Configuration Options of the chart, specify
```
backgroundColor: { fill:'transparent' }
```
This worked for me in Chrome and Firefox.
It took me some time to [find out](http://groups.google.com/group/google-visualization-api/browse_thread/thread/d09df8bef22f49a2). The [doc page](http://code.google.com/apis/ch... | backgroundColor: "00000000" worked for me. |
7,413,508 | I'm using the [Google Charts API](http://code.google.com/apis/chart/) to include various graphs on a webapp I'm working on. I'm using the javascript chart tools (**not** the image chart tools), and am wondering if it's possible to use a transparent background on a chart (e.g. line graph, pie chart, etc.)? | 2011/09/14 | [
"https://Stackoverflow.com/questions/7413508",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/218481/"
] | In the Configuration Options of the chart, specify
```
backgroundColor: { fill:'transparent' }
```
This worked for me in Chrome and Firefox.
It took me some time to [find out](http://groups.google.com/group/google-visualization-api/browse_thread/thread/d09df8bef22f49a2). The [doc page](http://code.google.com/apis/ch... | **Setting a transparent background for Google Charts:**
```
// Set chart options
var options = {'title':'Chart Title',
'width':600,
'height':300,
'backgroundColor': 'transparent',
'is3D':true
};
```
**[JSFIDDLE DEMO](http://jsfiddle.net/portashqipe/kv0tujhv/22/)** |
7,413,508 | I'm using the [Google Charts API](http://code.google.com/apis/chart/) to include various graphs on a webapp I'm working on. I'm using the javascript chart tools (**not** the image chart tools), and am wondering if it's possible to use a transparent background on a chart (e.g. line graph, pie chart, etc.)? | 2011/09/14 | [
"https://Stackoverflow.com/questions/7413508",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/218481/"
] | In the Configuration Options of the chart, specify
```
backgroundColor: { fill:'transparent' }
```
This worked for me in Chrome and Firefox.
It took me some time to [find out](http://groups.google.com/group/google-visualization-api/browse_thread/thread/d09df8bef22f49a2). The [doc page](http://code.google.com/apis/ch... | If nothing works for you try locating the background rectangle at the end of your drawChart() function and add the fill-opacity attribute.
```
fill-opacity="0.0"
```
Example:
```
$('#mychart').find('svg rect:eq( 1 )').attr('fill-opacity','0.0');
```
Use the eq:() selector to select the rectangle you want to be t... |
7,413,508 | I'm using the [Google Charts API](http://code.google.com/apis/chart/) to include various graphs on a webapp I'm working on. I'm using the javascript chart tools (**not** the image chart tools), and am wondering if it's possible to use a transparent background on a chart (e.g. line graph, pie chart, etc.)? | 2011/09/14 | [
"https://Stackoverflow.com/questions/7413508",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/218481/"
] | In the Configuration Options of the chart, specify
```
backgroundColor: { fill:'transparent' }
```
This worked for me in Chrome and Firefox.
It took me some time to [find out](http://groups.google.com/group/google-visualization-api/browse_thread/thread/d09df8bef22f49a2). The [doc page](http://code.google.com/apis/ch... | On the left of the cart there is a dropdown arrow - click that, and go to "cop chart".
When you paste the chart, you can still choose to link it, and it will paste with the background transparent. |
7,413,508 | I'm using the [Google Charts API](http://code.google.com/apis/chart/) to include various graphs on a webapp I'm working on. I'm using the javascript chart tools (**not** the image chart tools), and am wondering if it's possible to use a transparent background on a chart (e.g. line graph, pie chart, etc.)? | 2011/09/14 | [
"https://Stackoverflow.com/questions/7413508",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/218481/"
] | **Setting a transparent background for Google Charts:**
```
// Set chart options
var options = {'title':'Chart Title',
'width':600,
'height':300,
'backgroundColor': 'transparent',
'is3D':true
};
```
**[JSFIDDLE DEMO](http://jsfiddle.net/portashqipe/kv0tujhv/22/)** | backgroundColor: "00000000" worked for me. |
7,413,508 | I'm using the [Google Charts API](http://code.google.com/apis/chart/) to include various graphs on a webapp I'm working on. I'm using the javascript chart tools (**not** the image chart tools), and am wondering if it's possible to use a transparent background on a chart (e.g. line graph, pie chart, etc.)? | 2011/09/14 | [
"https://Stackoverflow.com/questions/7413508",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/218481/"
] | backgroundColor: "00000000" worked for me. | If nothing works for you try locating the background rectangle at the end of your drawChart() function and add the fill-opacity attribute.
```
fill-opacity="0.0"
```
Example:
```
$('#mychart').find('svg rect:eq( 1 )').attr('fill-opacity','0.0');
```
Use the eq:() selector to select the rectangle you want to be t... |
7,413,508 | I'm using the [Google Charts API](http://code.google.com/apis/chart/) to include various graphs on a webapp I'm working on. I'm using the javascript chart tools (**not** the image chart tools), and am wondering if it's possible to use a transparent background on a chart (e.g. line graph, pie chart, etc.)? | 2011/09/14 | [
"https://Stackoverflow.com/questions/7413508",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/218481/"
] | backgroundColor: "00000000" worked for me. | On the left of the cart there is a dropdown arrow - click that, and go to "cop chart".
When you paste the chart, you can still choose to link it, and it will paste with the background transparent. |
7,413,508 | I'm using the [Google Charts API](http://code.google.com/apis/chart/) to include various graphs on a webapp I'm working on. I'm using the javascript chart tools (**not** the image chart tools), and am wondering if it's possible to use a transparent background on a chart (e.g. line graph, pie chart, etc.)? | 2011/09/14 | [
"https://Stackoverflow.com/questions/7413508",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/218481/"
] | **Setting a transparent background for Google Charts:**
```
// Set chart options
var options = {'title':'Chart Title',
'width':600,
'height':300,
'backgroundColor': 'transparent',
'is3D':true
};
```
**[JSFIDDLE DEMO](http://jsfiddle.net/portashqipe/kv0tujhv/22/)** | If nothing works for you try locating the background rectangle at the end of your drawChart() function and add the fill-opacity attribute.
```
fill-opacity="0.0"
```
Example:
```
$('#mychart').find('svg rect:eq( 1 )').attr('fill-opacity','0.0');
```
Use the eq:() selector to select the rectangle you want to be t... |
7,413,508 | I'm using the [Google Charts API](http://code.google.com/apis/chart/) to include various graphs on a webapp I'm working on. I'm using the javascript chart tools (**not** the image chart tools), and am wondering if it's possible to use a transparent background on a chart (e.g. line graph, pie chart, etc.)? | 2011/09/14 | [
"https://Stackoverflow.com/questions/7413508",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/218481/"
] | **Setting a transparent background for Google Charts:**
```
// Set chart options
var options = {'title':'Chart Title',
'width':600,
'height':300,
'backgroundColor': 'transparent',
'is3D':true
};
```
**[JSFIDDLE DEMO](http://jsfiddle.net/portashqipe/kv0tujhv/22/)** | On the left of the cart there is a dropdown arrow - click that, and go to "cop chart".
When you paste the chart, you can still choose to link it, and it will paste with the background transparent. |
7,413,508 | I'm using the [Google Charts API](http://code.google.com/apis/chart/) to include various graphs on a webapp I'm working on. I'm using the javascript chart tools (**not** the image chart tools), and am wondering if it's possible to use a transparent background on a chart (e.g. line graph, pie chart, etc.)? | 2011/09/14 | [
"https://Stackoverflow.com/questions/7413508",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/218481/"
] | If nothing works for you try locating the background rectangle at the end of your drawChart() function and add the fill-opacity attribute.
```
fill-opacity="0.0"
```
Example:
```
$('#mychart').find('svg rect:eq( 1 )').attr('fill-opacity','0.0');
```
Use the eq:() selector to select the rectangle you want to be t... | On the left of the cart there is a dropdown arrow - click that, and go to "cop chart".
When you paste the chart, you can still choose to link it, and it will paste with the background transparent. |
6,195,390 | When I run my app on the simulator, then I go Hardware->Simulate Memory Warning it causes my view to go blank (I just see white). Does anyone know how I can make it NOT do that? -- I don't want an actual memory warning to make my screen blank.
Thanks | 2011/06/01 | [
"https://Stackoverflow.com/questions/6195390",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/257558/"
] | I'm having the same issue. I have an application where you're presented a login screen, which pushes under a NavController a main menu. Every selection in the main menu then pushes a new view controller. If i get a memory warning when under a menu item, going back to the menu displays a blank view.
This is probably mo... | bah, it was mainly because I set my navigation controller incorrectly |
6,195,390 | When I run my app on the simulator, then I go Hardware->Simulate Memory Warning it causes my view to go blank (I just see white). Does anyone know how I can make it NOT do that? -- I don't want an actual memory warning to make my screen blank.
Thanks | 2011/06/01 | [
"https://Stackoverflow.com/questions/6195390",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/257558/"
] | I got the same issue right now and I solved the problem.
In my case I got this lines inside the mainViewController's code:
```
- (void)loadView {
[super loadView];
}
```
after simulating a memory warning the system call didReceiveMemoryWarning and you can check that viewDidUnload is called immediately after and... | bah, it was mainly because I set my navigation controller incorrectly |
290,432 | How can I take a screenshot of the PC before it has started up?
For example:
* If I wanted to take a screenshot of my BIOS and send it to the Network Admin for review
* Windows installation screenshots such as those seen on [this site](http://www.techtalkz.com/windows-7/514412-windows-7-installation-guide-tutorial.ht... | 2011/05/30 | [
"https://superuser.com/questions/290432",
"https://superuser.com",
"https://superuser.com/users/23211/"
] | I think the example you gave used a virtual machine.
If you use software like [VirtualBox](http://www.virtualbox.org/) you can take screenshots of the installation process during booting with the host machine. | Heres a thought, why not just take a camera and take a photo? I've taken pretty good photos of the screen with my iphone and a reasonable digital camrea could do a lot better! |
290,432 | How can I take a screenshot of the PC before it has started up?
For example:
* If I wanted to take a screenshot of my BIOS and send it to the Network Admin for review
* Windows installation screenshots such as those seen on [this site](http://www.techtalkz.com/windows-7/514412-windows-7-installation-guide-tutorial.ht... | 2011/05/30 | [
"https://superuser.com/questions/290432",
"https://superuser.com",
"https://superuser.com/users/23211/"
] | Some EFI Bios's allow screenshots. I believe ASUS uses F12 to take the screenshot in their current EFI bioses.
Hope this helps anyone else out there who stumbles by this. | Heres a thought, why not just take a camera and take a photo? I've taken pretty good photos of the screen with my iphone and a reasonable digital camrea could do a lot better! |
290,432 | How can I take a screenshot of the PC before it has started up?
For example:
* If I wanted to take a screenshot of my BIOS and send it to the Network Admin for review
* Windows installation screenshots such as those seen on [this site](http://www.techtalkz.com/windows-7/514412-windows-7-installation-guide-tutorial.ht... | 2011/05/30 | [
"https://superuser.com/questions/290432",
"https://superuser.com",
"https://superuser.com/users/23211/"
] | I have been trying a lot on capturing the BIOS. Until now I didn't get to a resonable solution. I have tried capturing the BIOS by using 2 PCs, one of them with a S-Vídeo output and the other with a S-Vídeo input.
Since S-Vídeo is an old tecnology it only alows for resolutions up to 720x480 which is ok to capture the ... | Heres a thought, why not just take a camera and take a photo? I've taken pretty good photos of the screen with my iphone and a reasonable digital camrea could do a lot better! |
290,432 | How can I take a screenshot of the PC before it has started up?
For example:
* If I wanted to take a screenshot of my BIOS and send it to the Network Admin for review
* Windows installation screenshots such as those seen on [this site](http://www.techtalkz.com/windows-7/514412-windows-7-installation-guide-tutorial.ht... | 2011/05/30 | [
"https://superuser.com/questions/290432",
"https://superuser.com",
"https://superuser.com/users/23211/"
] | There have been good answers already:
* Use a VM like [VirtualBox](http://www.virtualbox.org/) or [VMWare](http://www.vmware.com/) to install Windows so you can take pictures of the setup process from the host environment.
* Use digital camera to make pictures (with noticeably lower quality of course)
However there i... | This is most likely done by running the operating system in a virtual machine, such as VMware and then they can record the desktop or take screen shots as it progresses.
To do such a thing without a host operating system requires a digital camera, which clearly doesn't get the same quality. |
290,432 | How can I take a screenshot of the PC before it has started up?
For example:
* If I wanted to take a screenshot of my BIOS and send it to the Network Admin for review
* Windows installation screenshots such as those seen on [this site](http://www.techtalkz.com/windows-7/514412-windows-7-installation-guide-tutorial.ht... | 2011/05/30 | [
"https://superuser.com/questions/290432",
"https://superuser.com",
"https://superuser.com/users/23211/"
] | Some EFI Bios's allow screenshots. I believe ASUS uses F12 to take the screenshot in their current EFI bioses.
Hope this helps anyone else out there who stumbles by this. | If you have a printer connected, you might be able to use the "Print Screen" key on your keyboard (assuming your BIOS supports this function; it should, but there are many that don't).
You can then scan that printout later and either post it as-is in graphical form, or use OCR to obtain the text directly (for native t... |
290,432 | How can I take a screenshot of the PC before it has started up?
For example:
* If I wanted to take a screenshot of my BIOS and send it to the Network Admin for review
* Windows installation screenshots such as those seen on [this site](http://www.techtalkz.com/windows-7/514412-windows-7-installation-guide-tutorial.ht... | 2011/05/30 | [
"https://superuser.com/questions/290432",
"https://superuser.com",
"https://superuser.com/users/23211/"
] | Some EFI Bios's allow screenshots. I believe ASUS uses F12 to take the screenshot in their current EFI bioses.
Hope this helps anyone else out there who stumbles by this. | I think the example you gave used a virtual machine.
If you use software like [VirtualBox](http://www.virtualbox.org/) you can take screenshots of the installation process during booting with the host machine. |
290,432 | How can I take a screenshot of the PC before it has started up?
For example:
* If I wanted to take a screenshot of my BIOS and send it to the Network Admin for review
* Windows installation screenshots such as those seen on [this site](http://www.techtalkz.com/windows-7/514412-windows-7-installation-guide-tutorial.ht... | 2011/05/30 | [
"https://superuser.com/questions/290432",
"https://superuser.com",
"https://superuser.com/users/23211/"
] | This is most likely done by running the operating system in a virtual machine, such as VMware and then they can record the desktop or take screen shots as it progresses.
To do such a thing without a host operating system requires a digital camera, which clearly doesn't get the same quality. | If you have a printer connected, you might be able to use the "Print Screen" key on your keyboard (assuming your BIOS supports this function; it should, but there are many that don't).
You can then scan that printout later and either post it as-is in graphical form, or use OCR to obtain the text directly (for native t... |
290,432 | How can I take a screenshot of the PC before it has started up?
For example:
* If I wanted to take a screenshot of my BIOS and send it to the Network Admin for review
* Windows installation screenshots such as those seen on [this site](http://www.techtalkz.com/windows-7/514412-windows-7-installation-guide-tutorial.ht... | 2011/05/30 | [
"https://superuser.com/questions/290432",
"https://superuser.com",
"https://superuser.com/users/23211/"
] | This is most likely done by running the operating system in a virtual machine, such as VMware and then they can record the desktop or take screen shots as it progresses.
To do such a thing without a host operating system requires a digital camera, which clearly doesn't get the same quality. | Some EFI Bios's allow screenshots. I believe ASUS uses F12 to take the screenshot in their current EFI bioses.
Hope this helps anyone else out there who stumbles by this. |
290,432 | How can I take a screenshot of the PC before it has started up?
For example:
* If I wanted to take a screenshot of my BIOS and send it to the Network Admin for review
* Windows installation screenshots such as those seen on [this site](http://www.techtalkz.com/windows-7/514412-windows-7-installation-guide-tutorial.ht... | 2011/05/30 | [
"https://superuser.com/questions/290432",
"https://superuser.com",
"https://superuser.com/users/23211/"
] | There have been good answers already:
* Use a VM like [VirtualBox](http://www.virtualbox.org/) or [VMWare](http://www.vmware.com/) to install Windows so you can take pictures of the setup process from the host environment.
* Use digital camera to make pictures (with noticeably lower quality of course)
However there i... | If you have a printer connected, you might be able to use the "Print Screen" key on your keyboard (assuming your BIOS supports this function; it should, but there are many that don't).
You can then scan that printout later and either post it as-is in graphical form, or use OCR to obtain the text directly (for native t... |
290,432 | How can I take a screenshot of the PC before it has started up?
For example:
* If I wanted to take a screenshot of my BIOS and send it to the Network Admin for review
* Windows installation screenshots such as those seen on [this site](http://www.techtalkz.com/windows-7/514412-windows-7-installation-guide-tutorial.ht... | 2011/05/30 | [
"https://superuser.com/questions/290432",
"https://superuser.com",
"https://superuser.com/users/23211/"
] | There have been good answers already:
* Use a VM like [VirtualBox](http://www.virtualbox.org/) or [VMWare](http://www.vmware.com/) to install Windows so you can take pictures of the setup process from the host environment.
* Use digital camera to make pictures (with noticeably lower quality of course)
However there i... | I have been trying a lot on capturing the BIOS. Until now I didn't get to a resonable solution. I have tried capturing the BIOS by using 2 PCs, one of them with a S-Vídeo output and the other with a S-Vídeo input.
Since S-Vídeo is an old tecnology it only alows for resolutions up to 720x480 which is ok to capture the ... |
144,307 | I found this [question](https://tex.stackexchange.com/questions/20885/draw-curly-braces-in-tikz) that shows how to draw curly braces in tikz and to mirror them using decorations. But, how can they be rotated an arbitrary angle?
. | 2013/11/11 | [
"https://tex.stackexchange.com/questions/144307",
"https://tex.stackexchange.com",
"https://tex.stackexchange.com/users/27167/"
] | ```
\documentclass[tikz]{standalone}
\usetikzlibrary{decorations.pathreplacing}
\begin{document}
\begin{tikzpicture}
\draw[help lines] (-6,-6) grid (6,6);
\foreach \x in {0,36,72,...,324}
\draw [decorate,decoration={brace,amplitude=10pt},rotate=\x] (0.5,0.5) -- (0.5,5.0);
\end{tikzpicture}
\end{document}
```
![ente... | As one can guess:
```
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{decorations.pathreplacing}
\begin{document}
\begin{tikzpicture}[scale=1,rotate=60] % the only change
\draw[thick] (-1,0) rectangle +(6,7.5);
\filldraw[thick, top color=white,bottom color=red!50!] (0.5,0) rectangle node{$N_S$} +(1.3,0.5)... |
26,090,385 | I am having the hardest time getting a fresh install of IntelliJ to work properly with Scala.
I've installed IntelliJ IDEA 13.1.4 and the Scala plugin on a Mac. In any project, the IDE complains it cannot find scala.concurrent (or any other package in scala-library) even though the library is listed under "External L... | 2014/09/28 | [
"https://Stackoverflow.com/questions/26090385",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/669912/"
] | I had the same issue. I fixed it with Invalidate Caches
**File | Invalidate Caches / restart**. Manual way on Mac with removing this folder:
~/Library/Caches/IntelliJIDEAXX | I had the same issue and above advice didn't help me. After googling and reading JetBrains tickets, I found out that I had $JAVA\_HOME variable pointing to JDK 1.7:
JAVA\_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0\_45.jdk/Contents/Home
Removing that from both current shell (`unset JAVA_HOME`) and shell's profile... |
8,927,660 | I should communicate with an online service that sends me the following data urlencoded:
```
data_to_process = {...}
args = {'args0': data_to_process, 'action': 'save'}
result = urllib2.urlopen(..., urllib.urlencode(args), ...)
```
The main data of interest is stored in the `data_to_process` dictionary. I would lik... | 2012/01/19 | [
"https://Stackoverflow.com/questions/8927660",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/245493/"
] | When you declare a virtual function it will call to the most-derived handler of the function, and then from there you have each handler call `NextMostDerivedClass::preDestroy` and the calls will go to the next-most-derived handler of the function, and you can again call `NextMostDerivedClass::preDestroy`, and so on. Th... | I'd use a subscription mechanism, where if you want a to hold a pointer to another object, you also have to subscribe to their destruction event; on receiving such an event, cancel their subscription to your own event, and clean up your own structures (which may then lead to further destruction).
i.e. (C++1x syntax fo... |
8,927,660 | I should communicate with an online service that sends me the following data urlencoded:
```
data_to_process = {...}
args = {'args0': data_to_process, 'action': 'save'}
result = urllib2.urlopen(..., urllib.urlencode(args), ...)
```
The main data of interest is stored in the `data_to_process` dictionary. I would lik... | 2012/01/19 | [
"https://Stackoverflow.com/questions/8927660",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/245493/"
] | When you declare a virtual function it will call to the most-derived handler of the function, and then from there you have each handler call `NextMostDerivedClass::preDestroy` and the calls will go to the next-most-derived handler of the function, and you can again call `NextMostDerivedClass::preDestroy`, and so on. Th... | You may make use of the visitor pattern to go through your nodes graph (I assume you are talking about a graph) and let the nodes put themselves into a kind of "to-be-deleted" list (if needed) which is hold by the visitor object. In a second iteration you can go through that list elements and call a kind of "destroy" m... |
359,381 | In my physics book, it says that in the human ear, the sensation of loudness is approximately logarithmic. And that the relative sound intensity is directly proportional to a logarithmic ratio expressed as follows:
$ \beta = 10\log(\frac{I}{I\_0}) $
So does that mean an average human wont perceive a , for example , s... | 2017/09/26 | [
"https://physics.stackexchange.com/questions/359381",
"https://physics.stackexchange.com",
"https://physics.stackexchange.com/users/170275/"
] | In a comment, Victor Storm writes:
>
> @AlfredCentauri: You are incorrect. The human hearing is logarithmic.
> **The sound is perceived twice louder when the number of deciBells is
> doubled**. You are confusing the subjective loudness with the physical
> volume that doubles at 6dB (not 10dB). However, doubling th... | Unfortunately sometimes users post **incorrect answers**. For example **@AlfredCentauri** quotes incorrect statements from "the book of Recording Studio Design" without critically analyzing them to see that they have little to do with science or reality:
>
> it is necessary to increase the power from a source by 10 t... |
359,381 | In my physics book, it says that in the human ear, the sensation of loudness is approximately logarithmic. And that the relative sound intensity is directly proportional to a logarithmic ratio expressed as follows:
$ \beta = 10\log(\frac{I}{I\_0}) $
So does that mean an average human wont perceive a , for example , s... | 2017/09/26 | [
"https://physics.stackexchange.com/questions/359381",
"https://physics.stackexchange.com",
"https://physics.stackexchange.com/users/170275/"
] | From Victor Storm:
>
>
> >
> > it is necessary to increase the power from a source by 10 times in order to double the loudness
> >
> >
> >
>
>
> This statement implies a linear 1:5 dependence of the subjective loudness on the source power.
>
>
>
This is not correct. Rather, the implied relation from @Alfre... | Unfortunately sometimes users post **incorrect answers**. For example **@AlfredCentauri** quotes incorrect statements from "the book of Recording Studio Design" without critically analyzing them to see that they have little to do with science or reality:
>
> it is necessary to increase the power from a source by 10 t... |
359,381 | In my physics book, it says that in the human ear, the sensation of loudness is approximately logarithmic. And that the relative sound intensity is directly proportional to a logarithmic ratio expressed as follows:
$ \beta = 10\log(\frac{I}{I\_0}) $
So does that mean an average human wont perceive a , for example , s... | 2017/09/26 | [
"https://physics.stackexchange.com/questions/359381",
"https://physics.stackexchange.com",
"https://physics.stackexchange.com/users/170275/"
] | From Victor Storm:
>
>
> >
> > it is necessary to increase the power from a source by 10 times in order to double the loudness
> >
> >
> >
>
>
> This statement implies a linear 1:5 dependence of the subjective loudness on the source power.
>
>
>
This is not correct. Rather, the implied relation from @Alfre... | In a comment, Victor Storm writes:
>
> @AlfredCentauri: You are incorrect. The human hearing is logarithmic.
> **The sound is perceived twice louder when the number of deciBells is
> doubled**. You are confusing the subjective loudness with the physical
> volume that doubles at 6dB (not 10dB). However, doubling th... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.