Explain Codes LogoExplain Codes Logo

Best Articles — Page 344

What is syntax for selector in CSS for next element?

html
css
selectors
web-development

Writing a list to a file with Python, with newlines

python
file-handling
context-managers
json

Get java.nio.file.Path object from java.io.File

java
path
file-operations
exception-handling

How to extend an existing JavaScript array with another array, without creating a new array

javascript
array-extensions
performance
best-practices

Jsp tricks to make templating easier?

java
templating
tag-files
jstl

How do I convert an array of Objects into one Object in JavaScript?

javascript
reduce
performance
object-merging

Sort array by firstname (alphabetically) in JavaScript

javascript
sorting
localecompare
array-methods

Css scale height to match width - possibly with a formfactor

html
responsive-design
css
javascript

Is it possible to GROUP BY multiple columns using MySQL?

sql
group-by
aggregate-functions
distinct

How to add/update an attribute to an HTML element using JavaScript?

javascript
attribute-manipulation
cross-browser
jquery

Get current URL with jQuery?

javascript
url-manipulation
jquery
history-api

Alter TABLE to add a composite primary key

sql
composite-key
foreign-key
data-integrity

What browsers support HTML5 WebSocket API?

html
websocket
real-time
cloud-support

How do I get the current index/key in a "for each" loop

java
for-each
index-tracking
java-8

Converting double to string

java
string-formatting
decimalformat
error-handling

Get selected text from a drop-down list (select box) using jQuery

javascript
dropdown
jquery
best-practices

How to force a web browser NOT to cache images

html
cache-control
http-headers
web-development

How to get a thread and heap dump of a Java process on Windows that's not running in a console

java
heap-dump
thread-dump
visualvm

Change select box option background color

html
css-styling
browser-compatibility
accessibility

How can I get the index of an object by its property in JavaScript?

javascript
find-index
method-chaining
browser-support