Explain Codes LogoExplain Codes Logo

Best Articles — Page 349

Best way to convert string to bytes in Python 3?

python
encode-decode
string-conversion
unicode-encoding

How to create custom exceptions in Java?

java
custom-exceptions
exception-handling
java-best-practices

Downloading a file from Spring controllers

java
spring
file-downloading
rest-api

Clearing all cookies with JavaScript

javascript
cookie-engineering
javascript-techniques
browser-compatibility

Alternatives to REPLACE on a text or ntext datatype

sql
data-manipulation
sql-server
performance-tuning

Why do people write "#!/usr/bin/env python" on the first line of a Python script?

python
prompt-engineering
best-practices
version-management

Search and replace a line in a file in Python

python
file-input
regex
best-practices

Setting a backgroundImage With React Inline Styles

javascript
react
webpack
es6

Adding two Java 8 streams, or an extra element to a stream

java
stream-engineering
java-8
best-practices

Convert JSON to Map

java
json-parsing
objectmapper
gson

Looping through localStorage in HTML5 and JavaScript

javascript
localStorage
serialization
deserialization

How can I make an SVG scale with its parent container?

html
responsive-design
svg
css

Display block without 100% width

css
responsive-design
best-practices
css-solutions

Get all non-unique values (i.e.: duplicate/more than one occurrence) in an array

javascript
prompt-engineering
performance
best-practices

How do I count occurrence of unique values inside a list?

python
counting
unique-values
list-processing

Ant warning: "'includeantruntime' was not set"

java
ant
classpath
build-process

Should I use encodeURI or encodeURIComponent for encoding URLs?

javascript
url-encoding
security-best-practices
javascript-functions

How do I get a div to float to the bottom of its container?

html
responsive-design
css
flexbox

Bootstrap 3 two columns full height

html
responsive-design
best-practices
web-development

Delete duplicate records from a SQL table without a primary key

sql
data-integrity
database-restrictions
duplicate-records