Most Popular
1500 questions
1029
votes
28 answers
How do I kill the process currently using a port on localhost in Windows?
How can I remove the current process/application which is already assigned to a port?
For example: localhost:8080
KavinduWije
- 32,261
- 4
- 12
- 16
1028
votes
32 answers
How to check if a service is running on Android?
How do I check if a background service is running?
I want an Android activity that toggles the state of the service -- it lets me turn it on if it is off and off if it is on.
Bee
- 14,027
- 6
- 34
- 48
1028
votes
6 answers
Convert list of dictionaries to a pandas DataFrame
How can I convert a list of dictionaries into a DataFrame? Given:
[{'points': 50, 'time': '5:00', 'year': 2010},
{'points': 25, 'time': '6:00', 'month': "february"},
{'points':90, 'time': '9:00', 'month': 'january'},
{'points_h1':20, 'month':…
appleLover
- 13,421
- 8
- 31
- 49
1027
votes
11 answers
How to convert a std::string to const char* or char*
How can I convert an std::string to a char* or a const char*?
user37875
- 13,384
- 9
- 35
- 43
1027
votes
24 answers
How to permanently set $PATH on Linux/Unix
On Linux, how can I add a directory to the $PATH so it remains persistent across different sessions?
Background
I'm trying to add a directory to my path so it will always be in my Linux path. I've tried:
export PATH=$PATH:/path/to/dir
This works,…
Ali
- 249,782
- 257
- 562
- 750
1026
votes
7 answers
How to subtract a day from a date?
I have a Python datetime.datetime object. What is the best way to subtract one day?
defrex
- 14,468
- 7
- 33
- 45
1026
votes
10 answers
What is the correct way to check for string equality in JavaScript?
What is the correct way to check for equality between Strings in JavaScript?
JSS
- 10,277
- 3
- 14
- 3
1025
votes
14 answers
Where can I find php.ini?
A few years ago I installed Apache 2.2x and PHP 5.3.1 on a Linux server I maintain. I used .tar.gz's and built them as instructed (instead of rpms and what-have-you). And all was fine.
Today I need to install this which seems like a PHP library. I…
necromancer
- 22,906
- 22
- 66
- 114
1025
votes
1 answer
What IDE to use for Python?
What IDEs ("GUIs/editors") do others use for Python coding?
husayt
- 13,559
- 7
- 48
- 77
1025
votes
11 answers
Git workflow and rebase vs merge questions
I've been using Git now for a couple of months on a project with one other developer. I have several years of experience with SVN, so I guess I bring a lot of baggage to the relationship.
I have heard that Git is excellent for branching and merging,…
Micah
- 17,334
- 8
- 39
- 46
1025
votes
44 answers
Can't start Eclipse - Java was started but returned exit code=13
I am trying to get my first taste of Android development using Eclipse. I ran into this problem when trying to run Eclipse, having installed version 4.2 only minutes ago.
After first trying to start Eclipse without any parameters to specify the Java…
Ben E.
- 10,432
- 3
- 13
- 10
1024
votes
28 answers
Reading a plain text file in Java
It seems there are different ways to read and write data of files in Java.
I want to read ASCII data from a file. What are the possible ways and their differences?
Tim the Enchanter
- 10,589
- 4
- 19
- 20
1024
votes
4 answers
In Typescript, what is the ! (exclamation mark / bang) operator when dereferencing a member?
When looking at the sourcecode for a tslint rule, I came across the following statement:
if (node.parent!.kind === ts.SyntaxKind.ObjectLiteralExpression) {
return;
}
Notice the ! operator after node.parent. Interesting!
I first tried compiling…
Mike Chamberlain
- 35,532
- 27
- 106
- 153
1024
votes
13 answers
How to dispatch a Redux action with a timeout?
I have an action that updates the notification state of my application. Usually, this notification will be an error or info of some sort. I need to then dispatch another action after 5 seconds that will return the notification state to the initial…
Ilja
- 40,784
- 74
- 242
- 455
1024
votes
37 answers
Tab space instead of multiple non-breaking spaces ("nbsp")?
Is it possible to insert a tab character in HTML instead of having to type four times?
Roch
- 21,233
- 28
- 76
- 120