Author Archive
Posted in December 11th, 2012
Create a symbolic link on mac to sublime text 2, so you can use it at command prompt without editing your bash file… 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
continue reading.....
Posted in December 11th, 2012
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.
continue reading.....
Posted in December 10th, 2012
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 […]
continue reading.....
Posted in November 13th, 2012
After starting the WampServer on x64 with PHP 5.4.3, you see the following error: PHP Startup: Unable to load dynamic library ‘…/php_curl.dll’ – 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 […]
continue reading.....
Posted in November 9th, 2012
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 “/Library/WebServer/Documents/twintech” 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/
continue reading.....
Posted in October 30th, 2012
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 […]
continue reading.....
Posted in September 10th, 2012
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/
continue reading.....
Posted in August 24th, 2012
http://csell.net/2011/10/20/setting-up-npm-for-node-js-on-windows/
continue reading.....
Posted in July 2nd, 2012
Note to self: use this: http://developer.yahoo.com/yui/grids/builder/
continue reading.....
Posted in May 30th, 2012
When you use the default foundation component “userInfo” be sure that in headLibs.jsp you include <cq:include path=”analytics” resourceType=”cq/analytics/components/analytics”/> <cq:include path=”clickstreamcloud” resourceType=”cq/personalization/components/clickstreamcloud”/> it includes a CQ_Analytics class that the default logout() function uses.
continue reading.....
Posted in April 27th, 2012
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 | bash
continue reading.....
Posted in April 4th, 2012
NOTTTTT I hate all of the different issues with xcode versions, ios versions, phonegap versions, childbrowser.js not working on ios 4.3… etc… I’m upgrading from xcode 4.1 > 4.3 so i can have ios 5, i’m on osx 10.6.8 (snow leopard) and xcode always fails…. I found a great link saying… set your fucking time […]
continue reading.....
Posted in February 25th, 2012
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 > Bundle Development > Install Bundle > Jquery ) Sencha – 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 […]
continue reading.....
Posted in November 27th, 2011
Application – Source A list of images that gives a smooth scrolling perception. Way back when I built this: http://www.axelscript.com/2008/09/25/building-a-simple-slider-component/ Its a simple proof of concept of how to slide some components. This new one is built with flex for and uses a horizontal list, with HorizontalLayout to just slide the list left and right. […]
continue reading.....
Posted in September 19th, 2011
simple template reminder for myself… http://www.modernanalyst.com/Community/Forums/tabid/76/forumid/17/postid/739/scope/posts/Default.aspx http://www.crmlandmark.com/helpguides_rfp.htm
continue reading.....
Posted in August 26th, 2011
Ever used a spark list and had to use tab focus in the renderer? Notice it doesnt work by default? use hasFocusableChildren=”true” <s:List width=”100%” height=”100%” itemRenderer=”com.views.SomeRenderer” hasFocusableChildren=”true” />
continue reading.....
Posted in July 27th, 2011
Firefox Crashing: http://www.thedesilva.com/2011/02/firefox-flash-debugger-player-crash/ http://coenraets.org/blog/2011/07/flex-mobile-invoking-javascript-in-a-stagewebview/ http://www.arachna.com/edu/tutorials/mini/cookies/javascript.html http://www.judahfrangipane.com/blog/2011/01/16/stagewebview-uicomponent/ Javascript easiness in flex. http://www.abdulqabiz.com/blog/archives/2006/06/16/a-mxml-component-that-embeds-javascript-in-html/ http://www.abdulqabiz.com/files/JavaScriptMXMLComponent/com/abdulqabiz/utils/JavaScript.as Finding Latitude and Longitude easily just out of curiosity. http://stevemorse.org/jcal/latlon.php Controlling the soft keyboard “softKeyboard” in flex mobile. http://www.peterelst.com/blog/2011/05/08/controlling-the-soft-keyboard-in-flex-mobile-applications/ Regex’s http://oreilly.com/flex/excerpts/flex-4-cookbook/validation-formatting-regular-expressions.html
continue reading.....
Posted in July 14th, 2011
Since there is no viewstack for mobile, or its not “optimized” for mobile, another way to get a tab bar or button bar in the application with components is to use states… the problem is that mobile device hardware isn’t anywhere near desktop or laptop speeds… I’m using an ipad2 developing a app that has […]
continue reading.....
Posted in July 9th, 2011
I always forget this setting so this is just a reminder for me… REMEMBER TO SET requireSelection=”true” on a ButtonBar
continue reading.....
Posted in May 12th, 2011
Here is a little trick to see if a popup is up… give it a name and use getChildByName… var systemManager:SystemManager = FlexGlobals.topLevelApplication.systemManager var popupStatus:* = systemManager.popUpChildren.getChildByName( ‘popupStatus’ ); if( popupStatus ) { PopUpManager.removePopUp( popupStatus ); }
continue reading.....