Thursday, July 2, 2009
Computer Programming Quotes
2. “Any code of your own that you haven't looked at for six or more months might as well have been written by someone else.” - Eagleson's law
3. “When someone says, "I want a programming language in which I need only say what I want done," give him a lollipop.” - Alan Perlis
4. “Should array indices start at 0 or 1? My compromise of 0.5 was rejected without, I thought, proper consideration.” - Stan Kelly-Bootle
5. “If Java had true garbage collection, most programs would delete themselves upon execution.”
(Robert Sewell)
6. “Software is like sex: It’s better when it’s free.”
(Linus Torvalds)
7. “You can’t have great software without a great team, and most software teams behave like dysfunctional families.”
(Jim McCarthy)
8. “I don’t care if it works on your machine! We are not shipping your machine!”
(Vidiu Platon)
9. “The Internet? Is that thing still around?”
(Homer Simpson)
10. “Programming is like sex: one mistake and you’re providing support for a lifetime.”
(Michael Sinz)
Wednesday, June 17, 2009
Creating Setup on Visual Studio Crystal Reports "Property 'License Key' is non-nullable"
If you haved encountered this error while building your setup project in .net 1.1 follow the following steps:
1. On Visual Studio .NET, Click Help > About.
2. Copy the Crystal Report Key that looks like this AAP50-GS00000-U1000RN.
3. On the Setup Project, search for Crystal_regwiz2003.msm.
4. Open its properties and copy the licence key to the mergemoduleproperties > license key property.
5. Build your setup.
Tuesday, May 19, 2009
IT DOCUMENTS
Acquisition Plan
Action Plan
Business Case
Business Continuity Plan
Business Plan
Business Requirements
Case Study Templates
Change Management Plan
Communication Plan
Concept Proposal
Configuration Management Plan
Conversion Plan
Cost Benefit Analysis
Database Design Document
Deployment Plan
Design Document
Disaster Recovery
Documentation Plan
Employee Handbook
Expression of Interest
Feasibility Study
Functional Requirements
Grant Template
Installation Plan
Interface Control Document
Invitation To Tender
Maintenance Plan
Marketing Plan
Operations Guide
Policy Manual
Project Management
Project Plan
Proposal Template
Proposal Forms and Checklists
Request For Proposal
Release Notes
Risk Management Plan
Service Level Agreement -SLA
Statement of Work
Software Development
Software Testing Templates
Software Requirements
Specification
SOPs / Procedure
System Admin Guide
System Boundary Document
System Design
System Specifications
Security Plan
Test Plan
Training Plan
Transition Plan
User Guide Template
Use Case Templates
White Paper Templates
Wednesday, April 1, 2009
Getting Started with PHP
Here is the link: XAMPP for Windows
2nd you need an editor.
Here is the link: Notepad++
XAMPP INSTALLATION
1. Select Directory
2. Check MySQL, Apache and FileZilla
3. Finally
NOTEPAD++ INSTALLATION
1. Select the ff:
Thursday, March 5, 2009
ASP.NET Ajax Controller
(AjaxScript.js)
var xmlHttp;
var elementId;
var urlpage = "AjaxController.aspx";
function showContent(id, querystring)
{
elementId = id;
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
{
alert ("Your browser does not support AJAX!");
return;
}
var url= urlpage;
url=url + querystring;
//url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=getContent;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}
function getContent()
{
if (xmlHttp.readyState==4)
{
document.getElementById(elementId).innerHTML=xmlHttp.responseText;
}
}
function GetXmlHttpObject()
{
var xmlHttp=null;
try
{
// Firefox, Opera 8.0+, Safari
xmlHttp=new XMLHttpRequest();
}
catch (e)
{
// Internet Explorer
try
{
xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e)
{
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
}
}
return xmlHttp;
}
ASP.NET Page
(AjaxController.aspx)
Page
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="AjaxController.aspx.vb" Inherits="AjaxExperiment.Content"%>
<% showOutput() %>
Note: Change the inheritance to your project name. "AjaxExperiment.content"
Code Behind
Public Function showOutput()
Else
If Request.QueryString.Item("key") = 1 Then
Response.Write("Hello AJAX")
Response.Write("Hello World")
End If
End Function
Monday, January 26, 2009
ASP.NET: XML and XSLT
Introduction
What is XML?
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
XML Stands for eXtensible Markup Language. It is a generic data format widely used for sharing information over the internet.
<?xml version="1.0" encoding="utf-8" ?>
<books>
<book>
<title>Harry Potter</title>
<author>J. K. Rowling and Mary GrandPré</author>
<publisher>Hardcover</publisher>
</book>
<book>
<title>The Curious Case of Benjamin Button</title>
<author>F. Scott Fitzgerald</author>
<publisher>Paperback</publisher>
</book>
</books>
Figure 1. XML
What is XSL?
XSL Stands for eXtensible Stylesheet Language. Similar to CSS (Cascading Style Sheet), XSL is a language used to create stylesheets for XML.
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"
>
<xsl:template match="Books">
<html>
<body>
<ul>
<xsl:value-of select="Title" />
<xsl:value-of select="Author" />
<xsl:value-of select="Publisher" />
<xsl:apply-templates/>
</ul>
</body>
</html>
</xsl:template>
<xsl:template match="Book">
<li>
<b><xsl:value-of select="Title" /></b>
<br/>
<xsl:value-of select="Author" />
<br/>
<xsl:value-of select="Publisher" />
</li>
</xsl:template>
</xsl:stylesheet>
Figure 2. XSLT
Applying the XSL stylesheet into the XML
XSL is useless if it is not applied into your XML. XSL association might look like this:
Your XML will looks like this:
<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="Books.xslt"?>
<Books>
<Book>
<Title>Harry Potter</Title>
<Author>J. K. Rowling and Mary GrandPré</Author>
<Publisher>Hardcover</Publisher>
</Book>
<Book>
<Title>The Curious Case of Benjamin Button</Title>
<Author>F. Scott Fitzgerald</Author>
<Publisher>Paperback</Publisher>
</Book>
</Books>
Bring-On the ASP.NET
Now that we have created the XML and associated the XSL on it, Its time to create our asp page.
Here's the step by step on how to do it:
1. In you Visual Studio, Create a new project (ASP.NET Web Application).
2. Add new item and select XML. Copy and paste the code on Figure 3.
3. Add new item and select XSLT. Copy and paste the code on Figure 2.
4. Open the design view of the Default.aspx page.
5. Drag an xml control onto the page.
6. On your code behind add the following code in your page load event.
XmlDocument docXML = new XmlDocument();Note: Don't forget to import the System.Xml and the System.Xml.Xsl Namespaces.
XslTransform docXSL = new XslTransform();
docXML.Load(Server.MapPath("Books.xml"));
docXSL.Load(Server.MapPath("Books.xslt"));
this.Xml1.Document = docXML;
this.Xml1.Transform = docXSL;
7. Run the project.
And finally, here is the output:
- Harry Potter
J. K. Rowling and Mary GrandPré
Hardcover - The Curious Case of Benjamin Button
F. Scott Fitzgerald
Paperback