KBD

Keith Devens .com

Friday, January 9, 2009 Flag waving
Civilization advances by extending the number of important operations which we can perform without thinking about them. – Alfred North Whitehead (Introduction to Mathematics)
← Entry 904Entry 906 →

Daily link icon Thursday, November 8, 2001

Entry 905

I put the creation and modification dates and times under each weblog entry. Which is better, with them or without them? Please let me know (like anyone comes to this site anyway Smiley.

Thing is... entries created before I started saving the modification time don't have one, so they look silly. Check out my archive and see what I mean. If I leave the timestamps, it'll incentivize me to run some SQL to update the records with empty modified times to set them to the created time for the record. I've been reluctant to run it up until now because there's always the chance I could run it by accident without putting the "where" clause in or something (which means that it would update every record, not just the ones with blank modified times), and basically I wouldn't feel comfortable unless I backed up the database first. That's always a pain, so I avoided it. The less "danger" the better.

Anyway, the SQL is simple, so I'll probably do it soon and not worry about it. "update blog set updated_time = created_time where modified_time is null" (table and field names have been changed to protect the innocent).

← Entry 904Entry 906 →

Comments XML gif


Feel free to post a comment below. Please see my comment policy.

Formatting Rules (No HTML):

  • **bold**, *italic*, _underlined_, --strikeout--
  • "text"="url" creates a link, and URLs are auto-highlighted
  • Blockquote: Like e-mail, begin paragraph with > (greater-than sign)
  • Lists: begin paragraph with *,-, or + (unordered), or # (ordered)
  • Code block: ?!code:language=perl|php|sql|javascript|etc.{\n}...{\n}?!/code

:
(will be your IP address if blank)
: (optional)
(Will not be shown on site)

: (optional)
:

January 2009
SunMonTueWedThuFriSat
 123
45678910
11121314151617
18192021222324
25262728293031



RSS feed RSS feed for Keith's Weblog
Atom feed Atom feed for Keith's Weblog
Weblog archive
Recent comments
  on 3 posts

Recent comments XML

The Elegant Universe

Well I have finally found the crazy​guy that preaches useless nonsence​in A...

Joseph Baxter: Jan 7, 11:07pm

I hate Norton Antivirus


SYMANTEC is very​cunning..
Symantec now have a​redeemable cash back offe...

CAN: Jan 4, 6:25pm

Spider solitaire

Hi everyone!

Glad to have found​this site.  I have enjoyed reading​the c...

flwrchld53: Jan 4, 5:30pm

Generated in about 0.179s.

(Used 8 db queries)

mobile phone