Fork me on GitHub
Tech

Quick and dirty resque retry all failed tasks

If you have a lot of failed tasks staked in resque, you can retry them all in one shot, but it’s the dirty way. >> (Resque::Failure.count-1).downto(0).each { |i| Resque::Failure.requeue(i) } Dirty because it does not dequeue task when there done. You should then remove the...

ruby arrays short tutorial: ruby way for ruby noobs

Ruby arrays the ruby way (with code blocks). Instanciate an array from words >> els = %w(one two three four five) => ["one", "two", "three", "four", "five"] Iterate over the array >> els.each { |el| puts el } one two three four five Build an...

weekly digest: #scalability, page load performance, google prediction api, httperf

List of Known Scalable Architecture Templates http://srinathsview.blogspot.com/2011/10/list-of-known-scalable-architecture.html You only control 1/3 of your Page Load Performance! http://blog.dynatrace.com/2011/11/08/you-only-control-one-thrid-of-your-page-load-performance/ Google Prediction API Machine learning cloud by google. http://code.google.com/intl/fr-FR/apis/predict/ How to replay live traffic with httperf Tips to test uris from your nginx logs against your server. http://schlinkify.org/post/19743846/how-to-replay-live-traffic-with-httperf...
Architecture and infrastructure scalability paper and resources

Architecture and infrastructure scalability paper and resources

Architecture & Infra #scalability is an automatic paper compiling best resources about scalability and architecture. Sources are taken from a twitter list and a google reader rss folder. Twitter list @mathieuel/architecture this is tech people i enjoy follow on this topic. RSS List Architecture from mathieue contains...
Express amazon ec2 ubuntu starter tutorial

Express amazon ec2 ubuntu starter tutorial

The goal of this tutorial is to provide the simplest way to have a virtual machine server running on amazon ec2. It runs a ubuntu server on the smallest instance available. On the amazon console website Create a X509 certificate on amazon aws console and...

improved gnu screen life with 9 lines bashrc

alias sl='screen -list | sort -t "." -k2' alias s='screen -RRd' _melie-screen() {     local cur=${COMP_WORDS[COMP_CWORD]}     COMPREPLY=( $(compgen -W '$(screen -list | cut -f 2 | cut -d "." -f 2 | grep -v "There" | head -n-2 )' -- $cur) )...

top by process name

Monitor all process named apache2. We user here pgrep. prep handle regexp. top -p $(pgrep apache2 | xargs echo | sed -e 's/ /, /g') note: it seems top -p have 20 pids input limit . Have a better solution ? pidstats takes process name,...

linux virtualbox vm on mac without visual interface

Sometines it’s handy to have a linux server vm running on your mac laptop / desktop but you want access it only like a server cause virtual box user interface could be annoying and useless here. 1 Set up or add a network interface in...

android spycamera server en 15 minutes = ruby + sinatra + sl4a + jruby

android spycamera server en 15 minutes = ruby + sinatra + sl4a + jruby
Architectures & Infrastructures scalables - ressources

Architectures & Infrastructures scalables – ressources

Les sources d’information sur  l’architecture de services comme facebook, twitter, etc… et plus largement d’architecture système ne sont pas évidentes à trouver. Voici donc une liste de resources pour vous aider dans votre veille. http://highscalability.com http://www.mysqlperformanceblog.com http://www.allthingsdistributed.com http://decrypt.ysance.com http://www.igvita.com Blogs techniques officiels: http://blog.twitter.com Twitter Engineering...
commodore 64 - Stamba au LaBx hacklab in bordeaux

commodore 64 – Stamba au LaBx hacklab in bordeaux

J’ai participé à la présentation de David Stamba sur le commodore 64 au hacklab LaBx bordelais avec un focus sur son utilisation dans le domaine musical. Gros retour en arrière donc, et pas mal de choses intéressantes. J’ai beaucoup apprécié le coté décalé de l’informatique des années...
Architecture de TripAdvisor

Architecture de TripAdvisor

Commentaire à propos de l’article TripAdvisor Architecture – 40M Visitors, 200M Dynamic Page Views, 30TB Data paru sur highscalability.com. Chiffres 40 millions de visiteurs uniques par mois 20 millions de membres 45 millions de commentaires / contributions 200 millions de pages dynamiques servies par jour 102 GB de...