<?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>bencic.net</title>
	<atom:link href="http://bencic.net/htdocs/feed" rel="self" type="application/rss+xml" />
	<link>http://bencic.net/htdocs</link>
	<description>a day in the life of bencic</description>
	<lastBuildDate>Fri, 21 May 2010 23:53:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Booting and Installing Ubuntu Linux LiveCD ISO from the grub2 menu</title>
		<link>http://bencic.net/htdocs/2010/05/22/booting-and-installing-ubuntu-linux-livecd-iso-from-the-grub2-menu</link>
		<comments>http://bencic.net/htdocs/2010/05/22/booting-and-installing-ubuntu-linux-livecd-iso-from-the-grub2-menu#comments</comments>
		<pubDate>Fri, 21 May 2010 23:05:15 +0000</pubDate>
		<dc:creator>John Bencic</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://bencic.net/htdocs/?p=98</guid>
		<description><![CDATA[Ubuntu 10.04 is just out and if your like me you will prefer to do a complete rebuild instead of attempting fate (upgrading). Chances are every 6 months or so you will need to burn yet another Iso image onto cd for the one off time of installing your system. I have setup my partitions [...]]]></description>
			<content:encoded><![CDATA[<p>Ubuntu 10.04 is just out and if your like me you will prefer to do a complete rebuild instead of attempting fate (upgrading).<br />
Chances are every 6 months or so you will need to burn yet another Iso image onto cd for the one off time of installing your system. </p>
<p><span id="more-98"></span> </p>
<p>I have setup my partitions where I have a 15GB / root partition and the remaining space being partitioned and mounted as /home. This allows me to easily reinstall without formatting my home drive and be practically back to where I left off prior to installing.   </p>
<p>This release is a little bit different as the previous version Ubuntu 9.10 installed the latest GRUB2 and with that, the ability to boot iso images without needing a cd. </p>
<p><strong>Steps to booting an ISO using GRUB2</strong></p>
<ul>
<li>First off we need to copy the iso onto you partition that won&#8217;t be being formatted. In my case this is my /home partition</li>
<li>Next reboot your computer and hold down &#8220;shift&#8221; to enter the grub boot menu.</li>
<li>assuming you have copied the iso image on the root of your partition ie I have copied mine to /home you may need to adjust the partition number and path. Enter the following in grub console mode
<ul>
<li>insmod ext2</li>
<li>set root=(hd0,7)</li>
<li>loopback loop /ubuntu-10.04-desktop-amd64.iso</li>
<li>linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/ubuntu-10.04-desktop-amd64.iso noeject noprompt &#8211;</li>
<li>initrd (loop)/casper/initrd.lz</li>
</ul>
</li>
<li>Your system should boot up into the LiveCD. once the system boots up and you start the installer you may notice the installer complains that it cannot make changes to the disk without having first unmounted all partitions. At first this proves difficult because the partition is being used to boot the iso remembering my /home partition will be left unformatted and has the iso on it. To fix this problem simply unmount the isodevice mount by opening a terminal an issuing the following command<br />
 &#8220;sudo umount -l -r -f /isodevice&#8221;</li>
</ul>
<p>This solution will save even more time in installing Linux. This solution can be taken one step further by creating a handy USB drive which can boot many different iso&#8217;s.  </p>
]]></content:encoded>
			<wfw:commentRss>http://bencic.net/htdocs/2010/05/22/booting-and-installing-ubuntu-linux-livecd-iso-from-the-grub2-menu/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Determine table size of all tables in a MSSQL database</title>
		<link>http://bencic.net/htdocs/2010/05/21/determine-table-size-of-all-tables-in-a-mssql-database</link>
		<comments>http://bencic.net/htdocs/2010/05/21/determine-table-size-of-all-tables-in-a-mssql-database#comments</comments>
		<pubDate>Fri, 21 May 2010 03:57:55 +0000</pubDate>
		<dc:creator>John Bencic</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://bencic.net/htdocs/?p=91</guid>
		<description><![CDATA[I often have a requirement to find the largest tables in a MSSQL database Microsoft provides a built in stored proc to find the the size of one table but no ease way to determine the sizes of all tables the &#8220;sp_spaceused&#8221; stored proc returns the following table results name: Table name for which space [...]]]></description>
			<content:encoded><![CDATA[<p>I often have a requirement to find the largest tables in a MSSQL database</p>
<p>Microsoft provides a built in stored proc to find the the size of one table but no ease way to determine the sizes of all tables</p>
<p>the &#8220;sp_spaceused&#8221; stored proc returns the following table results</p>
<ul>
<li>name: Table name for which space usage information was requested</li>
<li>rows: Number of rows existing in the table</li>
<li>reserved: Total amount of reserved space for table data and indexes</li>
<li>data: Amount of space used by table data</li>
<li>index_size: Amount of space used by table indexes</li>
<li>unused: Total amount of space reserved for table but no yet used</li>
</ul>
<p>below I have used a CURSOR to loop through each table a the database and return the results for all tables<br />
<span id="more-91"></span></p>
<pre class="brush: sql;">

DECLARE @dtTableSize TABLE
(
    Name varchar(100),
    Rows varchar(100),
    reserved varchar(50),
    data varchar(50),
    index_size varchar(50),
    unused varchar(50)
)

DECLARE @name varchar(1000)

DECLARE Size_Cursor CURSOR FOR 

select [name] from dbo.sysobjects
where  OBJECTPROPERTY(id, N'IsUserTable') = 1

OPEN Size_Cursor

FETCH NEXT FROM Size_Cursor INTO @name

WHILE (@@Fetch_Status &gt;= 0)
BEGIN
    INSERT  @dtTableSize EXEC sp_spaceused @name
    FETCH NEXT FROM Size_Cursor INTO @name
END

CLOSE Size_Cursor
DEALLOCATE Size_Cursor

Select * from @dtTableSize order by data desc
</pre>
]]></content:encoded>
			<wfw:commentRss>http://bencic.net/htdocs/2010/05/21/determine-table-size-of-all-tables-in-a-mssql-database/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows Server 2008 Core Commands</title>
		<link>http://bencic.net/htdocs/2010/05/13/windows-server-2008-core-commands</link>
		<comments>http://bencic.net/htdocs/2010/05/13/windows-server-2008-core-commands#comments</comments>
		<pubDate>Thu, 13 May 2010 01:15:54 +0000</pubDate>
		<dc:creator>John Bencic</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://bencic.net/htdocs/?p=47</guid>
		<description><![CDATA[A must have list of Windows Server 2008 Core commands · Set IP Address: &#60;Nic&#62; &#60;Dynamic or Static&#62; &#60;IP&#62; &#60;mask&#62; &#60;gateway&#62; o Netsh interface ip set address “Local Area Connection” static 192.168.10.10 255.255.255.0 192.168.10.1 · Set DNS &#60;dns server ip&#62; o Netsh interface ip set dnsserver “Local Area Connection” static 192.168.10.10 · Rename Computer: o [...]]]></description>
			<content:encoded><![CDATA[<p>A must have list of Windows Server 2008 Core commands</p>
<p>· Set IP Address: &lt;Nic&gt; &lt;Dynamic or Static&gt; &lt;IP&gt; &lt;mask&gt; &lt;gateway&gt;</p>
<p>o Netsh interface ip set address “Local Area Connection” static 192.168.10.10 255.255.255.0 192.168.10.1</p>
<p>· Set DNS &lt;dns server ip&gt;</p>
<p>o Netsh interface ip set dnsserver “Local Area Connection” static 192.168.10.10</p>
<p>· Rename Computer:</p>
<p>o Netdom renamecomputer &lt;computername&gt; /newname:&lt;newcomputername&gt;</p>
<p>· Join domain: please note paswordD should have two “D’s” because you are specifying a Domain password</p>
<p>o Netdom join &lt;computername&gt; /domain:&lt;FQDN&gt; /userD:&lt;domain admin&gt; /passwordD:&lt;domain password&gt; &lt;or “*”&gt;</p>
<p>· Enable Remote Administration<br />
<span id="more-47"></span><br />
o netsh firewall set service RemoteAdmin ENABLE</p>
<p>· Set Firewall</p>
<p>o Netsh firewall set icmpsetting 8 ENABLE</p>
<p>o Netsh firewall set opmode ENABLE</p>
<p>· Map Network Drive:</p>
<p>o net use [DriveLetter] \\Computername\ShareName<br />
DriveLetter = D: E: F: Whatever you have available. Please omit the brackets when defining the driveletter<br />
Configuration and installation</p>
<p>Task</p>
<p>Steps</p>
<p>Set the local administrative password</p>
<p>At a command prompt, type:</p>
<p>Net user administrator *</p>
<p>Join a computer to a domain</p>
<p>1.   At a command prompt, type on one line:</p>
<p>Netdom join %computername% /domain:&lt;domain&gt; /userd:&lt;domain&gt;\username&gt; /password:*</p>
<p>2.   Restart the computer.</p>
<p>Confirm that the domain has changed</p>
<p>At a command prompt, type:</p>
<p>Set</p>
<p>Remove a computer from a domain</p>
<p>At a command prompt, type:</p>
<p>Netdom remove</p>
<p>Add a user to the local Administrators group.</p>
<p>At a command prompt, type:</p>
<p>Net localgroup Administrators /add &lt;domain&gt;\&lt;username&gt;</p>
<p>Remove a user from the local Administrators group</p>
<p>At a command prompt, type:</p>
<p>Net localgroup Administrators /delete &lt;domain\username&gt;</p>
<p>Add a user to the local computer</p>
<p>At a command prompt, type:</p>
<p>Net user &lt;domain\user name&gt; /add *</p>
<p>Add a group to the local computer</p>
<p>At a command prompt, type:</p>
<p>Net localgroup &lt;group name&gt; /add</p>
<p>Change the name of a domain-joined computer</p>
<p>At a command prompt, type:</p>
<p>Netdom renamecomputer %computername% /NewName:&lt;new computer name&gt; /userd:&lt;domain\username&gt; /password:*</p>
<p>Confirm the new computer name</p>
<p>At a command prompt, type:</p>
<p>Set</p>
<p>Change the name of a computer in a work group</p>
<p>1.   At a command prompt, type:</p>
<p>Netdom renamecomputer &lt;currentcomputername&gt; /NewName:&lt;newcomputername&gt;</p>
<p>2.   Restart the computer.</p>
<p>Disable paging file management</p>
<p>At a command prompt, type:</p>
<p>Wmic computersystem where name=&#8221;&lt;computername&gt;&#8221; set AutomaticManagedPagefile=False</p>
<p>Configure the paging file</p>
<p>At a command prompt, type:</p>
<p>Wmic pagefileset where name=”&lt;path/filename&gt;” set InitialSize=&lt;initialsize&gt;,MaximumSize=&lt;maxsize&gt;</p>
<p>Where:</p>
<p>path/filename is the path to and name of the paging file</p>
<p>initialsize is the starting size of the paging file in bytes.</p>
<p>maxsize is the maximum size of the page file in bytes.</p>
<p>Change to a static IP address.</p>
<p>1.   At a command prompt, type:</p>
<p>Ipconfig /all</p>
<p>2.   Record the relevant information or redirect it to a text file (ipconfig /all &gt;ipconfig.txt).</p>
<p>3.   At a command prompt, type:</p>
<p>Netsh interface ipv4 show interfaces</p>
<p>4.   Verify that there is an interface list.</p>
<p>5.   At a command prompt, type:</p>
<p>Netsh interface ipv4 set address name &lt;ID from interface list&gt; source=static address=&lt;preferred IP address&gt; gateway=&lt;gateway address&gt;</p>
<p>6.   Verify by typing Ipconfig /all at a command prompt and checking that DHCP enabled is set to No.</p>
<p>Set a static DNS address.</p>
<p>1.   At a command prompt, type:</p>
<p>Netsh interface ipv4 add dnsserver name=&lt;name of primary DNS server&gt; address=&lt;IP address of the primary DNS server&gt; index=1</p>
<p>2.   At a command prompt, type:</p>
<p>Netsh interface ipv4 add dnsserver name=&lt;name of secondary DNS server&gt; address=&lt;IP address of the secondary DNS server&gt; index=2</p>
<p>3.   Repeat as appropriate to add additional servers.</p>
<p>4.   Verify by typing Ipconfig /all and checking that all the addresses are correct.</p>
<p>Change to a DHCP-provided IP address from a static IP address.</p>
<p>1.   At a command prompt, type:</p>
<p>Netsh interface ipv4 set address name=&lt;IP address of local system&gt; source=DHCP</p>
<p>2.   Verify by typing Ipconfig /all and checking that DCHP enabled is set to Yes.</p>
<p>Activate the server locally.</p>
<p>At a command prompt, type:</p>
<p>Slmgr.vbs -ato</p>
<p>Activate the server remotely.</p>
<p>1.   At a command prompt, type:</p>
<p>Cscript slmgr.vbs -ato &lt;servername&gt; &lt;username&gt; &lt;password&gt;</p>
<p>2.   Retrieve the GUID of the computer by typing Cscript slmgr.vbs -did</p>
<p>3.   Type Cscript slmgr.vbs -dli &lt;GUID&gt;</p>
<p>4.   Verify that License status is set to Licensed (activated).</p>
<p>Networking and firewall</p>
<p>Task</p>
<p>Steps</p>
<p>Configure your server to use a proxy server.</p>
<p>At a command prompt, type:</p>
<p>Netsh Winhttp set proxy &lt;servername&gt;:&lt;port number&gt;</p>
<p>Configure your server to bypass the proxy for internet addresses.</p>
<p>At a command prompt, type:</p>
<p>Netsh winttp set proxy &lt;servername&gt;:&lt;port number&gt;bypass-list=&#8221;&lt;local&gt;&#8221;</p>
<p>Display or modify IPSEC configuration.</p>
<p>At a command prompt, type:</p>
<p>Netsh ipsec</p>
<p>Display or modify NAP configuration.</p>
<p>At a command prompt, type:</p>
<p>Netsh nap</p>
<p>Display or modify IP to physical address translation.</p>
<p>At a command prompt, type:</p>
<p>Arp</p>
<p>Display or configure the local routing table.</p>
<p>At a command prompt, type:</p>
<p>Route</p>
<p>View or configure DNS server settings.</p>
<p>At a command prompt, type:</p>
<p>Nslookup</p>
<p>Display protocol statistics and current TCP/IP network connections.</p>
<p>At a command prompt, type:</p>
<p>Netstat</p>
<p>Display protocol statistics and current TCP/IP connections using NetBIOS over TCP/IP (NBT).</p>
<p>At a command prompt, type:</p>
<p>Nbtstat</p>
<p>Display hops for network connections.</p>
<p>At a command prompt, type:</p>
<p>Pathping</p>
<p>Trace hops for network connections.</p>
<p>At a command prompt, type:</p>
<p>Tracert</p>
<p>Display the configuration of the multicast router.</p>
<p>At a command prompt, type:</p>
<p>Mrinfo</p>
<p>Enable remote administration of the firewall.</p>
<p>At a command prompt, type:</p>
<p>Netsh firewall set service remoteadmin enable</p>
<p>Updates, error reporting, and feedback</p>
<p>Task</p>
<p>Steps</p>
<p>Install an update.</p>
<p>At a command prompt, type:</p>
<p>Wusa &lt;update&gt;.msu /quiet</p>
<p>Remove an update.</p>
<p>1.   Type at a command prompt:</p>
<p>Expand /f:* &lt;update&gt;.msu c:\test</p>
<p>2.   Navigate to c:\test\ and open &lt;update&gt;.xml in a text editor.</p>
<p>3.   In &lt;update&gt;.xml, replace Install with Remove and save the file.</p>
<p>4.   At a command prompt, type:</p>
<p>Pkgmgr /n:&lt;update&gt;.xml</p>
<p>Configure automatic updates.</p>
<p>At a command prompt:</p>
<p>· · To verify the current setting, type:</p>
<p>Cscript scregedit.wsf /AU /v</p>
<p>· · To enable automatic updates, type:</p>
<p>Cscript scregedit.wsf /AU /4</p>
<p>· · To disable automatic updates, type:</p>
<p>Cscript scregedit.wsf /AU /1</p>
<p>Enable error reporting.</p>
<p>At a command prompt:</p>
<p>· · To verify the current setting, type: ServerWerOptin /query</p>
<p>· · To automatically send detailed reports, type:</p>
<p>ServerWerOptin /detailed</p>
<p>· · To automatically send summary reports, type:</p>
<p>ServerWerOptin /summary</p>
<p>· · To disable error reporting, type: ServerWerOptin /disable</p>
<p>Participate in the Customer Experience Improvement Program (CEIP).</p>
<p>At a command prompt:</p>
<p>· · To verify the current setting, type:</p>
<p>ServerCEIPOptin /query</p>
<p>· · To enable CEIP, type:</p>
<p>ServerCEIPOptin /enable</p>
<p>· · To disable CEIP, type:</p>
<p>ServerCEIPOptin /disable</p>
<p>Services, processes, and performance</p>
<p>Task</p>
<p>Steps</p>
<p>List the running services.</p>
<p>At a command prompt, type either of the following:</p>
<p>· · Sc query</p>
<p>· · Net start</p>
<p>Start a service.</p>
<p>At a command prompt, type either of the following:</p>
<p>· · SC start &lt;service name&gt;</p>
<p>· · Net start &lt;service name&gt;</p>
<p>Stop a service.</p>
<p>At a command prompt, type either of the following:</p>
<p>· · SC stop &lt;service name&gt;</p>
<p>· · Net stop &lt;service name&gt;</p>
<p>Retrieve a list of running applications and associated processes.</p>
<p>At a command prompt, type:</p>
<p>Tasklist</p>
<p>Stop a process forcibly.</p>
<p>1.   Use the Tasklist command to retrieve the process ID (PID).</p>
<p>2.   At a command prompt, type:</p>
<p>Taskkill /PID &lt;process ID&gt;</p>
<p>Start Task Manager.</p>
<p>At a command prompt, type:</p>
<p>Taskmgr</p>
<p>Manage the performance counters and logging with commands such as typeperf, logman, relog, tracerprt.</p>
<p>See http://go.microsoft.com/fwlink/?LinkId=84872</p>
<p>Event logs</p>
<p>Task</p>
<p>Steps</p>
<p>List event logs.</p>
<p>At a command prompt, type:</p>
<p>Wevtutil el</p>
<p>Query events in a specified log.</p>
<p>At a command prompt, type:</p>
<p>Wevtutil qe /f:text &lt;log name&gt;</p>
<p>Export an event log.</p>
<p>At a command prompt, type:</p>
<p>Wevtutil epl &lt;log name&gt;</p>
<p>Clear an event log.</p>
<p>At a command prompt, type:</p>
<p>Wevtutil cl &lt;log name&gt;</p>
<p>Disk and file system</p>
<p>Task</p>
<p>Steps</p>
<p>Manage disk partitions.</p>
<p>For a complete list of commands, at a command prompt, type:</p>
<p>Diskpart /?</p>
<p>Manage software RAID.</p>
<p>For a complete list of commands, at a command prompt, type:</p>
<p>Diskraid /?</p>
<p>Manage volume mount points.</p>
<p>For a complete list of commands, at a command prompt, type:</p>
<p>mountvol /?</p>
<p>Defragment a volume.</p>
<p>For a complete list of commands, at a command prompt, type:</p>
<p>Defrag /?</p>
<p>Convert a volume to the NTFS file system.</p>
<p>At a command prompt, type:</p>
<p>Convert &lt;volume letter&gt; /FS:NTFS</p>
<p>Compact a file.</p>
<p>For a complete list of commands, at a command prompt, type:</p>
<p>Compact /?</p>
<p>Administer open files.</p>
<p>For a complete list of commands, at a command prompt, type:</p>
<p>Openfiles /?</p>
<p>Administer VSS folders.</p>
<p>For a complete list of commands, at a command prompt, type:</p>
<p>Vssadmin /?</p>
<p>Administer the file system.</p>
<p>For a complete list of commands, at a command prompt, type:</p>
<p>Fsutil /?</p>
<p>Verify a file signature.</p>
<p>At a command prompt, type:</p>
<p>Sigverif /?</p>
<p>Take ownership of a file or folder.</p>
<p>For a complete list of commands, at a command prompt, type:</p>
<p>Icacls /?</p>
<p>Hardware</p>
<p>Task</p>
<p>Steps</p>
<p>Add a driver for a new hardware device.</p>
<p>1.   Copy the driver to a folder at %homedrive%\&lt;driver folder&gt;.</p>
<p>2.   At a command prompt, type:</p>
<p>pnputil -i -a %homedrive%\&lt;driver folder&gt;\&lt;driver&gt;.inf</p>
<p>Remove a driver for a hardware device.</p>
<p>1.   For a list of loaded drivers, at a command prompt, type:</p>
<p>Sc query type= driver</p>
<p>2.   At the command prompt, type:</p>
<p>Sc delete &lt;service_name&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://bencic.net/htdocs/2010/05/13/windows-server-2008-core-commands/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Questions to ask and what to look for when buying a House</title>
		<link>http://bencic.net/htdocs/2010/01/16/questions-to-ask-and-what-to-look-for-when-buying-a-house</link>
		<comments>http://bencic.net/htdocs/2010/01/16/questions-to-ask-and-what-to-look-for-when-buying-a-house#comments</comments>
		<pubDate>Fri, 15 Jan 2010 23:34:59 +0000</pubDate>
		<dc:creator>John Bencic</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://bencic.net/htdocs/?p=84</guid>
		<description><![CDATA[Like many others, Im always out on the lookout for some property bargains, however when I do find a house its so easy to get caught up with certain bling an forget all about the must have important features you really require in a house. I have put together a list of question to ask [...]]]></description>
			<content:encoded><![CDATA[<p>Like many others, Im always out on the lookout for some property bargains, however when I do find a house its so easy to get caught up with certain bling an forget all about the must have important features you really require in a house.</p>
<p>I have put together a list of question to ask when dealing with agents, these question are broken down in to two type; contact by Phone or contact Face to Face ie: at the property inspection or open house.</p>
<p><span id="more-84"></span></p>
<h4>Contacting the Agent by Phone Questions:</h4>
<ul>
<li>Location, address</li>
<li>any Strata Fees or is it torrens title</li>
<li>Council Rates</li>
<li>Facing (north)</li>
<li>Age of building</li>
<li>Size Sq meters</li>
<li>Parking, carport or lock up garage</li>
<li>Is is Tenanted, How Much</li>
<li>How long has it been on the market for</li>
</ul>
<h4>Inspecting the Property at an Open House Questions:</h4>
<ul>
<li>Expected price range</li>
<li>any Strata Fees or is it torrens title</li>
<li>Council Rates</li>
<li>Age of building</li>
<li>Size Sq meters</li>
<li>Tenanted How Much?</li>
<li>How long has it been on the market for</li>
<li>Why? What&#8217;s the Motivation for selling</li>
<li>Water Supply Common under Strata</li>
<li>Does it have GAS, Supply Common under Strata?</li>
<li>is there a Shared Laundry or private</li>
<li>Visitors Parking</li>
<li>Sewer Diagram (line)</li>
<li>any Contract or Easements allowing other access through block</li>
<li>Any up coming Developments in the area eg: a new Highway through the middle of the property</li>
</ul>
<h4>Things to consider when buying a property</h4>
<ul>
<li> affordability, can you really afford this</li>
<li>stamp duty</li>
<li>safety</li>
<li>nice neighborhood/visually appealing</li>
<li>good schools in the area</li>
<li>mature trees</li>
<li>walkablility</li>
<li>low traffic street or quiet cul de sac</li>
<li>low maintenance exterior</li>
<li>well-maintained</li>
<li>sufficient storage, bedrooms, bathrooms, garage space</li>
<li>easy access to highway and airport</li>
<li>closer to the kind of employment career that you do</li>
</ul>
<h4>Home Loan Questions</h4>
<ul>
<li>Setup Fee, it is deferred</li>
<li>Ongoing fees, monthly fees</li>
<li>can you make additional repayments</li>
<li>is there a redraw facility or offset account</li>
<li>can split fixed / variable interest</li>
<li>is there an Early Termination Payout what is the period %</li>
<li>redraw fee</li>
<li>Self Employed</li>
</ul>
<h4>What I look for when buying a home</h4>
<ul>
<li>Air-conditioning, I prefer ducted  aircon = reserve $10g&#8217;s to fit and install</li>
<li>kitchen large enough to have 3 people in it close to living room and dining = $20g&#8217;s to renovate</li>
<li>location, close to work schools and parks</li>
<li>prefer 1 extra bathroom = add $10g&#8217;s to renovate</li>
<li>3 bedroom, at least 2 built-ins = $1g per room to install built-ins</li>
<li>hallway storage space for blankets and towels</li>
<li>laundry large enough to install ironing board</li>
<li>potential for outside decking and Jacuzzi</li>
<li>area to place my treadmill and gym</li>
<li>garage or car space for at least two cars</li>
<li>place to store power tools eg a shed or in a garage</li>
<li>neighbours, high fences concealing views, no double story windows peering into yard</li>
<li>windows peering into neighbours windows</li>
<li>street light, loud exhausts taking off from the lights interrupt sleep</li>
<li>close to some shops, within 8 minutes walk</li>
<li>look for finishings, mouldings, down lights  etc.. $10g&#8217;s</li>
<li>total block size greater than 370sqms</li>
<li>no power lines or easements</li>
<li>remember add stamp duty to the price</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://bencic.net/htdocs/2010/01/16/questions-to-ask-and-what-to-look-for-when-buying-a-house/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a bootable WinPE iso image with all network drivers</title>
		<link>http://bencic.net/htdocs/2009/09/05/creating-a-bootable-winpe-iso-image-with-all-network-drivers</link>
		<comments>http://bencic.net/htdocs/2009/09/05/creating-a-bootable-winpe-iso-image-with-all-network-drivers#comments</comments>
		<pubDate>Sat, 05 Sep 2009 09:34:41 +0000</pubDate>
		<dc:creator>John Bencic</dc:creator>
				<category><![CDATA[IT Related]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Network Drivers]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[WinPE]]></category>

		<guid isPermaLink="false">http://bencic.net/htdocs/?p=58</guid>
		<description><![CDATA[Recently I had a requirement to create a bootable WinPE iso image, i looked around an thought there would be some kind of general community script around but could not find one. This requirement required that all network card drivers were installed and thus creating a one size fits all bootable ISO which could then [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I had a requirement to create a bootable WinPE iso image, i looked around an thought there would be some kind of general community script around but could not find one.</p>
<p>This requirement required that all network card drivers were installed and thus creating a one size fits all bootable ISO which could then be used to &#8220;net use&#8221; a remote network share and start the installation of Windows 2008.</p>
<p>This is the script I came up with. Its fairly simple. all you have to do is download the network drivers from the BTS download page here: <a href="http://driverpacks.net/driverpacks/windows/xp/x86/lan" target="_blank">http://driverpacks.net/driverpacks/windows/xp/x86/lan</a> you can also download eg mass storage drivers if required.</p>
<p><span id="more-58"></span></p>
<p>Requirements:</p>
<p>1. Download and install the Windows Automated Installation Kit form the Microsoft website.</p>
<p>2. download and extract the required drivers ie network drivers from the above link</p>
<p>3. Copy the contents of this script into a .bat file</p>
<p>4. modify the loaction of the drivers</p>
<p>5. run the script.</p>
<pre class="brush: vb;">

REM x86 or amd64

Set Arch=x86

Set PEBase=%userprofile%\Desktop\WinPE-%Arch%

Set Drivers=%userprofile%\Desktop\Drivers

if Exist &quot;%PEBase%&quot; goto :End

Set WAIKBase=c:\Program Files\Windows AIK

Set ImageX=&quot;%WAIKBase%\Tools\%Arch%\imagex.exe&quot;

Set PeImg=&quot;%WAIKBase%\Tools\PETools\peimg.exe&quot;

Set oscdimg=&quot;%WAIKBase%\Tools\PETools\oscdimg.exe&quot;

Echo.

Echo Copying basic PE to %PEBase%

Echo ======================================

call &quot;%WAIKBase%\Tools\PETools\copype.cmd&quot; %Arch% %PEBase%

cd /d %PEBase%

Echo.

Echo Mounting the basic wim to the mount directory under %PEBase%

Echo ===========================================================================

%ImageX% /mountrw winpe.wim 1 mount

Echo.

Echo Copying %ImageX% to %PEBase%\iso\

Echo ==========================================

copy %ImageX% %PEBase%\iso\

Echo.

Echo Installing Pachages

Echo ===================

%peimg% /install=WinPE-XML-Package %PEBase%\mount\windows

%peimg% /install=WinPE-HTA-Package %PEBase%\mount\windows

%peimg% /install=WinPE-WMI-Package %PEBase%\mount\windows

%peimg% /install=WinPE-Scripting-Package %PEBase%\mount\windows

%peimg% /list %PEBase%\mount\windows

Echo.

Echo Installing Drivers

Echo ==================

FOR /F %%a IN ('dir /s /b &quot;%Drivers%\*.inf&quot;') DO (%peimg% /inf=&quot;%%a&quot; %PEBase%\mount\windows)

Echo.

Echo Prepare the image for saving

Echo ============================

%peimg% /prep %PEBase%\mount /f

Echo.

Echo Save the image

Echo ==============

%ImageX% /unmount %PEBase%\mount /commit

Echo.

Echo Copying saved image to ISO directory

Echo ====================================

xcopy %PEBase%\winpe.wim %PEBase%\iso\sources\boot.wim /y

Echo.

Echo Creating ISO image

Echo ==================

%oscdimg% -n -h -b%PEBase%\etfsboot.com %PEBase%\iso %PEBase%\..\WinPE-%Arch%.iso

Echo.

Echo Cleaning up directories - Removing...

Echo =====================================

RD /s /q %PEBase%

pause

:End

exit
</pre>
]]></content:encoded>
			<wfw:commentRss>http://bencic.net/htdocs/2009/09/05/creating-a-bootable-winpe-iso-image-with-all-network-drivers/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configuring IIS 7 script with APPCMD &#8211; Altiris Script</title>
		<link>http://bencic.net/htdocs/2009/09/02/configuring-iis-7-script-with-appcmd-altiris-script</link>
		<comments>http://bencic.net/htdocs/2009/09/02/configuring-iis-7-script-with-appcmd-altiris-script#comments</comments>
		<pubDate>Tue, 01 Sep 2009 22:46:56 +0000</pubDate>
		<dc:creator>John Bencic</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[Altiris]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[WLogevents]]></category>

		<guid isPermaLink="false">http://bencic.net/htdocs/?p=53</guid>
		<description><![CDATA[Recently I was required to create a re-runable script which would configure an IIS web site and Application Pool. This script required to be re-runable to correct any inconsistencies from web server to web server. The delivery method was to use Altiris to  deploy to numerous servers at once. This script uses the Altitis WlogEvents.exe [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I was required to create a re-runable script which would configure an IIS web site and Application Pool. This script required to be re-runable to correct any inconsistencies from web server to web server.</p>
<p>The delivery method was to use Altiris to  deploy to numerous servers at once.</p>
<p>This script uses the Altitis WlogEvents.exe to pass back error and informational status to Altiris for collection and evaluation.</p>
<p>Although this configures HttpS and binds the site to an https IP address I am yet to configure the script to assign the correct Certificate to the site</p>
<p>Code Below&#8230;</p>
<p><span id="more-53"></span></p>
<pre class="brush: vb;">

REM Configure IIS Settings

Set AppPool=AppPoolName
Set WebSite=WebSiteName
Set IPAddress=IPAddressOfSite
Set managedPipelineMode=Integrated
Set enable32BitAppOnWin64=false
Set physicalPath=c:\InetPub\%WebSite%

Set APPCMD=&quot;%systemroot%\system32\inetsrv\APPCMD&quot;
Set WlogEvents=C:\Software\Installers\Altiris\WLogevent.exe

Call :Log %ERRORLEVEL% &quot;AppPool: %AppPool%&quot;
Call :Log %ERRORLEVEL% &quot;WebSite: %WebSite%&quot;
Call :Log %ERRORLEVEL% &quot;IPAddress: %IPAddress%&quot;

If Not Exist &quot;%physicalPath%&quot; mkdir &quot;%physicalPath%&quot;
Call :Log %ERRORLEVEL% &quot;Creating Directory if not exist: %physicalPath%&quot;

REM Create App Pool if not exists
%APPCMD% list AppPool &quot;%AppPool%&quot;
If %ERRORLEVEL% neq 0 ( Call :CreateAppPool )

REM enable32BitAppOnWin64
%APPCMD% Set APPPOOL /Apppool.name:%AppPool% /enable32BitAppOnWin64:%enable32BitAppOnWin64%
Call :Log %ERRORLEVEL% &quot;Setting enable32BitAppOnWin64 to %enable32BitAppOnWin64%&quot;

REM managedPipelineMode
%APPCMD% Set APPPOOL /Apppool.name:%AppPool% /managedPipelineMode:%managedPipelineMode%
Call :Log %ERRORLEVEL% &quot;Setting managedPipelineMode to %managedPipelineMode%&quot;

REM Configure Recycle pool time
%APPCMD% list apppool &quot;%AppPool%&quot; /config | findstr &quot;04:&quot;
If %ERRORLEVEL% neq 0 ( Call :ConfigRecyclePool )

REM Create WebSite if not exist
%APPCMD% list site &quot;%WebSite%&quot;
If %ERRORLEVEL% neq 0 ( Call :CreateWebSite )

REM Configure Bindings for Http
%APPCMD% list site  &quot;%WebSite%&quot; /text:*|findstr &quot;bindingInformation:&quot;&quot;%IPAddress%:80
If %ERRORLEVEL% NEQ 0 ( Call :ConfBindingsHttp ) else (
Call :Log %ERRORLEVEL% &quot;Skipping Existing protocol='http',bindingInformation='%IPAddress%:80:&quot;
)

REM Configure Bindings for Https
%APPCMD% list site  &quot;%WebSite%&quot; /text:*|findstr &quot;bindingInformation:&quot;&quot;%IPAddress%:443
If %ERRORLEVEL% NEQ 0 ( Call :ConfBindingsHttps ) else (
Call :Log %ERRORLEVEL% &quot;Skipping Existing protocol='https',bindingInformation='%IPAddress%:443:&quot;
)

REM Change the physical Path location of files
%APPCMD% set site /site.name:&quot;%WebSite%&quot; /[path='/'].[path='/'].physicalPath:&quot;%physicalPath%&quot;  /commit:apphost
Call :Log %ERRORLEVEL% &quot;physicalPath: %physicalPath%&quot;

REM Assign site to app pool %AppPool%
%APPCMD% set site /site.name:&quot;%WebSite%&quot; /[path='/'].applicationPool:%AppPool% /commit:apphost
Call :Log %ERRORLEVEL% &quot;Assign %WebSite% to applicationPool: %AppPool%&quot;

Call :Log %ERRORLEVEL% &quot;End of Script&quot;
Exit

:CreateAppPool
%APPCMD% set config  -section:system.applicationHost/applicationPools /+&quot;[name='%AppPool%']&quot; /commit:apphost
Call :Log %ERRORLEVEL% &quot;Creating App Pool %AppPool%&quot;
GOTO:EOF

:CreateWebSite
%APPCMD% add site /name:&quot;%WebSite%&quot; /physicalPath:&quot;%physicalPath%&quot; /bindings:&quot;http/%IPAddress%:80:&quot;
Call :Log %ERRORLEVEL% &quot;Creating Web Site %WebSite% to %physicalPath% with bindings http/%IPAddress%:80&quot;
GOTO:EOF

:ConfBindingsHttp
%APPCMD% set site /site.name:&quot;%WebSite%&quot; /+bindings.[protocol='http',bindingInformation='%IPAddress%:80:'] /commit:apphost
Call :Log %ERRORLEVEL% &quot;protocol='http',bindingInformation='%IPAddress%:80:&quot;
GOTO:EOF

:ConfBindingsHttps
%APPCMD% set site /site.name:&quot;%WebSite%&quot; /+bindings.[protocol='https',bindingInformation='%IPAddress%:443:'] /commit:apphost
Call :Log %ERRORLEVEL% &quot;protocol='https',bindingInformation='%IPAddress%:443:&quot;
GOTO:EOF

:ConfigRecyclePool
Call :GenerateRecycleTime
%APPCMD% Set APPPOOL /Apppool.name:%AppPool% /+recycling.periodicRestart.schedule.[value='%RANDTIME%']
Call :Log %ERRORLEVEL% &quot;Apppool.name:%AppPool% /+recycling.periodicRestart.schedule.[value='%RANDTIME%']&quot;
%APPCMD% set config  -section:system.applicationHost/applicationPools /[name='%AppPool%'].recycling.periodicRestart.time:&quot;00:00:00&quot;  /commit:apphost
Call :Log %ERRORLEVEL% &quot;applicationPools /[name='%AppPool%'].recycling.periodicRestart.time:00:00:00&quot;
GOTO:EOF

:GenerateRecycleTime
REM Random Time - 4am
SET RANDTIME=%time:~7,1%
SET RANDTIME=%RANDTIME%%time:~10%
IF %RANDTIME% GTR 59 GOTO :GenerateRecycleTime
SET RANDTIME=04:%RANDTIME%:00
GOTO:EOF

:Log
If %1 neq 0 (Set Level=3) else (Set Level=1)
%WlogEvents% -id:%ID% -n:&quot;ConfigIIS&quot; -c:&quot;%1&quot; -l:%Level% -ss:%2
GOTO:EOF
</pre>
]]></content:encoded>
			<wfw:commentRss>http://bencic.net/htdocs/2009/09/02/configuring-iis-7-script-with-appcmd-altiris-script/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Repository for OzMyth is Back &#8230;</title>
		<link>http://bencic.net/htdocs/2008/09/20/repository-for-ozmyth-is-back</link>
		<comments>http://bencic.net/htdocs/2008/09/20/repository-for-ozmyth-is-back#comments</comments>
		<pubDate>Fri, 19 Sep 2008 23:42:02 +0000</pubDate>
		<dc:creator>John Bencic</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://bencic.net/htdocs/?p=42</guid>
		<description><![CDATA[Well it been a while now and have had many people (friends) asking when my OzMyth repository will be up and running initially I started this as a mechanism of helping my friends out (and also so I wouldn&#8217;t have to keep spending my weekends rebuilding their MythTV boxes over and over again. What I&#8217;ve [...]]]></description>
			<content:encoded><![CDATA[<p>Well it been a while now and have had many people (friends) asking when my OzMyth repository will be up and running</p>
<p>initially I started this as a mechanism of helping my friends out (and also so I wouldn&#8217;t have to keep spending my weekends rebuilding their MythTV boxes over and over again.</p>
<p>What I&#8217;ve done is simply created some metapackages to assist in the installation of MythTV as well as some configuration scripts</p>
<p>To use the repository simply add the following lines to you /etc/apt/sources.list file</p>
<p><strong>Method 1</strong></p>
<ol>
<li>open a terminal</li>
<li>type in &#8220;<em>sudo gedit /etc/apt/sources.list</em>&#8221; to bring up the sources repository listing</li>
<li>add the following code<em>deb http://bencic.net/repo/ hardy main<br />
deb http://packages.medibuntu.org/ hardy free non-free</em></li>
<li>type in &#8220;<em>sudo aptitude update</em>&#8221; to refresh the apt packages listing</li>
</ol>
<p><strong>Method 2</strong></p>
<ol>
<li>open a terminal</li>
<li>type in<br />
&#8220;<em>wget http://bencic.net/repo/pool/hardy/ozmyth-repo_2.0_all.deb</em>&#8220;</li>
<li>type in<br />
&#8220;<em>dpkg -i ozmyth-repo_2.0_all.deb</em>&#8220;</li>
<li>type in &#8220;<em>sudo aptitude update</em>&#8221; to refresh the apt packages listing</li>
</ol>
<p>Once the repository is installed you can install OzMyth through <em>Synaptics</em> or via the command line <em>sudo aptitide install ozmyth</em></p>
]]></content:encoded>
			<wfw:commentRss>http://bencic.net/htdocs/2008/09/20/repository-for-ozmyth-is-back/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wedding Reception Venue: Lauriston House + GST</title>
		<link>http://bencic.net/htdocs/2008/04/06/wedding-reception-venue-lauriston-house-gst</link>
		<comments>http://bencic.net/htdocs/2008/04/06/wedding-reception-venue-lauriston-house-gst#comments</comments>
		<pubDate>Sun, 06 Apr 2008 03:09:57 +0000</pubDate>
		<dc:creator>John Bencic</dc:creator>
				<category><![CDATA[Family]]></category>
		<category><![CDATA[ceremony]]></category>
		<category><![CDATA[function centres]]></category>
		<category><![CDATA[function centres sydney]]></category>
		<category><![CDATA[garden ceremony]]></category>
		<category><![CDATA[garden weddings]]></category>
		<category><![CDATA[garden weddings sydney]]></category>
		<category><![CDATA[reception garden ceremony]]></category>
		<category><![CDATA[sydney]]></category>
		<category><![CDATA[weddings]]></category>
		<category><![CDATA[weddings reception centre]]></category>
		<category><![CDATA[weddings reception centre sydney]]></category>
		<category><![CDATA[weddings sydney]]></category>

		<guid isPermaLink="false">http://bencic.net/htdocs/2008/04/06/wedding-reception-venue-lauriston-house-gst</guid>
		<description><![CDATA[After about 6 weeks of searching, we have finally chosen our wedding reception venue. Our wedding will be taking place at Lauriston House in early April 2008.The staff are friendly and the food is great however there are some things to watch out for when choosing Lauriston House as with any venue. Originally when we [...]]]></description>
			<content:encoded><![CDATA[<table width="100%">
<tr>
<td valign="top">After about 6 weeks of searching, we have finally chosen our wedding reception venue. Our wedding will be taking place at <a href="http://www.lauristonhouse.com.au" target="_blank">Lauriston House</a> in early April 2008.The staff are friendly and the food is great however there are some things to watch out for when choosing Lauriston House as with any venue.</td>
<td align="right" valign="top"><a href="http://bencic.net/htdocs/wp-content/uploads/2008/04/lauristonhouse.jpg" title="Lauriston House Quote"><img src="http://bencic.net/htdocs/wp-content/uploads/2008/04/lauristonhouse.thumbnail.jpg" alt="Lauriston House Quote" /></a></td>
</tr>
</table>
<p><span id="more-38"></span></p>
<p>Originally when we were looking for reception venues we overlooked Lauriston House as it is my belief that any venue we choose will have a website at this day in age present with powerful impacting high quality photoshoped photos. Also we overlooked any website which did not include the <strong>PRICE</strong> on the site along with the inclusions and exclusions. This to me  make me think that a venue is trying to hide something. We were looking at <a href="http://www.curzonhall.com.au/" target="_blank">Curzon Hall</a> which with their winter packages including extras not in the summer packages and would be $124 per head. At Lauriston House we were quoted $110 per head and thinking we were getting a good deal compared to others we ended up choosing Lauriston. <strong>To our dismay we ended up paying $121 per head as the quote was GST exclusive</strong>.</p>
<p>When I go to the shops and buy say a shirt I am given a price inclusive of GST, This is because I am a consumer and not a company buying goods from a supplier. I do not get a GST credit and cannot offset or claim the GST portion back from the tax office.  I have found Lauriston House to be deceiving in talking up the $110 per head and then in the fine print adding price is ex GST.</p>
<p>Prior to booking we were asked to come in to sample some of the food and to see what they have to offer. Other places would charge for this however this was all free at Lauriston which was great. When we arrived there were  others already there browsing (as there would be) we were given some sample desert which was to die for, the tastes just melted our mouth and i was impressed.</p>
<p>When we got there we were told that they owned all the houses up until the small church about 4 doors up. We were also told that they have an application with the council to demolish one of these houses to make way for a garden with a sandstone line isle for the bride to walk down. It was told to us that this house would most probably be demolished within weeks and the garden had a 95% chance of being ready before our wedding in 5 months time. We decided to have our ceremony in this garden at Lauriston as this would save on some of the costs  (transportation, church donation&#8230;). I drive past everyday and still see the house is being occupied by a tenant or a car parked in the driveway and have little doubt the garden will be ready before the wedding.  We have now started looking for a church to have the ceremony in as from speaking to others, this new garden has been promised and failed to eventuate.</p>
<p>The decor at Lauriston is a little dated, with old carpet and the walls have some stains on them especially beneath the air conditioner where it is most noticeable. Overall the general venue is quite presentable and simple to work with. I was a little disappointed to find out that there is no back yard and the only outdoor area would be the front yard which is quite small. The venue is kid friendly providing DVD movies for the kids to watch and pausing the movies for the important moments of the night.</p>
<p>One annoyance was when we asked if we could spread rose petals on the table which was quickly refuse. The reason being OH&amp;S, This really annoys me. As if anyone would slip on a rose petal which has fallen from the table and hurt themselves.</p>
<p>I didn&#8217;t notice a bar for where spirits can be purchased and i will need to check with the owners if spirits can be purchased. They have allowed for us to bring some <a href="http://en.wikipedia.org/wiki/Rakia" target="_blank">Rakia</a> spirits for the toasts as it is our tradition that the groom has to have shots with the guests at the tables.</p>
<p>I have been told from speaking to various videographers hat videoing the bridal waltz is difficult as the DJ turns off the lights and disallows the videographer to used the lights. This results in a poor recording to the waltz.</p>
<p>Some of the things we were impressed with;</p>
<ul>
<li>Lauriston provide a choice of cars to be used as a getaway car included in the  price.</li>
<li>Seat covers were included in the price and a variety of colours were offered</li>
<li>Long and low flowers for the main table was said to be provided however there is nothing in the contract which specifies this (have to verify)</li>
<li>5 1/2 hours of service but a minimum of 100 guests</li>
<li>The venue is not shared with others.</li>
</ul>
<p>Address: 146 Marsden Road (Cnr Stewart Street)<br />
DUNDAS VALLEY NSW 2117<br />
Telephone: (02) 9858 3335<br />
Fax: (02) 9874 9371</p>
<p>I would recommend this venue to anyone however always remember to read the fine print to know exactly  what you are getting into and make sure any promises are written down in the contract. If you are not sure then do not sign the contract</p>
<p>If you would like to comment or share some experiences regarding this venue please post a comment</p>
]]></content:encoded>
			<wfw:commentRss>http://bencic.net/htdocs/2008/04/06/wedding-reception-venue-lauriston-house-gst/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Creating a custom pages template with dynamic sub menu listing in WordPress</title>
		<link>http://bencic.net/htdocs/2008/01/05/creating-a-custom-pages-template-with-dynamic-sub-menu-listing-in-wordpress</link>
		<comments>http://bencic.net/htdocs/2008/01/05/creating-a-custom-pages-template-with-dynamic-sub-menu-listing-in-wordpress#comments</comments>
		<pubDate>Sat, 05 Jan 2008 07:17:15 +0000</pubDate>
		<dc:creator>John Bencic</dc:creator>
				<category><![CDATA[IT Related]]></category>

		<guid isPermaLink="false">http://bencic.net/htdocs/2008/01/05/creating-a-custom-pages-template-with-dynamic-sub-menu-listing-in-wordpress</guid>
		<description><![CDATA[I recently got my WordPress site up and running. I had a need to have a &#8220;Parent Page&#8221; which would dynamically lists its child pages as a list. Example Initially I thought there would be a method to call the wp_list_pages() function from the page content but I couldn&#8217;t find how (or doesn&#8217;t exist). I [...]]]></description>
			<content:encoded><![CDATA[<p>I recently got my WordPress site up and running.<br />
I had a need to have a &#8220;Parent Page&#8221; which would dynamically lists its child pages as a list. <a href="http://bencic.net/htdocs/profiles">Example</a></p>
<p>Initially I thought there would be a method to call the wp_list_pages() function from the page content but I couldn&#8217;t find how (or doesn&#8217;t exist).</p>
<p>I explored my options there was <a href="http://wordpress.org/extend/plugins/exec-php/">exec-php</a> however I didn&#8217;t want add any potential security holes by allowing php code to be executed (I have been stung in the past with something similar).</p>
<p>Searching through the internet, I couldn&#8217;t find any help out</p>
<p>I ended up creating a custom pages template.</p>
<p><span id="more-23"></span></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>Start off by making a copy of the &#8220;page.php&#8221; file and call this copy &#8220;page_with_menu.php&#8221;. This &#8220;page.php&#8221; is located in the /wp-content/themes/default/page.php. There are many ways to do this (SSH, FTP, WebDav, Web file management) which I will not go into details here.</p>
<p>These next steps will demonstrate how to edit the new &#8220;page_with_menu.php&#8221; php file to add the menu listing. This example below shows how achieve this by using the admin area of your WordPress site.</p>
<p>1) Navigate to the admin area of your website. This is usually http://YourDomain/wp-admin</p>
<p>2) Click on the &#8220;Design&#8221; link from the main menu</p>
<p>3) A sub menu will appear underneath the main menu. Click on the &#8220;Theme Editor&#8221; link of the &#8220;Design&#8221; sub menu</p>
<p>4) I am assuming that you are using the &#8220;Default&#8221; theme which come with WordPress, if not then change the theme by select it at the &#8220;Select theme to edit&#8221; dropdown box and click select.</p>
<p>5) On the right side of the page under &#8220;WordPress Default theme files&#8221; click on the link which will be called something like &#8220;page_with_menu.php&#8221; to view and start editing the contents of &#8220;page_with_menu.php&#8221;</p>
<p>6) You should now see the contents of &#8220;page_with_menu.php&#8221;.</p>
<p>7) Modifying the code</p>
<p>Were going to give the page a name so that we can select this as a template when creating a page. Add the following code to the top of the page changing the template name as desired.</p>
<pre class="brush: php;">
&lt;?php
/*
Template Name: MenuList Template
*/
?&gt;
</pre>
<p>8 ) Underneath the line
<pre class="brush: php;">&lt;?php wp_link_pages(array('before' =&gt; '&lt;p&gt;&lt;strong&gt;Pages:&lt;/strong&gt; ', 'after' =&gt; '&lt;/p&gt;', 'next_or_number' =&gt; 'number')); ?&gt;</pre>
<p>.  Add the following code</p>
<pre class="brush: php;">

&lt;?php if($post-&gt;post_parent) { // page is a child

echo &quot;&lt;ul&gt;&quot;;

wp_list_pages('sort_column=menu_order&amp;amp;amp;amp;amp;amp;amp;title_li=&amp;amp;amp;amp;amp;amp;amp;child_of='.$post-&gt;post_parent);

echo &quot;&lt;/ul&gt;&quot;;

}
if(wp_list_pages(&quot;child_of=&quot;.$post-&gt;ID.&quot;&amp;amp;amp;amp;amp;amp;amp;echo=0&quot;)) { // page has children

echo &quot;&lt;ul&gt;&quot;;

wp_list_pages('sort_column=menu_order&amp;amp;amp;amp;amp;amp;amp;title_li=&amp;amp;amp;amp;amp;amp;amp;child_of='.$post-&gt;ID);

echo &quot;&lt;/ul&gt;&quot;;

} ?&gt;
</pre>
<p>9) The final product should look something like this.</p>
<pre class="brush: php;">
&lt;?php
/*
Template Name: MenuList Template
*/
?&gt;
&lt;?php get_header(); ?&gt;

	&lt;div id=&quot;content&quot; class=&quot;narrowcolumn&quot;&gt;

		&lt;?php if (have_posts()) : while (have_posts()) : the_post(); ?&gt;
		&lt;div class=&quot;post&quot; id=&quot;post-&lt;?php the_ID(); ?&gt;&quot;&gt;
		&lt;h2&gt;&lt;?php the_title(); ?&gt;&lt;/h2&gt;
			&lt;div class=&quot;entry&quot;&gt;
				&lt;?php the_content('&lt;p class=&quot;serif&quot;&gt;Read the rest of this page &amp;raquo;&lt;/p&gt;'); ?&gt;

				&lt;?php wp_link_pages(array('before' =&gt; '&lt;p&gt;&lt;strong&gt;Pages:&lt;/strong&gt; ', 'after' =&gt; '&lt;/p&gt;', 'next_or_number' =&gt; 'number')); ?&gt;

				&lt;?php if($post-&gt;post_parent) { // page is a child
					echo &quot;&lt;ul&gt;&quot;;
					wp_list_pages('sort_column=menu_order&amp;title_li=&amp;child_of='.$post-&gt;post_parent);
					echo &quot;&lt;/ul&gt;&quot;;
				}

				if(wp_list_pages(&quot;child_of=&quot;.$post-&gt;ID.&quot;&amp;echo=0&quot;)) { // page has children
					echo &quot;&lt;ul&gt;&quot;;
					wp_list_pages('sort_column=menu_order&amp;title_li=&amp;child_of='.$post-&gt;ID);
					echo &quot;&lt;/ul&gt;&quot;;
				} ?&gt;
			&lt;/div&gt;

		&lt;/div&gt;
		&lt;?php endwhile; endif; ?&gt;
	&lt;?php edit_post_link('Edit this entry.', '&lt;p&gt;', '&lt;/p&gt;'); ?&gt;
	&lt;/div&gt;

&lt;?php get_sidebar(); ?&gt;

&lt;?php get_footer(); ?&gt;
</pre>
<p>10) Click on  the &#8220;Update File&#8221; button to save the changes.</p>
<p><b>Using the custom template</b></p>
<p>11)  from the top menu click on &#8220;Write&#8221; then underneath &#8220;Write Page&#8221;</p>
<p>12) Enter a title into the page title box.</p>
<p>13)  On the menu under the &#8220;Page Template&#8221; section, Click on the dropdown menu and select the new template &#8220;MenuList Template&#8221;</p>
<p>14) Click on &#8220;Save&#8221; and test the page.</p>
<p>If there is anything I missed or can make a better suggestion please comment…</p>
]]></content:encoded>
			<wfw:commentRss>http://bencic.net/htdocs/2008/01/05/creating-a-custom-pages-template-with-dynamic-sub-menu-listing-in-wordpress/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Canon EOS 40D DSLR</title>
		<link>http://bencic.net/htdocs/2007/12/29/canon-eos-40d-dslr</link>
		<comments>http://bencic.net/htdocs/2007/12/29/canon-eos-40d-dslr#comments</comments>
		<pubDate>Fri, 28 Dec 2007 23:47:06 +0000</pubDate>
		<dc:creator>John Bencic</dc:creator>
				<category><![CDATA[IT Related]]></category>

		<guid isPermaLink="false">http://bencic.net/htdocs/2007/12/29/our-first-dslr-canon-eos-40d</guid>
		<description><![CDATA[On the 28 December 2007 we purchased a new Canon EOS 40D. This is our first digital SLR and we were a little confused because this is all new to us. I started to jot down a few tip and features which i have read from numerous sites articles so that I don&#8217;t forget them. [...]]]></description>
			<content:encoded><![CDATA[<table width="100%">
<tr>
<td valign="top">On the 28 December 2007 we purchased a new Canon EOS 40D. This is our first digital SLR and we were a little confused because this is all new to us. I started to jot down a few tip and features which i have read from numerous sites articles so that I don&#8217;t forget them. to read the full article click on&#8221;Read the rest of this article&#8221; link. this is still a work in progress.. any assistance would be appreciate.</td>
<td align="right" valign="top"><img src="http://bencic.net/htdocs/wp-content/uploads/2007/12/canon_eos_40d.gif" alt="Canon EOS 40D" height="147" /></td>
</tr>
</table>
<p><span id="more-27"></span></p>
<table width="100%">
<tr>
<td valign="top"><strong>Aperture</strong></p>
<ul>
<li>a hole or an opening through which light is admitted.</li>
<li>A lower f-number denotes a greater aperture opening which allows more light to reach the film or image sensor</li>
<li>The lens aperture is usually specified as an f-number, the ratio of focal length to effective aperture diameter.</li>
<li>A lens typically has a set of marked &#8220;f-stops&#8221; that the f-number can be set to. A lower f-number denotes a greater aperture opening which allows more light to reach the film or image sensor.</li>
<li>Adjustment to the aperture controls the depth of field</li>
<li><img src="http://bencic.net/htdocs/wp-content/uploads/2007/12/aperture_diagram.png" alt="aperture_diagram.png" /></li>
</ul>
</td>
<td align="right" valign="top"><img src="http://bencic.net/htdocs/wp-content/uploads/2007/12/aperures.jpg" alt="aperures.jpg" /></td>
</tr>
</table>
<p><strong>Shutter Speed</strong></p>
<ul>
<li>shutter speed is the length of time a shutter is open</li>
<li>Slow shutter speeds are often used in low light conditions, extending the time until the shutter closes, and increasing the amount of light gathered</li>
<li>a shutter speed of B (for bulb) keeps the shutter open as long as the shutter release is held</li>
<li>Shutter speed is measured in seconds. A typical shutter speed for photographs taken in sunlight is 1/125th of a second</li>
</ul>
<p><strong>ISO Speed</strong></p>
<ul>
<li> how sensitive the image sensor is to the amount of light present. The higher the ISO, the more sensitive the image sensor and therefore the possibility to take pictures in low-light situations.</li>
<li>auto ISO range from 100 &#8211; 800 although the 40D can be manually set to ISO 3200 (ISO expansion)</li>
</ul>
<p><strong>Metering Mode<br />
</strong></p>
<ul>
<li>metering mode refers to the way in which a camera determines the correct exposure.</li>
<li>Evaluative metering: This is an all-round metering mode suited for portraits and even backlit subjects</li>
<li>Partial metering: Effective when the background is much brighter then the subject due to backlighting. Covers 9% of the viewfinder</li>
<li>Spot metering: This is for metering a specific part of a subject of scene. Covers 3.8% of viewfinder</li>
<li>Center-weighted average metering: the metering is weighted to the center and then averaged for the entire scene</li>
</ul>
<p><strong>Debth of field</strong><br />
the distance in front of and beyond the subject that appears to be in focus.</p>
<p><strong>Notes:</strong></p>
<ul>
<li>a fast shutter speed will require a larger aperture to ensure sufficient light exposure, and a slow shutter speed will require a smaller aperture to avoid excessive exposure.</li>
</ul>
<p><strong>Creative Zone Modes</strong></p>
<p><strong>P  </strong>(program AE) mode:  the camera sets the shutter speed and aperture to suite brightness. you choose to use flash and ISO levels.<br />
<strong>Tv</strong> (Timed value AE, shutter priority) mode: you set the shutter speed, the camera automatically sets the aperture to obtain correct exposure.<br />
<strong>Av</strong> (Aperture value AE, aperture priority) mode: you set the aperture and the camera sets the shutter speed.<br />
<strong>M  </strong>(Manual Exposure) mode: in this mode you set the shutter speed and aperture as desired.<br />
<strong>A-DEP</strong> (automatic depth of field AE) mode: objects in the foreground and background will be in focus automatically.</p>
<p>My Arsenal</p>
<p>Canon EF-S 17-85MM f4-5.6 IS USM<br />
Canon EF 75-300mm f/4-5.6 III USM</p>
<p><strong>Some Notes on colour</strong></p>
<ul>
<li><a href="http://en.wikipedia.org/wiki/Hue" title="Hue">Hue</a>: the color&#8217;s direction from white, for example in the CIE chromaticity diagram. the colour itself, Hue is that aspect of a color described with names such as &#8220;red&#8221;, &#8220;yellow&#8221;. Usually, colors with the same hue are distinguished with adjectives referring to their lightness and/or saturation, such as with &#8220;light blue&#8221;, &#8220;pastel blue&#8221;, &#8220;vivid blue&#8221;. Notable exceptions include brown, which is a dark orange, and pink, a light desaturated red</li>
<li><a href="http://en.wikipedia.org/wiki/Saturation_%28color_theory%29" title="Saturation (color theory)">Saturation</a>: how &#8220;intense&#8221; or &#8220;concentrated&#8221; a color is; also known as chroma or purity. saturation or purity refers to the intensity of a specific hue. A highly saturated hue has a vivid, intense color, while a less saturated hue appears more muted and grey. With no saturation at all, the hue becomes a shade of grey</li>
<li><a href="http://en.wikipedia.org/wiki/Value_%28colorimetry%29" title="Value (colorimetry)">Value</a>: how light or dark a color is.</li>
<li><a href="http://en.wikipedia.org/wiki/Tints_and_shades" title="Tints and shades">Tint</a>: a color made lighter by adding white.</li>
<li><a href="http://en.wikipedia.org/wiki/Tints_and_shades" title="Tints and shades">Shade</a>: a color made darker by adding black.</li>
</ul>
<p><strong>Contrast<br />
</strong>The difference between the darkest and lightest areas in a photo. The greater the difference, the higher the contrast</p>
<p><strong>RGB</strong> (Red, Green, Blue) is used for computer screens, scanners, digital cameras and other devices that give out light.</p>
<p><strong>RYB/CMYK</strong> (Red, Yellow, Blue and/or Cyan, Magenta, Yellow, Black) is used for paintings, magazines, fabrics, cars, and actually all materials around us that reflect light rather than emit light.</p>
]]></content:encoded>
			<wfw:commentRss>http://bencic.net/htdocs/2007/12/29/canon-eos-40d-dslr/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
