Most Popular
1500 questions
1299
votes
9 answers
What's the difference between utf8_general_ci and utf8_unicode_ci?
Between utf8_general_ci and utf8_unicode_ci, are there any differences in terms of performance?
KahWee Teng
- 13,658
- 3
- 21
- 21
1299
votes
48 answers
Can't bind to 'formGroup' since it isn't a known property of 'form'
The situation
I am trying to make what should be a very simple form in my Angular application, but no matter what, it never works.
The Angular version
Angular 2.0.0 RC5
The error
Can't bind to 'formGroup' since it isn't a known property of…
FrancescoMussi
- 20,760
- 39
- 126
- 178
1298
votes
42 answers
How can you speed up Eclipse?
How can you make the experience with Eclipse faster?
For instance: I disable all the plugins I don't need (Mylyn, Subclipse, …).
Instead of using a plugin for Mercurial, I configure TortoiseHG as an external tool.
user2427
- 7,842
- 19
- 61
- 71
1297
votes
42 answers
Run/install/debug Android applications over Wi-Fi?
I thought there was a way to test your applications in development over Wi-Fi. Is this possible?
I'd love to be able to untether my phone and develop wirelessly.
Naftuli Kay
- 87,710
- 93
- 269
- 411
1297
votes
24 answers
CSS selector for first element with class
I have a bunch of elements with a class name red, but I can't seem to select the first element with the class="red" using the following CSS rule:
.home .red:first-child {
border: 1px solid red;
}
1297
votes
12 answers
How do I encode and decode a base64 string?
How do I return a base64 encoded string given a string?
How do I decode a base64 encoded string into a string?
Kevin Driedger
- 51,492
- 15
- 48
- 55
1296
votes
8 answers
Use a list of values to select rows from a Pandas dataframe
Let’s say I have the following Pandas dataframe:
df = DataFrame({'A' : [5,6,3,4], 'B' : [1,2,3, 5]})
df
A B
0 5 1
1 6 2
2 3 3
3 4 5
I can subset based on a specific value:
x = df[df['A'] == 3]
x
A B
2 3 …
zach
- 29,475
- 16
- 67
- 88
1295
votes
12 answers
If Python is interpreted, what are .pyc files?
Python is an interpreted language. But why does my source directory contain .pyc files, which are identified by Windows as "Compiled Python Files"?
froadie
- 79,995
- 75
- 166
- 235
1295
votes
31 answers
Iterating through a Collection, avoiding ConcurrentModificationException when removing objects in a loop
We all know you can't do the following because of ConcurrentModificationException:
for (Object i : l) {
if (condition(i)) {
l.remove(i);
}
}
But this apparently works sometimes, but not always. Here's some specific code:
public…
Claudiu
- 224,032
- 165
- 485
- 680
1295
votes
37 answers
How can I generate random alphanumeric strings?
How can I generate a random 8 character alphanumeric string in C#?
KingNestor
- 65,976
- 51
- 121
- 152
1295
votes
32 answers
How to add a new column to an existing DataFrame?
I have the following indexed DataFrame with named columns and rows not- continuous numbers:
a b c d
2 0.671399 0.101208 -0.181532 0.241273
3 0.446172 -0.243316 0.051767 1.577318
5 0.614758 0.075793 -0.451460…
tomasz74
- 16,031
- 10
- 37
- 51
1294
votes
5 answers
How to get the ASCII value of a character
How do I get the ASCII value of a character as an int in Python?
Matt
- 84,419
- 25
- 57
- 67
1292
votes
15 answers
How do I get the path to the current script with Node.js?
How would I get the path to the script in Node.js?
I know there's process.cwd, but that only refers to the directory where the script was called, not of the script itself. For instance, say I'm in /home/kyle/ and I run the following command:
node…
Kyle Slattery
- 33,318
- 9
- 32
- 36
1291
votes
39 answers
How to prune local tracking branches that do not exist on remote anymore?
With git remote prune origin I can remove the local branches that are not on the remote any more.
But I also want to remove local branches that were created from those remote branches (a check if they are unmerged would be nice).
How can I do this?
Alex
- 32,506
- 16
- 106
- 171
1290
votes
18 answers
HTTP response code for POST when resource already exists
I'm building a server that allows clients to store objects. Those objects are fully constructed at client side, complete with object IDs that are permanent for the whole lifetime of the object.
I have defined the API so that clients can create or…
vmj
- 13,283
- 3
- 18
- 14