<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments for Practical Programming&#187; Restarting Terminal Services Remotely</title>
	<atom:link href="http://www.programmers.org/index.php/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.programmers.org</link>
	<description>Experience is knowledge.</description>
	<pubDate>Fri, 12 Mar 2010 19:33:57 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>Comment on JQuery Google Suggest (jquery.gsuggest.js) by Micah Lacombe</title>
		<link>http://www.programmers.org/index.php/2009/12/jquery-google-suggest-jquerygsuggestjs/#comment-1776</link>
		<dc:creator>Micah Lacombe</dc:creator>
		<pubDate>Mon, 22 Feb 2010 03:51:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.programmers.org/?p=323#comment-1776</guid>
		<description>&lt;a href="#comment-1768" rel="nofollow"&gt;@Brian&lt;/a&gt; 

I was thinking about this some more and realized I forgot to mention that you don't really need to use a web service if you don't want to. You can actually specify a separate file for each input by using a different config on each. If you take a look at the script you'll see how to do this but if you get stuck or need a sample let me know. 

I prefer to consolidate everything in one place (aka one file) because it keeps it easier to manage... but that all depends on how your software is engineered.</description>
		<content:encoded><![CDATA[<p><a href="#comment-1768" rel="nofollow">@Brian</a> </p>
<p>I was thinking about this some more and realized I forgot to mention that you don&#8217;t really need to use a web service if you don&#8217;t want to. You can actually specify a separate file for each input by using a different config on each. If you take a look at the script you&#8217;ll see how to do this but if you get stuck or need a sample let me know. </p>
<p>I prefer to consolidate everything in one place (aka one file) because it keeps it easier to manage&#8230; but that all depends on how your software is engineered.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on JQuery Google Suggest (jquery.gsuggest.js) by Micah Lacombe</title>
		<link>http://www.programmers.org/index.php/2009/12/jquery-google-suggest-jquerygsuggestjs/#comment-1774</link>
		<dc:creator>Micah Lacombe</dc:creator>
		<pubDate>Sun, 21 Feb 2010 23:21:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.programmers.org/?p=323#comment-1774</guid>
		<description>&lt;a href="#comment-1768" rel="nofollow"&gt;@Brian&lt;/a&gt; 

Brian,

Don't be scared off by the CFC. It is essentially the same thing as an object in any other language. In this particular case however it is a remote object, aka a Web Service. You can create your own Web Service in cf, php, .net, etc. That having been said you could also implement it without object remoting by doing an evaluate on the appropriate url parameters... the only requirement here is that the data is returned to gsuggest in the correct format.

Here is the code for the CFC:

http://www.micah-lacombe.com/utils/suggest_cfc_code.cfm

Notice the comment at the bottom:

&lt;code&gt;
&#60;!---
var method = obj.form.name + '_' + obj.name;
var surl = $.gsuggest.config.url + &#34;?method=&#34;+method+&#34;&#38;value=&#34;+objval+&#34;&#38;callback=?&#34;;
---&#62; 
&lt;/code&gt;

This is where gsuggest sets up the url to use during the ajax call. As mentioned in the main article, [method] is the name of the method which gets executed, and [value] is the value currently in the text box. CF uses [method] as part of its remote call, however other languages may be different.... so you can update gsugggest.js to reflect whatever type of url you need and even add multiple language options by enhancing the configuration. Also, [callback] is something jquery uses (so that is also required).

The data you return needs to be formatted in JSON:

&lt;code&gt;
"#callback#(#serializejson(listtoarray(valuelist(qcustomers.contactname)))#)"&gt;
&lt;/code&gt;

This is outputing the value of [callback] as a function, hence the parenthesis. And the parameter value of that function is simply a JSON Simple Array. For further CFML Details, hit up google or ask me.

Good luck and let me know how it goes!</description>
		<content:encoded><![CDATA[<p><a href="#comment-1768" rel="nofollow">@Brian</a> </p>
<p>Brian,</p>
<p>Don&#8217;t be scared off by the CFC. It is essentially the same thing as an object in any other language. In this particular case however it is a remote object, aka a Web Service. You can create your own Web Service in cf, php, .net, etc. That having been said you could also implement it without object remoting by doing an evaluate on the appropriate url parameters&#8230; the only requirement here is that the data is returned to gsuggest in the correct format.</p>
<p>Here is the code for the CFC:</p>
<p><a href="http://www.micah-lacombe.com/utils/suggest_cfc_code.cfm" rel="nofollow">http://www.micah-lacombe.com/utils/suggest_cfc_code.cfm</a></p>
<p>Notice the comment at the bottom:</p>
<p><code><br />
&lt;!---<br />
var method = obj.form.name + '_' + obj.name;<br />
var surl = $.gsuggest.config.url + &quot;?method=&quot;+method+&quot;&amp;value=&quot;+objval+&quot;&amp;callback=?&quot;;<br />
---&gt;<br />
</code></p>
<p>This is where gsuggest sets up the url to use during the ajax call. As mentioned in the main article, [method] is the name of the method which gets executed, and [value] is the value currently in the text box. CF uses [method] as part of its remote call, however other languages may be different&#8230;. so you can update gsugggest.js to reflect whatever type of url you need and even add multiple language options by enhancing the configuration. Also, [callback] is something jquery uses (so that is also required).</p>
<p>The data you return needs to be formatted in JSON:</p>
<p><code><br />
"#callback#(#serializejson(listtoarray(valuelist(qcustomers.contactname)))#)"><br />
</code></p>
<p>This is outputing the value of [callback] as a function, hence the parenthesis. And the parameter value of that function is simply a JSON Simple Array. For further CFML Details, hit up google or ask me.</p>
<p>Good luck and let me know how it goes!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on JQuery Google Suggest (jquery.gsuggest.js) by Micah Lacombe</title>
		<link>http://www.programmers.org/index.php/2009/12/jquery-google-suggest-jquerygsuggestjs/#comment-1773</link>
		<dc:creator>Micah Lacombe</dc:creator>
		<pubDate>Sun, 21 Feb 2010 23:13:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.programmers.org/?p=323#comment-1773</guid>
		<description>&lt;a href="#comment-1766" rel="nofollow"&gt;@Yugi&lt;/a&gt; 

Hi Yugi,

I am not entirely sure what you mean... in fact it requires the dataset to be in JSON already. Can you explain more about what you are looking to do?</description>
		<content:encoded><![CDATA[<p><a href="#comment-1766" rel="nofollow">@Yugi</a> </p>
<p>Hi Yugi,</p>
<p>I am not entirely sure what you mean&#8230; in fact it requires the dataset to be in JSON already. Can you explain more about what you are looking to do?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on JQuery Google Suggest (jquery.gsuggest.js) by Brian</title>
		<link>http://www.programmers.org/index.php/2009/12/jquery-google-suggest-jquerygsuggestjs/#comment-1768</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Fri, 19 Feb 2010 04:22:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.programmers.org/?p=323#comment-1768</guid>
		<description>Hello - Can you give more details on your suggest.cfc file? I'm not familiar with ColdFusion, but I would like to add this functionality to my site using PHP. What exactly should the server side (CF, PHP, .NET, etc.) look like? 

Thanks for this work, it seems like it will be perfect for my application.</description>
		<content:encoded><![CDATA[<p>Hello - Can you give more details on your suggest.cfc file? I&#8217;m not familiar with ColdFusion, but I would like to add this functionality to my site using PHP. What exactly should the server side (CF, PHP, .NET, etc.) look like? </p>
<p>Thanks for this work, it seems like it will be perfect for my application.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on JQuery Google Suggest (jquery.gsuggest.js) by Yugi</title>
		<link>http://www.programmers.org/index.php/2009/12/jquery-google-suggest-jquerygsuggestjs/#comment-1766</link>
		<dc:creator>Yugi</dc:creator>
		<pubDate>Tue, 16 Feb 2010 10:49:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.programmers.org/?p=323#comment-1766</guid>
		<description>Hi,

Can you write your gsuggest to support json format?</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Can you write your gsuggest to support json format?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on JQuery Google Suggest (jquery.gsuggest.js) by Micah Lacombe</title>
		<link>http://www.programmers.org/index.php/2009/12/jquery-google-suggest-jquerygsuggestjs/#comment-1760</link>
		<dc:creator>Micah Lacombe</dc:creator>
		<pubDate>Thu, 11 Feb 2010 17:08:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.programmers.org/?p=323#comment-1760</guid>
		<description>Hi Keith,

Thanks for bringing this to my attention... I had a catastrophic hard drive failure in December and some files were lost. I rebuilt the sample "SEE IT IN ACTION" page this morning so you can check it out. Let me know if you have any questions!

I would like to also add that if anyone has trouble getting the script to work, or understanding it, just make a comment here and I will follow up with specific details. </description>
		<content:encoded><![CDATA[<p>Hi Keith,</p>
<p>Thanks for bringing this to my attention&#8230; I had a catastrophic hard drive failure in December and some files were lost. I rebuilt the sample &#8220;SEE IT IN ACTION&#8221; page this morning so you can check it out. Let me know if you have any questions!</p>
<p>I would like to also add that if anyone has trouble getting the script to work, or understanding it, just make a comment here and I will follow up with specific details.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on JQuery Google Suggest (jquery.gsuggest.js) by Keith</title>
		<link>http://www.programmers.org/index.php/2009/12/jquery-google-suggest-jquerygsuggestjs/#comment-1750</link>
		<dc:creator>Keith</dc:creator>
		<pubDate>Thu, 28 Jan 2010 17:07:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.programmers.org/?p=323#comment-1750</guid>
		<description>I just clicked your "SEE IT IN ACTION" link, and all that came up was binary data.</description>
		<content:encoded><![CDATA[<p>I just clicked your &#8220;SEE IT IN ACTION&#8221; link, and all that came up was binary data.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Convert datetimes to integers when doing date-only range searches in SQL. by Micah Lacombe</title>
		<link>http://www.programmers.org/index.php/2008/11/convert-datetimes-to-integers-when-doing-date-only-range-searches-in-sql/#comment-1692</link>
		<dc:creator>Micah Lacombe</dc:creator>
		<pubDate>Tue, 22 Dec 2009 17:09:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.programmers.org/?p=19#comment-1692</guid>
		<description>I discovered later on, this is actually a very BAD implementation. The reason is when using indexes, executing a function on each item requires an entire index scan to be done instead of an index seek. This completely screws up doing a range search for dates on a clustered index. Yikes.

The methods above work, but boy or they ever inefficient. Avoid them if at all possible. Consider using things like DateDiff(), etc.

And Remember, when your writing high performance queries always study the execution plan and reduce bottlenecks!</description>
		<content:encoded><![CDATA[<p>I discovered later on, this is actually a very BAD implementation. The reason is when using indexes, executing a function on each item requires an entire index scan to be done instead of an index seek. This completely screws up doing a range search for dates on a clustered index. Yikes.</p>
<p>The methods above work, but boy or they ever inefficient. Avoid them if at all possible. Consider using things like DateDiff(), etc.</p>
<p>And Remember, when your writing high performance queries always study the execution plan and reduce bottlenecks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Restarting Terminal Services Remotely by Micah Lacombe</title>
		<link>http://www.programmers.org/index.php/2009/12/restarting-terminal-services-remotely/#comment-1691</link>
		<dc:creator>Micah Lacombe</dc:creator>
		<pubDate>Tue, 22 Dec 2009 17:01:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.programmers.org/?p=378#comment-1691</guid>
		<description>You can also set a user account to be automatically logged off after a certain period of inactivity.

"We set it by user in Active Directory Users and Computers.  Go to the properties of the user, then click the Sessions tab and set the inactivity timeout to whatever you want.

You can also go to Start - Programs - Administrative Tools - Terminal Services Configuration. Right Click on the RDP Connection and go to the sessions tab.  That will create server wide settings and you can choose to over ride individual user settings." - &lt;a href="http://www.tek-tips.com/viewthread.cfm?qid=1260120&#038;page=1" rel="nofollow"&gt;kick back&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>You can also set a user account to be automatically logged off after a certain period of inactivity.</p>
<p>&#8220;We set it by user in Active Directory Users and Computers.  Go to the properties of the user, then click the Sessions tab and set the inactivity timeout to whatever you want.</p>
<p>You can also go to Start - Programs - Administrative Tools - Terminal Services Configuration. Right Click on the RDP Connection and go to the sessions tab.  That will create server wide settings and you can choose to over ride individual user settings.&#8221; - <a href="http://www.tek-tips.com/viewthread.cfm?qid=1260120&#038;page=1" rel="nofollow">kick back</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on JQuery Google Suggest (jquery.gsuggest.js) by Micah Lacombe</title>
		<link>http://www.programmers.org/index.php/2009/12/jquery-google-suggest-jquerygsuggestjs/#comment-1673</link>
		<dc:creator>Micah Lacombe</dc:creator>
		<pubDate>Mon, 14 Dec 2009 04:40:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.programmers.org/?p=323#comment-1673</guid>
		<description>&lt;a href="#comment-1672" rel="nofollow"&gt;@Micah Lacombe&lt;/a&gt; 

Just to be more clear: you can either embed multiple queries inside a single file and use the method parameter to determine which needs to be executed (as I do), or you can specify a different config url for each input:text and have your ajax code in separate files... how you decide to use it is up to you.</description>
		<content:encoded><![CDATA[<p><a href="#comment-1672" rel="nofollow">@Micah Lacombe</a> </p>
<p>Just to be more clear: you can either embed multiple queries inside a single file and use the method parameter to determine which needs to be executed (as I do), or you can specify a different config url for each input:text and have your ajax code in separate files&#8230; how you decide to use it is up to you.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
