SSH Private Key Permissions using Git GUI or ssh-keygen are too open
Recently I've been unable to clone or push to github, and I'm trying to find the root cause. I have cygwin + git as well as msysgit. Msysgit was installed with the following options: - - That g...
Should you use .htm or .html file extension? What is the difference, and which file is correct?
What is the difference between the `.htm` and `.html` file extension? Why there are two of them? Which is correct?
- Modified
- 10 Jan at 13:40
How to obtain a Thread id in Python?
I have a multi-threading Python program, and a utility function, `writeLog(message)`, that writes out a timestamp followed by the message. Unfortunately, the resultant log file gives no indication of ...
- Modified
- 31 Jul at 02:40
How to activate JMX on my JVM for access with jconsole?
How to activate JMX on a JVM for access with jconsole?
- Modified
- 13 May at 09:2
Why no ICloneable<T>?
Is there a particular reason why a generic `ICloneable<T>` does not exist? It would be much more comfortable, if I would not need to cast it everytime I clone something.
- Modified
- 11 Jan at 20:12
Eclipse fonts and background color
I have been trying to change the background color of Eclipse's windows to black and customize the font colors. There doesn't seem to be a way to do this, at least not in an obvious way. I am using ver...
- Modified
- 1 Jan at 15:18
What is the dual table in Oracle?
I've heard people referring to this table and was not sure what it was about.
- Modified
- 4 Dec at 20:14
How to use XPath in Python?
What are the libraries that support XPath? Is there a full implementation? How is the library used? Where is its website?
- Modified
- 10 Jul at 14:39
Bootstrap Center Vertical and Horizontal Alignment
I have a page where only form exists and I want form to be placed in the center of the screen. ``` <div class="container"> <div class="row justify-content-center align-items-center"> <form> ...
- Modified
- 14 Jul at 19:3
Set height of chart in Chart.js
I want to draw a horizontal bar chart with Chart.js but it keeps scaling the chart instead of using the height I assign the canvas form the script. Is there any way to set the height of the graph from...
- Modified
- 29 Aug at 17:7
Deprecation warning in Moment.js - Not in a recognized ISO format
I'm getting a warning that a value provided to moment is not in a recognized ISO format. I changed my variable today with the moment function and still it doesn't work. Here's the warning error: > Dep...
- Modified
- 6 Jul at 07:3
How to set default values in Go structs
There are multiple answers/techniques to the below question: 1. How to set default values to golang structs? 2. How to initialize structs in golang I have a couple of answers but further discussi...
- Modified
- 13 Jul at 21:44
How do I add a custom script to my package.json file that runs a javascript file?
I want to be able to execute the command `script1` in a project directory that will run `node script1.js`. `script1.js` is a file in the same directory. The command needs to be specific to the proje...
- Modified
- 12 Jul at 18:20
Convert Dictionary to JSON in Swift
I have create the next Dictionary: ``` var postJSON = [ids[0]:answersArray[0], ids[1]:answersArray[1], ids[2]:answersArray[2]] as Dictionary ``` and I get: ``` [2: B, 1: A, 3: C] ``` So, how can...
- Modified
- 17 Oct at 11:32
Prevent Sequelize from outputting SQL to the console on execution of query?
I have a function to retrieve a user's profile. ``` app.get('/api/user/profile', function (request, response) { // Create the default error container var error = new Error(); var User = db.Use...
- Modified
- 8 Mar at 14:56
What is the OAuth 2.0 Bearer Token exactly?
According to [RFC6750](https://www.rfc-editor.org/rfc/rfc6750)-The OAuth 2.0 Authorization Framework: Bearer Token Usage, the bearer token is: > A security token with the property that any party in po...
- Modified
- 7 Dec at 20:15
MongoDB Show all contents from all collections
Is it possible to show all collections and its contents in MongoDB? Is the only way to show one by one?
- Modified
- 12 Jun at 20:17
Apache Proxy: No protocol handler was valid
I am trying to proxy a subdirectory to another server. My httpd.conf: ``` RewriteEngine On ProxyPreserveHost On RewriteRule .*subdir/ https://anotherserver/subdir/ [P] ``` The problem is that Apach...
- Modified
- 25 Jan at 09:5
ASP.NET MVC 5 - Identity. How to get current ApplicationUser
I have an Article entity in my project which has the `ApplicationUser` property named `Author`. How can I get the full object of currently logged `ApplicationUser`? While creating a new article, I hav...
- Modified
- 15 Oct at 06:54
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
The target ... overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Pods.xcconfig
I have incorporate `SpatialIite` into a Xcode project which uses a header file from `Proj.4`, just one header. Both are Xcode projects and have static targets. I'm trying to migrate from git submodul...
.ps1 cannot be loaded because the execution of scripts is disabled on this system
I run this code to execute PowerShell code from an ASP.NET application: ``` System.Management.Automation.Runspaces.Runspace runspace = System.Management.Automation.Runspaces.RunspaceFactory.CreateRun...
- Modified
- 19 Jun at 21:10
Regex to validate date formats dd/mm/YYYY, dd-mm-YYYY, dd.mm.YYYY, dd mmm YYYY, dd-mmm-YYYY, dd/mmm/YYYY, dd.mmm.YYYY with Leap Year Support
I need to validate a date string for the format `dd/mm/yyyy` with a regular expresssion. This regex validates `dd/mm/yyyy`, but not the invalid dates like `31/02/4500`: ``` ^(0?[1-9]|[12][0-9]|3[01]...
- Modified
- 30 Sep at 07:38
How to set default value to the input[type="date"]
I have tried ([JSFiddle](http://jsfiddle.net/VD2QH/2/)): ``` <input type="date" value="2012-3-23"> ``` but it doesn't work, how can I set the default value?
- Modified
- 17 Jul at 10:17
Delete all files in directory (but not directory) - one liner solution
I want to delete all files inside ABC directory. When I tried with `FileUtils.deleteDirectory(new File("C:/test/ABC/"));` it also deletes folder ABC. Is there a one liner solution where I can delete...
- Modified
- 26 Mar at 11:48