Git mergetool generates unwanted .orig files
When I do a merge conflict resolution with Kdiff3 (and other merge tool I tried) I noticed that on resolution a `*.orig` file is created. Is there a way for it to not create that extra file?
- Modified
- 8 Apr at 21:12
Significant new inventions in computing since 1980
This question arose from [comments](https://stackoverflow.com/questions/357813/help-me-remember-a-quote-from-alan-kay#389642) about different kinds of progress in computing over the last 50 years or s...
- Modified
- 17 Nov at 22:36
How do I copy the contents of one stream to another?
What is the best way to copy the contents of one stream to another? Is there a standard utility method for this?
How do I replace multiple spaces with a single space in C#?
How can I replace multiple spaces in a string with only one space in C#? Example: ``` 1 2 3 4 5 ``` would be: ``` 1 2 3 4 5 ```
SyntaxError: Cannot use import statement outside a module
I've got an project that's giving me trouble, so I thought I might update it and ran into issues when using the latest Babel. My "index.js" is: ``` require('dotenv').config() import {startServer} fro...
- Modified
- 10 Sep at 05:1
How can I use an ES6 import in Node.js?
I'm trying to get the hang of ES6 imports in Node.js and am trying to use the syntax provided in this example: ### Cheatsheet Link I'm looking through [the support table](http://node.green/), but I...
- Modified
- 12 Oct at 19:39
What's the difference between ng-model and ng-bind
I'm currently learning AngularJS and am having difficulty understanding the difference between `ng-bind` and `ng-model`. Can anyone tell me how they differ and when one should be used over the other?...
- Modified
- 16 Nov at 09:45
‘ld: warning: directory not found for option’
When I'm building my Xcode 4 apps I'm getting this warning: ``` ld: warning: directory not found for option '-L/Users/frenck/Downloads/apz/../../../Downloads/Google Analytics SDK/Library' ld: warnin...
- Modified
- 15 Oct at 14:46
IllegalStateException: Can not perform this action after onSaveInstanceState with ViewPager
I'm getting user reports from my app in the market, delivering the following exception: ``` java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState at android.app.Fragm...
- Modified
- 14 Feb at 11:8
Click event doesn't work on dynamically generated elements
``` <html> <head> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript"> $(document).ready(function() { $("button").click(function() { ...
What is private bytes, virtual bytes, working set?
I am trying to use the perfmon windows utility to debug memory leaks in a process. This is how perfmon explains the terms: is the current size, in bytes, of the Working Set of this process. The Wor...
- Modified
- 30 May at 04:34
How to get client's IP address using JavaScript?
I need to somehow retrieve the client's IP address using JavaScript; no server side code, not even SSI. However, I'm not against using a free 3rd party script/service.
- Modified
- 16 Jun at 01:51
How can I update the parent's state in React?
My structure looks as follows: ``` Component 1 - |- Component 2 - - |- Component 4 - - - |- Component 5 Component 3 ``` Component 3 should display some data depending on state of Component ...
- Modified
- 21 May at 14:56
How to use the ternary operator inside an interpolated string?
I'm confused as to why this code won't compile: ``` var result = $"{fieldName}{isDescending ? " desc" : string.Empty}"; ``` If I split it up, it works fine: ``` var desc = isDescending ? " desc" :...
- Modified
- 28 Jun at 09:36
Check if element is visible in DOM
Is there any way that I can check if an element is visible in pure JS (no jQuery) ? So, given a DOM element, how can I check if it is visible or not? I tried: ``` window.getComputedStyle(my_element)['...
- Modified
- 9 Dec at 09:44
How to keep environment variables when using sudo
When I use any command with sudo the environment variables are not there. For example after setting HTTP_PROXY the command `wget` works fine without `sudo`. However if I type `sudo wget` it says it ca...
- Modified
- 17 Aug at 17:6
'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine
I'm trying to get data from an Excel file on a button click event. My connection string is: ``` string connString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\source\\SiteCore65\\Individual-D...
Recursively look for files with a specific extension
I'm trying to find all files with a specific extension in a directory and its subdirectories with my bash (Latest Ubuntu LTS Release). This is what's written in a script file: ``` #!/bin/bash direc...
How do I push a local Git branch to master branch in the remote?
I have a branch called develop in my local repo, and I want to make sure that when I push it to origin it's merged with the origin/master. Currently, when I push it's added to a remote develop branch....
- Modified
- 26 Feb at 12:53
How to auto-reload files in Node.js?
Any ideas on how I could implement an auto-reload of files in Node.js? I'm tired of restarting the server every time I change a file. Apparently Node.js' `require()` function does not reload files if...
- Modified
- 6 Aug at 06:36
Getting attributes of Enum's value
I would like to know if it is possible to get attributes of the `enum` values and not of the `enum` itself? For example, suppose I have the following `enum`: ``` using System.ComponentModel; // for D...
- Modified
- 27 Feb at 09:39
Quickly reading very large tables as dataframes
I have very large tables (30 million rows) that I would like to load as a dataframes in R. `read.table()` has a lot of convenient features, but it seems like there is a lot of logic in the implementa...
How do I match any character across multiple lines in a regular expression?
For example, this regex ``` (.*)<FooBar> ``` will match: ``` abcde<FooBar> ``` But how do I get it to match across multiple lines? ``` abcde fghij<FooBar> ```
How to go back last page
Is there a smart way to go back last page in Angular 2? Something like ``` this._router.navigate(LASTPAGE); ``` For example, page C has a button, - Page A -> Page C, click it, back to page A.- P...
- Modified
- 26 Mar at 17:28
GCC -fPIC option
I have read about [GCC's Options for Code Generation Conventions](http://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options), but could not understand what "Generate position-independen...