<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>eTechTips</title>
	<atom:link href="http://www.etechtips.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.etechtips.com</link>
	<description>Your Technical resource</description>
	<lastBuildDate>Wed, 03 Mar 2010 22:59:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Printing background Images in Firefox</title>
		<link>http://www.etechtips.com/2010/03/03/printing-background-images-in-firefox/</link>
		<comments>http://www.etechtips.com/2010/03/03/printing-background-images-in-firefox/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 22:59:59 +0000</pubDate>
		<dc:creator>ecdown</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.etechtips.com/?p=86</guid>
		<description><![CDATA[In an effort to save toner/ink, some browsers shut off the ability to print the background images and colors.
In Firefox, if you go to File-&#62;&#8221;Page setup&#8221;, you can go to the &#8220;Format &#38; Options&#8221; tab and click the &#8220;Print Background (Colors and Images)&#8221; box.
In Internet Explorer, you need to go to Tools-&#62;&#8221;Internet Options&#8221; which will [...]]]></description>
			<content:encoded><![CDATA[<p>In an effort to save toner/ink, some browsers shut off the ability to print the background images and colors.</p>
<p>In Firefox, if you go to File-&gt;&#8221;Page setup&#8221;, you can go to the &#8220;Format &amp; Options&#8221; tab and click the &#8220;Print Background (Colors and Images)&#8221; box.</p>
<p>In Internet Explorer, you need to go to Tools-&gt;&#8221;Internet Options&#8221; which will bring up a dialog box.  Select the Advanced tab and scroll down in the Settings window until you find the heading &#8220;Printing&#8221; and select the checkbox next to &#8220;Print background colors and Images&#8221;.</p>
<p>Remember to undo this if you want to conserve ink/toner.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.etechtips.com/2010/03/03/printing-background-images-in-firefox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Capturing the screen in Windows</title>
		<link>http://www.etechtips.com/2009/11/13/capturing-the-screen-in-windows/</link>
		<comments>http://www.etechtips.com/2009/11/13/capturing-the-screen-in-windows/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 17:19:59 +0000</pubDate>
		<dc:creator>techtipse</dc:creator>
				<category><![CDATA[Utilities]]></category>

		<guid isPermaLink="false">http://www.etechtips.com/?p=74</guid>
		<description><![CDATA[For the longest time, I thought the &#8220;Print Screen&#8221; or &#8220;PrtScr&#8221; Key on my keyboard was a throw back to much older computers with sheet fed dot matrix printers and would just print out the current Dos command shell.
Once I figured out how to use it in windows, it has become an invaluable tool.
I used [...]]]></description>
			<content:encoded><![CDATA[<p>For the longest time, I thought the &#8220;Print Screen&#8221; or &#8220;PrtScr&#8221; Key on my keyboard was a throw back to much older computers with sheet fed dot matrix printers and would just print out the current Dos command shell.</p>
<p>Once I figured out how to use it in windows, it has become an invaluable tool.</p>
<p>I used to create presentations of source code issues.  It was a great help to be able to grab a copy of the screen and place it in a Powerpoint slide or Word Doc.</p>
<p>If you need a complete screen capture or even just the current window, here is what you can do.</p>
<p>If you need to capture the complete screen, press the &#8220;Print Screen&#8221; button located near the top of the keyboard with the scroll lock or Pause key.    It may seem like nothing has happened, but the complete image of your current desktop has been saved into the clipboard in windows.</p>
<p>If you want to just capture the current window, make sure the window you want is active and press the  Alt and &#8220;Print Screen&#8221; keys together.</p>
<p>Now open Paint, MS Word or any other program capable of handling images, and type Ctrl-V.  This will take the image that has been captured into memory and place it in the program.  Now you can manipulate the image to crop it or use it in your document.</p>
<p>This is a built in function of the MS Windows Operating system.</p>
<p>If you need more control there are other applications that can let you capture portions of the screen at any time and create a file with a simple keystroke, such as <a href="http://www.techsmith.com/screen-capture.asp">SnagIt!</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.etechtips.com/2009/11/13/capturing-the-screen-in-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java formatting a number with leading zeroes</title>
		<link>http://www.etechtips.com/2009/07/17/java-formatting-a-number-with-leading-zeroes/</link>
		<comments>http://www.etechtips.com/2009/07/17/java-formatting-a-number-with-leading-zeroes/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 05:10:56 +0000</pubDate>
		<dc:creator>ecdown</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[formatting]]></category>

		<guid isPermaLink="false">http://www.etechtips.com/?p=53</guid>
		<description><![CDATA[Recently, I had a Java project that needed to encode a set of numbers and I needed a fixed number of digits used for each number.  I found the DecimalFormat class a good solution for my needs.
Here is a snippet of code to show a simple way to format a number with a fixed [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, I had a Java project that needed to encode a set of numbers and I needed a fixed number of digits used for each number.  I found the DecimalFormat class a good solution for my needs.</p>
<p>Here is a snippet of code to show a simple way to format a number with a fixed number of digits.</p>
<pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%"><code>import java.text.DecimalFormat;

class TestEncoder
{
        public static void main(String[] args)
        {
                // This program expects one integer
                // argument and places it in the num1
                // variable. This program is not very
                // robust as to watch for no arguments
                // or to check if the argument is not
                // an integer.
                String num1 = args[0];
                String output;

                // This creates the Decimal Format instance
                // and assigns the formatting that we want
                // to use, in this case three characters .
                DecimalFormat dfmt =
                             new DecimalFormat(&quot;000&quot;);

                // This does the work of formatting the number
                // passed in on the command line to be at least
                // three digits.
                output = dfmt.format(new Integer(num1));

                // This just displays the results of the
                // dfmt.format(new Integer(num1)) command.
                System.out.println(&quot;Output: &quot; + output);
}
}
</code></pre>
<p>The Decimal format allows for many more formatting options for numbers.</p>
<p>Make sure to look a the API docs for the version of Java that you are using:<br />
http://java.sun.com/j2se/1.5.0/docs/api/java/text/DecimalFormat.html</p>
]]></content:encoded>
			<wfw:commentRss>http://www.etechtips.com/2009/07/17/java-formatting-a-number-with-leading-zeroes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable 30 second skip with Comcast DVR</title>
		<link>http://www.etechtips.com/2009/07/15/enable-30-second-skip-with-comcast-dvr/</link>
		<comments>http://www.etechtips.com/2009/07/15/enable-30-second-skip-with-comcast-dvr/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 18:40:33 +0000</pubDate>
		<dc:creator>ecdown</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Utilities]]></category>

		<guid isPermaLink="false">http://www.etechtips.com/?p=50</guid>
		<description><![CDATA[  Motorola DCT6412 (Comcast DVR) 30-second skip
I have a Tivo and missed the 30 second skip that was available and I found that the same was available with the Comcast Cable remote.
1) Press the  button at the top of the remote to put it into Cable Box control mode.
2) Press and hold the [...]]]></description>
			<content:encoded><![CDATA[<p>  Motorola DCT6412 (Comcast DVR) 30-second skip</p>
<p>I have a Tivo and missed the 30 second skip that was available and I found that the same was available with the Comcast Cable remote.</p>
<p>1) Press the <Cable> button at the top of the remote to put it into Cable Box control mode.</p>
<p>2) Press and hold the <Setup> button until the <Cable> button blinks twice.</p>
<p>3) Type in the code 994. The <Cable> button will blink twice.</p>
<p>4) Press (do not hold) the <Setup> button</p>
<p>5) Type in the code 00173 (for 30 second Skip).</p>
<p>6) Press whatever button you want to map the skip, I used the help button as I have never used it myself.</p>
<p>Welcome to 30 second skipping.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.etechtips.com/2009/07/15/enable-30-second-skip-with-comcast-dvr/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to split large files for emailing</title>
		<link>http://www.etechtips.com/2009/06/08/how-to-split-large-files-for-emailing/</link>
		<comments>http://www.etechtips.com/2009/06/08/how-to-split-large-files-for-emailing/#comments</comments>
		<pubDate>Tue, 09 Jun 2009 04:02:20 +0000</pubDate>
		<dc:creator>techtipse</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Utilities]]></category>

		<guid isPermaLink="false">http://etechtips.com/?p=38</guid>
		<description><![CDATA[I had to send a large file (about 100MB) to a client for analysis.  They did not have an anonymous ftp server so I had to figure a way to e-mail the file to them and then have a way to put it back together.
I found the split command very useful.  I use Linux when [...]]]></description>
			<content:encoded><![CDATA[<p>I had to send a large file (about 100MB) to a client for analysis.  They did not have an anonymous ftp server so I had to figure a way to e-mail the file to them and then have a way to put it back together.</p>
<p>I found the split command very useful.  I use Linux when I can but have installed <a href="http://www.cygwin.com">Cygwin</a> on my Windows PC to get the same functionality.</p>
<p>Here is a way to break the file into 5 megabyte chunks:</p>
<pre># split -b 8m veryLargeInputFile</pre>
<p>This instance splits veryLargeInputFile 8MB segments named xaa xab xac&#8230;xap.</p>
<p>Now put the file back together  at the distant end:</p>
<pre># cat xaa xab xac xad xae xaf xag xah xai xaj &gt; veryLargeInputFile</pre>
<p>or</p>
<pre># cat * &gt;veryLargeInputFile</pre>
<p><strong>Note: </strong>ensure xa* are the only files in the directory when using the wildcard<br />
For ASCII files: Split lines &#8212; This example splits a document into 1000 line segments.</p>
<pre># split -l 1000 veryLargeTextFile</pre>
<p>Use the same process to put the file back together again.</p>
<p><strong>Note: </strong>For larger files, find a ftp server or make your filesize increments bigger.</p>
<p>Split options</p>
<p>-b ##   &#8212; replace ## with the number of bytes you want in a file</p>
<p>-C ##   &#8212; replace ## with the number of SIZE bytes of lines per output file</p>
<p>-l ##     &#8212; replace ## with the number of lines per file.</p>
<p>-d          &#8212; use numeric suffixes for output files instead of alphabetic</p>
]]></content:encoded>
			<wfw:commentRss>http://www.etechtips.com/2009/06/08/how-to-split-large-files-for-emailing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Welcome to eTechTips</title>
		<link>http://www.etechtips.com/2009/05/27/welcome-to-etechtips/</link>
		<comments>http://www.etechtips.com/2009/05/27/welcome-to-etechtips/#comments</comments>
		<pubDate>Thu, 28 May 2009 04:42:31 +0000</pubDate>
		<dc:creator>ecdown</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://etechtips.com/?p=27</guid>
		<description><![CDATA[Say goodbye to the bouncing ball!
As this site has been close to 10 years in the making, it is time to say goodbye to the basic flash animation that I started with on the main page.
So feel free to ask questions or give me suggestions for topics.
]]></description>
			<content:encoded><![CDATA[<p>Say goodbye to the bouncing ball!</p>
<p>As this site has been close to 10 years in the making, it is time to say goodbye to the basic flash animation that I started with on the main page.</p>
<p>So feel free to ask questions or give me suggestions for topics.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.etechtips.com/2009/05/27/welcome-to-etechtips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Variable Argument lists in functions for C and C++</title>
		<link>http://www.etechtips.com/2009/05/26/using-variable-argument-lists-in-functions-for-c/</link>
		<comments>http://www.etechtips.com/2009/05/26/using-variable-argument-lists-in-functions-for-c/#comments</comments>
		<pubDate>Wed, 27 May 2009 03:18:37 +0000</pubDate>
		<dc:creator>ecdown</dc:creator>
				<category><![CDATA[C/C++]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://etechtips.com/?p=7</guid>
		<description><![CDATA[Using Variable Argument lists in functions for C\C++
In C there are times when you may want to have a variable amount of arguments passed into a function.  This can be accomplished when you pass the ellipses(&#8230;)  in as the last argument on your function.  The ellipses ,(&#8230;),  stands for zero  or more arguments.
There are a [...]]]></description>
			<content:encoded><![CDATA[<p>Using Variable Argument lists in functions for C\C++</p>
<p>In C there are times when you may want to have a variable amount of arguments passed into a function.  This can be accomplished when you pass the ellipses(&#8230;)  in as the last argument on your function.  The ellipses ,(&#8230;),  stands for zero  or more arguments.<br />
There are a set of functions available to handle accessing this data and making it available to your function.</p>
<p>The source code example displays a version of the code for a printf like function and how to handle the optional arguments.</p>
<p>One note is that the arguments passed in to this function are not typed.  The handling of the argument depends on either a specific type passed in(ints only) or as is the case of the example, a formatted string to define the types of the arguments. What this means is that if you pass random sets of arguments, (such as ints, strings,chars, floats) there is no data type that is directly associated to the variable being passed in.</p>
<p>Required include file<br />
#include &lt;stdarg.h&gt;<br />
/* Old include &lt;varargs.h&gt; From before ISO C standard, GNU C compilers still support this */</p>
<p>Available functions:<br />
Macro: va_start(va_list , last-required argument)<br />
This sets up the pointer for va_list with the avaiable argument list.</p>
<p>Macro: va_arg(va_list, type)</p>
<p>This returns the value of the next argument and modifies the va_list argument<br />
to point to the subsequent(next) argument.  The type of the value returned by<br />
va_arg is type as specified in the call. type must be a self promoting type<br />
not char or short int) that matches the type of the actual argument.</p>
<p>Macro: va_end(va_list)</p>
<p>This ends the processing of the va_list element and subsequent va_arg calls<br />
may no longer work.  Note: In the GNU C library implementation this does nothing<br />
and is used for portability.</p>
<p>Sample Function Call:</p>
<pre style="border: 1px dashed #999999; padding: 5px; overflow: auto; font-family: Andale Mono,Lucida Console,Monaco,fixed,monospace; color: #000000; background-color: #eeeeee; font-size: 12px; line-height: 14px; width: 100%;"><code>  int int1 = 1;

    char char1 = "s";

    char *str1 = "test";

    /* Sample function call. */
    ecdprintf("Int=%d Char=%c String=%s\n",int1,char1,str1);

Sample Code follows:

int ecdprintf(const char *pstr, ...)

{
    const char *lstr;
    va_list argp;
    int lint;
    char *lchar;
    char strarr[255];

    /* This is the start of vararg processing. The first argument is the
         container argument of the vararg list and the second argument
         is the last fixed parameter passed into the function. */

    va_start(argp, fmt);
    for(lstr = pstr; *lstr = '\0'; lstr++)
    {
        if (*lstr != '%')
        {
            putchar(*lstr);
            continue;
        }

        switch(*++lstr)
        {
            case 'd':
                i = va_arg(argp,int);
                s = itoa(i,strarr, 10);
                putchar(i);
                break;
            case 'c':
                i = va_arg(argp, int);
                putchar(i);
                break;
             case 's':
                 lchar = va_arg(argp,char *);
                 fputs(lchar,stdout);
                 break;
              case 'x':
                 i = va_arg(argp,int);
                 s = itoa(i, fmtbuf, 16);
                 fputs(lchar, stdout);
                 break;
               case '%':
                  putchar('%');
                  break;

               default:
                    break;

             }

    }

    va_end(argp);

    }

}
</code></pre>
<p>This example created the a simple printf like function using characters within the string to let the function know how to deal with the extra variables used.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.etechtips.com/2009/05/26/using-variable-argument-lists-in-functions-for-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Welcome To eTechtips &#8211; Day One</title>
		<link>http://www.etechtips.com/2009/05/26/welcome-to-etechtips-day-one/</link>
		<comments>http://www.etechtips.com/2009/05/26/welcome-to-etechtips-day-one/#comments</comments>
		<pubDate>Tue, 26 May 2009 12:49:52 +0000</pubDate>
		<dc:creator>techtipse</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://etechtips.com//?p=1</guid>
		<description><![CDATA[Welcome to day one of the revamped eTechtips informational blog.
Please feel free to request information about any topics that interest you.
]]></description>
			<content:encoded><![CDATA[<p>Welcome to day one of the revamped eTechtips informational blog.</p>
<p>Please feel free to request information about any topics that interest you.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.etechtips.com/2009/05/26/welcome-to-etechtips-day-one/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
