qid
int64
1
74.7M
question
stringlengths
15
58.3k
date
stringlengths
10
10
metadata
list
response_j
stringlengths
4
30.2k
response_k
stringlengths
11
36.5k
2,771,868
Is there any way we can access other JVM's Heap memory? Will this be possible if I know the memory reference/address?
2010/05/05
[ "https://Stackoverflow.com/questions/2771868", "https://Stackoverflow.com", "https://Stackoverflow.com/users/327813/" ]
The closest thing that meets your needs is probably a distributed object cache such as [Coherence](http://www.oracle.com/technology/products/coherence/index.html) or [Terracotta](http://www.terracotta.org/). With these technologies different JVM instances can share objects.
No, that's completely impossible. If you want shared memory, use threads.
2,771,868
Is there any way we can access other JVM's Heap memory? Will this be possible if I know the memory reference/address?
2010/05/05
[ "https://Stackoverflow.com/questions/2771868", "https://Stackoverflow.com", "https://Stackoverflow.com/users/327813/" ]
The closest thing that meets your needs is probably a distributed object cache such as [Coherence](http://www.oracle.com/technology/products/coherence/index.html) or [Terracotta](http://www.terracotta.org/). With these technologies different JVM instances can share objects.
What you want to do sound impossible. If you want to access data of another java program and can't implement som interface in the program in question (such as some RMI interface,or somsocket) the closest thing I can come to think of is to go through a debugger or the [JVMTI](http://java.sun.com/j2se/1.5.0/docs/guide/jv...
2,771,868
Is there any way we can access other JVM's Heap memory? Will this be possible if I know the memory reference/address?
2010/05/05
[ "https://Stackoverflow.com/questions/2771868", "https://Stackoverflow.com", "https://Stackoverflow.com/users/327813/" ]
The closest thing that meets your needs is probably a distributed object cache such as [Coherence](http://www.oracle.com/technology/products/coherence/index.html) or [Terracotta](http://www.terracotta.org/). With these technologies different JVM instances can share objects.
Not directly, in the manner you seem to be implying. You would need to have the "other" JVM expose access to these objects via some kind of service like RMI/SOAP, or through distributed object methods like Terracotta, and then call the relevant service methods to obtain the object. Even then, in the vast majority of c...
2,771,868
Is there any way we can access other JVM's Heap memory? Will this be possible if I know the memory reference/address?
2010/05/05
[ "https://Stackoverflow.com/questions/2771868", "https://Stackoverflow.com", "https://Stackoverflow.com/users/327813/" ]
The closest thing that meets your needs is probably a distributed object cache such as [Coherence](http://www.oracle.com/technology/products/coherence/index.html) or [Terracotta](http://www.terracotta.org/). With these technologies different JVM instances can share objects.
> > Is there any way we can access other JVM's Heap memory? > > > I imagine you are thinking of doing something like creating a shared memory segment and mapping it into the address space of two JVMs. It won't work. You could use JNI to create and map the shared segment, but you won't be able to convince the two...
2,771,868
Is there any way we can access other JVM's Heap memory? Will this be possible if I know the memory reference/address?
2010/05/05
[ "https://Stackoverflow.com/questions/2771868", "https://Stackoverflow.com", "https://Stackoverflow.com/users/327813/" ]
> > Is there any way we can access other JVM's Heap memory? > > > I imagine you are thinking of doing something like creating a shared memory segment and mapping it into the address space of two JVMs. It won't work. You could use JNI to create and map the shared segment, but you won't be able to convince the two...
No, that's completely impossible. If you want shared memory, use threads.
2,771,868
Is there any way we can access other JVM's Heap memory? Will this be possible if I know the memory reference/address?
2010/05/05
[ "https://Stackoverflow.com/questions/2771868", "https://Stackoverflow.com", "https://Stackoverflow.com/users/327813/" ]
> > Is there any way we can access other JVM's Heap memory? > > > I imagine you are thinking of doing something like creating a shared memory segment and mapping it into the address space of two JVMs. It won't work. You could use JNI to create and map the shared segment, but you won't be able to convince the two...
What you want to do sound impossible. If you want to access data of another java program and can't implement som interface in the program in question (such as some RMI interface,or somsocket) the closest thing I can come to think of is to go through a debugger or the [JVMTI](http://java.sun.com/j2se/1.5.0/docs/guide/jv...
2,771,868
Is there any way we can access other JVM's Heap memory? Will this be possible if I know the memory reference/address?
2010/05/05
[ "https://Stackoverflow.com/questions/2771868", "https://Stackoverflow.com", "https://Stackoverflow.com/users/327813/" ]
> > Is there any way we can access other JVM's Heap memory? > > > I imagine you are thinking of doing something like creating a shared memory segment and mapping it into the address space of two JVMs. It won't work. You could use JNI to create and map the shared segment, but you won't be able to convince the two...
Not directly, in the manner you seem to be implying. You would need to have the "other" JVM expose access to these objects via some kind of service like RMI/SOAP, or through distributed object methods like Terracotta, and then call the relevant service methods to obtain the object. Even then, in the vast majority of c...
17,253,252
I have built a binary search tree for my program. This is my code: ``` struct node { int steps; int x; int y; struct node *left; struct node *right; }*head; typedef struct node *Node; Node createStepsBinaryTree(Node head, int newStepsInt, int x, int y){ if (head == NULL) { head = (No...
2013/06/22
[ "https://Stackoverflow.com/questions/17253252", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1461635/" ]
As @wildplasser noted, you're allocating enough space for a Node, which is a pointer type. You either need to change your code so that Node is a struct or allocate sizeof(struct node) bytes in your malloc. I strongly suggest you not hide your pointer in a typedef - this is one of several examples of how that causes pr...
``` head = (struct node*)malloc(sizeof( struct node ) ) ``` though sizeof(\*Node) is accepted by most compilers.
8,816,194
> > **Possible Duplicate:** > > [How to parse and process HTML with PHP?](https://stackoverflow.com/questions/3577641/how-to-parse-and-process-html-with-php) > > > I need to fetch the second column of the given HTML table using PHP. How can I do it? **References:** Table to be parsed: <http://bit.ly/Ak2xay> ...
2012/01/11
[ "https://Stackoverflow.com/questions/8816194", "https://Stackoverflow.com", "https://Stackoverflow.com/users/162266/" ]
For tidy HTML codes, one of the parsing approach can be DOM. DOM divides your HTML code into objects and then allows you to call the desired object and its values/tag name etc. The official documentation of PHP HTML DOM parsing is available at <http://php.net/manual/en/book.dom.php> For finding the values of second c...
This may be of use to you, there are even examples to get you started. <http://simplehtmldom.sourceforge.net/>
8,816,194
> > **Possible Duplicate:** > > [How to parse and process HTML with PHP?](https://stackoverflow.com/questions/3577641/how-to-parse-and-process-html-with-php) > > > I need to fetch the second column of the given HTML table using PHP. How can I do it? **References:** Table to be parsed: <http://bit.ly/Ak2xay> ...
2012/01/11
[ "https://Stackoverflow.com/questions/8816194", "https://Stackoverflow.com", "https://Stackoverflow.com/users/162266/" ]
Using phpQuery <http://code.google.com/p/phpquery/> you could do ``` $file = LINK OR NAME OF YOUR FILE phpQuery::newDocumentFile($file); $data = pq('UNIQUE COLUMN ID OR CLASS AS YOU WOULD FOR CSS ex: .class #id')->html(); echo $data. ```
This may be of use to you, there are even examples to get you started. <http://simplehtmldom.sourceforge.net/>
8,816,194
> > **Possible Duplicate:** > > [How to parse and process HTML with PHP?](https://stackoverflow.com/questions/3577641/how-to-parse-and-process-html-with-php) > > > I need to fetch the second column of the given HTML table using PHP. How can I do it? **References:** Table to be parsed: <http://bit.ly/Ak2xay> ...
2012/01/11
[ "https://Stackoverflow.com/questions/8816194", "https://Stackoverflow.com", "https://Stackoverflow.com/users/162266/" ]
For tidy HTML codes, one of the parsing approach can be DOM. DOM divides your HTML code into objects and then allows you to call the desired object and its values/tag name etc. The official documentation of PHP HTML DOM parsing is available at <http://php.net/manual/en/book.dom.php> For finding the values of second c...
Maybe have a look at phpQuery: <http://code.google.com/p/phpquery/>? I haven't used it myself so I'm not 100% sure it does what you want, but since it is a server-side implementation of jQuery to select from the DOM, using CSS selectors, I think it could be useful in your case.
8,816,194
> > **Possible Duplicate:** > > [How to parse and process HTML with PHP?](https://stackoverflow.com/questions/3577641/how-to-parse-and-process-html-with-php) > > > I need to fetch the second column of the given HTML table using PHP. How can I do it? **References:** Table to be parsed: <http://bit.ly/Ak2xay> ...
2012/01/11
[ "https://Stackoverflow.com/questions/8816194", "https://Stackoverflow.com", "https://Stackoverflow.com/users/162266/" ]
Using phpQuery <http://code.google.com/p/phpquery/> you could do ``` $file = LINK OR NAME OF YOUR FILE phpQuery::newDocumentFile($file); $data = pq('UNIQUE COLUMN ID OR CLASS AS YOU WOULD FOR CSS ex: .class #id')->html(); echo $data. ```
Maybe have a look at phpQuery: <http://code.google.com/p/phpquery/>? I haven't used it myself so I'm not 100% sure it does what you want, but since it is a server-side implementation of jQuery to select from the DOM, using CSS selectors, I think it could be useful in your case.
8,816,194
> > **Possible Duplicate:** > > [How to parse and process HTML with PHP?](https://stackoverflow.com/questions/3577641/how-to-parse-and-process-html-with-php) > > > I need to fetch the second column of the given HTML table using PHP. How can I do it? **References:** Table to be parsed: <http://bit.ly/Ak2xay> ...
2012/01/11
[ "https://Stackoverflow.com/questions/8816194", "https://Stackoverflow.com", "https://Stackoverflow.com/users/162266/" ]
For tidy HTML codes, one of the parsing approach can be DOM. DOM divides your HTML code into objects and then allows you to call the desired object and its values/tag name etc. The official documentation of PHP HTML DOM parsing is available at <http://php.net/manual/en/book.dom.php> For finding the values of second c...
Using phpQuery <http://code.google.com/p/phpquery/> you could do ``` $file = LINK OR NAME OF YOUR FILE phpQuery::newDocumentFile($file); $data = pq('UNIQUE COLUMN ID OR CLASS AS YOU WOULD FOR CSS ex: .class #id')->html(); echo $data. ```
17,490,275
I am developing a library which is used for some specific validation operations. Every thing is ok for me in usage, *but when I publish it, every time developers need to read manual document.* So, I want to show usage tips like shown blow. ![enter image description here](https://i.stack.imgur.com/JEHq7.png) How can...
2013/07/05
[ "https://Stackoverflow.com/questions/17490275", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1172945/" ]
You need to write JavaDoc comments in your code and then you can generate JavaDoc html. JavaDoc comments are special comments which are between `/**` and `*/` and can be used to generate JavaDoc. e.g. ``` /** * Class description. * <p> * Some more details * * @author Edd */ public class MyClass { /** ...
Write JavaDoc comments and publish them together with your library. If you are using Maven, you can use the [`javadoc:jar` goal](https://maven.apache.org/plugins/maven-javadoc-plugin/jar-mojo.html) of the [Maven Javadoc Plugin](https://maven.apache.org/plugins/maven-javadoc-plugin/).
17,490,275
I am developing a library which is used for some specific validation operations. Every thing is ok for me in usage, *but when I publish it, every time developers need to read manual document.* So, I want to show usage tips like shown blow. ![enter image description here](https://i.stack.imgur.com/JEHq7.png) How can...
2013/07/05
[ "https://Stackoverflow.com/questions/17490275", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1172945/" ]
You need to write JavaDoc comments in your code and then you can generate JavaDoc html. JavaDoc comments are special comments which are between `/**` and `*/` and can be used to generate JavaDoc. e.g. ``` /** * Class description. * <p> * Some more details * * @author Edd */ public class MyClass { /** ...
Read about and use javadoc, here: <http://www.oracle.com/technetwork/java/javase/documentation/index-jsp-135444.html>
672,223
Under what circumstances is a reboot of an Ubuntu system necessary? I often read in answers that after changes in the system the system is to be restarted, but is that absolutely necessary?
2015/09/09
[ "https://askubuntu.com/questions/672223", "https://askubuntu.com", "https://askubuntu.com/users/367165/" ]
I can't think of any situations of where a reboot is ***absolutely necessary***. Really, you can leave Ubuntu running indefinitely. It might get malware (because kernel and libc updates aren't applied) and it might panic or crash out... But what are avoiding those actually going to do for you? Given the complexities ...
First of all, I appreciate this question because it will always be current. The other answers are correct and very detailed - that is why I go short. There are scenarios where a reboot is necessary, like after installing a new kernel. There are scenarios where it is recommended, like after the install of a new ...
672,223
Under what circumstances is a reboot of an Ubuntu system necessary? I often read in answers that after changes in the system the system is to be restarted, but is that absolutely necessary?
2015/09/09
[ "https://askubuntu.com/questions/672223", "https://askubuntu.com", "https://askubuntu.com/users/367165/" ]
> > When is it necessary to reboot an Ubuntu system? > > > A running machine and strictly when doing an update/upgrade? Probably never (but do read on). The Linux system is set up in such a way that after you updated the system where it would require a reboot to activate the new features (ie. read the kernel got c...
Install the package `debian-goodies`: ``` sudo apt-get install debian-goodies ``` and run the command ``` sudo checkrestart ``` You will see a list of services and now you have the choice: * Restart each service or * Reboot your system --- ``` $ checkrestart Found 20 processes using old versions of upgraded ...
672,223
Under what circumstances is a reboot of an Ubuntu system necessary? I often read in answers that after changes in the system the system is to be restarted, but is that absolutely necessary?
2015/09/09
[ "https://askubuntu.com/questions/672223", "https://askubuntu.com", "https://askubuntu.com/users/367165/" ]
I can't think of any situations of where a reboot is ***absolutely necessary***. Really, you can leave Ubuntu running indefinitely. It might get malware (because kernel and libc updates aren't applied) and it might panic or crash out... But what are avoiding those actually going to do for you? Given the complexities ...
Install the package `debian-goodies`: ``` sudo apt-get install debian-goodies ``` and run the command ``` sudo checkrestart ``` You will see a list of services and now you have the choice: * Restart each service or * Reboot your system --- ``` $ checkrestart Found 20 processes using old versions of upgraded ...
672,223
Under what circumstances is a reboot of an Ubuntu system necessary? I often read in answers that after changes in the system the system is to be restarted, but is that absolutely necessary?
2015/09/09
[ "https://askubuntu.com/questions/672223", "https://askubuntu.com", "https://askubuntu.com/users/367165/" ]
> > When is it necessary to reboot an Ubuntu system? > > > A running machine and strictly when doing an update/upgrade? Probably never (but do read on). The Linux system is set up in such a way that after you updated the system where it would require a reboot to activate the new features (ie. read the kernel got c...
First of all, I appreciate this question because it will always be current. The other answers are correct and very detailed - that is why I go short. There are scenarios where a reboot is necessary, like after installing a new kernel. There are scenarios where it is recommended, like after the install of a new ...
672,223
Under what circumstances is a reboot of an Ubuntu system necessary? I often read in answers that after changes in the system the system is to be restarted, but is that absolutely necessary?
2015/09/09
[ "https://askubuntu.com/questions/672223", "https://askubuntu.com", "https://askubuntu.com/users/367165/" ]
* After kernel panic; * After partitioning or filesystem modifications (more specifically, resizing root partition; I'd recommend to avoid resizing the hard drive from which you boot in general, regardless of partition; if you are resizing something external, like SD card or USB, no reboots necessary ); * After kernel ...
I can't think of any situations of where a reboot is ***absolutely necessary***. Really, you can leave Ubuntu running indefinitely. It might get malware (because kernel and libc updates aren't applied) and it might panic or crash out... But what are avoiding those actually going to do for you? Given the complexities ...
672,223
Under what circumstances is a reboot of an Ubuntu system necessary? I often read in answers that after changes in the system the system is to be restarted, but is that absolutely necessary?
2015/09/09
[ "https://askubuntu.com/questions/672223", "https://askubuntu.com", "https://askubuntu.com/users/367165/" ]
There are generally two situations where a reboot is usually necessary: 1. The kernel is upgraded. 2. `libc` (rather, `glibc`) is upgraded. There is a mechanism for reloading the kernel without restarting ([How can I upgrade my server's kernel without rebooting?](https://askubuntu.com/q/193069/158442)). With `glibc`,...
First of all, I appreciate this question because it will always be current. The other answers are correct and very detailed - that is why I go short. There are scenarios where a reboot is necessary, like after installing a new kernel. There are scenarios where it is recommended, like after the install of a new ...
672,223
Under what circumstances is a reboot of an Ubuntu system necessary? I often read in answers that after changes in the system the system is to be restarted, but is that absolutely necessary?
2015/09/09
[ "https://askubuntu.com/questions/672223", "https://askubuntu.com", "https://askubuntu.com/users/367165/" ]
Actually, **it depends what you're trying to accomplish:** * If you do an `apt-get dist-upgrade` and a new kernel comes in, and you want to activate it, you need a reboot. * If a new version of FireFox comes in, you obviously don't. *And in between those two extremes are 50 shades of grey:* [![enter image descriptio...
Install the package `debian-goodies`: ``` sudo apt-get install debian-goodies ``` and run the command ``` sudo checkrestart ``` You will see a list of services and now you have the choice: * Restart each service or * Reboot your system --- ``` $ checkrestart Found 20 processes using old versions of upgraded ...
672,223
Under what circumstances is a reboot of an Ubuntu system necessary? I often read in answers that after changes in the system the system is to be restarted, but is that absolutely necessary?
2015/09/09
[ "https://askubuntu.com/questions/672223", "https://askubuntu.com", "https://askubuntu.com/users/367165/" ]
* After kernel panic; * After partitioning or filesystem modifications (more specifically, resizing root partition; I'd recommend to avoid resizing the hard drive from which you boot in general, regardless of partition; if you are resizing something external, like SD card or USB, no reboots necessary ); * After kernel ...
Actually, **it depends what you're trying to accomplish:** * If you do an `apt-get dist-upgrade` and a new kernel comes in, and you want to activate it, you need a reboot. * If a new version of FireFox comes in, you obviously don't. *And in between those two extremes are 50 shades of grey:* [![enter image descriptio...
672,223
Under what circumstances is a reboot of an Ubuntu system necessary? I often read in answers that after changes in the system the system is to be restarted, but is that absolutely necessary?
2015/09/09
[ "https://askubuntu.com/questions/672223", "https://askubuntu.com", "https://askubuntu.com/users/367165/" ]
I actually had a situation earlier today that proves this. Sometimes, there are residual things left over in the system after a change is made. For example, I had a user that was not able to access `/dev/dsp` despite having been added to the appropriate groups. There was a lock placed on it by the first user that acces...
Install the package `debian-goodies`: ``` sudo apt-get install debian-goodies ``` and run the command ``` sudo checkrestart ``` You will see a list of services and now you have the choice: * Restart each service or * Reboot your system --- ``` $ checkrestart Found 20 processes using old versions of upgraded ...
672,223
Under what circumstances is a reboot of an Ubuntu system necessary? I often read in answers that after changes in the system the system is to be restarted, but is that absolutely necessary?
2015/09/09
[ "https://askubuntu.com/questions/672223", "https://askubuntu.com", "https://askubuntu.com/users/367165/" ]
Actually, **it depends what you're trying to accomplish:** * If you do an `apt-get dist-upgrade` and a new kernel comes in, and you want to activate it, you need a reboot. * If a new version of FireFox comes in, you obviously don't. *And in between those two extremes are 50 shades of grey:* [![enter image descriptio...
I can't think of any situations of where a reboot is ***absolutely necessary***. Really, you can leave Ubuntu running indefinitely. It might get malware (because kernel and libc updates aren't applied) and it might panic or crash out... But what are avoiding those actually going to do for you? Given the complexities ...
34,393,323
I am using `Telerik Gridview` for displaying list of records and i have more than **10 pages** on which i am using this gridview with this following common events code copy pasted(with some minor changes) on all this pages: ``` protected void Page_Load(object sender, EventArgs e) { DisplayRecords() } public void ...
2015/12/21
[ "https://Stackoverflow.com/questions/34393323", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4927379/" ]
May be you can put you common logic inside abstract class with method (or property) that returns reference on concrete `GridView` and inherit from this class. Then on each page your just have to implement that method. Something like this: ``` public abstract class ParentPage { public virtual void DisplayRecords(...
There are many principles that you generally apply when trying to refactor code. Currently you are trying to refactor your code as to not violate the [DRY](http://en.wikipedia.org/wiki/Don't_repeat_yourself) principle (DRY = don't repeat yourself). But, some other principals might come in to play that you might want...
39,927,024
I am attempting to connect to MongoDB hosted on an AWS instance with a key file. I am able to ssh into the instance and connect to the database with no issues. When I try to connect to the database from a remote location with pymongo I receive this error: `ServerSelectionTimeoutError: SSL handshake failed: EOF occurr...
2016/10/07
[ "https://Stackoverflow.com/questions/39927024", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3639023/" ]
This issue can cause because of following issue: 1. version of pymongo (suggest to use 3.3.0, which worked for me) 2. It can be a DNS issue, etc, in fact you could check for a DNS issue using: telnet xx.xx.xx.xx port 3. can be a firewall issue 4. Can be an issue with ssl key. Try the following to test: ``` impo...
I had the same problem (SSL handshake) with Pymongo module to connect to DocumentDB Azure (Data Base). The error : `ServerSelectionTimeoutError: SSL handshake failed: EOF occurred in violation of protocol (_ssl.c:590)` I was using pymongo==3.4.0 **To resolve this :** **Change the version of pymongo by installing ...
39,927,024
I am attempting to connect to MongoDB hosted on an AWS instance with a key file. I am able to ssh into the instance and connect to the database with no issues. When I try to connect to the database from a remote location with pymongo I receive this error: `ServerSelectionTimeoutError: SSL handshake failed: EOF occurr...
2016/10/07
[ "https://Stackoverflow.com/questions/39927024", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3639023/" ]
I had the same problem (SSL handshake) with Pymongo module to connect to DocumentDB Azure (Data Base). The error : `ServerSelectionTimeoutError: SSL handshake failed: EOF occurred in violation of protocol (_ssl.c:590)` I was using pymongo==3.4.0 **To resolve this :** **Change the version of pymongo by installing ...
For me, the problem was that my Python setup only supported TLS 1.0 – not TLS 1.1 or above. You can check it like this: **Python 3** ``` > from urllib.request import urlopen > urlopen('https://www.howsmyssl.com/a/check').read() ``` **Python 2** ``` > from urllib2 import urlopen > urlopen('https://www.howsmyssl.c...
39,927,024
I am attempting to connect to MongoDB hosted on an AWS instance with a key file. I am able to ssh into the instance and connect to the database with no issues. When I try to connect to the database from a remote location with pymongo I receive this error: `ServerSelectionTimeoutError: SSL handshake failed: EOF occurr...
2016/10/07
[ "https://Stackoverflow.com/questions/39927024", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3639023/" ]
I had the same problem (SSL handshake) with Pymongo module to connect to DocumentDB Azure (Data Base). The error : `ServerSelectionTimeoutError: SSL handshake failed: EOF occurred in violation of protocol (_ssl.c:590)` I was using pymongo==3.4.0 **To resolve this :** **Change the version of pymongo by installing ...
I had the same issue and talked for 30 minutes with the Mongo Atlas support which deployed over AWS. I run the next terminal command: ``` /Applications/Python\ 3.6/Install\ Certificates.command ```
39,927,024
I am attempting to connect to MongoDB hosted on an AWS instance with a key file. I am able to ssh into the instance and connect to the database with no issues. When I try to connect to the database from a remote location with pymongo I receive this error: `ServerSelectionTimeoutError: SSL handshake failed: EOF occurr...
2016/10/07
[ "https://Stackoverflow.com/questions/39927024", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3639023/" ]
I had the same problem (SSL handshake) with Pymongo module to connect to DocumentDB Azure (Data Base). The error : `ServerSelectionTimeoutError: SSL handshake failed: EOF occurred in violation of protocol (_ssl.c:590)` I was using pymongo==3.4.0 **To resolve this :** **Change the version of pymongo by installing ...
I had the same issue. Please check if you are connected via VPN. when I disconnected it resolved my problem.
39,927,024
I am attempting to connect to MongoDB hosted on an AWS instance with a key file. I am able to ssh into the instance and connect to the database with no issues. When I try to connect to the database from a remote location with pymongo I receive this error: `ServerSelectionTimeoutError: SSL handshake failed: EOF occurr...
2016/10/07
[ "https://Stackoverflow.com/questions/39927024", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3639023/" ]
This issue can cause because of following issue: 1. version of pymongo (suggest to use 3.3.0, which worked for me) 2. It can be a DNS issue, etc, in fact you could check for a DNS issue using: telnet xx.xx.xx.xx port 3. can be a firewall issue 4. Can be an issue with ssl key. Try the following to test: ``` impo...
For me, the problem was that my Python setup only supported TLS 1.0 – not TLS 1.1 or above. You can check it like this: **Python 3** ``` > from urllib.request import urlopen > urlopen('https://www.howsmyssl.com/a/check').read() ``` **Python 2** ``` > from urllib2 import urlopen > urlopen('https://www.howsmyssl.c...
39,927,024
I am attempting to connect to MongoDB hosted on an AWS instance with a key file. I am able to ssh into the instance and connect to the database with no issues. When I try to connect to the database from a remote location with pymongo I receive this error: `ServerSelectionTimeoutError: SSL handshake failed: EOF occurr...
2016/10/07
[ "https://Stackoverflow.com/questions/39927024", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3639023/" ]
This issue can cause because of following issue: 1. version of pymongo (suggest to use 3.3.0, which worked for me) 2. It can be a DNS issue, etc, in fact you could check for a DNS issue using: telnet xx.xx.xx.xx port 3. can be a firewall issue 4. Can be an issue with ssl key. Try the following to test: ``` impo...
I had the same issue and talked for 30 minutes with the Mongo Atlas support which deployed over AWS. I run the next terminal command: ``` /Applications/Python\ 3.6/Install\ Certificates.command ```
39,927,024
I am attempting to connect to MongoDB hosted on an AWS instance with a key file. I am able to ssh into the instance and connect to the database with no issues. When I try to connect to the database from a remote location with pymongo I receive this error: `ServerSelectionTimeoutError: SSL handshake failed: EOF occurr...
2016/10/07
[ "https://Stackoverflow.com/questions/39927024", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3639023/" ]
This issue can cause because of following issue: 1. version of pymongo (suggest to use 3.3.0, which worked for me) 2. It can be a DNS issue, etc, in fact you could check for a DNS issue using: telnet xx.xx.xx.xx port 3. can be a firewall issue 4. Can be an issue with ssl key. Try the following to test: ``` impo...
I had the same issue. Please check if you are connected via VPN. when I disconnected it resolved my problem.
37,192
I have this class for use in sorting strings such that if strings have a number in the same position it will order the numbers in increasing order. Alphabetical gives: * file1 * file10 * file2 What I'm calling "number aware" string sorting should give: * file1 * file2 * file10 [Here](https://stackoverflow.com/ques...
2013/12/12
[ "https://codereview.stackexchange.com/questions/37192", "https://codereview.stackexchange.com", "https://codereview.stackexchange.com/users/33373/" ]
In general, I think this solutions is doing the right thing, and the algorithm, in a broad sense is doing it the right way. There are two specific areas where I think it can be improved: 1. Regular Expressions can be compiled and reused. This compareTo method is splitting many, many strings, and it would make a big d...
Your approach appears to be basically sound. My main concern is `catch(Exception ex)`. **Catching all exceptions** like that makes me very nervous and puzzled about your intent. I have to wonder, what could possibly go wrong inside the try-block? My thought process: 1. The exception would have to be thrown from the `...
37,192
I have this class for use in sorting strings such that if strings have a number in the same position it will order the numbers in increasing order. Alphabetical gives: * file1 * file10 * file2 What I'm calling "number aware" string sorting should give: * file1 * file2 * file10 [Here](https://stackoverflow.com/ques...
2013/12/12
[ "https://codereview.stackexchange.com/questions/37192", "https://codereview.stackexchange.com", "https://codereview.stackexchange.com/users/33373/" ]
Exceptions should be reserved for exceptional situations, and should be avoided if possible. The fundamental reason you have to deal with `NumberFormatException` is that after splitting, you don't know whether each part contains a number or a non-number. Here's a strategy that always compares non-digits to non-digits,...
In general, I think this solutions is doing the right thing, and the algorithm, in a broad sense is doing it the right way. There are two specific areas where I think it can be improved: 1. Regular Expressions can be compiled and reused. This compareTo method is splitting many, many strings, and it would make a big d...
37,192
I have this class for use in sorting strings such that if strings have a number in the same position it will order the numbers in increasing order. Alphabetical gives: * file1 * file10 * file2 What I'm calling "number aware" string sorting should give: * file1 * file2 * file10 [Here](https://stackoverflow.com/ques...
2013/12/12
[ "https://codereview.stackexchange.com/questions/37192", "https://codereview.stackexchange.com", "https://codereview.stackexchange.com/users/33373/" ]
In general, I think this solutions is doing the right thing, and the algorithm, in a broad sense is doing it the right way. There are two specific areas where I think it can be improved: 1. Regular Expressions can be compiled and reused. This compareTo method is splitting many, many strings, and it would make a big d...
Changes the pattern to this if you want to use decimals: ``` private static Pattern BOUNDARYSPLIT = Pattern.compile("(?<=\\D\\.)(?=\\d)|(?<=\\d)(?=\\D)"); ```
37,192
I have this class for use in sorting strings such that if strings have a number in the same position it will order the numbers in increasing order. Alphabetical gives: * file1 * file10 * file2 What I'm calling "number aware" string sorting should give: * file1 * file2 * file10 [Here](https://stackoverflow.com/ques...
2013/12/12
[ "https://codereview.stackexchange.com/questions/37192", "https://codereview.stackexchange.com", "https://codereview.stackexchange.com/users/33373/" ]
Exceptions should be reserved for exceptional situations, and should be avoided if possible. The fundamental reason you have to deal with `NumberFormatException` is that after splitting, you don't know whether each part contains a number or a non-number. Here's a strategy that always compares non-digits to non-digits,...
Your approach appears to be basically sound. My main concern is `catch(Exception ex)`. **Catching all exceptions** like that makes me very nervous and puzzled about your intent. I have to wonder, what could possibly go wrong inside the try-block? My thought process: 1. The exception would have to be thrown from the `...
37,192
I have this class for use in sorting strings such that if strings have a number in the same position it will order the numbers in increasing order. Alphabetical gives: * file1 * file10 * file2 What I'm calling "number aware" string sorting should give: * file1 * file2 * file10 [Here](https://stackoverflow.com/ques...
2013/12/12
[ "https://codereview.stackexchange.com/questions/37192", "https://codereview.stackexchange.com", "https://codereview.stackexchange.com/users/33373/" ]
Your approach appears to be basically sound. My main concern is `catch(Exception ex)`. **Catching all exceptions** like that makes me very nervous and puzzled about your intent. I have to wonder, what could possibly go wrong inside the try-block? My thought process: 1. The exception would have to be thrown from the `...
Changes the pattern to this if you want to use decimals: ``` private static Pattern BOUNDARYSPLIT = Pattern.compile("(?<=\\D\\.)(?=\\d)|(?<=\\d)(?=\\D)"); ```
37,192
I have this class for use in sorting strings such that if strings have a number in the same position it will order the numbers in increasing order. Alphabetical gives: * file1 * file10 * file2 What I'm calling "number aware" string sorting should give: * file1 * file2 * file10 [Here](https://stackoverflow.com/ques...
2013/12/12
[ "https://codereview.stackexchange.com/questions/37192", "https://codereview.stackexchange.com", "https://codereview.stackexchange.com/users/33373/" ]
Exceptions should be reserved for exceptional situations, and should be avoided if possible. The fundamental reason you have to deal with `NumberFormatException` is that after splitting, you don't know whether each part contains a number or a non-number. Here's a strategy that always compares non-digits to non-digits,...
Changes the pattern to this if you want to use decimals: ``` private static Pattern BOUNDARYSPLIT = Pattern.compile("(?<=\\D\\.)(?=\\d)|(?<=\\d)(?=\\D)"); ```
51,818
Hannity said on [Foxnews](https://www.foxnews.com/media/hannity-fauci-emails-wuhan-lab-leak-covid-china): > > The Wuhan facility was experimenting with gain of function with > coronaviruses > > > NewsMedical defines the term "[gain of function research](https://www.news-medical.net/health/What-is-Gain-of-Function...
2021/06/04
[ "https://skeptics.stackexchange.com/questions/51818", "https://skeptics.stackexchange.com", "https://skeptics.stackexchange.com/users/196/" ]
With the specific question and definitions provided, and a fairly broad definition of "engaged in"? Yes. We even have a published paper. <https://www.nature.com/articles/nm.3985> A paper published in 9 November 2015. The abstract includes: > > Using the SARS-CoV reverse genetics system2, we generated and > characte...
Actually, the main/corresponding author (Ralph Baric) of the paper cited in Barden's answer as evidence for "yes" argued in press statements [quoted in the Washington Post](https://www.washingtonpost.com/politics/2021/05/18/fact-checking-senator-paul-dr-fauci-flap-over-wuhan-lab-funding/) that the answer is "no". > >...
619,653
Was looking at some code earlier, and am thinking that there has to be a more elegant way of writing this.... (returnVar.Warnings is a string array, it could be returned as any size depending on the number of warnings that are logged) ``` For Each item In items If o.ImageContent.ImageId = 0 Then ReDim Preserv...
2009/03/06
[ "https://Stackoverflow.com/questions/619653", "https://Stackoverflow.com", "https://Stackoverflow.com/users/66112/" ]
use the [generic List(of string)](http://msdn.microsoft.com/en-us/library/6sh2ey19(VS.80).aspx) then get an array containing the list data if you need it ``` dim list = new List(of string) list.Add("foo") list.Add("bar") list.ToArray() ```
Can't you use ArrayList which does this for you? <http://msdn.microsoft.com/en-us/library/system.collections.arraylist.aspx>
619,653
Was looking at some code earlier, and am thinking that there has to be a more elegant way of writing this.... (returnVar.Warnings is a string array, it could be returned as any size depending on the number of warnings that are logged) ``` For Each item In items If o.ImageContent.ImageId = 0 Then ReDim Preserv...
2009/03/06
[ "https://Stackoverflow.com/questions/619653", "https://Stackoverflow.com", "https://Stackoverflow.com/users/66112/" ]
use the [generic List(of string)](http://msdn.microsoft.com/en-us/library/6sh2ey19(VS.80).aspx) then get an array containing the list data if you need it ``` dim list = new List(of string) list.Add("foo") list.Add("bar") list.ToArray() ```
Start by moving the `If` statement out of the loop. If you are using framework 3.5, you can use LINQ to loop the items. ``` If o.ImageContent.ImageId = 0 Then returnVar.Warnings = items.Select(Function(item) "Section: " & section.<header>.<title>.ToString & " , Item: " & item.<title>.ToString).ToArray() Else ...
42,565,930
I have a script in Codeigniter which includes a line of code automatically. I have tried to remove it many times but it's not being removed. ``` <script> $(function(){ $.getScript("https://activeitzone.com/check/shop.js"); }); </script> ``` This line of code is automatically included at the end of page ...
2017/03/02
[ "https://Stackoverflow.com/questions/42565930", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4169790/" ]
A simple change can help to By-Pass CI Licence check. Go to **System > Core > config.php and remove** ``` if ($index == '') { return base64_decode('PHNjcmlwdD4kKGZ1bmN0aW9uKCl7JC5nZXRTY3JpcHQoImh0dHBzOi8vYWN0aXZlaXR6b25lLmNvbS9jaGVjay9zaG9wLmpzIik7fSk7PC9zY3JpcHQ+'); } ```
That's a script automatically added by the [Active Super Shop Multi-Vendor System](http://activeitzone.com/active_supershop/landing/) package to check the license. I found that out by reading [this discussion board](https://codecanyon.net/item/active-super-shop-multivendor-cms/12124432/comments?page=44) (on page 44 of...
42,565,930
I have a script in Codeigniter which includes a line of code automatically. I have tried to remove it many times but it's not being removed. ``` <script> $(function(){ $.getScript("https://activeitzone.com/check/shop.js"); }); </script> ``` This line of code is automatically included at the end of page ...
2017/03/02
[ "https://Stackoverflow.com/questions/42565930", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4169790/" ]
A simple change can help to By-Pass CI Licence check. Go to **System > Core > config.php and remove** ``` if ($index == '') { return base64_decode('PHNjcmlwdD4kKGZ1bmN0aW9uKCl7JC5nZXRTY3JpcHQoImh0dHBzOi8vYWN0aXZlaXR6b25lLmNvbS9jaGVjay9zaG9wLmpzIik7fSk7PC9zY3JpcHQ+'); } ```
Remove the following lines in **System > Core > config.php** ``` if ($index == '') { return base64_decode('PHNjcmlwdD4kKGZ1bmN0aW9uKCl7JC5nZXRTY3JpcHQoImh0dHBzOi8vYWN0aXZlaXR6b25lLmNvbS9jaGVjay9zaG9wLmpzIik7fSk7PC9zY3JpcHQ+'); } ``` And enjoy the active sh
13,654,428
I have an img tag, I want to re-size it regarding the browser window, without distortion. the img takes a (width: 100%), so its height will be greater than browser window. and when the image height be <= browser window, it will stop resizing, else it will re-size. so; it didn't works !! here's my code: ``` <html> <...
2012/11/30
[ "https://Stackoverflow.com/questions/13654428", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1136850/" ]
You have two choices: 1. Writing the file to disk. See [this question](https://stackoverflow.com/questions/12225951/how-to-save-html5-canvas-as-an-image-file-in-window-8-metro-app/12230195#12230195) for details 2. Create a multiple use blob from the XHR response. See [MSDN for details](http://msdn.microsoft.com/en-us/...
Alternative answer to this old question, if the goal is to share an image without saving it, ``` Windows.Storage.Streams.RandomAccessStreamReference.createFromUri(targetImageSrc); ``` Should achieve the same result, create the stream from the `uri` instead of a `file`. Although, this function might not have been av...
73,462,556
We have an instance of ActiveMQ Artemis 2.17.0 with a queue and producer which sometimes fails with following error: `AMQ219006: Channel disconnected` and right after `AMQ219016: Connection failure detected. Unblocking a blocking call that will never get a response`. I have read different resources on this error and ca...
2022/08/23
[ "https://Stackoverflow.com/questions/73462556", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9165597/" ]
We may subset the `service_date` with a logical vector `treatment == 1` i.e. `service_date[treatment == 1]` (assuming there is at least one 'treatment' level 1) ``` library(dplyr) library(lubridate) d %>% group_by(ID) %>% filter(sum(treatment) >1) %>% summarise(treatment_years = lubridate::time_length(max(servic...
An option using `by` and just subtracting the treated dates. ``` by(d, d$ID, \(x) { if (all(x$treatment == 0)) NA_real_ else diff(x$service_date[x$treatment == 1]) |> as.numeric() }) |> unlist() |> {\(x) c(mean=mean(x, na.rm=TRUE), sd=sd(x, na.rm=TRUE))}() # mean sd # 532.00000 89.09545 ```
68,964,158
CS0266 ERROR The num 3 code is working, but the num 4 code isnt... I think the number is too big... How can I fix it? ``` { GameManager.multiplier += 20000000; GameManager.o2 -= 2000000000; PlayerPrefs.SetInt("o2", GameManager.o2); PlayerPrefs.SetInt("multiplier"...
2021/08/28
[ "https://Stackoverflow.com/questions/68964158", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16731740/" ]
**You can use a little bit `Javascript` and boom it's makes your navbar so attractive.** ```html <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> body { font-family: 'Lato', sans-serif; } .overlay { height: 100%; width: 100%; display: none; position:...
AFAIK you cannot change `parent` element on `child` hover using pure `CSS` you have to use use `javascript` to achieve it...
68,964,158
CS0266 ERROR The num 3 code is working, but the num 4 code isnt... I think the number is too big... How can I fix it? ``` { GameManager.multiplier += 20000000; GameManager.o2 -= 2000000000; PlayerPrefs.SetInt("o2", GameManager.o2); PlayerPrefs.SetInt("multiplier"...
2021/08/28
[ "https://Stackoverflow.com/questions/68964158", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16731740/" ]
**You can use a little bit `Javascript` and boom it's makes your navbar so attractive.** ```html <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> body { font-family: 'Lato', sans-serif; } .overlay { height: 100%; width: 100%; display: none; position:...
You need Javascript for this purpose, unfortunately, as far as I know. I have created an inner overlay div and two JS events to cope with the situation. ```js document.querySelector(".links").addEventListener("mouseenter", function() { let overlay = document.querySelector(".overlay"); overlay.style.display = "...
68,964,158
CS0266 ERROR The num 3 code is working, but the num 4 code isnt... I think the number is too big... How can I fix it? ``` { GameManager.multiplier += 20000000; GameManager.o2 -= 2000000000; PlayerPrefs.SetInt("o2", GameManager.o2); PlayerPrefs.SetInt("multiplier"...
2021/08/28
[ "https://Stackoverflow.com/questions/68964158", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16731740/" ]
**You can use a little bit `Javascript` and boom it's makes your navbar so attractive.** ```html <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> body { font-family: 'Lato', sans-serif; } .overlay { height: 100%; width: 100%; display: none; position:...
You're gonna have to use at least a little bit of javascript for this mate. Do something like this: ```js let icon = document.getElementsByClassName('icon')[0]; let offCanvas = document.getElementsByClassName('offCanvas')[0]; let overlay = document.getElementsByClassName('overlay')[0]; icon.onmouseent...
161,459
I try to remove shipping.phtml from cart page [![shipping.phtml](https://i.stack.imgur.com/6rY3e.png)](https://i.stack.imgur.com/6rY3e.png) I tried to diseable this field from `module-checkout\view\frontend\layout\checkout_cart_index.xml` ``` <block class="Magento\Checkout\Block\Cart\Shipping" name="checkout.cart.sh...
2017/02/23
[ "https://magento.stackexchange.com/questions/161459", "https://magento.stackexchange.com", "https://magento.stackexchange.com/users/47398/" ]
if you have created your block class by extending **\Magento\Framework\View\Element\Template** In Your phtml file use following code : > > $block->getUrl("zipcode/index/index"); > > > To get the url. if you need the url in the block class itself use : > > $this->getUrl("zipcode/index/index"); > > > Commen...
Modify your `Tm\Zipcode\Helper\Data` class and make the constructor look like this ``` protected $_storeManager; public function __construct( ... \Magento\Store\Model\StoreManagerInterface $_storeManager, ... ) { ... $this->_storeManager = $_storeManager; ... } ``` Then the `storeManager` var...
64,966,856
I call the function with and without a parameter. I don't know how to unite them into one. Thanks for help. Function1 ``` normalizeTime(time) { var date = new Date(time * 1000); var hours = date.getHours(); var minutes = date.getMinutes(); var ampm = hours >= 12 ? 'pm' : 'am'; hour...
2020/11/23
[ "https://Stackoverflow.com/questions/64966856", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11585851/" ]
You could check whether there is a parameter or not within the function. Sample implementation: ``` normalizeTime(time) { var date = time ? new Date(time * 1000) : new Date(); var hours = date.getHours(); var minutes = date.getMinutes(); var ampm = hours >= 12 ? 'pm' : 'am'; hours = hours % 12; hours = ho...
What about conditionally check if 'time' is available? inside your function: ``` let date = null; if (time) { date = new Date(time * 1000); } else { date = new Date(); } ``` This way, if the function is called without any arguments, a new date object will be created. If not, it will set the date with the time ar...
64,966,856
I call the function with and without a parameter. I don't know how to unite them into one. Thanks for help. Function1 ``` normalizeTime(time) { var date = new Date(time * 1000); var hours = date.getHours(); var minutes = date.getMinutes(); var ampm = hours >= 12 ? 'pm' : 'am'; hour...
2020/11/23
[ "https://Stackoverflow.com/questions/64966856", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11585851/" ]
What about conditionally check if 'time' is available? inside your function: ``` let date = null; if (time) { date = new Date(time * 1000); } else { date = new Date(); } ``` This way, if the function is called without any arguments, a new date object will be created. If not, it will set the date with the time ar...
Try using default parameter like this: ``` joinedFunction(time = null){ var date = time ? new Date(time * 1000) : new Date(); var hours = date.getHours(); var minutes = date.getMinutes(); var ampm = hours >= 12 ? 'pm' : 'am'; hours = hours % 12; hours = hours ? hours : 12; // the h...
64,966,856
I call the function with and without a parameter. I don't know how to unite them into one. Thanks for help. Function1 ``` normalizeTime(time) { var date = new Date(time * 1000); var hours = date.getHours(); var minutes = date.getMinutes(); var ampm = hours >= 12 ? 'pm' : 'am'; hour...
2020/11/23
[ "https://Stackoverflow.com/questions/64966856", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11585851/" ]
You could check whether there is a parameter or not within the function. Sample implementation: ``` normalizeTime(time) { var date = time ? new Date(time * 1000) : new Date(); var hours = date.getHours(); var minutes = date.getMinutes(); var ampm = hours >= 12 ? 'pm' : 'am'; hours = hours % 12; hours = ho...
Try using default parameter like this: ``` joinedFunction(time = null){ var date = time ? new Date(time * 1000) : new Date(); var hours = date.getHours(); var minutes = date.getMinutes(); var ampm = hours >= 12 ? 'pm' : 'am'; hours = hours % 12; hours = hours ? hours : 12; // the h...
9,196,181
I want to generate ajax requests on the fly, but I want to make sure I get a callback after they have all completed, so I want to wrap them within a .when .done statement like the following: ``` $.when(function(){ $.each(oOptions, function(){ var filePath = this.filePath, dataType = thi...
2012/02/08
[ "https://Stackoverflow.com/questions/9196181", "https://Stackoverflow.com", "https://Stackoverflow.com/users/839359/" ]
Just use `strtotime` to turn the string to timestamp and then compare. If the string don't contain year, then the year default is current year. ``` $ts = strtotime("December 12th"); if ($ts >= 1353369600 && $ts <= 1358640000 ) {//....} ```
You can check every year between the timestamps and see if there is the desired day in between them. ``` function inBetween($day, $month, $from, $to) { $from_year = date('Y', $from); $to_year = date('Y', $to); if($from_year == $to_year) { $time = mktime(12,0,0,$month,$day, $from_year); ...
4,842,042
Eclipse support incremental compiling. If I save a source file then it will compile the modified files. Is it possible after such incremental compile also to run the JUnit tests of the same package and show the fail in the error view. Then I can see the JUnit test failing and compiling errors in the same view without ...
2011/01/30
[ "https://Stackoverflow.com/questions/4842042", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12631/" ]
Use **ExternalToolBuilder**. It can be triggered by source modify. There’s Eclipse customized feature([integrate external tool builder](http://www.eclipse.org/forums/index.php?t=msg&goto=501921&)) which may meet your need. But it needs extra effort to write the scripts I never used. Automatic test cases is not a conv...
You can run all tests in a project using `Alt+Shift+X,T`. I think that making it any more automated than this could take a serious performance toll. Incremental compilation is compiling at most 1 file at a time, but you're talking about running potentially hundreds of tests.
4,842,042
Eclipse support incremental compiling. If I save a source file then it will compile the modified files. Is it possible after such incremental compile also to run the JUnit tests of the same package and show the fail in the error view. Then I can see the JUnit test failing and compiling errors in the same view without ...
2011/01/30
[ "https://Stackoverflow.com/questions/4842042", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12631/" ]
You have to look at these plugins: * [JUnit Max](http://www.junitmax.com/): Not free, developed by Kent Benk (one of the men behind the TDD practice); * [MoreUnit](http://moreunit.sourceforge.net/): Free, but essentially dedicated to help you write the tests; * [Infinitest](http://infinitest.github.com/): Now free, th...
You can run all tests in a project using `Alt+Shift+X,T`. I think that making it any more automated than this could take a serious performance toll. Incremental compilation is compiling at most 1 file at a time, but you're talking about running potentially hundreds of tests.
4,842,042
Eclipse support incremental compiling. If I save a source file then it will compile the modified files. Is it possible after such incremental compile also to run the JUnit tests of the same package and show the fail in the error view. Then I can see the JUnit test failing and compiling errors in the same view without ...
2011/01/30
[ "https://Stackoverflow.com/questions/4842042", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12631/" ]
You have to look at these plugins: * [JUnit Max](http://www.junitmax.com/): Not free, developed by Kent Benk (one of the men behind the TDD practice); * [MoreUnit](http://moreunit.sourceforge.net/): Free, but essentially dedicated to help you write the tests; * [Infinitest](http://infinitest.github.com/): Now free, th...
Use **ExternalToolBuilder**. It can be triggered by source modify. There’s Eclipse customized feature([integrate external tool builder](http://www.eclipse.org/forums/index.php?t=msg&goto=501921&)) which may meet your need. But it needs extra effort to write the scripts I never used. Automatic test cases is not a conv...
1,021,885
I'm going to deploy my application on one of them, and have no idea which is better.
2009/06/20
[ "https://Stackoverflow.com/questions/1021885", "https://Stackoverflow.com", "https://Stackoverflow.com/users/104015/" ]
Amazon's Cloud services, at this time, are much more general and flexible, while Google App Engine essentially fits some specific classes of applications that can live within its specific limitations (those limitations are being gradually relaxed, as GAE adds features and allows you to pay to exceed certain quotas, but...
If you've already written your app, and just want to deploy it, I'd have to say AWS is your best bet. AWS is a platform (or rather, EC2 is), and deploying an existing app is easy. App Engine, on the other hand, provides an entire development environment, at a much higher level of abstraction, which has significant adva...
1,021,885
I'm going to deploy my application on one of them, and have no idea which is better.
2009/06/20
[ "https://Stackoverflow.com/questions/1021885", "https://Stackoverflow.com", "https://Stackoverflow.com/users/104015/" ]
Amazon's Cloud services, at this time, are much more general and flexible, while Google App Engine essentially fits some specific classes of applications that can live within its specific limitations (those limitations are being gradually relaxed, as GAE adds features and allows you to pay to exceed certain quotas, but...
Now how about Free Amazon EC2 for a year to do a better comparision. Check this out. <http://www.buzzingup.com/2010/10/amazon-announces-free-cloud-services-for-new-developers/>
1,021,885
I'm going to deploy my application on one of them, and have no idea which is better.
2009/06/20
[ "https://Stackoverflow.com/questions/1021885", "https://Stackoverflow.com", "https://Stackoverflow.com/users/104015/" ]
Amazon's Cloud services, at this time, are much more general and flexible, while Google App Engine essentially fits some specific classes of applications that can live within its specific limitations (those limitations are being gradually relaxed, as GAE adds features and allows you to pay to exceed certain quotas, but...
No one is king in this field because both amazon and google have their own pros and cons. for the finally decision you have to study deep about both or you have to analyze what you required for you apps. no doubt aws is old in this field and they have lot of good quality stuff but remember google is fast growing in clo...
24,762
I'm installing Windows 7 on my Mac via Parallels. During installation I'm getting. "A required CD/DVD drive device driver is missing." message. Doesn't give me any option to proceed further. What am I doing wrong? p.s. I hit same message using bootcamp. I'm using Macbook Pro OS X, Core i7. Trying to install Windows 7...
2011/09/11
[ "https://apple.stackexchange.com/questions/24762", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/910/" ]
This error commonly occurs when the Windows 7 DVD, or the ISO image used to create said DVD, is corrupted. I see this at work once every month or two so know it well. Re-download the Windows 7 ISO image to use with Parallels. Also re-burn the new ISO image to DVD if you still need a physical disc (for Boot Camp). If ...
There is an absolute solution this problem; 1. Burn iso image to DVD, period. Because this error appears just with USB stick. 2. Want to use USB stick (like me) I know you won't believe me about my weird (odd) solution but it works :) Whenever I try to install Win7 from USB stick, this problem shows up. Then I examine...
24,762
I'm installing Windows 7 on my Mac via Parallels. During installation I'm getting. "A required CD/DVD drive device driver is missing." message. Doesn't give me any option to proceed further. What am I doing wrong? p.s. I hit same message using bootcamp. I'm using Macbook Pro OS X, Core i7. Trying to install Windows 7...
2011/09/11
[ "https://apple.stackexchange.com/questions/24762", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/910/" ]
Everyone seemed to think that re-burning the disk would fix the issue. It did for a lot of people. But I had a purchased copy that I didn't burn. The fix for me was to let Windows boot up. You'll see the black screen with a progress bar where the windows installer starts up. Start tapping F8. You might have to hold Al...
You are using the USB flash drive option. Avoid booting from a USB flash drive; use a bootable DVD for installation and this will never happen again.
24,762
I'm installing Windows 7 on my Mac via Parallels. During installation I'm getting. "A required CD/DVD drive device driver is missing." message. Doesn't give me any option to proceed further. What am I doing wrong? p.s. I hit same message using bootcamp. I'm using Macbook Pro OS X, Core i7. Trying to install Windows 7...
2011/09/11
[ "https://apple.stackexchange.com/questions/24762", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/910/" ]
I went through all the post, tried most of them and a lot of them were not making any sense. Unfortunately I cannot come up with the exact way I solved the issue but here is what I did. 1. Delete your actual VM, it is no good. 2. Update your Parallels Desktop, I am working with 8.0.18608. 3. Create the VM using a bran...
There is an absolute solution this problem; 1. Burn iso image to DVD, period. Because this error appears just with USB stick. 2. Want to use USB stick (like me) I know you won't believe me about my weird (odd) solution but it works :) Whenever I try to install Win7 from USB stick, this problem shows up. Then I examine...
24,762
I'm installing Windows 7 on my Mac via Parallels. During installation I'm getting. "A required CD/DVD drive device driver is missing." message. Doesn't give me any option to proceed further. What am I doing wrong? p.s. I hit same message using bootcamp. I'm using Macbook Pro OS X, Core i7. Trying to install Windows 7...
2011/09/11
[ "https://apple.stackexchange.com/questions/24762", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/910/" ]
Actually I have found out that this also occurs if you are using usb3.0 ports. If you only have usb 3.0 ports you need to go into the bios and tell it to treat them as usb 2.0 ports in preboot
There is an absolute solution this problem; 1. Burn iso image to DVD, period. Because this error appears just with USB stick. 2. Want to use USB stick (like me) I know you won't believe me about my weird (odd) solution but it works :) Whenever I try to install Win7 from USB stick, this problem shows up. Then I examine...
24,762
I'm installing Windows 7 on my Mac via Parallels. During installation I'm getting. "A required CD/DVD drive device driver is missing." message. Doesn't give me any option to proceed further. What am I doing wrong? p.s. I hit same message using bootcamp. I'm using Macbook Pro OS X, Core i7. Trying to install Windows 7...
2011/09/11
[ "https://apple.stackexchange.com/questions/24762", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/910/" ]
Everyone seemed to think that re-burning the disk would fix the issue. It did for a lot of people. But I had a purchased copy that I didn't burn. The fix for me was to let Windows boot up. You'll see the black screen with a progress bar where the windows installer starts up. Start tapping F8. You might have to hold Al...
Actually I have found out that this also occurs if you are using usb3.0 ports. If you only have usb 3.0 ports you need to go into the bios and tell it to treat them as usb 2.0 ports in preboot
24,762
I'm installing Windows 7 on my Mac via Parallels. During installation I'm getting. "A required CD/DVD drive device driver is missing." message. Doesn't give me any option to proceed further. What am I doing wrong? p.s. I hit same message using bootcamp. I'm using Macbook Pro OS X, Core i7. Trying to install Windows 7...
2011/09/11
[ "https://apple.stackexchange.com/questions/24762", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/910/" ]
This error commonly occurs when the Windows 7 DVD, or the ISO image used to create said DVD, is corrupted. I see this at work once every month or two so know it well. Re-download the Windows 7 ISO image to use with Parallels. Also re-burn the new ISO image to DVD if you still need a physical disc (for Boot Camp). If ...
I went through all the post, tried most of them and a lot of them were not making any sense. Unfortunately I cannot come up with the exact way I solved the issue but here is what I did. 1. Delete your actual VM, it is no good. 2. Update your Parallels Desktop, I am working with 8.0.18608. 3. Create the VM using a bran...
24,762
I'm installing Windows 7 on my Mac via Parallels. During installation I'm getting. "A required CD/DVD drive device driver is missing." message. Doesn't give me any option to proceed further. What am I doing wrong? p.s. I hit same message using bootcamp. I'm using Macbook Pro OS X, Core i7. Trying to install Windows 7...
2011/09/11
[ "https://apple.stackexchange.com/questions/24762", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/910/" ]
Everyone seemed to think that re-burning the disk would fix the issue. It did for a lot of people. But I had a purchased copy that I didn't burn. The fix for me was to let Windows boot up. You'll see the black screen with a progress bar where the windows installer starts up. Start tapping F8. You might have to hold Al...
There is an absolute solution this problem; 1. Burn iso image to DVD, period. Because this error appears just with USB stick. 2. Want to use USB stick (like me) I know you won't believe me about my weird (odd) solution but it works :) Whenever I try to install Win7 from USB stick, this problem shows up. Then I examine...
24,762
I'm installing Windows 7 on my Mac via Parallels. During installation I'm getting. "A required CD/DVD drive device driver is missing." message. Doesn't give me any option to proceed further. What am I doing wrong? p.s. I hit same message using bootcamp. I'm using Macbook Pro OS X, Core i7. Trying to install Windows 7...
2011/09/11
[ "https://apple.stackexchange.com/questions/24762", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/910/" ]
Everyone seemed to think that re-burning the disk would fix the issue. It did for a lot of people. But I had a purchased copy that I didn't burn. The fix for me was to let Windows boot up. You'll see the black screen with a progress bar where the windows installer starts up. Start tapping F8. You might have to hold Al...
I went through all the post, tried most of them and a lot of them were not making any sense. Unfortunately I cannot come up with the exact way I solved the issue but here is what I did. 1. Delete your actual VM, it is no good. 2. Update your Parallels Desktop, I am working with 8.0.18608. 3. Create the VM using a bran...
24,762
I'm installing Windows 7 on my Mac via Parallels. During installation I'm getting. "A required CD/DVD drive device driver is missing." message. Doesn't give me any option to proceed further. What am I doing wrong? p.s. I hit same message using bootcamp. I'm using Macbook Pro OS X, Core i7. Trying to install Windows 7...
2011/09/11
[ "https://apple.stackexchange.com/questions/24762", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/910/" ]
This error commonly occurs when the Windows 7 DVD, or the ISO image used to create said DVD, is corrupted. I see this at work once every month or two so know it well. Re-download the Windows 7 ISO image to use with Parallels. Also re-burn the new ISO image to DVD if you still need a physical disc (for Boot Camp). If ...
Actually I have found out that this also occurs if you are using usb3.0 ports. If you only have usb 3.0 ports you need to go into the bios and tell it to treat them as usb 2.0 ports in preboot
24,762
I'm installing Windows 7 on my Mac via Parallels. During installation I'm getting. "A required CD/DVD drive device driver is missing." message. Doesn't give me any option to proceed further. What am I doing wrong? p.s. I hit same message using bootcamp. I'm using Macbook Pro OS X, Core i7. Trying to install Windows 7...
2011/09/11
[ "https://apple.stackexchange.com/questions/24762", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/910/" ]
You are using the USB flash drive option. Avoid booting from a USB flash drive; use a bootable DVD for installation and this will never happen again.
There is an absolute solution this problem; 1. Burn iso image to DVD, period. Because this error appears just with USB stick. 2. Want to use USB stick (like me) I know you won't believe me about my weird (odd) solution but it works :) Whenever I try to install Win7 from USB stick, this problem shows up. Then I examine...
64,339,740
I have an array arr from which I want to remove duplicate objects which have \_ same `e_display_id` \_ and `e_type` as `P`. In this case I want to only consider the object with `status==='N'`. Below is input array arr: ```js let arr = [ { e_type: "P", e_record_id: 33780, e_display_id: "EA-15-001", status:...
2020/10/13
[ "https://Stackoverflow.com/questions/64339740", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11847033/" ]
You could just do the following and change the php to take the GET param i.e. ``` $(document).on('click', '.show', function(){ var schedule_id = $(this).attr("id"); window.location.href = 'show_schedule.php?schedule_id='+schedule_id; }); }); ``` If it HAS to be a POST then a few solutions to...
I have send data using `jQuery` ajax `post` request to `getval.php` file and data will be send successfully. ajax.php ``` !DOCTYPE html> <html> <head> <title>ajax request</title> <!-- jQuery cdn --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> </head> <body> ...
49,333,852
Currently trying to run a bash script on startup to automatically install squid, however the command I'm running requires input. Currently the script i have is: ``` #!/bin/sh PROXY_USER=user1 PROXY_PASS=password1 wget https://raw.githubusercontent.com/hidden-refuge/spi/master/spi && bash spi -rhel7 && rm spi #After ...
2018/03/17
[ "https://Stackoverflow.com/questions/49333852", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8950420/" ]
Look you are calling some tools which act in interactive mode, so as [dani-gehtdichnixan](https://stackoverflow.com/users/1974371/dani-gehtdichnixan) mentioned at ([passing arguments to an interactive program non interactively](https://stackoverflow.com/questions/14392525/passing-arguments-to-an-interactive-program-non...
Try just passing the values to bash's stdin ``` #!/bin/sh PROXY_USER=user1 PROXY_PASS=password1 if wget https://raw.githubusercontent.com/hidden-refuge/spi/master/spi; then printf "%s\n" "$PROXY_USER" "$PROXY_PASS" "$PROXY_PASS" yes | bash spi -rhel7 rm spi fi ```
70,168,614
I have written this code where I am validating data in the Registration Form.On submitting the invalid data, this data is still being submitted.I don't want to submit this invalid data.For eg. Name :1234 This Name is invalid.It still gets submitted. The condition is that I have to use only javascript and HTML. ```js f...
2021/11/30
[ "https://Stackoverflow.com/questions/70168614", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14429751/" ]
I would highly suggest you use the `addEventListener` instead of using the HTML for this. A solution with `addEventListener`: ```js const form = document.querySelector("form"); function formValidation() { form.addEventListener("submit", (e) => { if(/*your condition is invalid*/) { e.preventDefaul...
Please use this code ``` function formValidation() { var name = document.getElementById("name").value; var email = document.getElementById("email").value; var mobile = document.getElementById("mobile").value; var address = document.getElementById("address").value; var pincode = document.getElementB...
70,168,614
I have written this code where I am validating data in the Registration Form.On submitting the invalid data, this data is still being submitted.I don't want to submit this invalid data.For eg. Name :1234 This Name is invalid.It still gets submitted. The condition is that I have to use only javascript and HTML. ```js f...
2021/11/30
[ "https://Stackoverflow.com/questions/70168614", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14429751/" ]
I would highly suggest you use the `addEventListener` instead of using the HTML for this. A solution with `addEventListener`: ```js const form = document.querySelector("form"); function formValidation() { form.addEventListener("submit", (e) => { if(/*your condition is invalid*/) { e.preventDefaul...
To prevent form submission, first you change the submit button type form `submit` to `button` and then change the event `onsubmit` to `onclick`. ```js function formValidation() { var name = document.getElementById("name").value; var email = document.getElementById("email").value; var mobile = document.getElement...
70,168,614
I have written this code where I am validating data in the Registration Form.On submitting the invalid data, this data is still being submitted.I don't want to submit this invalid data.For eg. Name :1234 This Name is invalid.It still gets submitted. The condition is that I have to use only javascript and HTML. ```js f...
2021/11/30
[ "https://Stackoverflow.com/questions/70168614", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14429751/" ]
Your `onsubmit` function should return false and `preventDefault()` on the event for each case where it fails validation. Your `onsubmit` should also be bound to the `form` element, not the `button`. I get the impression that this is an assignment for a class, but I would still like to reiterate the point that inline ...
Please use this code ``` function formValidation() { var name = document.getElementById("name").value; var email = document.getElementById("email").value; var mobile = document.getElementById("mobile").value; var address = document.getElementById("address").value; var pincode = document.getElementB...
70,168,614
I have written this code where I am validating data in the Registration Form.On submitting the invalid data, this data is still being submitted.I don't want to submit this invalid data.For eg. Name :1234 This Name is invalid.It still gets submitted. The condition is that I have to use only javascript and HTML. ```js f...
2021/11/30
[ "https://Stackoverflow.com/questions/70168614", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14429751/" ]
Your `onsubmit` function should return false and `preventDefault()` on the event for each case where it fails validation. Your `onsubmit` should also be bound to the `form` element, not the `button`. I get the impression that this is an assignment for a class, but I would still like to reiterate the point that inline ...
To prevent form submission, first you change the submit button type form `submit` to `button` and then change the event `onsubmit` to `onclick`. ```js function formValidation() { var name = document.getElementById("name").value; var email = document.getElementById("email").value; var mobile = document.getElement...
45,035,758
I read the question [Combine multiple rows into one row MySQL](https://stackoverflow.com/questions/21118809/combine-multiple-rows-into-one-row-mysql) that shows how to make out of several rows of a *SELECT* statement a result with a single line. The [SQL Fiddle with Demo](http://sqlfiddle.com/#!2/37c03/2) also runs fin...
2017/07/11
[ "https://Stackoverflow.com/questions/45035758", "https://Stackoverflow.com", "https://Stackoverflow.com/users/265140/" ]
``` SELECT p1.ID , p1.firstName , p1.lastName,<--------------------I had made change at this line CONCAT_WS(', ' , l2de.name , l2en.name ) FROM languages_have_persons AS lp, persons AS p1 LEFT JOIN languages AS l2de ON l2de.ID = 4 -- German LEFT JOIN languages...
On another site, I had another discussion, where the colleague found the solution, which is ``` SELECT DISTINCT pl.ID , firstName , lastName , languages FROM persons p , ( SELECT lp.Persons_ID AS ID, GROUP_CONCAT(DISTINCT l.name) AS languages FROM languages l , languages_hav...
17,455,702
I am trying to upload an excel sheet and save it as text file and then read from that text file. One of my friends implemented like this in his application and it is working fine. I just copied his code but it did not work with me properly. It saved the excel sheet as a text file but when I opened the text file, I foun...
2013/07/03
[ "https://Stackoverflow.com/questions/17455702", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2190102/" ]
In order for an Excel file to be readable in a text editor, it has to be converted to the CSV file format. This is because .xlsx Excel documents (2007+) are complex XML hierarchies. If you are curious to see what really makes up a .xlsx file, change its extension to .zip, then unzip it. Therefore, you will not be abl...
You can not save Excel file in text format, You need to use `.csv` extension instead of using xlsx, or xls, and save it as `.txt`.
32,995,079
I have defined a base style for my application with the following element: ``` <item name="android:windowBackground">@color/window_background</item> ``` Which has set the background color for all my activities fine until I tested my app on Android 6 where all backgrounds are white. The backgrounds are still color/wi...
2015/10/07
[ "https://Stackoverflow.com/questions/32995079", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1321642/" ]
I haven't found anything specific for Marshmallow that would cause this. So the suggestions I have are: Changing the background color resource to a drawable shape resource. From: ``` <item name="android:windowBackground">@color/window_background</item> ``` To: ``` <item name="android:windowBackground">@drawable...
I used to have a same problem, but I found out by trying that if I commented `actionBarTheme` in my styles, it started to work suddenly. I dug deeper in my styles and found out that the style of action bar was setting a `android:background` attribute after commenting it out everything works now as expected.
32,995,079
I have defined a base style for my application with the following element: ``` <item name="android:windowBackground">@color/window_background</item> ``` Which has set the background color for all my activities fine until I tested my app on Android 6 where all backgrounds are white. The backgrounds are still color/wi...
2015/10/07
[ "https://Stackoverflow.com/questions/32995079", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1321642/" ]
I haven't found anything specific for Marshmallow that would cause this. So the suggestions I have are: Changing the background color resource to a drawable shape resource. From: ``` <item name="android:windowBackground">@color/window_background</item> ``` To: ``` <item name="android:windowBackground">@drawable...
If you're using Android Studio 1.4 or higher go to styles where your theme is located and click "Open Editor" in the upper right hand corner. Then change your window background there. It should be under "android:colorBackground"
32,995,079
I have defined a base style for my application with the following element: ``` <item name="android:windowBackground">@color/window_background</item> ``` Which has set the background color for all my activities fine until I tested my app on Android 6 where all backgrounds are white. The backgrounds are still color/wi...
2015/10/07
[ "https://Stackoverflow.com/questions/32995079", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1321642/" ]
I haven't found anything specific for Marshmallow that would cause this. So the suggestions I have are: Changing the background color resource to a drawable shape resource. From: ``` <item name="android:windowBackground">@color/window_background</item> ``` To: ``` <item name="android:windowBackground">@drawable...
How about setting both `windowBackground` and `colorBackground` ``` <item name="android:windowBackground">@color/window_background</item> <item name="android:colorBackground">@color/window_background</item> ```
32,995,079
I have defined a base style for my application with the following element: ``` <item name="android:windowBackground">@color/window_background</item> ``` Which has set the background color for all my activities fine until I tested my app on Android 6 where all backgrounds are white. The backgrounds are still color/wi...
2015/10/07
[ "https://Stackoverflow.com/questions/32995079", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1321642/" ]
I used to have a same problem, but I found out by trying that if I commented `actionBarTheme` in my styles, it started to work suddenly. I dug deeper in my styles and found out that the style of action bar was setting a `android:background` attribute after commenting it out everything works now as expected.
If you're using Android Studio 1.4 or higher go to styles where your theme is located and click "Open Editor" in the upper right hand corner. Then change your window background there. It should be under "android:colorBackground"
32,995,079
I have defined a base style for my application with the following element: ``` <item name="android:windowBackground">@color/window_background</item> ``` Which has set the background color for all my activities fine until I tested my app on Android 6 where all backgrounds are white. The backgrounds are still color/wi...
2015/10/07
[ "https://Stackoverflow.com/questions/32995079", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1321642/" ]
I used to have a same problem, but I found out by trying that if I commented `actionBarTheme` in my styles, it started to work suddenly. I dug deeper in my styles and found out that the style of action bar was setting a `android:background` attribute after commenting it out everything works now as expected.
How about setting both `windowBackground` and `colorBackground` ``` <item name="android:windowBackground">@color/window_background</item> <item name="android:colorBackground">@color/window_background</item> ```
69,168,470
I have been tasked with writing an XSLT script to convert data from one file into a new format. My XSLT knowledge is very limited so I'm hoping I can get some help here. I need to copy the text inside the quotes of the `exhibit path=` line of the text below: ``` <unit> <chapter> <exhibit path="chapter001/t0...
2021/09/13
[ "https://Stackoverflow.com/questions/69168470", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16901831/" ]
You could do it simply like this : ``` <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="xml" indent="yes" /> <xsl:template match="/"> <xsl:apply-templates select="//exhibit"/> </xsl:template> <xsl:template matc...
You can try this XSLT-1.0 code: ``` <?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.idpf.org/2007/opf"> <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/> <xsl:template match="/"> <xsl:eleme...
15,114,998
I am trying to check if a record exists using javascript (I know is not the safest way to do it) but all of this is for internal use and safety is not an issue. So I opened a recordset, ``` rs.Open("SELECT * FROM clie Where N_CLIENT =" + textbox1+ " AND C_POST_CLIENT = '" + textbox2+ "'",connection) ``` `textbox1` ...
2013/02/27
[ "https://Stackoverflow.com/questions/15114998", "https://Stackoverflow.com", "https://Stackoverflow.com/users/373515/" ]
Try this: ``` rs.Open("SELECT count(1) as pers FROM clie Where N_CLIENT =" + textbox1+ " AND C_POST_CLIENT = '" + textbox2+ "'",connection) ``` You retrieve the pers field in this way: ``` perCounts = rs.('pers') ``` or ``` perCounts = rs.("pers") ``` Then if perCounts = 0 then user no exist....if 1 then user ...
You should use the count method instead > > rs.Open("SELECT count(\*) FROM clie Where N\_CLIENT =" + textbox1+ " AND > C\_POST\_CLIENT = '" + textbox2+ "'",connection) > > > This will return the number of results > > 0 = 0 Clients 1 = 1 Client 2 = 2 Clients . . . > > >
108,183
Let $k$ be a field. It is well-known that $A\otimes\_{k}B$ is not necessarily Noetherian even if $k$-algebras $A$ and $B$ are Noetherian. For example $\mathbb{R}\otimes\_{\mathbb{Q}}\mathbb{R}$. 1. When is the tensor $A\otimes\_{k}B$ Noetherian for Noetherian "commutative" $k$-algebras $A$ and $B$? 2. What if $A$ is ...
2012/09/26
[ "https://mathoverflow.net/questions/108183", "https://mathoverflow.net", "https://mathoverflow.net/users/50973/" ]
You could try having a look at Yekutieli and Zhang's paper Homological Transcendence Degree (<http://arxiv.org/abs/math/04120130>). They call a $k$-algebra $A$ "doubly Noetherian" if $A \otimes\_k A^{op}$ is Noetherian, and "rationally Noetherian" if $A \otimes\_k U$ is Noetherian for every division ring $U$. There's ...
Try looking at section 4 of "Generic flatness for strongly noetherian algebras" by Artin, Small and Zhang. In fact, they work with a stronger property called universally noetherian (UN); this just means that you no longer require $B$ above to be commutative, merely noetherian. It turns out that most times when your rin...
108,183
Let $k$ be a field. It is well-known that $A\otimes\_{k}B$ is not necessarily Noetherian even if $k$-algebras $A$ and $B$ are Noetherian. For example $\mathbb{R}\otimes\_{\mathbb{Q}}\mathbb{R}$. 1. When is the tensor $A\otimes\_{k}B$ Noetherian for Noetherian "commutative" $k$-algebras $A$ and $B$? 2. What if $A$ is ...
2012/09/26
[ "https://mathoverflow.net/questions/108183", "https://mathoverflow.net", "https://mathoverflow.net/users/50973/" ]
You could try having a look at Yekutieli and Zhang's paper Homological Transcendence Degree (<http://arxiv.org/abs/math/04120130>). They call a $k$-algebra $A$ "doubly Noetherian" if $A \otimes\_k A^{op}$ is Noetherian, and "rationally Noetherian" if $A \otimes\_k U$ is Noetherian for every division ring $U$. There's ...
Since we have a natural identification $$ A/I\otimes\_{k} B \cong (A\otimes\_{k}B)/(I\otimes\_{k}B), $$ any quotients of UN rings Andrew mentioned are again UN.
108,183
Let $k$ be a field. It is well-known that $A\otimes\_{k}B$ is not necessarily Noetherian even if $k$-algebras $A$ and $B$ are Noetherian. For example $\mathbb{R}\otimes\_{\mathbb{Q}}\mathbb{R}$. 1. When is the tensor $A\otimes\_{k}B$ Noetherian for Noetherian "commutative" $k$-algebras $A$ and $B$? 2. What if $A$ is ...
2012/09/26
[ "https://mathoverflow.net/questions/108183", "https://mathoverflow.net", "https://mathoverflow.net/users/50973/" ]
You could try having a look at Yekutieli and Zhang's paper Homological Transcendence Degree (<http://arxiv.org/abs/math/04120130>). They call a $k$-algebra $A$ "doubly Noetherian" if $A \otimes\_k A^{op}$ is Noetherian, and "rationally Noetherian" if $A \otimes\_k U$ is Noetherian for every division ring $U$. There's ...
Although the OP is mainly interested in noncommutative results and examples, let me say a few words about the commutative case. Let $k\subset K$ be a field extension. N. Bourbaki in *Algebre. Chapitre 8, Modules et anneaux semi-simples* (edition 1958), exercise 22, page 99, gives the following criterion: if the exten...
108,183
Let $k$ be a field. It is well-known that $A\otimes\_{k}B$ is not necessarily Noetherian even if $k$-algebras $A$ and $B$ are Noetherian. For example $\mathbb{R}\otimes\_{\mathbb{Q}}\mathbb{R}$. 1. When is the tensor $A\otimes\_{k}B$ Noetherian for Noetherian "commutative" $k$-algebras $A$ and $B$? 2. What if $A$ is ...
2012/09/26
[ "https://mathoverflow.net/questions/108183", "https://mathoverflow.net", "https://mathoverflow.net/users/50973/" ]
Try looking at section 4 of "Generic flatness for strongly noetherian algebras" by Artin, Small and Zhang. In fact, they work with a stronger property called universally noetherian (UN); this just means that you no longer require $B$ above to be commutative, merely noetherian. It turns out that most times when your rin...
Although the OP is mainly interested in noncommutative results and examples, let me say a few words about the commutative case. Let $k\subset K$ be a field extension. N. Bourbaki in *Algebre. Chapitre 8, Modules et anneaux semi-simples* (edition 1958), exercise 22, page 99, gives the following criterion: if the exten...
108,183
Let $k$ be a field. It is well-known that $A\otimes\_{k}B$ is not necessarily Noetherian even if $k$-algebras $A$ and $B$ are Noetherian. For example $\mathbb{R}\otimes\_{\mathbb{Q}}\mathbb{R}$. 1. When is the tensor $A\otimes\_{k}B$ Noetherian for Noetherian "commutative" $k$-algebras $A$ and $B$? 2. What if $A$ is ...
2012/09/26
[ "https://mathoverflow.net/questions/108183", "https://mathoverflow.net", "https://mathoverflow.net/users/50973/" ]
Since we have a natural identification $$ A/I\otimes\_{k} B \cong (A\otimes\_{k}B)/(I\otimes\_{k}B), $$ any quotients of UN rings Andrew mentioned are again UN.
Although the OP is mainly interested in noncommutative results and examples, let me say a few words about the commutative case. Let $k\subset K$ be a field extension. N. Bourbaki in *Algebre. Chapitre 8, Modules et anneaux semi-simples* (edition 1958), exercise 22, page 99, gives the following criterion: if the exten...
40,905,160
I am trying to make a chemistry calculator where I can put in the elements letters, like "H", "He", "O", etc, so I have made an array called elements. Then I have made an array with the values. I want for the letters. Is there any way to make it that if I write `element[x]` it would use the `value[x]`? ``` var elemen...
2016/12/01
[ "https://Stackoverflow.com/questions/40905160", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7234872/" ]
You could use a loop to loop through your element array, then take the index found to look up the mass array. A better option may be to use a dictionary object to do a direct lookup, which might be better in this case. You can think of dictionaries as being similar to arrays, but with strings as the key instead of an ...
The Mendeleiev table contains 103 elements, so You may use a fixed Vector to store de datas... Just to make it simple... ``` var mendeleievElmnt:Vector.<String> = new Vector.<String>(103,true); var mendeleievMass:Vector.<Number> = new Vector.<Number>(103,true); // 103 elements... So a fixed Vector. :) function popula...
40,905,160
I am trying to make a chemistry calculator where I can put in the elements letters, like "H", "He", "O", etc, so I have made an array called elements. Then I have made an array with the values. I want for the letters. Is there any way to make it that if I write `element[x]` it would use the `value[x]`? ``` var elemen...
2016/12/01
[ "https://Stackoverflow.com/questions/40905160", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7234872/" ]
You could use a loop to loop through your element array, then take the index found to look up the mass array. A better option may be to use a dictionary object to do a direct lookup, which might be better in this case. You can think of dictionaries as being similar to arrays, but with strings as the key instead of an ...
There multiple ways to do this. The `Object` approach payam sbr suggest is pretty straight forward. To add to the existing answers: you could write a class to represent a chemical object value object(VO) (e.g. store it's name, notation, mass, etc.): ``` package { public class Element { private var _nam...
40,905,160
I am trying to make a chemistry calculator where I can put in the elements letters, like "H", "He", "O", etc, so I have made an array called elements. Then I have made an array with the values. I want for the letters. Is there any way to make it that if I write `element[x]` it would use the `value[x]`? ``` var elemen...
2016/12/01
[ "https://Stackoverflow.com/questions/40905160", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7234872/" ]
use object ``` var element_mass:Object = { H: 1.01, O: 16.01 } function elements() { if(element_mass.hasOwnProperty(input_Mm.text)) Mm = element_mass[input_Mm.text]; } ```
The Mendeleiev table contains 103 elements, so You may use a fixed Vector to store de datas... Just to make it simple... ``` var mendeleievElmnt:Vector.<String> = new Vector.<String>(103,true); var mendeleievMass:Vector.<Number> = new Vector.<Number>(103,true); // 103 elements... So a fixed Vector. :) function popula...
40,905,160
I am trying to make a chemistry calculator where I can put in the elements letters, like "H", "He", "O", etc, so I have made an array called elements. Then I have made an array with the values. I want for the letters. Is there any way to make it that if I write `element[x]` it would use the `value[x]`? ``` var elemen...
2016/12/01
[ "https://Stackoverflow.com/questions/40905160", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7234872/" ]
use object ``` var element_mass:Object = { H: 1.01, O: 16.01 } function elements() { if(element_mass.hasOwnProperty(input_Mm.text)) Mm = element_mass[input_Mm.text]; } ```
There multiple ways to do this. The `Object` approach payam sbr suggest is pretty straight forward. To add to the existing answers: you could write a class to represent a chemical object value object(VO) (e.g. store it's name, notation, mass, etc.): ``` package { public class Element { private var _nam...
2,895,141
(i) Find the prime factorisation of $6500$, and of $1120$. What is the typical way to go about this? Just using common divisibility rules? That's what I did. I'm not sure if there's a more structured way that I should be doing this, since it could be more difficult depending on the number? The above seem to be easy ca...
2018/08/26
[ "https://math.stackexchange.com/questions/2895141", "https://math.stackexchange.com", "https://math.stackexchange.com/users/-1/" ]
By assumption, the differentiable function $h(x) := g(x) - f(x)$ has a minimum point at $a$. Since $a$ is an interior point, then $h'(a) = 0$, i.e. $f'(a) = g'(a)$.
Fundamentally, the intuition here is that if two curves touch each other ($f(a)=g(a)$) and have different derivatives at that point, then one has to actually *cross* the other. If we are to have $f\leq g$ on the entire interval, then the only way those two curves can touch is if they just "kiss", tangent to each other,...
2,895,141
(i) Find the prime factorisation of $6500$, and of $1120$. What is the typical way to go about this? Just using common divisibility rules? That's what I did. I'm not sure if there's a more structured way that I should be doing this, since it could be more difficult depending on the number? The above seem to be easy ca...
2018/08/26
[ "https://math.stackexchange.com/questions/2895141", "https://math.stackexchange.com", "https://math.stackexchange.com/users/-1/" ]
Proof ===== I will give a proof for the problem as follows, which totally depends on some most basic facts of calculus. According to the assumptions, $$\frac{f(x)-f(a)}{x-a}\leq \frac{g(x)-g(a)}{x-a},\tag1$$where $x$ belongs to some right neighborhood of $a.$ And$$\frac{f(x)-f(a)}{x-a}\geq \frac{g(x)-g(a)}{x-a},\tag2$...
Fundamentally, the intuition here is that if two curves touch each other ($f(a)=g(a)$) and have different derivatives at that point, then one has to actually *cross* the other. If we are to have $f\leq g$ on the entire interval, then the only way those two curves can touch is if they just "kiss", tangent to each other,...
7,874
I'm designing a microcontroller based device which spends most of the time in deep sleep. Every 10 seconds it wakes up, reads a potentiometer connected on an ADC line then goes back to sleep. My aim is to achieve a long battery life. How should I wire the potentiometer up to the microcontroller in order to minimise po...
2010/12/14
[ "https://electronics.stackexchange.com/questions/7874", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/566/" ]
Your 1k pot is causing most of your quiescent (standby/off-state) current: I=V/R, and you've got 3-5mA and 3.3V/1000 = 3.3mA. You can either connect one side to a GPIO pin and drive it only when needed (as you suggested) and/or use a larger pot. Be careful when using very large pots (1M and higher), as the input impe...
Instead of connecting the high end of the potmeter to +3V3 you could connect it to an I/O pin. Before going in sleep mode set the pin to input, so that there's no current running through the potmeter. (The resistor keeps both the high end and the wiper at ground.) When the uC wakes up set the I/O pin to output and set ...
7,874
I'm designing a microcontroller based device which spends most of the time in deep sleep. Every 10 seconds it wakes up, reads a potentiometer connected on an ADC line then goes back to sleep. My aim is to achieve a long battery life. How should I wire the potentiometer up to the microcontroller in order to minimise po...
2010/12/14
[ "https://electronics.stackexchange.com/questions/7874", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/566/" ]
I would suggest wiring both ends of the pot to port pins that can be configured not to burn quiescent current while sitting at half-rail (many processors have pins that can be configured to be either digital outputs or analog inputs) and float both ends of the pot while not taking readings. Connect the midpoint of the ...
Your 1k pot is causing most of your quiescent (standby/off-state) current: I=V/R, and you've got 3-5mA and 3.3V/1000 = 3.3mA. You can either connect one side to a GPIO pin and drive it only when needed (as you suggested) and/or use a larger pot. Be careful when using very large pots (1M and higher), as the input impe...
7,874
I'm designing a microcontroller based device which spends most of the time in deep sleep. Every 10 seconds it wakes up, reads a potentiometer connected on an ADC line then goes back to sleep. My aim is to achieve a long battery life. How should I wire the potentiometer up to the microcontroller in order to minimise po...
2010/12/14
[ "https://electronics.stackexchange.com/questions/7874", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/566/" ]
I would suggest wiring both ends of the pot to port pins that can be configured not to burn quiescent current while sitting at half-rail (many processors have pins that can be configured to be either digital outputs or analog inputs) and float both ends of the pot while not taking readings. Connect the midpoint of the ...
Instead of connecting the high end of the potmeter to +3V3 you could connect it to an I/O pin. Before going in sleep mode set the pin to input, so that there's no current running through the potmeter. (The resistor keeps both the high end and the wiper at ground.) When the uC wakes up set the I/O pin to output and set ...
426,795
I have lots of problems with my Lenovo G470 after there was a water spill accident 3 months ago which caused half my keyboard to be damaged. 1. Recently the screen flickers or there will be totally no screen on boot. 2. There is one instant that after many tries, I got the screen to work but there is no network detect...
2012/05/20
[ "https://superuser.com/questions/426795", "https://superuser.com", "https://superuser.com/users/135289/" ]
You will need console access (i.e. be ON the physical server) to reset the password, if you don't have any other passwords available. Is this server connected to an AD server? If so reset the password on the domain controller. If it is only using local usernames and passwords, try something such as the UBCD4Win CD to r...
Try using `net user password` command detailed here; <http://support.microsoft.com/kb/251394> This may allow you to at least change the password from the command prompt