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
/* Requiere JQuery*/ | |
if(navigator.platform == 'iPad' || navigator.platform == 'iPhone' || navigator.platform == 'iPod') | |
{ | |
$("#footer").css("position", "static"); | |
}; |
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
06/Jun/2011 10:13:09 INFO - EDU Media: user 'a' at 192.168.1.4:49298 connected. | |
06/Jun/2011 10:13:09 ERROR - Closed an unclosed RepLogin: <RepLogin: Test User (192.168.1.4:51282) - 2011-06-04 14:09:16.719014> | |
06/Jun/2011 10:13:09 INFO - Set logout_datetime for RepLogin Test User (192.168.1.4:51282) - 2011-06-04 14:09:16.719014 | |
06/Jun/2011 10:13:41 INFO - Updated campaign 2. | |
06/Jun/2011 10:13:41 INFO - Attempting to refill Campaign Hopper for campaign 2 with 500 prospects | |
06/Jun/2011 10:13:42 WARNING - No unexpired, unpopped prospects to fill Campaign Hopper with for campaign 2! | |
06/Jun/2011 10:13:42 INFO - Attempting to refill hopper for campaign 2 | |
06/Jun/2011 10:13:42 INFO - Updated campaign 2. | |
06/Jun/2011 10:13:48 INFO - Hopper for campaign 2 filled with 500 prospect(s). | |
06/Jun/2011 10:13:48 INFO - Attempting to refill Campaign Hopper for campaign 2 with 500 prospects |
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
2011-06-06 11:19:29.980690 [DEBUG] switch_ivr_originate.c:1973 variable string 0 = [ppcc_campaign_slug=emg-edu] | |
2011-06-06 11:19:29.980690 [DEBUG] switch_ivr_originate.c:1973 variable string 1 = [ppcc_test_call=yeppers] | |
2011-06-06 11:19:29.980690 [DEBUG] switch_ivr_originate.c:1973 variable string 2 = [ppcc_pitch_pk=2] | |
2011-06-06 11:19:29.980690 [DEBUG] switch_ivr_originate.c:1973 variable string 3 = [cc_base_score=0] | |
2011-06-06 11:19:29.980690 [DEBUG] switch_ivr_originate.c:1973 variable string 4 = [ppcc_dial_string=sofia/ppcc_queretaro/ajamaica-laptop%emg] | |
2011-06-06 11:19:29.980690 [DEBUG] switch_ivr_originate.c:1973 variable string 5 = [ignore_early_media=true] | |
2011-06-06 11:19:29.980690 [DEBUG] switch_ivr_originate.c:1973 variable string 6 = [ppcc_queue_name=emg-edu@emg] | |
2011-06-06 11:19:29.980690 [DEBUG] switch_ivr_originate.c:1973 variable string 7 = [ppcc_call_leg_type=prospect] | |
2011-06-06 11:19:29.980690 [DEBUG] switch_ivr_originate.c:1973 variable string 8 = [ppcc_prospect_id=1960258] | |
2011-06-06 11: |
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
from django.forms.models import model_to_dict | |
from django.utils.simplejson import dumps, JSONEncoder | |
from django.utils.encoding import force_unicode | |
#Model es tu modelo y esto es un view | |
def model_to_json(request): | |
try: | |
model_id = request.GET["model_id"] | |
model = Model.objects.get(pk=model_id) | |
except: | |
raise Http404 |
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
from django.contrib import admin | |
import datetime | |
from django import forms | |
class ReadOnlyWidget(forms.Widget): | |
def __init__(self, original_value, display_value): | |
self.original_value = original_value | |
self.display_value = display_value | |
super(ReadOnlyWidget, self).__init__() |
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
<?php | |
/* Tell search engines that the site is temporarily unavailable */ | |
$protocol = $_SERVER["SERVER_PROTOCOL"]; | |
if ( 'HTTP/1.1' != $protocol && 'HTTP/1.0' != $protocol ) $protocol = 'HTTP/1.0'; | |
header( "$protocol 503 Service Unavailable", true, 503 ); | |
header( 'Content-Type: text/html; charset=utf-8' ); | |
?> |
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
import urllib | |
from django import template | |
from django.template.defaultfilters import stringfilter | |
from django.utils.html import conditional_escape | |
from django.utils.safestring import mark_safe | |
register = template.Library() | |
@register.filter | |
@stringfilter |
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
# Instalación de paqueterias | |
sudo apt-get install libapache2-mod-wsgi | |
# Vamos a la carpeta | |
cd /etc/apache2 | |
# Agregamos esta linea dentro del http.conf (site 1, site 2, depende la configuración de sus virtual host) Tiene que apuntar directo a un archivo .wsgi que tiene que estar preferente mente alado de la carpeta de su proyecto. | |
WSGIScriptAlias / /home/ajamaica/django.wsgi |
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
[[searchBar.subviews objectAtIndex:0] removeFromSuperview]; | |
searchBar.backgroundColor = [UIColor clearColor]; |
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
from django import forms | |
from django.contrib.auth.forms import UserCreationForm | |
from django.contrib.auth.models import User | |
class UserCreationFormExtended(UserCreationForm): | |
def __init__(self, *args, **kwargs): | |
super(UserCreationFormExtended, self).__init__(*args, | |
**kwargs) | |
self.fields['email'].required = True | |
self.fields['first_name'].required = True |
OlderNewer