blog.webfuns.net
用Memcache实现分布式的锁服务 | webfuns–趣味互联网
https://blog.webfuns.net/archives/1722.html
Author: tomheng zhm20070928@gmail.com. Gist: https:/ gist.github.com/tomheng/6149779. Memcache lock service key. Param [type] $name [description]. Get key (. Param [type] $name [description]. Dolog('Lock failed '.$name);. Echo '#'.PHP EOL;. PHP EOL ;. SimplePie 将中文编码成 HTML Entities 的解决方法. 转]Inside NGINX: How We Designed for Performance & Scale. 网站优化应重视DNS预获取 dns-prefetch – 热前端.
blog.webfuns.net
[转]Go Data Structures | webfuns–趣味互联网
https://blog.webfuns.net/archives/1912.html
When explaining Go to new programmers, I’ve found that it often helps to explain what Go values look like in memory, to build the right intuition about which operations are expensive and which are not. This post is about basic types, structs, arrays, and slices. Let’s start with some simple examples:. Represented in memory as a single 32-bit word. (All these pictures show a 32-bit memory layout; in the current implementations, only the pointer gets bigger on a 64-bit machine. An array of 5. Fields in a s...
blog.webfuns.net
未分类 | webfuns–趣味互联网
https://blog.webfuns.net/archives/category/未分类
When explaining Go to new programmers, I’ve found that it often helps to explain what Go values look like in memory, to build the right intuition about which operations are expensive and which are not. This post is about basic types, structs, arrays, and slices. Let’s start with some simple examples:. Represented in memory as a single 32-bit word. (All these pictures show a 32-bit memory layout; in the current implementations, only the pointer gets bigger on a 64-bit machine. An array of 5. Fields in a s...
blog.webfuns.net
[转]The Go scheduler | webfuns–趣味互联网
https://blog.webfuns.net/archives/1886.html
One of the big features for Go 1.1 is the new scheduler, contributed by Dmitry Vyukov. The new scheduler has given a dramatic increase in performance for parallel Go programs and with nothing better to do, I figured I’d write something about it. Most of what’s written in this blog post is already described in the original design doc. It’s a fairly comprehensive document, but pretty technical. What does the Go runtime need with a scheduler? When you have many threads scheduled out at random points, chance...
blog.webfuns.net
My project | webfuns–趣味互联网
https://blog.webfuns.net/archives/category/my-project
不知道Ubuntu 从哪个版本开始加上的CPU的过热保护机制,就是CPU一旦到达指定温度 我的是90度 ,啪就自己关机。 打开/etc/default/grub.cfg文件,找到 GRUB CMDLINE LINUX DEFAULT,改成GRUB CMDLINE LINUX DEFAULT=”quiet splash thermal.nocrt=1″。 WordPress外部调用插件 js方式 -Ecall插件更新至1.12.15. Script type=’text/javascript’ src=’http:/ domain/index.php? Script type=’text/javascript’ src=’http:/ domain/? Script type=’text/javascript’ src=’http:/ domain/index.php? Script type=’text/javascript’ src=’http:/ blog.webfuns.net/api.php? 3) 修复了Cache time 无法设置为空的问题.
blog.webfuns.net
GC | webfuns–趣味互联网
https://blog.webfuns.net/archives/tag/gc
21 连续 VS. 并行. 22 并发 VS. stop-the-world. 23 压缩 VS. 不压缩 VS. 复制. 四、J2SE 5.0的HotSpot JVM上的GC学习 – 分代、GC类型、快速分配. 五、J2SE 5.0的HotSpot JVM上的GC学习 – SerialGC. 六、J2SE 5.0的HotSpot JVM上的GC学习 – ParallelGC. 七、J2SE 5.0的HotSpot JVM上的GC学习 – ParallelCompactingGC. 八、J2SE 5.0的HotSpot JVM上的GC学习 – CMS GC. 12 连续 VS. 并行. 13 并发 VS. stop-the-world. Stop the world 的GC相对简单,因为heap被冻结,对象的活动也已经停止。 14 压缩 VS. 不压缩 VS. 复制. 暂停时间 应用花在GC stop-the-world 的时间. 4 J2SE 5.0的HotSpot JVM上的GC学习 – 分代、GC类型、快速分配. J2SE50 update 6 的HotSpot上有4个GC。 Dprogram&#...
blog.webfuns.net
[转]How to write benchmarks in Go | webfuns–趣味互联网
https://blog.webfuns.net/archives/1881.html
转]How to write benchmarks in Go. This post continues a series on the testing package I started a few weeks back. You can read the previous article on writing table driven tests here. You can find the code mentioned below in the https:/ github.com/davecheney/fib repository. The Go testing package contains a benchmarking facility that can be used to examine the performance of your Go code. This post explains how to use the testing package to write a simple benchmark. From fib test.go. Benchmark functions a...
blog.webfuns.net
通过浏览器更新SVN | webfuns–趣味互联网
https://blog.webfuns.net/archives/1868.html
Export LC CTYPE=en US.UTF-8 & /usr/bin/svn up - username user test - password pass test /data1/svn repo 2 &1'. Export LC CTYPE=en US.UTF-8 解决此问题. 2 &1 解决此问题. 参考 http:/ zyan.cc/post/371/. Are you too busy to improve? 转]Inside NGINX: How We Designed for Performance & Scale. 网站优化应重视DNS预获取 dns-prefetch – 热前端.
blog.webfuns.net
svn | webfuns–趣味互联网
https://blog.webfuns.net/archives/tag/svn
Export LC CTYPE=en US.UTF-8 & /usr/bin/svn up - username user test - password pass test /data1/svn repo 2 &1'. Export LC CTYPE=en US.UTF-8 解决此问题. 2 &1 解决此问题. 参考 http:/ zyan.cc/post/371/. Svn cleanup /data/html/uicss.cn'. Svn update /data/html/uicss.cn - username cuikai - password 111222333'. 转]Inside NGINX: How We Designed for Performance & Scale. 网站优化应重视DNS预获取 dns-prefetch – 热前端.
blog.webfuns.net
Google | webfuns–趣味互联网
https://blog.webfuns.net/archives/category/google
Ubuntu 升级到13.10后Chromium 的 extension 都不工作了. Canonical 前段时间刚发布了 Ubuntu 13.10 (Saucy). Dl-ssl.google.com /. Linux signing key.pub. Add it to the repository. Echo deb http:/ dl.google.com/linux/chrome/deb/ stable main /etc/apt/sources.list.d/google-chrome.list'. PS Chrome 和 Chromium 的区别. 1 site:www.yholiday.com 收录的 网页中没有首页的影子. 1 在网站开通并且少量收录以后 大约14天前 ,进行过一次首页关键词的改动,在关键词中间加了一些相关词。 初入江湖的时候,它用的域名是blog.webfuns.cn ,后来cn域名风波袭来,考虑再三,我准备 更换域名. 从blogwebfuns.cn迁移到了blog.webfuns.net。