En Lomas de Morelia, no pueden ofrecerte mas de 1 mbps porque no tienen la infraestructura, pero lo que si pueden hacer es cobrartelo. Idiotas...
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
# Original Idea: http://djangosnippets.org/snippets/2124/ | |
from functools import wraps | |
from django.db.models.signals import pre_save | |
from django.db.models.signals import post_save | |
from django.db.models.signals import pre_delete | |
from django.db.models.signals import post_delete | |
from django.db.models.signals import m2m_changed | |
def autoconnect(cls): | |
""" |
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
class CacheBooleanField(serializers.BooleanField): | |
EXPIRES = 3600 * 24 * 30 | |
def field_from_native(self, data, files, field_name, into): | |
result = super(CacheBooleanField, self).field_from_native( | |
data, files, field_name, into | |
) | |
value = into.get(field_name, self.default) | |
cache.set(self.get_key(), value, self.EXPIRES) | |
return result |
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 asd = function (users) { | |
var result = []; | |
while ((result.length + users.length) > 5) { | |
last4 = users.splice(-4); | |
result.unshift(last4); | |
} | |
return users.concat(result); | |
}; |
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
import datetime | |
from django import template | |
register = template.Library() | |
@register.simple_tag | |
def get_verbose_name(model, field): | |
""" | |
How to use it: | |
{% get_verbose_name model "field" %} |
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
(deltamedix)ed@HinduKush:~/projects/deltamedix/deltamedix$ cat /etc/freetds/freetds.conf | |
# $Id: freetds.conf,v 1.12 2007/12/25 06:02:36 jklowden Exp $ | |
# | |
# This file is installed by FreeTDS if no file by the same | |
# name is found in the installation directory. | |
# | |
# For information about the layout of this file and its settings, | |
# see the freetds.conf manpage "man freetds.conf". | |
# Global settings are overridden by those in a database |
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
HELLO MARROQUIN | |
I AM MR.JOHN KHAIRI, A CITIZEN OF MALAYSIA ,REGIONAL AUDITOR OF BARCLAYS BANK GHANA BRANCH. I HAVE IN MY BANK THE EXISTENCE OF A BIG AMOUNT OF MONEY VALUED US$8,000,000.00 (EIGHT MILLION US DOLLARS)THAT BELONGS TO A CUSTOMER, MR.DENIS MARROQUIN | |
AND WHO HAPPEN TO HAVE THE SAME SURNAME AS YOURS .THE FUND IS NOW WITHOUT ANY CLAIM BECAUSE MR. DENIS DIED IN A DEADLY EARTHQUAKE IN CHINA IN 2008 . I WANT YOUR CORPERATION SO AS TO MAKE THE BANK SEND YOU THE FUND AS THE BENEFICIARY AND NEXT OF KIN TO THE FUND. | |
TRUST PLEASE! | |
THIS TRANSACTION WILL BE OF A GREAT MUTUAL ASSISTANCE TO US. SEND ME YOUR REPLY OF INTEREST SO THAT I WILL GIVE YOU THE DETAILS. | |
STRICTLY SEND IT TO MY PRIVATE EMAIL ACCOUNT: [email protected], OR SEND ME | |
YOUR EMAIL ADDRESS TO SEND YOU DETAILS OF THIS TRANSACTION. | |
AT THE RECIEPT OF YOUR REPLY, I WILL GIVE YOU DETAILS OF THE TRANSACTION. AND A COPY OF THE DEPOSIT CERTIFICATE OF THE FUND AND ALSO THE INCORPORATION CERTIFICATE OF THE COMPANY THAT GENERATED THE FUND. |
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 settings.DEBUG: | |
urlpatterns += patterns('', | |
url(r'^media/(?P<path>.*)$', 'django.views.static.serve', { | |
'document_root': settings.MEDIA_ROOT, | |
}), | |
) |
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
def get_profile(user): | |
if not hasattr(user, '_profile_cache'): | |
profile, created = UserProfile.objects.get_or_create(user=user) | |
user._profile_cache = profile | |
return user._profile_cache | |
User.get_profile = get_profile |
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
import re | |
from django.utils.text import compress_string | |
from django.utils.cache import patch_vary_headers | |
from django import http | |
try: | |
import settings | |
XS_SHARING_ALLOWED_ORIGINS = settings.XS_SHARING_ALLOWED_ORIGINS |