Skip to content
Heapfield
Sign in
Sign in
Sign in
Heapfield
Latest
Hot
Top
Solved
Unanswered
RSS
Member directory
More
RSS
Member directory
Leaderboard
Badges
About
New topic
Topic
Posters
Replies
Views
Activity
JavaScript: why does [1, 2, 10].sort() put 10 before 2?
Web & front end
javascript
arrays
sorting
158 views
·
1d
2
2
158
1d
Vim: how do I exit without saving?
Systems & DevOps
vim
editor
82 views
·
1d
2
2
82
1d
Python: what is the difference between __str__ and __repr__?
Languages
python
oop
repr
87 views
·
1d
1
1
87
1d
Rust: "borrowed value does not live long enough" when returning a &str from a function
Languages
rust
lifetimes
borrow-checker
155 views
·
1d
1
1
155
1d
Bash: loop over files with spaces in their names
Systems & DevOps
bash
shell
filenames
266 views
·
1d
1
1
266
1d
C#: async void vs async Task
Languages
c#
async-await
203 views
·
1d
1
1
203
1d
Git: undo the most recent local commits
Systems & DevOps
git
git-reset
version-control
657 views
·
1d
3
3
657
1d
Spark: how to avoid a shuffle when joining a small table?
Data & databases
apache-spark
pyspark
performance
390 views
·
1d
1
1
390
1d
Async Python: run blocking code without freezing the event loop
Languages
python
asyncio
concurrency
185 views
·
1d
1
1
185
1d
React: useEffect runs twice in development
Web & front end
reactjs
react-hooks
use-effect
959 views
·
1d
2
2
959
1d
CSS grid: make the last row items stretch to fill the width
Web & front end
css
css-grid
layout
963 views
·
1d
3
3
963
1d
Docker container exits immediately with code 0
Systems & DevOps
docker
dockerfile
containers
684 views
·
1d
1
1
684
1d
SQL: get the latest row per group
Data & databases
sql
postgresql
groupwise-max
1.6k views
·
1d
2
2
1.6k
1d
Java: concurrent modification exception when removing from a list in a for-each loop
Languages
java
collections
iterator
720 views
·
1d
1
1
720
1d
PostgreSQL: query is slow even though the column is indexed
Data & databases
postgresql
indexing
query-optimization
6.0k views
·
1d
4
4
6.0k
1d
Floating point: why is 0.1 + 0.2 != 0.3?
Languages
floating-point
javascript
precision
838 views
·
1d
1
1
838
1d
Go: all goroutines are asleep — deadlock! with an unbuffered channel
Languages
go
concurrency
channels
1.0k views
·
2d
1
1
1.0k
2d
TypeScript: type an object whose keys come from a union
Languages
typescript
generics
mapped-types
3.2k views
·
3d
2
2
3.2k
3d
Regex to match a hex colour like #fff or #1a2b3c
Web & front end
regex
javascript
validation
1.3k views
·
1w
1
1
1.3k
1w
Closed
How to center a div horizontally and vertically?
Web & front end
css
flexbox
centering
11.6k views
·
Sep '25
1
1
11.6k
Sep '25
How do I select rows from a pandas DataFrame based on column values?
Data & databases
python
pandas
dataframe
59.0k views
·
Feb '19
5
5
59.0k
Feb '19
Why does iterating a sorted list run faster than an unsorted one in this C++ loop?
Languages
c++
performance
optimization
cpu-architecture
139k views
·
May '18
10
10
139k
May '18