<?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>Tips | Web Custom Controls</title>
	<atom:link href="http://webcustomcontrols.com/category/tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://webcustomcontrols.com</link>
	<description>Web Custom Controls</description>
	<lastBuildDate>Thu, 11 Oct 2012 03:16:07 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.1</generator>
	<item>
		<title>Reporting Bugs with Web Custom Control Projects</title>
		<link>http://webcustomcontrols.com/tips/reporting-bugs-with-web-custom-control-projects/</link>
					<comments>http://webcustomcontrols.com/tips/reporting-bugs-with-web-custom-control-projects/#respond</comments>
		
		<dc:creator><![CDATA[Daniel L. Taylor]]></dc:creator>
		<pubDate>Thu, 11 Oct 2012 03:16:07 +0000</pubDate>
				<category><![CDATA[Tips]]></category>
		<guid isPermaLink="false">http://webcustomcontrols.com/?p=678</guid>

					<description><![CDATA[Just a quick note: if you encounter a problem in a project which uses Web Custom Controls or any of the freeware code I post on this blog: If the problem is clearly related to Web Custom Controls, please contact me directly and do not contact Real Software or file a feedback report. I don&#8217;t [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Just a quick note: if you encounter a problem in a project which uses Web Custom Controls or any of the freeware code I post on this blog:</p>
<ul>
<li>If the problem is clearly related to Web Custom Controls, please <a title="Support" href="http://webcustomcontrols.com/?page_id=78">contact me</a> directly and do not contact Real Software or file a feedback report. I don&#8217;t want Real Software staff to have to sort through problems that are part of my toolkit and are therefore my responsibility to fix. If the problem is ultimately due to a Realbasic issue, I can confirm it and file a feedback report.</li>
<li>If the problem appears to be unrelated to Web Custom Controls, please verify this before contacting Real Software or filing a feedback report. You can do this by creating a separate test project which does not include Web Custom Controls and replicating the problem there. You should have such a test project for a feedback report any way as it helps Real Software staff to quickly identify the problem. Once you have this, go ahead and contact Real Software. If you don&#8217;t have time to do this, please <a title="Support" href="http://webcustomcontrols.com/?page_id=78">contact me</a> first so that I can evaluate whether or not the problem has anything to do with Web Custom Controls.</li>
</ul>
<p>I don&#8217;t consider this a major problem, but it has come to my attention that a user reported a bug to Real Software that should have come to me. I want to make sure this does not happen in the future as it wastes their time and delays the fix.</p>
]]></content:encoded>
					
					<wfw:commentRss>http://webcustomcontrols.com/tips/reporting-bugs-with-web-custom-control-projects/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Quitting a CGI App on Linux</title>
		<link>http://webcustomcontrols.com/tips/quitting-a-cgi-app-on-linux/</link>
					<comments>http://webcustomcontrols.com/tips/quitting-a-cgi-app-on-linux/#comments</comments>
		
		<dc:creator><![CDATA[Daniel L. Taylor]]></dc:creator>
		<pubDate>Sat, 26 May 2012 10:39:08 +0000</pubDate>
				<category><![CDATA[Tips]]></category>
		<guid isPermaLink="false">http://webcustomcontrols.com/?p=466</guid>

					<description><![CDATA[So you followed my advice in Speed Up CGI Launch Times and now you&#8217;re wondering: how do I quit my app so I can install an update? Update: Hat tip to Jay Madren for pointing out that you can quit an app on Linux by name using pkill. Check out his other tips below. Most [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>So you followed my advice in <a title="Speed Up CGI Launch Times" href="http://webcustomcontrols.com/?p=250">Speed Up CGI Launch Times</a> and now you&#8217;re wondering: <em>how do I quit my app so I can install an update?</em> <span id="more-466"></span><br />
<div class='et-box et-info'>
					<div class='et-box-content'><span style="color: black;"><strong>The short, short version:</strong> If you need to quit a CGI app on a Linux VPS:</p>
<p>If you want to quit all instances of your app named MyAppName:</p>
<ol>
<li>Login using your SSH account.</li>
<li>Quit the app with the command: <code>pkill MyAppName</code></li>
</ol>
<p>If you want to quit a specific instance by PID:</p>
<ol>
<li>Login using your SSH account.</li>
<li>Find the app PID with the command: <code>pidof MyAppName</code></li>
<li>Quit the app with the command: <code>kill PID</code></li>
</ol>
<p></span></div></div></p>
<p><strong>Update:</strong> Hat tip to Jay Madren for pointing out that you can quit an app on Linux by name using pkill. Check out his other tips below.</p>
<p>Most WE users who are deploying CGI apps to a VPS are no doubt deploying them to web hosts that use Linux servers. When you sign up for a VPS your web host will provide you with a SSH account which you can use to login and run commands. You do not require root access to find and quit your app. Any CGIs or apps that launch on your VPS should launch under your account. (If you have a Windows or Mac VPS or stand alone server then you should be able to remote into the full GUI and use the normal tools to find and quit any process.)</p>
<p>The command to quit your app is <strong>kill</strong> and it requires the process identifier, or PID, of your app. There are two ways to find the PID.</p>
<ul>
<li>Type the command: <code>pidof MyAppName</code></li>
<li>Type the command: <code>top</code></li>
</ul>
<p>The first will return the PID of your app. The second will return the top processes. Look for your app in the far right column, and find its PID in the far left column.</p>
<p>Once you have the PID simply type: <code>kill PID</code></p>
<p>Now you can install your update. Note that it is possible that a user could launch your app again while you start transferring files, so you might have to kill the process again (it will have a new PID) or perform the update at a different time when your site has no traffic.</p>
]]></content:encoded>
					
					<wfw:commentRss>http://webcustomcontrols.com/tips/quitting-a-cgi-app-on-linux/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Speed Up CGI Launch Times</title>
		<link>http://webcustomcontrols.com/tips/speed-up-cgi-launch-times/</link>
					<comments>http://webcustomcontrols.com/tips/speed-up-cgi-launch-times/#respond</comments>
		
		<dc:creator><![CDATA[Daniel L. Taylor]]></dc:creator>
		<pubDate>Mon, 21 May 2012 21:36:18 +0000</pubDate>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[cgi]]></category>
		<category><![CDATA[launch]]></category>
		<category><![CDATA[performance]]></category>
		<guid isPermaLink="false">http://webcustomcontrols.com/?p=250</guid>

					<description><![CDATA[Follow this simple tip to speed up launch times for WE CGI apps. One of the frequent complaints found on the Realbasic forums and mailing list is that Real Studio WE applications have a lengthy startup time. I&#8217;ve found that the perception of a long startup time is due to several factors: WE loads multiple [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Follow this simple tip to speed up launch times for WE CGI apps.<br />
<span id="more-250"></span><br />
<div class='et-box et-info'>
					<div class='et-box-content'><span style="color:black;"><strong>The short, short version:</strong> WE CGI apps quit when there are no users. The next user has to wait for the app to startup again. If you have a dedicated server or VPS, eliminate this delay by adding  
<code>Self.AutoQuit = False</code> 
to App.Open.</span></div></div><br />
One of the frequent complaints found on the Realbasic forums and mailing list is that Real Studio WE applications have a lengthy startup time. I&#8217;ve found that the perception of a long startup time is due to several factors:</p>
<ul>
<li>WE loads multiple pages at startup, including any <em>ImplicitInstance</em> pages or pages you create in <em>App.Open.</em> Of course this results in very fast page switching once things are running.</li>
<li>WE shows a startup screen. A simple, single page site doesn&#8217;t necessarily take longer to load then a PHP page, but the startup screen carries a psychological factor. We&#8217;re used to seeing pages draw onto our screen. But a progress bar makes us think <em>&#8220;Oh great, I&#8217;m waiting.&#8221;</em></li>
<li><strong>CGI deployments often have to launch the WE application.</strong></li>
</ul>
<p>That last point is in bold for a reason. The default behavior with a CGI app is for the app to quit once the last Session closes. So if a user finished with your site 15 minutes ago, and a new user comes along, that new user has to wait for the app to launch. Even on a dedicated server the delay is quite noticeable.</p>
<p>The solution? For dedicated servers and VPS accounts, add this line to your <em>App.Open</em> event:</p>
<p><code>Self.AutoQuit = False</code></p>
<p>Now your app will stay open even when there are no Sessions. For obvious reasons you shouldn&#8217;t do this with a shared hosting account. And even with a server or VPS you should keep an eye on your app to catch any memory leaks. But if your app is solid and your hosting situation allows for it, this one change can significantly improve the perception of speed.</p>
<p>Keep in mind when you do this that you will have to kill the running application process any time you update the application file on the server. You normally have to do this any way. <a href="http://webcustomcontrols.com/?p=466" title="Quitting a CGI App on Linux">Here&#8217;s how.</a></p>
]]></content:encoded>
					
					<wfw:commentRss>http://webcustomcontrols.com/tips/speed-up-cgi-launch-times/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
