Archive for July, 2014
Posted by jpluimers on 2014/07/25
I’ve succesfully woken up these machines:
- HP XW6600 running ESXi 5.1
- ThinkPad W701U running Windows 7
I still need to try to wake up a Mac Mini Server running OS X 10.6 (Snow Leopard).
MacBook Air on 10.7 (Lion) and Retina on 10.8 (Mountain Lion) won’t work as they are WiFi only, and WOL does not work over WiFi.
On 10.7 and up it might not work on a Mac Mini Server either, as Apple Introduced Dark Wake.
I used these tools to send WOL packets: Read the rest of this entry »
Like this:
Like Loading...
Posted in *nix, Apple, ESXi5.1, Ethernet, Hardware, HP XW6600, Linux, Mac OS X / OS X / MacOS, Mac OS X 10.6 Snow Leopard, Mac OS X 10.7 Lion, Network-and-equipment, openSuSE, OS X 10.8 Mountain Lion, Power User, SuSE Linux, Virtualization, VMware, VMware ESXi, Wake-on-LAN (WoL), Windows, Windows 7 | Leave a Comment »
Posted by jpluimers 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 (of which sources are on github).
[Edit 20150919: added more converters: now at least there is competition (:]
Read the rest of this entry »
Like this:
Like Loading...
Posted in Development, JavaScript/ECMAScript, MarkDown, Power User, Scripting, Software Development, Web Development | Leave a Comment »
Posted by jpluimers 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.
Like this:
Like Loading...
Posted in Delphi, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Development, Scripting, Software Development, VBScript | 10 Comments »
Posted by jpluimers 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.
Like this:
Like Loading...
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 »
Posted by jpluimers on 2014/07/22
Found out where the StackOverflow Pascal has its origins: What happened to comments in syntax highlighter? – Meta Stack Overflow.
Like any syntax highlighter, it is not perfect (only a Delphi compiler driven highlighter would have a chance to be perfect), but it does a pretty good job and gets better over time.
–jeroen
Like this:
Like Loading...
Posted in Borland Pascal, Delphi, Delphi 1, Delphi 2, Delphi 2005, Delphi 2006, Delphi 2007, Delphi 2009, Delphi 2010, Delphi 3, Delphi 4, Delphi 5, Delphi 6, Delphi 7, Delphi x64, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Development, FreePascal, Pascal, Software Development, Turbo Pascal | Leave a Comment »