Skip to content

u/Shinhan

In this archive from May 2010 to Oct 2026

7
posts
379
comments
2
media
1.4k
score

Its more of a database question, but dunno what would be the best place to ask this.

On our classifieds website we have certain items that can be enabled and disabled. The seller can also pay to have the item be featured (in several different ways). I have a table with start/end times for when item was enabled and another table with start/end times when the item was featured.

What I need to get it is total number of days (or seconds that I later divide by 86400) when item was enabled but NOT featured in any way.

What is the best way to do it?

I, of course, did implement something, but its quite buggy. I think that there has to be some kind of algorithm that I could implement for a proper solution, but I don't know how to find it.

1 points

I hate the forced font change. None of the other changes in this upgrade forced a change, they were all like "if you want this new feature go to this setting", but font is force _

Other thoughts:

  • Nativ composer.json support. right click update package looks interesting
  • ML assisted ranking for code completion looks interesting and useful. (Why is font change forced but this is not?)
  • Find redundant ternary, nice
  • PHP Debug in HTTP client, interesting
  • Unified SSH config - useful, but have to select it manually for all existing DB connections again
  • Commit tool window - interesting but only works for git
  • MySQL export to excel - FINALLY! Need to test to see how it works with funky text fields (crlf, tabs and so on; with normal csv/tsv export had to do lots of replaces when copying to excel)
2 points

Then I wrote down all the filename and line number results onto index cards, so I could cross them out as I dealt with them.

After doing Search in files, if you press ctrl+enter it will open a new tab with search results. As you keep fixing the results one by one they will be replaced with red undefined (or something similar). Later you can just use "rerun search" option in that same tab.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.