Most Popular
1500 questions
1730
votes
20 answers
Break a previous commit into multiple commits
Without creating a branch and doing a bunch of funky work on a new branch, is it possible to break a single commit into a few different commits after it's been committed to the local repository?
koblas
- 25,410
- 6
- 39
- 49
1730
votes
40 answers
How to specify the private SSH-key to use when executing shell command on Git?
A rather unusual situation perhaps, but I want to specify a private SSH-key to use when executing a shell (git) command from the local computer.
Basically like this:
git clone git@github.com:TheUser/TheProject.git -key…
Christoffer
- 25,035
- 18
- 53
- 77
1730
votes
38 answers
.gitignore is ignored by Git
My .gitignore file seems to be being ignored by Git - could the .gitignore file be corrupt? Which file format, locale or culture does Git expect?
My .gitignore:
# This is a comment
debug.log
nbproject/
Output from git status:
# On branch master
#…
Matt Parkins
- 24,208
- 8
- 50
- 59
1729
votes
60 answers
Error message "error:0308010C:digital envelope routines::unsupported"
I created the default IntelliJ IDEA React project and got this:
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:67:19)
at Object.createHash (node:crypto:130:10)
at module.exports…
a1cd
- 17,884
- 4
- 8
- 28
1727
votes
14 answers
What does "javascript:void(0)" mean?
login
I've seen such hrefs many times, but I don't know what exactly that means.
omg
- 136,412
- 142
- 288
- 348
1723
votes
37 answers
How to vertically align an image inside a div
How can you align an image inside of a containing div?
Example
In my example, I need to vertically center the
in the
with class ="frame":
Arnaud Le Blanc
- 98,321
- 23
- 206
- 194
1721
votes
34 answers
Disabling Chrome cache for website development
I am modifying a site's appearance (CSS modifications) but can't see the result on Chrome because of annoying persistent cache. I tried Shift+refresh but it doesn't work.
How can I disable the cache temporarily or refresh the page in some way that I…
tomermes
- 22,950
- 16
- 43
- 67
1721
votes
30 answers
How Can I add HTML And CSS Into PDF
I have an HTML (not XHTML) document that renders fine in Firefox 3 and IE 7. It uses fairly basic CSS to style it and renders fine in HTML.
I'm now after a way of converting it to PDF. I have tried:
DOMPDF: it had huge problems with tables. I…
cletus
- 616,129
- 168
- 910
- 942
1721
votes
55 answers
Rename package in Android Studio
How do you rename packages in the new IDE Android Studio, based on IntelliJ IDEA?
Is there an automatic refactoring included?
I want to make bulk refactoring, but I don't know how. I worked two years with Eclipse and in Eclipse it's a one-click…
ramzixp
- 17,390
- 3
- 18
- 22
1720
votes
14 answers
What does the [Flags] Enum Attribute mean in C#?
From time to time I see an enum like the following:
[Flags]
public enum Options
{
None = 0,
Option1 = 1,
Option2 = 2,
Option3 = 4,
Option4 = 8
}
I don't understand what exactly the [Flags] attribute does.
Anyone have a good…
Brian Leahy
- 34,677
- 12
- 45
- 60
1720
votes
35 answers
How do I completely uninstall Node.js, and reinstall from beginning (Mac OS X)
My version of node is always v0.6.1-pre even after I install brew node and NVM install v0.6.19.
My node version is:
node -v
v0.6.1-pre
NVM says this (after I install a version of node for the first time in one bash terminal):
nvm…
Dominic Tancredi
- 41,134
- 7
- 34
- 50
1719
votes
8 answers
How to loop through all enum values in C#?
This question already has an answer here:
How do I enumerate an enum in C#? 26 answers
public enum Foos
{
A,
B,
C
}
Is there a way to loop through the possible values of Foos?
Basically?
foreach(Foo in Foos)
divinci
- 22,329
- 11
- 45
- 56
1718
votes
51 answers
How to fix java.lang.UnsupportedClassVersionError: Unsupported major.minor version
I am trying to use Notepad++ as my all-in-one tool edit, run, compile, etc.
I have JRE installed, and I have setup my path variable to the .../bin directory.
When I run my "Hello world" in Notepad++, I get this…
ERJAN
- 23,696
- 23
- 72
- 146
1717
votes
12 answers
What does do?
What's the difference if one web page starts with
and If page starts with