Skip to content

Instantly share code, notes, and snippets.

View jezdez's full-sized avatar
🚴
💨

Jannis Leidel jezdez

🚴
💨
View GitHub Profile

Google Summer of Code'2020

Implement cross version support for Python


The projects aims to bring the support of python3 to the whole mozilla-central codebase and remove the support for python2 since it reached its end of life in January'20. It involves keeping up to date third_party packages so as to improve performance and add support for python3. There still a lot of work left that is to be done

BUGS


Django girls, Django gays
(E: entrevistador. A y B son los entrevistados, no consigo identificarlos por su voz al 100% con los que se presentan al principio del podcast)
- E: Tenéis pensada alguna actividad para fomentar una sociedad “más mejor”? Es una pregunta un poco rara.
- A: Je, ¿una sociedad más mejor? Hombre, pues mira, ahí va a haber como es la <no se entiende bien> Django Girls, los Django Gays, los Django... (se oyen risas) de todos los colores (más risas). Digo yo, por aquello de las cosas diferentes, no?
- B: Por ahora solo hay...
- A: (interrumpe) No, también a lo mejor hacemos los Django Macho <incomprensible> las mujeres
- B: Los Macho Ibéricos
- A: Hombre, a ver, básicamente, a ver. Lo que ocurre con Python y estas comunidades, ese movimiento de software libre compartido, eso es una revolución de tal calibre que ello per se ya es una transformación de la sociedad. No hay que andar buscándole muchas vueltas a la cosa. Yo he conocido la época en la que no había software, porque ya soy un poco
  1. The code will get better. Linus' Law: "given enough eyeballs, all bugs are shallow": we'll be able to get community contributions and bug reports, and thus the code will grow better faster than we can grow it ourselves. Also, Joy's Law - "No matter who you are, most of the smartest people work for someone else": we'll get better code from people who don't work for us than from people who do.

  2. We'll write better code. Wall's 3rd great virtual of a programmer, Hubris: we'll write better code people we don't want other people to say bad things about us. We'll do better with the world watching than with just us.

  3. Increased ability to hire. We're a 19k circ newspaper in a town most people have never heard of. Open source will help put us on the map, make us a place people actually might be interested in working.

  4. When we do hire, we'll be able to hire pe

@jezdez
jezdez / common [stash] fields.py
Created December 1, 2012 15:07 — forked from thomasyip/common [stash] fields.py
Updated version of Django BigInt Patch for 64bit Primary Keys
"""
module mydjangolib.bigint_patch
A fix for the rather well-known ticket #399 in the django project.
Create and link to auto-incrementing primary keys of type bigint without
having to reload the model instance after saving it to get the ID set in
the instance.
Logs:
@jezdez
jezdez / __init__.py
Created July 13, 2012 07:23 — forked from aliles/__init__.py
PEP 302 import hook to reload modules on changes
# apkg/__init__.py
# Empty. Nothing to see here.
@jezdez
jezdez / ps1.bash
Created May 30, 2011 12:18 — forked from zain/ps1.bash
PS1 that looks smexy (with added hg support)
#### PS1 customization ####
NONE="\[\033[0m\]" # unsets color to term fg color
# regular colors
K="\[\033[0;30m\]" # black
R="\[\033[0;31m\]" # red
G="\[\033[0;32m\]" # green
Y="\[\033[0;33m\]" # yellow
B="\[\033[0;34m\]" # blue
M="\[\033[0;35m\]" # magenta

How django_compressor {% compress %} works behind the scenes

This document assumes you already have an up and running instance of django_compressor, and that you understand how to use it in your templates. The goal is to explain what the main template tag, {% compress %}, does behind the scenes, to help you debug performance problems for instance.

First step: Offline cache

The goal of Summer of Code is to get your project written, reviewed, and
ultimately merged back into Django's trunk. We want your project to
succeed, and we approved it because we think you've got a good chance of
pulling it off.
However, this is easier said than done. You'll need to work hard,
communicate effectively with the community, and pass a rigorous peer
review. Your mentor -- and Django's committer team in general -- will give
you as much support as possible, but ultimately the onus is on your
shoulders to get this done.
@jezdez
jezdez / gist:314471
Created February 25, 2010 11:35 — forked from mmalone/gist:299905
"Memcached cache backend"
from django.core.cache.backends import memcached
from django.utils.encoding import smart_unicode, smart_str
MIN_COMPRESS_LEN = 150000
class CacheClass(memcached.CacheClass):
def add(self, key, value, timeout=None, min_compress_len=MIN_COMPRESS_LEN):
if isinstance(value, unicode):
@jezdez
jezdez / howto.txt
Created February 12, 2010 01:33 — forked from simonw/howto.txt
Save the supervisord.initscript script as /etc/init.d/supervisord
Run /usr/sbin/update-rc.d -f supervisord defaults