Technical notes, my online memory
Tuesday, January 13, 2015
Python: Find the first true element (i.e. one that matches a condition) in an array
›
Say you want to check if any value of one array is in another array, and you only care if there is any match at all. Not what the value is,...
Friday, December 12, 2014
Skipping a python unittest with a custom decorator
›
Example custom Python unittest skip decorator: import functools import glob import os def skipIfNoYamlFiles(f): @functools.wraps(f) d...
2 comments:
Wednesday, December 10, 2014
Migrating Chrome Profiles to per-channel directories
›
If you run custom chrome profiles you might see a message like this in the terminal if/when you launch chrome from the commandline: [9894:...
Friday, November 28, 2014
Make newly added files show up in git diff output
›
Sometimes it's handy to be able to show a normal diff for all the changes in a patch. The default behaviour is to hide the diffs of new...
Sunday, November 23, 2014
Thunderbolt DMA attacks on OS X
›
The current TL;DR on Thunderbolt DMA attacks is that the VT-d IOMMU is doing its job and Ivy-Bridge (2012 and later hardware) Macs running O...
Sunday, November 9, 2014
SMTP email conversation threads with python: making gmail associate messages into a thread
›
I have some python software that sends emails, and I wanted gmail to group messages that were related to the same subject in a conversation....
2 comments:
Wednesday, November 5, 2014
Splitting an array into fixed-size chunks with python
›
If you're looking for a way to split data into fixed size chunks with python you're likely to run across this recipe from the iterto...
‹
›
Home
View web version