Testing Django Projects at Scale

July 11, 2016 Leave a comment

Talk given by Ash Christopher

Categories: django, Interesting, python Tags:

Testing in Django

July 11, 2016 Leave a comment

Published on Mar 12, 2012

Carl Meyer
A deep dive into writing tests with Django, covering Django’s custom test-suite-runner and the testing utilities in Django, what all they actually do, how you should and shouldn’t use them (and some you shouldn’t use at all!). Also, guidelines.

Categories: django, Interesting, python Tags:

Cache Side Channel Attacks: CPU design as a security problem

July 8, 2016 Leave a comment

End of May I had the opportunity to present my research on cache side channel attacks at the “Hack In The Box” conference. After my presentation with Nishat Herath last year at black hat I published my private comments to that slide deck and that was well received. I had decided to do that again for “Hack In The Box”, unfortunately it took me a little longer to translate my comments into something human readable. But here they are. Since the comments relate directly to a specific slide in the slide deck you’ll probably want to have the slide deck open when reading this blog post. You can find them here: https://conference.hitb.org/hitbsecconf2016ams/materials/D2T1%20-%20Anders%20Fogh%20-%20Cache%20Side%20Channel%20Attacks.pdf

https://cyber.wtf/2016/06/16/cache-side-channel-attacks-cpu-design-as-a-security-problem/

Categories: Interesting

Writing online multiplayer game with python and asyncio

July 6, 2016 Leave a comment
Categories: Interesting, python

Splitting up the settings file

July 5, 2016 Leave a comment

If you use a source control system (CVS, SVN, …), or want to publish your application on the web, it may be a good idea to move sensitive or machine/user specific settings like database passwords and such out of the main settings.py file.

As discussions on the ​django-developers mailing list have shown everybody has different requirements and ideas how to do this. This page is meant to collect some of these ideas for future reference.

One thing to keep in mind is that Django’s config files are pure Python. This gives you the ultimate flexibility to handle configurations the way you think is best. Or to quote Adrian Holovaty:

We don’t need a default solution for this. It’s not within the scope of this project to tell people how they should organize their settings files. Take that opportunity to showcase your individualism.

https://code.djangoproject.com/wiki/SplitSettings

Categories: django, notes

Argparse, Docopt and Click

July 5, 2016 Leave a comment

Comparing Python Command-Line Parsing Libraries – Argparse, Docopt, and Click

About a year ago I began a job where building command-line applications was a common occurrence. At that time I had used argparse quite a bit and wanted to explore what other options were available. I found that the most popular alternatives available were click and docopt. During my exploration I also found that other than each libraries “why use me” section there was not much available for a complete comparison of the three libraries. Now there is – this blog post!

https://realpython.com/blog/python/comparing-python-command-line-parsing-libraries-argparse-docopt-click/

Categories: Interesting, python

PostgreSQL Exercises — thoughts…

July 5, 2016 Leave a comment

Welcome to PostgreSQL Exercises! This site was born when I noticed that there’s a load of material out there to help people learn about SQL, but not a great deal to make it easy to learn by doing. PGExercises provides a series of questions and explanations built on a single, simple dataset. It’s designed for […]

via PostgreSQL Exercises — thoughts…

Categories: Interesting, postgresql
Follow

Get every new post delivered to your Inbox.

Join 46 other followers