A required part of this site couldnât load. This may be due to a browser extension, network issues, or browser settings. Please check your connection, disable any ad blockers, or try using a different browser.

I just started using Capistrano for deploying my Rails applications (like Snapclean.me"). I also just started using capistrano_rsync_with_remote_cache to help push releases out faster than the :copy deploy strategy. Iâm very happy with how much faster it is than the a :copy, but Iâm impatient and having to provide the password more than once per invocation is frustrating to me. I know the old Unix
Zabbix API ã®Python liblaryã使ã£ã¦ã¾ãã(Zabbix 2.0.0rc2ã§åä½ç¢ºèªã1.8ç³»ã¯APIãéãã®ã§ãé å¼µã£ã¦JSONã®ä¸èº«ãå¤ãã¦ä¸ããã) ã¹ã¯ãªããæ¬ä½ããã° https://github.com/oopsops/scripts/blob/master/zabbix/zabbix_munin_plugin.py ä½¿ãæ¹ # UserParameterã«ç»é²ãã¦Agentããªã¹ã¿ã¼ã echo 'UserParameter=munin[*],/usr/share/munin/plugins/$1 |grep "^$2.value" |cut -d " " -f2' > /etc/zabbix/zabbix_agentd.d/userparameter_munin_plugin.conf service zabbix-agent restart # é©
404 Not Found ãæ¢ãã®ãã¼ã¸ã¯è¦ã¤ããã¾ããã§ããã èª ã«ç³ã訳ãããã¾ãããããæ¢ãã®ãã¼ã¸ã¯åé¤ãããããURLã夿´ã«ãªã£ãå¯è½æ§ãããã¾ãã ãææ°ã§ããã以ä¸ã®ããã²ã¼ã·ã§ã³ãããã¼ã¸ããæ¢ããã ããã ãã¼ã ãã¼ã¸ã«æ»ã£ã¦ åãããæ¢ã PlayStationãªãã£ã·ã£ã«ãµã¤ãã§ã¯ã²ã¼ã æ©æ¬ä½ãã²ã¼ã ã½ããæ å ±ãå種ãµã¼ãã¹æ å ±ããæ¢ãããã ãã¾ãã
A month ago, I published an article on the compared performance of stunnel, nginx and stud as TLS terminators. The conclusion was to use stud on a 64-bit system, with session caching and AES. stunnel was unable to scale properly and nginx exhibited important latency issues. I got constructive comments on many aspects. Therefore, here is the second round. The protagonists are the same but both the
haproxy ã¯L7ãã¼ããã©ã³ãµã®ã½ããã¦ã§ã¢ã§ãã ããã«ãã£ã¦ Solr ã¸ã®æ¤ç´¢è¦æ±ãã¿ãã§ç°¡åã«åé·åã»è² è·åæ£ãããã¨ãã§ããããã«ãªãã¾ãã haproxy ã¤ã³ã¹ãã¼ã« $ wget http://haproxy.1wt.eu/download/1.4/src/haproxy-1.4.8.tar.gz $ cd haproxy-1.4.8 $ make TARGET=linux26 <- OSã®ã¿ã¤ããæå®ãREADMEãåç § $ su - # make install <- ããã©ã«ãã¯/usr/localã夿´ããå ´åã¯PREFIX=/hoge/localãªã©æå® # cp examples/haproxy.init /etc/init.d/haproxy # chmod 755 /etc/init.d/haproxy # chkconfig --add haprox
HAProxyã使ã£ã¦MySQLãåé·åãã¦ã¿ãã ãµã¼ãæ§æ HAProxyã®ã¤ã³ã¹ãã¼ã« wget http://haproxy.1wt.eu/download/1.4/src/haproxy-1.4.10.tar.gz tar xf haproxy-1.4.10.tar.gz cd haproxy-1.4.10 make TARGET=linux26 make install cp examples/haproxy.init /etc/init.d/haproxy chmod 755 /etc/init.d/haproxy sed -i -r 's|/usr/sbin|/usr/local/sbin|' /etc/init.d/haproxy useradd -s /sbin/nologin haproxy mkdir /etc/haproxy touch /etc/haproxy/
ååã®ç¶ã(id:shimula:20101020)ã§ãä»åã¯ã¬ã¹ãã³ã¹ãHAProxyã§æä½ãã¦ã¿ã¾ãã rspadd HTTPã¬ã¹ãã³ã¹ãããã¼ã追å ãã¾ãã è¨å®ä¾ï¼"X-Resp-Greeding"ãããã¼ã追å ãã¾ãã listen web1 bind :8080 mode http server web1 192.0.2.1:80 check rise 1 fall 3 rspadd X-Resp-Greeding:\ Hello http://192.0.2.1:8080/ã«ã¢ã¯ã»ã¹ããæã®ã¬ã¹ãã³ã¹ãããã¼ã¯ã以ä¸ã®çµæã¨ãªãã¾ãããæå¾ã«"X-Resp-Greeding"ãããã¼ã追å ããã¦ãããã¨ã確èªã§ãã¾ããã HTTP/1.1 304 Not Modified Date: Sat, 13 Nov 2010 11:39:44 GMT Server: Apache/2
This document introduces Apache Giraph, an open source implementation of Google's Pregel framework for large scale graph processing. Giraph allows for distributed graph computation using the bulk synchronous parallel (BSP) model. Key points: - Giraph uses the vertex-centric programming model where computation is defined in terms of messages passed between vertices. - It runs on Hadoop and uses its
ã¯ããã« æå¾ã«ã¯å¸«ç¯ä»£ã«èªå® gitè¦ãããããã¸ã§ã¯ãã heroku.com 㸠deploy ããã å¿: gitç·è«ãå¿æ§ã @iwamatsu 岩æ¾ãã Debianã®OSéçº å¸«ç¯ å½¼ãmergeãrebaseãã§ããªãã£ããå¥ããã gitã¯åæ£ ãªã¢ã¼ããªãã¸ããªã¨ãã¼ã«ã«ãªãã¸ã㪠主ãªä½æ¥ã¯ãã¼ã«ã«ãªãã¸ããªã§è¡ã å¿ è¦ãªãã¼ã¿ããã¼ã«ã«ã«ããã®ã§åä½ãéã ããã·ã¥ãã¦ã¯ããã¦ãä»ã®ã¦ã¼ã¶ã¼ã¨å±¥æ´å ±æããã ãã¼ã«ã«ãªãã¸ããªã¯ããã®ãã®ããªã¢ã¼ããªãã¸ããªã¯ã¿ããªã®ãã® ãªã¢ã¼ããªãã¸ããªã¨ãã¼ã«ã«ãªãã¸ã㪠HEAD ãã¾ãã§ãã¯ã¢ã¦ããã¦ãããã® ä½æ¥ä¸ã«èª°ããã³ããããããã·ã¥ãã¦ãããã¼ã«ã«ã¯èªèã§ããªã ãªã¢ã¼ãã®ä½æ¥ãåæ ããã¾ã§ã¯ãã®è¾ºã¯æ°ã«ããªãã§è¯ã gitã¯é å¥ ä¹±æ´ã«è¨ãã¨ã¹ãããã·ã§ããã·ã¹ãã SHA1ããã·ã¥ã§ç®¡çããã¦ããã ã³ããã
ãã®ã¦ã§ããµã¤ãã¯è²©å£²ç¨ã§ãï¼ twiwt.org ã¯ãããªãããæ¢ãã®æ å ±ã®å ¨ã¦ã®ææ°ãã¤æé©ãªã½ã¼ã¹ã§ããä¸è¬ãããã¯ããããããæ¤ç´¢ã§ããå 容ã¯ãtwiwt.orgãå ¨ã¦ã¨ãªãã¾ããããªãããæ¢ãã®å 容ãè¦ã¤ãããã¨ãé¡ã£ã¦ãã¾ãï¼
source-mapã¯éå¸¸ã«æå¾ ã®ã§ããæè¡ã ãã軽ã仿§ãèªãã§ãã©ã®ããã«åãã®ãããããããªããããã§ãsouce-mapãå¯è¦åãããã¼ã«ãä½ã£ã¦ã¿ããsource-mapã®å¦çã«ã¯mozillaã®JavaScriptã«ããå®è£ ã使ã£ãã å·¦ããªãªã¸ãã«ã®ã½ã¼ã¹ã³ã¼ããå³ãclosure compilerã§æé©åããã³ã¼ãã§ãããå ·ä½çãªã³ãã³ãã©ã¤ã³ãªãã·ã§ã³ã¯ä»¥ä¸ã®repositoryã®Makefileåç §ã®ãã¨ãè¦ç´ ããè¦ç´ ã¸ã®ç·ã¯canvasãå©ç¨ãããChromeã¨Firefoxã§ã®ã¿ç¢ºèªããã®ã§ãä»ã®ãã©ã¦ã¶ã§ã¯ãã¾ã表示ã§ããªããããããªãã demo repository æ¹è¯ã®ä½å°ã¯ãããã®ã®ãã¨ããããããã§ãããã°ã§ããããã«ãªã£ãã
optparseããargparseã«å¤æ´ã 1 tonicdnscli ã®Python 3ã¸ã®å¯¾å¿ããããã¨ããéãã³ãã³ãã©ã¤ã³ãªãã·ã§ã³ã«ä½¿ç¨ãã¦ãã optparseã¢ã¸ã¥ã¼ã«ãPython 2.7 ã§å»æ¢äºå®ã ã¨ãããã¨ãç¥ãã¾ãããããã§ãoptparseããargparseã«å¤æ´ãããã¨ã«ãã¾ãããoptparseã§ã¯ãå ¥åãã¡ã¤ã«ãJSONå½¢å¼ã§è¡¨ç¤ºãããããã®ãªãã·ã§ã³ããTonicDNSããã¬ã³ã¼ããåå¾ãã¦è¡¨ç¤ºãã¬ã³ã¼ãã®ç»é²ãã¬ã³ã¼ãã®åé¤ãè¡ãã®ããªãã·ã§ã³ã§è¡ã£ã¦ãã¾ããããargparseã«å¤æ´ããã¿ã¤ãã³ã°ã§ããããããµãã³ãã³ãã¨ãã¦å®è£ ããªããã¾ããã夿´ããçµæãä¸è¨ã®è¡¨ã§ãã æ©è½ optparse argparse 夿ã»è¡¨ç¤º -o/âstdout show åå¾è¡¨ç¤º -g/âretrieve get ã¬ã³ã¼ãç»é² -c/âcreate creat
Building a Website to Scale to 100 Million Page Views Per Day and Beyond (open to the public) Comments Comments are closed. This would have been a perfect session talk. The topic was interesting as was the content. The speaker could use quite a bit more practice at public speaking. I think some more visual slides (no, not implying the porn), showing how the caching and traffic is actually routed a
TL;DR; Redis is cool and you should use it for any time series data. I remember reading about a company that refused to ship a feature to production unless it was hooked to their statistics backend and logged its usage patterns and other important performance metrics business- and tech-wise. At the time I thought that was a very cool idea. The problem - how do we implement that with minimum effort
Update: Here's the video of the talk. Erick Pickup, lead developer at YouPorn.com, presented their architecture in a talk titled Building a Website To Scale given at the ConFoo conference. Â As you might expect, YouPorn is a beast, streaming three full DVDs of video every second, handing 300K queries every second, and generating up to 15GBs of log data per hour. Unfortunately, all we have are the s
ãªã³ã¡ã¢ãª KVS ã® Redis ã§ã¯ã使ç¨ã¡ã¢ãªã«ä¸éãè¨å®ããé¾å¤ãè¶ ããå ´åã®ããªã·ã¼(maxmemory-policy)ãè¤æ°ã®ä¸ããè¨å®ã§ããããã«ãªã£ã¦ããã ãã©ã¡ã¼ã¿ã¨ããªã·ã¼ãæ´çããã®ãä»¥ä¸ ä½¿ç¨ã¡ã¢ãªã®ä¸éå¤ redis.conf ã®æ¬¡ã®ãã©ã¡ã¼ã¿ã§è¨å®ããã maxmemory maxmemory-policy ã¡ã¢ãªä½¿ç¨éãé¾å¤ãè¶ ãã¦ããç¶æ³ã§ãã¼è¿½å ããå ´åã®æ¯ãèããå®ç¾©ããã以ä¸ã® 6 ã¤ã® maxmemory-policy ãã鏿ã§ããã volatile-lru : remove the key with an expire set using an LRU algorithm allkeys-lru : remove any key accordingly to the LRU algorithm volatile-random : remove
ã¯ã©ã¦ãã»ã¢ã«ã¦ã³ã ã¯ã©ã¦ãã»ããã·ã¥ãã¼ãã¸ã®ã¢ã¯ã»ã¹ããæ³¨æã®ç®¡çãªã©ããã¾ãã¾ãªæä½ãè¡ãã¾ãã ãµã¤ã³ã¤ã³å½ã鏿
UILabelã¯ãiOSã¢ããªéçºã«ããã¦ä½¿ç¨é »åº¦ã®é«ãã¯ã©ã¹ã§ãããã«ã¦ãã¨ããã«æãå±ããªãã£ãããã¾ãããã¨ãã°ããã¹ãã®ä¸é¨ã ã強調表示ããã¨ãã£ãä½¿ãæ¹ã¯ã§ãã¾ããããåçã«æ´æ°ãããããã¹ããä¸å¯ãã«ãããã¨æã£ããããã®ããã¹ããã¡ããã©ç´ã¾ãUILabelã®ãµã¤ãºãç®åºããã¡ã½ãããã³ã¼ã«ãã¦ãµã¤ãºãæå®ããå¿ è¦ãããã¾ãã ä»åã¯ãããªUILabelã®æ©è½ãæ¡å¼µãã¦ããããµãã¯ã©ã¹3種ãç´¹ä»ãã¾ãã OHAttributedLabel ç¹å¾´ NSAttributedStringãã©ãããã¦UILabelã«æããããã®ã§ãããã¹ãã®ä¸é¨ã ããã©ã³ããè²ãå¤ãããã¨ãã£ãæå®ãç°¡åã«ã§ããããã«ãªãã¾ãã ã¾ããªã³ã¯ã®ä»ä¸ãããã¹ãä¸å¯ãã¨ãã£ããã¨ãç°¡åã«ã§ãã¾ãã OHAttributedLabelã®ä½¿ç¨ä¾ ä½¿ç¨æºå ã½ã¼ã¹ã³ã¼ãã以ä¸ã®URLãããã¦ã³ãã¼ã https
Objective-Cã®ã«ãã´ãªã®ä»çµã¿ã使ãã¨ãæ¢åã¯ã©ã¹ã«æãå ãããã¨ãªãæ©è½ã追å ãããã¨ãã§ãã¾ãããã¨ãã°ãNSArrayã§é åå ã®è¦ç´ ãã·ã£ããã«ãããå ´åãããããã¡ã¤ã«ã使ãã¦ã·ã£ããã«ç¨ã¡ã½ãããå®ç¾©ãã @interface NSArray (Shuffle) - (NSArray *)shuffle; @end ä¸è¨ã®ããã«å®è£ ãã¦ããã°ã @implementation NSArray (Shuffle) - (NSArray *)shuffle { // NSArray ã®è¦ç´ ãã·ã£ããã«ããã³ã¼ã } @end ãã¨ã¯ããããã¡ã¤ã«ãimportããã ãã§shuffleã¨ããã¡ã½ãããNSArrayã®ãªãã¸ã§ã¯ããã使ç¨ã§ããããã«ãªãã¾ãã ãã®ããã«ãã«ãã´ãªã¨ããä»çµã¿ã使ç¨ããã¨ä½¿ãåãã®ããããå½¢ã§æ¢åã¯ã©ã¹ãæ©è½æ¡å¼µã§ãããããUIKitãFou
æ£ç¢ºã«ã¯Failure-oblivious computingããã¨ã©ã¼ãå¿å´åã³ã³ãã¥ã¼ãã£ã³ã°ã£ã¦è¨³ããã®ã¯èª°ã ã¨ãã話ã訳ãéç¨ã§failureãerrorã«å ¥ãæ¿ãã£ã¦ãããæ å ±ç³»ã®äººéã¯ãååéè¦ï¼ãã¨ãè¨ãå²ã«ãé害ï¼faultï¼ãç°å¸¸ï¼errorï¼ãæ éï¼failureï¼ã¨ããç¨èªã®å®ç¾©ãä½¿ãæ¹ã«ç¡èªè¦ãªäººãå°ãªããªããTwitterã§æå¤ã¨åå¿ããã£ãã®ã§ãï¼èªæãè¾¼ãã¦ï¼æ¸ãèµ·ããã¦ã¿ãã Failure-oblivious computingã¯ã2004å¹´ã®OSDIã§MITã®Martin Rinardããè«æ"Enhancing Server Availability and Security Through Failure-Oblivious Computing"ã§ææ¡ããæè¡ãCã®ãããªè¨èªã§ä¸æ£ãã¤ã³ã¿åç §ãçºçãã¦ãããããæ¤åºãã¦ãªãã£ããã¨ã«ãã¦ï¼é©å½ãªå¤ã
è¤æ°äººãå©ç¨ããéçºç°å¢ã®ãµã¼ãã«Rubyãå ¥ããå ´åãrbenvã使ã£ã¦ãã¼ã¸ã§ã³ç®¡çããæã®ã¾ã¨ããç°å¢ã¯CentOSã§ãããDebianç³»ã§ãåãã§ããã rbenv, ruby-build ã¤ã³ã¹ãã¼ã« rbenv, ruby-build ã /usr/local ã«ã¤ã³ã¹ãã¼ã«ãã¾ãã $ cd /usr/local $ git clone git://github.com/sstephenson/rbenv.git rbenv $ mkdir rbenv/shims rbenv/versions $ chgrp -R groupname rbenv $ chmod -R g+rwxXs rbenv $ git clone git://github.com/sstephenson/ruby-build.git ruby-build $ cd ruby-build $ ./inst
4/19ã«ã"ã«ã¸ã¥ã¢ã«"ã§ã¯ãªã"ã¬ãã¥ã¢ã«"ã¨å®è©ã®ãããMySQL Casual Talksãã®ç¬¬3åç®ã«åå ãã¦ãã¾ããã å°ããã®ã¤ãã³ãã®éå»ã®åå è¨é²ã¯ä»¥ä¸ã ãMySQL Casual Talks vol.1ãã«åå ãã¦ããããã®ã¡ã¢ ãMySQL Casual Talks vol.2ãã«åå ãã¦ããããã®ã¡ã¢ ä»åã¯ãããããããã人ãããã®ã§ã誰ããããã°ã§ã¾ã¨ãã¦ãããã£ããã¼ãã¨ãæã£ã¦ããã®ã§ãããã²ãã£ã¨ããã誰ãã¾ã¨ãã¦ããªãããããªããçæããããããªãã£ãã®ã§ãéãè °ãããã¦ã¨ã³ããªãæ¸ãã¦ã¿ããã¨ã«ãã¾ããã é§èåèåï¼ å½æ¥ã¯çããã¹ãã¼ãæããµããçºè¡¨ãå¤ãã£ãã®ã¨ãåã¯Twitterã«æ¸ãã¦ãããããã®ã§ãæå ã®ã¡ã¢ããã¾ããªããã§ããã...(*´Ïã¼ï½)ï½´ï¾ï¾ ã¨ãããã¨ã§ãå ¬éããã¦ããè³æãéãã¦è²¼ãä»ããæ¹ãã¡ã¢ããããããããããããª
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}