<?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>Axelology</title>
	<atom:link href="http://www.axelscript.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.axelscript.com</link>
	<description>Axel Jensen on Flex, Coldfusion and... other stuff</description>
	<lastBuildDate>Sun, 31 Mar 2013 02:18:46 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Installing Brunch.io on windows</title>
		<link>http://www.axelscript.com/2013/02/06/installing-brunch-io-on-windows/</link>
		<comments>http://www.axelscript.com/2013/02/06/installing-brunch-io-on-windows/#comments</comments>
		<pubDate>Wed, 06 Feb 2013 19:41:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/?p=646</guid>
		<description><![CDATA[1. Install nodejs http://nodejs.org/download/ (i&#8217;m using 0.8.14) http://blog.nodejs.org/2012/10/25/node-v0.8.14/ 2. open cmd 3. reference(http://brunch.io/) execute “npm install -g brunch@1.4.0” 4. install git (git is needed for brunch-eggs-and-bacon to pull new projects) http://msysgit.github.com/ http://code.google.com/p/msysgit/downloads/list?q=full+installer+official+git use default options next &#62; next &#62; next &#62; finish 5. Open the new program “Git Bash”, and use it as your command line [...]]]></description>
				<content:encoded><![CDATA[<p>1. Install nodejs http://nodejs.org/download/</p>
<p>(i&#8217;m using 0.8.14) http://blog.nodejs.org/2012/10/25/node-v0.8.14/</p>
<p>2. open cmd</p>
<p>3. reference(http://brunch.io/) execute “npm install -g brunch@1.4.0”</p>
<p>4. install git (git is needed for brunch-eggs-and-bacon to pull new projects)</p>
<ul>
<li>http://msysgit.github.com/</li>
<li>http://code.google.com/p/msysgit/downloads/list?q=full+installer+official+git</li>
<li>use default options next &gt; next &gt; next &gt; finish</li>
</ul>
<p>5. Open the new program “Git Bash”, and use it as your command line tool for brunch, when open verify “brunch” command is found, and “git”, if both give help on how to use, then your good.</p>
<p>5.1 Install ruby, (check the options that add to your PATH when installing)(which installs gem), gem is needed for the next step<br />
http://rubyinstaller.org/downloads/ &#8211; http://rubyforge.org/frs/download.php/76706/rubyinstaller-1.9.3-p374.exe</p>
<p>5.2 Install sass &#8211; run “gem install sass” (this will compile your .less or scss files for css)</p>
<p>6. use brunch-eggs-and-bacon to start a new project</p>
<ul>
<li>cd /c/www</li>
<li>To paste, you may have to right click the title bar of the app, and edit &gt; paste</li>
<li>brunch new brunchTest -s github://nezoomie/brunch-eggs-and-bacon</li>
<li>this will run a couple lines, then should be done</li>
<li>cd /c/www/brunchTest</li>
<li>brunch watch &#8211;server (will create a local server to test with)</li>
<li>brunch watch &#8211;o (will optimize and minify code for server when deploying)</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2013/02/06/installing-brunch-io-on-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eclipse Juno Install process selenium</title>
		<link>http://www.axelscript.com/2012/12/28/eclipse-juno-install-process-selenium/</link>
		<comments>http://www.axelscript.com/2012/12/28/eclipse-juno-install-process-selenium/#comments</comments>
		<pubDate>Fri, 28 Dec 2012 17:36:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/?p=642</guid>
		<description><![CDATA[Download Eclipse Juno: http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/juno/SR1/eclipse-java-juno-SR1-macosx-cocoa-x86_64.tar.gz after install run this update. http://download.eclipse.org/eclipse/updates/junoSR1Patch-tmp Download Subclipse: http://marketplace.eclipse.org/content/subclipse#.UN3Ta4njl6o Install TestNG http://beust.com/eclipse]]></description>
				<content:encoded><![CDATA[<p>Download Eclipse Juno:<br />
<a href="http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/juno/SR1/eclipse-java-juno-SR1-macosx-cocoa-x86_64.tar.gz">http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/juno/SR1/eclipse-java-juno-SR1-macosx-cocoa-x86_64.tar.gz</a></p>
<p>after install run this update.</p>
<p>http://download.eclipse.org/eclipse/updates/junoSR1Patch-tmp</p>
<p>Download Subclipse:<br />
<a href="http://marketplace.eclipse.org/content/subclipse#.UN3Ta4njl6o">http://marketplace.eclipse.org/content/subclipse#.UN3Ta4njl6o</a></p>
<p>Install TestNG<br />
<a href="http://beust.com/eclipse">http://beust.com/eclipse</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2012/12/28/eclipse-juno-install-process-selenium/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Notes to self: Coreaudiod goes crazy</title>
		<link>http://www.axelscript.com/2012/12/20/notes-to-self-coreaudiod-goes-crazy/</link>
		<comments>http://www.axelscript.com/2012/12/20/notes-to-self-coreaudiod-goes-crazy/#comments</comments>
		<pubDate>Thu, 20 Dec 2012 18:19:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/?p=637</guid>
		<description><![CDATA[The other day, I was trying to uninstall a program and so happened to delete my /Library folder on mac, which I then restored from another machine&#8230; after a restart, some craziness started happening, after looking at activity monitor I found that coreaudiod was going crazy, 130% cpu usage. Here is what i did to [...]]]></description>
				<content:encoded><![CDATA[<p>The other day, I was trying to uninstall a program and so happened to delete my /Library folder on mac, which I then restored from another machine&#8230;</p>
<p>after a restart, some craziness started happening, after looking at activity monitor I found that coreaudiod was going crazy, 130% cpu usage.</p>
<p>Here is what i did to fix it.</p>
<p>terminal: </p>
<p>Deleted the Audio folder located at [OSX HDD Name]/Library/Preferences/ and create a new one as root in the terminal:<br />
<code>sudo mkdir /Library/Preferences/Audio</code></p>
<p>then set permissions:<br />
<code>sudo chown -R _coreaudiod:admin /Library/Preferences/Audio</code></p>
<p><a href="https://discussions.apple.com/thread/4160772?start=0&#038;tstart=0">https://discussions.apple.com/thread/4160772?start=0&#038;tstart=0</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2012/12/20/notes-to-self-coreaudiod-goes-crazy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Notes To Self: Jenkins change default port Mac OSX</title>
		<link>http://www.axelscript.com/2012/12/18/jenkinsport/</link>
		<comments>http://www.axelscript.com/2012/12/18/jenkinsport/#comments</comments>
		<pubDate>Tue, 18 Dec 2012 15:00:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Integration Testing]]></category>
		<category><![CDATA[Notes to self]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/?p=631</guid>
		<description><![CDATA[I have a webserver running on my mac, and it happens to already be running on port 8080, which is jenkins default port, so i need to change it&#8230;. I found a good stackoverflow on this, and want to repost for myself, in case stack overflow ever goes away. cd /Applications/Jenkins sudo vi winstone.properties Add [...]]]></description>
				<content:encoded><![CDATA[<p>I have a webserver running on my mac, and it happens to already be running on port 8080, which is jenkins default port, so i need to change it&#8230;.</p>
<p>I found a good <a href="http://stackoverflow.com/questions/7139338/change-jenkins-port-on-macos">stackoverflow</a> on this, and want to repost for myself, in case stack overflow ever goes away.</p>
<pre>
cd /Applications/Jenkins 
sudo vi winstone.properties 
</pre>
<p>Add httpPort=9999 to the file. </p>
<p>To see all the options you can put in there type java -jar jenkins.war &#8211;help</p>
<p>run </p>
<pre>
java -jar jenkins.war from /Applications/Jenkins. 
</pre>
<p>Your port will be changed. jenkins.war picks up config options from ./winstone.properties by default.</p>
<p>now go to a browser and try http://localhost:9999</p>
]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2012/12/18/jenkinsport/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Notes To Self: uninstall Jenkins Mac</title>
		<link>http://www.axelscript.com/2012/12/17/notes-to-self-uninstall-jenkins-mac/</link>
		<comments>http://www.axelscript.com/2012/12/17/notes-to-self-uninstall-jenkins-mac/#comments</comments>
		<pubDate>Mon, 17 Dec 2012 19:36:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Integration Testing]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/?p=633</guid>
		<description><![CDATA[stack overflow Something like this: sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist sudo rm -rf /Applications/Jenkins &#8220;/Library/Application Support/Jenkins&#8221; /Library/Documentation/Jenkins and if you want to get rid of all the jobs and builds: sudo rm -rf /Users/Shared/Jenkins and to delete the jenkins user and group (if you chose to use them): sudo dscl . -delete /Users/jenkins sudo dscl . [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://stackoverflow.com/questions/11608996/how-to-uninstall-jenkins">stack overflow<br />
</a></p>
<p>Something like this:</p>
<p>sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist<br />
sudo rm -rf /Applications/Jenkins &#8220;/Library/Application Support/Jenkins&#8221; /Library/Documentation/Jenkins<br />
and if you want to get rid of all the jobs and builds:</p>
<p>sudo rm -rf /Users/Shared/Jenkins<br />
and to delete the jenkins user and group (if you chose to use them):</p>
<p>sudo dscl . -delete /Users/jenkins<br />
sudo dscl . -delete /Groups/jenkins</p>
<p>I think that should cover it. Maybe that could be included with the Jenkins installer&#8230; But how would people find it? There is no standard place for uninstallers on Mac.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2012/12/17/notes-to-self-uninstall-jenkins-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Notes to self Jenkins Mac OSX start stop</title>
		<link>http://www.axelscript.com/2012/12/17/notes-to-self-jenkins-mac-osx-start-stop/</link>
		<comments>http://www.axelscript.com/2012/12/17/notes-to-self-jenkins-mac-osx-start-stop/#comments</comments>
		<pubDate>Mon, 17 Dec 2012 17:35:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/?p=628</guid>
		<description><![CDATA[http://www.luscarpa.com/snippets/jenkins/start-stop-jenkins-daemon-on-mac-os-x/ Start Jenkins: sudo launchctl load /Library/LaunchDaemons/org.jenkins-ci.plist Stop Jenkins: sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist]]></description>
				<content:encoded><![CDATA[<p>http://www.luscarpa.com/snippets/jenkins/start-stop-jenkins-daemon-on-mac-os-x/</p>
<p>Start Jenkins:</p>
<pre>
sudo launchctl load /Library/LaunchDaemons/org.jenkins-ci.plist
</pre>
<p>Stop Jenkins:</p>
<pre>
sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2012/12/17/notes-to-self-jenkins-mac-osx-start-stop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Selenium Testing Javascript variables</title>
		<link>http://www.axelscript.com/2012/12/17/selenium-testing-javascript-variables/</link>
		<comments>http://www.axelscript.com/2012/12/17/selenium-testing-javascript-variables/#comments</comments>
		<pubDate>Mon, 17 Dec 2012 15:00:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Integration Testing]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/?p=625</guid>
		<description><![CDATA[Using Selenium 2.5 Webdriver for Java, see how to create a base class, and extend it to be able to reuse integration tests, this does a simple test on the url to make sure it's not redirecting.]]></description>
				<content:encoded><![CDATA[<p>Sometimes in integration testing you want to use automated testing of variables.  In my case Im loading a complex flex application that takes 5 &#8211; 10 seconds to finish its loading process, and when its done it does a ExternalInterface.call() out to javascript and sets a public variable on the window.</p>
<p>Whether good or bad practice I don&#8217;t care, that is not the point of this post.  </p>
<p>In the tests below were testing the url, we have security in place to always see if a deepLink that the user put in, is a real link, or if it requires login or not, and we need to verify that the ones publicly accessible work to our liking&#8230; This is nice because when we work on the navigation and security of those links later, it&#8217;s fairly complex, and we don&#8217;t want to have to worry about that breaking, so now all we have to do is run this test and we&#8217;ll know whats broke.</p>
<p>Here is an excerpt of the Selenium WebDriver 2.5 testing code. </p>
<p>BaseTest.java</p>
<pre>
package tests;

import java.util.concurrent.TimeUnit;

import junit.framework.Assert;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.ie.InternetExplorerDriver;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;

import com.gargoylesoftware.htmlunit.WebClient;
import org.openqa.selenium.JavascriptExecutor;

public class BaseTest {
   public WebDriver driver;
   public JavascriptExecutor js;
   public String baseUrl;
   public Long defaultTimeout;
   public Long defaultFlexTimeout;
   public StringBuffer verificationErrors = new StringBuffer();
   
   @BeforeMethod 
   public void oneTimeSetUp() {
       driver = new FirefoxDriver();
       js = (JavascriptExecutor) driver;
       baseUrl = "http://someWebSite/";
       defaultTimeout = new Long(5);
       defaultFlexTimeout = new Long(10);
       driver.manage().timeouts().implicitlyWait(defaultTimeout, TimeUnit.SECONDS);
   }

}

</pre>
<p>Then NavigationPublicTest.java</p>
<pre>
package tests.navigation;
import java.util.NoSuchElementException;
import java.util.concurrent.TimeUnit;

import junit.framework.Assert;

import org.apache.http.conn.ssl.BrowserCompatHostnameVerifier;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.ExpectedCondition;
import org.openqa.selenium.support.ui.WebDriverWait;
import org.testng.annotations.Test;

import com.gargoylesoftware.htmlunit.javascript.background.JavaScriptExecutor;

import tests.BaseTest;

//@Test(groups="publicNavigation")
public class NavigationPublicTest extends BaseTest {
	
	@Test(groups="publicNavigation")
	public void testAllDeepLinksAllowAll() {
		deepLinkTest("#Test_One");
		deepLinkTest("#Test_Two");
		deepLinkTest("#Test_Three");
			
		//needs administration login, do later.
		//deepLinkTest("#Administration");
	}
	
	/**
	 * Test deep link of #Locate_Case, this should load the flex app, and not prompt login, and keep #Locate_Case on the url.
	 */
	public void deepLinkTest(String deepLink) {
		driver.get(this.baseUrl + deepLink);
		
		WebDriverWait wait = new WebDriverWait(driver, defaultFlexTimeout);
		
		// Wait for redirects to happen, look for text on page in order to move on.
		wait.until(new ExpectedCondition() {
			public Boolean apply(WebDriver webDriver) {
				System.out.println("waiting for flex app to load ...");
				
				Object isApplicationLoaded = js.executeScript("return window.isApplicationLoaded");
				
				return isApplicationLoaded != null;
			}
		});
		
		String url = driver.getCurrentUrl();
		String destinationUrl = this.baseUrl + deepLink;
		
		// wait 
		if( url.toString().equals( destinationUrl.toString() ) ) {
			System.out.println("The url is correct " + url);
		} else { 
			Assert.fail("The url is not correct, it should be: " + destinationUrl + " but is: " + url);
		}
		
	}
}

</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2012/12/17/selenium-testing-javascript-variables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Symbolic links sublime Text 2</title>
		<link>http://www.axelscript.com/2012/12/11/620/</link>
		<comments>http://www.axelscript.com/2012/12/11/620/#comments</comments>
		<pubDate>Tue, 11 Dec 2012 16:24:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Notes to self]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/?p=620</guid>
		<description><![CDATA[Create a symbolic link on mac to sublime text 2, so you can use it at command prompt without editing your bash file&#8230; ln -s /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl now at terminal you can open folders right up. subl /www/myproject]]></description>
				<content:encoded><![CDATA[<p>Create a symbolic link on mac to sublime text 2, so you can use it at command prompt without editing your bash file&#8230; </p>
<p>ln -s /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl</p>
<p>now at terminal you can open folders right up.</p>
<p>subl /www/myproject</p>
]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2012/12/11/620/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setup Selenium in Eclipse Galileo</title>
		<link>http://www.axelscript.com/2012/12/11/setup-selenium-in-eclipse-galileo/</link>
		<comments>http://www.axelscript.com/2012/12/11/setup-selenium-in-eclipse-galileo/#comments</comments>
		<pubDate>Tue, 11 Dec 2012 15:00:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Integration Testing]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/?p=616</guid>
		<description><![CDATA[Integration Testing can be a very powerful tool when developing.  Ever had a long project run on, that has many complicated steps and different roles and approval systems?  Automate the testing, of a web application by using Selenium.  Selenium automates browser actions via code.  ]]></description>
				<content:encoded><![CDATA[<p>Automate your testing with Selenium.  Set it up in eclipse by following the following steps.</p>
<p>NOTE: This is for setting up selenium 2.5 Java.</p>
<p>1) Download Selenium <a href="http://selenium.googlecode.com/files/selenium-java-2.25.0.zip">HERE (or http://seleniumhq.org/download/, and search for Java)</a></p>
<p>2) start eclipse, and install testNG, testNG is like a beefed version of JUnit, and can be ran via ant ( so can JUnit, but I think testNG comes with some additional things that junit doesnt ) <a href="http://www.mkyong.com/unittest/junit-4-vs-testng-comparison/" target="_blank">See this comparison</a></p>
<p>2.1) Install TestNG, in eclipse (on mac) go to Help > Install New Software > use the address: http://beust.com/eclipse</p>
<p>2.2) Select TestNG and complete the install of the plugin and restart.</p>
<p>3) after restart, select File > new > Java Project.</p>
<p>3.1) create a libs folder in the project</p>
<p>3.2) extract the selenium zip file jars into the libs folder (even the ones that are in the libs folder inside the extracted folder, you can just put them straight into your new libs folder)</p>
<p>3.3) right click your project > properties > java build path > add jars > select the libs folder in your project and highlight all the jars and add them, click ok and be done with that.</p>
<p>4) After project is created > Right click &#8220;src&#8221; create a folder called &#8220;tests&#8221; (this name is not important, its just a folder name)</p>
<p>5) right click on the new &#8220;tests&#8221; folder and click New > Other > When window comes up filter and search for &#8220;TestNG&#8221; > select &#8220;TestNG class&#8221; > and create the class, When the next window comes up choose the Source folder by clicking &#8220;browse&#8221; > select your project > then its src folder. Click browse next to the package, and select the folder you just created called &#8220;tests&#8221;.</p>
<p>6) when the class comes up, i usually rename the function to &#8220;main&#8221; instead of &#8220;f&#8221;.</p>
<p>7) paste code</p>
<pre>
package tests;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.support.ui.ExpectedCondition;
import org.openqa.selenium.support.ui.WebDriverWait;
import org.testng.annotations.Test;

public class NewTest {
  @Test
  public void main() {

		WebDriver driver = new FirefoxDriver();
		driver.get("http://www.google.com/");
		WebElement searchBox = driver.findElement(By.id("gbqfq"));
		
		if( searchBox != null ) {
			System.out.println("found search box...");
			searchBox.sendKeys("speedtest.net");
			
			//wait for google to asynchronously return.
			

			WebDriverWait wait = new WebDriverWait(driver, 3);
			
			// Wait for search to complete
		      wait.until(new ExpectedCondition<Boolean>() {
		          public Boolean apply(WebDriver webDriver) {
		              System.out.println("finding speedtest ...");
		              return webDriver.findElement(By.partialLinkText("Speedtest.net - The Global Broadband Speed Test")) != null;
		          }
		      });
		      
		      
		}
		

		
  }
}

</pre>
<p>8) right click project > TestNG > Convert to TestNG</p>
<p>9) right click project > run as TestNG Test</p>
<p>this should pass and launch firefox and type into the search and verify the link shows up.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2012/12/11/setup-selenium-in-eclipse-galileo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL function to get totals from another table</title>
		<link>http://www.axelscript.com/2012/12/10/mysql-function-to-get-totals-from-another-table/</link>
		<comments>http://www.axelscript.com/2012/12/10/mysql-function-to-get-totals-from-another-table/#comments</comments>
		<pubDate>Mon, 10 Dec 2012 19:00:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/?p=600</guid>
		<description><![CDATA[Sometimes when you want to run reports on users, maybe that have sales orders associated to them, you maybe just want to put a total into the row. Of course you could do this by looping and run a query for each user, but thats pretty inefficient. This is a MySQL stored function that would [...]]]></description>
				<content:encoded><![CDATA[<p>Sometimes when you want to run reports on users, maybe that have sales orders associated to them, you maybe just want to put a total into the row.</p>
<p>Of course you could do this by looping and run a query for each user, but thats pretty inefficient.</p>
<p>This is a MySQL stored function that would do something like that for you.</p>
<pre>

DELIMITER $$
DROP FUNCTION IF EXISTS `getColumnTotalByDriver` $$

CREATE DEFINER=`root`@`localhost` FUNCTION `getColumnTotalByDriver`(`driver_id` INT, `columnName` VARCHAR(64), `start_date` DATETIME, `end_date` DATETIME) RETURNS FLOAT(18,2) DETERMINISTIC CONTAINS SQL SQL SECURITY DEFINER BEGIN
DECLARE total FLOAT(18,2);
SELECT SUM(receipt_amount)
from orders
WHERE accepted_by = driver_id
AND charge_amount > 0
AND date_delivered >= start_date 
AND date_delivered <= end_date 
INTO total;
RETURN total;
END $$

DELIMITER ;
</pre>
<p>To use that function you would do something like this.</p>
<p><code>SELECT * , getColumnTotalByDriver( u.user_id, '2012-11-08 00:00:00', '2012-12-08 23:59:59' ) AS total<br />
FROM user u<br />
WHERE user_level =10</code></p>
<p>Thanks to this <a href="http://mysql-0v34c10ck.blogspot.com/2011/04/function-to-get-columns-of-any-table.html" target="_blank">post</a> for getting me started.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2012/12/10/mysql-function-to-get-totals-from-another-table/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WampServer with PHP 5.4.3 fails to load Curl extension [Solved]</title>
		<link>http://www.axelscript.com/2012/11/13/wampserver-with-php-5-4-3-fails-to-load-curl-extension-solved/</link>
		<comments>http://www.axelscript.com/2012/11/13/wampserver-with-php-5-4-3-fails-to-load-curl-extension-solved/#comments</comments>
		<pubDate>Tue, 13 Nov 2012 19:52:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/?p=591</guid>
		<description><![CDATA[After starting the WampServer on x64 with PHP 5.4.3, you see the following error: PHP Startup: Unable to load dynamic library &#8216;&#8230;/php_curl.dll&#8217; &#8211; The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail The php_curl.dll library is bugged [...]]]></description>
				<content:encoded><![CDATA[<p>After starting the WampServer on x64 with PHP 5.4.3, you see the following error:</p>
<p> PHP Startup: Unable to load dynamic library &#8216;&#8230;/php_curl.dll&#8217; &#8211; The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail<br />
The php_curl.dll library is bugged and must be replaced. See attachment below. Replace the old php_curl.dll file (in your wampserver/bin/php/{version}/ext/ folder) with the new one attached. Restart Apache and you are set.</p>
<p>Solution found at http://forum.wampserver.com/read.php?2,85716</p>
<p><a href='http://www.axelscript.com/wp-content/php_curl-5.4.3-VC9-x64.zip'>php_curl-5.4.3-VC9-x64</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2012/11/13/wampserver-with-php-5-4-3-fails-to-load-curl-extension-solved/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache proxy config</title>
		<link>http://www.axelscript.com/2012/11/09/apache-proxy-config/</link>
		<comments>http://www.axelscript.com/2012/11/09/apache-proxy-config/#comments</comments>
		<pubDate>Fri, 09 Nov 2012 16:16:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/?p=589</guid>
		<description><![CDATA[do this if you want to fake out your webserver to request something from somewhere else (aka some file hosting place instead of you, so it doesnt eat up your bandwidth) ServerName twintech DocumentRoot &#8220;/Library/WebServer/Documents/twintech&#8221; DirectoryIndex Main.html ProxyPass /um/ hhttp://somefilehosting.com/myaccount/um/ ProxyPassReverse /um/ http://somefilehosting.com/myaccount/um/ ProxyPass /assets/ http://somefilehosting.com/myaccount/assets/ ProxyPassReverse /assets/ http://somefilehosting.com/myaccount/assets/]]></description>
				<content:encoded><![CDATA[<p>do this if you want to fake out your webserver to request something from somewhere else (aka some file hosting place instead of you, so it doesnt eat up your bandwidth)</p>
<p><VirtualHost *:80><br />
	ServerName twintech<br />
	DocumentRoot &#8220;/Library/WebServer/Documents/twintech&#8221;<br />
	DirectoryIndex Main.html<br />
	ProxyPass /um/ hhttp://somefilehosting.com/myaccount/um/<br />
    ProxyPassReverse /um/ http://somefilehosting.com/myaccount/um/<br />
    ProxyPass /assets/ http://somefilehosting.com/myaccount/assets/<br />
    ProxyPassReverse /assets/ http://somefilehosting.com/myaccount/assets/<br />
</VirtualHost></p>
]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2012/11/09/apache-proxy-config/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>GIS query mysql</title>
		<link>http://www.axelscript.com/2012/10/30/gis-query-mysql/</link>
		<comments>http://www.axelscript.com/2012/10/30/gis-query-mysql/#comments</comments>
		<pubDate>Tue, 30 Oct 2012 05:13:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/?p=580</guid>
		<description><![CDATA[zip_code.sql CREATE FUNCTION `earth_distance_miles`(p1 point, p2 point) RETURNS int(11) RETURN ((ACOS(SIN(x(p1) * PI() / 180) * SIN(x(p2) * PI() / 180) + COS(x(p1) * PI() / 180) * COS(x(p2) * PI() / 180) * COS((y(p1) - y(p2)) * PI() / 180)) * 180 / PI()) * 60 * 1.1515) SELECT earth_distance_miles( ( SELECT location FROM [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.axelscript.com/wp-content/zip_code.sql_.zip">zip_code.sql</a></p>
<p><code>CREATE FUNCTION `earth_distance_miles`(p1 point, p2 point) RETURNS int(11)<br />
RETURN<br />
((ACOS(SIN(x(p1) * PI() / 180) * SIN(x(p2) * PI() / 180) + COS(x(p1) *<br />
PI() / 180) * COS(x(p2) * PI() / 180) * COS((y(p1) - y(p2)) * PI() /<br />
180)) * 180 / PI()) * 60 * 1.1515)</code><br />
<code>SELECT earth_distance_miles(<br />
(<br />
SELECT location<br />
FROM zip_code<br />
WHERE zip = '68015'<br />
), (<br />
SELECT location<br />
FROM zip_code<br />
WHERE zip = '68025'<br />
)<br />
);</code></p>
<p>get all zips in a range<br />
<code>CREATE PROCEDURE `GetZipCodesInRadius`(IN `zipCode` INT(10), IN `distanceInMiles` INT(10))<br />
BEGIN<br />
SELECT DISTINCT dest.zip, earth_distance_miles(orig.location, dest.location) as sdistance<br />
FROM<br />
zip_code orig,<br />
zip_code dest<br />
WHERE<br />
orig.zip = zipCode<br />
having sdistance &amp;lt; distanceInMiles<br />
ORDER BY<br />
sdistance;<br />
END</code></p>
<p>&nbsp;</p>
<p>then call it with&#8230;.</p>
<p>&nbsp;</p>
<p>Call GetZipCodesInRadius(&#8220;68046&#8243;,&#8221;11&#8243;)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2012/10/30/gis-query-mysql/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Using Git/SSH on windows</title>
		<link>http://www.axelscript.com/2012/09/10/using-gitssh-on-windows/</link>
		<comments>http://www.axelscript.com/2012/09/10/using-gitssh-on-windows/#comments</comments>
		<pubDate>Tue, 11 Sep 2012 04:38:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/?p=569</guid>
		<description><![CDATA[http://www.timdavis.com.au/git/setting-up-a-msysgit-server-with-copssh-on-windows/ http://stackoverflow.com/questions/2499331/git-with-ssh-on-windows http://stackoverflow.com/questions/6515039/jenkins-git-permission-denied-publickey https://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin http://www.imranulhoque.com/project-management/inegrate-assembla-git-on-windows-machine-issue-solved/]]></description>
				<content:encoded><![CDATA[<p>http://www.timdavis.com.au/git/setting-up-a-msysgit-server-with-copssh-on-windows/</p>
<p><a href="http://stackoverflow.com/questions/2499331/git-with-ssh-on-windows">http://stackoverflow.com/questions/2499331/git-with-ssh-on-windows</a></p>
<p><a href="http://stackoverflow.com/questions/6515039/jenkins-git-permission-denied-publickey">http://stackoverflow.com/questions/6515039/jenkins-git-permission-denied-publickey</a></p>
<p><a href="https://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin">https://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin</a></p>
<p><a href="http://www.imranulhoque.com/project-management/inegrate-assembla-git-on-windows-machine-issue-solved/">http://www.imranulhoque.com/project-management/inegrate-assembla-git-on-windows-machine-issue-solved/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2012/09/10/using-gitssh-on-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>install npm windows</title>
		<link>http://www.axelscript.com/2012/08/24/install-npm-windows/</link>
		<comments>http://www.axelscript.com/2012/08/24/install-npm-windows/#comments</comments>
		<pubDate>Fri, 24 Aug 2012 15:45:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/?p=566</guid>
		<description><![CDATA[http://csell.net/2011/10/20/setting-up-npm-for-node-js-on-windows/]]></description>
				<content:encoded><![CDATA[<p>http://csell.net/2011/10/20/setting-up-npm-for-node-js-on-windows/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2012/08/24/install-npm-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>yahoo ui builder</title>
		<link>http://www.axelscript.com/2012/07/02/yahoo-ui-builder/</link>
		<comments>http://www.axelscript.com/2012/07/02/yahoo-ui-builder/#comments</comments>
		<pubDate>Mon, 02 Jul 2012 13:52:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/?p=563</guid>
		<description><![CDATA[Note to self: use this: http://developer.yahoo.com/yui/grids/builder/]]></description>
				<content:encoded><![CDATA[<p>Note to self: use this: <a href="http://developer.yahoo.com/yui/grids/builder/">http://developer.yahoo.com/yui/grids/builder/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2012/07/02/yahoo-ui-builder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adobe CQ userInfo</title>
		<link>http://www.axelscript.com/2012/05/30/adobe-cq-userinfo/</link>
		<comments>http://www.axelscript.com/2012/05/30/adobe-cq-userinfo/#comments</comments>
		<pubDate>Wed, 30 May 2012 14:18:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/?p=549</guid>
		<description><![CDATA[When you use the default foundation component &#8220;userInfo&#8221; be sure that in headLibs.jsp you include &#60;cq:include path="analytics" resourceType="cq/analytics/components/analytics"/&#62; &#60;cq:include path="clickstreamcloud" resourceType="cq/personalization/components/clickstreamcloud"/&#62; it includes a CQ_Analytics class that the default logout() function uses.]]></description>
				<content:encoded><![CDATA[<p>When you use the default foundation component &#8220;userInfo&#8221;</p>
<p>be sure that in headLibs.jsp you include </p>
<p><code>  &lt;cq:include path="analytics" resourceType="cq/analytics/components/analytics"/&gt;<br />
  &lt;cq:include path="clickstreamcloud" resourceType="cq/personalization/components/clickstreamcloud"/&gt;</code></p>
<p>it includes a CQ_Analytics class that the default logout() function uses.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2012/05/30/adobe-cq-userinfo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Testing IE in Mac</title>
		<link>http://www.axelscript.com/2012/04/27/testing-ie-in-mac/</link>
		<comments>http://www.axelscript.com/2012/04/27/testing-ie-in-mac/#comments</comments>
		<pubDate>Fri, 27 Apr 2012 14:27:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/?p=537</guid>
		<description><![CDATA[Very nice. Windows: http://www.howtogeek.com/102261/how-to-run-internet-explorer-7-8-and-9-at-the-same-time-using-virtual-machines/ http://osxdaily.com/2011/09/04/internet-explorer-for-mac-ie7-ie8-ie-9-free/ Download Virtual Box ) http://download.virtualbox.org/virtualbox/4.1.2/VirtualBox-4.1.2-73507-OSX.dmg ALL 7,8,9 Open Terminal and type : curl -s https://raw.github.com/xdissent/ievms/master/ievms.sh &#124; bash]]></description>
				<content:encoded><![CDATA[<p>Very nice.</p>
<p>Windows:</p>
<p>http://www.howtogeek.com/102261/how-to-run-internet-explorer-7-8-and-9-at-the-same-time-using-virtual-machines/</p>
<p><a href="http://osxdaily.com/2011/09/04/internet-explorer-for-mac-ie7-ie8-ie-9-free/">http://osxdaily.com/2011/09/04/internet-explorer-for-mac-ie7-ie8-ie-9-free/</a></p>
<ul>
<li>Download Virtual Box ) <a href="http://download.virtualbox.org/virtualbox/4.1.2/VirtualBox-4.1.2-73507-OSX.dmg">http://download.virtualbox.org/virtualbox/4.1.2/VirtualBox-4.1.2-73507-OSX.dmg</a></li>
<li>ALL 7,8,9 Open Terminal and type :<br />
curl -s https://raw.github.com/xdissent/ievms/master/ievms.sh | bash</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2012/04/27/testing-ie-in-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>xcode love it</title>
		<link>http://www.axelscript.com/2012/04/04/xcode-love-it/</link>
		<comments>http://www.axelscript.com/2012/04/04/xcode-love-it/#comments</comments>
		<pubDate>Wed, 04 Apr 2012 10:37:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/?p=531</guid>
		<description><![CDATA[NOTTTTT I hate all of the different issues with xcode versions, ios versions, phonegap versions, childbrowser.js not working on ios 4.3&#8230; etc&#8230; I&#8217;m upgrading from xcode 4.1 > 4.3 so i can have ios 5, i&#8217;m on osx 10.6.8 (snow leopard) and xcode always fails&#8230;. I found a great link saying&#8230; set your fucking time [...]]]></description>
				<content:encoded><![CDATA[<p>NOTTTTT I hate all of the different issues with xcode versions, ios versions, phonegap versions, childbrowser.js not working on ios 4.3&#8230; etc&#8230;</p>
<p>I&#8217;m upgrading from xcode 4.1 > 4.3 so i can have ios 5, i&#8217;m on osx 10.6.8 (snow leopard) and xcode always fails&#8230;.</p>
<p>I found a great link saying&#8230; <b>set your fucking time to jan 1 2012</b> cause the cert is expired&#8230;</p>
<p>yep there goes an hour and a half of my life trying to figure out why xcode wouldn&#8217;t install.</p>
<p>http://stackoverflow.com/questions/9964528/xcode-installation-failed</p>
<p>here is another issue: the autorelease bullshit from ios 5 </p>
<p>http://stackoverflow.com/questions/7006593/ipad-testing-of-phonegap-application-issues-in-main-method</p>
<p>This is how I solved the &#8220;NSAutoReleasePool&#8221; error in XCode 4.3 and with PhoneGap 1.5.</p>
<p>Go to &#8220;YourApplicationName&#8221; in the Project Navigator.</p>
<p>Select &#8220;YourApplicationName&#8221; under Project.</p>
<p>Go to Build Settings.</p>
<p>Make sure to toggle &#8220;All&#8221; and &#8220;Combined&#8221;.</p>
<p>Find the section &#8220;Apple LLVM compiler 3.1 &#8211; Language&#8221;.</p>
<p>Scroll down and you will find &#8220;Objective-C Automatic Reference Counting&#8221;.</p>
<p>Change it from Yes to No.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2012/04/04/xcode-love-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Aptana Notes</title>
		<link>http://www.axelscript.com/2012/02/25/installing-aptana-notes/</link>
		<comments>http://www.axelscript.com/2012/02/25/installing-aptana-notes/#comments</comments>
		<pubDate>Sat, 25 Feb 2012 17:13:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/?p=515</guid>
		<description><![CDATA[Install Aptana Studio 3 http://aptana.org/products/studio3/download Install Git for Mac http://code.google.com/p/git-osx-installer/downloads/list?can=3 Logout and log back in for git PATH to take effect Add Jquery bundle to Aptana for code hints in javascript ( Commands &#62; Bundle Development &#62; Install Bundle &#62; Jquery ) Sencha &#8211; http://www.sencha.com/blog/ides-plugins-and-tools-for-ext-js-20 update site (http://www.spket.com/update/) Sencha (legacy videos) http://www.sencha.com/learn/legacy/Screencasts Install php in case [...]]]></description>
				<content:encoded><![CDATA[<ul>
<li>Install Aptana Studio 3 <a href="http://aptana.org/products/studio3/download">http://aptana.org/products/studio3/download</a></li>
<li>Install Git for Mac <a href="http://code.google.com/p/git-osx-installer/downloads/list?can=3">http://code.google.com/p/git-osx-installer/downloads/list?can=3</a></li>
<ul>
<li>Logout and log back in for git PATH to take effect</li>
</ul>
<li>Add Jquery bundle to Aptana for code hints in javascript ( Commands &gt; Bundle Development &gt; Install Bundle &gt; Jquery )</li>
<li>Sencha &#8211; <a href="http://www.sencha.com/blog/ides-plugins-and-tools-for-ext-js-20">http://www.sencha.com/blog/ides-plugins-and-tools-for-ext-js-20</a></li>
<ul>
<li>update site (http://www.spket.com/update/)</li>
</ul>
<li>Sencha (legacy videos) <a href="http://www.sencha.com/learn/legacy/Screencasts">http://www.sencha.com/learn/legacy/Screencasts</a></li>
<li><a href="http://php.about.com/od/phpbasics/ss/installMac_2.htm">Install php in case you need it for the force toolkit proxy http://php.about.com/od/phpbasics/ss/installMac_2.htm</a>
<li><a href="http://www.sencha.com/learn/a-sencha-touch-mvc-application-with-phonegap/" target="_blank">http://www.sencha.com/learn/a-sencha-touch-mvc-application-with-phonegap/</a></li>
<li>sencha 2.0 docs &#8211; <a href="http://docs.sencha.com/touch/2-0/#!/api">http://docs.sencha.com/touch/2-0/#!/api</a></li>
<li>sencha 2.0 native packager &#8211; <a href="http://www.sencha.com/blog/sencha-touch-2-rc-native-packaging#native-packaging">http://www.sencha.com/blog/sencha-touch-2-rc-native-packaging#native-packaging</a></li>
<li><a href="http://www.sencha.com/blog/sencha-designer-beta/">http://www.sencha.com/blog/sencha-designer-beta/</a></li>
<li>This Example shows mapping, but also shows the isOnline() function being used. <a href="http://www.sencha.com/forum/showthread.php?184044-How-to-capture-Tap-events-on-Ext.Map&amp;p=744304#post744304">http://www.sencha.com/forum/showthread.php?184044-How-to-capture-Tap-events-on-Ext.Map&amp;p=744304#post744304</a></li>
<li><a href="http://francisshanahan.com/index.php/2011/sencha-touch-2-0-mvc-in-5-minutes-or-less/">http://francisshanahan.com/index.php/2011/sencha-touch-2-0-mvc-in-5-minutes-or-less/</a></li>
<li>Will add as i find.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2012/02/25/installing-aptana-notes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
