Most Popular

1500 questions
1138
votes
30 answers

ssh remote host identification has changed

I've reinstalled my server and I am getting these messages: [user@hostname ~]$ ssh root@pong @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! …
Filip Dobrovolný
  • 11,483
  • 3
  • 15
  • 16
1136
votes
12 answers

Why would you use Expression> rather than Func?

I understand lambdas and the Func and Action delegates. But expressions stump me. In what circumstances would you use an Expression> rather than a plain old Func?
Richard Nagle
  • 11,974
  • 3
  • 21
  • 16
1136
votes
46 answers

How do I rename a MySQL database (change schema name)?

How do I quickly rename a MySQL database (change its schema name)? Usually I just dump a database and re-import it with a new name. This is not an option for very big databases. Apparently RENAME {DATABASE | SCHEMA} db_name TO new_db_name; does bad…
deadprogrammer
  • 11,253
  • 24
  • 74
  • 85
1136
votes
21 answers

How do I search for files in Visual Studio Code?

I am used to Resharper where I can search for files, not the content, but the filename, which makes it quick to open new files. Is this feature implemented in Visual Studio Code and is there a shortcut for it?
Dofs
  • 17,737
  • 28
  • 75
  • 123
1136
votes
43 answers

How can I change the color of an 'svg' element?

I want to use this technique and change the SVG color, but so far I haven't been able to do so. I use this in the CSS, but my image is always black, no matter what. My code: .change-my-color { fill: green; }
Barbara
  • 12,908
  • 6
  • 32
  • 43
1136
votes
20 answers

How to use Git and Dropbox together?

Is it possible to use Git and Dropbox together?
n1kh1lp
  • 14,247
  • 6
  • 29
  • 28
1135
votes
12 answers

Node.js + Nginx - What now?

I've set up Node.js and Nginx on my server. Now I want to use it, but, before I start there are 2 questions: How should they work together? How should I handle the requests? There are 2 concepts for a Node.js server, which one is better: a.…
Van Coding
  • 24,244
  • 24
  • 88
  • 132
1135
votes
6 answers

What are the most common Python docstring formats?

I have seen a few different styles of writing docstrings in Python, what are the most popular styles?
Noah McIlraith
  • 14,122
  • 7
  • 31
  • 35
1135
votes
16 answers

How to convert UTF-8 byte[] to string

I have a byte[] array that is loaded from a file that I happen to known contains UTF-8. In some debugging code, I need to convert it to a string. Is there a one-liner that will do this? Under the covers it should be just an allocation and a memcopy,…
BCS
  • 75,627
  • 68
  • 187
  • 294
1134
votes
34 answers

How can I make Bootstrap columns all the same height?

I'm using Bootstrap. How can I make three columns all the same height? Here is a screenshot of the problem. I would like the blue and red columns to be the same height as the yellow column. Here is the code:
Richard
  • 62,943
  • 126
  • 334
  • 542
1133
votes
5 answers

Is there any difference between a GUID and a UUID?

I see these two acronyms being thrown around and I was wondering if there are any differences between a GUID and a UUID?
Jon Tackabury
  • 47,710
  • 52
  • 130
  • 168
1132
votes
41 answers

Parameterize an SQL IN clause

How do I parameterize a query containing an IN clause with a variable number of arguments, like this one? SELECT * FROM Tags WHERE Name IN ('ruby','rails','scruffy','rubyonrails') ORDER BY Count DESC In this query, the number of arguments could be…
Jeff Atwood
  • 63,320
  • 48
  • 150
  • 153
1132
votes
15 answers

Can I call a constructor from another constructor (do constructor chaining) in C++?

As a C# developer I'm used to running through constructors: class Test { public Test() { DoSomething(); } public Test(int count) : this() { DoSomethingWithCount(count); } public Test(int count, string name) :…
Stormenet
  • 25,926
  • 9
  • 53
  • 65
1132
votes
17 answers

How do I call Objective-C code from Swift?

In Swift, how does one call Objective-C code? Apple mentioned that they could co-exist in one application, but does this mean that one could technically re-use old classes made in Objective-C whilst building new classes in Swift?
David Mulder
  • 26,123
  • 9
  • 51
  • 114
1131
votes
12 answers

Convert a String representation of a Dictionary to a dictionary

How can I convert the str representation of a dict, such as the following string, into a dict? s = "{'muffin' : 'lolz', 'foo' : 'kitty'}" I prefer not to use eval. What else can I use? The main reason for this, is one of my coworkers classes he…
UberJumper
  • 20,245
  • 19
  • 69
  • 87