Explain Codes LogoExplain Codes Logo

Best Articles — Page 95

# "where 1=1" statement

sql
dynamic-sql
query-optimization
sql-injection

How do I reverse a list or loop over it backwards?

python
list-reversal
memory-management
performance

Filter dict to contain only certain keys?

python
filtering
dictionary-comprehension
lambda

Css selector for text input fields?

html
css-selectors
form-styling
accessibility

How can I get the current date and time in UTC or GMT in Java?

java
date-time
joda-time
timezone

Get difference between two lists with Unique Entries

python
set-operations
list-comprehension
efficiency

Run raw SQL in migration

sql
raw-sql
migrations
database

What is the best way to remove accents (normalize) in a Python unicode string?

python
unicode
normalization
regex

What is "above-the-fold content" in Google Pagespeed?

html
above-the-fold
css-optimization
responsive-design

Group by date only on a Datetime column

sql
group-by
date-filtering
performance

Open URL in same window and in same tab

javascript
url-redirection
window-open
location-replace

How to line-break from CSS, without using <br />?

html
line-breaks
css-properties
responsive-design

What is "X-Content-Type-Options=nosniff"?

html
security
content-type
nosniff

How to use jQuery to select a dropdown option?

javascript
jquery
dropdown
event-simulation

Pretty-print JSON in Java

java
pretty-printing
json
gson

`meta charset="utf-8"` vs `meta http-equiv="Content-Type"`

html
character-encoding
utf-8
best-practices

How can I make a div not larger than its contents?

html
css
layout
responsive-design

Css: Control space between bullet and <li>

html
css
bullets
browser-compatibility

Using two values for one switch case statement

java
switch-case
string-objects
java-se-7

Print the contents of a DIV

javascript
print
dynamic-content
cross-browser