Explain Codes LogoExplain Codes Logo

Best Articles — Page 312

What does the "yield" keyword do in Python?

python
yield
generators
itertools

Html5 Video // Completely Hide Controls

html
video-controls
accessibility
custom-controls

I am getting an "Invalid Host header" message when connecting to webpack-dev-server remotely

javascript
webpack
dev-server
remote-access

How do I make the method return type generic?

java
generics
type-safety
method-overloading

Generate random string/characters in JavaScript

javascript
random-string
crypto
best-practices

How to align checkboxes and their labels consistently cross-browsers

html
checkboxes
css-resets
responsive-design

Align DIV's to bottom or baseline

html
flexbox
positioning
layout

Truncate (not round) decimal places in SQL Server

sql
truncation
round
best-practices

Switch Statement for Multiple Cases in JavaScript

javascript
switch-statement
higher-order-functions
best-practices

How can I vertically align elements in a div?

html
flexbox
grid
vertical-alignment

How to return only the Date from a SQL Server DateTime datatype

sql
date-formatting
performance
null-handling

Scrollintoview Scrolls just too far

javascript
scrolling
css-properties
smooth-scroll

Using Python's os.path, how do I go up one directory?

python
path-manipulation
cross-platform
reusable-functions

Testing HTML email rendering

html
email-rendering
responsive-design
email-testing

How do I make a delay in Java?

java
scheduledexecutorservice
lambda
thread-sleep

How to display pandas DataFrame of floats using a format string for columns?

python
pandas
dataframe
formatting

What is the most efficient/elegant way to parse a flat table into a tree?

sql
recursive-queries
closure-tables
path-enumeration

Postgresql - query from bash script as database user 'postgres'

sql
bash-scripting
dynamic-sql
error-handling

How to randomize two ArrayLists in the same fashion?

java
randomization
data-integrity
fisher-yates

What does functools.wraps do?

python
decorators
functools
debugging