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
17,366,083
I am using Guava. i get a "the method toStringHelper() is undefined for the type Objects error" in eclipse. i was working with no errors when suddenly these errors started coming. ``` @Override public String toString() { return Objects .toStringHelper(this) .add("id", this.id) .add("custid"...
2013/06/28
[ "https://Stackoverflow.com/questions/17366083", "https://Stackoverflow.com", "https://Stackoverflow.com/users/834219/" ]
I would check that you don't have Google Collections (the predecessor to Guava) on your classpath anywhere, e.g. `google-collect-1.0.jar`. It has a version of the `Objects` class that doesn't have the `toStringHelper` methods. Another weird possibility is that you have a generic type `Objects` defined somewhere in the...
Your code is correct. It seems to be your Eclipse that screws up. Do a full clean/rebuild of your project, and/or restart your Eclipse and your system. It is voodoo, I know, but it often helps when Eclipse starts producing senseless errors.
17,366,083
I am using Guava. i get a "the method toStringHelper() is undefined for the type Objects error" in eclipse. i was working with no errors when suddenly these errors started coming. ``` @Override public String toString() { return Objects .toStringHelper(this) .add("id", this.id) .add("custid"...
2013/06/28
[ "https://Stackoverflow.com/questions/17366083", "https://Stackoverflow.com", "https://Stackoverflow.com/users/834219/" ]
I would check that you don't have Google Collections (the predecessor to Guava) on your classpath anywhere, e.g. `google-collect-1.0.jar`. It has a version of the `Objects` class that doesn't have the `toStringHelper` methods. Another weird possibility is that you have a generic type `Objects` defined somewhere in the...
Ok so got the problem fixed now. Apparently eclipse when deploying a web project adds osgi libraries one of them had a backdated version of guava without the ToStringHelper method. Removed that and no problems anymore.
12,735
OCSP stapling decreases the load on a PKI infrastructure's OCSP server by attaching a signed OCSP response to the target in a TLS connection. In addition it creates a more secure/private session since the CA doesn't know that your browser is accessing a given site. Some people have compared this behavior to Kerberos. ...
2012/03/15
[ "https://security.stackexchange.com/questions/12735", "https://security.stackexchange.com", "https://security.stackexchange.com/users/396/" ]
My impression is that [OCSP stapling is not well supported on the client side](https://web.archive.org/web/20151017004901/https://blogs.msdn.com/b/ieinternals/archive/2011/04/07/10151106.aspx?Redirected=true), but it's possible my information might be out of date. Firefox apparently supports OCSP stapling, as of Firef...
IE has supported it since Vista, Chrome supports it on Windows via CryptoAPI and on other platforms via patches to NSS it made that Firefox has not accepted, Opera has also supported it for several years. Firefox has the worst revocation behavior of any browser on a number of fronts its lack of support of OCSP stapling...
12,735
OCSP stapling decreases the load on a PKI infrastructure's OCSP server by attaching a signed OCSP response to the target in a TLS connection. In addition it creates a more secure/private session since the CA doesn't know that your browser is accessing a given site. Some people have compared this behavior to Kerberos. ...
2012/03/15
[ "https://security.stackexchange.com/questions/12735", "https://security.stackexchange.com", "https://security.stackexchange.com/users/396/" ]
My impression is that [OCSP stapling is not well supported on the client side](https://web.archive.org/web/20151017004901/https://blogs.msdn.com/b/ieinternals/archive/2011/04/07/10151106.aspx?Redirected=true), but it's possible my information might be out of date. Firefox apparently supports OCSP stapling, as of Firef...
Even with OCSP stapling, the act of verifying the OCSP signature may expose personal information to the OCSP signing root. Additionally the OCSP singing root can be a 3rd party to the entire infrastructure as shown here: ![PKI hierarchy with two roots](https://i.stack.imgur.com/T0ESx.gif) [source](http://technet.micr...
12,735
OCSP stapling decreases the load on a PKI infrastructure's OCSP server by attaching a signed OCSP response to the target in a TLS connection. In addition it creates a more secure/private session since the CA doesn't know that your browser is accessing a given site. Some people have compared this behavior to Kerberos. ...
2012/03/15
[ "https://security.stackexchange.com/questions/12735", "https://security.stackexchange.com", "https://security.stackexchange.com/users/396/" ]
My impression is that [OCSP stapling is not well supported on the client side](https://web.archive.org/web/20151017004901/https://blogs.msdn.com/b/ieinternals/archive/2011/04/07/10151106.aspx?Redirected=true), but it's possible my information might be out of date. Firefox apparently supports OCSP stapling, as of Firef...
You can test OCSP stapling support in Your browser on <http://www.vpnhosting.cz/ocsp>. It is in Czech language, if You can see OCSP\_stapling\_disabled, OCSP stapling is disabled, OCSP\_stapling\_enabled means, that OCSP stapling works.
12,735
OCSP stapling decreases the load on a PKI infrastructure's OCSP server by attaching a signed OCSP response to the target in a TLS connection. In addition it creates a more secure/private session since the CA doesn't know that your browser is accessing a given site. Some people have compared this behavior to Kerberos. ...
2012/03/15
[ "https://security.stackexchange.com/questions/12735", "https://security.stackexchange.com", "https://security.stackexchange.com/users/396/" ]
IE has supported it since Vista, Chrome supports it on Windows via CryptoAPI and on other platforms via patches to NSS it made that Firefox has not accepted, Opera has also supported it for several years. Firefox has the worst revocation behavior of any browser on a number of fronts its lack of support of OCSP stapling...
Even with OCSP stapling, the act of verifying the OCSP signature may expose personal information to the OCSP signing root. Additionally the OCSP singing root can be a 3rd party to the entire infrastructure as shown here: ![PKI hierarchy with two roots](https://i.stack.imgur.com/T0ESx.gif) [source](http://technet.micr...
12,735
OCSP stapling decreases the load on a PKI infrastructure's OCSP server by attaching a signed OCSP response to the target in a TLS connection. In addition it creates a more secure/private session since the CA doesn't know that your browser is accessing a given site. Some people have compared this behavior to Kerberos. ...
2012/03/15
[ "https://security.stackexchange.com/questions/12735", "https://security.stackexchange.com", "https://security.stackexchange.com/users/396/" ]
You can test OCSP stapling support in Your browser on <http://www.vpnhosting.cz/ocsp>. It is in Czech language, if You can see OCSP\_stapling\_disabled, OCSP stapling is disabled, OCSP\_stapling\_enabled means, that OCSP stapling works.
IE has supported it since Vista, Chrome supports it on Windows via CryptoAPI and on other platforms via patches to NSS it made that Firefox has not accepted, Opera has also supported it for several years. Firefox has the worst revocation behavior of any browser on a number of fronts its lack of support of OCSP stapling...
12,735
OCSP stapling decreases the load on a PKI infrastructure's OCSP server by attaching a signed OCSP response to the target in a TLS connection. In addition it creates a more secure/private session since the CA doesn't know that your browser is accessing a given site. Some people have compared this behavior to Kerberos. ...
2012/03/15
[ "https://security.stackexchange.com/questions/12735", "https://security.stackexchange.com", "https://security.stackexchange.com/users/396/" ]
You can test OCSP stapling support in Your browser on <http://www.vpnhosting.cz/ocsp>. It is in Czech language, if You can see OCSP\_stapling\_disabled, OCSP stapling is disabled, OCSP\_stapling\_enabled means, that OCSP stapling works.
Even with OCSP stapling, the act of verifying the OCSP signature may expose personal information to the OCSP signing root. Additionally the OCSP singing root can be a 3rd party to the entire infrastructure as shown here: ![PKI hierarchy with two roots](https://i.stack.imgur.com/T0ESx.gif) [source](http://technet.micr...
25,705
Is there any way that allows me to create a timer job without having to code it? Any application out there that abstracts the coding?
2011/12/21
[ "https://sharepoint.stackexchange.com/questions/25705", "https://sharepoint.stackexchange.com", "https://sharepoint.stackexchange.com/users/2985/" ]
Not that I am aware of. I think it’s hard if not impossible for someone to come up with a product which can (efficiently) address enormous amount of possibilities with SharePoint without custom code. There is a “SharePoint Timer job Item” VS.NET extension which can download and get started with a template for your cu...
Sounds like a good idea for a codeplex project. Maybe you already have a class library, or a powershell script that you want to run on your SharePoint server on a scheduled basis, and instead of coding the timer job wrapper yourself, you use a framework which will abstract away the timer job details, and allow you to c...
25,705
Is there any way that allows me to create a timer job without having to code it? Any application out there that abstracts the coding?
2011/12/21
[ "https://sharepoint.stackexchange.com/questions/25705", "https://sharepoint.stackexchange.com", "https://sharepoint.stackexchange.com/users/2985/" ]
Not that I am aware of. I think it’s hard if not impossible for someone to come up with a product which can (efficiently) address enormous amount of possibilities with SharePoint without custom code. There is a “SharePoint Timer job Item” VS.NET extension which can download and get started with a template for your cu...
Some timer job functionality you can configure by using [Information management policy](http://technet.microsoft.com/en-us/library/cc262490.aspx#section4). For example, you can move the item to the recycle bin or audit document viewing.
25,705
Is there any way that allows me to create a timer job without having to code it? Any application out there that abstracts the coding?
2011/12/21
[ "https://sharepoint.stackexchange.com/questions/25705", "https://sharepoint.stackexchange.com", "https://sharepoint.stackexchange.com/users/2985/" ]
What activity would you expect to execute with a custom timer job without coding? This would mean you would not have access to the server object model or be able to interact with SharePoint internally. You probably should create a windows scheduled task to do what you need to do if you don't need to interact with Shar...
Sounds like a good idea for a codeplex project. Maybe you already have a class library, or a powershell script that you want to run on your SharePoint server on a scheduled basis, and instead of coding the timer job wrapper yourself, you use a framework which will abstract away the timer job details, and allow you to c...
25,705
Is there any way that allows me to create a timer job without having to code it? Any application out there that abstracts the coding?
2011/12/21
[ "https://sharepoint.stackexchange.com/questions/25705", "https://sharepoint.stackexchange.com", "https://sharepoint.stackexchange.com/users/2985/" ]
What activity would you expect to execute with a custom timer job without coding? This would mean you would not have access to the server object model or be able to interact with SharePoint internally. You probably should create a windows scheduled task to do what you need to do if you don't need to interact with Shar...
Some timer job functionality you can configure by using [Information management policy](http://technet.microsoft.com/en-us/library/cc262490.aspx#section4). For example, you can move the item to the recycle bin or audit document viewing.
4,563,465
I need to write a program (in C#), to run in the client local machine, that will show a list of our windows servers (Sort of the server names in a ListBox) and let the user choose and subsequently connect via RDC. However, the program needs to know if the user is already connected to one of the listed servers, in which...
2010/12/30
[ "https://Stackoverflow.com/questions/4563465", "https://Stackoverflow.com", "https://Stackoverflow.com/users/558380/" ]
If you want to convert number to hex representation just use ToString with "x" as param: ``` 2010.ToString("x") output: "7da" ``` However, I don't really understand what to you want to achieve if you say that for 2010, you expect 200A.
Are you really sure that your example is correct? Why do you have a hex-number, where the first part is with base 10 and the second part is base 16? *Normal* would one of these: * 2010 => 0x07DA + complete hex * 2010 => 0x140A + the number is broken half-way and each part is hex * 2010 => 0x2010 + bcd encoded as f...
4,563,465
I need to write a program (in C#), to run in the client local machine, that will show a list of our windows servers (Sort of the server names in a ListBox) and let the user choose and subsequently connect via RDC. However, the program needs to know if the user is already connected to one of the listed servers, in which...
2010/12/30
[ "https://Stackoverflow.com/questions/4563465", "https://Stackoverflow.com", "https://Stackoverflow.com/users/558380/" ]
Well, even though the numbers don't seem to make sense, this is what I came up with (giving the results *you're* expecting (from the examples provided). Take this through the wringer and see if it comes out with all the results you are expecting: ``` static Int32 GetYearFromBCD(Int32 time) { List<Int32> YearList =...
Are you really sure that your example is correct? Why do you have a hex-number, where the first part is with base 10 and the second part is base 16? *Normal* would one of these: * 2010 => 0x07DA + complete hex * 2010 => 0x140A + the number is broken half-way and each part is hex * 2010 => 0x2010 + bcd encoded as f...
4,563,465
I need to write a program (in C#), to run in the client local machine, that will show a list of our windows servers (Sort of the server names in a ListBox) and let the user choose and subsequently connect via RDC. However, the program needs to know if the user is already connected to one of the listed servers, in which...
2010/12/30
[ "https://Stackoverflow.com/questions/4563465", "https://Stackoverflow.com", "https://Stackoverflow.com/users/558380/" ]
Well, even though the numbers don't seem to make sense, this is what I came up with (giving the results *you're* expecting (from the examples provided). Take this through the wringer and see if it comes out with all the results you are expecting: ``` static Int32 GetYearFromBCD(Int32 time) { List<Int32> YearList =...
If you want to convert number to hex representation just use ToString with "x" as param: ``` 2010.ToString("x") output: "7da" ``` However, I don't really understand what to you want to achieve if you say that for 2010, you expect 200A.
1,284,756
I want to solve the following linear differential equation (initial value problem): $$t\dot{x}(t)+3x(t)=-\frac{1}{t^2+1}; x(1)=\frac{\pi}{4}$$ I first tried to solve the homogeneous diff. eq. $$t\dot{x}(t)+3x(t)=0$$ $$x(t)=C\exp(-\int\frac{b(t)}{a(t)})dt)\iff x(t)=C\exp(-3\ln(t)+k)$$ Variation of parameters: $$x(...
2015/05/16
[ "https://math.stackexchange.com/questions/1284756", "https://math.stackexchange.com", "https://math.stackexchange.com/users/197849/" ]
You first probably need to realize that $\exp{(-3 \ln{t})} = 1/t^3$. You can see where the solution comes from by simply multiplying through by $t^2$: $$t^3 \dot{x} + 3 t^2 x = -\frac{t^2}{1+t^2} = \frac1{1+t^2}-1$$ or $$\frac{d}{dt} (t^3 x) = \frac1{1+t^2}-1$$ Hopefully that makes the solution clear.
<http://mathworld.wolfram.com/IntegratingFactor.html> You need to understand this technique. This is the general solution to all first order linear ordinary differential equations. VERY IMPORTANT: Don't forget the arbitrary constant of integration.
488,857
Consider this hypothetical scenario: 1. You make plans with a significant other 2. They bail on you because they are too tired 3. You find out they went out with someone else 4. You ask, despite knowing the answer, "did you end up going to sleep early last night?" 5. They respond, "Ya" 6. You respond, "That was a(n) \...
2019/03/08
[ "https://english.stackexchange.com/questions/488857", "https://english.stackexchange.com", "https://english.stackexchange.com/users/339365/" ]
I wonder if what you're really looking for is the answer that you know, or the name of a question that you ask to check on someone. You could say that it was really a ***test***. In the event of catching a lying partner, you would say that you are performing a ***test*** since you know the truth and are ***testing*** ...
I was looking into it some more, and I think it might be a mix between: * **Control Question** - Developed from **recently confirmed** information from other sources that is not likely to have changed. (Polygraph type questions) * **Suggestive Question** - Purposely limit certain answers and suggest others. Specifical...
488,857
Consider this hypothetical scenario: 1. You make plans with a significant other 2. They bail on you because they are too tired 3. You find out they went out with someone else 4. You ask, despite knowing the answer, "did you end up going to sleep early last night?" 5. They respond, "Ya" 6. You respond, "That was a(n) \...
2019/03/08
[ "https://english.stackexchange.com/questions/488857", "https://english.stackexchange.com", "https://english.stackexchange.com/users/339365/" ]
It's a "[**leading**](https://en.wikipedia.org/wiki/Leading_question)" question or an "[**interrogating**](https://www.thefreedictionary.com/interrogating)" question. It is designed to prompt a specific confirmatory response. However, if those seem too general or insufficient, you might consider "[**verifying**](https...
**probative** (adj.) > > 1: serving to test or try: EXPLORATORY > > > 2: serving to prove: SUBSTANTIATING [m-w](https://www.merriam-webster.com/dictionary/probative) > > > --- > > **Probative questions** evolve from your reasonable expectations derived from the investigation and your education and experience....
488,857
Consider this hypothetical scenario: 1. You make plans with a significant other 2. They bail on you because they are too tired 3. You find out they went out with someone else 4. You ask, despite knowing the answer, "did you end up going to sleep early last night?" 5. They respond, "Ya" 6. You respond, "That was a(n) \...
2019/03/08
[ "https://english.stackexchange.com/questions/488857", "https://english.stackexchange.com", "https://english.stackexchange.com/users/339365/" ]
I wonder if what you're really looking for is the answer that you know, or the name of a question that you ask to check on someone. You could say that it was really a ***test***. In the event of catching a lying partner, you would say that you are performing a ***test*** since you know the truth and are ***testing*** ...
I think I would call it a type of ***loaded question***. The reason I say "type of" is because it doesn't exactly fit the more common understanding of "loaded question", which is described by Wikipedia as: > > Aside from being an informal fallacy depending on usage, such > questions may be used as a rhetorical tool:...
488,857
Consider this hypothetical scenario: 1. You make plans with a significant other 2. They bail on you because they are too tired 3. You find out they went out with someone else 4. You ask, despite knowing the answer, "did you end up going to sleep early last night?" 5. They respond, "Ya" 6. You respond, "That was a(n) \...
2019/03/08
[ "https://english.stackexchange.com/questions/488857", "https://english.stackexchange.com", "https://english.stackexchange.com/users/339365/" ]
It's a "[**leading**](https://en.wikipedia.org/wiki/Leading_question)" question or an "[**interrogating**](https://www.thefreedictionary.com/interrogating)" question. It is designed to prompt a specific confirmatory response. However, if those seem too general or insufficient, you might consider "[**verifying**](https...
I was looking into it some more, and I think it might be a mix between: * **Control Question** - Developed from **recently confirmed** information from other sources that is not likely to have changed. (Polygraph type questions) * **Suggestive Question** - Purposely limit certain answers and suggest others. Specifical...
488,857
Consider this hypothetical scenario: 1. You make plans with a significant other 2. They bail on you because they are too tired 3. You find out they went out with someone else 4. You ask, despite knowing the answer, "did you end up going to sleep early last night?" 5. They respond, "Ya" 6. You respond, "That was a(n) \...
2019/03/08
[ "https://english.stackexchange.com/questions/488857", "https://english.stackexchange.com", "https://english.stackexchange.com/users/339365/" ]
I thought of three words that may be appropriate for what you’re trying to achieve; those words are: baited, provocative, and goad. I know it's not the best source, but urbandictionary.com defines baited as, "To be lured into ***a situation which exposes a person for something they may have wanted to keep hidden*** or...
I think I would call it a type of ***loaded question***. The reason I say "type of" is because it doesn't exactly fit the more common understanding of "loaded question", which is described by Wikipedia as: > > Aside from being an informal fallacy depending on usage, such > questions may be used as a rhetorical tool:...
488,857
Consider this hypothetical scenario: 1. You make plans with a significant other 2. They bail on you because they are too tired 3. You find out they went out with someone else 4. You ask, despite knowing the answer, "did you end up going to sleep early last night?" 5. They respond, "Ya" 6. You respond, "That was a(n) \...
2019/03/08
[ "https://english.stackexchange.com/questions/488857", "https://english.stackexchange.com", "https://english.stackexchange.com/users/339365/" ]
I thought of three words that may be appropriate for what you’re trying to achieve; those words are: baited, provocative, and goad. I know it's not the best source, but urbandictionary.com defines baited as, "To be lured into ***a situation which exposes a person for something they may have wanted to keep hidden*** or...
**probative** (adj.) > > 1: serving to test or try: EXPLORATORY > > > 2: serving to prove: SUBSTANTIATING [m-w](https://www.merriam-webster.com/dictionary/probative) > > > --- > > **Probative questions** evolve from your reasonable expectations derived from the investigation and your education and experience....
488,857
Consider this hypothetical scenario: 1. You make plans with a significant other 2. They bail on you because they are too tired 3. You find out they went out with someone else 4. You ask, despite knowing the answer, "did you end up going to sleep early last night?" 5. They respond, "Ya" 6. You respond, "That was a(n) \...
2019/03/08
[ "https://english.stackexchange.com/questions/488857", "https://english.stackexchange.com", "https://english.stackexchange.com/users/339365/" ]
I think I would call it a type of ***loaded question***. The reason I say "type of" is because it doesn't exactly fit the more common understanding of "loaded question", which is described by Wikipedia as: > > Aside from being an informal fallacy depending on usage, such > questions may be used as a rhetorical tool:...
I was looking into it some more, and I think it might be a mix between: * **Control Question** - Developed from **recently confirmed** information from other sources that is not likely to have changed. (Polygraph type questions) * **Suggestive Question** - Purposely limit certain answers and suggest others. Specifical...
488,857
Consider this hypothetical scenario: 1. You make plans with a significant other 2. They bail on you because they are too tired 3. You find out they went out with someone else 4. You ask, despite knowing the answer, "did you end up going to sleep early last night?" 5. They respond, "Ya" 6. You respond, "That was a(n) \...
2019/03/08
[ "https://english.stackexchange.com/questions/488857", "https://english.stackexchange.com", "https://english.stackexchange.com/users/339365/" ]
**probative** (adj.) > > 1: serving to test or try: EXPLORATORY > > > 2: serving to prove: SUBSTANTIATING [m-w](https://www.merriam-webster.com/dictionary/probative) > > > --- > > **Probative questions** evolve from your reasonable expectations derived from the investigation and your education and experience....
I was looking into it some more, and I think it might be a mix between: * **Control Question** - Developed from **recently confirmed** information from other sources that is not likely to have changed. (Polygraph type questions) * **Suggestive Question** - Purposely limit certain answers and suggest others. Specifical...
488,857
Consider this hypothetical scenario: 1. You make plans with a significant other 2. They bail on you because they are too tired 3. You find out they went out with someone else 4. You ask, despite knowing the answer, "did you end up going to sleep early last night?" 5. They respond, "Ya" 6. You respond, "That was a(n) \...
2019/03/08
[ "https://english.stackexchange.com/questions/488857", "https://english.stackexchange.com", "https://english.stackexchange.com/users/339365/" ]
It's a "[**leading**](https://en.wikipedia.org/wiki/Leading_question)" question or an "[**interrogating**](https://www.thefreedictionary.com/interrogating)" question. It is designed to prompt a specific confirmatory response. However, if those seem too general or insufficient, you might consider "[**verifying**](https...
I think I would call it a type of ***loaded question***. The reason I say "type of" is because it doesn't exactly fit the more common understanding of "loaded question", which is described by Wikipedia as: > > Aside from being an informal fallacy depending on usage, such > questions may be used as a rhetorical tool:...
488,857
Consider this hypothetical scenario: 1. You make plans with a significant other 2. They bail on you because they are too tired 3. You find out they went out with someone else 4. You ask, despite knowing the answer, "did you end up going to sleep early last night?" 5. They respond, "Ya" 6. You respond, "That was a(n) \...
2019/03/08
[ "https://english.stackexchange.com/questions/488857", "https://english.stackexchange.com", "https://english.stackexchange.com/users/339365/" ]
It's a "[**leading**](https://en.wikipedia.org/wiki/Leading_question)" question or an "[**interrogating**](https://www.thefreedictionary.com/interrogating)" question. It is designed to prompt a specific confirmatory response. However, if those seem too general or insufficient, you might consider "[**verifying**](https...
I wonder if what you're really looking for is the answer that you know, or the name of a question that you ask to check on someone. You could say that it was really a ***test***. In the event of catching a lying partner, you would say that you are performing a ***test*** since you know the truth and are ***testing*** ...
4,710,462
I would like to publish paid application to android market, so I added android LVL into my apk. I have tested on my mobile. When I install apps, it shows the permission to check phone status, market license. After installation, I try to run and prompt "license not found and go to market to purchase". It seems that it w...
2011/01/17
[ "https://Stackoverflow.com/questions/4710462", "https://Stackoverflow.com", "https://Stackoverflow.com/users/471567/" ]
It's been a few months, but this bump might help someone out there - just answered this question for a friend of mine who claimed to not find the answer here. Sounds like you don't have a Google experience emulator setup. Create a new emulator using the Google API version of android targets, you ought to be able to do ...
You can set up a test account through your publisher account panel. (You will need to set up a publisher's account if you haven't already.) Check the [developer documentation on licensing](http://developer.android.com/guide/publishing/licensing.html) for details, especially the section on administrative settings for li...
4,710,462
I would like to publish paid application to android market, so I added android LVL into my apk. I have tested on my mobile. When I install apps, it shows the permission to check phone status, market license. After installation, I try to run and prompt "license not found and go to market to purchase". It seems that it w...
2011/01/17
[ "https://Stackoverflow.com/questions/4710462", "https://Stackoverflow.com", "https://Stackoverflow.com/users/471567/" ]
It's been a few months, but this bump might help someone out there - just answered this question for a friend of mine who claimed to not find the answer here. Sounds like you don't have a Google experience emulator setup. Create a new emulator using the Google API version of android targets, you ought to be able to do ...
altough the docs give long detailed instructions on adding licensing to an app, and much of the sample code can be edited for bare-bones licensing, i've found little on testing that licensing with the Google API as if it were the buyer of your app. the "Setting Up for Licensing" in the docs details "signing into an aut...
72,055,407
``` import pandas as pd import glob import csv import re from bs4 import BeautifulSoup links_with_text = [] textfile = open("a_file.txt", "w") for filename in glob.iglob('*.html'): with open(filename) as f: soup = BeautifulSoup(f) links_with_text = [a['href'] for a in soup.find_all('a', href=True) if a.text...
2022/04/29
[ "https://Stackoverflow.com/questions/72055407", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7608640/" ]
Something like this should work: ``` export default function App() { return ( <div className="App"> <tr> <td>Time: {getCurrentTime()}</td> </tr> </div> ); } export function getCurrentTime () { let today = new Date(); let dateTime = (today.getHours() < 10 ? `0${today.getHours()}` : ...
I did not understand what you meant, but I think you wanted something like that: ```js const getCurrentTime = () => { const date = new Date(); const hours = date.getHours(); const minutes = date.getMinutes(); const seconds = date.getSeconds(); const timeString = `${hours.toString().length === 1 ? `...
19,909,514
I m writing a c++ program using files and i need to take the input from existing files such as doc files and pdf files. how to program it in c++? And after getting the inputs, how can i write those details into a new doc or pdf files? Can anyone explain me with an example?
2013/11/11
[ "https://Stackoverflow.com/questions/19909514", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2299439/" ]
C++ as a language doesn't equip you with such features as "write to DOC file" or "read from PDF file". The only staff available to you a a programmer is raw byte-by-byte reading or writing. To make your new brand file as PDF/DOC/etc compatible you have to conform the chosen file format. The same about reading - you sho...
There are some libraries available on the web now(the question is from 2013, maybe that time there weren't many). Apart from the links in selected answer, you can try PDFTron. It also supports new features, eg. Linearization. Here is one of their samples is -> <https://www.pdftron.com/documentation/samples/cpp/TextEx...
66,424
How to pass the abscissa of a node to the first 2 mandatory arguments of `\psplot`? I have tried `\psGetCenterNode` but it produced an error in PS interpreting phase. ``` \documentclass[border=12pt,pstricks]{standalone} \usepackage{pstricks-add,pst-eucl} \def\foo{x \psPi\space div 180 mul sin} \def\goo{x \psPi\space ...
2012/08/09
[ "https://tex.stackexchange.com/questions/66424", "https://tex.stackexchange.com", "https://tex.stackexchange.com/users/19356/" ]
``` \documentclass{article} \usepackage{pst-plot,pst-eucl} \def\foo{x RadtoDeg sin} \def\goo{x RadtoDeg cos} \def\hoo{x} \begin{document} \begin{pspicture}[showgrid=bottom](0,-2)(5,2) \psplot[linecolor=red]{0}{4.5}{\foo} \psplot[linecolor=blue]{0}{4.5}{\goo} \pstInterFF{\foo}{\goo}{0}{A} \pstInterFF{\f...
Just another method. ``` \documentclass[border=12pt,pstricks]{standalone} \usepackage{pst-eucl,pst-plot} \def\foo{(sin(x))} \def\goo{(cos(x))} \def\hoo{(x)} \pstVerb{/I2P {AlgParser cvx exec} def} \begin{document} \begin{pspicture}[showgrid=bottom,algebraic,saveNodeCoors](0,-2)(5,2) \psplot[linecolor=red]{0}{4.5...
62,539,231
I am subscribed to a mail list where some of the messages are non-english which I cannot understand. How do I filter the non-english messages to `/dev/null` using `procmail` and/or command line tools? I use `procmail` to filter my email, so ideally any alternative tool would also require a `procmail` recipe. I'd pre...
2020/06/23
[ "https://Stackoverflow.com/questions/62539231", "https://Stackoverflow.com", "https://Stackoverflow.com/users/100129/" ]
One way is to use the perl [TextCat](https://www.let.rug.nl/vannoord/TextCat/) package from [Gertjan van Noord](https://www.let.rug.nl/vannoord/). The `text_cat` script outputs the most likely language for the mail. This recipe assumes `text_cat` has been installed under `/usr/local/bin`. Here is a simple `procmail` ...
Many modern email clients identify the character set of the email message, though not usually its language. If you want to discard Japanese, Chinese, Korean, and Russian messages, you could try something like ``` :0HB * ^Content-type:[ ]*text/[/;]*;[ ]*charset="?(iso-2022|ks-c|gb|koi|cp-1251) foreign ``` Because s...
7,552,054
Is there a way to get the name of the user, given only their username? Something like this output `git show <username>` (I know this doesn't work) ``` username: username name: First Last email: email@address ``` I know I can do this with a GitHub api call, but would prefer to keep it within the CLI.
2011/09/26
[ "https://Stackoverflow.com/questions/7552054", "https://Stackoverflow.com", "https://Stackoverflow.com/users/791794/" ]
You can try this to get infos like: * username: `git config --get user.name` * user email: `git config --get user.email` There's nothing like "first name" and "last name" for the user. Hope this will help.
Old thread, but since it's still the first hit on Google search, I'll add my two cents. Most answers are technically not correct. As [@knittl](https://stackoverflow.com/a/7552869/226819) indicated: to get the username, you'll have to query the service hosting your code, as git itself has no notion of users. You can con...
7,552,054
Is there a way to get the name of the user, given only their username? Something like this output `git show <username>` (I know this doesn't work) ``` username: username name: First Last email: email@address ``` I know I can do this with a GitHub api call, but would prefer to keep it within the CLI.
2011/09/26
[ "https://Stackoverflow.com/questions/7552054", "https://Stackoverflow.com", "https://Stackoverflow.com/users/791794/" ]
`git config --list` `git config -l` will display your username and email together, along with other info
its So Simple You Just Copy and Past **For List Of All Config** :- `git config --list` **and Also You Can Try** :- `git config -l` if you need to perticular Than You Can Use **user name** :- `git config user.name` **user email** :- `git config user.email` If you need To add Config Than **user name** :- `git conf...
7,552,054
Is there a way to get the name of the user, given only their username? Something like this output `git show <username>` (I know this doesn't work) ``` username: username name: First Last email: email@address ``` I know I can do this with a GitHub api call, but would prefer to keep it within the CLI.
2011/09/26
[ "https://Stackoverflow.com/questions/7552054", "https://Stackoverflow.com", "https://Stackoverflow.com/users/791794/" ]
Use this to see the logged in user (the actual git account): ``` git config credential.username ``` And as other answers the user email and user name (this is differenct from user credentials): ``` git config user.name git config user.email ``` To see the list of all configs: ``` git config --list ```
if you are using GitHub CLI (because `git` is already installed): ``` grep "user:" ~/.config/gh/hosts.yml ``` --- 2022: Unless you manually set a token by hand, you need to use `gh` cli with `git` in order to be able to `git push` to your own GitHub repos. `gh` cli can be used to automatically set token credential ...
7,552,054
Is there a way to get the name of the user, given only their username? Something like this output `git show <username>` (I know this doesn't work) ``` username: username name: First Last email: email@address ``` I know I can do this with a GitHub api call, but would prefer to keep it within the CLI.
2011/09/26
[ "https://Stackoverflow.com/questions/7552054", "https://Stackoverflow.com", "https://Stackoverflow.com/users/791794/" ]
*Git itself* (the command line client, i.e. the ["stupid content tracker"](https://git-scm.com/docs/git)) has no notion of user names, only GitHub does. In other words: there is no mapping of GitHub usernames to author/committer names and e-mails stored in a Git repository. When creating a commit with Git it uses the ...
Old thread, but since it's still the first hit on Google search, I'll add my two cents. Most answers are technically not correct. As [@knittl](https://stackoverflow.com/a/7552869/226819) indicated: to get the username, you'll have to query the service hosting your code, as git itself has no notion of users. You can con...
7,552,054
Is there a way to get the name of the user, given only their username? Something like this output `git show <username>` (I know this doesn't work) ``` username: username name: First Last email: email@address ``` I know I can do this with a GitHub api call, but would prefer to keep it within the CLI.
2011/09/26
[ "https://Stackoverflow.com/questions/7552054", "https://Stackoverflow.com", "https://Stackoverflow.com/users/791794/" ]
*Git itself* (the command line client, i.e. the ["stupid content tracker"](https://git-scm.com/docs/git)) has no notion of user names, only GitHub does. In other words: there is no mapping of GitHub usernames to author/committer names and e-mails stored in a Git repository. When creating a commit with Git it uses the ...
You can try this to get infos like: * username: `git config --get user.name` * user email: `git config --get user.email` There's nothing like "first name" and "last name" for the user. Hope this will help.
7,552,054
Is there a way to get the name of the user, given only their username? Something like this output `git show <username>` (I know this doesn't work) ``` username: username name: First Last email: email@address ``` I know I can do this with a GitHub api call, but would prefer to keep it within the CLI.
2011/09/26
[ "https://Stackoverflow.com/questions/7552054", "https://Stackoverflow.com", "https://Stackoverflow.com/users/791794/" ]
``` git config user.name git config user.email ``` I believe these are the commands you are looking for. [Here is where I found them](http://alvinalexander.com/git/git-show-change-username-email-address)
`git config --list` `git config -l` will display your username and email together, along with other info
7,552,054
Is there a way to get the name of the user, given only their username? Something like this output `git show <username>` (I know this doesn't work) ``` username: username name: First Last email: email@address ``` I know I can do this with a GitHub api call, but would prefer to keep it within the CLI.
2011/09/26
[ "https://Stackoverflow.com/questions/7552054", "https://Stackoverflow.com", "https://Stackoverflow.com/users/791794/" ]
Use this to see the logged in user (the actual git account): ``` git config credential.username ``` And as other answers the user email and user name (this is differenct from user credentials): ``` git config user.name git config user.email ``` To see the list of all configs: ``` git config --list ```
its So Simple You Just Copy and Past **For List Of All Config** :- `git config --list` **and Also You Can Try** :- `git config -l` if you need to perticular Than You Can Use **user name** :- `git config user.name` **user email** :- `git config user.email` If you need To add Config Than **user name** :- `git conf...
7,552,054
Is there a way to get the name of the user, given only their username? Something like this output `git show <username>` (I know this doesn't work) ``` username: username name: First Last email: email@address ``` I know I can do this with a GitHub api call, but would prefer to keep it within the CLI.
2011/09/26
[ "https://Stackoverflow.com/questions/7552054", "https://Stackoverflow.com", "https://Stackoverflow.com/users/791794/" ]
*Git itself* (the command line client, i.e. the ["stupid content tracker"](https://git-scm.com/docs/git)) has no notion of user names, only GitHub does. In other words: there is no mapping of GitHub usernames to author/committer names and e-mails stored in a Git repository. When creating a commit with Git it uses the ...
`git config --list` `git config -l` will display your username and email together, along with other info
7,552,054
Is there a way to get the name of the user, given only their username? Something like this output `git show <username>` (I know this doesn't work) ``` username: username name: First Last email: email@address ``` I know I can do this with a GitHub api call, but would prefer to keep it within the CLI.
2011/09/26
[ "https://Stackoverflow.com/questions/7552054", "https://Stackoverflow.com", "https://Stackoverflow.com/users/791794/" ]
*Git itself* (the command line client, i.e. the ["stupid content tracker"](https://git-scm.com/docs/git)) has no notion of user names, only GitHub does. In other words: there is no mapping of GitHub usernames to author/committer names and e-mails stored in a Git repository. When creating a commit with Git it uses the ...
its So Simple You Just Copy and Past **For List Of All Config** :- `git config --list` **and Also You Can Try** :- `git config -l` if you need to perticular Than You Can Use **user name** :- `git config user.name` **user email** :- `git config user.email` If you need To add Config Than **user name** :- `git conf...
7,552,054
Is there a way to get the name of the user, given only their username? Something like this output `git show <username>` (I know this doesn't work) ``` username: username name: First Last email: email@address ``` I know I can do this with a GitHub api call, but would prefer to keep it within the CLI.
2011/09/26
[ "https://Stackoverflow.com/questions/7552054", "https://Stackoverflow.com", "https://Stackoverflow.com/users/791794/" ]
*Git itself* (the command line client, i.e. the ["stupid content tracker"](https://git-scm.com/docs/git)) has no notion of user names, only GitHub does. In other words: there is no mapping of GitHub usernames to author/committer names and e-mails stored in a Git repository. When creating a commit with Git it uses the ...
While its true that git commits don't have a specific field called "username", a git repo does have users, and the users do have names. ;) If what you want is the github username, then knittl's answer is right. But since your question asked about git cli and not github, here's how you get a git user's email address usi...
3,240,094
I am trying to pull data from my populated javascript table. How do I pull the value from a javascript row? I am using ``` for (var i = 0; i < rowCount; i++) { var row = table.rows[i]; //This is where I am having trouble var chkboxIndicator = row.cells[0].childNode...
2010/07/13
[ "https://Stackoverflow.com/questions/3240094", "https://Stackoverflow.com", "https://Stackoverflow.com/users/54197/" ]
jQuery is an option because it makes event handling consistent across browsers, however, writing a simple function that does it is across all browsers in a concise manner is fairly trivial too, so just for this widget I wouldn't recommend creating a dependency on jQuery. Oh, and think of the input type as a widget or ...
I have been looking for an answer to this question too. I do think Google calendar is a great example of how this can be done well, I think there is still a good opportunity for some kind of JQuery plugin or other javascript library. For any given web applications it will be rare that a GUI will need to be able to c...
3,240,094
I am trying to pull data from my populated javascript table. How do I pull the value from a javascript row? I am using ``` for (var i = 0; i < rowCount; i++) { var row = table.rows[i]; //This is where I am having trouble var chkboxIndicator = row.cells[0].childNode...
2010/07/13
[ "https://Stackoverflow.com/questions/3240094", "https://Stackoverflow.com", "https://Stackoverflow.com/users/54197/" ]
OK, so I ended up using the Struts 2 component tag and just passing parameters to that to generate the appropriate code with different names. This worked the best for me since using this I was still able to nest Struts 2 tags and I'm not sure if I would have been able to do that by defining my own taglib.
I have been looking for an answer to this question too. I do think Google calendar is a great example of how this can be done well, I think there is still a good opportunity for some kind of JQuery plugin or other javascript library. For any given web applications it will be rare that a GUI will need to be able to c...
11,110,383
For some reason, when I try to check a file against FileAttributes.Normal, it seems like almost none of my files are showing up in my search. According to the API, that's because some other attributes are set. That's OK, I'll just need to search by what I *don't* want. This is where the problem comes in. I'm incredibl...
2012/06/19
[ "https://Stackoverflow.com/questions/11110383", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1464630/" ]
What this is doing is giving you just those attributes that you selected. ``` if ((File.GetAttributes(stringFileName) & (FileAttributes.System | FileAttributes.Hidden | FileAttributes.Archive | FileAttributes.Encrypted | FileAttributes.Temporary)) != 0) ``` There, just swap the equality for an inequality. Th...
Your logic is backwards. If any match is found then the result of bitwise and (&) is non-zero. **Examples:** *A match:* 0101000 & 0100000 = 0100000 != 0 *No match:* 0101000 & 0010000 = 0000000
11,110,383
For some reason, when I try to check a file against FileAttributes.Normal, it seems like almost none of my files are showing up in my search. According to the API, that's because some other attributes are set. That's OK, I'll just need to search by what I *don't* want. This is where the problem comes in. I'm incredibl...
2012/06/19
[ "https://Stackoverflow.com/questions/11110383", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1464630/" ]
If you want the files with only the Normal attribute set then ``` if (File.GetAttributes(stringFileName) == FileAttributes.Normal) // True, file with only Normal attribute else // False, file with some attributes but not the Normal one ``` [According to MSDN](http://msdn.microsoft.com/en-us/library/system.io...
Your logic is backwards. If any match is found then the result of bitwise and (&) is non-zero. **Examples:** *A match:* 0101000 & 0100000 = 0100000 != 0 *No match:* 0101000 & 0010000 = 0000000
11,110,383
For some reason, when I try to check a file against FileAttributes.Normal, it seems like almost none of my files are showing up in my search. According to the API, that's because some other attributes are set. That's OK, I'll just need to search by what I *don't* want. This is where the problem comes in. I'm incredibl...
2012/06/19
[ "https://Stackoverflow.com/questions/11110383", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1464630/" ]
If you want the files with only the Normal attribute set then ``` if (File.GetAttributes(stringFileName) == FileAttributes.Normal) // True, file with only Normal attribute else // False, file with some attributes but not the Normal one ``` [According to MSDN](http://msdn.microsoft.com/en-us/library/system.io...
What this is doing is giving you just those attributes that you selected. ``` if ((File.GetAttributes(stringFileName) & (FileAttributes.System | FileAttributes.Hidden | FileAttributes.Archive | FileAttributes.Encrypted | FileAttributes.Temporary)) != 0) ``` There, just swap the equality for an inequality. Th...
66,283,541
Below are samples for both template and component file. Using [min] property does not bind to the form input on the template. Any help will be very much appreaciated. ``` <mat-form-field> <mat-label>Enter a date range</mat-label> <mat-date-range-input [formGroup]="range" [rangePicker]="picker"> <input matStart...
2021/02/19
[ "https://Stackoverflow.com/questions/66283541", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6165270/" ]
You're using `mat-date-range-input` you can't apply min and max to input. You need to apply that on your `mat-date-range-input` ``` <mat-date-range-input [formGroup]="range" [rangePicker]="picker" [min]="minDate"> ... </mat-date-range-input> ```
set minDate to currentDate ``` constructor() { this.minDate = new Date(); } ```
742,678
Lately I have been trying to redirect to HTTPS using Nginx but I keep getting a redirect loop after I try to visit my site in a browser. Here is my full server block config file: ``` server { listen 80 default_server; listen [::]:80 default_server ipv6only=on; listen 443 ssl; root /var/www; index ...
2015/12/12
[ "https://serverfault.com/questions/742678", "https://serverfault.com", "https://serverfault.com/users/326923/" ]
As it stands, you're redirecting all traffic to `https`, which is good for `http` traffic, but for `https` traffic is quite pointless, and results in a redirection loop. What is happening right now is the following: `http` -> `https` -> `https` -> `https` -> `https` -> `https` ... and so on for quite a bit, up until th...
Ok, I found the issue. I need two server blocks. One listens on port 80 and redirects to 443. I added this to the top of my conf: ``` server { listen 80 ; server_name melone.co; return 301 https://$server_name$request_uri; } ```
68,552,226
I have two data frames. df\_sub is a subset of the main data frame, df. I want to take a subset of df based on df\_sub where the resulting data frame is going to be df\_sub plus the observations that occur before and after. As an example, consider the two data sets ``` df <- data.frame(var1 = c("a", "x", "x", "y", "z...
2021/07/27
[ "https://Stackoverflow.com/questions/68552226", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8304241/" ]
We could use `match` to get the index, then add or subtract 1 on those index, take the `unique` and subset the rows ``` v1 <- na.omit(match(do.call(paste, df_sub), do.call(paste, df)) ) df[unique(v1 + rep(c(-1, 0, 1), each = length(v1))),] ``` -output ``` var1 var2 2 x 1 3 x 2 4 y 45 5 z 56 ...
You can create a row number to keep track of the rows that are selected via join. Subset the data by including minimum row number - 1 and maximum row number + 1. ``` library(dplyr) tmp <- df %>% mutate(row = row_number()) %>% inner_join(df_sub, by = c("var1", "var2")) df[c(min(tmp$row) - 1, tmp$row, max(tmp$row)...
88,218
I run the following query and irrelevant of the point coordinates and radius I always recieve all the records of the table I'm querying. Can anyone point out what the problem could be with this query? ``` SELECT * FROM Buildings WHERE ST_DWithin(geom, ST_Buffer(ST_GeomFromText('POINT(0 0)', 26918), 2000, 'quad_segs=8'...
2014/03/01
[ "https://gis.stackexchange.com/questions/88218", "https://gis.stackexchange.com", "https://gis.stackexchange.com/users/27122/" ]
To select all buildings that fall into a selected circular buffer with a 2000 radius you need this command: ``` SELECT * FROM Buildings WHERE ST_DWithin(geom, (SELECT ST_GeomFromText('POINT(0 0)', 26918)), 2000); ``` See [this](http://suite.opengeo.org/opengeo-docs/dataadmin/pgBasics/spatialrelationships.html), for ...
This is a total shot in the dark. Check the coordinate system for your building table, if it's not in UTM 18N it could be causing the query to return everything.
88,218
I run the following query and irrelevant of the point coordinates and radius I always recieve all the records of the table I'm querying. Can anyone point out what the problem could be with this query? ``` SELECT * FROM Buildings WHERE ST_DWithin(geom, ST_Buffer(ST_GeomFromText('POINT(0 0)', 26918), 2000, 'quad_segs=8'...
2014/03/01
[ "https://gis.stackexchange.com/questions/88218", "https://gis.stackexchange.com", "https://gis.stackexchange.com/users/27122/" ]
To select all buildings that fall into a selected circular buffer with a 2000 radius you need this command: ``` SELECT * FROM Buildings WHERE ST_DWithin(geom, (SELECT ST_GeomFromText('POINT(0 0)', 26918)), 2000); ``` See [this](http://suite.opengeo.org/opengeo-docs/dataadmin/pgBasics/spatialrelationships.html), for ...
Based on the output you've shown (which would have been a lot easier to read if you'd converted it to EWKT first), your data is referenced to EPSG 4326 (that is what the E610 part of the geometry blob is - 4326 in hexadecimal). EPSG 4326 is WGS-84 long/lat. The [documentation for ST\_DWithin](http://postgis.org/docs/S...
3,003,882
Guys could anyone tell me what's wrong am I doing here? Below are four files Client, main, Server, main. I'm getting an error on Client side after trying to fromServer.readLine(). Error: Error in Client Software caused connection abort: recv failed ``` package client; import java.io.*; ...
2010/06/09
[ "https://Stackoverflow.com/questions/3003882", "https://Stackoverflow.com", "https://Stackoverflow.com/users/207177/" ]
WF is meant for long-running asynchronous tasks. It allows you to return some data to the user while the task you started is still running. It also allows you to update the user on the tasks progress and properly handle task failures. If your tasks are taking a lot of time to complete (too much to handle in one postb...
You can easily integrate workflow state with Nicholas Blumhardt Stateless. See my [SO anwser here.](https://stackoverflow.com/questions/1966950/workflow-design-dilemma-state-machine-yes-or-no/1980034#1980034) With this framework you can quickly integrate state machine capabilities into your domain. The state can be re...
549,718
I'm confused about the nonlinear dispersion relation like $\omega(k) ∝ k^2$. Does this kind of wave have multiple frequencies? I have always considered the linear dispersion case, $\omega(k) ∝ k$, so I cannot imagine how the wave having nonlinear dispersion relation has its form. Please help me out.
2020/05/06
[ "https://physics.stackexchange.com/questions/549718", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/252758/" ]
> > Does this kind of wave have multiple frequencies? > > > For the dispersion relation to be *useful* (as opposed to just being true) then yes. We find the dispersion relation of a wave by putting in a trial solution of the form $e^{i(kx-\omega t)}$ and then working out the conditions on $\omega = \omega(k)$ for...
I'm not sure what you mean by "multiple frequencies." Do you mean does it have different (angular) frequencies at different $k$? Then, yes. Or, do you mean, does it have multiple different angular frequencies, as opposed to just one, at a given fixed $k$? Different question; insufficient information to answer. Anywa...
549,718
I'm confused about the nonlinear dispersion relation like $\omega(k) ∝ k^2$. Does this kind of wave have multiple frequencies? I have always considered the linear dispersion case, $\omega(k) ∝ k$, so I cannot imagine how the wave having nonlinear dispersion relation has its form. Please help me out.
2020/05/06
[ "https://physics.stackexchange.com/questions/549718", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/252758/" ]
> > Does this kind of wave have multiple frequencies? > > > For the dispersion relation to be *useful* (as opposed to just being true) then yes. We find the dispersion relation of a wave by putting in a trial solution of the form $e^{i(kx-\omega t)}$ and then working out the conditions on $\omega = \omega(k)$ for...
This is in addition to Emilio's answer. It was too long for a comment. From the dispersion relation you can construct a 'wave equation'. Take the expression $(\omega-\omega(k))f(x,t)=0$, replace $\omega$ by $-i\frac d{dt}$ and every $k$ in $\omega(k)$ by $i\frac d{dx}$. Then $\omega(k)=ck$ gives you (after squaring) ...
549,718
I'm confused about the nonlinear dispersion relation like $\omega(k) ∝ k^2$. Does this kind of wave have multiple frequencies? I have always considered the linear dispersion case, $\omega(k) ∝ k$, so I cannot imagine how the wave having nonlinear dispersion relation has its form. Please help me out.
2020/05/06
[ "https://physics.stackexchange.com/questions/549718", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/252758/" ]
> > Does this kind of wave have multiple frequencies? > > > For the dispersion relation to be *useful* (as opposed to just being true) then yes. We find the dispersion relation of a wave by putting in a trial solution of the form $e^{i(kx-\omega t)}$ and then working out the conditions on $\omega = \omega(k)$ for...
This is my non-calculus answer, since I don't know your background, so no offense if this is too simple. A "dispersion relation" is called that, precisely because it describes how waves *disperse*. Look at one wave, "wave 1", with a wavenumber $k\_1=1/{\rm m}$, and another wave, "wave 2", with a wavenumber $k\_2=2/{\...
17,764,897
The first input field is for a person's name and then three fields come up where a user is to enter the ingredient name, price and percentage. But if you click inside one of the three input fields and navigate away without entering anything, another row of three fields come up. How do I change so that it so that it...
2013/07/20
[ "https://Stackoverflow.com/questions/17764897", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2506767/" ]
You should have specified a `UNIQUE` constraint on compound column for `INSERT...ON DUPLICATE KEY UPDATE` to work. ``` ALTER TABLE records ADD CONSTRAINT tb_uq UNIQUE (p_id, c_id) ``` and `WHERE` clause is not needed. ``` INSERT into records (name, value, p_id, c_id) VALUES ('Store', 'TX', 1188913, 1133) ON DUPLI...
I had the same problem and the answer can be found here. [Conditional duplicate key updates with MySQL](https://thewebfellas.com/blog/conditional-duplicate-key-updates-with-mysql) The actual answer is that `WHERE` clause does not support in MySQL and you need to use `IF` conditions. Something like this: ``` INSERT ...
5,312,677
`SELECT * FROM products AS p JOIN images AS i ON (p.id = i.product_id)` I want this query also to return results where there are no fields in "images" related to "products". How do I do that?
2011/03/15
[ "https://Stackoverflow.com/questions/5312677", "https://Stackoverflow.com", "https://Stackoverflow.com/users/104833/" ]
You need an `OUTER` join. ``` SELECT * FROM products AS p LEFT JOIN images AS i ON ( p.id = i.product_id ) ``` `LEFT` because you want to preserve all rows from the left (first) table.
You will need to use LEFT JOIN: ``` SELECT * FROM products AS p LEFT JOIN images AS i ON p.id = i.product_id; ```
3,939,141
Can one client call a public property within a VB.NET module and see the value of that public property changed by another client accessing it at the same time? Example: Client 1 calls ``` Public Module DataModule Private theDateTime As DateTime = GetAdjustedDateTime() //initial TZ value Public Property GetS...
2010/10/15
[ "https://Stackoverflow.com/questions/3939141", "https://Stackoverflow.com", "https://Stackoverflow.com/users/119041/" ]
Modules in VB.Net are shared within an `AppDomain`. So two clients within the same `AppDomain` will be operating on the same instance of any given Module. This means one could easily see the results of the other writing to the Module if they are running in parallel in the same `AppDomain` In many ways it's best to vie...
Yes, if by "client" you mean separate threads in a single application (also assuming a single CPU process and a single `AppDomain`). Now, you suggest that it is "alarming" if this is a possibility, so I assume that you want to make sure that this doesn't happen? In order words, you want to ensure that the value of `Ge...
44,896,791
I have a question regarding array's performance with huge amount of elements. I have this big array that currently has about 100 elements and I will keep adding to it in the future so it will get larger and larger with time. My question is, will there be a huge performance impact when this array gets to 500+ elements o...
2017/07/04
[ "https://Stackoverflow.com/questions/44896791", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7578886/" ]
In the same way as setting `id` in `#id` field like, ``` $('#modalEditGroup').on('show.bs.modal', function(e) { var t=$(e.relatedTarget), id = t.data('id'), gname=t.data('gname'), alevel=t.data('alevel'), appby=t.data('appby'); $('#id').val(id); $('#group_name_edit').val(gname); ...
On click of edit button before showing the modal, make an `ajax` call the `ID` and get the details of associated with that `ID` and fill it to the `modal` elements and than show the modal. Ex: ``` $('#modalEditGroup').on('show.bs.modal', function(e) { var id = $(e.relatedTarget).data('id'); // make ajax() c...
1,887,221
> > If the ellipse $\dfrac{x^2}{A}+\dfrac{y^2}{B}=1$ is to enclose the circle $x^2+y^2=2y$, what values of $A,B>0$ minimize the area of the ellipse? > > > So far I've put the circle equation into the standard form: $x^2+(y-1)^2=1$, and I know that $A,B$ represents the length of semi-major and semi-minor axis. I'm ...
2016/08/09
[ "https://math.stackexchange.com/questions/1887221", "https://math.stackexchange.com", "https://math.stackexchange.com/users/343598/" ]
We require the two conics to touch each other. Eliminating $x^2$ leads to the quadratic equation $$(A-B)y^2+2By-AB=0$$ Assuming $A\neq B$, applying the condition that the discriminant is zero leads to the equation $$A^2-AB+B=0$$ We now need to minimize the area $\Delta=\pi\sqrt{AB}$. Therefore we can differentiate $...
From the equation $x^2+(y-1)^2=1$, the circle has center $(0, 1)$ and radius $1$. Therefore the points on it with minimum and maximum $x$ and $y$ values are $(0, 0), (1, 1), (0, 2), (-1, 1)$. Since the ellipse has center at the origin, it has to have a max $y$ value of at least $2$ and a max $x$ value of at least $1$....
1,887,221
> > If the ellipse $\dfrac{x^2}{A}+\dfrac{y^2}{B}=1$ is to enclose the circle $x^2+y^2=2y$, what values of $A,B>0$ minimize the area of the ellipse? > > > So far I've put the circle equation into the standard form: $x^2+(y-1)^2=1$, and I know that $A,B$ represents the length of semi-major and semi-minor axis. I'm ...
2016/08/09
[ "https://math.stackexchange.com/questions/1887221", "https://math.stackexchange.com", "https://math.stackexchange.com/users/343598/" ]
We require the two conics to touch each other. Eliminating $x^2$ leads to the quadratic equation $$(A-B)y^2+2By-AB=0$$ Assuming $A\neq B$, applying the condition that the discriminant is zero leads to the equation $$A^2-AB+B=0$$ We now need to minimize the area $\Delta=\pi\sqrt{AB}$. Therefore we can differentiate $...
The problem has already been solved. If I put a *second* circle $x^2+(y+1)^2=1$ in the diagram, the problem is: > > What is the ellipse of smallest area that can enclose two non-overlapping unit circles? > > > On [Erich Friedman's Packing Centre](https://erich-friedman.github.io/packing/cirinel/) the following an...
61,394,839
I have a problem with the FadeOut function. It fades out only the content and not the white background and border. I noticed if i REMOVE the `.product-div-container` which is outside of the while loop it WORKS. But i need THAT DIV to put a box-shadow behind ALL products. I don't like the box shadow on every product ind...
2020/04/23
[ "https://Stackoverflow.com/questions/61394839", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13325083/" ]
That can be more clearly coded as: ``` a <= (c >= b); ``` `a` is assigned the value of the expression "`c` is greater than or equal to `b`". The 1st `<=` is the nonblocking assignment operator, whereas, the 2nd is the comparison operator.
That is not two consecutive non-blocking assignment. That is `a <= (b<=c);` `b<=c` evaluates to true (1) or false (0) and that value is assigned to `a`. two consecutive non-blocking assignments is not a legal Verilog syntax
11,855
On the page that I display the details of a single Channel entry, I have the following: ``` {exp:channel:entries channel="blogs" disable="categories|category_fields|pagination" dynamic="no" track_views="one" url_title="{segment_3}" } ``` The URL where this page is displayed looks like this: `www....
2013/07/11
[ "https://expressionengine.stackexchange.com/questions/11855", "https://expressionengine.stackexchange.com", "https://expressionengine.stackexchange.com/users/324/" ]
Because view tracking has to be unique, if it's not based on a unique dynamic URL then EE doesn't know it's unique, so you could be rendering out multiple entries on the same URL but specifying different segments or even hard-coding url\_title and EE won't know which one is the unqiue one for that URL/page. To answer ...
Assuming that **blogs** is your template group, and **post** is your template, then you don't need to pass the `url_title`. So your opening Channel Entries tag should look like this: ``` {exp:channel:entries channel="blogs" disable="categories|category_fields|pagination" track_views="one" } ``` Using the...
11,855
On the page that I display the details of a single Channel entry, I have the following: ``` {exp:channel:entries channel="blogs" disable="categories|category_fields|pagination" dynamic="no" track_views="one" url_title="{segment_3}" } ``` The URL where this page is displayed looks like this: `www....
2013/07/11
[ "https://expressionengine.stackexchange.com/questions/11855", "https://expressionengine.stackexchange.com", "https://expressionengine.stackexchange.com/users/324/" ]
Have you tried out [relaxed\_track\_views](http://ellislab.com/expressionengine/user-guide/general/hidden_configuration_variables.html#relaxed-track-views)? You'd add it to /system/expressionengine/config/config.php: ``` $config['relaxed_track_views'] = 'y'; ``` Based on the comments you have Query Caching on, so in...
Assuming that **blogs** is your template group, and **post** is your template, then you don't need to pass the `url_title`. So your opening Channel Entries tag should look like this: ``` {exp:channel:entries channel="blogs" disable="categories|category_fields|pagination" track_views="one" } ``` Using the...
34,743,405
I have a list of position and I would like to know the distances between the closest points. I tried to use distCosine() but there is an issue. Here is what I did: 1. my data, sorted by lat ``` structure(list(lat = c(53.56478, 53.919724, 54.109047, 54.109047, 54.36612, 55.48143, 56.2335, 56.682796, 56.93616, 57.8040...
2016/01/12
[ "https://Stackoverflow.com/questions/34743405", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4421877/" ]
I think you just have to replace `distCosine(data[1,], data[2,])` by `distCosine(data[i,c("long","lat")], data[j,c("long","lat")])`: ``` data <- head(data,5) # smaller example data$a<-outer( seq(nrow(data)), seq(nrow(data)), Vectorize( function(i, j) distCosine(data[i...
Got it with an other function: ``` data<-data[c("long","lat")] distHaversine t<-distHaversine(p1 = data[-nrow(data),], p2 = data[-1,]) a<-0 final<-c(a,t) data$dist<-final a<-0 final<-c(a,t) data$dist<-final ```
2,110,405
As .NET is framework for c# is there any framework for java? I mean whenever people talks about c#, .NET will be involved in that discussion but in case of java i didnt find as such.
2010/01/21
[ "https://Stackoverflow.com/questions/2110405", "https://Stackoverflow.com", "https://Stackoverflow.com/users/241717/" ]
Java is already both a platform and a language. So there are [standard libraries](http://java.sun.com/javase/6/docs/api/) which come with J2SE (and other editions). It's slightly clearer in the .NET world, although people still regularly say C# when they mean .NET or vice versa :( Oh, and JVM (Java Virtual Machine) ~=...
The [Java Framework](http://java.sun.com/javase/6/docs/api/) is the framework for the [Java programming language](http://en.wikipedia.org/wiki/Java_(programming_language)).
73,460,209
I would like a way to programmatically "deconstruct" a vector of variable-length vectors in Julia. I do not care about the resulting vector's order. For example, suppose that my vector of vectors is `A = [[1], [2,3], [4,5,6]]`. I can deconstruct `A` by writing `vcat(A[1], A[2], A[3])`, which returns `[1,2,3,4,5,6]`. H...
2022/08/23
[ "https://Stackoverflow.com/questions/73460209", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17582613/" ]
While I would second Przemyslaw's answer for any situation where you can get away with using a lazy representation, maybe a more direct answer to your question is: ``` julia> vcat(A...) 6-element Vector{Int64}: 1 2 3 4 5 6 ``` whenever you feel the need to type out all elements of a collection as function argu...
Try `Iterators.flatten`: ``` julia> collect(Iterators.flatten(A)) 6-element Vector{Int64}: 1 2 3 4 5 6 ``` (This yields a lazy representation hence I `collect`ed this before showing the output)
36,326,860
i have a command that outputs some data which keeps changing on regular basis. In this data i need to extract some info and build a dictionary out of it. I am specifically looking for those node names which have designation as "quorum" and "quorum-manager" below is the sample output of the command: ``` GPFS cluster i...
2016/03/31
[ "https://Stackoverflow.com/questions/36326860", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2532972/" ]
In this case you have 2 solutions. First is to add this: ``` #filter-manager { float: left; } ``` Second is to make h1 `table` : ``` #filter-manager h1 { display: table; } ```
Try changing the display of the h1 in the css file. If that does not work try and check the `width:30%` and `margin:0` parameters your problem is definitely in there.
36,326,860
i have a command that outputs some data which keeps changing on regular basis. In this data i need to extract some info and build a dictionary out of it. I am specifically looking for those node names which have designation as "quorum" and "quorum-manager" below is the sample output of the command: ``` GPFS cluster i...
2016/03/31
[ "https://Stackoverflow.com/questions/36326860", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2532972/" ]
You should add vertical-align:top in the div with display:inline-block; Also , you dont need display:block in h1 because is by default in h1,h2,h3 etc.. ```css #map-canvas { width: 69%; height: 100px; display: inline-block; background-color:red; vertical-align:top } #filter-manager{ display: i...
Try changing the display of the h1 in the css file. If that does not work try and check the `width:30%` and `margin:0` parameters your problem is definitely in there.
51,373,799
I'm having a hard time trying to save the output of the following command, which gets me the name of the OS to a variable. ``` systeminfo | findstr /B /C:"OS Name" ``` I tried using a for loop as shown below but then the value of the variable is `OS` ``` for /f %%i in ('systeminfo ^| findstr /B /C:"OS Name" ') do ...
2018/07/17
[ "https://Stackoverflow.com/questions/51373799", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4020238/" ]
This may not be the actual answer but it may helps you to find out the way of achieving what you want: ``` onSubmitInvoiceData = () => { const { files } = this.state; if(files.length < 1) this.setState({ isLoading: false, errors: {...this.state.errors, general: ['Gelieve minstens één factuur te uploaden']} }); ...
I think you will just need reduce with promise as follows ``` files.reduce((promiseChain, item, index) => { return promiseChain.then(() => new Promise((resolve) => { //here item is one of the items in files array. this.myFunction(item, resolve); })); }, Promise.resolve()).then((tasks) => { ...
12,787,914
I am trying to open the following url in `UIWebView` but it fails to load whereas changing it to: ``` http://www.google.com ``` works fine. The url that I want to load is: ``` [webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@%@%@%@",@"http://m.forrent.com/s...
2012/10/08
[ "https://Stackoverflow.com/questions/12787914", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1030542/" ]
Your line of code looks convoluted, but basically it is a very simple one. You should breakup this code from a one liner to multiple lines that are more readable. That will also allow you to log and check the URL you actually created, like so: `NSLog(@"My url: %@", urlString);` Update: I see you added the full url....
I would try encoding all of the key/value items in your url. Specifically the curly braces ({}) and the hash (#) symbols may be causing a problem.
47,918,263
I have a laravel 5.4 application in a server, and I get this result when I try to test my app. [![enter image description here](https://i.stack.imgur.com/4BXiW.jpg)](https://i.stack.imgur.com/4BXiW.jpg) My virtual host file ``` <VirtualHost *:80> ServerName plataformafoodif.cl DocumentRoot "/var/www/html/Plataforma-...
2017/12/21
[ "https://Stackoverflow.com/questions/47918263", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3657591/" ]
Imagine the really simple case that you only have 2 items in your list ``` A = [1 3] ``` and you call your `BinarySearch` on an `item` which would lie in the middle of the list. Look at the comments below, which follow how your function behaves... ``` BinarySearch(A, 1, 2, 2) % mid = 1 % item ~= A(1): go to else % ...
Try to set breakpoints to examine values where you think a problem might be. You can use the while loop and the break command to avoid going into infinite loop. For example try something like this: ``` function [index] = binarySearch(A, n, num) left = 1; right = n; flag = 0; while left <= right mid = ceil((left...
62,396,193
I'm new to JS/jQuery so any help is appreciated!: For each anchor that has the *property* attribute, I need to get the src of its child img and apply that value as the href of the parent anchor So for example: ``` <a property="1"> <img src="abc.jpg"> </a> <a property="2"> <img src="def.jpg"> </a> <a proper...
2020/06/15
[ "https://Stackoverflow.com/questions/62396193", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11969156/" ]
The code seems ok, you're using [controlled components](https://reactjs.org/docs/forms.html#controlled-components) along with computed property names to dynamically update each input value. Perhaps there's a typo somewhere? Also, I would double check that `handleInputChange` is inside the main function component. Work...
``` <input type="text" name="newDate" value={newDate} className="datepicker" placeholder="Meeting Date" onChange={(e) => handleInputChange(e)} /> ``` weird, try this.
62,396,193
I'm new to JS/jQuery so any help is appreciated!: For each anchor that has the *property* attribute, I need to get the src of its child img and apply that value as the href of the parent anchor So for example: ``` <a property="1"> <img src="abc.jpg"> </a> <a property="2"> <img src="def.jpg"> </a> <a proper...
2020/06/15
[ "https://Stackoverflow.com/questions/62396193", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11969156/" ]
In my case it was global handler attached to `window` with `e.preventDefault()` that was preventing `onChange`. So if you come here with non-working `onChange` handler - you might want to check if there's any.
``` <input type="text" name="newDate" value={newDate} className="datepicker" placeholder="Meeting Date" onChange={(e) => handleInputChange(e)} /> ``` weird, try this.
62,396,193
I'm new to JS/jQuery so any help is appreciated!: For each anchor that has the *property* attribute, I need to get the src of its child img and apply that value as the href of the parent anchor So for example: ``` <a property="1"> <img src="abc.jpg"> </a> <a property="2"> <img src="def.jpg"> </a> <a proper...
2020/06/15
[ "https://Stackoverflow.com/questions/62396193", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11969156/" ]
In my case it was global handler attached to `window` with `e.preventDefault()` that was preventing `onChange`. So if you come here with non-working `onChange` handler - you might want to check if there's any.
The code seems ok, you're using [controlled components](https://reactjs.org/docs/forms.html#controlled-components) along with computed property names to dynamically update each input value. Perhaps there's a typo somewhere? Also, I would double check that `handleInputChange` is inside the main function component. Work...
120,497
I just got a new Mac Pro with OS X 10.9. When I run: ``` brew doctor ``` I get the warning: ``` Warning: You have MacPorts or Fink installed: /opt/local/bin/port This can cause trouble. You don't have to uninstall them, but you may want to temporarily move them out of the way, e.g. sudo mv /opt/local ~/macports ...
2014/02/10
[ "https://apple.stackexchange.com/questions/120497", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/69982/" ]
Note that some 3rd-party packaging tools may sometimes automatically install MacPorts. I recall RVM does that (or at least used to, I don't know the current state), so while you're not aware of actually installing it manually, it might still be there. If you move `/opt/local` to a different location that might break w...
The error reports that `/opt/local/bin/port` exists. * If you haven't installed it, the error is shown because the path exists. Move the executable: ``` sudo mv /opt/local/bin/port ~/Desktop ``` * If you have installed it, you can run the command given: ``` sudo mv /opt/local ~/macports ```
12,342,923
I have the following AsyncTask in a Fragment (the example is simplified for showing clearly the error): ``` private class LoginTask extends AsyncTask<Void, Void, Void> { @Override protected Void doInBackground(Void... params) { // Do network login return null; } @Override protect...
2012/09/09
[ "https://Stackoverflow.com/questions/12342923", "https://Stackoverflow.com", "https://Stackoverflow.com/users/853836/" ]
In `onPause`, `onStop`, or `onDestroy`, call `.cancel()` on the `AsyncTask` (this may require that your `AsyncTask` is a member variable in your activity). Then, in your `onPostExecute()` method, check if the process was cancelled. ``` protected void onPostExecute(Void result) { if (!isCancelled()) { // Do stuff o...
The [isFinishing()](http://developer.android.com/reference/android/app/Activity.html#isFinishing%28%29) method should help you here. ``` @Override protected void onPostExecute(Void result) { FragmentActivity act = (FragmentActivity) getActivity(); if (act != null && !act.isFinishing() && isAdded())...
2,840,070
I have to find the volume of the solid $\Omega$ which is bounded by the paraboloids $$z=x^{2}+y^{2},\quad z=4x^{2}+4y^{2}$$ by the planes $$y=\sqrt{3}x,\quad y=\frac{\sqrt{3}}{3}x$$ and by the cylinders $$x^{2}+y^{2}=1,\quad x^{2}+y^{2}=4$$ I draw it here: [Omega](https://ggbm.at/s53t4u5q) and I really have no idea how...
2018/07/03
[ "https://math.stackexchange.com/questions/2840070", "https://math.stackexchange.com", "https://math.stackexchange.com/users/136318/" ]
using the fact that $\lim \_{ x\rightarrow 0 }{ \frac { \sin { x } }{ x } } =1\\ $ we get $$\lim \_{ x\rightarrow 1 }{ \frac { \sin { \left( 3{ x }^{ 2 }-5x+2 \right) } }{ { x }^{ 2 }+x-2 } } =\lim \_{ x\rightarrow 1 }{ \frac { \sin { \left( 3{ x }^{ 2 }-5x+2 \right) } }{ 3{ x }^{ 2 }-5x+2 } \frac { 3{ x }^{ 2 }-5x+2 ...
Hint: $$ \frac{\sin(3x^2 - 5x + 2)}{x^2+x-2} = \frac{\sin(3x^2 - 5x + 2)}{3x^2 - 5x + 2}\cdot \frac{3x^2 - 5x + 2}{x^2+x-2}. $$
2,840,070
I have to find the volume of the solid $\Omega$ which is bounded by the paraboloids $$z=x^{2}+y^{2},\quad z=4x^{2}+4y^{2}$$ by the planes $$y=\sqrt{3}x,\quad y=\frac{\sqrt{3}}{3}x$$ and by the cylinders $$x^{2}+y^{2}=1,\quad x^{2}+y^{2}=4$$ I draw it here: [Omega](https://ggbm.at/s53t4u5q) and I really have no idea how...
2018/07/03
[ "https://math.stackexchange.com/questions/2840070", "https://math.stackexchange.com", "https://math.stackexchange.com/users/136318/" ]
using the fact that $\lim \_{ x\rightarrow 0 }{ \frac { \sin { x } }{ x } } =1\\ $ we get $$\lim \_{ x\rightarrow 1 }{ \frac { \sin { \left( 3{ x }^{ 2 }-5x+2 \right) } }{ { x }^{ 2 }+x-2 } } =\lim \_{ x\rightarrow 1 }{ \frac { \sin { \left( 3{ x }^{ 2 }-5x+2 \right) } }{ 3{ x }^{ 2 }-5x+2 } \frac { 3{ x }^{ 2 }-5x+2 ...
$$\lim\_{x\to1} \frac{\sin(3x^2 - 5x + 2)}{x^2+x-2}=\lim\_{x\to1} \frac{\sin(x-1)(3x-2)}{(x-1)(3x-2)}\times\dfrac{(3x-2)}{(x+2)}=\dfrac13$$
2,840,070
I have to find the volume of the solid $\Omega$ which is bounded by the paraboloids $$z=x^{2}+y^{2},\quad z=4x^{2}+4y^{2}$$ by the planes $$y=\sqrt{3}x,\quad y=\frac{\sqrt{3}}{3}x$$ and by the cylinders $$x^{2}+y^{2}=1,\quad x^{2}+y^{2}=4$$ I draw it here: [Omega](https://ggbm.at/s53t4u5q) and I really have no idea how...
2018/07/03
[ "https://math.stackexchange.com/questions/2840070", "https://math.stackexchange.com", "https://math.stackexchange.com/users/136318/" ]
Hint: $$ \frac{\sin(3x^2 - 5x + 2)}{x^2+x-2} = \frac{\sin(3x^2 - 5x + 2)}{3x^2 - 5x + 2}\cdot \frac{3x^2 - 5x + 2}{x^2+x-2}. $$
$$\lim\_{x\to1} \frac{\sin(3x^2 - 5x + 2)}{x^2+x-2}=\lim\_{x\to1} \frac{\sin(x-1)(3x-2)}{(x-1)(3x-2)}\times\dfrac{(3x-2)}{(x+2)}=\dfrac13$$
94,479
Suppose there is a vector bundle (smooth, with constant rank finite-dimensional fibres) over a (smooth, second-countable, Hausdorff, not necessarily connected) manifold $B$ of dimension $n$. (a) Is it true, that the manifold B can be covered by a finite number of sets $U\_1,\dots,U\_N$ s.t. the vector bundle, restrict...
2012/04/19
[ "https://mathoverflow.net/questions/94479", "https://mathoverflow.net", "https://mathoverflow.net/users/8134/" ]
I think what you're looking for (or rediscovering) is the concept of the Lusternik-Schnirelman category of a space - the minimum number of contractible open sets needed to cover the space. More precisely, you need the maximum LS-category of the components of your space.
I wonder that this was not said before. Take a triangulation of your manifold. Choose disjoint open balls around each 0-cell in the triangulation and set the union to be $U\_0$ (a ball means here something diffeomorphic to an open ball). For each 1-cell, choose an open ball such that together with the balls chosen b...
94,479
Suppose there is a vector bundle (smooth, with constant rank finite-dimensional fibres) over a (smooth, second-countable, Hausdorff, not necessarily connected) manifold $B$ of dimension $n$. (a) Is it true, that the manifold B can be covered by a finite number of sets $U\_1,\dots,U\_N$ s.t. the vector bundle, restrict...
2012/04/19
[ "https://mathoverflow.net/questions/94479", "https://mathoverflow.net", "https://mathoverflow.net/users/8134/" ]
The answer (to both questions (a) and (b)) is **YES** (assuming $B$ is a **smooth manifold**). A proof can be found on Walschap's book "[Metric Structures in Differential geometry](http://rads.stackoverflow.com/amzn/click/038720430X)", p. 77, Lemma 7.1. For the OP's convenience, here's a sketch of the proof. Choose an...
I wonder that this was not said before. Take a triangulation of your manifold. Choose disjoint open balls around each 0-cell in the triangulation and set the union to be $U\_0$ (a ball means here something diffeomorphic to an open ball). For each 1-cell, choose an open ball such that together with the balls chosen b...
94,479
Suppose there is a vector bundle (smooth, with constant rank finite-dimensional fibres) over a (smooth, second-countable, Hausdorff, not necessarily connected) manifold $B$ of dimension $n$. (a) Is it true, that the manifold B can be covered by a finite number of sets $U\_1,\dots,U\_N$ s.t. the vector bundle, restrict...
2012/04/19
[ "https://mathoverflow.net/questions/94479", "https://mathoverflow.net", "https://mathoverflow.net/users/8134/" ]
I think what you're looking for (or rediscovering) is the concept of the Lusternik-Schnirelman category of a space - the minimum number of contractible open sets needed to cover the space. More precisely, you need the maximum LS-category of the components of your space.
(a) and (b) are also true for topological manifolds of dimension $n$, see pages 17-21 of * MR0336650 Greub, Werner; Halperin, Stephen; Vanstone, Ray: Connections, curvature, and cohomology. Vol. I: De Rham cohomology of manifolds and vector bundles. Pure and Applied Mathematics, Vol. 47. Academic Press, New York-Lond...
94,479
Suppose there is a vector bundle (smooth, with constant rank finite-dimensional fibres) over a (smooth, second-countable, Hausdorff, not necessarily connected) manifold $B$ of dimension $n$. (a) Is it true, that the manifold B can be covered by a finite number of sets $U\_1,\dots,U\_N$ s.t. the vector bundle, restrict...
2012/04/19
[ "https://mathoverflow.net/questions/94479", "https://mathoverflow.net", "https://mathoverflow.net/users/8134/" ]
This should be a comment to the answer of Andreas Blass, but was too long. The Lusternik-Schnirelmann category $\operatorname{cat}(X)$ of a space $X$ is the smallest number $k$ such that $X$ has a cover by open sets $U\_1,\ldots , U\_k$ which are **contractible in $X$**. This means the inclusions $U\_i\hookrightarrow ...
(a) and (b) are also true for topological manifolds of dimension $n$, see pages 17-21 of * MR0336650 Greub, Werner; Halperin, Stephen; Vanstone, Ray: Connections, curvature, and cohomology. Vol. I: De Rham cohomology of manifolds and vector bundles. Pure and Applied Mathematics, Vol. 47. Academic Press, New York-Lond...
94,479
Suppose there is a vector bundle (smooth, with constant rank finite-dimensional fibres) over a (smooth, second-countable, Hausdorff, not necessarily connected) manifold $B$ of dimension $n$. (a) Is it true, that the manifold B can be covered by a finite number of sets $U\_1,\dots,U\_N$ s.t. the vector bundle, restrict...
2012/04/19
[ "https://mathoverflow.net/questions/94479", "https://mathoverflow.net", "https://mathoverflow.net/users/8134/" ]
This should be a comment to the answer of Andreas Blass, but was too long. The Lusternik-Schnirelmann category $\operatorname{cat}(X)$ of a space $X$ is the smallest number $k$ such that $X$ has a cover by open sets $U\_1,\ldots , U\_k$ which are **contractible in $X$**. This means the inclusions $U\_i\hookrightarrow ...
From the reference above (Walschap's "Metric Structures in Differential geometry") it seems that, in order to construct the classifying map to a suitable Grassmannian $G(\mathbb{R}^N,k)$, where $k$ is the rank of your bundle $E$, one needs the existence of a finite trivializing cover. Personally, I believe that such a...
94,479
Suppose there is a vector bundle (smooth, with constant rank finite-dimensional fibres) over a (smooth, second-countable, Hausdorff, not necessarily connected) manifold $B$ of dimension $n$. (a) Is it true, that the manifold B can be covered by a finite number of sets $U\_1,\dots,U\_N$ s.t. the vector bundle, restrict...
2012/04/19
[ "https://mathoverflow.net/questions/94479", "https://mathoverflow.net", "https://mathoverflow.net/users/8134/" ]
The answer (to both questions (a) and (b)) is **YES** (assuming $B$ is a **smooth manifold**). A proof can be found on Walschap's book "[Metric Structures in Differential geometry](http://rads.stackoverflow.com/amzn/click/038720430X)", p. 77, Lemma 7.1. For the OP's convenience, here's a sketch of the proof. Choose an...
(a) and (b) are also true for topological manifolds of dimension $n$, see pages 17-21 of * MR0336650 Greub, Werner; Halperin, Stephen; Vanstone, Ray: Connections, curvature, and cohomology. Vol. I: De Rham cohomology of manifolds and vector bundles. Pure and Applied Mathematics, Vol. 47. Academic Press, New York-Lond...
94,479
Suppose there is a vector bundle (smooth, with constant rank finite-dimensional fibres) over a (smooth, second-countable, Hausdorff, not necessarily connected) manifold $B$ of dimension $n$. (a) Is it true, that the manifold B can be covered by a finite number of sets $U\_1,\dots,U\_N$ s.t. the vector bundle, restrict...
2012/04/19
[ "https://mathoverflow.net/questions/94479", "https://mathoverflow.net", "https://mathoverflow.net/users/8134/" ]
The answer (to both questions (a) and (b)) is **YES** (assuming $B$ is a **smooth manifold**). A proof can be found on Walschap's book "[Metric Structures in Differential geometry](http://rads.stackoverflow.com/amzn/click/038720430X)", p. 77, Lemma 7.1. For the OP's convenience, here's a sketch of the proof. Choose an...
From the reference above (Walschap's "Metric Structures in Differential geometry") it seems that, in order to construct the classifying map to a suitable Grassmannian $G(\mathbb{R}^N,k)$, where $k$ is the rank of your bundle $E$, one needs the existence of a finite trivializing cover. Personally, I believe that such a...
94,479
Suppose there is a vector bundle (smooth, with constant rank finite-dimensional fibres) over a (smooth, second-countable, Hausdorff, not necessarily connected) manifold $B$ of dimension $n$. (a) Is it true, that the manifold B can be covered by a finite number of sets $U\_1,\dots,U\_N$ s.t. the vector bundle, restrict...
2012/04/19
[ "https://mathoverflow.net/questions/94479", "https://mathoverflow.net", "https://mathoverflow.net/users/8134/" ]
This should be a comment to the answer of Andreas Blass, but was too long. The Lusternik-Schnirelmann category $\operatorname{cat}(X)$ of a space $X$ is the smallest number $k$ such that $X$ has a cover by open sets $U\_1,\ldots , U\_k$ which are **contractible in $X$**. This means the inclusions $U\_i\hookrightarrow ...
I wonder that this was not said before. Take a triangulation of your manifold. Choose disjoint open balls around each 0-cell in the triangulation and set the union to be $U\_0$ (a ball means here something diffeomorphic to an open ball). For each 1-cell, choose an open ball such that together with the balls chosen b...
94,479
Suppose there is a vector bundle (smooth, with constant rank finite-dimensional fibres) over a (smooth, second-countable, Hausdorff, not necessarily connected) manifold $B$ of dimension $n$. (a) Is it true, that the manifold B can be covered by a finite number of sets $U\_1,\dots,U\_N$ s.t. the vector bundle, restrict...
2012/04/19
[ "https://mathoverflow.net/questions/94479", "https://mathoverflow.net", "https://mathoverflow.net/users/8134/" ]
The answer (to both questions (a) and (b)) is **YES** (assuming $B$ is a **smooth manifold**). A proof can be found on Walschap's book "[Metric Structures in Differential geometry](http://rads.stackoverflow.com/amzn/click/038720430X)", p. 77, Lemma 7.1. For the OP's convenience, here's a sketch of the proof. Choose an...
I think what you're looking for (or rediscovering) is the concept of the Lusternik-Schnirelman category of a space - the minimum number of contractible open sets needed to cover the space. More precisely, you need the maximum LS-category of the components of your space.
94,479
Suppose there is a vector bundle (smooth, with constant rank finite-dimensional fibres) over a (smooth, second-countable, Hausdorff, not necessarily connected) manifold $B$ of dimension $n$. (a) Is it true, that the manifold B can be covered by a finite number of sets $U\_1,\dots,U\_N$ s.t. the vector bundle, restrict...
2012/04/19
[ "https://mathoverflow.net/questions/94479", "https://mathoverflow.net", "https://mathoverflow.net/users/8134/" ]
From the reference above (Walschap's "Metric Structures in Differential geometry") it seems that, in order to construct the classifying map to a suitable Grassmannian $G(\mathbb{R}^N,k)$, where $k$ is the rank of your bundle $E$, one needs the existence of a finite trivializing cover. Personally, I believe that such a...
I wonder that this was not said before. Take a triangulation of your manifold. Choose disjoint open balls around each 0-cell in the triangulation and set the union to be $U\_0$ (a ball means here something diffeomorphic to an open ball). For each 1-cell, choose an open ball such that together with the balls chosen b...
1,654,159
``` #include <iostream> using namespace std; struct testarray{ int element; public: testarray(int a):element(a){} }; class myarray { public: testarray i; public: myarray(testarray a) : i(a){ } } ; int main() { myarray objArray[3] = {1,2,3}; return 0; } ``` The above code co...
2009/10/31
[ "https://Stackoverflow.com/questions/1654159", "https://Stackoverflow.com", "https://Stackoverflow.com/users/200100/" ]
Use the keyword `explicit` for `testarray` constructor so that the compiler doesn't perform implicit conversions. Basically you need to write the constructor as: ``` explicit testarray(int a):element(a){} ```
Perhaps you want the constructor to be `explicit`? [<http://www.cppreference.com/wiki/keywords/explicit>](http://www.cppreference.com/wiki/keywords/explicit)
1,654,159
``` #include <iostream> using namespace std; struct testarray{ int element; public: testarray(int a):element(a){} }; class myarray { public: testarray i; public: myarray(testarray a) : i(a){ } } ; int main() { myarray objArray[3] = {1,2,3}; return 0; } ``` The above code co...
2009/10/31
[ "https://Stackoverflow.com/questions/1654159", "https://Stackoverflow.com", "https://Stackoverflow.com/users/200100/" ]
Use the keyword `explicit` for `testarray` constructor so that the compiler doesn't perform implicit conversions. Basically you need to write the constructor as: ``` explicit testarray(int a):element(a){} ```
yes, use the keyword "explicit" as stated above. one more suggestion about the source you've provided: why do you have the "public" in the struct? All struct's members are public by default. if you want to have smth with different access modifiers (say, several "private" members or methods), you're better off to use cl...
1,654,159
``` #include <iostream> using namespace std; struct testarray{ int element; public: testarray(int a):element(a){} }; class myarray { public: testarray i; public: myarray(testarray a) : i(a){ } } ; int main() { myarray objArray[3] = {1,2,3}; return 0; } ``` The above code co...
2009/10/31
[ "https://Stackoverflow.com/questions/1654159", "https://Stackoverflow.com", "https://Stackoverflow.com/users/200100/" ]
You can use `explicit` keyword for your struct constructor.
Perhaps you want the constructor to be `explicit`? [<http://www.cppreference.com/wiki/keywords/explicit>](http://www.cppreference.com/wiki/keywords/explicit)
1,654,159
``` #include <iostream> using namespace std; struct testarray{ int element; public: testarray(int a):element(a){} }; class myarray { public: testarray i; public: myarray(testarray a) : i(a){ } } ; int main() { myarray objArray[3] = {1,2,3}; return 0; } ``` The above code co...
2009/10/31
[ "https://Stackoverflow.com/questions/1654159", "https://Stackoverflow.com", "https://Stackoverflow.com/users/200100/" ]
yes, use the keyword "explicit" as stated above. one more suggestion about the source you've provided: why do you have the "public" in the struct? All struct's members are public by default. if you want to have smth with different access modifiers (say, several "private" members or methods), you're better off to use cl...
Perhaps you want the constructor to be `explicit`? [<http://www.cppreference.com/wiki/keywords/explicit>](http://www.cppreference.com/wiki/keywords/explicit)
1,654,159
``` #include <iostream> using namespace std; struct testarray{ int element; public: testarray(int a):element(a){} }; class myarray { public: testarray i; public: myarray(testarray a) : i(a){ } } ; int main() { myarray objArray[3] = {1,2,3}; return 0; } ``` The above code co...
2009/10/31
[ "https://Stackoverflow.com/questions/1654159", "https://Stackoverflow.com", "https://Stackoverflow.com/users/200100/" ]
You can use `explicit` keyword for your struct constructor.
yes, use the keyword "explicit" as stated above. one more suggestion about the source you've provided: why do you have the "public" in the struct? All struct's members are public by default. if you want to have smth with different access modifiers (say, several "private" members or methods), you're better off to use cl...
33,363,490
I use old way to provide the data to vertex buffer in OpenGL ``` glGenBuffers(1, buffer); glBindBuffer(GL_ARRAY_BUFFER, buffer); glBufferData(GL_ARRAY_BUFFER, sizeof(pos), pos, GL_STATIC_DRAW); glVertexAttribPointer(1, 3, GL_FLOAT, GL_FALSE, 0, 0); glEnableVertexAttribArray(1); ``` Since OpenGL 4.3 there a new sligh...
2015/10/27
[ "https://Stackoverflow.com/questions/33363490", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2064664/" ]
I don't see any issue with the SQL. On my **12c** database, no issues: ``` Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options SQL> create table x(id number); Table created. SQL> create table...
could you try this ``` SELECT table1.* ,table2.* FROM table1 LEFT OUTER JOIN table2 ON table1.id=table2.c_id ```
70,787,115
I have a requirement where I need to encrypt file of size 1-2 GB in azure function. In am using PGP core library to encrypt file in memory. The below code is throwing out of memory exception if file size is above 700 MB. Note:- I am using azure function. Scaling up of App service plan didn't help. I there any alternat...
2022/01/20
[ "https://Stackoverflow.com/questions/70787115", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14802990/" ]
The problem with the code in the question is that comparing to "NA" is not the same as checking if the value is NA. What that is doing is comparing the value to a character string which contains N and A. Also note that comparing to NA always gives NA so we can't use that either. Instead use `is.na`. ``` my_df$b2 == "N...
You are not using `NA` properly here -- you are treating it like a character variable in `x=="NA"` - with `NA` values, standard practice is to use `is.na()`, not `x==NA`. Try: ``` my_df$b3 <- ifelse(is.na(my_df$b2), 0, 1) ```
70,787,115
I have a requirement where I need to encrypt file of size 1-2 GB in azure function. In am using PGP core library to encrypt file in memory. The below code is throwing out of memory exception if file size is above 700 MB. Note:- I am using azure function. Scaling up of App service plan didn't help. I there any alternat...
2022/01/20
[ "https://Stackoverflow.com/questions/70787115", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14802990/" ]
The problem with the code in the question is that comparing to "NA" is not the same as checking if the value is NA. What that is doing is comparing the value to a character string which contains N and A. Also note that comparing to NA always gives NA so we can't use that either. Instead use `is.na`. ``` my_df$b2 == "N...
Please find below one possible answer using the `dplyr` library **Reprex** * Code ```r library(dplyr) my_df %>% mutate(b2 = if_else(is.na(b2), 0, 1)) ``` * Output ```r #> ID b2 #> 1 2 0 #> 2 4 1 #> 3 6 1 #> 4 8 1 #> 5 10 0 #> 6 12 1 #> 7 14 1 #> 8 16 1 #> 9 18 0 ``` Created on 2022-01-20 by t...
59,559,145
When I use ProcessWindowFunction like follow: ``` private static class pwf extends ProcessWindowFunction<String, Tuple3<String, String,String>, Tuple, TimeWindow> {//IN, OUT, KEY, W public void process(Tuple key, Context context, Iterable<String> elements...
2020/01/02
[ "https://Stackoverflow.com/questions/59559145", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12639231/" ]
Your latest error is happening because you are creating a string variable named `path`: ``` path = args.path ``` But you are then attempting to use that as if it were a function: ``` if path(dir_list): ``` That doesn't make any sense, and that is the cause of the "TypeError: 'str' object is not callable" error. ...
Simple algorithmic question, nothing python specific here. And the answer is **very** simple and obvious (python-like pseudocode version): ``` for dirname in ("DDL", "Table", "Functions", "Stored Procedure"): if your_archive_contains(dirname): for sqlfile in your_archive_list_sql_files_in(dirname): ...