Most Popular

1500 questions
1905
votes
126 answers

How do I remedy "The breakpoint will not currently be hit. No symbols have been loaded for this document." warning?

A C# desktop application (on the Visual Studio Express/Community edition) worked, but then it didn't work 5 seconds later. I tried the following: Ensure debug configuration, debug flag, and full debug information are set on all assemblies. Delete…
Instance Hunter
  • 7,799
  • 5
  • 43
  • 56
1903
votes
26 answers

Detach (move) subdirectory into separate Git repository

I have a Git repository which contains a number of subdirectories. Now I have found that one of the subdirectories is unrelated to the other and should be detached to a separate repository. How can I do this while keeping the history of the files…
matli
  • 27,093
  • 6
  • 35
  • 37
1903
votes
31 answers

How do I get PHP errors to display?

I have checked my PHP ini file (php.ini) and display_errors is set and also error reporting is E_ALL. I have restarted my Apache webserver. I have even put these lines at the top of my script, and it doesn't even catch simple parse errors. For…
Abs
  • 53,696
  • 97
  • 268
  • 401
1902
votes
37 answers

How do I auto-resize an image to fit a 'div' container?

How do you auto-resize a large image so that it will fit into a smaller width div container whilst maintaining its width:height ratio? Example: stackoverflow.com - when an image is inserted onto the editor panel and the image is too large to fit…
001
  • 59,081
  • 87
  • 224
  • 333
1901
votes
13 answers

How do you append to a file?

How do you append to the file instead of overwriting it? Is there a special function that appends to the file?
user502039
1901
votes
44 answers

How to generate a random alpha-numeric string

I've been looking for a simple Java algorithm to generate a pseudo-random alpha-numeric string. In my situation it would be used as a unique session/key identifier that would "likely" be unique over 500K+ generation (my needs don't really require…
Todd
  • 3,363
  • 3
  • 19
  • 12
1900
votes
36 answers

What is the difference between a process and a thread?

What is the technical difference between a process and a thread? I get the feeling a word like 'process' is overused and there are also hardware and software threads. How about light-weight processes in languages like Erlang? Is there a definitive…
James Fassett
  • 38,570
  • 11
  • 36
  • 43
1899
votes
23 answers

How to check if the string is empty?

Does Python have something like an empty string variable where you can do: if myString == string.empty: Regardless, what's the most elegant way to check for empty string values? I find hard coding "" every time for checking an empty string not as…
Joan Venge
  • 292,935
  • 205
  • 455
  • 667
1898
votes
19 answers

How to pad zeroes to a string?

What is a Pythonic way to pad a numeric string with zeroes to the left, i.e. so the numeric string has a specific length?
Faisal
1894
votes
4 answers

How does Git handle symbolic links?

If I have a file or directory that is a symbolic link and I commit it to a Git repository, what happens to it? I would assume that it leaves it as a symbolic link until the file is deleted and then if you pull the file back from an old version it…
Alex
  • 32,390
  • 10
  • 52
  • 68
1893
votes
17 answers

Click through div to underlying elements

I have a div that has background:transparent, along with border. Underneath this div, I have more elements. Currently, I'm able to click the underlying elements when I click outside of the overlay div. However, I'm unable to click the underlying…
Ryan
  • 20,097
  • 7
  • 23
  • 27
1892
votes
53 answers

How to get a Docker container's IP address from the host

Is there a command I can run to get the container's IP address right from the host after a new container is created? Basically, once Docker creates the container, I want to roll my own code deployment and container configuration scripts.
Murali Allada
  • 19,398
  • 4
  • 18
  • 21
1891
votes
21 answers

What's the difference between a proxy server and a reverse proxy server?

What is the difference between a proxy server and a reverse proxy server?
Vicky
1889
votes
4 answers

Inserting multiple rows in a single SQL query?

I have multiple set of data to insert at once, say 4 rows. My table has three columns: Person, Id and Office. INSERT INTO MyTable VALUES ("John", 123, "Lloyds Office"); INSERT INTO MyTable VALUES ("Jane", 124, "Lloyds Office"); INSERT INTO MyTable…
rits
1886
votes
19 answers

What do two question marks together mean in C#?

Ran across this line of code: FormsAuth = formsAuth ?? new FormsAuthenticationWrapper(); What do the two question marks mean, is it some kind of ternary operator? It's hard to look up in Google.
Edward Tanguay
  • 183,467
  • 302
  • 701
  • 1,026