I.T. Discussion Community!
-Collapse +Expand
eMag

Prestwood eMagazine

August Edition
Subscribe now! It's Free!
Enter your email:

   ► eMag   Print This     
View Group Edition:
Full Edition Your Edition || Prev Next

eMag Jun 2012 Issue - Full Edition

Prestwood eMag
Message Boards
PrestwoodBoards.com
  June 2012 - Full Edition Year 14 Issue 6  
I.T. Discussion Community!


Expert guidance from working professionals!
IT Water-Cooler for Power-Users topic:
How To Configure Auto Logon In Windows 7
by Eric Prestwood

Configure your computer to auto log on to a user (even an admin)


American I.T. workforce topic:
Sharpening your skills - A short story
by Ramesh R
Here is a short story about a woodcutter and his job. From this job, we have lot of learnings that implies to our career and sharpening our skills. Such examples in life are very important for shaping our career. Enjoy the short story.





 Access Group Top 
Visit Group | My Group Settings
 Monthly Access Lesson
OOP Topic:
Code Snippet of the Month

When an object instance is created from a class, Access VBA 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, Access VBA calls a special sub called Class_Terminate.

General, Presales, & Installation Topic:
Resource Link of the Month: Microsoft Access Newsgroups

Microsoft's official Access newsgroup.

Using Data Topic:
FAQ of the Month: DAO versus ADO
Question:

My Access Application still uses DAO and I'm thinking about migrating it to ADO. Should I?


Answer:

No, especially if your accessing Access tables. It is true that ADO is more widespread but if your application is working with DAO, then there's no significant reason to switch. If you're starting a new Access Application that accesses Access tables, I would use DAO. If you're accessing a SQL server such as MS SQL or Oracle, I would use ADO.

Beside DAO and ADO, developers can also use OLE DB and ODBC.







 AmericanIT Group Top 
Visit Group | My Group Settings
American I.T. workforce topic (classic post):
Sharpening your skills - A short story
by Ramesh R
Here is a short story about a woodcutter and his job. From this job, we have lot of learnings that implies to our career and sharpening our skills. Such examples in life are very important for shaping our career. Enjoy the short story.







 Analyst Group Top 
Visit Group | My Group Settings
 Monthly Analyst Lesson
Analysis & UML Topic:
Definition of the Month: Software Artifact
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.
Analysis & UML Topic:
Resource Link of the Month: Official UML Home Page

The Object Modeling Group (OMG) controls the UML specification. The Unified Modeling Language - UML - is OMG's most-used specification, and a very popular way to model not only application structure, behavior, and architecture, but also business process and data structure.







 ASP Classic Group Top 
Visit Group | My Group Settings
Language Basics topic (classic post):
Clear Application and Session Variables Using ASP classic
by Mike Prestwood

Use Application.Contents.RemoveAll and Session.Contents.RemoveAll


Tool Basics topic (classic post):
A 10 Minute ASP Classic Quick Start
by Mike Prestwood

An example of using ASP's Response.Write and creating functions.


 Monthly ASP Classic Lesson
Language Details Topic:
Code Snippet of the Month

Use the scriptiing dictionary object which is available on later versions of ASP Classic (all still commonly in use). Both Access VBA and VB Classic use a collection for this but collections are not supported in ASP Classic.

Dim StateList
Set StateList = Server.CreateObject("Scripting.Dictionary")

StateList.Add "CA", "California"
StateList.Add "NV", "Nevada" 
Response.Write "I live in " & StateList.Item("CA")
Dim StateList
 
set StateList = Server.CreateObject("Scripting.Dictionary")

StateList.Add "CA", "California"
StateList.Add "NV", "Nevada"
 
Response.Write "I live in " & StateList.Item("CA")

ASP Classic Topic:
Documented Error of the Month: error '80020009'
Error: error '80020009' YourPage.asp, line xxxx
Explanation:

You are trying to reference a field of a RecordSet that has no records or the RecordSet you are using does not contain the field. You may need to add something like...

If Not MyRS.EOF Then
	SomeVar = MyRS.Fields("TheField")
End If

More Info - http://classicasp.aspfaq.com/general/why-do-i-get-80020009-errors.html

ASP Classic Topic:
Resource Link of the Month: 4 Guys from Rolla

Very popular ASP Classic and now ASP.Net website.







 C# Group Top 
Visit Group | My Group Settings
WebForms Coding Tasks topic (classic post):
Using GenericIdentity for Cross Platform Authentication in the .NET framework
by Bryan Valencia

When designing a WinForms application, the most straightforward way to authenticate a user is using NTLM or Active Directory using WindowsIdentity.GetCurrent. Over the Internet, you can use the whole ASP.Net security setup with Membership.GetUser. The GenericPrincipal object works well when you deploy to a mixed web/WinForms environment. See new GenericIdentity.


OOP topic (classic post):
C# Abstraction (abstract, override)
by Mike Prestwood

C# supports abstract class members and abstract classes using the abstract modifier. An abstract class 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 abstract keyword.


 Monthly C# Lesson
OOP Topic:
Code Snippet of the Month

Method overriding allows you to define or implement a virtual method in a parent class and then replace it in a descendant class. In C#, you specify a virtual method with the virtual keyword in a parent class and replace it in a descendant class using the override keyword.

class Robot

{
  public virtual void Speak()
  {
  }

}

class Cyborg:Robot
{
  public override void Speak()
  {
  }

}
C# Topic:
Definition of the Month: Value Data type variables
A Value data type variable contains values.Value data type variables contains values.  They can be either struct or enumerations.  Since the value data type variables contain values assigning one variable to another copies the data into the second variable.  Any changes to either variable are independant of the other.
C# Topic:
Download of the Month: Free E-Book on C# .NET Essentials
This is the "Chapter Zero" you've been missing.

Pick just about any one of your thick, technical tomes, and give it a quick skim.  Inevitably, the book dives onto a topic with the assumption that you already know a bunch of the basics.

This is unavoidable, because nobody wants a book about, say, web services, that starts with a basic course in programming. Yet many books about .NET topics, assume too much prior knowledge.  They need a "chapter zero."

Charles Petzold has released a freely downloadable e-book on C# .NET. , and it is the chapter zero that so many of us need.

 







 C++ Group Top 
Visit Group | My Group Settings
C++ Language Basics topic (classic post):
C++ Custom Routines
by Mike Prestwood

C++ is a hybrid language and as such offers global functions and class methods. A function must come before it's usage or you can prototype the function.


 Monthly C++ Lesson
C++/CLI OOP Topic:
Code Snippet of the Month

Unlike standard C++, C++/CLI uses the .Net garbage collector to free managed object instances. Prism does not have nor need a true destructor.

In .Net, a finalizer is used to free non-managed objects such as a file or network resource. Because you don't know when the garbage collector will call your finalizer, Microsoft recommends you implement the IDisposable interface for non-managed resources and call it's Dispose() method at the appropriate time.

C++Builder Specific Topic:
Resource Link of the Month: C++Builder Roadmap

Official Delphi and C++Builder Roadmap from Codegear.







 Coder Group Top 
Visit Group | My Group Settings
Object Orientation (OO) topic (classic post):
Aggregation
by Mike Prestwood

Aggregations indicate a whole-part relationship, and are known as "has-a" or "is part of" relationships. An Aggregation relationship is indicated by a line with a hollow diamond.


Object Orientation (OO) topic (classic post):
Static Class / Static Member
by Mike Prestwood

A static member is a member you can have access to without instantiating the class into an object. For example, you can read and write static properties and call static methods without ever creating the class. Static members are also called class members (class methods, class properties, etc.) since they belong to the class and not to a specific object. A static class is a class that contains only static members. In the UML, these classes are described as utility classes.


 Monthly Coder Lesson
General .Net Concepts Topic:
Code Snippet of the Month

This code snippet will send a very quick email. Note that this code will not work as-is. You need to have valid email accounts and a valid email server to send a real email.

You need to add: using System.Net.Mail;

MailMessage myMessage = new MailMessage(

"fromaddress@somewhere.com", "toaddress@somewhere.com",
"Subject", "Message Body.");
 
SmtpClient mySMTPClient = new SmtpClient("mailserver.somewhere.com"); 

mySMTPClient.Send(myMessage);
Object Orientation (OO) Topic:
Definition of the Month: Partial Class

A partial class, or partial type, is a class that can be split into two or more source code files and/or two or more locations within the same source file. Each partial class is known as a class part or just a part. Logically, partial classes do not make any difference to the compiler. The compiler puts the class together at compile time and treats the final class or type as a single entity exactly the same as if all the source code was in a single location.

General .Net Concepts Topic:
Resource Link of the Month: Sacramento Visual Studio.Net Usergroup

Sacramento Visual Studio Users Group

Sacramento Visual Studio.Net Usergroup

The Sacramento Visual Studio Users group is no charge resource for Visual Studio developers in the greater Sacramento area.

http://www.sacvsug.org/ No longer active. Go to SacNetUG.org instead.







 DBA Group Top 
Visit Group | My Group Settings
DBA & Data topic (classic post):
SQL Server 2005 Database Diagram caveat
by Joshua Delahunty
Tip about renaming tables in SQL Server 2005

 Monthly DBA Lesson
Microsoft SQL Server Topic:
Code Snippet of the Month

In MS-SQL, to move an object such as a table or view from one schema to another, use alter schema.

alter schema [ToSchema] transfer FromSchema.[Object] 

 

For example, the following moves the Orders table from the user1 schema t the dbo schema.

alter schema [dbo] transfer user1.[Orders] 
DBA & Data Topic:
Definition of the Month: ASCII
ASCII is an acronym for American Standard Code for Information Interchange. The ASCII set consists of 7-bit codes that represent 128 standard characters, including letters, numbers, and symbols. The first 128 characters in the ASCII set, the extended ASCII set, and the ANSI set are the same.ASCII is an acronym for American Standard Code for Information Interchange. The ASCII set consists of 7-bit codes that represent 128 standard characters, including letters, numbers, and symbols. The first 128 characters in the ASCII set, the extended ASCII set, and the ANSI set are the same.
MS SQL 2008 Topic:
Documented Error of the Month: MS SQL 2008 Saving Changes Not Permitted
Error:

Saving changes is not permitted. The changes you have made require the following tables to be dropped and re-created. You have either made changes to a table that can't be re-created or enabled the option Prevent saving changes that require the table to be re-created.

Explanation:

In MS SQL 2008, if you get a Saving Changes Not Permitted error, you can easily fix this error in Management Studio. Uncheck the Prevent saving changes that require table re-creation option. 

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!







 Delphi Group Top 
Visit Group | My Group Settings
BDE topic (classic post):
Using BDE TTables to read or write text file records
by Scott Wehrly
How to read or write data from comma-delimeted or fixed length record text files in Borland Delphi.

Language Basics topic (classic post):
Delphi Comments (// or { ... } or (* ... *))
by Mike Prestwood

Delphi uses // for a single line comment and both {} and (**) for multiple line comments. Although you can nest different types of multiple line comments, it is recommended that you don't. A special comment. Delphi compiler directives are in the form of {$DIRECTIVE}. Of interest for comments is using the $IFDEF compiler directive to remark out code.


 Monthly Delphi Lesson
OOP Topic:
Code Snippet of the Month

Up until D2005, private and protected were not implemented strictly. Starting with D2005, a traditional strict versions of OOP are supported using the strict keyword. OO purist will want you to use strict private over private and strict protected over protected. I suggest you follow that advice until you both fully understand the differences and have a specific need. Delphi offers a special published specifier which is the same as public members but runtime type information (RTTI) is generated.

TCyborg = class(System.Object)

private
//Don't use accept when you really want private friendly members.
strict private
//Use as your default private members.
  FName: String;

protected
//Don't use accept when you really want protected friendly members.
strict protected

//Use as your default protected members.
public
  


published
  //RTTI Info


end;
Delphi for Win32 Topic:
Resource Link of the Month: Book: Delphi 2007 Handbook

Marco Cantu's previous Delphi Books have long been a staple in my personal library, and I expect this new one will live up to Cantu's fine reputation.

Marco's Delphi 5 books were watersheds in my Delphi career, and I'm eager for my copy of this new one to arrive.

OOP Topic:
FAQ of the Month: Sealed Classes
Question:

What is a sealed class?


Answer:

A class which prevents another class from inheriting from it and/or prevents another class from overriding a member. The concept of making sure a class is the last class in a descendant class tree.

Examples - /ASPSuite/KB/CrossRef.asp?LangID=&ToLangID=&CatID=10&SyntaxID=4

Using Data Topic:
Tip of the Month
When you need to put quotes, single or double, or even another character, around a string there are two methods to lend a hand: QuotedStr and AnsiQuotedStr. QuotedStr will put single (') quotes around your string or variable. The other function you can call is AnsiQuotedStr which adds double quotes.






 Design Group Top 
Visit Group | My Group Settings
Cascading Style Sheets (CSS) topic (classic post):
View. Print. Handheld. Make your site work on any media.
by Bryan Valencia

There is no need to manually control the rendering of your site to alter layout. There is an easy CSS based feature that can be used to format your entire site for whatever options you need.

In this article we will see how to make the same site render automatically for screen, print, and handheld. There are other media types that can be used, but these will be the most common for daily use.


 Monthly Design Lesson
Windows Hosting Topic:
Download of the Month: Web Application Stress Tool (WAST)

The free Microsoft web stress tool is designed to realistically simulate multiple browsers requesting pages from a Web site.

The Microsoft WAS web stress tool is designed to realistically simulate multiple browsers requesting pages from a web site. You can use this tool to gather performance and stability information about your web application. This tool simulates a large number of requests with a relatively small number of client machines. The goal is to create an environment that is as close to production as possible so that you can find and eliminate problems in the web application prior to deployment.

Use this tool locally to test how well your website is performing in your test environment. The better it performs in your test environment under stress, the better it will perform when deployed live.

Website Design Topic:
Resource Link of the Month: Project Estimator

The Web Development Project Estimator is a tool for web designers and developers to estimate the time and materials required for a proposed web project.

Cascading Style Sheets (CSS) Topic:
FAQ of the Month: CSS
Question: What is a Cascading Style Sheet?

Answer: A cascading style sheet is a text file with a .CSS extension on your web site that indicates how the web page styles should look. Cascading style sheets make color and style changes easy.
Graphics Topic:
Tip of the Month

Before you resize a transparent GIF or PNG larger or smaller, make sure you first increase the number of colors to the maximum number of colors allowed. In essence, unleash the full power of your graphics program. After you resize your image, you will have to reapply transparency.







 Java Group Top 
Visit Group | My Group Settings
 Monthly Java Lesson
Tool Basics Topic:
Code Snippet of the Month

Literals are quoted as in "Prestwood". If you need to embed a quote use a slash in front of the quote as in \".

System.out.println("Hello");
System.out.println("Hello \"Mike\".");
  
//Does Java evaluate this simple
//floating point math correctly? No!
if ((.1 + .1 + .1) == 0.3) {

System.out.println("Correct");
} else {
System.out.println("Not correct");
}






 JavaScript Group Top 
Visit Group | My Group Settings
JavaScript and AJAX topic (classic post):
JavaScript versus JScript
by Mike Prestwood
JScript is Microsoft's implementation of JavaScript.

Beginners Corner topic (classic post):
Validating Form Fields
by Mike Prestwood
Adding JavaScript to your HTML forms to validate form fields.

 Monthly JavaScript Lesson
JavaScript and AJAX Topic:
Code Snippet of the Month

An associative array links a set of unique values (keys) to another set of values (not necessarily unique). Associative arrays are also known as a dictionary or a hash table in other languages.

//Initialize array.
var MyStateList= new Array()
 
//Assign values.
MyStateList["CA"]="California";

MyStateList["OR"]="Oregon";
MyStateList["NV"]="Nevada";
 
//Use array.
Alert("OR is " + MyStateList["OR"])

Beginners Corner Topic:
Question: How do you close a browser in a link?

Answer: You can do close a browser using JavaScript. Here is an example:

javascript:self.close()







 Linux Group Top 
Visit Group | My Group Settings
 Monthly Linux Lesson
Linux Applications Topic:
Download of the Month: Open Office for Linux
Download page for Open Office including links to the Linux editions.
OpenOffice.org 2 is the leading open-source office software suite for word processing, spreadsheets, presentations, graphics, databases and more. It is available in many languages and works on all common computers. It stores all your data in an international open standard format and can also read and write files from other common office software packages. It can be downloaded and used completely free of charge for any purpose.
Linux Operating Systems Topic:
Resource Link of the Month: Distribution: Fedora

Fedora is a Linux-based operating system that showcases the latest in free and open source software. Fedora is always free for anyone to use, modify, and distribute. It is built by people across the globe who work together as a community: the Fedora Project. The Fedora Project is open and anyone is welcome to join.

The Fedora Project is out front for you, leading the advancement of free, open software and content.







 Owners Group Top 
Visit Group | My Group Settings
Website Design Services topic (classic post):
Website Design Services FAQ
by Mike Prestwood
FAQs related to Prestwood building your website.

 Monthly Owners Lesson
Website Owners Topic:
Resource Link of the Month: Pixeur by Veign

Whether you're designing web sites or desktop applications, it's frequently convenient to "borrow" a color from something that's displayed on your screen.

There are many "color picker" utilities that do this but, with the advent of Vista and even more so Windows 7, some of the old standbys just don't work.

Pixeur is a free, but best of breed, color picker.  You just drag it's little picker over the color you want and the color; and several types of color codes, display as you drag. When you release your mouse button, the exact color you were over is locked in the display, ready to be "lifted" for any purpose you please.

Pixeur displays color values as:

  • HSB: Hue, Saturation, Brightness,
  • RBG: Red, Green, Blue,
  • CMYK: Cyan, Magenta, Yellow & Key (black)
  • Web-friendly Hexadecimal: #61d6fy for example

A convenient "Copy" button will copy the hex value to your clipboard.

As you work, Pixeur can even maintain a list of colors you've picked.







 Paradox Group Top 
Visit Group | My Group Settings
OPAL: Language Details topic (classic post):
In Paradox, use enumRTLMethods to List all commands
by Mike Prestwood
Q. How can you create a table of all the ObjectPAL commands?

P7 Book: Programming Unleashed topic (classic post):
PUN: Chapter 27, Using DDE, OLE, and OLEAuto
by Mike Prestwood
Chapter 27, "Using DDE, OLE, and OLEAuto" from Paradox 7 Programming Unleashed by Mike Prestwood.

 Monthly Paradox Lesson
OPAL: Language Details Topic:
Code Snippet of the Month

ObjectPAL uses home(), end(), nextRecord(), priorRecord() to move a database cursor (works with either a TCursor or UIObject).

TCursor.nextRecord()

These commands send a message to the object. Specifically, they send an action constant using the action command. The above snippet is equivalent to:

TCursor.action(DataNextRecord)

It is handy to  with familiar with action constants because not all action constants have an ObjectPAL equivalent comment.

The following snippet uses the active keyword to move to the second to last record of the table attached to the UIObject that currently has focus:

active.end()
active.priorRecord()

You can also use the self keyword to refer to the UIObject your code is attached to.

Paradox Tables Topic:
Definition of the Month: Paradox Net Dir

The directory location of the Paradox network control file PDOXUSRS.NET. The active NET DIR parameter is stored in the Paradox section of the BDE configuration file and has precedence over any other NET DIR parameters that may be stored in older 16-bit configuration files, or in the System Init section of the current configuration file, or in the Registry. These other NET DIR entries will have no effect. To access a Paradox table on a network drive, the active NET DIR parameter in the Paradox section of the BDE configuration file must point to a network drive and folder in common to all users.

Interactive Paradox: Forms Topic:
styles.zip contains sample Paradox style sheets
Paradox & ObjectPAL Topic:
Documented Error of the Month: Paradox:03:69e5:
Error: Unexpected Condition GP 0000 at Paradox:03:69e5:
Explanation:

Try rebuilding the table using Table Repair (AKA TUtility).

Paradox & ObjectPAL Topic:
Resource Link of the Month: DBMonster.com Paradox Topic
Paradox topics at DBMonster.com. Great website. Like us, they cover multiple topics.
Paradox Tables Topic:
FAQ of the Month: Paradox 10 table structure?
Question: I was just reviewing the Paradox Table Specs in your Paradox developer reference area. I found specs through Paradox 7 only, and I'm really interested in Paradox 10. Is it available?

Answer:

No. Actually Paradox 7 "table structure" is the latest very flexible table structure. The only table structures are 1...3.x, 4.x, 5, and 7. No such thing as a Paradox 9 or 10 or 13 table structure.

Runtime, PDE, Package-It! Topic:
Tip of the Month

Whenever you open a form, report, library, or script using the open() method and do not specify a file extension, Paradox always looks first for the nondelivered .?SL file and then for the delivered .?DL file.







 Perl Group Top 
Visit Group | My Group Settings
Perl topic (classic post):
Perl Custom Routines (sub)
by Mike Prestwood

Perl uses subs and parameters are referenced in a special array. All arguments passed to a subroutine are stored in a special @_ array. To retrieve the arguments, you have to look inside the array and extract them.


 Monthly Perl Lesson
Beginners Corner Topic:
Code Snippet of the Month

PHP is case sensitive with variable names but not with commands. Although commands are case incenstive, I prefer to use all lowercase because it's easy to type and that's what I see most PHP coders doing and I see it on PHP.Net.

All of the following are equivalent:

echo "hello<br>";
ECHO "hello<br>";
Echo "hello<br>";
eCHo "hello<br>";

...but variables are case sensitive:

$fullname = "Mike Prestwood"; //These are two...
$FullName = "Wes Peterson";   //separate varialbes.
Perl Topic:
Download of the Month: ActivePerl Pro Studio
Commercial Perl development suite from ActiveState.
ActivePerl Pro Studio includes the latest releases of Komodo IDE and PDK Pro, plus one year access to Safari Books Online. Software licenses are permanent and include all updates, and upgrades for one year.






 PHP Group Top 
Visit Group | My Group Settings
Beginners Corner topic (classic post):
PHP Associative Array
by Mike Prestwood

Declare associative array with initial known values. You can also add to associative array. (You can just assign values without ever declaring it too!)


Beginners Corner topic (classic post):
Download PHP (Install it)
by Mike Prestwood

Download page from PHP.Net.


 Monthly PHP Lesson
Beginners Corner Topic:
Code Snippet of the Month

Common comparison operators:

== equal
!= or <> not equal
< less than
> greater than
<= less than or equal
>= greater than or equal

PHP 4 and above also offers === for indentical (equal plus same type) and !== for not identical (not equal or not same type).

//Does PHP evaluate the math correctly? No!
if (.1 + .1 + .1 == .3) {

echo "correct";
}
else {
echo "not correct";
}






 PrestwoodBoards Group Top 
Visit Group | My Group Settings
PrestwoodBoards topic (classic post):
Message Boards, Blogs, and WIKI's
by Mike Prestwood

A message board is for Q&A, blogs are personal, and WIKI's are controlled.








 Prism Group Top 
Visit Group | My Group Settings
Language Basics topic (classic post):
Delphi Prism Custom Routines (method, procedure, function)
by Mike Prestwood

In Prism, everything is within a class (just like with C#, VB.Net, and Java). So you create class methods using the method keyword. Alternatively, you can use procedure or function if you want the compiler to enforce returning or not returning a value.


OOP topic (classic post):
Delphi Prism Partial Classes (partial)
by Mike Prestwood

Prism supports both partial classes and partial methods using the keyword partial. A partial method is an empty method defined in a partial class.


 Monthly Prism Lesson
OOP Topic:
Code Snippet of the Month

Prism uses unnamed constructor methods for constructors. Prism also supports a Create constructor method for backward compatibility with Delphi for Win32.

Cyborg = public class

public
  constructor ();
  constructor (pName: String );
end ;
Language Basics Topic:
Resource Link of the Month: The Delphi Prism WIKI

This wiki is provided as a central live source of information about Delphi Prism and will be updated in an ongoing process.

Tool Basics Topic:
Question:

Can I share code between a Delphi and a Dephi Prism project? I want to have a single source Win32 and .Net application.


Answer:

No, not really. Because both are Object Pascal based, you could share routines but there are enough syntax differences that make sharing large amounts of code difficult.

Use Oxidizer to help port your Win32 Delphi application to a .Net Prism application.

You can also try out ShineOn which is an implementation of the Delphi for Win32 RTL.







 Proj Man Group Top 
Visit Group | My Group Settings
PSDP General topic (classic post):
My Tickets Overview
by Adam Lum
An introduction to the Prestwood ticket system.

 Monthly Proj Man Lesson
PSDP Checkpoints Topic:
Definition of the Month: PSDP Checkpoints

A checkpoint is NOT a task, but rather a milestone. A point in the project that marks significant progress. Although PSDP contains many standard checkpoints, the executive sponsor and project manager must agree on the checkpoints they wish to track. Once established, tasks can be associated with a checkpoint and you can easily view what tasks are completed per checkpoint and what checkpoints do NOT have tasks established yet.

PSDP Change Orders Topic:
FAQ of the Month: Change Orders
Question: When should I execute a change order on a time and material project?

Answer: At a minimum, execute a change order whenever the project budget will increase and when it will decrease by a substantial amount. Although not required, you should execute a change order whenever features migrate or are swapped out for other features. You should execute a change order even when the swap has no apparent impact on budget. I say "apparent" because analysts frequently do less research on changes especially when they look like they will have no impact on the budget.
PSDP Artifacts Topic:
Tip of the Month
Use PSDP Artifacts to track and document what the client wants. Create one artifact per main requirement, expectation, and/or critical success factor. A nagging problem we always face is documenting what the client wants then design, build, and test it while maintaining a link back to the original requirement. PSDP Artifacts aid in your effort to make sure you fulfill each and every requirement. For doucmentation purposes, you can add as many additional requirement and design items as you wish. You can also add additional test scripts as needed.






 Tech Group Top 
Visit Group | My Group Settings
Domains topic (classic post):
Converting from a Workgroup to a Domain
by Mike Prestwood

For a particular user on a particular computer, all programs installed for all users will still be available whether they log into their computer or the domain. You will have to migrate all other user specific settings either manually or use an automated tool.

Both of which are incomplete so expect to have to manually migrate some application specific settings and data for each user. At a minimum, log into the old local account and migrate My Documents, Desktop, Favorites, and perhaps e-mail such as the Outlook .PST or Outlook Express .DBX files.


Hardware topic (classic post):
The Wonder of Network Print Servers
by Wes Peterson

Network print servers are an inexpensive and great solution to a common home or office network.  Sure you can "share" printers attached to particular machines, but that creates a dependency on that machine being up and running.

With a network print server, that dependency disappears. People on the network can print without a particular machine being on and available.

They solve one other important problem, too.


 Monthly Tech Lesson
Hardware Topic:
Definition of the Month: SAN
A high speed network of storage devices availabe to all servers on a LAN or WANA high speed network of storage devices availabe to all servers on a LAN or WAN
Admin Server Tools Topic:
Resource Link of the Month: Test Exchange Connectivity

This is an invaluable tool for troubleshooting Exchange / Email problems.

Windows Server 2003 Topic:
Question:

On Windows Server 2003, how do you assign a specific range of IP addresses using DHCP to VPN clients?


Answer:

On your VPN server, in Routing and Remote Access (Administrative Tools | Routing and Remote Access), right click server (your VPN server), select Properties. On the IP tab, edit the Static Address Pool.







 Tech Writer Group Top 
Visit Group | My Group Settings
Technical Writing topic (classic post):
Using Real World Scenarios in Conceptual Documentation
by Peter Gruenbaum

Using real world scenarios when you write conceptual documentation for Software Development Kits (SDKs) is a way to give your readers ideas as to how the SDK can be used and to guide them as to what APIs are needed for commonly expected scenarios. This article guides you through how to gather information about scenarios, how to simplify them in order to make good examples, and how to lead developers through which APIs to use.


 Monthly Tech Writer Lesson
Publishing Topic:
Resource Link of the Month: Lulu.com Self Publishing

Self-publishing website. Publish your own books at a reasonable price. Free to publish and no setup fees.

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."







 Tester Group Top 
Visit Group | My Group Settings
 Monthly Tester Lesson
Testing, QA, QC Topic:
Definition of the Month: Quality Assurance
The process of comparing the features of the delivered software product with the documented requirements with the goal of verifying the product meets the original requirements.The process of comparing the features of the delivered software product with the documented requirements with the goal of verifying the product meets the original requirements.






 V.FoxPro Group Top 
Visit Group | My Group Settings
 Monthly V.FoxPro Lesson
Visual FoxPro (VFP) Topic:
Resource Link of the Month: The History of FoxPro
Great resource! The history of FoxPro including FoxPro and Visual FoxPro. Also includes predictions about the future.






 VB Classic Group Top 
Visit Group | My Group Settings
 Monthly VB Classic Lesson
Tool Basics Topic:
Code Snippet of the Month

Save as VB Classic. Common comparison operators:

= equal
<> not equal
< less than
> greater than
<= less than or equal
>= greater than or equal
//Does VB evaluate the math correctly? No!
If 0.1 + 0.1 + 0.1 = 0.3 Then

MsgBox "correct"
Else
MsgBox "not correct"
End If






 VB.Net Group Top 
Visit Group | My Group Settings
OOP topic (classic post):
VB.Net Partial Classes (Partial)
by Mike Prestwood

VB.Net supports both partial classes and partial methods.


 Monthly VB.Net Lesson
Tool Basics Topic:
Code Snippet of the Month

Most (many?) developers recommend using "+" because that's what C# uses but "&" is also available and many VB Classic and VBA/ASP developers prefer it. My preference is to use the & because it offers implicit type casting.

Dim FullName
Dim Age
  
//You can use + for strings.
FullName = "Prestwood"

Console.WriteLine("Hello " + FullName)
 
//For implicit casting, use &
Age = 35
Console.WriteLine(FullName & " is " & Age & " years old.")
'Implicit casting of numbers.
'
'This works:

MessageBox.Show(3.3)
  
'This fails:
'MessageBox.Show("" + 3.3)

  
'This works:

MessageBox.Show("" + CStr(3.3))
  
'Implicit casting &. This also works:
MessageBox.Show("" & 3.3)






 Windows Group Top 
Visit Group | My Group Settings
Windows Users topic (classic post):
Disable Unused Windows Services
by Vicki Nelson

Optimize your Windows performance by disabling unused Windows Services.


Windows Users topic (classic post):
Uninstall IE9
by Mike Prestwood

How do I uninstall Internet Explorer 9?


 Monthly Windows Lesson
Windows 7 Topic:
Documented Error of the Month: Enable Telnet in Windows 7
Error:

telnet is not recognized as an internal or external command, operable program or batch file.

Explanation:

In Windows 7, Telnet is 'off' by default, but you can turn it on (install it).  Sinse it's a Window's features, turn it on in Turn Windows features on or off.

  1. Open Control Panel and select Programs and Features. Or, select start menu and type "Programs and Features".
  2. Select Turn Windows features on or off.
  3. Check the Telnet Client box.
  4. Click OK.
    Enable Telnet in Windows 7.
Windows Users Topic:
Question: Can I install software in Windows safe mode?

Answer:

Depends on the software. If a software installation relies on something that is disabled in Safe Mode, then it will not install correctly. In addition, some software will not let you. For example, Norton Anti-Virus will not allow you.

If you boot up in Safe Mode with Networking, you can also browse the internet. For example, you can frequently browse to http://www.trendmicro.com and use their free online virus scanning software to remove viruses that have disabled your computer.

Windows 7 Topic:
Tip of the Month

Hold down the Shift key and right click on any folder in Windows 7 and select Open command window here. A command prompt will open with the current directory set automatically.



Follow PrestwoodBoards on: 


©1995-2019 PrestwoodBoards  [Security & Privacy]
Professional IT Services: Coding | Websites | Computer Tech