Most Popular
1500 questions
1937
votes
18 answers
Abort Ajax requests using jQuery
Is it possible that using jQuery, I cancel/abort an Ajax request that I have not yet received the response from?
lukewm
- 20,969
- 6
- 25
- 28
1936
votes
17 answers
Make the current Git branch a master branch
I have a repository in Git. I made a branch, then did some changes both to the master and to the branch.
Then, tens of commits later, I realized the branch is in much better state than the master, so I want the branch to "become" the master and…
Karel Bílek
- 34,538
- 28
- 89
- 139
1934
votes
31 answers
What is tail recursion?
Whilst starting to learn lisp, I've come across the term tail-recursive. What does it mean exactly?
Ben Lever
- 1,973
- 7
- 25
- 34
1933
votes
12 answers
LEFT JOIN vs. LEFT OUTER JOIN in SQL Server
What is the difference between LEFT JOIN and LEFT OUTER JOIN?
KG Sosa
- 20,309
- 6
- 25
- 27
1933
votes
18 answers
Writing to files in Node.js
I've been trying to find a way to write to a file when using Node.js, but with no success. How can I do that?
Gjorgji
- 20,938
- 9
- 29
- 38
1932
votes
46 answers
How to get screen dimensions as pixels in Android
I created some custom elements, and I want to programmatically place them to the upper right corner (n pixels from the top edge and m pixels from the right edge). Therefore I need to get the screen width and screen height and then set position:
int…
Niko Gamulin
- 64,879
- 93
- 219
- 275
1929
votes
50 answers
Check if a value is an object in JavaScript
How do you check if a value is an object in JavaScript?
Danny Fox
- 35,333
- 28
- 67
- 92
1929
votes
19 answers
Delete a column from a Pandas DataFrame
When deleting a column in a DataFrame I use:
del df['column_name']
And this works great. Why can't I use the following?
del df.column_name
Since it is possible to access the column/Series as df.column_name, I expected this to work.
John
- 37,208
- 27
- 78
- 105
1927
votes
27 answers
How do I remove a trailing newline?
How do I remove the last character of a string if it is a newline?
"abc\n" --> "abc"
RidingThisToTheTop
1924
votes
38 answers
What is the difference between an interface and abstract class?
What exactly is the difference between an interface and an abstract class?
Sarfraz
- 367,681
- 72
- 526
- 573
1919
votes
8 answers
How to exit from PostgreSQL command line utility: psql
What command or short key can I use to exit the PostgreSQL command line utility psql?
App Work
- 21,491
- 5
- 24
- 38
1917
votes
27 answers
What's the difference between the atomic and nonatomic attributes?
What do atomic and nonatomic mean in property declarations?
@property(nonatomic, retain) UITextField *userName;
@property(atomic, retain) UITextField *userName;
@property(retain) UITextField *userName;
What is the operational difference between…
Alex Wayne
- 162,909
- 46
- 287
- 312
1914
votes
11 answers
Static methods in Python?
Is it possible to have static methods in Python which I could call without initializing a class, like:
ClassName.static_method()
Joan Venge
- 292,935
- 205
- 455
- 667
1912
votes
21 answers
How to copy Docker images from one host to another without using a repository
How do I transfer a Docker image from one machine to another one without using a repository, no matter private or public?
I create my own image in VirtualBox, and when it is finished I try to deploy to other machines to have real usage.
Since it is…
Larry Cai
- 50,513
- 32
- 108
- 148
1907
votes
40 answers
How can I display a JavaScript object?
How do I display the content of a JavaScript object in a string format like when we alert a variable?
The same formatted way I want to display an object.
maxjackie
- 20,978
- 5
- 27
- 37