Graham, you seem to find every post written about mod_wsgi within *minutes*.
What’s your secret?
Goes google alerts work that fast?
Yuji's Increasingly Infrequent Ramblings
Graham, you seem to find every post written about mod_wsgi within *minutes*.
What’s your secret?
Goes google alerts work that fast?
Mine was solved by going to Finder, CMD+J, then disabling “Show Icon Preview”.
That let me know some kind of thumbnail generation was failing, and since this was a new problem, I started looking at recent files on my desktop. One of them did not have a preview. I deleted that, and my fans immediately turned off.
I don’t know what file it was, but apparently it was stuck on it…
If you have this error… make sure you have the LocaleMiddleware installed in your MIDDLEWARE_CLASSES.
MIDDLEWARE_CLASSES = (
# other middleware ...
'django.middleware.locale.LocaleMiddleware',
)
If you can’t get to gmail due to HTTPS errors, make sure your systems date/time is correct, as the certificates are validated against your system time.
Here’s a way to get all unsubscribed in your account ever;
I’m having trouble with the fact it starts blocking me after a few “bad requests” trying to remove a contact that’s not in the list, but oh well. This is progress.
def get_all_unsubscribed(): import mailjet api = mailjet.Api() list_ids = [x['id'] for x in api.lists.all()['lists']] unsubscribed = [] for list_id in list_ids: total_accounted_for = 0 total_count = api.lists.Contacts(id=list_id, status='unsub')['total_cnt'] while total_accounted_for < total_count: if total_accounted_for: result = api.lists.Contacts(id=list_id, status='unsub', start=total_accounted_for) else: result = api.lists.Contacts(id=list_id, status='unsub') print 'found ... results ', len(result['result']) if not result['result']: print 'found end... @ ', total_accounted_for, total_count break for u in result['result']: unsubscribed.append(u) total_accounted_for += len(result['result']) return unsubscribed
I couldn’t figure out gunicorns setup syntax easily through google searches.
it’s DOTTED.PYTHON.PATH.TO.MODULE:APP_NAME
web: gunicorn my_folder.my_module:app -b 0.0.0.0$PORT -w 3
IPython does not respect virtualenvwrappers python init. The simplest solution was found in the comments here: http://blog.ufsoft.org/2009/1/29/ipython-and-virtualenv
alias ipython=’python -c “import IPython; IPython.embed()”‘
http://www.designaesthetic.com/2010/12/19/dkim-with-linodes-dns-manager/
deadwalrus says:
The linode guys responded to my ticket. Apparently adding the site.com is a nono. They informed me that their DNS server automatically appends site.com and that having “_domainkey.site.com” messes it up.
So, I changed the entries from “_domainkey.site.com” to “_domainkey” and it worked properly.
This was not a big deal since the linode team responded so quickly – although this is counterintuitive because it relies on a specific unpublished feature of the linode DNS manager. I migrated over from Slicehost and their DNS servers most definitely require that your txt records be entered as “_domainkey.site.com”.
Ahh well. Thanks again.
This is how mine looks for the DKIM TXT entry:
Leave site.com out of the domainkey.
Name: should be selector._domainnkey
Value: should be the unquoted key=value pairs. This is not immediately clear from DKIM “install” instructions on various websites as they tell you it should be a single line record. Linode DNS manager abstracts this a bit, I guess.
This happens if you install satchmo via pip instead of pointing to the satchmo egg on mercurial.
pip install -e hg+http://bitbucket.org/chris1610/satchmo/#egg=satchmo