12
Your Ace up the Sleeve Enhancing Applications with SRP Utilities

Enhancing Applications with SRP Utilities. Introduction Frank Tomeo, Senior Developer SRP Computer Solutions Placentia, CA [email protected]

Embed Size (px)

Citation preview

Page 1: Enhancing Applications with SRP Utilities. Introduction Frank Tomeo, Senior Developer SRP Computer Solutions Placentia, CA ftomeo@srpcs.com

Your Ace up the Sleeve

Enhancing Applicationswith SRP Utilities

Page 2: Enhancing Applications with SRP Utilities. Introduction Frank Tomeo, Senior Developer SRP Computer Solutions Placentia, CA ftomeo@srpcs.com

Introduction

Frank Tomeo, Senior Developer

SRP Computer SolutionsPlacentia, [email protected]

Page 3: Enhancing Applications with SRP Utilities. Introduction Frank Tomeo, Senior Developer SRP Computer Solutions Placentia, CA ftomeo@srpcs.com

A Good Utility

• Fast– Increases speed of routine– Increases speed of development

• Easy to use• Easy to remember• Well documented• Does what it should

Page 4: Enhancing Applications with SRP Utilities. Introduction Frank Tomeo, Senior Developer SRP Computer Solutions Placentia, CA ftomeo@srpcs.com

Things to consider…

1. Not the only player on the field2. Experiences may vary3. Free means free4. WYS-MNB-WYG5. Please interrupt6. Anrbasicprogramersayswhat?

Page 5: Enhancing Applications with SRP Utilities. Introduction Frank Tomeo, Senior Developer SRP Computer Solutions Placentia, CA ftomeo@srpcs.com

000101010001001111011010110100010110101001

How many people can read hex if only you and dead people can read hex?

• Encode binary data into a printable format• Decode printable-encoded data into a variable• Generate a cryptographic hash for a given string

SRP_EncodeSRP_DecodeSRP_Hash

Ans = 1 + 0xDEADAns = 1 + 57005Ans = 57006

Page 6: Enhancing Applications with SRP Utilities. Introduction Frank Tomeo, Senior Developer SRP Computer Solutions Placentia, CA ftomeo@srpcs.com

1+1=2

2+2=5 (for extremely large values of 2)

• Perform arbitrary precision math operations• Decimal numbers with more than 16 digits• 40 different operations

SRP_Math

Page 7: Enhancing Applications with SRP Utilities. Introduction Frank Tomeo, Senior Developer SRP Computer Solutions Placentia, CA ftomeo@srpcs.com

REGEDIT

RegEdit This• Read & modify the Windows registry

– Delete, Exists, ListKeys, ListValues– Read, Write

SRP_Registry

Page 8: Enhancing Applications with SRP Utilities. Introduction Frank Tomeo, Senior Developer SRP Computer Solutions Placentia, CA ftomeo@srpcs.com

C:\>

The Days of DOS

• Run a DOS executable• Redirect the output to:

– Variable– OpenInsight Editline/Box– DOS Window

SRP_Run_Command

Page 9: Enhancing Applications with SRP Utilities. Introduction Frank Tomeo, Senior Developer SRP Computer Solutions Placentia, CA ftomeo@srpcs.com

MDICHILD

Maximize Windows, Minimize Effort• Display a hidden window and adjusts the

size to account for themes• Establish the resize limits of a window• Automatically update a window when the

system colors change

SRP_Show_WindowSRP_Set_MinMaxInfoSRP_Set_SysColorChange

Page 10: Enhancing Applications with SRP Utilities. Introduction Frank Tomeo, Senior Developer SRP Computer Solutions Placentia, CA ftomeo@srpcs.com

@MV

Give me a venti, nonfat, quadshot Array• Remove blanks and duplicates• Move elements into any explicit order• Change LIST formatted into an ARRAY format• Sorting, without data preparation

SRP_Clean_ArraySRP_Rotate_ArraySRP_Reorder_ArraySRP_Sort_Array

Page 11: Enhancing Applications with SRP Utilities. Introduction Frank Tomeo, Senior Developer SRP Computer Solutions Placentia, CA ftomeo@srpcs.com

DEMONSTRATION

Page 12: Enhancing Applications with SRP Utilities. Introduction Frank Tomeo, Senior Developer SRP Computer Solutions Placentia, CA ftomeo@srpcs.com

Thank You

Any Questions?