- 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
if encoded=`osascript -e 'the clipboard as «class HTML»'` 2>/dev/null; then echo $encoded | perl -ne 'print chr foreach unpack("C*",pack("H*",substr($_,11,-3)))' | pandoc --no-wrap -f HTML -t markdown; else; pbpaste; fi | |
# for my .vimrc: | |
# command PasteMarkdown :read !if encoded=`osascript -e 'the clipboard as «class HTML»'` 2>/dev/null; then echo $encoded | perl -ne 'print chr foreach unpack("C*",pack("H*",substr($_,11,-3)))' | pandoc --no-wrap -f HTML -t markdown; else; pbpaste; fi | |
# nnoremap ,pmd :PasteMarkdown<CR> |
As of version 3.3, python includes the very promising concurrent.futures
module, with elegant context managers for running tasks concurrently. Thanks to the simple and consistent interface you can use both threads and processes with minimal effort.
For most CPU bound tasks - anything that is heavy number crunching - you want your program to use all the CPUs in your PC. The simplest way to get a CPU bound task to run in parallel is to use the ProcessPoolExecutor, which will create enough sub-processes to keep all your CPUs busy.
We use the context manager thusly:
with concurrent.futures.ProcessPoolExecutor() as executor:
The current (3.2.3) windows binary distribution is missing mono-2.0.dll
, so it must be build from source.
Get Mono source
Using Cygwin, follow these instructions
"configure: error: msgfmt not found. You need to install the 'gettext' package, or pass --enable-nls=no to configure." Need cygwin package gettext-devel and probably gettext too.
class PipedProcess { | |
import stdfilestream; | |
private { | |
ProcessPipes m_pipes; | |
StdFileStream m_stdout; | |
StdFileStream m_stdin; | |
Thread m_waitThread; | |
SysTime m_startTime; | |
SysTime m_endTime; |
ALL | |
All messages in the mailbox; the default initial key for | |
ANDing. | |
ANSWERED | |
Messages with the \Answered flag set. | |
BCC | |
Messages that contain the specified string in the envelope | |
structure's BCC field. |
// NOTE: This class is now part of vibe.d, see http://vibed.org/api/vibe.stream.stdio/StdFileStream |
pure: | |
nothrow: | |
// T[] = T[] op T[] | |
void arrayOp(string op, T)(T[] res, in T[] a, in T[] b) | |
in | |
{ | |
assert(res.length == a.length); | |
assert(res.length == b.length); | |
} |