My Thanksgiving

Choose to be a person of Excellence. As we pause in this Nation today… to hopefully give thanks to our creator, we should always be mindful of some very important factors. What was the thing that the pilgrims were most thankful for do you think?

Freedom of course was most likely their first thanksgiving to God. This is not to say that they weren’t thankful for many other things such as:

Food:
Health:
Family:
Home:

What are you thankful for?

I believe that today we as Americans and as children of God we are facing some of the toughest challenges in our history, both as a country and personally. Children are growing, expanding your minds, and learning, beginning to formulate a life’s plan.

Just remember, that when this nation was formed, our founders recognized and realized that our power as a nation comes freely given from We The People, and our rights are not given to us by the Government but from our all powerful Creator, God. Remember to always give thanks to him, and give back that which he is given to us.

• Charity
• Tithe
• A giving heart
• Compassion for those in need.

For if we stand with God, there is no force in this world, in between or beyond that can oppose us and be successful.

Isaiah 12:4-5 “Give thanks to the Lord, call on his name; make known among the nations what he has done, and proclaim that his name is exalted. Sing to the Lord, for he has done glorious things; let this be known to all the world.”

So being children of excellence, children of God, let us always be mindful of being of a character that our Heavenly Father admires, for we were not made for this world, but for his good pleasure. Therefore what determines our character is what we choose to do when no one is looking. What will you choose in your life?

This is what I wrote for Thanksgiving Day.

Posted in Thoughtful Indiscretions | Leave a comment

Dephi Tip: How to Detect MDI Child Minimize, Maximize

It’s important to react to MDI child events sometimes to process handling or whatever. It’s a tricky thing, and there’s a lot of drawn out solutions all over the web and some code that will cause duplicated messages to be coming as well. This code works.

type
  TFrmEditor = class(TForm)

  private
    { Private declarations }

  procedure WMSysCommand(var Message : TMessage); message WM_SYSCOMMAND;

  public
    { Public declarations }

  end;

var
  FrmEditor: TFrmEditor;

implementation

uses UnitTools, UnitMain;

{$R *.dfm}

procedure TFrmEditor.WMSysCommand(var Message: TMessage);
begin

  if (Message.WParam = SC_MINIMIZE) or (Message.WParam = SC_RESTORE) or (Message.WParam = SC_MAXIMIZE) then
 begin

//If you need to react to all three events at once, code goes here.
//Could use a case statement here.
 if (Message.WParam = SC_MINIMIZE) then FrmEditor.WindowState := WsMinimized;
 if (Message.WParam = SC_RESTORE) then FrmEditor.WindowState := WsNormal;
 if (Message.WParam = SC_MAXIMIZE) then FrmEditor.WindowState := WsMaximized;
 end
  else
    inherited;

end;
Posted in Delphi Tips & Code | Leave a comment

Update WordPress Post Date via MySQL & PhpAdmin

Okay. sometimes you got a new blog from an old blog, and you used the WordPress import XML (WXR) routine, and NOW you’ve found out that it’s far from a perfect solution. Let’s say your the least of your troubles are the simple fact now your posts have a new date, or better yet, no date at all. (Trust me this can happen)
Anyway, you might be wondering to yourself how to change these dates back to the ones that you had in your old blog. Or you might be wondering “Where the hell are my posts” Depending on your level of anxiety, I just wanted to say, calm down, and do this. It’s not the best fix but… Log into your cPanel, and log into your PHPmyAdmin. Then enter the following SQL to make your changes. (Don’t forget to click Go! after your query has been entered.

UPDATE `wp_posts` SET `post_date` = '2010-10-05 08:06:00' WHERE `post_date` = '0000-00-00 00:00:00'

This updates the date to October the fifth. You can further refine your query by adding something like:

UPDATE `wp_posts` SET `post_date` = '2010-10-05 08:06:00' WHERE `post_date` = '0000-00-00 00:00:00' AND `post_title` = 'This is the best Blog Post Ever!'

To your success!

Posted in WordPress Tips & Tricks | Tagged , , , , | Leave a comment