This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Last Minute Webcam Christmas Cards | |
Have you left it too late to send out Xmas cards? Perhaps you were saving the planet by not sending them this year. Well whatever your excuse its no longer valid. If you have a webcam and its still Xmas day its not too late to send out some cute personalized cards via email. | |
The site was built by the team at digital agency codegent on christmas eve as an last minute xmas present to the internet. Luke Hubbard explained.. "Its was just a bit of fun really, I wanted to send out some cards with my son dressed up as an elf. We have this cool technology that lets people take pictures with their webcams so we thought why not make a little app and share it with the world. Its just grown from there." Since launch news of the site has been spreading Xmas cheer virally through email and services like twitter. | |
Hosting is provided by Google App Engine and the site requires you login using a Google account to send emails. Give it a try and send any feedback to @luke_bkk on twi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Got hit by this crazy bug in python | |
result = urlfetch.fetch('http://domain/image.jpg') | |
multipart_upload_body = "multi part %s upload string" % result.content | |
# This caused an invalid ascii error since result.content is binary and python wanted to convert it to ascii. | |
# The solution was not obvious, the only way we found to do it was to create a byte array then write to it like a buffer | |
buffer = array.array("B") # B = unsigned bytes | |
buffer.fromstring("multi part ") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Patch GAE console to play nice with Django App Engine Patch | |
# Insert just below 'sys.path.insert(0, dirname(dirname(__file__)))' in console/app/console.py | |
app_path = dirname(dirname(dirname(dirname(__file__)))) | |
sys.path.insert(0, app_path+'/common/appenginepatch') | |
sys.path.insert(0, app_path+'/common/zip-packages/django-1.0.2.zip') | |
sys.path.insert(0, app_path+'/common/appenginepatch/appenginepatcher/lib') | |
sys.path.insert(0, app_path+'/common') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Barcamp Bangkok : "knowledge blossoming from a lotus" | |
Agile | |
Asia | |
Bangkok | |
Barcamp | |
Blogging | |
Business | |
Change | |
Cloud |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:::::::::::::::::::::::::::::::::::::::::: | |
[]::[][][][]::::[]::[][]::::::::[]::[][][] | |
::[][][]::[][][]::[]::[]::[][][]::::::[]:: | |
[][][]::[]::[]::[][]::::::[][]::[]::[]::[] | |
[][][]::[][][][][][]::[][][][]::[][]::[][] | |
[][][]::[]::[][]::::::[][]::[][][]::::::[] | |
::[][]::[]::::[]::[][]::::::::[]::[][]::[] | |
::::[][]::[][][][][][][]::::[][]::[][][]:: | |
::[][][][][][]::::[][][]::[][]::::[][][][] | |
[][][][][][][][][][][][][][][][][][][][][] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31o5 | |
als | |
bm_ | |
booth_dev | |
codegent | |
escribitionist | |
iampz | |
jfxburns | |
jirasak | |
jonrandy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if __name__ == '__main__': | |
from doctest import gae | |
from google.appengine.ext import db | |
from google.appengine.api import memcache | |
from google.appengine.api.labs import taskqueue | |
import time | |
def task(f, classtask=False, modeltask=False): | |
def g(*args, **kwargs): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Editable Folder | |
# | |
# Author: luke hubbard - http://twitter.com/lukeinth | |
# | |
# Simple interface and handler to serve editable files out of memcache, db, or disk. | |
# | |
# Usage: | |
# - save this file as editable.py | |
# - create a folder called 'editable' and place your default css / html files in there | |
# - add handler to webapp or django or whatever framework you use |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var soap_raw_data = escape('<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><TestDB xmlns="http://itstechservices.com/" /></soap:Body></soap:Envelope>'); | |
new Ajax.Request('http://ws.itstechservices.com/TruckServices.asmx', | |
{ | |
method:'post', | |
postData: soap_raw_data, | |
requestHeaders: {SOAPAction: "http://itstechservices.com/TestDB", "Content-Type": "text/xml; charset=utf-8"}, | |
onSuccess: function(transport){ | |
var response = transport.responseText || "no response text"; | |
//alert("Success! \n\n" + response); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# GAE-RUN - Makes running Google App Engine code easy. | |
# | |
# Author: Luke Hubbard - http://twitter.com/lukeinth | |
# | |
# Usage: | |
# - Make sure you have Google App Engine installed. | |
# - Download this file and save as gaerun.py in your app folder. | |
# - Add "import gaerun" at the t | |
# op of your code. | |
# - Run your code using command line / editor. Tip: (command + R) in textmate |