The Prestwood eMag  |  www.prestwood.com |
|
| January 2010 - Full Edition | Year 12 Issue 1
|
|
| A computer community for power-users and I.T. professionals! |
|
Table of Contents: |
|
 Bryan Valencia | From our SQL Servers topic...Geolocation: Step by Stepby Bryan Valencia Think globally, act locally. How many times have you needed to determine the geographic distance between two places? This tutorial will show you how to accomplish just that.
All data and functions exist in a SQL Server Database, and can be used in VB.NET, C#.NET, Paradox, Delphi, or any other language that can call a database function. From our General, Getting Started, etc. topic... The Five Biggest API Documentation Mistakes and How to Avoid Them by Peter GruenbaumGood API documentation can have a tremendous impact on whether a software platform is adopted. However, too often API documentation ends up being confusing and hard to follow, which results in developers choosing another way to accomplish their goals. This article describes five common mistakes that are made in creating API documentation and describes solutions to avoiding those mistakes. Following good API documentation practices can provide developers with the content that they need to be able to take full advantage of a software platform's capabilities. From our IT Water-Cooler for Power-Users topic... Stamp Out Spam by Vicki NelsonHow to fight back against spam and reclaim your inbox.
A classic post from our Language Basics topic... Don't overlook the power of a relational database! by Wes PetersonAccess is a wonderful desktop database. It makes it easy to do so many things. Many beginning users, though, fail to take advatage of one of Access's greatest strengths. |
Monthly Access Lesson | Learn! Review! Keep Up! |
| Short tidbits pulled from our knowledge base each month. | M O N T H L Y L E S S O N | From our Language Basics Topic. Code Snippet of the Month Access VBAcode blocks are surrounded by statement ending keywords that all use End such as End Sub, End If, and WEnd. Sub x End Sub If x Then End If While x WEnd From our General, Presales, & Installation Topic Resource Link of the Month: Microsoft Access Home Page Microsoft's official Access home page. From our Language Basics Topic Tip of the Month Execute more common evaluations first! Short-circuit evaluation is a feature of most languages where once an evaluation evaluates to False, the compiler evaluates the whole expression to False, exits and moves on to the next code execution line. In Access VBA, the if statement does not support short-circuit evaluation but you can mimic it. Use either an if..else if..else if statement or nested if statements. You will find that your code that makes use of this technique will be clearer and easier to maintain than the short-circuit equivalent and will execute faster than ignoring this issue. | |
Access Message Board Ask this group a question! Select a topic below or Visit Access Board Now!
American I.T. Message Board Ask this group a question! Select a topic below or Visit American I.T. Board Now!
A classic post from our Unified Modeling Language (UML) topic... Introduction to the Unified Modeling Language by Mike PrestwoodThis introduction to the UML covers symbol usage, definitions, and creating diagrams. The UML standardizes what diagrams with what symbols for what situation. The UML is complete with diagrams for analysis, design, and coding. Use use case diagrams to document how users (actors) use a system (a use case). Use class and object diagrams for the design and coding of a system. A class is the prototype for an object. An object has attributes (properties) and the current values of those properties is the current state of the object. |
Monthly Analyst Lesson | Learn! Review! Keep Up! |
| Short tidbits pulled from our knowledge base each month. | M O N T H L Y L E S S O N | From our Analysis & UML Topic. Any nugget discovered and developed and used during software development and maintenance. Examples are requirement items, design items, diagrams, test script, and even code itself.
In PSDP, a PSDP Artifact is a specific implementation of the generic software artifact.
A PSDP Artifact is used to work with a software feature from inception through testing. It links together a task, requirement item, design item, and test script. You can edit a PSDP artifact as a whole or expand any of the four linked items to include more details. From our Unified Modeling Language (UML) Topic Resource Link of the Month: DotNetCoders.com UML Home Page UML is a modeling language for specifying, visualizing, constructing, and documenting the artifacts of a system-intensive process. This guide introduces you to the 9 standard diagrams in the UML 1.4 specification. These diagrams can be divided into two groups: Structural diagrams, which model the organization of the solution, and Behavioral diagrams, which model the functionality of the solution. | |
Analyst Message Board Ask this group a question! Select a topic below or Visit Analyst Board Now!
Monthly ASP Classic Lesson | Learn! Review! Keep Up! |
| Short tidbits pulled from our knowledge base each month. | M O N T H L Y L E S S O N | From our OOP Topic. Code Snippet of the Month When an object instance is created from a class, ASP calls a special parameter-less sub named Class_Initialize. Since you cannot specify parameters for this sub, you also cannot overload it.
When a class is destroyed, ASP calls a special sub called Class_Terminate. Class Cyborg Public CyborgName Public Sub Class_Initialize Response.Write "<br>Class created" CyborgName = "Cameron" End Sub End Class
From our ASP Classic Topic. Error: error 'ASP 0208 : 80004005'
Cannot use generic Request collection
/_private/footer_content.inc, line 72
Cannot use the generic Request collection after calling BinaryRead. Explanation: Although you can use the generic request collection, as in Request("SomeValue"), for either Request.Form("SomeValue") or Request.QueryString("SomeValue"), it's best to avoid the generic request collection until it's really needed. The generic request collection causes problems in some circumstances. For example, you cannot call the generic request collection after a BinaryRead. From our ASP Classic Topic Resource Link of the Month: VBScript Language Reference on Microsoft.com The best resource for quickly looking up ASP Classic commands. Even better than having a reference book. From our Language Details Topic. Question: What is the syntax in ASP Classic for using an associative array? Answer: Use a dictionary: Dim StateList set StateList = Server.CreateObject("Scripting.Dictionary") StateList.Add "CA", "California" Response.Write "NV is " & StateList("NV")For more examples, refer to our ASP Classic Associative Array (Scripting.Dictionary) article. From our Language Details Topic Tip of the Month Although you can use the generic request collection, as in Request("SomeValue"), for either Request.Form("SomeValue") or Request.QueryString("SomeValue"), it's best to avoid the generic request collection until it's really needed. Use a For Each loop to loop through elements. | |
ASP Classic Message Board Ask this group a question! Select a topic below or Visit ASP Classic Board Now!
A classic post from our Language Basics topic... Boxing and Unboxing by Stephen BerryBoxing is the conversion of a value type to the object type (or to any interface type that is implemented by the value type). Unboxing is the conversion from an object type to a value type (or from an interface type to any value type that is implemented by the value type). A classic post from our OOP topic... C# Constructors (Use class name) by Mike PrestwoodIn C#, a constructor is called whenever a class or struct is created. A constructor is a method with the same name as the class with no return value and you can overload the constructor. If you do not create a constructor, C# will create an implicit constructor that initializes all member fields to their default values.
Constructors can execute at two different times. Static constructors are executed by the CLR before any objects are instantiated. Regular constructors are executed when you create an object. |
| Short tidbits pulled from our knowledge base each month. | M O N T H L Y L E S S O N | From our OOP Topic. Code Snippet of the Month C# supports both static members and static classes using the static keyword. You can add a static method, field, property, or event to an existing class. Also, you can designate a class as static and the compiler will ensure all members in that class are static. You can add a constructor to a static class to initialize values.
The CLR automatically loads static classes with the program or namespace. //Static Class Example public static class MyStaticClass {
//Static Method Example public static void MyStaticMethod() { // static method code } } From our Language Basics Topic. An attribute is a "shorthand" mechansim for having additional metadata included in your assembly. Attributes cause additional metadata to be included in your assembly and, utilized when reflected over by another class. For your convenience, many, many useful attributes are pre-defined.
In C#, attributes are designated by enclusure in square brackets. For example, the [DllImport] attribute allows .NET to utilize Win32 DLLs. Another example is the [Serializable] attribute, which causes your class to be persisted to disk. From our WebForms Coding Tasks Topic Resource Link of the Month: The Official Microsoft ASP.Net Site Microsoft portal site for the ASP.NET development community. From our WinForms Topic. Question: Can I use a Win32 DLL in my Visual Studio.Net application? Answer: Yes. The trick is to use the [DllImport] attribute, followed by declarations for each of the DLL's functions and procedures. | |
C# Message Board Ask this group a question! Select a topic below or Visit C# Board Now!
| Thread Starter | Replies | Last Post | Topic | | Byte stored in reverse order Hi all, I would to read a byte (unsigned char) and to store it in reverse order (b8...b1 becomes b1...b8). What is the best solution in Code and Time performan... | 1 | in general, this function will reverse a single by... 1/3/2010 | C# & WinForms |
A classic post from our Standard C++ topic... Using cin and cout by Mike PrestwoodUsing cin and cout in C++ to output values. |
| Short tidbits pulled from our knowledge base each month. | M O N T H L Y L E S S O N | From our C++ Language Basics Topic. Code Snippet of the Month Same as standard C++. For C++, Java, JavaScript, and PHP, I prefer to put the first { at the end of the first line of the code block as in the example above because I see more C++ formatted that way. int Dog::Bark() { cout << "My first class method!" << endl; return 0; };From our Classic C Language Topic. An operation with only one operand (a single input) such as ++X and --Y. From our C++Builder Specific Topic Resource Link of the Month: Video & Audio: CDN C++Builder TV Lots here! C++Builder TV is part of CodeGear's developer network. Contains both audios and videos. From our Visual C++ Specific Topic. Question: What is the main usage of Visual C++? Can I create .Net apps with it? Answer: Yes, you can build .Net runtime applications with Microsoft's Visual C++ as well as building native code Win32 applications and rich 2D and 3D games with The Game Creators SDK. You can use it to create other types of applications too including MFC and Smart Devices applications. From our Classic C Language Topic Tip of the Month In C and C++, it is better to only use unary operators for incrementing and decrementing variables because they produce fewer instructions and run faster. | |
C++ Message Board Ask this group a question! Select a topic below or Visit C++ Board Now!
A classic post from our General .Net Concepts topic... Regex by Bryan ValenciaConsole application shows some common uses of Regular Expressions (REGEX) to match and recursively replace text in strings. A classic post from our Borland Database Engine topic... Installing BDE using Merge Modules by Wes PetersonThe new and "approved" way to install the BDE is by way of mege modules. This is quite a bit different than the traditional ways of using a pre-made program, or incorporating BDE Cab files (from, say, your Delphi installation). Caveat: This is new news for me, and I don't claim to know or understand everything there is to know on this topic but I do have some helpful findings for you. |
Monthly Coder Lesson | Learn! Review! Keep Up! |
| Short tidbits pulled from our knowledge base each month. | M O N T H L Y L E S S O N | From our General Coding Concepts Topic. Types of overloading include method overloading and operator overloading.
Method Overloading is where different functions with the same name are invoked based on the data types of the parameters passed or the number of parameters. Method overloading is a type of polymorphism and is also known as Parametric Polymorphism.
Operater Overloading allows an operator to behave differently based on the types of values used. For example, in some languages the + operator is used both to add numbers and to concatenate strings. Custom operator overloading is sometimes referred to as ad-hoc polymorphism. From our General Info, Installation, etc. Topic Object-Relation Mapping & Code-Generator Tool From our General Coding Concepts Topic Tip of the Month Most languages support a branching mechanism like if a..elseif b..elseif c. If a evaluates to true, b and c will not execute. The tip is to sort your branching conditions by most to lease used for faster code. | |
Coder Message Board Ask this group a question! Select a topic below or Visit Coder Board Now!
A classic post from our DBA & Data topic... Data Normalization - The Normal Forms by Jeffrey K. Tyzzerby Jeffrey K. Tyzzer. In 1970, Dr. E.F. Codd's seminal paper "A Relational Model for Large Shared Databanks" was published in Communications of the ACM. This paper introduced the topic of data normalization, so-named because, at the time, President Nixon was normalizing relations with China.
Data normalization is a technique used during logical data modeling to ensure that there is only one way to know a fact, by removing all structures that provide more than one way to know the same fact as represented in a database relation (table). The goal of normalization is to control and eliminate redundancy, and mitigate the effects of modification anomalies -- which are generally insertion and deletion anomalies. (Insertion anomalies occur when the storage of information about one attribute requires additional information about a second attribute. Deletion anomalies occur when the deletion of one fact results in the loss of a second fact).
Normalization There are six generally recognized normal forms of a relation: first normal form, second normal form, third normal form, Boyce/Codd normal form, fourth normal form, and fifth normal form, also called projection/join normal form. Other normal forms (e.g., Domain/Key) exist but will not be discussed here. The normal forms are hierarchical, i.e., each normal form builds upon its predecessor. Although many people consider a relation to be normalized only when it is in third normal form, technically speaking, a relation in only first normal form can be considered... |
| Short tidbits pulled from our knowledge base each month. | M O N T H L Y L E S S O N | From our DBA & Data Topic. A master table in a multitable relationship is the primary table. For every record in the master table, there can be many records in the detail table. If you are only dealing with one table, then it is the master table. A detail table in a multitable relationship is the table whose records are subordinate to those of the master table. A detail table is also called a slave table, a child table, or a many table. From our DBA & Data Topic http://www.oracle.com/database/berkeley-db/xml/index.html From our DBA & Data Topic. Error: The ORA-00900 error displays automatically when erp is running properly but may be caused by a constraint violation. Explanation: 1)it may be beacuse of constraint violation. From our Desktop Databases Topic Resource Link of the Month: Icon plug-in for Photoshop and Paint Shop Pro When we create applications, we usually need one or more icons. We'll definitely want a main program icon - in several sizes. We may also want another icon for our setup program. Sometimes our client supplies icon files, but often they do not. There are some great tools available for creating and managing Icons. One of my favorites, IconLover, is available at the site this link is about. But most out-of-the-box, general purpose graphics editors lack support for the Windows .ICO file format. The solution is at this link, and it's free: It's a plug-in for Photoshop and Paint Shop Pro (even some version of Photoshop Elements). At the bottom of this link's page, you'll find an entry for "Icon Plug-In for PhotoShop." Simply download the zip file, unzip, and follow the instructions in the ReadMe.txt file. Your favorite, general purpose graphics editor will now be able to deal with ICO files! From our Microsoft SQL Server Topic. Question: What is the differences between Char, NChar, VarChar, and NVarChar? Answer: A Char field is a text field of a specific length. For example, a Char(50) field takes up 50 characters of storage in most databases even if you only store 1 character in it., or even none.
A VarChar field is a text field of variable length. For example, a VarChar(50) field can be up to 50 characters but if less is stored, the length of the field is somewhat less than 50. If you only store 1 character in a VarChar, then generally only 1 character of space is taken up in storage.
The "N" in NChar and NVarChar stands for National character which means you can store unicode text. NChar and NVarChar take up twice as much storage space. From our DBA & Data Topic Tip of the Month The three normal forms can be summed up in the following phrase: “All the fields of a table should relate to the key, the whole key, and nothing but the key.” | |
DBA Message Board Ask this group a question! Select a topic below or Visit DBA Board Now!
Monthly Delphi Lesson | Learn! Review! Keep Up! |
| Short tidbits pulled from our knowledge base each month. | M O N T H L Y L E S S O N | From our Language Details Topic. Code Snippet of the Month Delphi is a hybrid language so you can create either class methods (functions and procedures) or you can create global functions and procedures. When a function or procedure is part of a class, it is a class method. [function/procedure] RoutineName : ReturnType;
As with C++, your custom routine must come before it's first usage or you have to prototype it in the Interface section.
Note: Contrast Delphi with Delphi Prism which is an OOP language (everything is within a class). Both Delphi and Delphi Prism are based on Object Pascal but implement OOP features differently and have some syntax differences too.
procedure SayHello(pName: String); begin ShowMessage('Hello ' + pName); end; function Add(p1, p2 : Double): Double; begin Result := p1 + p2; end; From our Delphi for Win32 Topic Resource Link of the Month: Marco Cantu Home Italian writer who also writes quite a bit in english. He now contributes articles mainly to PDJ and to his own web site. From our Using Controls Topic. Question: How do you specify which color to use with TColorGrid from the samples page? Why isn't it documented? Answer: Use the public methods ForegroundColor and BackgroundColor. For example, in the OnChange event of a ColorGrid component you could do the following: procedure TForm1.ColorGrid1Change(Sender: TObject); begin Edit1.Font.Color := ColorGrid1.ForegroundColor; Edit1.Color := ColorGrid1.BackgroundColor; end; None of the components on the "Samples" page are documented. From our Language Basics Topic Tip of the Month Format the IF/Endif for easy reading. I have found this to be easy to read and follow: if ( (something = somethingelse) and (x = y) and (z = a) ) then begin .. end;
To indent the structure and line up the parenthesis makes it, I feel, much easier to read. | |
Delphi Message Board Ask this group a question! Select a topic below or Visit Delphi Board Now!
A classic post from our Java topic... Stacks in Java by Stephen BerryProvides the definition of a stack and an example of its implementation in Java A classic post from our OOP topic... Implementing the Composite and Visitor Patterns in Java by Evan EgaliteImplementing design patterns can be difficult and little sample code exists that walks you through the process. The purpose of this article is to walk through the implementation of a program that uses the Composite and Visitor design patterns. The sample project is written in the object-oriented language, Java, but it could just as easily have been written in C++. |
Monthly Java Lesson | Learn! Review! Keep Up! |
| Short tidbits pulled from our knowledge base each month. | M O N T H L Y L E S S O N | From our Tool Basics Topic. Code Snippet of the Month Java String CancatenationIn Java, you use either the String concatenation + operator or StringBulder class methods such as append. Since Java compilers frequently create intermediate objects when the + operator is used and don't when StringBuilder.append is used, the append method is faster than the + operator.
In general, use the convenience of a + operator when speed is not an issue. For example, when concatenating a small number of items and when code isn't executed very frequently. A decent rule of thumb is to use the + operator for general purpose programming and then optimize the + operator with StringBuilder.append as needed.
Simple + operator example:
System.out.println("Hello" + " " + "Mike.");
Using StringBuilder example:
StringBuilder myMsg = new StringBuilder();
myMsg.append("Hello ");myMsg.append("Mike."); System.out.println(myMsg); From our Java EE Topic If you need support for Java EE and Web development, consider Eclipse IDE for Java EE Developers. The Eclipse IDE for Java EE Developers contains everything you need to build Java and Java Enterprise Edition (Java EE) applications. Considered by many to be the best Java development tool available, the Eclipse IDE for Java EE Developers provides superior Java editing with incremental compilation, Java EE 5 support, a graphical HTML/JSP/JSF editor, database management tools, and support for most popular application servers. From our JBuilder Topic Resource Link of the Month: Video & Audio: CDN JBuilder TV Lots here! JBuilder TV is part of CodeGear's developer network. Contains both audios and videos. | |
Java Message Board Ask this group a question! Select a topic below or Visit Java Board Now!
A classic post from our Language Reference topic... JavaScript Operators by Mike PrestwoodJavascript operators: assignment, comparison, computational, and logical. |
Monthly JavaScript Lesson | Learn! Review! Keep Up! |
| Short tidbits pulled from our knowledge base each month. | M O N T H L Y L E S S O N | From our JavaScript and AJAX Topic. Code Snippet of the Month Implements replaceAll in javascript. This is achieved using prototype.js Add this between the head tags (replace [[ with < and ]] with >): [[script type="text/javascript" src="prototype.js"]] [[/script]]
Here's the code (replace [[ with < and ]] with >): [[script type="text/javascript"]] // define your replace all function like this String.prototype.replaceAll=function(s1, s2) {return this.split(s1).join(s2)}; // use your replaceAll function like this var replacedText = text2replace.replaceAll("-what to replace-", " -with what to replace- "); [[/script]] From our Beginners Corner Topic. Question: What is JavaScript? Answer: JavaScript is a platform-independent, event-driven, interpreted programming language developed by Netscape Communications Corp. and Sun Microsystems. Originally called LiveScript (and still called LiveWireTM by Netscape in its compiled, server-side incarnation), JavaScript is affiliated with Sun's object-oriented programming language JavaTM primarily as a marketing convenience. They interoperate well but are technically, functionally and behaviorally very different. JavaScript is useful for adding interactivity to the World Wide Web because scripts can be embedded in HTML files (i.e., web pages) simply by enclosing code in a tag pair. All modern browsers can interpret JavaScript -- albeit with some irritating caveats. (More about them below.) In practice, JavaScript is a fairly universal extension to HTML that can enhance the user experience through event handling and client-side execution, while extending a web developer's control over the client's browser. And that's worth a FAQ. | |
JavaScript Message Board Ask this group a question! Select a topic below or Visit JavaScript Board Now!
Monthly Linux Users Lesson | Learn! Review! Keep Up! |
| Short tidbits pulled from our knowledge base each month. | M O N T H L Y L E S S O N | From our Linux Development Software Topic Popular development tool for KDE. The KDevelop-Project was founded in 1998 to build up an easy to use IDE (Integrated Development Environment) for KDE. | |
Linux Users Message Board Ask this group a question! Select a topic below or Visit Linux Users Board Now!
Monthly Paradox Lesson | Learn! Review! Keep Up! |
| Short tidbits pulled from our knowledge base each month. | M O N T H L Y L E S S O N | From our OPAL: Language Basics Topic. Code Snippet of the Month ObjectPAL logical operators:
| and |
and, as in this and that |
| or |
or, as in this or that |
| Not |
Not, as in Not This | ;Given expressions a, b, c, and d: if Not (a and b) and (c or d) then ;Do something. endIf From our OPAL: Language Basics Topic. ObjectPAL stands for Object Paradox Application Language. ObjectPAL stands for Object Paradox Application Language. The acronym portion of the name (PAL) comes from the DOS version of Paradox. The term Object was added to the name because ObjectPAL is an object-based event-driven programming environment that is much more advanced then its PAL predecessor. From our Installation, Setup, & BDE Topic Contains downloads for Paradox for DOS, Paradox for Windows, and BDE. Lots of good stuff to download including runtimes and service packs. From our Installation, Setup, & BDE Topic. Error: Multiple Net Files in use error. Explanation: If you wish to run more than one copy of Paradox on the same machine, you must configure each to point to the same Net Folder. From our ObjectPAL Coding Topic Resource Link of the Month: ObjectPAL Rules for Beginners Maintained by Mark Bannister. A compilation of rules and tips scoured from the Paradox Community. From our Tool Basics Topic. Question: How can I purchase Paradox? Answer: Answer from Corel...
Paradox was not updated from Paradox 10. It was given a new look, but the functionality remains mainly the same. Paradox 11 is available in the WordPerfect Office Professional version and can be purchased through Corel's online store or by calling us [Corel]. Paradox is also available as a standalone if you already own WordPerfect Office, and is [available] through our licensing program. Within North America, please call 1-800-772-6735, Corel's Customer Support Services, to purchase the Paradox upgrade. We are open from Monday - Friday, 9:00 am - 7:00 pm E.S.T. and would be happy to serve you. For customers outside of North America, please visit www.corel.com/contact to locate a Corel Customer Support Services Center nearest you. From our Interactive Paradox: Forms Topic Tip of the Month You can alter the path of objects by moving objects around in the containership hierarchy. Move objects on the same level by selecting Format | Order | Bring to Front and Format | Order | Send to Back. | |
Paradox Message Board Ask this group a question! Select a topic below or Visit Paradox Board Now!
| Thread Starter | Replies | Last Post | Topic | | freeDiskSpaceEx() on Networ... I am trying to figure out a way with objectpal to get disk space on hard drives on certain computer / servers in the office.
Using freeDiskSpaceEx() or to... | 3 | Thanks Al, the code you provided helped me alot, I was able to complete my script and it works like ... 2/16/2010 | ObjectPAL | | conditionally coloring rows... Hello group,
I would like to be able to color various rows in a tableframe according to certain conditions.
I recently downloaded code from the paradox com... | 2 | Thanks Mike,
I have not downloaded your files but I will definitely do that and review them as so... 2/8/2010 | Paradox Setup, Vista, etc. | | First page of report printe... {Too Long} | 2 | Hi Mike, I have been on leave so I checked with the user who has been having this problem and it see... 1/31/2010 | Paradox Reports | | Paradox 11 Help Not Working {Too Long} | 1 | Hi Raymond,
Did you ever fix your Paradox help file problem with Windows 7? I do know that you have... 1/30/2010 | QBE & SQL | | UIObject : Lines I am working on a problem that involves manipulation of line objects, which of course are a sub-class of UIObjects in ObjectPAL. I have created a form on ... | 1 | Update:
Reading Mike Prestwood's Paradox book I stumbled across the fact that my event optio... 12/11/2009 | ObjectPAL |
Monthly Perl Lesson | Learn! Review! Keep Up! |
| Short tidbits pulled from our knowledge base each month. | M O N T H L Y L E S S O N | From our Beginners Corner Topic. Code Snippet of the Month Common comparison operators:
| == |
equal |
| != |
not equal |
| < |
less than |
| > |
greater than |
| <= |
less than or equal |
| >= |
greater than or equal | #Does Perl evaluate the math correctly? No! if ((.1 + .1 + .1) == .3) { print("Correct<br>"); } else { print("Not correct<br>"); }
From our Perl Topic ActivePerl is the industry-standard Perl distribution, available for Windows, Linux, Mac OS X, Solaris, AIX and HP-UX. Developers worldwide rely on ActivePerl's completeness and ease-of-use, while corporate users protect their infrastructure and stay competitive with quality-assured ActivePerl business solutions. Includes core Perl, popular modules, the Perl Package Manager (PPM), and complete documentation. The Windows version provides additional features that have made ActivePerl the worldwide standard for Perl on Windows. | |
Perl Message Board Ask this group a question! Select a topic below or Visit Perl Board Now!
A classic post from our Beginners Corner topic... A 10 Minute PHP Quick Start by Adam LumAn Introduction to PHP. Installing PHP on Your Computer and Running your First Script. |
| Short tidbits pulled from our knowledge base each month. | M O N T H L Y L E S S O N | From our Beginners Corner Topic. Code Snippet of the Month PHP logical operators:
| and, && |
and, as in this and that |
| or, || |
or, as in this or that |
| ! |
Not, as in Not This |
| Xor |
either or, as in this or that but not both | #Given expressions a, b, c, and d: if !((a && b) && (c || d)) { #Do something. }; From our PHP Topic. Definition of the Month: PHP A recursive acronym that stands for:
PHP: Hypertext Preprocessor
A recursive acronym that stands for: PHP: Hypertext Preprocessor The original PHP/FI stood for: Personal Home Page / Forms Interpreter From our Education (Audio/Video) Topic Resource Link of the Month: Video: Delphi for PHP 2 Overview Overview and introduction by Nick Hodges (Delphi for PHP product manager). From our Delphi for PHP Topic. Question: What PHP version does Delphi for PHP support? Answer: Delphi for PHP is based on PHP version 5. Meaning, the VCL for PHP extends the standard libraries that ship with PHP 5. This also means you can deploy your Delphi for PHP website on any hosted website that has PHP 5 installed.
Note: You can deploy your Delphi for PHP websites on the hosted websites we offer on our http://www.prestwoodhosting.com web hosting services website. | |
PHP Message Board Ask this group a question! Select a topic below or Visit PHP Board Now!
Prestwood Message Board Ask this group a question! Select a topic below or Visit Prestwood Board Now!
A classic post from our Computer Community topic... Member Points Program by Mike PrestwoodMember points information. |
PrestwoodBoards Message Board Ask this group a question! Select a topic below or Visit PrestwoodBoards Board Now!
| Thread Starter | Replies | Last Post | Topic | | Windows Server '03 settings... Recently bought 2 new servers with Windows Server 2008 on them.
Was curious if anyone has ever heard of or knows if it is possible to do a MS backup or some ot... | 1 | It can be done, what edition of 2003 are you using? what edition of 2008 are you using? Have you con... 6/30/2010 | Just Conversation |
A classic post from our OOP topic... Delphi Prism Interfaces by Mike PrestwoodWith Prism, you use the Interface keyword to define an interface and then you include one or more interfaces where you specify the single class inheritance (separated by commas).
|
Monthly Prism Lesson | Learn! Review! Keep Up! |
| Short tidbits pulled from our knowledge base each month. | M O N T H L Y L E S S O N | From our OOP Topic. Code Snippet of the Month In Prism, the Object keyword is an alias for the base System.Object class and is the single base class all classes ultimately inherit from. //Specify both namespace and class: Cyborg = class(System.Object) end; //Use Object keyword for System.Object. Cyborg = class(Object) end; //When none, default is System.Object. Cyborg = class end;
From our Language Basics Topic Resource Link of the Month: Delphi Prism Syntax compared with Win32 Delphi This page provides a summary of Delphi Prism syntax differences for customers familiar with Win32 Delphi.
From our Tool Basics Topic. Question: How close is the syntax for Delphi for Win32 and Delphi Prism? Answer: Pretty close. You will definately be comfortable but there are differences. Delphi Prism includes a "compatibility" switch you can use that will enable certain "Delphi for Win32" language features so you can increase your comfort level. This option can be set on a per-project basis as part of the project options tab.
Although I'm just getting started, I will be documenting differences in my Delphi and Prism Cross Reference Guide. This guide will help when you switch from one language to the other. | |
Prism Message Board Ask this group a question! Select a topic below or Visit Prism Board Now!
| Thread Starter | Replies | Last Post | Topic | | Anyone got Delphi Prism? Anyone currently using or studying Prism? If so, post here. I'd like to know if you're studying it or using it on a real project. Also, did you use Delphi, Delp... | 4 | I have it, just the trial version, but not able to compile in VS 2008 .Net 3.5 Framework. Worki... 12/2/2009 | Delphi Prism |
Monthly PSDP Lesson | Learn! Review! Keep Up! |
| Short tidbits pulled from our knowledge base each month. | M O N T H L Y L E S S O N | From our PSDP Artifacts Topic. In PSDP Online, a PSDP Artifact links together a task, requirement item, design item, and test script all with the same name and associated with the same project category (if used). You can edit a PSDP artifact as a whole or expand any of the four linked items to include more details.
A PSDP artifact simplifies some of the complexities of working with linked items. For example, you get workflow with the linked task, and actors and status of the other items at the artifact level. When you change the artifact name or category, all four items are updated. When you link an actor to an artifact, the requirement item, design item, and test script are updated. The same is true when you change the project/app status. From our PSDP Phases Topic. Question: How do PSDP Phases relate to PSDP Artifacts and the usage of each? Answer: They don't really. In PSDP Online, you set the PSDP Phase of tasks and their two sub-types defects and artifacts only. Requirement Items, Design Items, and Test Scripts do not use the concept of PSDP Phases because they are documentation-only items. You add various development tasks set to the appropriate phase to create, flesh out, and use them to build and test but they do not contain workflow themselves. The PSDP Phase of Defects is always Phase 6 Testing & Rework. Although Tasks and PSDP Artifacts can be set to any PSDP Phase, their default is Phase 2 Requirements. For PSDP Artifacts, most of the time you will leave it set to it's default. On the other hand, you will set tasks to whatever phase the task belongs to. From our PSDP & Process Topic Tip of the Month When youre finishing an application for a client, nothing is more frustrating than the client telling you that the application is all wrong. Do yourself a favor: During or shortly after the planning stage, be sure to echo to the client what you heard him or her say. Also consider putting your general plan in writing and have both you and your client sign it. This approach makes you a more professional consultant. | |
PSDP Message Board Ask this group a question! Select a topic below or Visit PSDP Board Now!
A classic post from our Hardware topic... Great Sound for $30? by Wes PetersonFor a while, now, most new computers have come equipped with a sound system on the main board. Unfortunately, many of them are not very good. Would you believe that a simple, $30 upgrade can deliver superb sound and recordings? |
Monthly Tech Lesson | Learn! Review! Keep Up! |
| Short tidbits pulled from our knowledge base each month. | M O N T H L Y L E S S O N | From our Hardware Topic. Definition of the Month: MbPS Megabits (mb) per second. A bit is either a 0 or 1 (a digit) and a byte is a string of 8 bits. 8 mbps (megabits per second) equals 1 MB/sec (megabytes per second). Therefore 54 mbps is equal to a max of 6.75 MB/second.
From our Wired Networking Topic. Question: Do I need different connectors for Cat 6 then what I'm currently using for Cat 5? Answer: No, Cat 5, 5e, 6, and 6a all use the same RJ-45 connectors and are downward compatible. Meaning you can use a Cat 6 cable in a Cat 5 network. The difference is in the quality of the cable. Cat 5e is rated higher than Cat 5, Cat 6 is rated higher than Cat 5e, etc.
However, when building a Cat 5 or Cat 6 cable, you have to use the correct type of connector. Meaning, Cat 6 connectors are built differently even though you can use already made cables. | |
Tech Message Board Ask this group a question! Select a topic below or Visit Tech Board Now!
A classic post from our General, Getting Started, etc. topic... Writing as a process by Ramesh RWriting applies to any sort of information. However, writing in general is a generic process that involves many components. Writing itself is a big process that includes many things within itself. It is not easy to write and convey information to end user. Writing require experience, grammar skills, domain knowledge, process knowledge, etc. By this, we would be able to understand the importance of writing. A classic post from our General, Getting Started, etc. topic... Knowledge Management by Ramesh RAn overview of knowledge management in corporate companies with the basics providing information peratining to such knowledge management teams that lead to greater organizational growth and individuals growth also. |
Monthly Tech Writer Lesson | Learn! Review! Keep Up! |
| Short tidbits pulled from our knowledge base each month. | M O N T H L Y L E S S O N | From our MS Windows Help Files (.HLP) Topic Converts HLP files to many formats including PDF, RTF, HTML, DOC, CHM, TXT, DBF, XML, CSV, XLS, MDB, MCW, etc. From our MS Compiled Windows Help (.CHM) Topic Resource Link of the Month: Help and Manual: A great authoring tool Help and Manual is a mature, and reasonably-priced, authoring tool for WinHelp, Compiled HTML Help (CHM); plus PDF, and Word documentation.
Under the covers, your authoring project is maintained in XML.
It can convert existing help and documentation from a number of formats, and it is very author-friendly. From our Grammar Topic Tip of the Month a not any particular or certain one; a certain; another; one;
"He is a Delphi programmer."
an the form of "a" before an initial vowel
"He is an ObjectPAL programmer."
| |
Tech Writer Message Board Ask this group a question! Select a topic below or Visit Tech Writer Board Now!
Monthly Tester Lesson | Learn! Review! Keep Up! |
| Short tidbits pulled from our knowledge base each month. | M O N T H L Y L E S S O N | From our Beginner's Corner Topic. CRUD is an acronym that stands for create, read, update, and delete. A CRUD matrix documents what objects (forms, reports, libraries, and scripts) access what data elements in a database. It can help you test your software on large projects and is critical for maintaining a large application. If you make changes in one form or script, a CRUD matrix can tell you what other forms, libraries, scripts, and reports will need to be tested. From our Beginner's Corner Topic Tip of the Month If you are a single developer, try to find someone else to exercise your program. As the programmer, you have certain ideas of how a user will use your application. These ideas probably apply to about half the users. | |
Tester Message Board Ask this group a question! Select a topic below or Visit Tester Board Now!| Topic | Threads | Posts | Last Active Thread | | Testing | 1 | 0 | No Subject! |
Monthly V.FoxPro Lesson | Learn! Review! Keep Up! |
| Short tidbits pulled from our knowledge base each month. | M O N T H L Y L E S S O N | From our Visual FoxPro (VFP) Topic Resource Link of the Month: AOL FoxPro Resources Great resource! FoxPro Resources is a website devoted to serving the needs of all users of FPD/FPW 2.x. All the information provided on these pages will apply to both the DOS and Windows versions of FoxPro, unless otherwise noted. Although there were also Mac and UNIX versions of FoxPro, no specific information on those platforms is available on this site. | |
V.FoxPro Message Board Ask this group a question! Select a topic below or Visit V.FoxPro Board Now!
Monthly VB Classic Lesson | Learn! Review! Keep Up! |
| Short tidbits pulled from our knowledge base each month. | M O N T H L Y L E S S O N | From our Tool Basics Topic. Code Snippet of the Month Crystal Reports was very popular with VB Classic developers and came bundled with Visual Basic 3 through 6. VB6 offers both Crystal Reports and the new Microsoft Data Report Designer. From our Tool Basics Topic Tip of the Month Short-circuit evaluation is a feature of most languages where once an evaluation evaluates to False, the compiler evaluates the whole expression to False, exits and moves on to the next code execution line. In VB Classic, the if statement does not support short-circuit evaluation but you can mimic it. Use either an if..else if..else if statement or nested if statements. You will find that your code that makes use of this technique will be clearer and easier to maintain than the short-circuit equivalent and faster than ingnoring the issue. | |
VB Classic Message Board Ask this group a question! Select a topic below or Visit VB Classic Board Now!
A classic post from our OOP topic... VB.Net Class..Object (Class..End Class..New) by Mike PrestwoodDeclare and implement VB.Net classes after the form class or in their own .vb files. Unlike VB Classic, you can have more than one class in a .vb class file (VB classic uses .cls files for each class). A classic post from our OOP topic... VB.Net Abstraction (MustInherit, MustOverride, Overrides) by Mike PrestwoodVB.Net supports abstract class members and abstract classes using the MustInherit and MustOverride modifiers.An abstract class is indicated with a MustInherit modifier and is a class with one or more abstract members and you cannot instantiate an abstract class. However, you can have additional implemented methods and properties. An abstract member is either a method (implicitly virtual), property, indexer, or event in an abstract class. You can add abstract members ONLY to abstract classes using the MustOverride keyword. Then you override it in a descendant class with Overrides. |
Monthly VB.Net Lesson | Learn! Review! Keep Up! |
| Short tidbits pulled from our knowledge base each month. | M O N T H L Y L E S S O N | From our Language Basics Topic. Code Snippet of the Month VB.Net logical operators:
| And |
and, as in this and that |
| Or |
or, as in this or that |
| Not |
Not, as in Not This |
| Xor |
either or, as in this or that but not both | 'Given expressions a, b, c, and d: If Not (a and b) and (c or d) Then 'Do something. End If From our WebForms (ASP.Net) Topic. Question: How do you launch a Windows application in VB.Net? How do I open the default browser to a specific URL? Answer: 'Launch a Windows application. System.Diagnostics.Process.Start("notepad.exe") 'Or just... Process.Start("calc.exe") 'Open a website with the default browser. System.Diagnostics.Process.Start("http://www.prestwood.com") | |
VB.Net Message Board Ask this group a question! Select a topic below or Visit VB.Net Board Now!
A classic post from our Website Scripting topic... Connection Strings, Web.Config, and the Development Environment by Bryan ValenciaThere is a way to configure your ASP.NET website with one configuration for your internal development environment and another for your online website - and still be able to publish your site without hand editing the web.config.
A classic post from our Cascading Style Sheets (CSS) topic... CSS-P: Demystifying HTML Element Positioning Contexts by Evan EgaliteThe purpose of this article is to show how to use Cascading Style Sheets to control the layout of nested HTML elements on a page, and to demystify the confusing absolute and relative element positioning scheme used by the browser. |
Monthly Web Design Lesson | Learn! Review! Keep Up! |
| Short tidbits pulled from our knowledge base each month. | M O N T H L Y L E S S O N | From our Cascading Style Sheets (CSS) Topic. Code Snippet of the Month The following code snippet allows you to import a cascading style sheet (CSS) into another CSS file. The main benefit is this allows you to organize your styles and to create common CSS files. @import url('/style_core.css'); From our Artistic (design, layout, etc.) Topic Add [d_rop]-down menus to your website. DHTML Menu Builder is the tool of choice for building Javascript menus for our Prestwood family of websites. Complete dhtml menus can be built, in a matter of minutes, without writing a single line of code. No special plugins and no programming or HTML knowledge required, with just DHTML Menu Builder you'll be able to create great looking and functional dhtml menus for all your web sites. From our Graphics Topic. Question: Why do images sometimes resize smaller well, and sometimes not? Sometimes when I resize an image to a small 100 pixel width or less image it looks great and sometimes it's very choppy. Answer: 1. You probably need to increase the number of colors prior to resizing. Some programs will do this for you automatically and some don't. For example, when working with a transparent GIF or PNG, the color palette is set to 256. If you shrink a transparent GIF or PNG, it will likely look choppy. However, if you increase the number of colors to 16-bit or higher, than resize, it looks great. Of course, you'll have to reapply transparency.
2. Various programs use various algorithms to resize images, make sure you try them all. From our Logos Topic Tip of the Month Each logo you create should have at most one symbol. You can mess with the text is "textual" ways such as font, color, and minor tweaks, but if you include a "symbol", you should include only one symbol. | |
Web Design Message Board Ask this group a question! Select a topic below or Visit Web Design Board Now!
Monthly Web Owners Lesson | Learn! Review! Keep Up! |
| Short tidbits pulled from our knowledge base each month. | M O N T H L Y L E S S O N | From our Standard Website Content Pages Topic Resource Link of the Month: Example Security & Privacy Policy This is our security and privacy policy. You are welcome to use it for your website. You will most likely want to update it a bit as it's pretty specific to our website. | |
Web Owners Message Board Ask this group a question! Select a topic below or Visit Web Owners Board Now!
A classic post from our Win Users topic... Remove Temporary Windows Files by Vicki NelsonClear up space on your hard drive by deleting temp files left behind by Windows. A classic post from our Windows XP topic... Hidden Searching Secrets in Windows XP by Joshua DelahuntyYou've probably used the Find Files feature of Windows in the past. And it seemed slow. By enabling the Indexing Service feature, you will be able to speed up this process, and make searching files, including phrases and words internal to the files on your drive, MUCH faster. Just follow the steps below, and you'll be on your way to a much faster find feature. |
Monthly Win Users Lesson | Learn! Review! Keep Up! |
| Short tidbits pulled from our knowledge base each month. | M O N T H L Y L E S S O N | From our Windows XP Topic. Question: How much memory do I need with Windows XP? Answer: With the size of applications and data, my belief is that you need a minimum of 1 GB of RAM but 2 GBs is better. Unless you run lots of applications at the same time, there is no real need for more than 3 GBs of RAM. By the way, in Windows Vista, the caching scheme changed. Vista's SuperFetch built on and replaced Prefetch. Unlike Prefetch, SuperFetch will use up ALL memory for caching you give it so you want as much memory on Vista as you can afford and your hardware will allow. Vista 32-bit has a general limit of 4 GB and Vista 64-bit has a general limit of 128 GB. From our Win Users Topic Tip of the Month If you know the correct driver is installed on your computer some place but don't remember where or know it's part of Windows, use the browse for local driver option and specifiy a path of C:\ and check the include subfolders checkbox.
For example, in Vista, if there are no bluetooth devices on you computer when Vista is installed, the bluetooth stack isn't loaded. To load it, simply put your USB bluetooth dongle in an available USB port and use the tip above to load the Vista bluetooth driver. | |
Win Users Message Board Ask this group a question! Select a topic below or Visit Win Users Board Now!
| Thread Starter | Replies | Last Post | Topic | | TMonthCalendar and OnGetMon... I've noticed a problem with the OnGetMonthInfo event of TMonthCalendar. (IE. MonthCalendar1GetMonthInfo(Sender: TObject; Month: Cardinal; var MonthBoldInf... | 1 | Try such a nice piece of code as Calendar.Date:=Calendar.Date+31; C... 9/4/2010 | Delphi VCL | | PrinterSetCurrent I have the following code on a form to switch printers behind the scenes. There is a table that lists the users printers and a field in that table that defines what the printer is used for (i.e.... | 0 | New! 9/2/2010 | ObjectPAL | | ReportPrintInfo DynArray Can anybody explain to me the syntax to use ReportPrintInfo - the syntax # 3 version that uses an array? I need to set the PrintToFile option to create a postscript file and it seems to only be availa... | 0 | New! 9/2/2010 | ObjectPAL | | ReportPrintInfo DynArray Can anybody explain to me the syntax to use ReportPrintInfo - the syntax # 3 version that uses an array? I need to set the PrintToFile option to create a postscript file and it seems to only be availa... | 0 | New! 9/2/2010 | ObjectPAL | | Printing forms as reports d... I have a 3 page form that I need to open as a report. When I open it, however, I only get the first page and a half. Any ideas? I have to do i... | 1 | Figured it out - has to do with the page size - ended up having to create 3 seperate reports but it ... 9/2/2010 | Paradox Reports | | Changing account records ba... Does anyone know how to write this Paradox 4.5 code into a Paradox 11 script?
This works in my old Paradox. It goes through a list of account names finds the account in another table and scans to pro... | 0 | New! 8/29/2010 | ObjectPAL | | Windows 7 Paradox 9 report ... I've successfully installed Paradox 9 on a windows 7 workstation linked to SBS 2008.However, when I went to amend a report by redefining a field, Paradox crashe... | 9 | I've tried everything suggested in previous posts. Sometimes it works and sometimes it crashes. My w... 8/24/2010 | Paradox Reports | | Server 2003 and BDE I have just thought I might move all my delphi stuff onto my 2003 server and then use remote desktop to access it however some of my apps give me a bdertl70 err... | 2 | Hi Owen,
I suspect a rights problem. The app/user needs full rights to the data folder and net dir. 8/16/2010 | Delphi Single User Apps | | Paradox 7 Update I know P7 is an ancient version but I dug the install disks out of a dusty drawer this morning and installed it in my XP machine. My question is whether I need ... | 1 | Never mind, I've applied the patch selectively. 8/11/2010 | Paradox Setup, Vista, etc. | | Diplaying javascript error ... | 0 | New! 8/7/2010 | ASP Classic - Handling Data |
|