Explain Codes LogoExplain Codes Logo

Best Articles — Page 358

How do I find the time difference between two datetime objects in Python?

python
datetime
timezones
timedelta

How to show the "Are you sure you want to navigate away from this page?" when changes committed?

javascript
prompt-engineering
beforeunload
onchange

How to convert a JSON string to a Map<String, String> with Jackson JSON

java
json-parsing
jackson-library
objectmapper

How to round a number to n decimal places in Java

java
rounding
decimalformat
bigdecimal

Mockito - difference between doReturn() and when()

java
mockito
testing
stubbing

Html5: using header or footer tag twice?

html
responsive-design
best-practices
semantic-ui

Stripping out HTML tags from a string

swift
regex-engineering
html-parsing
string-manipulation

Convert floats to ints in Pandas?

python
dataframe
pandas
data-integrity

How to import an existing X.509 certificate and private key in Java keystore to use in SSL?

java
ssl
keystore
certificate

How to get the first non-null value in Java?

java
null-checks
coalesce
optional

How to reset a select element with jQuery

javascript
jquery
forms
reset

Unpivot with column name

sql
sql-fiddle
pivot-tables
performance-optimization

How can I add a key/value pair to a JavaScript object?

javascript
object-manipulation
javascript-objects
spread-syntax

What do I use for a max-heap implementation in Python?

python
heapq
max-heap
data-structures

When or why would you use a right outer join instead of left?

sql
join
data-integrity
sql-performance

How to escape double quotes in a title attribute

html
html-entities
escape-characters
cross-browser-compatibility

Best way to center a `` on a page vertically and horizontally?

css
responsive-design
best-practices
css-grid

Use images as checkboxes

web-development
responsive-design
css
performance

Most efficient way to convert an HTMLCollection to an Array

javascript
javascript-convert
array-methods
htmlcollection

Smooth scrolling when clicking an anchor link

html
responsive-design
performance
best-practices