How to pass password automatically for rsync SSH command?
I need to do `rsync` by `ssh` and want to do it automatically without the need of passing password for `ssh` manually.
How can I escape a single quote?
How can I escape a `'` (single quote) in HTML? This is where I'm trying to use it: ``` <input type='text' id='abc' value='hel'lo'> ``` The result for the above code is "hel" populated in the text box...
Node.js check if file exists
How do I check for the existence of a file?
Can't connect to Postgresql on port 5432
I have PostgreSQL 9.3 installed on a server running Ubuntu Server 14.04. If I ssh into the server via terminal, I'm able to connect with psql. But when I try to configure pgAdmin III to do the remote...
- Modified
- 19 Jul at 18:51
Working Soap client example
I'm trying to find a simple (ha) SOAP example in JAVA with a working service, any I seem to be finding are not working. I have tried this [one](http://www.elharo.com/fibonacci/SOAP) from this [exampl...
- Modified
- 11 Jan at 11:27
Finding Key associated with max Value in a Java Map
What is the easiest way to get key associated with the max value in a map? I believe that Collections.max(someMap) will return the max Key, when you want the key that corresponds to the max value.
Content type 'application/x-www-form-urlencoded;charset=UTF-8' not supported for @RequestBody MultiValueMap
Based on the answer [for problem with x-www-form-urlencoded with Spring @Controller](https://stackoverflow.com/questions/33731070/spring-mvc-requestparam-causing-missingservletrequestparameterexceptio...
- Modified
- 26 Nov at 07:16
Delete all rows in an HTML table
How can I delete all rows of an HTML table except the `<th>`'s using Javascript, and without looping through all the rows in the table? I have a very huge table and I don't want to freeze the UI while...
- Modified
- 8 Nov at 17:27
Difference between core and processor
What is the difference between a core and a processor? I've already looked for it on Google, but I only get definitions for multi-core and multi-processor, which is not what I am looking for.
- Modified
- 11 Sep at 08:56
How do I check if a cookie exists?
What's a good way to check if a cookie exist? ``` cookie1=;cookie1=345534; //or cookie1=345534;cookie1=; //or cookie1=345534; ``` ``` cookie=; //or <blank> ```
- Modified
- 11 Nov at 02:2
Gcc error: gcc: error trying to exec 'cc1': execvp: No such file or directory
I have been successfully using gcc on Linux Mint 12. Now I am getting an error. I have recently been doing some .so builds and installed Clang not to long ago, but have successfully compiled since bot...
- Modified
- 11 Aug at 07:26
Check for special characters (/*-+_@&$#%) in a string?
How do I check a string to make sure it contains numbers, letters, or space only?
Removing items from a list
While looping through a list, I would like to remove an item of a list depending on a condition. See the code below. This gives me a `ConcurrentModification` exception. ``` for (Object a : list) { ...
- Modified
- 20 Dec at 12:12
How to get the list of all installed color schemes in Vim?
Is there a way to get a list of all installed color schemes in Vim? That would make very easy to select one without looking at the `.vim` directory.
- Modified
- 5 Oct at 00:44
How to undo a git pull?
I would like to undo my git pull on account of unwanted commits on the remote origin, but I don't know to which revision I have to reset back to. How can I just go back to the state before I did the ...
Call child component method from parent class - Angular
I have created a child component which has a method I want to invoke. When I invoke this method it only fires the `console.log()` line, it will not set the `test` property?? Below is the quick start A...
- Modified
- 17 Sep at 14:11
Are double square brackets [[ ]] preferable over single square brackets [ ] in Bash?
A coworker claimed recently in a code review that the `[[ ]]` construct is to be preferred over `[ ]` in constructs like ``` if [ "`id -nu`" = "$someuser" ] ; then echo "I love you madly, $someus...
- Modified
- 21 Jan at 15:19
Docker: Container keeps on restarting again on again
I today deployed an instance of MediaWiki using the appcontainers/mediawiki docker image, and I now have a new problem for which I cannot find any clue. After trying to attach to the mediawiki front c...
- Modified
- 26 May at 22:14
How to read a text-file resource into Java unit test?
I have a unit test that needs to work with XML file located in `src/test/resources/abc.xml`. What is the easiest way just to get the content of the file into `String`?
- Modified
- 24 May at 07:58
C# declare empty string array
I need to declare an empty string array and i'm using this code ``` string[] arr = new String[0](); ``` But I get "method name expected" error. What's wrong?
How can I install NumPy on Windows using 'pip install'?
I want to install [NumPy](https://en.wikipedia.org/wiki/Microsoft_Windows) using the `pip install numpy` command, but I get the following error: ``` RuntimeError: Broken toolchain: cannot link a simpl...
- Modified
- 22 Aug at 14:59
Is it possible to save HTML page as PDF using JavaScript or jquery?
Is it possible to save HTML page as PDF using JavaScript or jquery? In Detail: I generated one HTML Page which contains a table . It has one button 'save as PDF'. If user clicks that button then tha...
- Modified
- 1 Aug at 09:39
Only variables should be passed by reference
``` // Other variables $MAX_FILENAME_LENGTH = 260; $file_name = $_FILES[$upload_name]['name']; //echo "testing-".$file_name."<br>"; //$file_name = strtolower($file_name); $file_extension = end(explode...
- Modified
- 14 Jun at 08:55