程序员问答中心

python javascript java c# android c++ html php ios jquery css .net git sql c node.js mysql string objective-c linux r ruby-on-rails swift arrays ruby sql-server bash iphone reactjs django json asp.net angular xcode windows typescript angularjs regex pandas asp.net-mvc macos postgresql performance visual-studio spring eclipse docker shell python-3.x database unit-testing multithreading algorithm wpf c++11 list scala github android-studio datetime mongodb xml numpy go twitter-bootstrap laravel http amazon-web-services date google-chrome flutter vim maven intellij-idea debugging dictionary file ajax unix matplotlib haskell linq dataframe tsql oop rest npm image entity-framework gradle function cocoa-touch gcc generics react-native python-2.7 dart visual-studio-code kotlin powershell security exception class ubuntu java-8 command-line asp.net-core winforms ruby-on-rails-3 sorting logging oracle hibernate syntax visual-studio-2010 spring-boot android-layout forms excel sqlite firebase sql-server-2008 testing version-control ecmascript-6 types enums express math templates vue.js object apache lambda collections ssl validation inheritance spring-mvc asynchronous rust url dom svn variables design-patterns qt cocoa csv asp.net-mvc-3 reflection pip optimization perl jpa random apache-spark uitableview batch-file ggplot2 webpack unicode ssh asp.net-web-api pointers vb.net language-agnostic tensorflow android-fragments functional-programming junit memory parsing amazon-s3 authentication facebook serialization events installation flask loops .net-core jenkins stl nginx azure curl constructor hash file-io terminal delphi indexing google-maps time async-await svg selenium concurrency opencv
How do I declare and initialize an array in Java? java arrays
How to retrieve the hash for the current commit in Git? git git-hash
How do I revert all local changes in Git managed project to previous state? git revert git-checkout
Why are elementwise additions much faster in separate loops than in a combined loop? c++ performance x86 vectorization compiler-optimization
How do I chop/slice/trim off last character in string using Javascript? javascript slice trim
How can I delete all Git branches which have been merged? git github version-control branch feature-branch
How do I parse command line arguments in Bash? bash command-line scripting arguments getopts
Static class variables and methods in Python python class oop static class-variables
What are the basic rules and idioms for operator overloading? c++ operators operator-overloading c++-faq
See what's in a stash without applying it [duplicate] git git-stash
What is JSONP, and why was it created? javascript json jsonp terminology
How do I delete a file from a Git repository? git git-rm
How to get the children of the $(this) selector? javascript jquery jquery-selectors
Generating random whole numbers in JavaScript in a specific range javascript random integer
How can I guarantee that my enums definition doesn't change in JavaScript? javascript
What's the difference between SCSS and Sass? css sass
Get the size of the screen, current web page and browser window javascript html jquery layout cross-browser
Difference between decimal, float and double in .NET? .net floating-point double decimal
Branch from a previous commit using Git git branch git-branch
How do I get a consistent byte representation of strings in C# without manually specifying an encoding? c# .net string character-encoding
Indent multiple lines quickly in vi vim editor indentation vi
$(document).ready equivalent without jQuery javascript jquery pageload
Should 'using' directives be inside or outside the namespace? c# .net namespaces stylecop code-organization
Pull latest changes for all git submodules git git-submodules
What are MVP and MVC and what is the difference? user-interface model-view-controller design-patterns terminology mvp
"implements Runnable" vs "extends Thread" in Java java multithreading runnable implements java-threads
Generate random number between two numbers in JavaScript javascript random
Make .gitignore ignore everything except a few files git gitignore
Vertically align text to top within a UILabel ios cocoa-touch uikit uilabel text-alignment
How to print without a newline or space python
Iterate through object properties javascript loops object
How to replace a character by a newline in Vim vim replace escaping newline vi
How do I generate a random integer in C#? c# random
Showing which files have changed between two revisions git branch git-branch git-diff
Finding duplicate values in a SQL table sql duplicates
What does the ??!??! operator do in C? c operators trigraphs
What's the simplest way to print a Java array? java arrays printing
How to get an enum value from a string value in Java java enums
Why doesn't GCC optimize a*a*a*a*a*a to (a*a*a)*(a*a*a)? gcc assembly floating-point compiler-optimization fast-math
What is the purpose of .PHONY in a Makefile? makefile phony-target
What is the copy-and-swap idiom? c++ copy-constructor assignment-operator c++-faq copy-and-swap
How do I center text horizontally and vertically in a TextView? android textview
How to concatenate text from multiple rows into a single text string in SQL Server sql sql-server csv string-concatenation group-concat
How can I save username and password in Git? git credentials git-config git-extensions
Calling a function of a module by using its name (a string) python object reflection
How to write a switch statement in Ruby ruby switch-statement conditional-statements
How to change the cursor into a hand when a user hovers over a list item? css hover mouse-cursor
What is a non-capturing group in regular expressions? regex capturing-group regex-group
How to recover a dropped stash in Git? git recovery git-stash
How do I break a string in YAML over multiple lines? string syntax yaml newline
What is the best way to give a C# auto-property an initial value? c# constructor getter setter automatic-properties
How can I select an element with multiple classes in jQuery? html jquery css jquery-selectors htmlelements
PostgreSQL: Show tables in PostgreSQL postgresql
Vim clear last search highlighting vim full-text-search highlight
How does PHP 'foreach' actually work? php loops foreach iteration php-internals
JavaScript check if variable exists (is defined/initialized) javascript function variables initialization undefined
How to know if an object has an attribute in Python python attributes
How can I randomly select an item from a list? python list random
Get selected value in dropdown list using JavaScript javascript html-select
What are valid values for the id attribute in HTML? html
How do you assert that a certain exception is thrown in JUnit tests? java exception junit junit4 assert
How do I empty an array in JavaScript? javascript arrays
How to leave/exit/deactivate a Python virtualenv python virtualenv virtualenvwrapper
Get int value from enum in C# c# enums casting int
How do I set a variable to the output of a command in Bash? bash shell command-line
How to decide when to use Node.js? javascript node.js web-applications
What is 'Context' on Android? android android-context
How do I get the number of elements in a list in Python? python list
What is a JavaBean exactly? java dependency-injection inversion-of-control javabeans serializable
What is Inversion of Control? oop design-patterns inversion-of-control
How to copy files from host to Docker container? docker docker-container
Vertically align text next to an image? html css alignment vertical-alignment
When should I use 'self' over '$this'? php class oop scope
Should I use Vagrant or Docker for creating an isolated environment? [closed] vagrant docker
Importing files from different folder python importerror python-import
What is the scope of variables in JavaScript? javascript function variables scope var
How to delete from a text file, all lines that contain a specific string? shell sed text-parsing in-place
Do I commit the package-lock.json file created by npm 5? node.js git npm version-control lockfile
Limiting floats to two decimal points python floating-point rounding precision
How to exit in Node.js node.js
How does JavaScript .prototype work? javascript dynamic-languages prototype-oriented
How to check if a variable is set in Bash bash shell variables
How can I symlink a file in Linux? [closed] linux symlink
How to change permissions for a folder and its subfolders/files in one step linux permissions directory chmod
How do I print curly-brace characters in a string while using .format? python string format string-formatting curly-braces
How to convert a string to an integer in JavaScript? javascript string integer data-conversion
Viewing unpushed Git commits git git-diff git-log
C++11 introduced a standardized memory model. What does it mean? And how is it going to affect C++ programming? c++ multithreading c++11 language-lawyer memory-model
What do 'real', 'user' and 'sys' mean in the output of time(1)? unix time benchmarking
Why can templates only be implemented in the header file? c++ templates undefined-reference c++-faq
Is there a way to run Python on Android? android python jython ase android-scripting
When do you use Git rebase instead of Git merge? git version-control git-merge git-rebase
Retrieve the position (X,Y) of an HTML element javascript html css dom position
How can I add new array elements at the beginning of an array in JavaScript? javascript arrays
How to check if a column exists in a SQL Server table sql-server sql-server-2008 tsql sql-server-2012 sql-server-2016
What's the difference between a method and a function? oop language-agnostic terminology
Download a specific tag with Git git git-clone git-tag
What is a smart pointer and when should I use one? c++ pointers c++11 smart-pointers c++-faq
How to return only the Date from a SQL Server DateTime datatype sql date tsql datetime sql-server-2008
Programmatically navigate using React router reactjs react-router