This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//1 do not use 0=aSleepMillisecondsBetweenRetries as Sleep doesn't work predictably then: http://blogs.msdn.com/b/oldnewthing/archive/2005/10/04/476847.aspx | |
function AppendWithRetry(const aTextFile: TextFile; const aRetryCount: Integer = 10; const aSleepMillisecondsBetweenRetries: Integer = 1): Boolean; | |
var | |
lCount: Integer; | |
lIOResult: Integer; | |
begin | |
Result := False; | |
{$IFOPT I+} | |
{$DEFINE AppendWithRetry_IPlus} | |
{$I-} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE FUNCTION fnStripCharacters | |
( | |
@String NVARCHAR(MAX), | |
@MatchExpression VARCHAR(255) | |
) | |
RETURNS NVARCHAR(MAX) | |
AS | |
BEGIN | |
SET @MatchExpression = '%['+@MatchExpression+']%' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create function fnBarePhoneNumber(@Value varchar(1000)) | |
returns varChar(1000) | |
as | |
begin | |
select @Value = dbo.fnStripCharacters(@Value, '^\+0-9') | |
return @Value | |
end | |
-- http://en.wikipedia.org/wiki/E.164 | |
-- http://en.wikipedia.org/wiki/E.123 | |
; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
procedure TMainForm.Application_OnException(Sender: TObject; E: Exception); | |
var | |
lMessage: String; | |
begin | |
lMessage := E.Message; | |
{$IFDEF DEBUG} | |
lMessage := Format('%s at $%p: %s', [E.ClassName, ExceptAddr, lMessage]); | |
{$ENDIF DEBUG} | |
BringToFront(); | |
MessageDlg(lMessage, mtError, [mbOK], 0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--------------------------- | |
16 bit MS-DOS Subsystem | |
--------------------------- | |
C:\WINDOWS\system32\cmd.exe - winscp.net\download\winscp552setup.exe | |
The NTVDM CPU has encountered an illegal instruction. | |
CS:0551 IP:0387 OP:63 64 6e 37 37 Choose 'Close' to terminate the application. | |
--------------------------- | |
Close Ignore | |
--------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Network Destination Netmask Gateway Interface Metric | |
0.0.0.0 0.0.0.0 192.168.71.1 192.168.71.28 10 | |
0.0.0.0 0.0.0.0 192.168.171.1 192.168.171.140 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Network Destination Netmask Gateway Interface Metric | |
0.0.0.0 0.0.0.0 192.168.171.1 192.168.171.140 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Network Destination Netmask Gateway Interface Metric | |
0.0.0.0 0.0.0.0 192.168.71.1 192.168.71.28 10 | |
0.0.0.0 0.0.0.0 192.168.171.1 192.168.171.140 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Network Destination Netmask Gateway Interface Metric | |
0.0.0.0 0.0.0.0 192.168.71.1 192.168.71.28 10 | |
0.0.0.0 0.0.0.0 192.168.171.1 192.168.171.140 5 | |
Network Address Netmask Gateway Address Metric | |
0.0.0.0 0.0.0.0 192.168.171.1 5 | |
0.0.0.0 0.0.0.0 192.168.71.1 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\temp>curl -O http://winscp.net/download/winscp552setup.exe | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 |