Check this link out for all of the CDN web app libraries and frameworks that are available for use by Google. The site has versions and HTML examples for getting these into your app.
I have just taken th plunge into building my forst Facebook application and I am doing it in Python using Django.
One of the best bits of the Django framework is the built in development web server, and I wanted to be able to utilise this while building my application on my local machine, nad it turns out that you are able to configure Facebook to do this.
The way I have done this is to set up a second application <name>_dev that I will be using to interact with my application. This allow me to be flexible in the way I develop and offer a rapid response to fixing error with out having to go back to another deployment before testing again.
There are a couple of tricky things that you need to be aware of that caught me out see below for the walk through.
Step by Step:
- Create a second app. I used the convention of <app name>_dev. When doing this do not select the hosting checkbox option.
- Setup your pp with the following information. This will allow facebook to call your local django site in this instance into the canvas page of your facebook app.
What you need to ensure here is that you use localhost and not 126.96.36.199 as the App Domain form section does not like it for some reason.
Hiding in the new pieces of functionality in Python 2.7 is the ability to discover and run all tests via a script. Check out the link!
Great video from Ryan Carson from Carsonified and Treehouse. Talking at Bath about all of the things that he has learned in his path as an entrepreneur.
This is a very inspiring talk that has me motivated to change the way I do things.
A great article with code examples on the theory on generating the area of complex polygons in code.
The article includes examples in:
I have implemented and tested the python code and it works really well but the more points there are the longer it will take to execute.
The module is called satchmo-apost-satchel-shipping and handles shipping calculations based on the fixed price satchels. This module will calculate the maximum amount of satchels required and bill accordingly.
Also as a requirement it will handle free shipping for single item orders based on the SKU code that is supplied.
Check it out I would love to get some feedback.
I have been using eclipse for a few years now for the majority of my development now fr all of my development, recenly I upgraded to the Indigo release of Eclipse. This morning on the train I was presented with a popup directing me to a logfile with the error below:
!ENTRY org.eclipse.osgi 4 0 2011-10-27 07:41:06.158 !MESSAGE Startup error !STACK 1 java.lang.ExceptionInInitializerError at org.eclipse.osgi.framework.internal.core.Framework.initializeProperties(Framework.java:378) at org.eclipse.osgi.framework.internal.core.Framework.initialize(Framework.java:200) at org.eclipse.osgi.framework.internal.core.Framework.(Framework.java:162) at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:261) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:175) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) at org.eclipse.equinox.launcher.Main.run(Main.java:1410) Caused by: java.lang.ArrayIndexOutOfBoundsException: 0 at java.net.InetAddress.getLocalHost(InetAddress.java:1356) at org.eclipse.osgi.framework.internal.core.UniversalUniqueIdentifier.getIPAddress(UniversalUniqueIdentifier.java:146) at org.eclipse.osgi.framework.internal.core.UniversalUniqueIdentifier.computeNodeAddress(UniversalUniqueIdentifier.java:113) at org.eclipse.osgi.framework.internal.core.UniversalUniqueIdentifier.(UniversalUniqueIdentifier.java:35) ... 12 more
The fix that I found to resolve the crash was to delete the preferences (plist) file for Eclipse on the mac. The file is called ‘org.eclipse.eclipse.plist’ and can be found by navigating to ‘/Users/<username>/Library/Preferences/’.
I deleted the file and tried starting Eclipse and it has been smooth sailing from there.
I would love to know if others are having this issue? and is it something I can expect to be doing often?