The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My work

  • My badges

  • Twitter Updates

  • My Flickr Stream

    20140508-Delphi-2007--Project-Options--Cannot-Edit-Application-Title-HelpFile-Icon-Theming

    20140430-Fiddler-Filter-Actions-Button-Run-Filterset-now

    20140424-Windows-7-free-disk-space

    More Photos
  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,312 other followers

Archive for the ‘Software Development’ Category

TortoiseSvn – How do I move a file (or folder) from one folder to another (via: Stack Overflow)

Posted by Jeroen Pluimers on 2014/07/31

It is the second – italic – paragraph what I always forget. Thanks Mark Embling!

To move a file or set of files using tortoise, right-click-and-drag the target files to their destination and release the right mouse button. The popup menu will have a ‘SVN move versioned files here’ option.

Note that the destination folder must have already been added to the repository for the ‘SVN move versioned files here’ option to appear.

Yes, it is also in the TortoiseSVN documentation under Deleting, Moving and Renaming and Copying/Moving/Renaming Files and Folders. But those are lacking emphasis on the the italic stuff.

–jeroen

via svn – How do I move a file (or folder) from one folder to another in TortoiseSVN? – Stack Overflow.

Posted in Development, Software Development, Source Code Management, Subversion/SVN | Leave a Comment »

Delphi: workaround for when you loose many of the ModelMaker Code Explorer keyboard shortcuts

Posted by Jeroen Pluimers on 2014/07/29

ModelMaker Code Explorer (MMX for short) stores the keyboard shortcuts in the registry.

I’ve had it occur once that somehow most (about 95%) of the shortcuts got lost.

Two thinks I learned from resurrecting the shortcuts:

  • MMX writes these settings when you exit Delphi
  • Only a few keys (with lots of values under them) store the keys.

To resurrect them,

  1. Exit Delphi
  2. Backup your registry
  3. Delete the registry keys mentioned below
  4. Start Delphi
  5. Exit Delphi

Summary of what was wrong

The values under these keys got emptied

[HKEY_CURRENT_USER\Software\ModelMaker\MideX\10.0\Explorer\ContentsShortcutsEx]
[HKEY_CURRENT_USER\Software\ModelMaker\MideX\10.0\Explorer\DetailsShortcutsEx]
[HKEY_CURRENT_USER\Software\ModelMaker\MideX\10.0\Explorer\MainShortcutsEx]

Some of values under this keywere removed, but not all of them

[HKEY_CURRENT_USER\Software\ModelMaker\MideX\10.0\KeyBindingsEx\BDS 9]

The values under this key were OK

[HKEY_CURRENT_USER\Software\ModelMaker\MideX\10.0\Explorer\DocShortcutsEx]

–jeroen

Posted in Delphi, Delphi 2005, Delphi 2006, Delphi 2007, Delphi 2009, Delphi 2010, Delphi 5, Delphi 6, Delphi 7, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Development, Software Development | Leave a Comment »

to-markdown – an HTML to Markdown converter written in javascript

Posted by Jeroen Pluimers on 2014/07/24

It’s not perfect, but makes the conversion a heck of a lot easier: to-markdown – an HTML to Markdown converter written in javascript.

–jeroen

Posted in Development, JavaScript, JavaScript/ECMAScript, MarkDown, Power User, Scripting, Software Development, Web Development | Leave a Comment »

How Can I Determine Which Version of Word is Installed on a Computer? – Hey, Scripting Guy! Blog – Site Home – TechNet Blogs

Posted by Jeroen Pluimers on 2014/07/24

Late binding sometimes is your friend:

Set objWord = CreateObject("Word.Application")
Wscript.Echo "Version: " & objWord.Version
Wscript.Echo "Build: " & objWord.Build
objWord.Quit

The accompanying Delphi code:

uses
  System.Win.ComObj;

procedure TTestVersionAgnosticWordMainForm.GetWordApplicationInfoButtonClick(Sender: TObject);
var
  WordApplication: OleVariant;
  Version: OleVariant;
  Build: OleVariant;
begin
  WordApplication := CreateOleObject('Word.Application');
  try
    try
      Version := WordApplication.Version;
      Build := WordApplication.Build;
      LogMemo.Lines.Add(Version);
      LogMemo.Lines.Add(Build);
    finally
      WordApplication.Quit;
    end;
  finally
    WordApplication := Unassigned; // release it
  end;
end;

–jeroen

via: How Can I Determine Which Version of Word is Installed on a Computer? – Hey, Scripting Guy! Blog – Site Home – TechNet Blogs.

Posted in Delphi, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Development, Scripting, Software Development, VBScript | 10 Comments »

Delphi syntax for TODO list (via: How set up todo list categories in Delphi 2010 – Stack Overflow)

Posted by Jeroen Pluimers on 2014/07/23

A while ago, some of the TODO comments in my source code disappeared from the TODO list.

I wondered why, so I found this question: How set up todo list categories in Delphi 2010?.

The Delphi TODO item syntax in source code comments is like this (thanks Nelson H C Nepomuceno):

{ TODO 1 -cImportant :Do this!}
// TODO 1 -cImportant: Do this!

My comment there, after I found out I had done a stupid global search replace involving colons:

The important thing is the colon somewhere after the TODO. If you do not have the colon, then the TODO list will not show the comment. Anything after the colon will be the action item in the TODO list.

–jeroen

via: How set up todo list categories in Delphi 2010 – Stack Overflow.

Posted in Delphi, Delphi 2005, Delphi 2006, Delphi 2007, Delphi 2009, Delphi 2010, Delphi 7, Delphi x64, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Development, Software Development | Leave a Comment »

 
Follow

Get every new post delivered to your Inbox.

Join 1,312 other followers

%d bloggers like this: