如何使用 docker 部署一个 beego 项目
class="highlight-chroma"><span class="highlight-line"><span class="highlight cl">在root目录下mkdir docker_test 在此目录下创建Dockerfile span>span><span class="highlight-line"><span class="highlight-cl">vi Dockerfile ker中) span>span><span class="highlight-line"><span class="highlight cl">FROM golang:1.9.1 span>span><span class="highlight-line"><span class="highlight-cl"> class="highlight-cl"> span>span><span class="highlight-line"><span class="highlight-cl"># Install beego an the bee dev tool* span>span><span class="highlight-line"><span class="highlight-cl">RUN go get
0 码力 | 5 页 | 269.19 KB | 1 年前3Unraveling string_view: Basics, Benefits, and Best Practices
and their interoperability • When to use string_view • Using string_view safely • Intro to span • span vs. string_view • Case study of an optimization using string_view. 2Motivation • Consider a Caught with -Wdangling Check out MSVC’s Lifetime Rules of the C++ Core Guidelines (-WLifetime).span: Motivation Consider the following functions void foo(int* arr, int n) { for (int i = 0; i < n; type which can consume all these contiguous containers with a single interface? 36span: Motivation void foo(spans) { for (const auto i : s) { cout << i << ' '; } cout << '\n'; } int arr[] 0 码力 | 61 页 | 1.11 MB | 5 月前3Regular, Revisited
data structures and algorithms to work properly. STL vocabulary types such as string_view, span, optional, expected etc., raise new questions regarding values types, whole-part semantics, copies analysis provides us some basis to evaluate non-owning reference parameters types (like string_view and span) in a practical fashion, without discarding Regular design. Titus Winters, 2018 abseil.io/bl Ciura | @ciura_victor - Regular, Revisited 93 Slide Title std::spanC++20 https://en.cppreference.com/w/cpp/container/span Think "array view" as in std::string_view, but mutable on underlying 0 码力 | 180 页 | 19.96 MB | 5 月前3一次线上java 应用响应时间过长问题的排查
cpu 的线程<span class="highlight-line"><span class="highlight cl">ps -mp pid -o THREAD,tid,time span>span>
发现 cpu 几乎全被一个线程占用了,将线程 id 转换成 16 进制
oma"><span class="highlight-line"><span class="highlight cl">printf "%x\n" tid span>span>打印线程堆栈信息
<span class="highlight-line"><span class="highlight class="highlight cl">jstack pid |grep tid -A 30 span>span>
看到的结果居然是,CMS 垃圾收集器的线程。。。
这,这,这不科学。垃圾回收
看垃圾回收日志,发现一直在进行 Full GC,但是几乎没啥效果,GC 完了,老年代依然是几乎 满的状态。
0 码力 | 3 页 | 247.74 KB | 1 年前3How Meta Made Debugging Async Code Easier with Coroutines and Senders
pool, ctx); unifex::sync_wait(std::move(task)); return 0; }unifex::taskasync_main(unifex::span args, auto &pool, auto &io) { auto jobs = args | views::transform( [io](fs::path fileName) std::printf("Average word length in %s is %g\n", args[i], mean); } }unifex::task async_main(unifex::span args, auto &pool, auto &io) { auto jobs = args | views::transform( [io](fs::path fileName) std::printf("Average word length in %s is %g\n", args[i], mean); } }unifex::task async_main(unifex::span args, auto &pool, auto &io) { auto jobs = args | views::transform( [io](fs::path fileName) 0 码力 | 131 页 | 907.41 KB | 5 月前3Secrets of C++ Scripting Bindings
concrete function (not a template) that can take any number of parameters. 1 Type generic_function(std::span); 12 . 11Copyright Jason Turner @le�icus emptycrate.com/idocpp A Generic Function Signature concrete function (not a template) that can take any number of parameters. 1 Type generic_function(std::span ); What should this placeholder Type be? 12 . 11Copyright Jason Turner @le�icus emptycrate concrete function (not a template) that can take any number of parameters. 1 Type generic_function(std::span ); What should this placeholder Type be? It needs to be able to hold all of the types we care 0 码力 | 177 页 | 1.65 MB | 5 月前3The CSS Handbook
is: p { color: yellow; } Every HTML tag has a corresponding selector, for example: div , span , img . If a selector matches multiple elements, all the elements in the page will be affected selectors. To do so, you separate them with a comma. Example:My dog name is:
<span class="dog-name"> Roger span> p, .dog-name { color: yellow; } You can add spaces in those declarations have a span tag nested inside a p tag, you can target that one without applying the style to a span tag not included in a p tag: 20 <span> Hello! span>My dog name is: <span class="dog-name">
0 码力 | 184 页 | 1.96 MB | 1 年前3Vue.js v3.0 教程(Vue3 教程)
attribute: 1.2. <span v-bind:title="message"> 3. 鼠标悬停几秒钟查看此处动态绑定的提示信息! 介绍 - 13 - 本文档使用 书栈网 · BookStack.CN 构建 4. span> 5.1. const AttributeBinding = { 2 mount('#two-way-binding') 控制切换一个元素是否显示也相当简单: 1.2. <span v-if="seen">现在你看到我了span> 3.1. const ConditionalRendering = { 2. data() { 3. return { 4. 的原始力量,你也可以不用模板,直接写渲染 (render) 函数,使用可选的 JSX 语法。 数据绑定最常见的形式就是使用“Mustache”语法 (双大括号) 的文本插值: 1. <span>Message: {{ msg }}span> Mustache 标签将会被替代为对应组件实例中 msg property 的值。无论何时,绑定的组件实例 上 msg property 发生了改变,插值处的内容都会更新。0 码力 | 368 页 | 3.97 MB | 1 年前3PyMuPDF 1.24.2 Documentation
quads. So, to mark span text correctly, its quad must be recovered from the data contained in the line and span dictionary. Do this with the following utility function (new in v1.18.9): span_quad = fitz.r recover_quad(line["dir"], span) annot = page.add_highlight_annot(span_quad) # this will mark the complete span text If you want to mark the complete line or a subset of its spans in one go, use the following above may specify any sub-list of line["spans"]. In the example above, the second to second- to-last span are marked. If omitted, the complete line is taken. 10.10 How to Analyze Font Characteristics To0 码力 | 565 页 | 6.84 MB | 1 年前32.4 Go 1.4 runtime
针对性改进,以期与垃圾回收器更好协作。 核心:自主管理,缓存复用,无锁分配。 page, span. 内存管理以页为基本单位,多个地址连续 页构成内存块。 VA 8K 8K 8K 8K 8K span1 span2 small, large. 以 32KB 为界,将对象分成大小两类。 span page object object object small large object 8 16 ... span 3 等⻓长切分 6 8 1 size [1] [2] ... class heap, central, cache. 三级管理机构。 heap central[1] cache cache 向 OS 申请内存。 管理空闲 span。 每个对应⼀一种 sizeclass。 从 heap 获取 span,切分。 管理未全部回收的 管理未全部回收的 span。 从 central 获取 span。 与线程绑定,⽆无锁分配。 ... ... central[n] lock lock lock free init. 算法依赖连续地址,预留较大地址空间。 VA 128GB arena ⽤用户内存分配区域 8GB bitmap 垃圾回收标记区域 128MB spans 块记录区域 ------------0 码力 | 29 页 | 608.57 KB | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100