<?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>itguyonline.com &#187; Development</title>
	<atom:link href="http://www.itguyonline.com/blog/category/development/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.itguyonline.com/blog</link>
	<description></description>
	<lastBuildDate>Wed, 04 Aug 2010 02:07:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Feather Text in Table</title>
		<link>http://www.itguyonline.com/blog/2010/06/28/86/</link>
		<comments>http://www.itguyonline.com/blog/2010/06/28/86/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 02:49:21 +0000</pubDate>
		<dc:creator>Kurt Wolf</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[png hack]]></category>

		<guid isPermaLink="false">http://www.itguyonline.com/blog/?p=86</guid>
		<description><![CDATA[I have been working on a project at work to create a status board display of important company metrics. Since this will eventually make it to a large LCD display, I am doing everything I can to make sure it is as perfect as possible. Now, I&#8217;m no professional designer but one of the things [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.itguyonline.com/blog/wp-content/uploads/2010/06/Table-With-Text-Feather.gif"><img class="alignnone size-full wp-image-87" title="Table With Text Feather" src="http://www.itguyonline.com/blog/wp-content/uploads/2010/06/Table-With-Text-Feather.gif" alt="" width="589" height="71" /></a></p>
<p>I have been working on a project at work to create a status board display of important company metrics.  Since this will eventually make it to a large LCD display, I am doing everything I can to make sure it is as perfect as possible.  Now, I&#8217;m no professional designer but one of the things that really bothered me was the tables of information running together and there was no easy way to distinguish the data columns.  I wanted to feather (fade) the text at the end of the column before the start of the next.</p>
<p>It seems there is not too much about this on the good old inter-web so I was off to hacking.  Like most of my good ideas, they come to me when I stop thinking about them and just allow a moment of quiet.  That came tonight at the dog park.</p>
<p>I was really consumed with the idea that I had to address the column that I wanted to feather, when in fact I needed to add the feather to the column I did not want to run into.  The picture above shows to table rows, the first does not have the treatment, and the second does.  Code to follow&#8230;</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">&lt;html&gt;
    &lt;head&gt;
        &lt;title&gt;Sample Table Layout&lt;/title&gt;
&nbsp;
        &lt;style&gt;
&nbsp;
			*, HTML {
				padding: 0px;
				margin: 0px;
				font-family: verdana
				font-size: 12px;
				background-color: #000000;
				color: #FFFFFF;
			}
&nbsp;
			TABLE {
				table-layout: fixed;
				width: 675px;
			}
&nbsp;
			TD {
				white-space: nowrap;
				overflow: hidden;
			}
&nbsp;
			TD SPAN {
				background: url(feather.png) repeat-y;
				background-position: right;
				position: absolute;
				/* Set these both to the width of your feather image */
				margin-left: -20px;
				width: 20px;
				height: 100%;
			}
&nbsp;
        &lt;/style&gt;
&nbsp;
    &lt;/head&gt;
&nbsp;
    &lt;body&gt;
&nbsp;
        &lt;table&gt;
            &lt;tr&gt;
                &lt;th&gt;Col 1&lt;/th&gt;
                &lt;th&gt;Col 2&lt;/th&gt;
                &lt;th&gt;Col 3&lt;/th&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td&gt;The quick brown fox jumped over the log&lt;/td&gt;
                &lt;td&gt;This is the start of a second column.&lt;/td&gt;
                &lt;td&gt;Parker&lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td&gt;The quick brown fox jumped over the log&lt;/td&gt;
                &lt;td&gt;&lt;span&gt;&lt;/span&gt;This is the start of a second column.&lt;/td&gt;
                &lt;td&gt;&lt;span&gt;&lt;/span&gt;Parker&lt;/td&gt;
            &lt;/tr&gt; 
        &lt;/table&gt;
&nbsp;
    &lt;/body&gt;
&lt;/html&gt;</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.itguyonline.com/blog/2010/06/28/86/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Migrating AD Manager information into Infra</title>
		<link>http://www.itguyonline.com/blog/2009/07/27/migrating-ad-manager-information-into-infra/</link>
		<comments>http://www.itguyonline.com/blog/2009/07/27/migrating-ad-manager-information-into-infra/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 15:05:46 +0000</pubDate>
		<dc:creator>Kurt Wolf</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Infra]]></category>

		<guid isPermaLink="false">http://www.itguyonline.com/blog/2009/07/27/migrating-ad-manager-information-into-infra/</guid>
		<description><![CDATA[Infra has been a great ITIL toolset for my department.&#160; The only downfall I have run into is some of the simpler integrations or features come at a steep price point.&#160; This integration cannot be that far out of the box for Infra but yet costs thousands of dollars.&#160; Instead I have been spending some [...]]]></description>
			<content:encoded><![CDATA[<p>Infra has been a great ITIL toolset for my department.&#160; The only downfall I have run into is some of the simpler integrations or features come at a steep price point.&#160; This integration cannot be that far out of the box for Infra but yet costs thousands of dollars.&#160; Instead I have been spending some time understanding the Infra database and have come up with the following VBS to move the manager information stored in AD into the Infra database.&#160; We have this script to run each night and it keeps everything in order.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
</pre></td><td class="code"><pre class="vb" style="font-family:monospace;">LDAPRootDN = <span style="color: #800000;">&quot;LDAP://OU=HCL Users,DC=hcl,DC=internal&quot;</span>
&nbsp;
<span style="color: #008000;">' Infra database DSN
</span>InfraDSN = <span style="color: #800000;">&quot;Driver={SQL Server};Server=data01.hcl.internal;Database=infraEnterprise;Trusted_Connection=TRUE&quot;</span>
&nbsp;
<span style="color: #000080;">set</span> objConnection = CreateObject(<span style="color: #800000;">&quot;ADODB.Connection&quot;</span>)
objConnection.ConnectionString = InfraDSN
objConnection.<span style="color: #000080;">open</span>
&nbsp;
<span style="color: #008000;">' Start the process
</span>ProcessOU(LDAPRootDN)
&nbsp;
<span style="color: #000080;">function</span> ProcessOU ( DN )
    <span style="color: #000080;">set</span> CNUsers = GetObject(DN)
    <span style="color: #000080;">for</span> <span style="color: #000080;">each</span> User <span style="color: #000080;">in</span> CNUsers
        <span style="color: #000080;">select</span> <span style="color: #000080;">case</span> User.class
            <span style="color: #000080;">case</span> <span style="color: #800000;">&quot;user&quot;</span>
                <span style="color: #008000;">' Migrate manager information if a manager is defined
</span>                <span style="color: #000080;">if</span> ( User.manager &lt;&gt; <span style="color: #800000;">&quot;&quot;</span> ) <span style="color: #000080;">then</span>
                    MigrationCount = MigrationCount + 1
                    MigrateManager User.distinguishedName, User.manager
                <span style="color: #000080;">else</span>
                    <span style="color: #008000;">' No manager information on file
</span>                <span style="color: #000080;">end</span> <span style="color: #000080;">if</span>
            <span style="color: #000080;">case</span> <span style="color: #800000;">&quot;organizationalUnit&quot;</span>, <span style="color: #800000;">&quot;container&quot;</span>
                <span style="color: #008000;">' This is an OU, recurse into
</span>                ProcessOU( User.ADsPath )
        <span style="color: #000080;">end</span> <span style="color: #000080;">select</span>
    <span style="color: #000080;">next</span>
<span style="color: #000080;">end</span> <span style="color: #000080;">function</span>
&nbsp;
<span style="color: #000080;">function</span> MigrateManager ( StaffDN, ManagerDN )
    <span style="color: #000080;">set</span> Staff = GetObject(<span style="color: #800000;">&quot;LDAP://&quot;</span> + StaffDN)
    <span style="color: #000080;">set</span> Manager = GetObject(<span style="color: #800000;">&quot;LDAP://&quot;</span> + ManagerDN)
    strQuery = <span style="color: #800000;">&quot;exec sp_MigrateManager '&quot;</span> + Staff.GUID + <span style="color: #800000;">&quot;', '&quot;</span> + Manager.GUID + <span style="color: #800000;">&quot;'&quot;</span>
    <span style="color: #000080;">set</span> rs = objConnection.execute(strQuery)
<span style="color: #000080;">end</span> <span style="color: #000080;">function</span></pre></td></tr></table></div>

<p>The following is the supporting TSQL for the sp_MigrateManager procedure.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
</pre></td><td class="code"><pre class="sql" style="font-family:monospace;">&nbsp;
<span style="color: #993333; font-weight: bold;">USE</span> infraEnterprise
GO
&nbsp;
<span style="color: #993333; font-weight: bold;">IF</span> <span style="color: #993333; font-weight: bold;">EXISTS</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #66cc66;">&#40;</span><span style="color: #993333; font-weight: bold;">SELECT</span> NAME <span style="color: #993333; font-weight: bold;">FROM</span> sysobjects <span style="color: #993333; font-weight: bold;">WHERE</span> NAME <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'sp_MigrateManager'</span> <span style="color: #993333; font-weight: bold;">AND</span> TYPE <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'P'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
BEGIN
    <span style="color: #993333; font-weight: bold;">DROP</span> PROCEDURE sp_MigrateManager
END
GO
&nbsp;
<span style="color: #993333; font-weight: bold;">CREATE</span> PROCEDURE sp_MigrateManager 
    @StaffGUID NVARCHAR<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">300</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span>
    @ManagerGUID NVARCHAR<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">300</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #993333; font-weight: bold;">AS</span>
BEGIN
&nbsp;
    DECLARE @ManagerRef INT
&nbsp;
    <span style="color: #993333; font-weight: bold;">SELECT</span> @ManagerRef <span style="color: #66cc66;">=</span> COALESCE<span style="color: #66cc66;">&#40;</span>REF<span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">FROM</span> AR_USER_ATTRIBUTES <span style="color: #993333; font-weight: bold;">WHERE</span> ldap_object_id <span style="color: #66cc66;">=</span> @ManagerGUID
&nbsp;
    <span style="color: #993333; font-weight: bold;">UPDATE</span> AR_USER_ATTRIBUTES
    <span style="color: #993333; font-weight: bold;">SET</span>
        MANAGER_REF <span style="color: #66cc66;">=</span> @ManagerRef
    <span style="color: #993333; font-weight: bold;">WHERE</span>
        ldap_object_id <span style="color: #66cc66;">=</span> @StaffGUID
&nbsp;
END
&nbsp;
GO</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.itguyonline.com/blog/2009/07/27/migrating-ad-manager-information-into-infra/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PHP version for Mac OS X 10.5</title>
		<link>http://www.itguyonline.com/blog/2007/10/29/php-version-for-mac-os-x-105/</link>
		<comments>http://www.itguyonline.com/blog/2007/10/29/php-version-for-mac-os-x-105/#comments</comments>
		<pubDate>Tue, 30 Oct 2007 00:41:32 +0000</pubDate>
		<dc:creator>Kurt Wolf</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Systems]]></category>

		<guid isPermaLink="false">http://www.itguyonline.com/blog/2007/10/29/php-version-for-mac-os-x-105/</guid>
		<description><![CDATA[I have been spending the evening looking at my fresh install of Leopard (Mac OS X 10.5). It looks like PHP version 5.2.4 is installed by default. As of today, this is the latest version available. So far, the built in web server is not processing .php pages. I&#8217;ll look into that next. UPDATE: Upgrading [...]]]></description>
			<content:encoded><![CDATA[<p>I have been spending the evening looking at my fresh install of Leopard (Mac OS X 10.5).  It looks like PHP version 5.2.4 is installed by default.  As of today, this is the latest version available.  So far, the built in web server is not processing .php pages.  I&#8217;ll look into that next.</p>
<p><img src='http://www.itguyonline.com/blog/wp-content/uploads/2007/10/php_version.png' alt='php_version.png'/></p>
<p>UPDATE:  Upgrading to 10.5.1 has resolved the issues displaying PHP pages.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.itguyonline.com/blog/2007/10/29/php-version-for-mac-os-x-105/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Development Environment</title>
		<link>http://www.itguyonline.com/blog/2007/05/25/development-environment/</link>
		<comments>http://www.itguyonline.com/blog/2007/05/25/development-environment/#comments</comments>
		<pubDate>Fri, 25 May 2007 13:57:44 +0000</pubDate>
		<dc:creator>Kurt Wolf</dc:creator>
				<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://www.itguyonline.com/blog/2007/05/25/development-environment/</guid>
		<description><![CDATA[I find myself doing development on Windows, Linux, and Mac. Most of the time this involves working on web applications. As such, I was struggling with finding an editor/IDE that would suite my needs on all of the platforms. I may have found it! http://www.activestate.com/products/komodo_edit/ Komodo Edit. This is a free package that runs great [...]]]></description>
			<content:encoded><![CDATA[<p>I find myself doing development on Windows, Linux, and Mac.  Most of the time this involves working on web applications.  As such, I was struggling with finding an editor/IDE that would suite my needs on all of the platforms.  I may have found it!</p>
<p><a href="http://www.activestate.com/products/komodo_edit/">http://www.activestate.com/products/komodo_edit/</a></p>
<p><strong>Komodo Edit</strong>.  This is a free package that runs great on all of the platforms.  The one big drawback in the lack of an integrated SVN client.  I use subversion religiously, even on personal projects.  For Windows there is the excellent TortiseSVN client that integrates with Explorer but I am still left with working at the command line for Linux and Mac.</p>
<p><a href='http://www.itguyonline.com/blog/2007/05/25/development-environment/komodo-edit-header-bgjpg/' rel='attachment wp-att-15' title='komodo-edit-header-bg.jpg'><img src='http://www.itguyonline.com/blog/wp-content/uploads/2007/05/komodo-edit-header-bg.jpg' alt='komodo-edit-header-bg.jpg' /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.itguyonline.com/blog/2007/05/25/development-environment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
