- Use an iPod or an iPad without a SIM card
- Use an iPhone
- Do not jailbreak
- Always upgrade to new iOS versions
- Use Brave browser
The purpose of this document is to make recommendations on how to browse in a privacy and security conscious manner. This information is compiled from a number of sources, which are referenced throughout the document, as well as my own experiences with the described technologies.
I welcome contributions and comments on the information contained. Please see the How to Contribute section for information on contributing your own knowledge.
| import collections | |
| class DictProxy(collections.Mapping): | |
| """ | |
| A proxy for a dictionary that allows attribute access to underlying keys. | |
| You may pass a custom ``wrapper`` to override the logic for wrapping | |
| various custom types. | |
| """ |
| # -*- coding: utf-8 -*- | |
| import logging | |
| import os | |
| import uuid | |
| from flask import Flask | |
| from flask import redirect | |
| from flask import request | |
| from flask import url_for | |
| from flask.ext.login import LoginManager |
| from kivy.app import App | |
| from kivy.lang import Builder | |
| from kivy.properties import NumericProperty | |
| from kivy.uix.boxlayout import BoxLayout | |
| from kivy.clock import Clock | |
| Builder.load_string(''' | |
| <MainWidget>: | |
| BoxLayout: | |
| orientation: 'vertical' |
| <p> | |
| My programming language of preference is python for the simple reason that I feel I write better code faster with it then I do with other languages. However also has a lot of nice tricks and idioms to do things well. And partly as a reminder to myself to use them, and partly because I thought this might be of general interest I have put together this collection of some of my favourite idioms. I am also putting this on <a href="https://gist.github.com/codefisher/9d7993ddbf404c505128">gist.github.com</a> so that anyone that wants to contribute there own things can, and I will try and keep this post up to date. | |
| </p> | |
| <h2>enumerate</h2> | |
| <p> | |
| A fairly common thing to do is loop over a list while also keeping track of what index we are up to. Now we could use a <code>count</code> variable, but python gives us a nicer syntax for this with the <code>enumerate()</code> function. | |
| <script src="https://gist.github.com/codefisher/9d7993ddbf404c505128.js?file=enumerate.py"></script> |
This gist lets you keep IPython notebooks in git repositories. It tells git to ignore prompt numbers and program outputs when checking that a file has changed.
To use the script, follow the instructions given in the script's docstring.
For further details, read this blogpost.
The procedure outlined here is inspired by this answer on Stack Overflow.
| ''' | |
| A simple demonstration of obtaining, modifying and executing code objects in python without relying | |
| on commonly blocked keywords such as exec, compile, etc... | |
| -Patrick Biernat. | |
| ''' | |
| import __builtin__ | |
| mydict = {} |
| LAHLERIRAHLEDDIKWKT | |
| CNANOCIESRRAUNAFAOG | |
| WKRGGVREGAASNSESLRB | |
| TETEUAEGNLWOGNTKDET | |
| IUHLUHTCITDSERIAAAA | |
| RECKSUPERHEROEWSRRC | |
| EATCTVNCEANRNETGTKK | |
| NBAOAENNHRFAPMAKHEY | |
| IKGPREDATORTARRLVRR | |
| LSYSKCRVFHNSYYIAATU |