qid int64 1 74.7M | question stringlengths 0 58.3k | date stringlengths 10 10 | metadata list | response_j stringlengths 2 48.3k | response_k stringlengths 2 40.5k |
|---|---|---|---|---|---|
3,678,334 | I have some 'spaghetti'-style code that is generously saused with Custom tags and Stored procedures calls. Templates include each other, custom tags nested and stored procedures are callind other stored procedures in their place.
Problem is that one template call is hanging somewhere in between. I cannot get any erro... | 2010/09/09 | [
"https://Stackoverflow.com/questions/3678334",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/91088/"
] | CFTrace is a great tool for this. It is native and reports time information as well. | Have you looked at the standard coldfusion server log files to see what might be in there?
Have you run the server in a console window so you can see what is appearing in the console as the templates are running (or not as the case might be)? |
3,678,334 | I have some 'spaghetti'-style code that is generously saused with Custom tags and Stored procedures calls. Templates include each other, custom tags nested and stored procedures are callind other stored procedures in their place.
Problem is that one template call is hanging somewhere in between. I cannot get any erro... | 2010/09/09 | [
"https://Stackoverflow.com/questions/3678334",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/91088/"
] | CFTrace is a great tool for this. It is native and reports time information as well. | You could Take jvm thread dumps. You can do from command line or via server monitoring if you have Enterprise 8+ |
135,685 | I'm trying to get SOQL's for Activities (workbench was no help).
I'm looking at the three prebuilt reports in Salesforce:
`Activities on Leads`, `Activities on Accounts`, and `Activities on Opportunitites`
and would like to see "open & completed activites", both "Events & Tasks", as well as a date frame for Activity... | 2016/08/05 | [
"https://salesforce.stackexchange.com/questions/135685",
"https://salesforce.stackexchange.com",
"https://salesforce.stackexchange.com/users/36140/"
] | The object you should query is [OpenActivity](https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_openactivity.htm) and [ActivityHistory](https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_activityhistory.htm)
So your query should be
```
SELECT Report_Coun... | You need to use the correct relationship name to access tasks from the Lead parent object. That relationship name is usually slightly different from the Object name.
In this case, the relationship name for tasks is `Tasks`. So change your query to:
```
SELECT Report_Country_L__c, (SELECT Owner.Name,ActivityDate,Stat... |
135,685 | I'm trying to get SOQL's for Activities (workbench was no help).
I'm looking at the three prebuilt reports in Salesforce:
`Activities on Leads`, `Activities on Accounts`, and `Activities on Opportunitites`
and would like to see "open & completed activites", both "Events & Tasks", as well as a date frame for Activity... | 2016/08/05 | [
"https://salesforce.stackexchange.com/questions/135685",
"https://salesforce.stackexchange.com",
"https://salesforce.stackexchange.com/users/36140/"
] | You need to use the correct relationship name to access tasks from the Lead parent object. That relationship name is usually slightly different from the Object name.
In this case, the relationship name for tasks is `Tasks`. So change your query to:
```
SELECT Report_Country_L__c, (SELECT Owner.Name,ActivityDate,Stat... | You can do something like this
```
Select Id, What.type, who.type from task
Select Id, What.type, who.type from Event
```
using these method and two query you will get all task and event for All three object or any other object.
**Note:** the 50000 records limit in SOQL will still apply in your case. |
135,685 | I'm trying to get SOQL's for Activities (workbench was no help).
I'm looking at the three prebuilt reports in Salesforce:
`Activities on Leads`, `Activities on Accounts`, and `Activities on Opportunitites`
and would like to see "open & completed activites", both "Events & Tasks", as well as a date frame for Activity... | 2016/08/05 | [
"https://salesforce.stackexchange.com/questions/135685",
"https://salesforce.stackexchange.com",
"https://salesforce.stackexchange.com/users/36140/"
] | The object you should query is [OpenActivity](https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_openactivity.htm) and [ActivityHistory](https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_activityhistory.htm)
So your query should be
```
SELECT Report_Coun... | Activity is a "catch all" term that includes Event and Task. You need to query both objects to get all Activities. They each have a different date fields that you'll need to consider when building your query. I suggest you take a look at the [Object Reference](http://www.salesforce.com/us/developer/docs/object_referenc... |
135,685 | I'm trying to get SOQL's for Activities (workbench was no help).
I'm looking at the three prebuilt reports in Salesforce:
`Activities on Leads`, `Activities on Accounts`, and `Activities on Opportunitites`
and would like to see "open & completed activites", both "Events & Tasks", as well as a date frame for Activity... | 2016/08/05 | [
"https://salesforce.stackexchange.com/questions/135685",
"https://salesforce.stackexchange.com",
"https://salesforce.stackexchange.com/users/36140/"
] | Activity is a "catch all" term that includes Event and Task. You need to query both objects to get all Activities. They each have a different date fields that you'll need to consider when building your query. I suggest you take a look at the [Object Reference](http://www.salesforce.com/us/developer/docs/object_referenc... | You can do something like this
```
Select Id, What.type, who.type from task
Select Id, What.type, who.type from Event
```
using these method and two query you will get all task and event for All three object or any other object.
**Note:** the 50000 records limit in SOQL will still apply in your case. |
135,685 | I'm trying to get SOQL's for Activities (workbench was no help).
I'm looking at the three prebuilt reports in Salesforce:
`Activities on Leads`, `Activities on Accounts`, and `Activities on Opportunitites`
and would like to see "open & completed activites", both "Events & Tasks", as well as a date frame for Activity... | 2016/08/05 | [
"https://salesforce.stackexchange.com/questions/135685",
"https://salesforce.stackexchange.com",
"https://salesforce.stackexchange.com/users/36140/"
] | The object you should query is [OpenActivity](https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_openactivity.htm) and [ActivityHistory](https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_activityhistory.htm)
So your query should be
```
SELECT Report_Coun... | You need to query on Event and Task object to retrieve Activities for Lead object. You can verify the Relationship name using [Workbench](https://workbench.developerforce.com/) --> Info --> Standard and Custom Object -> Select and Object for which Relationship to be verified
```
List<Lead> leadList = [Select id, (Sele... |
135,685 | I'm trying to get SOQL's for Activities (workbench was no help).
I'm looking at the three prebuilt reports in Salesforce:
`Activities on Leads`, `Activities on Accounts`, and `Activities on Opportunitites`
and would like to see "open & completed activites", both "Events & Tasks", as well as a date frame for Activity... | 2016/08/05 | [
"https://salesforce.stackexchange.com/questions/135685",
"https://salesforce.stackexchange.com",
"https://salesforce.stackexchange.com/users/36140/"
] | The object you should query is [OpenActivity](https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_openactivity.htm) and [ActivityHistory](https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_activityhistory.htm)
So your query should be
```
SELECT Report_Coun... | You can do something like this
```
Select Id, What.type, who.type from task
Select Id, What.type, who.type from Event
```
using these method and two query you will get all task and event for All three object or any other object.
**Note:** the 50000 records limit in SOQL will still apply in your case. |
135,685 | I'm trying to get SOQL's for Activities (workbench was no help).
I'm looking at the three prebuilt reports in Salesforce:
`Activities on Leads`, `Activities on Accounts`, and `Activities on Opportunitites`
and would like to see "open & completed activites", both "Events & Tasks", as well as a date frame for Activity... | 2016/08/05 | [
"https://salesforce.stackexchange.com/questions/135685",
"https://salesforce.stackexchange.com",
"https://salesforce.stackexchange.com/users/36140/"
] | You need to query on Event and Task object to retrieve Activities for Lead object. You can verify the Relationship name using [Workbench](https://workbench.developerforce.com/) --> Info --> Standard and Custom Object -> Select and Object for which Relationship to be verified
```
List<Lead> leadList = [Select id, (Sele... | You can do something like this
```
Select Id, What.type, who.type from task
Select Id, What.type, who.type from Event
```
using these method and two query you will get all task and event for All three object or any other object.
**Note:** the 50000 records limit in SOQL will still apply in your case. |
397,124 | Say you had a large bomb - take the 50 megaton Tsar Bomba. You then proceed to place it in the center of a spherical tank containing liquid hydrogen, and then detonate it. Could you start a fusion reaction inside of that tank (and roughly how big would that tank need to be)? | 2018/04/02 | [
"https://physics.stackexchange.com/questions/397124",
"https://physics.stackexchange.com",
"https://physics.stackexchange.com/users/191125/"
] | The first ever thermonuclear device, [Ivy Mike](https://en.wikipedia.org/wiki/Ivy_Mike), contained a tank with liquid *deuterium* (heavier isotope of hydrogen, the main isotope, protium, has too small fusion cross-sections). The fusion reactions in this tank were ignited by a fission bomb.
Note, that the main problem ... | When the nuclear bomb is ignited, the liquid hydrogen in the tank would evaporate instantly. The evaporation heat of liquid hydrogen of a tank of any reasonable size is negligible compared to the energy released even by a small (Hiroshima) 15kT TNT fission bomb.
Note after comment by @rob: That there won't be any sign... |
15,247,893 | I am facing this error continuously.
```
DBClientBase::findN: transport error()
```
I searched the problem and found that there are so many people who faced this problem but didn't find exact reason of this error.
why this error is coming ? | 2013/03/06 | [
"https://Stackoverflow.com/questions/15247893",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2075090/"
] | This is probably due to a network error connecting to the mongod server or a mongos cannot connect to the mongod.
The first thing to try in here is to restart the mongod/s | This also occurs if the MongoDB server only accepts SSL encrypted connections. For that you need a MongoDB client compiled with SSL support.
Further readings:
<http://docs.mongodb.org/manual/tutorial/configure-ssl-clients/#connect-to-mongodb-instance-with-ssl-encryption>
<http://www.mongodb.org/about/contributors/tuto... |
15,247,893 | I am facing this error continuously.
```
DBClientBase::findN: transport error()
```
I searched the problem and found that there are so many people who faced this problem but didn't find exact reason of this error.
why this error is coming ? | 2013/03/06 | [
"https://Stackoverflow.com/questions/15247893",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2075090/"
] | This is probably due to a network error connecting to the mongod server or a mongos cannot connect to the mongod.
The first thing to try in here is to restart the mongod/s | Mine was resolved by removing SocketTimeOut parameter from the `ConnectionString::connect()` call.
i.e.
```
pDBClientBase = cs.connect(strErr /*,2 */);
``` |
15,247,893 | I am facing this error continuously.
```
DBClientBase::findN: transport error()
```
I searched the problem and found that there are so many people who faced this problem but didn't find exact reason of this error.
why this error is coming ? | 2013/03/06 | [
"https://Stackoverflow.com/questions/15247893",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2075090/"
] | This also occurs if the MongoDB server only accepts SSL encrypted connections. For that you need a MongoDB client compiled with SSL support.
Further readings:
<http://docs.mongodb.org/manual/tutorial/configure-ssl-clients/#connect-to-mongodb-instance-with-ssl-encryption>
<http://www.mongodb.org/about/contributors/tuto... | Mine was resolved by removing SocketTimeOut parameter from the `ConnectionString::connect()` call.
i.e.
```
pDBClientBase = cs.connect(strErr /*,2 */);
``` |
42,913 | I'm getting a little tired of the same old GMail themes from "random". GMail lets you use your own background image by giving it a url. Is is possible to give it a url that changes every once in a while, giving a much wider range of themes? If the answer is yes, what is a source of such a thing. I was thinking somethin... | 2013/04/11 | [
"https://webapps.stackexchange.com/questions/42913",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/20723/"
] | [This](http://meta.wikimedia.org/wiki/User%3aDuesentrieb/POTD) might do what you want. It calls various-sized images from Wikimedia sites using a stable URL. They might not be the prettiest sometimes, but could be worth a try. | In Gmail's settings under 'Themes', you can pick the theme 'Random', which will apply a random theme **daily**.
See [this blog post](http://googlesystem.blogspot.be/2009/09/random-gmail-theme.html) on Google System from 2009.
I don't think it's possibly to shuffle only the background image. |
42,913 | I'm getting a little tired of the same old GMail themes from "random". GMail lets you use your own background image by giving it a url. Is is possible to give it a url that changes every once in a while, giving a much wider range of themes? If the answer is yes, what is a source of such a thing. I was thinking somethin... | 2013/04/11 | [
"https://webapps.stackexchange.com/questions/42913",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/20723/"
] | Following on from Andrew Lott's answer, I've found the following URL works really well:
<http://tools.wikimedia.de/~daniel/potd/potd.php/commons/1600x1200>
Note that changing the dimensions at the end of the URL resizes the image - so the above returns a picture 1600px wide by 1200px high. Set it to your monitor's pi... | In Gmail's settings under 'Themes', you can pick the theme 'Random', which will apply a random theme **daily**.
See [this blog post](http://googlesystem.blogspot.be/2009/09/random-gmail-theme.html) on Google System from 2009.
I don't think it's possibly to shuffle only the background image. |
1,744,974 | Can anyone provide a real life senario where Type Forward is use? | 2009/11/16 | [
"https://Stackoverflow.com/questions/1744974",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/180826/"
] | The BCL libraries commonly use the `TypeForwardedTo` attribute when different versions of the framework move a type between assemblies. For example, the `Func<>` style delegates were moved from System.Core in the 3.5 framework to mscorlib in the 4.0 framework.
You can view real world uses of this by opening System.Cor... | From [msdn](http://msdn.microsoft.com/en-us/library/ms404275.aspx):
>
> For example, suppose an application uses the Example class in an assembly named Utility.dll. The developers of Utility.dll might decide to refactor the assembly, and in the process they might move the Example class to another assembly. If the old... |
3,075,208 | ```
class Base {
public:
Base() {}
void Foo(int x) {...}
};
class Derived : public Base {
public:
Derived(int args) {
/* process args in some way */
Foo(result);
}
};
```
Is it allowed to call a method of the base class in the constructor of the derived class?
I would imagin... | 2010/06/19 | [
"https://Stackoverflow.com/questions/3075208",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/370974/"
] | >
> Is it allowed to call a method of the base class in the constructor of the derived class?
>
>
>
Yes. Just watch out for `virtual` functions. If an class derived from `Derived` overrides a virtual function, while constructing `Derived` as a sub-object of that further derived class, the dynamic type always is `D... | There is a danger when:
1. the method is overridden
2. the method calls other methods that are overridden |
554,388 | I want to be able to open dir in sublime from terminal.
Whenever I do `subl .` it opens current dir in 2 sublime editors.
Of course I need it to open only one.
My assumption is that I've messed with symlinks, but I might be wrong. | 2014/11/28 | [
"https://askubuntu.com/questions/554388",
"https://askubuntu.com",
"https://askubuntu.com/users/202713/"
] | You didn't messed up with symlinks, sublime has installed correctly. That is actually the right behavior.
The reason why does it open two sublime instances (my bet):
* There was a project already opened or
* You didn't closed the previous files opened
In either case you may want to:
* Close any project (Project ->... | Adding a `-a` flag to the subl command causes files to "open in current window", which prevents subsequent windows opening.
```
alias subl='subl -a'
``` |
48,938,019 | I'm using Git (and GitHub) on a daily basis and everything has been working fine and all of a sudden, I can no longer communicate with my remote GitHub repository through my Git commands. When I try to "Git pull", it gives the following error:
>
> fatal: unable to access '<https://github.com/snahrvar/eatibl.git/>':
>... | 2018/02/22 | [
"https://Stackoverflow.com/questions/48938019",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5225426/"
] | Updating Git was not enough in my situation. After debugging for several hours, this was my fix:
```
C:\wamp64\www\maandlastenmanager> git config http.sslVersion
tslv1.0
C:\wamp64\www\maandlastenmanager> git config http.sslVersion tlsv1.2
C:\wamp64\www\maandlastenmanager> git config http.sslVersion
tslv1.2
``` | The comment by @andw worked for me:
Update Git version 1.9.5 to 2.15.1 using these steps:
In sourceTree, go to menu *Tools* → *Options* → *Git* → *Use Embedded Git*. |
48,938,019 | I'm using Git (and GitHub) on a daily basis and everything has been working fine and all of a sudden, I can no longer communicate with my remote GitHub repository through my Git commands. When I try to "Git pull", it gives the following error:
>
> fatal: unable to access '<https://github.com/snahrvar/eatibl.git/>':
>... | 2018/02/22 | [
"https://Stackoverflow.com/questions/48938019",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5225426/"
] | A quick solution would be **git config --global http.sslVerify true**, but it is not recommended as it defeats the purpose using SSL.
A second and better way is to use ssh keys rather than an SSL URL.
**Steps to generate SSH keys**
o Run the following command in a Git terminal (Git Bash): **ssh-keygen**
After runni... | Sometimes, this is caused by outdated msysgit which is using old ssl and not maintained any more, you can install latest [git for windows](https://gitforwindows.org/), and point the git.exe path in tortoise setting to it, then this problem gone. |
48,938,019 | I'm using Git (and GitHub) on a daily basis and everything has been working fine and all of a sudden, I can no longer communicate with my remote GitHub repository through my Git commands. When I try to "Git pull", it gives the following error:
>
> fatal: unable to access '<https://github.com/snahrvar/eatibl.git/>':
>... | 2018/02/22 | [
"https://Stackoverflow.com/questions/48938019",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5225426/"
] | Yeah, I encountered the same issue on a pull request today and the solution was to simply update Git by downloading the latest (2.16.2) 64-bit version of Git for Windows. It was released 5 days ago, on 2018-02-20. | Sometimes, this is caused by outdated msysgit which is using old ssl and not maintained any more, you can install latest [git for windows](https://gitforwindows.org/), and point the git.exe path in tortoise setting to it, then this problem gone. |
48,938,019 | I'm using Git (and GitHub) on a daily basis and everything has been working fine and all of a sudden, I can no longer communicate with my remote GitHub repository through my Git commands. When I try to "Git pull", it gives the following error:
>
> fatal: unable to access '<https://github.com/snahrvar/eatibl.git/>':
>... | 2018/02/22 | [
"https://Stackoverflow.com/questions/48938019",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5225426/"
] | If you are using Android Studio or IntelliJ IDEA, updating Git to [the latest version](https://git-scm.com/download/win) and changing the path to point to the new version solve the problem for me.
[](https://i.stack.imgur.com/5RdmB.png) | Using TortoiseGit, I did all of the other fixes/updates given for this and still no success. I found this: *[Can't git push/pull/fetch suddenly](https://gitlab.com/tortoisegit/tortoisegit/issues/3169)*
My TortoiseGit settings for Git for Windows Git.exe path was pointing to `C:\Program Files (x86)\Git\bin`. I changed... |
48,938,019 | I'm using Git (and GitHub) on a daily basis and everything has been working fine and all of a sudden, I can no longer communicate with my remote GitHub repository through my Git commands. When I try to "Git pull", it gives the following error:
>
> fatal: unable to access '<https://github.com/snahrvar/eatibl.git/>':
>... | 2018/02/22 | [
"https://Stackoverflow.com/questions/48938019",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5225426/"
] | **TL;DR: `git config --system http.sslbackend schannel` and switch off HTTPS checks for `github.com` in your antivirus software**
---
I'm using the Git command line on Windows 8 x64. In addition, **my antivirus software checks HTTPS traffic** by default. Like other people in answering this question, I use GitHub almo... | Sometimes, this is caused by outdated msysgit which is using old ssl and not maintained any more, you can install latest [git for windows](https://gitforwindows.org/), and point the git.exe path in tortoise setting to it, then this problem gone. |
48,938,019 | I'm using Git (and GitHub) on a daily basis and everything has been working fine and all of a sudden, I can no longer communicate with my remote GitHub repository through my Git commands. When I try to "Git pull", it gives the following error:
>
> fatal: unable to access '<https://github.com/snahrvar/eatibl.git/>':
>... | 2018/02/22 | [
"https://Stackoverflow.com/questions/48938019",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5225426/"
] | Updating TortoiseGit and GCM didn't help me, but updating Git itself did, as per @Frederic's advice in comments.
<https://git-scm.com/download/win>
To make sure the new version of Git installs properly and doesn't conflict with previous installations (it might, if you used TortoiseGit's, because it would use differen... | Encountered a similar error.
On windows, Updated git on windows to the latest version.
That fixed the problem. |
48,938,019 | I'm using Git (and GitHub) on a daily basis and everything has been working fine and all of a sudden, I can no longer communicate with my remote GitHub repository through my Git commands. When I try to "Git pull", it gives the following error:
>
> fatal: unable to access '<https://github.com/snahrvar/eatibl.git/>':
>... | 2018/02/22 | [
"https://Stackoverflow.com/questions/48938019",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5225426/"
] | Same for me with Git 1.9.5.msysgit.1 too. I tried to install <https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases/tag/v1.14.0>, but no change.
Actually, nothing happen after installation; maybe I'm doing something wrong? (That may not help for the initial question, but for other people, yes!) | Encountered a similar error.
On windows, Updated git on windows to the latest version.
That fixed the problem. |
48,938,019 | I'm using Git (and GitHub) on a daily basis and everything has been working fine and all of a sudden, I can no longer communicate with my remote GitHub repository through my Git commands. When I try to "Git pull", it gives the following error:
>
> fatal: unable to access '<https://github.com/snahrvar/eatibl.git/>':
>... | 2018/02/22 | [
"https://Stackoverflow.com/questions/48938019",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5225426/"
] | If you are using Android Studio or IntelliJ IDEA, updating Git to [the latest version](https://git-scm.com/download/win) and changing the path to point to the new version solve the problem for me.
[](https://i.stack.imgur.com/5RdmB.png) | Sometimes, this is caused by outdated msysgit which is using old ssl and not maintained any more, you can install latest [git for windows](https://gitforwindows.org/), and point the git.exe path in tortoise setting to it, then this problem gone. |
48,938,019 | I'm using Git (and GitHub) on a daily basis and everything has been working fine and all of a sudden, I can no longer communicate with my remote GitHub repository through my Git commands. When I try to "Git pull", it gives the following error:
>
> fatal: unable to access '<https://github.com/snahrvar/eatibl.git/>':
>... | 2018/02/22 | [
"https://Stackoverflow.com/questions/48938019",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5225426/"
] | Updating Git was not enough in my situation. After debugging for several hours, this was my fix:
```
C:\wamp64\www\maandlastenmanager> git config http.sslVersion
tslv1.0
C:\wamp64\www\maandlastenmanager> git config http.sslVersion tlsv1.2
C:\wamp64\www\maandlastenmanager> git config http.sslVersion
tslv1.2
``` | Encountered a similar error.
On windows, Updated git on windows to the latest version.
That fixed the problem. |
48,938,019 | I'm using Git (and GitHub) on a daily basis and everything has been working fine and all of a sudden, I can no longer communicate with my remote GitHub repository through my Git commands. When I try to "Git pull", it gives the following error:
>
> fatal: unable to access '<https://github.com/snahrvar/eatibl.git/>':
>... | 2018/02/22 | [
"https://Stackoverflow.com/questions/48938019",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5225426/"
] | I had this same problem while pulling code from GitHub on my [Visual Studio Code](https://en.wikipedia.org/wiki/Visual_Studio_Code) terminal. I found the advice in the previous answers useful and hacked a solution together following the steps below:
* I [updated Git](https://git-scm.com/download/win).
* I [updated Gi... | Encountered a similar error.
On windows, Updated git on windows to the latest version.
That fixed the problem. |
3,777 | What specifically is built up using medicine balls for soccer? What exercises can build up core strength for soccer? | 2014/01/06 | [
"https://sports.stackexchange.com/questions/3777",
"https://sports.stackexchange.com",
"https://sports.stackexchange.com/users/1971/"
] | Here's a video that really outlines a lot of the exercises that will help. I have done some of them myself to condition for being a keeper. These all should be of great help to gaining core strength.
<http://www.youtube.com/watch?v=5ZZMcIo6-A8>
For some more specifics, here are some of the ones that I trained with and... | We had a fitness coach from Derby County speak to us at work and he said that he got the players core fitness and balance to improve by throwing a medicine ball to each other while sitting and balancing on a exercise ball (the big blow up types). He said at first they would practice balancing and after a week or 2 intr... |
24,053,633 | Slightly random one which has been bugging me for a while.
I am confused as to what actually makes a server a sever. I understand that a web-sever like Apache 'serves' web pages to the client. Why then is an SQL database server also called as such. What behaviours do the two entities have in common that make both of th... | 2014/06/05 | [
"https://Stackoverflow.com/questions/24053633",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3704198/"
] | If your car is not complete without all those parameters, there should be a constructor taking all of them. If that's too complicated, I'd be happy to have additional constructors taking less parameters that provide working defaults.
If it's not your class to start with (maybe because it's a POCO generated from a wsd... | Often, the class itself should decide what it requires and does not require to operate at a minimum level during creation. The properties that the class *must* have set should be asked for in a constructor. Any other non-required properties can be set as is required.
From this, your `Car` class should have a construct... |
4,090,136 | This is an idea I got in to my mind,
All the display devices(screens which have pixels etc...) have an **upper bound** for the amount of various images they can generate.
```
as an example 1024*728 - 32 bit pixel display can only show (2^32)^(1024*768) etc... number of identical frames without duplicating any scene(vi... | 2010/11/03 | [
"https://Stackoverflow.com/questions/4090136",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/107233/"
] | You're talking of a number about
```
(2^32)^(1024*768) ~~ ((2^4)^8)^(10^6) ~~ 10^8^(10^6) ~ 10^8000000.
```
The number of atoms in universe is about
```
10^80 // http://en.wikipedia.org/wiki/Observable_universe#Matter_content
```
I think that there is no way we could pre-generate all the screens in our life.
... | So given some extra information about the scenes you could generate you might be able to pull apart the scenes that no-one has ever seen.
So if you could take all the pictures out on the internet and the statistics about what was popular or viewed a lot then compute your all possible screens you could pull apart that ... |
23,279,457 | So recently, I met this problem:
Given: int x; unsigned int y; x = 0xAB78; y = 0xAB78; write a program to display the decimal values of x and y on the screen.
And here is the program I wrote: ( I am on a 64-bit windows 7 machine)
```
#include<stdio.h>
#include<math.h>
int main()
{
short int x;
unsigned shor... | 2014/04/24 | [
"https://Stackoverflow.com/questions/23279457",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3553288/"
] | If `myB` is null `myB.Count` will throw an exception.You should check for null first:
```
if(myB != null && myB.Count > 0)
```
You may also want to do that with your first list, for safety...And you can remove the `Count` check, it's unnecessary.`foreach` will not throw exception if the collection is *empty*, it onl... | If `a` or `b` is null, you can't call functions on it. You'll get a null reference exception. So check to see if they're null.
```
if(a !=null)
{
foreach (MyType myA in a)
{
//DO STUFF HERE
}
}
```
There's no explicit need to check the count before the `foreach` expression. If it's empty, then it ... |
23,279,457 | So recently, I met this problem:
Given: int x; unsigned int y; x = 0xAB78; y = 0xAB78; write a program to display the decimal values of x and y on the screen.
And here is the program I wrote: ( I am on a 64-bit windows 7 machine)
```
#include<stdio.h>
#include<math.h>
int main()
{
short int x;
unsigned shor... | 2014/04/24 | [
"https://Stackoverflow.com/questions/23279457",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3553288/"
] | If `myB` is null `myB.Count` will throw an exception.You should check for null first:
```
if(myB != null && myB.Count > 0)
```
You may also want to do that with your first list, for safety...And you can remove the `Count` check, it's unnecessary.`foreach` will not throw exception if the collection is *empty*, it onl... | The problem is your assuming that `a` and `b` are never `null`. If the input isn't json or differs to drastically in structure from the definitions for your types those references will be null and then you will crash when you try to iterate on null.
You just need `if ( a != null ) // iterate` for each of the collectio... |
23,279,457 | So recently, I met this problem:
Given: int x; unsigned int y; x = 0xAB78; y = 0xAB78; write a program to display the decimal values of x and y on the screen.
And here is the program I wrote: ( I am on a 64-bit windows 7 machine)
```
#include<stdio.h>
#include<math.h>
int main()
{
short int x;
unsigned shor... | 2014/04/24 | [
"https://Stackoverflow.com/questions/23279457",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3553288/"
] | If `myB` is null `myB.Count` will throw an exception.You should check for null first:
```
if(myB != null && myB.Count > 0)
```
You may also want to do that with your first list, for safety...And you can remove the `Count` check, it's unnecessary.`foreach` will not throw exception if the collection is *empty*, it onl... | You cannot iterate on a collection that is `null` because `foreach` will implicitly call `GetEnumerator()` on the supplied `IEnumerable` argument. You must either assign a default value to `b` or check that it is not `null` before using it in the `foreach` clause.
```
if ((b != null) && (b.Count > 0))
{
foreach (... |
23,279,457 | So recently, I met this problem:
Given: int x; unsigned int y; x = 0xAB78; y = 0xAB78; write a program to display the decimal values of x and y on the screen.
And here is the program I wrote: ( I am on a 64-bit windows 7 machine)
```
#include<stdio.h>
#include<math.h>
int main()
{
short int x;
unsigned shor... | 2014/04/24 | [
"https://Stackoverflow.com/questions/23279457",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3553288/"
] | If `myB` is null `myB.Count` will throw an exception.You should check for null first:
```
if(myB != null && myB.Count > 0)
```
You may also want to do that with your first list, for safety...And you can remove the `Count` check, it's unnecessary.`foreach` will not throw exception if the collection is *empty*, it onl... | As I don't know what the value of jsonstringa or the value of jsonstringb is. I would guess that jsonstringb would be an empty string as you are referring to the case when there are no items. An empty string would be considered a malformed JSON string. The result of
```
JsonConvert.DeserializeObject
```
when given a... |
41,158,168 | I am inserting a JSON value into a H2 database using GORM in the domain i have two column
String clobs
Date date
```
static mapping = {
datasource 'json'
clobs sqlType: 'clob'
}
static constraints = {
}
```
}
from the controller i call the service method
def createJson(){
```
log.debug("Inserting Va... | 2016/12/15 | [
"https://Stackoverflow.com/questions/41158168",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | If you are working behind proxy, you need to set proxy for nodejs
```
npm config set proxy http://proxy_host:port
npm config set https-proxy http://proxy_host:port
```
Hope it Helps.. :) | npm install command is used to install packages.
**Reason for your error :**
You don't have any package.json in your current working directory.
Also, you didn't provide any package name to install from.
**Tips :**
Check out <https://docs.npmjs.com/cli/install> for more details.
Never use -g (install dependency... |
41,158,168 | I am inserting a JSON value into a H2 database using GORM in the domain i have two column
String clobs
Date date
```
static mapping = {
datasource 'json'
clobs sqlType: 'clob'
}
static constraints = {
}
```
}
from the controller i call the service method
def createJson(){
```
log.debug("Inserting Va... | 2016/12/15 | [
"https://Stackoverflow.com/questions/41158168",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | I ran into this issue while installing gulp
My NPM and Node Versions are:
* node v7.7.4
* npm v4.1.2
In npm version 4x, https client certificates were made required rather than optional. Details are in their github area.
Long story short, what helped for me was running the following command:
```
npm config set st... | npm install command is used to install packages.
**Reason for your error :**
You don't have any package.json in your current working directory.
Also, you didn't provide any package name to install from.
**Tips :**
Check out <https://docs.npmjs.com/cli/install> for more details.
Never use -g (install dependency... |
41,158,168 | I am inserting a JSON value into a H2 database using GORM in the domain i have two column
String clobs
Date date
```
static mapping = {
datasource 'json'
clobs sqlType: 'clob'
}
static constraints = {
}
```
}
from the controller i call the service method
def createJson(){
```
log.debug("Inserting Va... | 2016/12/15 | [
"https://Stackoverflow.com/questions/41158168",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | I ran into this issue while installing gulp
My NPM and Node Versions are:
* node v7.7.4
* npm v4.1.2
In npm version 4x, https client certificates were made required rather than optional. Details are in their github area.
Long story short, what helped for me was running the following command:
```
npm config set st... | If you are working behind proxy, you need to set proxy for nodejs
```
npm config set proxy http://proxy_host:port
npm config set https-proxy http://proxy_host:port
```
Hope it Helps.. :) |
58,536,130 | How to append comma seperated values to url as search params using history.pushsate. with use of , RFC 3986, specifies that URI path components should not contain unencoded reserved characters and comma is one of those reserved characters. <https://www.rfc-editor.org/rfc/rfc3986>.
#code
window.history.pushState('new'... | 2019/10/24 | [
"https://Stackoverflow.com/questions/58536130",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | [`jQuery.param()`](https://api.jquery.com/jQuery.param/) seems to repeat array values, so you'll have to find some existing library or write custom function.
Something like that (but maybe optimized a bit more):
```js
/**
* Prepare `search` part of URL.
* @param {object} o Each key is a param name and value is an... | Parse the `JSON` data to a `JS` object and parse the keys and values according to your needs. I don't think there's any way to achieve exactly the string format that you want, unless someone wrote a `npm` package for exactly this case (not deeply nested json object to a query string).
Make use of [JSON.parse()](https... |
50,061,189 | I am injecting a UIVisualEffectView (UIBlurEffect) into a UITextField which has a roundedRect border style.
Problem is that the UIVisualEffectView is a solid rectangle and I would like it to be "clipped" by its parent. Or to apply a cornerRadius which is the same has the UITextField, but when I access this value, it i... | 2018/04/27 | [
"https://Stackoverflow.com/questions/50061189",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/836501/"
] | Try this:
```
textField.layer.cornerRadius = 5.0
textField.layer.masksToBounds = true
``` | [I think the best way to set corner radius is:
][1](https://i.stack.imgur.com/dIi1u.png) |
30,359,691 | I'm sending from my android phone integer as byte with the following code(I put only the needed chunks):
```
private byte[] intToByteArray ( final int i ) throws IOException {
ByteArrayOutputStream bos = new ByteArrayOutputStream();
DataOutputStream dos = new DataOutputStream(bos);
dos.writeInt(i);
... | 2015/05/20 | [
"https://Stackoverflow.com/questions/30359691",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3146756/"
] | Not sure if it's the same issue you're facing, but on my end with the same error, the problem was that I hadn't added my assertion endpoint on my service provider as a SAML Assertion Consumer Endpoint in AD FS on the identity provider.
Worth a shot, anyway :) In `mmc` on the IdP, add the AD FS snap-in. Then find your ... | I had a similar Problem.
I followed the advice fro @DanielSmedegaardBuus and found no assertion Consumers.
In my metadata.xml which i imported into adfs the service provider urls were http.
If you try to manually add a link with http it says "only https allowed".
and it seems that when it was importing the xml it just... |
51,443,457 | my current sequence no is 203 i need to jump to 1203 without dropping the sequence. | 2018/07/20 | [
"https://Stackoverflow.com/questions/51443457",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10111045/"
] | First alter the sequence increment, given you stated 203 to 1203, I'm adding 1000, adjust as appropriate.
```
ALTER SEQUENCE yourSequence INCREMENT BY 1000;
```
Then request a value
```
SELECT yourSequence.NextVal FROM dual;
```
Then alter it back to incrementing by 1 (assuming it was 1 in the first place)
```
... | Just do a WHILE loop, selecting from the sequence until it's up to the value you need. It's quite fast.
```
declare
v_sequence_value number;
begin
while v_sequence_value <= 1203 loop
select my_sequence.nextval into v_sequence_value from dual;
end loop;
end;
/
``` |
51,443,457 | my current sequence no is 203 i need to jump to 1203 without dropping the sequence. | 2018/07/20 | [
"https://Stackoverflow.com/questions/51443457",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10111045/"
] | You may create such a procedure on your desired schema of DB as follows :
```
SQL>Create or Replace Procedure Pr_Set_Sequence( i_seq_name varchar2, i_val pls_integer ) is
v_val pls_integer;
begin
for c in (
Select u.sequence_name seq
From User_Sequences u
Where u.sequenc... | Just do a WHILE loop, selecting from the sequence until it's up to the value you need. It's quite fast.
```
declare
v_sequence_value number;
begin
while v_sequence_value <= 1203 loop
select my_sequence.nextval into v_sequence_value from dual;
end loop;
end;
/
``` |
272,975 | I'm already at the limit of 9 and most of them are 5km eggs. Is there any way to get rid of them? I want to make space for 10km eggs because I hope they contain rarer Pokémon.
[](https://i.stack.imgur.com/ngausm.png) | 2016/07/08 | [
"https://gaming.stackexchange.com/questions/272975",
"https://gaming.stackexchange.com",
"https://gaming.stackexchange.com/users/18131/"
] | There doesn't seem to be a way to remove eggs as of this moment. Seems like the only way is to hatch them.
Source: Multiple mentions of it on Reddit. | It is indeed impossible to get rid of your eggs other than hatching them. Although your theority about the distance needed for the eggs to hatch and the likelyhood of a rare pokemon has been confirmed. |
272,975 | I'm already at the limit of 9 and most of them are 5km eggs. Is there any way to get rid of them? I want to make space for 10km eggs because I hope they contain rarer Pokémon.
[](https://i.stack.imgur.com/ngausm.png) | 2016/07/08 | [
"https://gaming.stackexchange.com/questions/272975",
"https://gaming.stackexchange.com",
"https://gaming.stackexchange.com/users/18131/"
] | There doesn't seem to be a way to remove eggs as of this moment. Seems like the only way is to hatch them.
Source: Multiple mentions of it on Reddit. | I haven't found a way to discard eggs. I think it's part of the game and it's way of limiting things. You must walk to catch Pokémon, so just don't forget to have some incubating. Just got a CP 722 Electabuzz from a 10km egg! |
272,975 | I'm already at the limit of 9 and most of them are 5km eggs. Is there any way to get rid of them? I want to make space for 10km eggs because I hope they contain rarer Pokémon.
[](https://i.stack.imgur.com/ngausm.png) | 2016/07/08 | [
"https://gaming.stackexchange.com/questions/272975",
"https://gaming.stackexchange.com",
"https://gaming.stackexchange.com/users/18131/"
] | There doesn't seem to be a way to remove eggs as of this moment. Seems like the only way is to hatch them.
Source: Multiple mentions of it on Reddit. | The ability to delete Eggs has still not been introduced to the app, however this is certainly a feature that Niantic will be forced to implement in the near future.
If you want this feature and hope to contribute to the cause, click on the 'Pokéball' while in-game, followed by the 'Settings' button to 'Report High-Pr... |
272,975 | I'm already at the limit of 9 and most of them are 5km eggs. Is there any way to get rid of them? I want to make space for 10km eggs because I hope they contain rarer Pokémon.
[](https://i.stack.imgur.com/ngausm.png) | 2016/07/08 | [
"https://gaming.stackexchange.com/questions/272975",
"https://gaming.stackexchange.com",
"https://gaming.stackexchange.com/users/18131/"
] | There doesn't seem to be a way to remove eggs as of this moment. Seems like the only way is to hatch them.
Source: Multiple mentions of it on Reddit. | As of this update, there is no clear way to get rid of eggs.
The best and only way to get rid of eggs is to hatch them, you have you walk to hatch them. You have to hatch them to get rid of them. |
272,975 | I'm already at the limit of 9 and most of them are 5km eggs. Is there any way to get rid of them? I want to make space for 10km eggs because I hope they contain rarer Pokémon.
[](https://i.stack.imgur.com/ngausm.png) | 2016/07/08 | [
"https://gaming.stackexchange.com/questions/272975",
"https://gaming.stackexchange.com",
"https://gaming.stackexchange.com/users/18131/"
] | It is indeed impossible to get rid of your eggs other than hatching them. Although your theority about the distance needed for the eggs to hatch and the likelyhood of a rare pokemon has been confirmed. | I haven't found a way to discard eggs. I think it's part of the game and it's way of limiting things. You must walk to catch Pokémon, so just don't forget to have some incubating. Just got a CP 722 Electabuzz from a 10km egg! |
272,975 | I'm already at the limit of 9 and most of them are 5km eggs. Is there any way to get rid of them? I want to make space for 10km eggs because I hope they contain rarer Pokémon.
[](https://i.stack.imgur.com/ngausm.png) | 2016/07/08 | [
"https://gaming.stackexchange.com/questions/272975",
"https://gaming.stackexchange.com",
"https://gaming.stackexchange.com/users/18131/"
] | It is indeed impossible to get rid of your eggs other than hatching them. Although your theority about the distance needed for the eggs to hatch and the likelyhood of a rare pokemon has been confirmed. | The ability to delete Eggs has still not been introduced to the app, however this is certainly a feature that Niantic will be forced to implement in the near future.
If you want this feature and hope to contribute to the cause, click on the 'Pokéball' while in-game, followed by the 'Settings' button to 'Report High-Pr... |
272,975 | I'm already at the limit of 9 and most of them are 5km eggs. Is there any way to get rid of them? I want to make space for 10km eggs because I hope they contain rarer Pokémon.
[](https://i.stack.imgur.com/ngausm.png) | 2016/07/08 | [
"https://gaming.stackexchange.com/questions/272975",
"https://gaming.stackexchange.com",
"https://gaming.stackexchange.com/users/18131/"
] | I haven't found a way to discard eggs. I think it's part of the game and it's way of limiting things. You must walk to catch Pokémon, so just don't forget to have some incubating. Just got a CP 722 Electabuzz from a 10km egg! | The ability to delete Eggs has still not been introduced to the app, however this is certainly a feature that Niantic will be forced to implement in the near future.
If you want this feature and hope to contribute to the cause, click on the 'Pokéball' while in-game, followed by the 'Settings' button to 'Report High-Pr... |
272,975 | I'm already at the limit of 9 and most of them are 5km eggs. Is there any way to get rid of them? I want to make space for 10km eggs because I hope they contain rarer Pokémon.
[](https://i.stack.imgur.com/ngausm.png) | 2016/07/08 | [
"https://gaming.stackexchange.com/questions/272975",
"https://gaming.stackexchange.com",
"https://gaming.stackexchange.com/users/18131/"
] | As of this update, there is no clear way to get rid of eggs.
The best and only way to get rid of eggs is to hatch them, you have you walk to hatch them. You have to hatch them to get rid of them. | I haven't found a way to discard eggs. I think it's part of the game and it's way of limiting things. You must walk to catch Pokémon, so just don't forget to have some incubating. Just got a CP 722 Electabuzz from a 10km egg! |
272,975 | I'm already at the limit of 9 and most of them are 5km eggs. Is there any way to get rid of them? I want to make space for 10km eggs because I hope they contain rarer Pokémon.
[](https://i.stack.imgur.com/ngausm.png) | 2016/07/08 | [
"https://gaming.stackexchange.com/questions/272975",
"https://gaming.stackexchange.com",
"https://gaming.stackexchange.com/users/18131/"
] | As of this update, there is no clear way to get rid of eggs.
The best and only way to get rid of eggs is to hatch them, you have you walk to hatch them. You have to hatch them to get rid of them. | The ability to delete Eggs has still not been introduced to the app, however this is certainly a feature that Niantic will be forced to implement in the near future.
If you want this feature and hope to contribute to the cause, click on the 'Pokéball' while in-game, followed by the 'Settings' button to 'Report High-Pr... |
53,505,879 | I've been searching for a good answer for a while but couldn't find any. So I'm having this problem where I have a JSON file and I'd like to read the data from it in React.
The JSON looks somewhat like this:
```
{
"cats": [
{
"id": 1,
"name": "Cat1",
"age": 3
},
{
"id": 2,
... | 2018/11/27 | [
"https://Stackoverflow.com/questions/53505879",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8767839/"
] | I think I understand the question..
How item knows what type it is?
---
You already know the type if you iterate them.
```
this.state.dogs.map((dog, i) => {
// I know this is dog
return <Item key={i} {...dog} />;
})
this.state.cats.map((cat, i) => {
// I know this is cat
return <Item key={i} {...cat} />;... | You can use
```
this.setState({
cats: data.cats,
dogs: data.dogs
})
``` |
53,505,879 | I've been searching for a good answer for a while but couldn't find any. So I'm having this problem where I have a JSON file and I'd like to read the data from it in React.
The JSON looks somewhat like this:
```
{
"cats": [
{
"id": 1,
"name": "Cat1",
"age": 3
},
{
"id": 2,
... | 2018/11/27 | [
"https://Stackoverflow.com/questions/53505879",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8767839/"
] | I think I understand the question..
How item knows what type it is?
---
You already know the type if you iterate them.
```
this.state.dogs.map((dog, i) => {
// I know this is dog
return <Item key={i} {...dog} />;
})
this.state.cats.map((cat, i) => {
// I know this is cat
return <Item key={i} {...cat} />;... | Don't fully understand your question i admit. =) You have the type of cat or dog in your state properties. So if you for example map over the dog array you know that it is the dogs your'e mapping through. If what you mean is that you want to show in your list somehow if it's a cat or a dog you can just add it in your l... |
53,505,879 | I've been searching for a good answer for a while but couldn't find any. So I'm having this problem where I have a JSON file and I'd like to read the data from it in React.
The JSON looks somewhat like this:
```
{
"cats": [
{
"id": 1,
"name": "Cat1",
"age": 3
},
{
"id": 2,
... | 2018/11/27 | [
"https://Stackoverflow.com/questions/53505879",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8767839/"
] | I think I understand the question..
How item knows what type it is?
---
You already know the type if you iterate them.
```
this.state.dogs.map((dog, i) => {
// I know this is dog
return <Item key={i} {...dog} />;
})
this.state.cats.map((cat, i) => {
// I know this is cat
return <Item key={i} {...cat} />;... | ```
class Draw extends React.Component {
static defaultProps {
dogs: data.dogs,
cats: data.cats
}
render(){
const {dogs, cats} = this.props;
return(<div>{dogs.map((value, index)=>value.id)}</div>)
}
}
```
value.id can be value.name or any nested html you want. |
9,380,816 | I am not an expert on hunting these things down, but following things seems like sources of the problem and just wanted to check if I am right, and how to deal with it:
All script is basically one big loop, every iteration performs following things, I think could be related to leaking:
1. Mechanize object is used to ... | 2012/02/21 | [
"https://Stackoverflow.com/questions/9380816",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/278984/"
] | Have you tried spiking in a call to `GC.start` to manually trigger garbage collection once in a while? I've found that Ruby can get super lazy about taking out the trash under some circumstances.
Ruby doesn't usually "leak" memory, but it can accumulate a lot of allocated objects if you're keeping them cached somewher... | You could try using mem-prof or ruby-prof to profile your memory usage and figure out where it's being used. But I wouldn't bother until you actually notice a memory leak problem. |
31,033,449 | I have hundreds of .csv files that are structured like this:
```
xyz25012013 <- data.frame(province = c("AB", "BC", "ON"), high = c(30, 20, 25), low = c(5, 2, 3))
xyz13122014 <- data.frame(province = c("AB", "BC", "ON"), high = c(20, 34, 25), low = c(1, 8, 3))
xyz30042014 <- data.frame(province = c("AB", "BC", "ON"), ... | 2015/06/24 | [
"https://Stackoverflow.com/questions/31033449",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3731467/"
] | I think this does what you'd like and should be relatively efficient:
```
## Create a file list to operate on:
files <- list.files(path=".", pattern="*.csv")
## Read in our data from each CSV into a list structure:
csvs <- lapply(files, function(x) {
d <- read.csv(x);
d$date <- as.Date(substr(x,4,11), format=... | Suppose all of your files are in the "test" file folder:
```
library(readr)
files = list.files("test/")
dd = vector("list", length = length(files))
for (i in seq_along(files)){
dd[[i]] = read_csv(file = paste0("test/", files[i]))
dd[[i]]$date = as.Date(substr(files[i], 4, 11), format = "%d%m%Y")
}
merged = do.cal... |
45,253,654 | I have problem of my code but couldn't find that,I updated an array but it doesn't update in my main view
here my code
```
app.controller("MainCtrl", function ($scope, $http) {
$scope.user = [];
$scope.adduser = function (fuser, luser) {
var name = { fname: fuser, lname: luser }
// debugger;
... | 2017/07/22 | [
"https://Stackoverflow.com/questions/45253654",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5465552/"
] | You need to pass the variable in the directive,
```
<userinfo user='user'></userinfo>
```
and the directive as,
```
scope: {
user: '='
}
``` | `controllerAs` syntax makes available your controller function `this`(context) accessible via its alias, here it is `c`. As you're using `controllerAs` syntax, Your binding values should be bounded to controller function context (`this`). You should be avoid using `$scope` in controller in `controllerAs` approach. Even... |
73,982,858 | This is my code, shared [here](https://www.online-java.com/X0aDikWobq), so you can run it.
```java
public interface GenericRepository<T> {
default Class<T> getEntityClazz() {
ParameterizedType pType = (ParameterizedType)this.getClass().getGenericInterfaces()[0];
Type tT = pType.getActualTypeArgumen... | 2022/10/07 | [
"https://Stackoverflow.com/questions/73982858",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3227319/"
] | You can use `useMemo` to memorize the values. As you return an object with {} so it will assume the object has changed to a new location.
```
return useMemo(
() => ({
accounts: {
accountsA,
accountsB,
},
accountIds: {
accountIdsA,
accountIdsB,
},
}), [accountsA, accountsB, accountIdsA, accoun... | Be careful with the useEffect because when you use it and specify the next for example:
```
useEffect(() => {
if (accountTreeA) {
//Flatten a tree object that has children
setAccountsA(flattenTree(accountTreeA))
}
}, [accountTreeA])
useEffect(() => {
if (accountTreeB) {
setAccountsB(f... |
36,546,217 | I'm currently using bootstrap popovers to add some additional fields to my form. To format my select boxes, I need to take advantage of the popover callback, however I seem to be unable to get the callback to fire. If you prefer to use jsfiddle, [check it out here.](https://jsfiddle.net/neanderslob/ju5cmytc/20/) Thanks... | 2016/04/11 | [
"https://Stackoverflow.com/questions/36546217",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2540204/"
] | There is no popover option `showCallback` instead try using one of Bootstraps built in [popover events](http://getbootstrap.com/javascript/#popovers-events)
So for example triggering the alert when the popover is shown you would do this
```
$("[data-toggle=popover]").on('shown.bs.popover', function () {
alert('ca... | Try this: I have added a callback function by using `prototype` of jquery.
```
var tmp = $.fn.popover.Constructor.prototype.show;
$.fn.popover.Constructor.prototype.show = function () {
tmp.call(this);
if (this.options.callback) {
this.options.callback();
}
}
this.$("[data-toggle=popover]").popover({
html... |
3,869,858 | I want to build GQL query to get an object using its numeric id. I'm doing this in Datastore viewer in App management console, so I can't use Model.get\_by\_id(numeric\_id). Something like
```
SELECT * FROM Model WHERE id = <numeric_id>
```
also doesn't work. | 2010/10/06 | [
"https://Stackoverflow.com/questions/3869858",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/123611/"
] | Try this:
```
SELECT * FROM Model where __key__ = KEY('Model', <numeric_id>)
``` | In my case I had to change the type of ID from String to Long |
3,869,858 | I want to build GQL query to get an object using its numeric id. I'm doing this in Datastore viewer in App management console, so I can't use Model.get\_by\_id(numeric\_id). Something like
```
SELECT * FROM Model WHERE id = <numeric_id>
```
also doesn't work. | 2010/10/06 | [
"https://Stackoverflow.com/questions/3869858",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/123611/"
] | Try this:
```
SELECT * FROM Model where __key__ = KEY('Model', <numeric_id>)
``` | Unfortunately, there does not appear to be a way to write a query equivalent to
```
SELECT * FROM Model WHERE id = <numeric_id>
```
which would select all Model entities with the given id. If you're ok with something equivalent to
```
SELECT * FROM Model WHERE id = <numeric_id> AND parent IS NULL
```
you can use ... |
3,869,858 | I want to build GQL query to get an object using its numeric id. I'm doing this in Datastore viewer in App management console, so I can't use Model.get\_by\_id(numeric\_id). Something like
```
SELECT * FROM Model WHERE id = <numeric_id>
```
also doesn't work. | 2010/10/06 | [
"https://Stackoverflow.com/questions/3869858",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/123611/"
] | Try this:
```
SELECT * FROM Model where __key__ = KEY('Model', <numeric_id>)
``` | Another way around is, first get the key for the entity using the id by
```
key = db.Key.from_path('Model', int(id))
```
then get the object by
```
obj = db.get(key)
```
The advantage is, you do not have to do any string formatting.
reference: problem set 3 at this course, <https://classroom.udacity.com/courses/... |
3,869,858 | I want to build GQL query to get an object using its numeric id. I'm doing this in Datastore viewer in App management console, so I can't use Model.get\_by\_id(numeric\_id). Something like
```
SELECT * FROM Model WHERE id = <numeric_id>
```
also doesn't work. | 2010/10/06 | [
"https://Stackoverflow.com/questions/3869858",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/123611/"
] | Try this:
```
SELECT * FROM Model where __key__ = KEY('Model', <numeric_id>)
``` | I was getting this error:
>
> GQL Query error: Encountered ... at line 1, column 42. Was expecting
> one of: UNQUOTED\_NAME ... QUOTED\_NAME ..."
>
>
>
It turns out that in the Google AppEngine datastore developer's admin console, you should drop the quotes and use something like this:
```
SELECT * FROM MyEntit... |
3,869,858 | I want to build GQL query to get an object using its numeric id. I'm doing this in Datastore viewer in App management console, so I can't use Model.get\_by\_id(numeric\_id). Something like
```
SELECT * FROM Model WHERE id = <numeric_id>
```
also doesn't work. | 2010/10/06 | [
"https://Stackoverflow.com/questions/3869858",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/123611/"
] | Unfortunately, there does not appear to be a way to write a query equivalent to
```
SELECT * FROM Model WHERE id = <numeric_id>
```
which would select all Model entities with the given id. If you're ok with something equivalent to
```
SELECT * FROM Model WHERE id = <numeric_id> AND parent IS NULL
```
you can use ... | In my case I had to change the type of ID from String to Long |
3,869,858 | I want to build GQL query to get an object using its numeric id. I'm doing this in Datastore viewer in App management console, so I can't use Model.get\_by\_id(numeric\_id). Something like
```
SELECT * FROM Model WHERE id = <numeric_id>
```
also doesn't work. | 2010/10/06 | [
"https://Stackoverflow.com/questions/3869858",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/123611/"
] | Another way around is, first get the key for the entity using the id by
```
key = db.Key.from_path('Model', int(id))
```
then get the object by
```
obj = db.get(key)
```
The advantage is, you do not have to do any string formatting.
reference: problem set 3 at this course, <https://classroom.udacity.com/courses/... | In my case I had to change the type of ID from String to Long |
3,869,858 | I want to build GQL query to get an object using its numeric id. I'm doing this in Datastore viewer in App management console, so I can't use Model.get\_by\_id(numeric\_id). Something like
```
SELECT * FROM Model WHERE id = <numeric_id>
```
also doesn't work. | 2010/10/06 | [
"https://Stackoverflow.com/questions/3869858",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/123611/"
] | I was getting this error:
>
> GQL Query error: Encountered ... at line 1, column 42. Was expecting
> one of: UNQUOTED\_NAME ... QUOTED\_NAME ..."
>
>
>
It turns out that in the Google AppEngine datastore developer's admin console, you should drop the quotes and use something like this:
```
SELECT * FROM MyEntit... | In my case I had to change the type of ID from String to Long |
3,869,858 | I want to build GQL query to get an object using its numeric id. I'm doing this in Datastore viewer in App management console, so I can't use Model.get\_by\_id(numeric\_id). Something like
```
SELECT * FROM Model WHERE id = <numeric_id>
```
also doesn't work. | 2010/10/06 | [
"https://Stackoverflow.com/questions/3869858",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/123611/"
] | Unfortunately, there does not appear to be a way to write a query equivalent to
```
SELECT * FROM Model WHERE id = <numeric_id>
```
which would select all Model entities with the given id. If you're ok with something equivalent to
```
SELECT * FROM Model WHERE id = <numeric_id> AND parent IS NULL
```
you can use ... | Another way around is, first get the key for the entity using the id by
```
key = db.Key.from_path('Model', int(id))
```
then get the object by
```
obj = db.get(key)
```
The advantage is, you do not have to do any string formatting.
reference: problem set 3 at this course, <https://classroom.udacity.com/courses/... |
3,869,858 | I want to build GQL query to get an object using its numeric id. I'm doing this in Datastore viewer in App management console, so I can't use Model.get\_by\_id(numeric\_id). Something like
```
SELECT * FROM Model WHERE id = <numeric_id>
```
also doesn't work. | 2010/10/06 | [
"https://Stackoverflow.com/questions/3869858",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/123611/"
] | Unfortunately, there does not appear to be a way to write a query equivalent to
```
SELECT * FROM Model WHERE id = <numeric_id>
```
which would select all Model entities with the given id. If you're ok with something equivalent to
```
SELECT * FROM Model WHERE id = <numeric_id> AND parent IS NULL
```
you can use ... | I was getting this error:
>
> GQL Query error: Encountered ... at line 1, column 42. Was expecting
> one of: UNQUOTED\_NAME ... QUOTED\_NAME ..."
>
>
>
It turns out that in the Google AppEngine datastore developer's admin console, you should drop the quotes and use something like this:
```
SELECT * FROM MyEntit... |
3,869,858 | I want to build GQL query to get an object using its numeric id. I'm doing this in Datastore viewer in App management console, so I can't use Model.get\_by\_id(numeric\_id). Something like
```
SELECT * FROM Model WHERE id = <numeric_id>
```
also doesn't work. | 2010/10/06 | [
"https://Stackoverflow.com/questions/3869858",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/123611/"
] | Another way around is, first get the key for the entity using the id by
```
key = db.Key.from_path('Model', int(id))
```
then get the object by
```
obj = db.get(key)
```
The advantage is, you do not have to do any string formatting.
reference: problem set 3 at this course, <https://classroom.udacity.com/courses/... | I was getting this error:
>
> GQL Query error: Encountered ... at line 1, column 42. Was expecting
> one of: UNQUOTED\_NAME ... QUOTED\_NAME ..."
>
>
>
It turns out that in the Google AppEngine datastore developer's admin console, you should drop the quotes and use something like this:
```
SELECT * FROM MyEntit... |
33,507,519 | This message is written to the console in the simplest of Akka.net sample applications.
>
> [INFO][11/3/2015 7:21:06 PM][Thread 0008][akka://TestActorSystem/user]
> Message DeathWatchNotification from akka://TestActorSystem/user to
> akka://TestActorSystem/user was not delivered. 1 dead letters
> encountered.
>
>... | 2015/11/03 | [
"https://Stackoverflow.com/questions/33507519",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/196020/"
] | you're calling `testActorSystem.Shutdown();` - this shuts down the `ActorSystem`. This kills off all of the actors, including the built-in system ones - so `DeathWatchNotification`s are fired as part of the shutdown and cleanup process. In this case the message you're seeing the the /user guardian actor shutting itself... | To prevent this error you have to do the following until they fix their default logging level to be WARNING where it should be.
Add the following to your app config and the INFO log message will go away. @Aaronontheweb has stated in the bug report states that this message is "nothing to be worried about".
```
<config... |
29,143,184 | The OpenGL functions `glVertexAttribPointer` and `glVertexAttribFormat` allow the user to specify the format for data which will be bound to a given attribute variable in the shader program when rendering. Vertex attribute format is information like the data type (`int`, `float`, `byte`, etc), the number of dimensions ... | 2015/03/19 | [
"https://Stackoverflow.com/questions/29143184",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3798126/"
] | Ask yourself what happens when they don't match.
This allows to specify storage data structure that differ from the in-shader usage itself. So say you store packed rgba8, you still likely want to do floating point math with it. so you declare it as vec4 in the shader, but use RGBA8 as your vertex data format. And GL w... | So what happens if you have more than one attribute? Or what if you want to store Position, Color, and Normals? This in my experience applies specifically to UV coordinates.
Because then your attribute will only be size 2 not 3. Because your texture will only have 2 coordinates(Ignoring possibility of 3D textures). Wh... |
29,143,184 | The OpenGL functions `glVertexAttribPointer` and `glVertexAttribFormat` allow the user to specify the format for data which will be bound to a given attribute variable in the shader program when rendering. Vertex attribute format is information like the data type (`int`, `float`, `byte`, etc), the number of dimensions ... | 2015/03/19 | [
"https://Stackoverflow.com/questions/29143184",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3798126/"
] | Well, design decisions are made in every API. There mostly isn't only one way to accomplish a given task, and to some degree this is just the way it was defined in this case.
I don't have any direct insight on the decision making behind this, but can think of a few considerations that provide valid motivation for this... | So what happens if you have more than one attribute? Or what if you want to store Position, Color, and Normals? This in my experience applies specifically to UV coordinates.
Because then your attribute will only be size 2 not 3. Because your texture will only have 2 coordinates(Ignoring possibility of 3D textures). Wh... |
29,143,184 | The OpenGL functions `glVertexAttribPointer` and `glVertexAttribFormat` allow the user to specify the format for data which will be bound to a given attribute variable in the shader program when rendering. Vertex attribute format is information like the data type (`int`, `float`, `byte`, etc), the number of dimensions ... | 2015/03/19 | [
"https://Stackoverflow.com/questions/29143184",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3798126/"
] | Ask yourself what happens when they don't match.
This allows to specify storage data structure that differ from the in-shader usage itself. So say you store packed rgba8, you still likely want to do floating point math with it. so you declare it as vec4 in the shader, but use RGBA8 as your vertex data format. And GL w... | >
> "t seems to me that I should have specified the format
>
>
>
Uhm no, you did not specify any format, you just fetched an attribute location.
The choice there it's simply because GL gives you a lot flexibility in terms of
1. converting other data types to float for you
2. passing vectors with different sizi... |
29,143,184 | The OpenGL functions `glVertexAttribPointer` and `glVertexAttribFormat` allow the user to specify the format for data which will be bound to a given attribute variable in the shader program when rendering. Vertex attribute format is information like the data type (`int`, `float`, `byte`, etc), the number of dimensions ... | 2015/03/19 | [
"https://Stackoverflow.com/questions/29143184",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3798126/"
] | Well, design decisions are made in every API. There mostly isn't only one way to accomplish a given task, and to some degree this is just the way it was defined in this case.
I don't have any direct insight on the decision making behind this, but can think of a few considerations that provide valid motivation for this... | >
> "t seems to me that I should have specified the format
>
>
>
Uhm no, you did not specify any format, you just fetched an attribute location.
The choice there it's simply because GL gives you a lot flexibility in terms of
1. converting other data types to float for you
2. passing vectors with different sizi... |
30,424,860 | I'm facing an issue with the yum command on a dedicated server (hosted by OVH):
```
[root@mail-server ~]# yum clean all
[root@mail-server ~]# yum update
Modules complémentaires chargés : fastestmirror
One of the configured repositories failed (Inconnu),
and yum doesn't have enough cached data to continue. At this p... | 2015/05/24 | [
"https://Stackoverflow.com/questions/30424860",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1408658/"
] | I solved the problem by typing
```
# dhclient
``` | first you have to go to the /etc/yum.repos.d directory and edit the CentOS-Base.repo using vi editor. look for following lines;
mirrorlist=
baseurl=
========
remove the # sign in the #baseurl if you have difficulties in accessing the baseurl/mirrorlist web address using yum then save and exit the vi editor.
goodluc... |
30,424,860 | I'm facing an issue with the yum command on a dedicated server (hosted by OVH):
```
[root@mail-server ~]# yum clean all
[root@mail-server ~]# yum update
Modules complémentaires chargés : fastestmirror
One of the configured repositories failed (Inconnu),
and yum doesn't have enough cached data to continue. At this p... | 2015/05/24 | [
"https://Stackoverflow.com/questions/30424860",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1408658/"
] | Your DNS doesn't seem to resolve the centos mirror list
Use
>
> # dhclient
>
>
>
or Add "nameserver 8.8.8.8" in "/etc/resolv.conf" file
>
> # vi /etc/resolv.conf [press i] now you are in insert mode
>
>
> nameserver 8.8.8.8 [press: Esc][press :wq]
>
>
> #
>
>
>
hope it work's..! | first you have to go to the /etc/yum.repos.d directory and edit the CentOS-Base.repo using vi editor. look for following lines;
mirrorlist=
baseurl=
========
remove the # sign in the #baseurl if you have difficulties in accessing the baseurl/mirrorlist web address using yum then save and exit the vi editor.
goodluc... |
30,424,860 | I'm facing an issue with the yum command on a dedicated server (hosted by OVH):
```
[root@mail-server ~]# yum clean all
[root@mail-server ~]# yum update
Modules complémentaires chargés : fastestmirror
One of the configured repositories failed (Inconnu),
and yum doesn't have enough cached data to continue. At this p... | 2015/05/24 | [
"https://Stackoverflow.com/questions/30424860",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1408658/"
] | I solved the problem by typing
```
# dhclient
``` | Your DNS doesn't seem to resolve the centos mirror list
Use
>
> # dhclient
>
>
>
or Add "nameserver 8.8.8.8" in "/etc/resolv.conf" file
>
> # vi /etc/resolv.conf [press i] now you are in insert mode
>
>
> nameserver 8.8.8.8 [press: Esc][press :wq]
>
>
> #
>
>
>
hope it work's..! |
6,392,450 | I'm making a C# inventory application. However, I want there to be a map where the user can click several areas and interact with the inventory on that certain area.
Currently I photoshopped the map and made it the background of the form. I'm planning on putting pictureboxes over the different areas and code manually... | 2011/06/17 | [
"https://Stackoverflow.com/questions/6392450",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/804031/"
] | While I don't think this is a bad idea, one alternative would be to use [Rectangles](http://msdn.microsoft.com/en-us/library/1zk39146.aspx) and have an onclick function consisting of a series of [Rectangle.Contains(Point)](http://msdn.microsoft.com/en-us/library/22t27w02.aspx) to find out if the point clicked by the mo... | At CodeProject, someone has created an [ImageMap Control](http://www.codeproject.com/KB/miscctrl/imagemapcontrol.aspx) for this very purpose. I imagine others are available. |
48,225,324 | I am testing how to change text and CSS elements using Javascript
I have three buttons in my HTML, only one so far that I am using (Change Title). I would like to change the H1 Text when I click the button.
Using my current coding, when I click the button nothing happens and I get the following displayed in the web d... | 2018/01/12 | [
"https://Stackoverflow.com/questions/48225324",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3470580/"
] | >
> Can someone please help me understand why the browser says that the
> changeTitle function is not defined when I believe I have defined it
> in the external JS file.
>
>
>
For method invocation from **inline onclick** to work, that method needs to be defined globally. And your **`changeTitle` method is local... | ```js
function changeTitle() {
var title = document.querySelector(".head-title");
title.innerHTML += "<br>(or how to speak like a pirate)";
};
```
```css
* {
margin: 0;
padding: 0;
}
body {
font-family: 'arial', sans-serif;
max-width: 1000px;
margin: 0 auto;
padding-top: 50px;
}
... |
48,225,324 | I am testing how to change text and CSS elements using Javascript
I have three buttons in my HTML, only one so far that I am using (Change Title). I would like to change the H1 Text when I click the button.
Using my current coding, when I click the button nothing happens and I get the following displayed in the web d... | 2018/01/12 | [
"https://Stackoverflow.com/questions/48225324",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3470580/"
] | Purpose of `$(document).ready()`
--------------------------------
```
$(document).ready(function() { /* handling code for the event document.ready */ })
```
First of all you need to understand the purpose of this document.ready handler. When your page loads, your javascripts cannot be certain as of what parts of the... | >
> Can someone please help me understand why the browser says that the
> changeTitle function is not defined when I believe I have defined it
> in the external JS file.
>
>
>
For method invocation from **inline onclick** to work, that method needs to be defined globally. And your **`changeTitle` method is local... |
48,225,324 | I am testing how to change text and CSS elements using Javascript
I have three buttons in my HTML, only one so far that I am using (Change Title). I would like to change the H1 Text when I click the button.
Using my current coding, when I click the button nothing happens and I get the following displayed in the web d... | 2018/01/12 | [
"https://Stackoverflow.com/questions/48225324",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3470580/"
] | Purpose of `$(document).ready()`
--------------------------------
```
$(document).ready(function() { /* handling code for the event document.ready */ })
```
First of all you need to understand the purpose of this document.ready handler. When your page loads, your javascripts cannot be certain as of what parts of the... | ```js
function changeTitle() {
var title = document.querySelector(".head-title");
title.innerHTML += "<br>(or how to speak like a pirate)";
};
```
```css
* {
margin: 0;
padding: 0;
}
body {
font-family: 'arial', sans-serif;
max-width: 1000px;
margin: 0 auto;
padding-top: 50px;
}
... |
64,622,892 | I have the following code but Python keeps saying "*local variable 'a' referenced before assignment*"
```
def inter(X,Y):
if pertenece(cabeza(X),Y):
a = lista(cabeza(X),inter(cola(X),Y))
elif vacia(cola(X)): return a
else: inter(cola(X),Y)
```
I have no idea why I'm getting this error since I hav... | 2020/10/31 | [
"https://Stackoverflow.com/questions/64622892",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14554601/"
] | I think this is because you're initializing var a in an if clause, and refrencing it in another if clause, so considering the condition it may or may not be initialized befored it is referenced in if clause. Can you try to initialize a within the function body before your first if clause, to a empty or null value. Mayb... | You have only defined `a` in the first conditional statement. If the code never goes through that condition, then `a` will never be defined. You would have to assign some default value for `a` before the conditional statements in order to prevent the `return` statement from throwing an error at you. |
24,748,536 | Following this [tutorial](http://developer.android.com/training/sync-adapters/running-sync-adapter.html), I managed to set up a sync adapter to do data sync between Android app and web server. I can see the sync working when I force the app to do sync by toggle the Sync on/off from Settings > Accounts > MyApp.
But, I ... | 2014/07/15 | [
"https://Stackoverflow.com/questions/24748536",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3339913/"
] | You can use claims rules to change the identifier before issuing claims. But the federation metadata will always reveal the real true entityid as nzpcmad said.
So if you federate with AD FS without using the metadata endpoint and manually specify the entityID and endpoints, you can use claims rules to achieve this.
C... | The standard ADFS entity ID in the metadata is:
entityID="http://xxx/adfs/services/trust"
There is only one and it is actually the ADFS URL.
There is no way to change the metadata as well.
You would need two separate ADFS instances. |
331,957 | I'm designing an equipment that will be in a rural area exposed to heavy rains. I already got an IP67 rated enclosure with IP67 connectors and it's working as expected.
I need to measure the ambient pressure so I found [this](http://www.mouser.com/ProductDetail/Infineon-Technologies/DPS310XTSA1/?qs=sGAEpiMZZMtiz6SYu%2... | 2017/09/29 | [
"https://electronics.stackexchange.com/questions/331957",
"https://electronics.stackexchange.com",
"https://electronics.stackexchange.com/users/10386/"
] | That looks like a hydrophobic membrane. These have low surface energies and the force of attraction to the water is less than the surface tension of the water. Because of this the water is able to "ball-up".
[](https://i.stack.imgur.com/H0Q3L.jpg)
*F... | A common type of microphone seal is an acoustic vents from companies like Gore.
* [Venting](https://www.gore.com/products/categories/venting)
These are hard to source for a hobbyist but I've talked them into engineering samples professionally before.
There are readily available barometric pressure sensors that won... |
331,957 | I'm designing an equipment that will be in a rural area exposed to heavy rains. I already got an IP67 rated enclosure with IP67 connectors and it's working as expected.
I need to measure the ambient pressure so I found [this](http://www.mouser.com/ProductDetail/Infineon-Technologies/DPS310XTSA1/?qs=sGAEpiMZZMtiz6SYu%2... | 2017/09/29 | [
"https://electronics.stackexchange.com/questions/331957",
"https://electronics.stackexchange.com",
"https://electronics.stackexchange.com/users/10386/"
] | That looks like a hydrophobic membrane. These have low surface energies and the force of attraction to the water is less than the surface tension of the water. Because of this the water is able to "ball-up".
[](https://i.stack.imgur.com/H0Q3L.jpg)
*F... | I have been using an array of sound sensors. I used a latex membrane stretched over the end of a plastic pipe to house the sensors. This has a limited life.(UV degradation) I am now investigating u bends or a topless jar inside an inverted jar to provide a rainproof maze opening |
331,957 | I'm designing an equipment that will be in a rural area exposed to heavy rains. I already got an IP67 rated enclosure with IP67 connectors and it's working as expected.
I need to measure the ambient pressure so I found [this](http://www.mouser.com/ProductDetail/Infineon-Technologies/DPS310XTSA1/?qs=sGAEpiMZZMtiz6SYu%2... | 2017/09/29 | [
"https://electronics.stackexchange.com/questions/331957",
"https://electronics.stackexchange.com",
"https://electronics.stackexchange.com/users/10386/"
] | One definition of a solution is "pressure-equalized rainscreen" but the volume of air and thermal effects affect the flow.
For pressure equalization at a slower rate, teflon caps are often used as Hydrogen can transfer thru the barrier such as for enclosed lead acid battery charging to make it explosion resistant. Thi... | A common type of microphone seal is an acoustic vents from companies like Gore.
* [Venting](https://www.gore.com/products/categories/venting)
These are hard to source for a hobbyist but I've talked them into engineering samples professionally before.
There are readily available barometric pressure sensors that won... |
331,957 | I'm designing an equipment that will be in a rural area exposed to heavy rains. I already got an IP67 rated enclosure with IP67 connectors and it's working as expected.
I need to measure the ambient pressure so I found [this](http://www.mouser.com/ProductDetail/Infineon-Technologies/DPS310XTSA1/?qs=sGAEpiMZZMtiz6SYu%2... | 2017/09/29 | [
"https://electronics.stackexchange.com/questions/331957",
"https://electronics.stackexchange.com",
"https://electronics.stackexchange.com/users/10386/"
] | One definition of a solution is "pressure-equalized rainscreen" but the volume of air and thermal effects affect the flow.
For pressure equalization at a slower rate, teflon caps are often used as Hydrogen can transfer thru the barrier such as for enclosed lead acid battery charging to make it explosion resistant. Thi... | I have been using an array of sound sensors. I used a latex membrane stretched over the end of a plastic pipe to house the sensors. This has a limited life.(UV degradation) I am now investigating u bends or a topless jar inside an inverted jar to provide a rainproof maze opening |
331,957 | I'm designing an equipment that will be in a rural area exposed to heavy rains. I already got an IP67 rated enclosure with IP67 connectors and it's working as expected.
I need to measure the ambient pressure so I found [this](http://www.mouser.com/ProductDetail/Infineon-Technologies/DPS310XTSA1/?qs=sGAEpiMZZMtiz6SYu%2... | 2017/09/29 | [
"https://electronics.stackexchange.com/questions/331957",
"https://electronics.stackexchange.com",
"https://electronics.stackexchange.com/users/10386/"
] | This is how I solved the problem for a weather station. The sensor is inside a cut-down pill tube with its connection pins sealed. The other end (the cap) has a stainless steel gauze with a communicating hole to the outside. The whole assembly fits tightly into a hole in the underside of the main enclosure and has a ri... | A common type of microphone seal is an acoustic vents from companies like Gore.
* [Venting](https://www.gore.com/products/categories/venting)
These are hard to source for a hobbyist but I've talked them into engineering samples professionally before.
There are readily available barometric pressure sensors that won... |
331,957 | I'm designing an equipment that will be in a rural area exposed to heavy rains. I already got an IP67 rated enclosure with IP67 connectors and it's working as expected.
I need to measure the ambient pressure so I found [this](http://www.mouser.com/ProductDetail/Infineon-Technologies/DPS310XTSA1/?qs=sGAEpiMZZMtiz6SYu%2... | 2017/09/29 | [
"https://electronics.stackexchange.com/questions/331957",
"https://electronics.stackexchange.com",
"https://electronics.stackexchange.com/users/10386/"
] | This is how I solved the problem for a weather station. The sensor is inside a cut-down pill tube with its connection pins sealed. The other end (the cap) has a stainless steel gauze with a communicating hole to the outside. The whole assembly fits tightly into a hole in the underside of the main enclosure and has a ri... | I have been using an array of sound sensors. I used a latex membrane stretched over the end of a plastic pipe to house the sensors. This has a limited life.(UV degradation) I am now investigating u bends or a topless jar inside an inverted jar to provide a rainproof maze opening |
331,957 | I'm designing an equipment that will be in a rural area exposed to heavy rains. I already got an IP67 rated enclosure with IP67 connectors and it's working as expected.
I need to measure the ambient pressure so I found [this](http://www.mouser.com/ProductDetail/Infineon-Technologies/DPS310XTSA1/?qs=sGAEpiMZZMtiz6SYu%2... | 2017/09/29 | [
"https://electronics.stackexchange.com/questions/331957",
"https://electronics.stackexchange.com",
"https://electronics.stackexchange.com/users/10386/"
] | First of all, thanks to all for your suggestions. I couldn't find the suggested Bellows Diaphragm here where I live neither in Mouser or DigiKey where I order almost everything I use for my projects.
I DIY approach wasn't viable in this case because this will be a production run and I needed a ready to use solution. I... | A common type of microphone seal is an acoustic vents from companies like Gore.
* [Venting](https://www.gore.com/products/categories/venting)
These are hard to source for a hobbyist but I've talked them into engineering samples professionally before.
There are readily available barometric pressure sensors that won... |
331,957 | I'm designing an equipment that will be in a rural area exposed to heavy rains. I already got an IP67 rated enclosure with IP67 connectors and it's working as expected.
I need to measure the ambient pressure so I found [this](http://www.mouser.com/ProductDetail/Infineon-Technologies/DPS310XTSA1/?qs=sGAEpiMZZMtiz6SYu%2... | 2017/09/29 | [
"https://electronics.stackexchange.com/questions/331957",
"https://electronics.stackexchange.com",
"https://electronics.stackexchange.com/users/10386/"
] | First of all, thanks to all for your suggestions. I couldn't find the suggested Bellows Diaphragm here where I live neither in Mouser or DigiKey where I order almost everything I use for my projects.
I DIY approach wasn't viable in this case because this will be a production run and I needed a ready to use solution. I... | I have been using an array of sound sensors. I used a latex membrane stretched over the end of a plastic pipe to house the sensors. This has a limited life.(UV degradation) I am now investigating u bends or a topless jar inside an inverted jar to provide a rainproof maze opening |
331,957 | I'm designing an equipment that will be in a rural area exposed to heavy rains. I already got an IP67 rated enclosure with IP67 connectors and it's working as expected.
I need to measure the ambient pressure so I found [this](http://www.mouser.com/ProductDetail/Infineon-Technologies/DPS310XTSA1/?qs=sGAEpiMZZMtiz6SYu%2... | 2017/09/29 | [
"https://electronics.stackexchange.com/questions/331957",
"https://electronics.stackexchange.com",
"https://electronics.stackexchange.com/users/10386/"
] | A common type of microphone seal is an acoustic vents from companies like Gore.
* [Venting](https://www.gore.com/products/categories/venting)
These are hard to source for a hobbyist but I've talked them into engineering samples professionally before.
There are readily available barometric pressure sensors that won... | I have been using an array of sound sensors. I used a latex membrane stretched over the end of a plastic pipe to house the sensors. This has a limited life.(UV degradation) I am now investigating u bends or a topless jar inside an inverted jar to provide a rainproof maze opening |
186,308 | In a world similar set in renaissance times, there are natural occurring stones with the ability to produce flames. The more precious the stone, the higher and stronger quality of the flame/fire. Each stone, whether it's low quality or not, can be chiseled by skilled craftsmen to produce more efficient fires. These fir... | 2020/09/27 | [
"https://worldbuilding.stackexchange.com/questions/186308",
"https://worldbuilding.stackexchange.com",
"https://worldbuilding.stackexchange.com/users/55047/"
] | The way you describe it, they sound like some sort of fissile material, which emits more heat once the fission is activated, and have short lived byproducts.
How does one activate it? Well, just by using a neutron moderator like water, paraffin or graphite. With this you would have heat but no visible flames.
Another... | [Sodium acetate](https://en.wikipedia.org/wiki/Sodium_acetate#Heating_pad) used in heating packs is a good example of trigger-based chimical exothermic reaction.
With a simple "physical" spark (through a little piece of metal), you will trigger the reaction. So you don't need any complicated way to trigger it (unless y... |
186,308 | In a world similar set in renaissance times, there are natural occurring stones with the ability to produce flames. The more precious the stone, the higher and stronger quality of the flame/fire. Each stone, whether it's low quality or not, can be chiseled by skilled craftsmen to produce more efficient fires. These fir... | 2020/09/27 | [
"https://worldbuilding.stackexchange.com/questions/186308",
"https://worldbuilding.stackexchange.com",
"https://worldbuilding.stackexchange.com/users/55047/"
] | You are basically describing magic coal. It is magic because it can maybe burn longer and stronger, but mostly because it is rechargeable. Other than that it is just coal.
You light it up just as non-magical coal, by applying a lot of heat on a small point. You can spin a stick on top of it, or rub two sticks together... | **Love.**
Or what passes as love for the stones. If they touch, they burn. You cannot make fire with just one. If you push them apart, they cool and go out. Or possibly, since they are magic, they go out immediately. |
186,308 | In a world similar set in renaissance times, there are natural occurring stones with the ability to produce flames. The more precious the stone, the higher and stronger quality of the flame/fire. Each stone, whether it's low quality or not, can be chiseled by skilled craftsmen to produce more efficient fires. These fir... | 2020/09/27 | [
"https://worldbuilding.stackexchange.com/questions/186308",
"https://worldbuilding.stackexchange.com",
"https://worldbuilding.stackexchange.com/users/55047/"
] | ### Blow on it
A steady, uniform, 5 second blow will make the stone hotter and hotter until it eventually catches. Just like a coal from an old campfire reigniting when blown on.
To deactivate - cool down or cut off oxygen. So cover with sand, water, cloth, etc.
This gives them a defined value too - they can't be pi... | The way you describe it, they sound like some sort of fissile material, which emits more heat once the fission is activated, and have short lived byproducts.
How does one activate it? Well, just by using a neutron moderator like water, paraffin or graphite. With this you would have heat but no visible flames.
Another... |
186,308 | In a world similar set in renaissance times, there are natural occurring stones with the ability to produce flames. The more precious the stone, the higher and stronger quality of the flame/fire. Each stone, whether it's low quality or not, can be chiseled by skilled craftsmen to produce more efficient fires. These fir... | 2020/09/27 | [
"https://worldbuilding.stackexchange.com/questions/186308",
"https://worldbuilding.stackexchange.com",
"https://worldbuilding.stackexchange.com/users/55047/"
] | ### Blow on it
A steady, uniform, 5 second blow will make the stone hotter and hotter until it eventually catches. Just like a coal from an old campfire reigniting when blown on.
To deactivate - cool down or cut off oxygen. So cover with sand, water, cloth, etc.
This gives them a defined value too - they can't be pi... | [Sodium acetate](https://en.wikipedia.org/wiki/Sodium_acetate#Heating_pad) used in heating packs is a good example of trigger-based chimical exothermic reaction.
With a simple "physical" spark (through a little piece of metal), you will trigger the reaction. So you don't need any complicated way to trigger it (unless y... |
186,308 | In a world similar set in renaissance times, there are natural occurring stones with the ability to produce flames. The more precious the stone, the higher and stronger quality of the flame/fire. Each stone, whether it's low quality or not, can be chiseled by skilled craftsmen to produce more efficient fires. These fir... | 2020/09/27 | [
"https://worldbuilding.stackexchange.com/questions/186308",
"https://worldbuilding.stackexchange.com",
"https://worldbuilding.stackexchange.com/users/55047/"
] | You are basically describing magic coal. It is magic because it can maybe burn longer and stronger, but mostly because it is rechargeable. Other than that it is just coal.
You light it up just as non-magical coal, by applying a lot of heat on a small point. You can spin a stick on top of it, or rub two sticks together... | [Sodium acetate](https://en.wikipedia.org/wiki/Sodium_acetate#Heating_pad) used in heating packs is a good example of trigger-based chimical exothermic reaction.
With a simple "physical" spark (through a little piece of metal), you will trigger the reaction. So you don't need any complicated way to trigger it (unless y... |
186,308 | In a world similar set in renaissance times, there are natural occurring stones with the ability to produce flames. The more precious the stone, the higher and stronger quality of the flame/fire. Each stone, whether it's low quality or not, can be chiseled by skilled craftsmen to produce more efficient fires. These fir... | 2020/09/27 | [
"https://worldbuilding.stackexchange.com/questions/186308",
"https://worldbuilding.stackexchange.com",
"https://worldbuilding.stackexchange.com/users/55047/"
] | ### Blow on it
A steady, uniform, 5 second blow will make the stone hotter and hotter until it eventually catches. Just like a coal from an old campfire reigniting when blown on.
To deactivate - cool down or cut off oxygen. So cover with sand, water, cloth, etc.
This gives them a defined value too - they can't be pi... | The fire stones are both spark and fuel but they still need a combustive.
They are mined underwater or in caves where every trace of oxygen has been burnt. They are stored in airtight containers and when you want to use them, you just take them out to open air.
If you want to store them away for reuse, smother the st... |
186,308 | In a world similar set in renaissance times, there are natural occurring stones with the ability to produce flames. The more precious the stone, the higher and stronger quality of the flame/fire. Each stone, whether it's low quality or not, can be chiseled by skilled craftsmen to produce more efficient fires. These fir... | 2020/09/27 | [
"https://worldbuilding.stackexchange.com/questions/186308",
"https://worldbuilding.stackexchange.com",
"https://worldbuilding.stackexchange.com/users/55047/"
] | You are basically describing magic coal. It is magic because it can maybe burn longer and stronger, but mostly because it is rechargeable. Other than that it is just coal.
You light it up just as non-magical coal, by applying a lot of heat on a small point. You can spin a stick on top of it, or rub two sticks together... | The way you describe it, they sound like some sort of fissile material, which emits more heat once the fission is activated, and have short lived byproducts.
How does one activate it? Well, just by using a neutron moderator like water, paraffin or graphite. With this you would have heat but no visible flames.
Another... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.