RSSAll Entries in the "Tools and Technologies" Category

Traversing DOM using JavaScript

Traversing DOM using JavaScript

The HTML DOM defines a standard way for accessing and manipulating HTML documents.
The DOM presents an HTML document as a tree-structure expressed as an XML document.
DOM is a language independent API, as it can be used in Java, .NET, JavaScript and many more. I will use it with JavaScript to for my sample code provided [...]

PHP Debugging Techniques - Part III

PHP Debugging Techniques – Part III

Use an IDE and Debugger
Most developers use some Integrated Development Environment (IDE) for the majority of their development, and I highly recommend that you do the same. Many PHP developer use Zend Studio and you only have to look at the feature list to see why they find it completely indispensible, especially for debugging. If you have not [...]

PHP Debugging Techniques - Part II

PHP Debugging Techniques – Part II

 2. Error Logging
Despite out best efforts, errors can (and do) occur in production environments. When these hiccups do arise we have to ensure that they are dealt with quickly, otherwise users (or even, gasp, clients) get angry.
A logging system can be very useful in tracking down bugs, especially when they happen in a production environment. [...]

PHP Debugging Techniques - Part I

PHP Debugging Techniques – Part I

There are many PHP debugging techniques that can save you countless hours when coding as error reporting, using print statements etc. Let’s go through a little detail of these techniques.
Error Messages
Error messages are your first line of defense as a developer. You don’t want to be developing code in PHP on a server that is [...]

Crystal report tutorial - VS 2005

Crystal report tutorial – VS 2005

A very good book on using Crystal reports in Visual Studio 2005. many small and minute things are discussed in this book.
VS2005 Walkthroughs Crystal Reports

Crystal Report Viewer width – Visual Studio

Crystal Report Viewer width – Visual Studio

By default Crystal report viewer width is fixed according to it toolbar, but changes due to amount of data present in the report. And the width is not editable (as it is seen). Because of this reason if a crystal report has good amount of data then it goes past page width and disturbs the [...]

The maximum report processing jobs limit configured by your system administrator has been reached.

The maximum report processing jobs limit configured by your system administrator has been reached.

call Close or Dispose method at the end so the reporting engine remove the report entry from its queue.

Opening hyperlink in a new window - Crystal Reports

Opening hyperlink in a new window – Crystal Reports

what to do when we want a hyperlink to open in a new window. This seems quite easy in any programming lanuage, but what to do when we want the same functionality in a crystal report.
It is almost the same as with webpages. create formula field for and at the end just add
"target=new;" e.g [...]

How to get open Windows in MFC

How to get open Windows in MFC

Hi, i have very little experience in MFC and VC++. I was developing a small project, during development i need to view the list of all opened windows in my explorer. i read somewhere and like to post the solution of this only for you
It is very simple. here is the example by [...]

How to change Contact US page in Joomla

How to change Contact US page in Joomla

Very easy steps to change it.

Go to administration section.
Click "Components" -> "Contacts" -> "Manage Contacts"
Here you can add/edit/delete contacts.

Enjoy the great php CMS…

Change file upload size limit in PHP/MySQL

Change file upload size limit in PHP/MySQL

In php.ini, this is the one:
upload_max_filesize
However, change only this line won’t help you to restore big db, so you have to setup some other factors as well Try these different settings in C:\wamp\bin\apache\apache2.2.6\bin\php.ini Find: post_max_size = 8M upload_max_filesize = 2M [...]

TCP/IP PROTOCOL

TCP/IP PROTOCOL

For many years, the technical literature on protocol architectures was dominated by discussions related to OSI and to the development of protocols and services at each layer. Throughout the 1980s, the belief was widespread that OSI would come to dominate commercially, both over architectures such as IBM’s SNA, as well as over competing multivendor schemes [...]

Global System for Mobile Communications (GSM)

Global System for Mobile Communications (GSM)

•Designed to be a digital (wide area) wireless network.
• Driven by European telecom manufacturers, operators, and standardization committees
• Very widely used around the world
GSM Features
1.Service portability
• Mobile can be used in any of the participating countries with international roaming and standardized numbering & dialing (but possibly at different rates!) [...]

Cellular Digital Packet Data (CDPD)

Cellular Digital Packet Data (CDPD)

In 1992, AT&T Wireless Services developed cellular digital packet data (CDPD) protocol, a data-only protocol that (re-)uses the AMPS or IS-136 network. Packets (typically some 1.5 kilobytes) use vacant cellular channels – either an assigned channel or between calls.
CDPD does not communicate with the underlying network (but does utilize knowledge of this networks channel assignment [...]

How to set border of CDialog

How to set border of CDialog

I am new in MFC. I put some time to draw a border around a Dialog in MFC application. Here is the solution that i found. It is very simple for any level of programmer.
Follow just three simple steps.
Step1:
Add OnCtlColor() method in your Message map like:-
BEGIN_MESSAGE_MAP(CDATToSWFDlg, CTrayDialog) ON_WM_CTLCOLOR() [...]

RGB-to-Hex Conversion

RGB-to-Hex Conversion

Question is: How do I convert RGB values of a color to a hexadecimal string?
The algorithm is as follows: make sure that RGB values are in the range 0…255, convert RGB values to hex strings, and then merge the three strings. Here is a script that does this conversion:
function RGBtoHex(R,G,B) [...]

charachter validation and count for a textbox - Javascript

charachter validation and count for a textbox – Javascript

Here I have provided a solution to put a counter for a textbox, that can be updated as each character typed into the textbox. This script will also validate the maximum character length allowed for a textbox. This script will also work when anyone copy/paste the text into the textbox. Textbox can be either single [...]

Enable/Disable DIV tags through Javascript

Enable/Disable DIV tags through Javascript

Copy/Paste following javascript code snippet.
<script type="text/javascript"> function toggleAlert() { toggleDisabled(document.getElementById("content")); } function toggleDisabled(el) { try { el.disabled = el.disabled ? [...]

Changing the background color of a dialog

Changing the background color of a dialog

If you want to change the background color of your dialog box, it is a very simple.
In your CTestDlg header file, declare a member variable from CBrush:
class CTestDlg : public CDialog{…protected: CBrush m_brush;…};
Then, add this line in the OnInitDialog function:
BOOL CTestDlg::OnInitDialog(){ … m_brush.CreateSolidBrush(RGB(255, 255, 255));
// color white brush …
}
Finally do this on the ID_CTLCOLOR [...]

Return the value for the specific attribute using XPathNodeIterator

Return the value for the specific attribute using XPathNodeIterator

I will use the following XML document in the example below.
<? xml version="1.0" encoding="utf-8" ?> < users > < user FirstName ="Tom" LastName ="Adams" Age ="23" /> < user FirstName ="Jhon" LastName ="Brams" Age ="17" /> [...]