-
policystat writes about shifting seamlessfly from PHP to Django
-
allbuttonspressed has come up with (part 2 of their tutorial on using django-mediagenerator)[http://www.allbuttonspressed.com/blog/django/2010/11/Offline-HTML5-canvas-app-in-Python-with-django-mediagenerator-Part-2-Drawing] to power an offline HTML5 canvas app.
-
No surprise. (TextCaptchaBreaker) [http://textcaptchabreaker.appspot.com/] breaks (TextCaptcha)[http://textcaptcha.com/] with amazing accuracy. Its on (github)[https://github.com/kbhomes/TextCaptchaBreaker] too.
This file contains 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
-(void) checkAndCreateDatabase{ | |
// Check if the SQL database has already been saved to the users | |
// phone, if not then copy it over | |
BOOL success; | |
// Create a FileManager object, we will use this to check the status | |
// of the database and to copy it over if required | |
NSFileManager *fileManager = [NSFileManager defaultManager]; | |
// Check if the database has already been created in the users | |
// filesystem | |
success = [fileManager fileExistsAtPath:databasePath]; |
This file contains 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
package com.buddyg3.android; | |
import java.io.File; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.OutputStream; | |
import android.content.Context; | |
import android.database.SQLException; |
This file contains 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
Ext.regModel('Person', { | |
fields: [ | |
{name: 'name', type: 'string'}, | |
{name: 'age', type: 'int'}, | |
{name: 'phone', type: 'string'}, | |
{name: 'alive', type: 'boolean', defaultValue: true} | |
], | |
proxy: { | |
type: 'websqlproxy', |
This file contains 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
/** | |
* @author Grgur Grisogono | |
* | |
* WebSQL proxy connects models and stores to local WebSQL database. | |
* | |
* WebSQL is only available in Chrome and Safari at the moment. | |
* | |
* Version: 0.11 | |
* | |
* TODO: respect sorters, filters, start and limit options on the Operation; failover option for remote proxies, .. |
This file contains 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
<!DOCTYPE html "-//W3C//DTD XHTML 1.0 Strict//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8"/> | |
<title>Google Maps JavaScript API Example</title> | |
<script src="http://maps.google.com/maps?file=api&v=2&key=abcdefg&sensor=true_or_false" type="text/javascript"></script> | |
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> | |
<script type="text/javascript" src="/apis/maps/include/yt_rotator.js"></script> |
This file contains 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
#!/usr/bin/env python | |
### | |
#Everything in between these three hashes is executed only in python | |
# make console.log print stuff | |
from __future__ import print_function | |
class console: | |
log = print |
This file contains 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
# markup settings | |
from markupfield.markup import DEFAULT_MARKUP_TYPES | |
MARKUP_RENDERERS = DEFAULT_MARKUP_TYPES | |
DEFAULT_MARKUP_TYPE = "plain" |