サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
買ってよかったもの
technosophos.com
In this post, we'll define a Kubernetes Custom Resource Definition (CRD) and then write a controller (or operator) to manage it -- all in 60 lines of Rust code. Over the last several months, I have been writing more and more Kubernetes-specific code in Rust. Even though Kubernetes itself was written in Go, I am finding that I can typically write more concise, readable, and stable Kubernetes code i
There are four steps you should take if you are running Tiller (Helm's server-side component) in a cluster that has untrusted users or pods. These steps are done at installation time, and will substantially improve Helm's security. The easiest way to install Tiller is with the helm init command. Run just like that, it will install a version of Tiller into the cluster. But the version it installs h
There is a new way to manage Go dependencies, and Glide 0.5 makes this process efficient and powerful. Glide 0.5 is a feature-packed release supporting: 100% full vendor/ support, including deeply nested projects. Recursive dependency resolution Dependency management aware of... Git, Mercurial, Bazaar, Subversion... Tags, branches, forks, and commits... OS and Architecture dependencies... And Gode
The Go language comes with a powerful built-in template engine. In this article I show how to add custom template functions (functions you can call from within a template). In an earlier post I showed one way of creating a web application in Go. There I added support for templates. At its most basic, adding a bundle of templates looks like this: import ( "os" "html/template" ) func main() { // Cre
Most web requests by design take only a few dozen milliseconds to process. But sometimes web apps need to leave a connection open for a longer period of time. And sometimes the remote client closes the connection before the server has had time to respond. On a Go-based webserver, you can receive notifications when the HTTP connection terminates. Here's how you do it. <!--break--> Start with an HTT
Nagios: Fixing "error: Could not stat() command file" (on Debian) Nagios is a network monitoring tool. I use it to track web servers, mail servers, and whatever else I have running on the LAN and on the Internet. One common configuration issue is getting the Service Commands menu to work correctly. By default, it is visible in the UI, but disabled on the server backend. And on Debian, not all of t
The ability to generate a stack trace can prove to be very useful, especially when writing log files. The Go language's runtime package provides a helper for generating a stack trace. Here's how to use it. Simply put, you can grab a stack trace from just about anywhere in a Go program. Import the runtime package, create a []byte to use as a buffer, and then call runtime.Stack(): import ( "runtime"
iTerm as VisoriTerm2 is a replacement for the built-in Mac terminal app. It provides many terminal features you may be used to from other systems (ahem, Linux), as well as some unique features and tools. When it comes to OS X integration, iTerm2 has some amazing capabilities. You can even configure it to emulate Visor. Here I explain how to configure iTerm2 to slide down from the top of the screen
Node debuggerThe HTTP version of the app worked, but the commandline version did not. What went wrong? It was hard to say. The application simply hung, unresponsive. Try/catch and event handlers didn't find anything wrong, and my typical console.log() approach wasn't cutting it, either. I need to fire up Node.js's command line debugger. This is a short tutorial explaining how to use the debugger t
A 53,900% speedup: Nignx, Drupal, and Memcache bring concurrency up and page load time way down With a clever hack utilizing Memcache, Nginx, and Drupal, we have been able to speed the delivery time of many of our major pages by 53,900% (from 8,100 msec to 15 msec, according to siege and AB benchmarks). Additional, we went from being able to handle 27 concurrent requests to being able to handle 3,
A Set of Objects in PHP: Arrays vs. SplObjectStorage One of my projects, QueryPath, performs many tasks that require maintaining a set of unique objects. In my quest to optimize QueryPath, I have been looking into various ways of efficiently storing sets of objects in a way that provides expedient containment checks. In other words, I want a data structure that keeps a list of unique objects, and
このページを最初にブックマークしてみませんか?
『technosophos.com』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く