<?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></title>
	<atom:link href="http://yeswedoservers.com/ayesblog/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://yeswedoservers.com/ayesblog</link>
	<description></description>
	<lastBuildDate>Mon, 07 Nov 2011 16:46:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Normalizing De-Normalized Data with MySQL (Part 1)</title>
		<link>http://yeswedoservers.com/ayesblog/?p=1019</link>
		<comments>http://yeswedoservers.com/ayesblog/?p=1019#comments</comments>
		<pubDate>Sun, 06 Nov 2011 21:52:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Products]]></category>
		<category><![CDATA[SQL for Flex 4.5]]></category>
		<category><![CDATA[State Government]]></category>
		<category><![CDATA[MySQL for Flex 4.5]]></category>

		<guid isPermaLink="false">http://yeswedoservers.com/blog/?p=1019</guid>
		<description><![CDATA[&#160;What is De-Normalized Data?
<p>Probably the best example of denormalized data are found in a link analysis diagram..</p>
<p>Normally we like our data served up in flat-files with rows and columns. Columns store data we wish segregated for a record, like name, address, city, state or zip. Rows store the complete list of data as is pertains [...]]]></description>
			<content:encoded><![CDATA[<h3>&nbsp;What is De-Normalized Data?</h3>
<p>Probably the best example of denormalized data are found in a link analysis diagram.<a href="http://yeswedoservers.com/blog/wp-content/uploads/2011/06/Unified-Communications-Data-Mining-and-Alerts.png"><img title="Unified Communications Data Mining and Alerts" width="300" height="180" class="size-medium wp-image-977" align="right" alt="" src="http://yeswedoservers.com/blog/wp-content/uploads/2011/06/Unified-Communications-Data-Mining-and-Alerts-300x180.png" /></a>.</p>
<p>Normally we like our data served up in flat-files with rows and columns. Columns store data we wish segregated for a record, like name, address, city, state or zip. Rows store the complete list of data as is pertains to one complete record; like a customer or product.&nbsp;</p>
<p>But what happens when our data won&#8217;t fit neatly into this model? Like a list of people attending a conference or links between product categories. A good example of denormalized data (that&#8217;s been normalized) are breadcrumbs on a webpage or a website menu system.&nbsp;</p>
<p><a href="http://yeswedoservers.com/blog/wp-content/uploads/2011/11/denormalized-data.png"><img title="denormalized-data in the &quot;list&quot; column of a MySQL table" width="300" height="239" class="alignnone size-medium wp-image-1032" align="left" vspace="2" hspace="2" border="0" alt="" src="http://yeswedoservers.com/blog/wp-content/uploads/2011/11/denormalized-data-300x239.png" /></a></p>
<p>&nbsp;For the sake of demonstration the table on the left has a field labeled &quot;firstname&quot; and a field containing denormalized data labeled &quot;list&quot;. The &quot;list&quot; field may hold a list of friends of the person named in the firstname field. It could also be a list of attendees to a meeting.&nbsp;</p>
<p>So what is so important about a denormalized data list. Just ask Facebook or eBay or Amazon. Their entire data mining models are based on denormalized data. Customers have different likes and dislikes. Some customers have many hobbies or favorite subjects and others may have very few. By normalizing &quot;denormalized&quot; data we are better able to identify target audiences, behaviors, and more importantly &quot;patterns&quot;. &nbsp;Yes, can we all say PATTERN! &nbsp;You may have seen a detective story where the savy investigator discovers a suspect has been seen near the scene of three homicides or robberies. If the suspect was around one of the scenes it may be thought of as a &quot;coincidence&quot;; if he/she was seen around two of the crime scenes&#8230;? definitely not a coincidence; and if he was seen around THREE of the crime scenes! GUILTY! (maybe&#8230;). &nbsp;Regardless, a denormalized list can lead us to patterns we would not necessarily spot or identify as fast, as we might using a denormalized list.</p>
<h3>&nbsp;XFN, FOAF and the Meaning of Life</h3>
<p>Contemporary models like XFN (extended friend network), FOAF (friend of a friend), Six Degrees of Separation (Stanley Milgram) or The Three Degrees of Influence Rule &#8211; written about in &nbsp;&quot;Connected&quot; by Christakis &amp; Fowler (Little,Brown &amp; Company 2009) as an understanding of confluence patterns of groups of people and their connections. Most definitely a real meat and potatoes explanation of human being&#8217;s quest for spirituality, love and the after-life. <img src='http://yeswedoservers.com/ayesblog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<h3>Back to the Real World</h3>
<p>To locate hidden patterns in mountains of denormalized data generated by legacy systems, websites, spreadsheets, financial records, receipts and hundreds of other data sources it takes just a few things. First of all, denormalized data would be a good thing but what if you don&#8217;t have any? Then you make some! Using a few flat-files, some random generated strings here and there we can piece together enough data to enable us to develop software that automates the process of churning through millions of records looking for a few &quot;needles in the hay stack.&quot;</p>
<h3>Development Tools, the Cloud and Other Sundry Items</h3>
<p>Open source and semi-open source solutions are here to stay. The days of being ham-stringed to licensing, versioning, and phone support are gone. &nbsp;Mainstream, seasoned products like MySQL, Actionscript, PHP, Flexicious (see part 4) and Adobe Flex 4.5 (Eclipse) are hard to beat for security, reliability, ease of use and overall adoption by professional developers.</p>
<p>For this project I am using Flex 4.5 Data Management Services which I found to be a bit friendlier with my AWS RDS MySQL account than my HostGator account. Flex has no trouble connecting to AWS via its built in php class builder and once you get through the Zend non-sense you are off and running.</p>
<h3>Joe Celko and Heavy Lifting</h3>
<p>The heavy lifting is done directly on the RDS server via &nbsp;MySQL Workbench; a phenomenal tool with advanced features you won&#8217;t find in phpMyAdmin or from the shell. Unless your Joe Celko who I am sure can will MySQL code into existence using pure thought &nbsp;and remote viewing, I suggest using it.</p>
<p>Workbench&#8217;s windowed interface lets you click between tabs for creating scripts, stored procedures, import/export and allows simultaneous connections to multiple servers all at the same time. The import/export tool is fantastic. No more time outs on data imports using phpMyAdmin.&nbsp;</p>
<h3>PHP, Stored Procedures and Flex Data Management Service</h3>
<p>For this project I used a normal php service class generated by the Flex 4.5 interface uploaded to the services directory of my hostgator folder where I store the Flex App.(this will be better explained in Parts 2 and 3).</p>
<p>I prefer using MySQL stored procedures whenever possible as they are easier to call from PHP,they run faster because they execute on the server and are more secure than a PHP file doing the same thing.</p>
<p>Custom PHP functions can easily be added to the Flex generated php class script. You can easily cut and paste existing class objects and modify them which will show up in your data services window which is pretty slick.&nbsp;</p>
<p>In Part 1 of this tutorial I am demonstrating how I was able to insert a random list of names from one table into a field of another table. The difficulty I encountered was generating the comma-delimited random string which contains from one to ten first names and subsequently inserting this result into a firstnames table to be used by an update query to insert one of the 500 strings, randomly into the demo data table.&nbsp;</p>
<p>The first thing was to create a table of first names that I could use to create comma delimited, random length firstnames string to update the main table. I created the first table &quot;firstnames&quot; using this script.</p>
<p><em>*All examples were done with MySQL Workbench pulling data from AWS. PHP code is run from my Hostgator hosted website. I like to do it this way as it keeps the php files and data on different cloud servers and reduces bandwidth charges marginally but adds an extra layer of security by requiring authentication between both sites via frequently changed Elastic IPs on AWS and a subsequent updated entry to the Hostgator CPanel &quot;Remote Access&quot; interface.</em></p>
<h3>The firstnames Table</h3>
<pre>
use db;
drop table if exists firstnames1;
create table firstnames1
(
firstname varchar(25),
id2 int(11)
);

alter table firstnames1 add column id INT UNSIGNED NOT NULL AUTO_INCREMENT,ADD PRIMARY KEY (id);
alter table firstnames1 add column list varchar(255),ADD INDEX (list);
</pre>
<p>This may look a bit unorthodox at first. I use this method to generate most of my initial tables. MySQL  requires a minimum of two fields to create a valid table and the typing can be redundant when working in a large database project so I have a library of scripts I can call up quickly which require only a few changes to generate a new table. It also provides more consistency to facilitate the writing of stored procedures. Of course a great programmer never writes the same line twice! (yeah&#8230;right <img src='http://yeswedoservers.com/ayesblog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>The table is probably self-explanatory but I will briefly explain two fields; 1) id2 and 2) list. I created the id2 field in case I needed a field for rank or storing a number similar to the rgt field used for pre-order tree traversal with nested sets. Regardless its always prudent &nbsp;to have an extra integer field.</p>
<p>&nbsp;</p>
<h3><strong>The rstring() Stored Procedure</strong></h3>
<pre>
DELIMITER $$

CREATE DEFINER=`root`@`%` PROCEDURE `rstring`()
BEGIN
SET @A1:=FLOOR(1 + RAND( ) *500);
SET @A2:=1;
SET @var = NULL;
SET @s = CONCAT(&quot;SELECT GROUP_CONCAT(firstname separator ',') into @var FROM firstnames WHERE id= &quot;,@A1,&quot; group by id&quot;);
PREPARE STMT1 FROM @s;
EXECUTE STMT1;
select @var;
END
</pre>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://yeswedoservers.com/ayesblog/?feed=rss2&#038;p=1019</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Protected: MySQL Script to Generate Daily Monitoring File (Updated Nov.5)</title>
		<link>http://yeswedoservers.com/ayesblog/?p=1007</link>
		<comments>http://yeswedoservers.com/ayesblog/?p=1007#comments</comments>
		<pubDate>Fri, 04 Nov 2011 22:19:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Products]]></category>
		<category><![CDATA[State Government]]></category>

		<guid isPermaLink="false">http://yeswedoservers.com/blog/?p=1007</guid>
		<description><![CDATA[There is no excerpt because this is a protected post.]]></description>
			<content:encoded><![CDATA[<form action="http://yeswedoservers.com/ayesblog/wp-pass.php" method="post">
<p>This post is password protected. To view it please enter your password below:</p>
<p><label for="pwbox-1007">Password:<br />
<input name="post_password" id="pwbox-1007" type="password" size="20" /></label><br />
<input type="submit" name="Submit" value="Submit" /></p></form>
]]></content:encoded>
			<wfw:commentRss>http://yeswedoservers.com/ayesblog/?feed=rss2&#038;p=1007</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Registrations Widget</title>
		<link>http://yeswedoservers.com/ayesblog/?p=994</link>
		<comments>http://yeswedoservers.com/ayesblog/?p=994#comments</comments>
		<pubDate>Wed, 29 Jun 2011 15:04:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tech News]]></category>

		<guid isPermaLink="false">http://yeswedoservers.com/blog/?p=994</guid>
		<description><![CDATA[
<p>Wanna Test This Widget&#8230;? send a text message from any SMS enabled phone to
(314) 467-0782
]]></description>
			<content:encoded><![CDATA[<h1 style="text-align: center; ">
<p><object width="640" height="498" id="scPlayer" class="embeddedObject" type="application/x-shockwave-flash" data="http://yeswedoservers.com/1/sms/gexRegWidget.swf"><param name="movie" value="http://yeswedoservers.com/1/sms/gexRegWidget.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#FFFFFF" /><param name="flashVars" /><param name="allowFullScreen" value="true" /><param name="scale" value="showall" /><param name="allowScriptAccess" value="always" /><param name="base" value="http://yeswedoservers.com/1/sms/gexRegWidget.swf" /></object><span style="font-size: x-large; "><span style="color: rgb(255, 0, 0); "><span style="font-family: Verdana; ">Wanna Test This Widget&#8230;? send a text message from any SMS enabled phone to</span></span></span></h1>
<h1 style="text-align: center; "><span style="font-size: xx-large; "><span style="color: rgb(255, 0, 0); "><span style="font-family: Verdana; ">(314) 467-0782</span></span></span></h1>
]]></content:encoded>
			<wfw:commentRss>http://yeswedoservers.com/ayesblog/?feed=rss2&#038;p=994</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>10 Things You Never Say to a Geek!</title>
		<link>http://yeswedoservers.com/ayesblog/?p=938</link>
		<comments>http://yeswedoservers.com/ayesblog/?p=938#comments</comments>
		<pubDate>Mon, 13 Jun 2011 21:03:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tech News]]></category>

		<guid isPermaLink="false">http://yeswedoservers.com/blog/?p=938</guid>
		<description><![CDATA[<p>&#160;1. My computer worked fine until YOU fixed it.</p>
<p>2. Did you erase EVERYTHING ?</p>
<p>3. I can&#8217;t pay you for a couple of weeks.</p>
<p>4. Hey! come on over this weekend for a barbecue and by-the-way can you take a look at my computer&#8230;?I think it might have&#160;a virus.</p>
<p>5. I think my nephew was looking at porn [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;<span style="font-size: large; ">1. My computer worked fine until <u><em><strong>YOU</strong></em></u><em><strong> </strong></em>fixed it.</span></p>
<p><span style="font-size: large; ">2. Did you erase <u><strong><em>EVERYTHING </em></strong></u>?</span></p>
<p><span style="font-size: large; ">3. I can&#8217;t pay you for a couple of weeks.</span></p>
<p><span style="font-size: large; ">4. Hey! come on over this weekend for a barbecue and by-the-way can you take a look at my computer&#8230;?I think it might have&nbsp;</span><span style="font-size: large; ">a virus.</span></p>
<p><span style="font-size: large; ">5. I think my nephew was looking at porn and that must be where I got that virus.</span></p>
<p><span style="font-size: large; ">6. I&#8217;m not computer literate.</span></p>
<p><span style="font-size: large; ">7. I know your busy but I only have one quick question.</span></p>
<p><span style="font-size: large; ">8. Gosh, you&#8217;re really smart where did you learn all that stuff.</span></p>
<p><span style="font-size: large; ">9. I know if you were here you could fix it really fast.</span></p>
<p><span style="font-size: large; ">10. $20 dollars seems kinda high! Your were only here for 10 minutes!</span></p>
]]></content:encoded>
			<wfw:commentRss>http://yeswedoservers.com/ayesblog/?feed=rss2&#038;p=938</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Are You a Geek? Take the Test!</title>
		<link>http://yeswedoservers.com/ayesblog/?p=926</link>
		<comments>http://yeswedoservers.com/ayesblog/?p=926#comments</comments>
		<pubDate>Mon, 13 Jun 2011 20:52:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tech News]]></category>

		<guid isPermaLink="false">http://yeswedoservers.com/blog/?p=926</guid>
		<description><![CDATA[&#160;
<p>1. &#34;Leo&#34; is a sign on the Zodiac. (true or false)</p>
<p>2. Jobs is something we all need (true or false)</p>
<p>3. SIP is something you do when you drink wine (true or false)</p>
<p>4. Outlook is the report your broker gives you on a hot stock (true or false)</p>
<p>5. Pandora is greek goddess (true or false)</p>
<p>6. Your [...]]]></description>
			<content:encoded><![CDATA[<h2>&nbsp;</h2>
<p><span style="font-size: large; ">1. &quot;Leo&quot; is a sign on the Zodiac. (true or false)</span></p>
<p><span style="font-size: large; ">2. Jobs is something we all need (true or false)</span></p>
<p><span style="font-size: large; ">3. SIP is something you do when you drink wine (true or false)</span></p>
<p><span style="font-size: large; ">4. Outlook is the report your broker gives you on a hot stock (true or false)</span></p>
<p><span style="font-size: large; ">5. Pandora is greek goddess (true or false)</span></p>
<p><span style="font-size: large; ">6. Your neighbor&#8217;s son fixes your computer when he&#8217;s home on spring break (yes/no).</span></p>
<p><span style="font-size: large; ">7. Your computer worked fine until your friend tried to fix it. (true or false)</span></p>
<p><span style="font-size: large; ">8. Monster is a kid movie (true or false)</span></p>
<p><span style="font-size: large; ">9. A dial-up modem is great if you don&#8217;t have enough money for DSL? (true or false)</span></p>
<p><span style="font-size: large; ">10. Everyone should have virus protection software on their computer? (true or false)</span></p>
<h3 style="color: red; ">If you answered true to three or more of these questions we recommend that you immediately locate the box that your computer came in, throw your computer in it and return it to the store where you bought it and get &nbsp;FULL REFUND because you are TOO STUPID to have one!</h3>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://yeswedoservers.com/ayesblog/?feed=rss2&#038;p=926</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>UPDATE! Flex 4.5 and PHP &#8211; configure ZendFramework the easy way (yeh&#8230;right!)</title>
		<link>http://yeswedoservers.com/ayesblog/?p=743</link>
		<comments>http://yeswedoservers.com/ayesblog/?p=743#comments</comments>
		<pubDate>Sun, 12 Jun 2011 19:19:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tech News]]></category>

		<guid isPermaLink="false">http://yeswedoservers.com/blog/?p=743</guid>
		<description><![CDATA[<p>QUICK UPDATE</p>
<p>Here are samples of the two critical files you need to make the Flex Data Management Service files work on your remote server. I am using a standard linux server on hostgator for this example.</p>
<p>1.&#160;amf_config.ini - change samples to your directory name and don&#8217;t forget the forward slash at the end or it won&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>QUICK UPDATE</p>
<p>Here are samples of the two critical files you need to make the Flex Data Management Service files work on your remote server. I am using a standard linux server on hostgator for this example.</p>
<p>1.&nbsp;<strong>amf_config.ini -</strong> <span style="font-size: small; "><em>change <strong><span style="color: rgb(255, 0, 0); ">samples </span></strong>to <u>your </u>directory name and don&#8217;t forget the forward slash at the end or it won&#8217;t work. Make sure you create a services directory underneath the &quot;samples directory&quot; so you can copy the services file that Flex creates. You can find that in the &quot;services&quot; folder within your project. This has to be copied manually from your local project folder over to your <strong><span style="color: rgb(255, 0, 0); ">samples/services</span></strong> folder. This is CRITICAL!!! Flex <strong><span style="color: rgb(255, 0, 0); ">DOES NOT</span></strong>&nbsp;do this for you.&nbsp;</em></span></p>
<p>[zend]</p>
<p>webroot = /home/yeswedoservers/public_html/<strong><span style="color: rgb(255, 0, 0); ">samples</span></strong>/</p>
<p>[zendamf]</p>
<p>amf.production = false</p>
<p>amf.directories[]=<span style="color: rgb(255, 0, 0); "><strong>services</strong></span></p>
<p>&nbsp;</p>
<p>2.Your Services file &#8211; something like &quot;ZipsService&quot; or YourService- this is found in the root directory of your flex project in the services directory. This file is totally case sensitive.<strong> </strong><span style="color: rgb(255, 0, 0); "><strong>DON&#8217;T RENAME IT! </strong></span>Copy it up to your &quot;samples/services&quot; folder and change the information below to match your server settings. Remember, these settings have nothing to do with your local wamp or mamp settings. Comment&nbsp;<span style="color: rgb(255, 0, 0); ">var $port = &quot;3306&quot;;</span> out if you have trouble. You likely won&#8217;t need this on your server.</p>
<p>var $username = &quot;your username&quot;;</p>
<p><span class="Apple-tab-span" style="white-space:pre">	</span>var $password = &quot;your password&quot;;</p>
<p><span class="Apple-tab-span" style="white-space:pre">	</span>var $server = &quot;localhost&quot;;</p>
<p><strong><span style="color: rgb(255, 0, 0); ">var $port = &quot;3306&quot;;</span></strong></p>
<p><span class="Apple-tab-span" style="white-space:pre">	</span>var $databasename = &quot;your database name&quot;;</p>
<p><span class="Apple-tab-span" style="white-space:pre">	</span>var $tablename = &quot;zips&quot;;</p>
<p><span class="Apple-tab-span" style="white-space:pre">	</span>var $connection;</p>
<p>&nbsp;I will post a way to trash the entire Flex Data Management &quot;cluster-f&amp;@k&quot; in a couple of weeks and use something much easier and faster. There is absolutely <span style="color: rgb(255, 0, 0); "><strong>no reason</strong></span> to use Zend or Flex Data Management services. You can do the same thing in regular PHP with 20% of the code. It&#8217;s Total junk!</p>
<p>Paul Chavaux</p>
<p>&#8212;&#8211;old article starts here.</p>
<p>Remote Webhost setup &#8211; Hostgator, etc.</p>
<p>1.Setup your php webservice in flex locally. i.e. wamp or xampp, whatever&#8230;</p>
<p>2. Don&#8217;t build an mxml page yet.</p>
<p>3. Export a release build.</p>
<p>4. Make sure there is a &#8216;services&#8217; folder in the release folder, i.e., c:\wamp\www\myReleaseBuild\services</p>
<p>5. Make sure there is a php file in this folder that matches the service name you created.</p>
<p>6. Open Filezilla (download this at filezilla if you don&#8217;t have it) and log into your ftp host on your webhosting site., i.e., hostgator, etc.</p>
<p>7. create a folder under the root, i.e., /home/public_html/myNewFolder</p>
<p>8. upload the release build under this new folder. make sure you only upload the files UNDER your local release build folder like this.</p>
<p>c:\wamp\www\myReleaseBuild\allYourFiles</p>
<p>just upload the &quot;allYourFiles&quot; and not myReleaseBuild\allYourFiles</p>
<p>(you are doing this for a reason I will explain later.</p>
<p>9. You will now need to edit two files because they need to include your webhosting information instead of your local server info.</p>
<p>10. If you have cpanel in your webhosting package open up the file manager and go to the new directory you just created that now contains a copy of the files of your release build.</p>
<p>11. go to the services directory and open the php service file., i.e., myService.php which has the php class with all the stuff flex needs to communicate with your php/mysql server/database, etc.</p>
<p>12. find the following lines.</p>
<p>this is connection info for your local installation., i.e., wamp, xampp, whatever.</p>
<p>&nbsp;&nbsp;&nbsp; var $username = &quot;root&quot;;<br />
&nbsp;&nbsp;&nbsp; var $password = &quot;&quot;;<br />
&nbsp;&nbsp;&nbsp; var $server = &quot;localhost&quot;;<br />
&nbsp;&nbsp;&nbsp; var $port = &quot;3306&quot;;<br />
&nbsp;&nbsp;&nbsp; var $databasename = &quot;yourLocalDatabase&quot;;<br />
&nbsp;&nbsp;&nbsp; var $tablename = &quot;tableWithYourRecords&quot;;</p>
<p>&nbsp;</p>
<p>change it to something like this for your hostgator account or whatever hosting account you have. you can find this stuff in your cpanel under the databases or just use the ftp login and password for your ftp which usually works, if not, create a new one in the databases area of cpanel or your webhost panel.</p>
<p>&nbsp;&nbsp;&nbsp; var $username = &quot;probablyYourFTPLoginName&quot;;<br />
&nbsp;&nbsp;&nbsp; var $password = &quot;probablyYourFTPPassWord&quot;;<br />
&nbsp;&nbsp;&nbsp; var $server = &quot;localhost&quot;;<br />
&nbsp;&nbsp;&nbsp; var $port = &quot;3306&quot;;<br />
&nbsp;&nbsp;&nbsp; var $databasename = &quot;yourWebDatabaseName&quot;;<br />
&nbsp;&nbsp;&nbsp; var $tablename = &quot;tableWithYourRecordsInIt&quot;;</p>
<p>sometimes &quot;localhost&#8217; won&#8217;t work and you will need to put your NON-www address, for instance, instead of www.yourDomainName.com it would be yourDomainName.com without the www. Or if this fails, open up a cmd window on your computer and ping your domain name, i.e., ping yourDomainName.com and get the ip address and put it in the $server variable. If none of that works contact your webhost and ask, but normally, localhost works fine.</p>
<p>sometimes port 3306 can be left blank, too.</p>
<p>This is really easier than I am making it.</p>
<p>13. Save that puppy &#8211; remember, this stays in the services folder. There shouldn&#8217;t be anything else in it but this service file (php file,oh yeah, a service is just a php file).</p>
<p>14. Now move up one directory level to the &quot;root level of your release build directory&quot; like this.</p>
<p>-&gt;root-level-of-your-release-build</p>
<p>-&gt;-&gt;services-folder-underneath-root-level-of-your-release-build</p>
<p>go to the top level which is: -&gt;root-level-of-your-release-build</p>
<p>15. you will see your swf and html files and a bunch of other nonsense, too. Find the amf_config.ini file. This file is pure evil and no one except Mihai Corlan at Adobe knows how to use it. Oh, yeah&#8230;did I mention that everyone at Zend and Adobe are morons except Mihai?&nbsp; Yes, they are all idiots and will suck you into a time tunnel or black hole with all their self-aggrandizing word soup they call Support Center&#8230;don&#8217;t waste your time on those sites or your boss will fire you.</p>
<p>okay, back to the task at hand&#8230;</p>
<p>the amf_config.ini file looks like this:</p>
<p>[zend]<br />
;set the absolute location path of webroot directory, example:<br />
;Windows: C:\apache\www<br />
;MAC/UNIX: /user/apache/www<br />
webroot =/home/yeswedo/public_html/1</p>
<p>;set the absolute location path of zend installation directory, example:<br />
;Windows: C:\apache\PHPFrameworks\ZendFramework\library<br />
;MAC/UNIX: /user/apache/PHPFrameworks/ZendFramework/library<br />
zend_path =/home/yeswedo/public_html/ZendFramework/library</p>
<p>[zendamf]<br />
amf.production = false<br />
amf.directories[]=webServiceTemplate/services</p>
<p><span style="font-size: larger;"><strong>Now delete some of the bullshit,</strong></span> well, most of it is bullshit and will throw mystery errors like the Fred Merkle in the 1908 world series. Mystery errors are errors that are created by the error fairies and can never be resolved without kidnapping the CEO of Adobe and holding him ransom for 445 days (one day longer than the Iranian Hostage Crisis) and threatening to take away all his ill-gotten stock options&#8230;.(don&#8217;t try this at home).</p>
<p>[zend]<br />
webroot =c:\wamp\www\<br />
;zend_path =c:\wamp\www\ZendFramework\library</p>
<p>[zendamf]<br />
amf.production = false<br />
amf.directories[]=yourLocalReleasebuildFolderName/services</p>
<p><span style="font-size: larger;"><strong>YOUR NOT DONE YET! THIS IS THE IMPORTANT PART OR YOU WILL THROUGH THE DREADED CHANNEL ERRORS!</strong></span> <br />
[zend]<br />
webroot =c:\wamp\www\<br />
;zend_path =c:\wamp\www\ZendFramework\library</p>
<p>[zendamf]<br />
amf.production = false<br />
amf.directories[]=yourLocalReleasebuildFolderName/services</p>
<p>Let&#8217;s go line by line:</p>
<p>nothing to change on the first line [zend]</p>
<p>[zend]</p>
<p>second like is so easy it is hard. webroot =</p>
<p>this is the web root on your webhosting site. Most of the time it is located in the top left corner of your cpanel and should look something like:</p>
<p>/home/yourDomainNameWithTheDotComOrSomethingClose/public_html/</p>
<p>so if your domain is yeswedoservers.com then this line might look something like:</p>
<p>/home/yeswedo/public_html</p>
<p>make sure you leave off the last &quot;/&quot; or you will throw a channel error.</p>
<p>if you have your stuff in a subdirectory of your webroot like this:</p>
<p>/home/yeswedo/public_html/myCoolFolderWhereIStoreMyFiles/myReleaseBuildFolder/</p>
<p>where myCoolFolderIStoreMyFiles is a subdirectory with workfiles or something&#8230;whatever&#8230;then make sure you modify this like to read:</p>
<p>/home/yeswedo/public_html/myCoolFolderWhereIStoreMyFiles</p>
<p>okay..that line is done and make sure there is no semi-colon or spew in front of it.</p>
<p>the next line looks something like this before modification: Notice the semi-colon-spew-that-you-will-delete, too. Delete everything back to the equal sign &quot;=&quot; and enter the path to the ZendFramework\library&#8230;</p>
<p>;zend_path =c:\wamp\www\ZendFramework\library</p>
<p>should look like:</p>
<p>zend_path =/home/yeswedo/public_html/ZendFramework/library</p>
<p>where yeswedo is the name of YOUR&nbsp;folder (not mine), again, this should be in the upper left corner of your cpanel.</p>
<p>If you have a different path to your ZendFramework directory then change it accordingly.</p>
<p>You&#8217;re almost done. The next three lines may look like this before modification&#8230;<br />
[zendamf]<br />
amf.production = false<br />
amf.directories[]=webServiceTemplate/services</p>
<p>leave the first two as they are above, like this:<br />
[zendamf]<br />
amf.production = false</p>
<p>and change the last line to match the releaseBuildDirectory on the webhost, remember this from above?<br />
amf.directories[]=thisIsYourReleaseBuildFolder/services</p>
<p>notice that this points to the php service file we edited above, too.</p>
<p>Save and exit.</p>
<p>16. Now try to run your releaseBuildfile.swf or releaseBuildFile.html. and see if you get an error. If you get a channel error or gateway.php not found error check your paths.</p>
<p>17. if you keep getting channel errors you may have a syntax error in your php class file (this is the one in your services folder). If you used the editor from your webhost to edit these files you shouldn&#8217;t have a problem. Some people say the files need to be saved in utf-8 or ansi, but they should be fine if edited using your webhost editor, otherwise use a namebrand html editor like dreamweaver&#8230;just open and re-save.</p>
<p>Most of the time, channel errors are caused by a bad path in the amf_config.ini file. Don&#8217;t mess with the gateway.php file because it only exists to read the amf_config.ini file.</p>
<p>Flex generates the class php file in the services directory and if it works locally then it will work on the webhost as long as you change the connection stuff I outlined above.</p>
<p>Let me know if you have any questions.</p>
<p>Paul Chavaux</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://yeswedoservers.com/ayesblog/?feed=rss2&#038;p=743</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
		<item>
		<title>Quick-Tips!-Browser Project Folders</title>
		<link>http://yeswedoservers.com/ayesblog/?p=793</link>
		<comments>http://yeswedoservers.com/ayesblog/?p=793#comments</comments>
		<pubDate>Mon, 28 Jun 2010 19:58:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tech News]]></category>

		<guid isPermaLink="false">http://yeswedoservers.com/blog/?p=793</guid>
		<description><![CDATA[<p></p>
]]></description>
			<content:encoded><![CDATA[<p><object width="640" height="498" data="http://content.screencast.com/users/PaulChavaux/folders/Default/media/11acf758-8905-4d77-a7c6-131c294ac470/bootstrap.swf" type="application/x-shockwave-flash" class="embeddedObject" id="scPlayer"><param value="http://content.screencast.com/users/PaulChavaux/folders/Default/media/11acf758-8905-4d77-a7c6-131c294ac470/bootstrap.swf" name="movie" /><param value="high" name="quality" /><param value="#FFFFFF" name="bgcolor" /><param value="thumb=http://content.screencast.com/users/PaulChavaux/folders/Default/media/11acf758-8905-4d77-a7c6-131c294ac470/FirstFrame.jpg&amp;containerwidth=640&amp;containerheight=498&amp;content=http://content.screencast.com/users/PaulChavaux/folders/Default/media/11acf758-8905-4d77-a7c6-131c294ac470/Toolbar-Project-Folders.swf&amp;blurover=false" name="flashVars" /><param value="true" name="allowFullScreen" /><param value="showall" name="scale" /><param value="always" name="allowScriptAccess" /><param value="http://content.screencast.com/users/PaulChavaux/folders/Default/media/11acf758-8905-4d77-a7c6-131c294ac470/" name="base" /></object></p>
]]></content:encoded>
			<wfw:commentRss>http://yeswedoservers.com/ayesblog/?feed=rss2&#038;p=793</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WordPress &#8211; How to Log-In to a WordPress Blog</title>
		<link>http://yeswedoservers.com/ayesblog/?p=786</link>
		<comments>http://yeswedoservers.com/ayesblog/?p=786#comments</comments>
		<pubDate>Mon, 28 Jun 2010 18:47:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tech News]]></category>

		<guid isPermaLink="false">http://yeswedoservers.com/blog/?p=786</guid>
		<description><![CDATA[<p></p>
]]></description>
			<content:encoded><![CDATA[<p><object id="scPlayer" class="embeddedObject" width="640" height="498" type="application/x-shockwave-flash" data="http://content.screencast.com/users/PaulChavaux/folders/Default/media/c75f8ea4-e9a2-474f-a7af-a70a400d1b28/bootstrap.swf" ><param name="movie" value="http://content.screencast.com/users/PaulChavaux/folders/Default/media/c75f8ea4-e9a2-474f-a7af-a70a400d1b28/bootstrap.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#FFFFFF" /><param name="flashVars" value="thumb=http://content.screencast.com/users/PaulChavaux/folders/Default/media/c75f8ea4-e9a2-474f-a7af-a70a400d1b28/FirstFrame.jpg&#038;containerwidth=640&#038;containerheight=498&#038;content=http://content.screencast.com/users/PaulChavaux/folders/Default/media/c75f8ea4-e9a2-474f-a7af-a70a400d1b28/WordPress-How-to-Log-In.swf&#038;blurover=false" /><param name="allowFullScreen" value="true" /><param name="scale" value="showall" /><param name="allowScriptAccess" value="always" /><param name="base" value="http://content.screencast.com/users/PaulChavaux/folders/Default/media/c75f8ea4-e9a2-474f-a7af-a70a400d1b28/" /></object></p>
]]></content:encoded>
			<wfw:commentRss>http://yeswedoservers.com/ayesblog/?feed=rss2&#038;p=786</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PPC-What is AdSense PPC Advertising?</title>
		<link>http://yeswedoservers.com/ayesblog/?p=782</link>
		<comments>http://yeswedoservers.com/ayesblog/?p=782#comments</comments>
		<pubDate>Mon, 28 Jun 2010 18:33:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tech News]]></category>

		<guid isPermaLink="false">http://yeswedoservers.com/blog/?p=782</guid>
		<description><![CDATA[<p></p>
]]></description>
			<content:encoded><![CDATA[<p><object width="640" height="498" data="http://content.screencast.com/users/PaulChavaux/folders/Default/media/4871bfc4-2a4e-4226-b7c5-699440dba73e/bootstrap.swf" type="application/x-shockwave-flash" class="embeddedObject" id="scPlayer"><param value="http://content.screencast.com/users/PaulChavaux/folders/Default/media/4871bfc4-2a4e-4226-b7c5-699440dba73e/bootstrap.swf" name="movie" /><param value="high" name="quality" /><param value="#FFFFFF" name="bgcolor" /><param value="thumb=http://content.screencast.com/users/PaulChavaux/folders/Default/media/4871bfc4-2a4e-4226-b7c5-699440dba73e/FirstFrame.jpg&amp;containerwidth=640&amp;containerheight=498&amp;content=http://content.screencast.com/users/PaulChavaux/folders/Default/media/4871bfc4-2a4e-4226-b7c5-699440dba73e/PPC-What-is-Adsense.swf&amp;blurover=false" name="flashVars" /><param value="true" name="allowFullScreen" /><param value="showall" name="scale" /><param value="always" name="allowScriptAccess" /><param value="http://content.screencast.com/users/PaulChavaux/folders/Default/media/4871bfc4-2a4e-4226-b7c5-699440dba73e/" name="base" /></object></p>
]]></content:encoded>
			<wfw:commentRss>http://yeswedoservers.com/ayesblog/?feed=rss2&#038;p=782</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PPC-What is Pay-Per-Click</title>
		<link>http://yeswedoservers.com/ayesblog/?p=780</link>
		<comments>http://yeswedoservers.com/ayesblog/?p=780#comments</comments>
		<pubDate>Mon, 28 Jun 2010 18:21:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tech News]]></category>

		<guid isPermaLink="false">http://yeswedoservers.com/blog/?p=780</guid>
		<description><![CDATA[<p></p>
]]></description>
			<content:encoded><![CDATA[<p><object width="640" height="498" data="http://content.screencast.com/users/PaulChavaux/folders/Default/media/cadc5f4e-05c6-4d2f-b7c6-945fa7c077d7/bootstrap.swf" type="application/x-shockwave-flash" class="embeddedObject" id="scPlayer"><param value="http://content.screencast.com/users/PaulChavaux/folders/Default/media/cadc5f4e-05c6-4d2f-b7c6-945fa7c077d7/bootstrap.swf" name="movie" /><param value="high" name="quality" /><param value="#FFFFFF" name="bgcolor" /><param value="thumb=http://content.screencast.com/users/PaulChavaux/folders/Default/media/cadc5f4e-05c6-4d2f-b7c6-945fa7c077d7/FirstFrame.jpg&amp;containerwidth=640&amp;containerheight=498&amp;content=http://content.screencast.com/users/PaulChavaux/folders/Default/media/cadc5f4e-05c6-4d2f-b7c6-945fa7c077d7/PPC-What-is-Pay-Per-Click.swf&amp;blurover=false" name="flashVars" /><param value="true" name="allowFullScreen" /><param value="showall" name="scale" /><param value="always" name="allowScriptAccess" /><param value="http://content.screencast.com/users/PaulChavaux/folders/Default/media/cadc5f4e-05c6-4d2f-b7c6-945fa7c077d7/" name="base" /></object></p>
]]></content:encoded>
			<wfw:commentRss>http://yeswedoservers.com/ayesblog/?feed=rss2&#038;p=780</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
