#!/bin/sh
PYTHON=python3
${PYTHON} -c 'from sys import version; print(version)'
timeit()
================================================================= | |
==75136==ERROR: LeakSanitizer: detected memory leaks | |
Direct leak of 77392 byte(s) in 323 object(s) allocated from: | |
#0 0x7f499cd10f44 in strdup (/usr/lib/llvm-10/lib/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.so+0xa5f44) | |
#1 0x7f47cb88b8ef in pybind11::cpp_function::initialize_generic(pybind11::detail::function_record*, char const*, std::type_info const* const*, unsigned long) (/home/tdimson/anaconda3/envs/voxeloo_cuda112/lib/python3.8/site-packages/open3d/cpu/pybind.cpython-38-x86_64-linux-gnu.so+0x8638ef) | |
Direct leak of 76032 byte(s) in 432 object(s) allocated from: | |
#0 0x7f499cd24b6d in malloc (/usr/lib/llvm-10/lib/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.so+0xb9b6d) |
slmgr.vbs /upk
slmgr /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX
slmgr /skms zh.us.to
slmgr /ato
source 'https://rubygems.org' | |
gem 'httparty' | |
gem 'nokogiri' | |
gem 'pry' |
The libdispatch is one of the most misused API due to the way it was presented to us when it was introduced and for many years after that, and due to the confusing documentation and API. This page is a compilation of important things to know if you're going to use this library. Many references are available at the end of this document pointing to comments from Apple's very own libdispatch maintainer (Pierre Habouzit).
My take-aways are:
You should create very few, long-lived, well-defined queues. These queues should be seen as execution contexts in your program (gui, background work, ...) that benefit from executing in parallel. An important thing to note is that if these queues are all active at once, you will get as many threads running. In most apps, you probably do not need to create more than 3 or 4 queues.
Go serial first, and as you find performance bottle necks, measure why, and if concurrency helps, apply with care, always validating under system pressure. Reuse
#!/bin/bash | |
# | |
############################################### | |
#author: 0532 | |
#email: [email protected] | |
#date: 2016-06-16 | |
############################################### | |
base_dir=$(cd "$(dirname "$0")";pwd) |
/* | |
Copyright (c) 2009, David Anderson; 2016, Jaime Soffer. | |
All rights reserved. | |
Redistribution and use in source and binary forms, with or without | |
modification, are permitted provided that the following conditions are met: | |
* Redistributions of source code must retain the above copyright | |
notice, this list of conditions and the following disclaimer. | |
* Redistributions in binary form must reproduce the above copyright | |
notice, this list of conditions and the following disclaimer in the |
Install opencv3 with brew
brew tap homebrew/science
brew install opencv3
Be sure to have pkg-config, otherwise install it:
brew install pkg-config
be sure to have pkg-config var set correctly
通过nginx反向代理go语言写的http服务器 | |
1. nginx 配置 | |
#列出所有服务器地址,nginx 自动均衡分发请求到各个服务器。 | |
upstream frontends { | |
ip_hash; | |
server 192.168.199.1:8088; | |
server 192.168.199.2:8089; | |
} | |
server { | |
listen 80; |