- Great Ideas in Theoritical Computer Science
- [Sparse Partitions] (http://courses.csail.mit.edu/6.885/spring06/papers/AwerbuchPeleg-focs.pdf)
- Actors that Unify Threads and Events
- [Richard paradox] (http://en.wikipedia.org/wiki/Richard%27s_paradox)
- [THE INDIAN SUPREME COURT BY THE NUMBERS] (http://www.azimpremjiuniversity.edu.in/sites/default/files/userfiles/files/LGDI_WorkingPaper_14December2012_The%20Indian%20Supreme%20Court%20by%20the%20Numbers_NickRobinson.pdf)
- Women Fire and Dangerous things
- Tragedy of Commons
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var testy = require('../testy') | |
| var RedisProxy = require('../../lib/redis_proxy') | |
| describe('RedisProxy', function() { | |
| it('raises exception when no rediss available', function() { | |
| (function(){ | |
| new RedisProxy({}) | |
| }).should.throw(); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| r = Redis.new | |
| Benchmark.bmbm do |b| | |
| b.report("With pipelined") do | |
| r.pipelined { 100000.times{|i| r.set("test#{i}", i)} } | |
| end | |
| b.report("With pipelined inside") do | |
| 100000.times{|i| r.pipelined {r.set( "test#{i}", i)} } | |
| end | |
| b.report("No pipeline") do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Add your own tasks in files placed in lib/tasks ending in .rake, | |
| # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. | |
| require 'rake' | |
| def with_rails | |
| require File.expand_path('../config/application', __FILE__) | |
| Sf::Application.send :include, Rake::DSL | |
| Sf::Application.load_tasks | |
| end | |
| def without_rails |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [user] | |
| email = sreeix@gmail.com | |
| name = V Sreekanth | |
| [color] | |
| diff = auto | |
| status = auto | |
| branch = auto | |
| interactive = auto | |
| ui = auto |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [user] | |
| email = sreeix@gmail.com | |
| name = V Sreekanth | |
| [color] | |
| diff = auto | |
| status = auto | |
| branch = auto | |
| interactive = auto | |
| ui = auto |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| http://talus.artsci.wustl.edu/MalletAndPythonSteps.html |
I am sure you have heard about memcached. It is a classic key value store. Maintaining a O(1) execution time for most operations.
What We'd like you to implement is memcached in ruby(or the language of your choice)
I normally start memcached this
memcached -m 1280 -vv (Actually I use -t 6, but ignore it for now)
Where -m is the amount of memory to allocate and -vv is the verbosity of the logs.