Skip to content

Instantly share code, notes, and snippets.

View santiago's full-sized avatar

Santiago Gaviria santiago

  • Ontoworks
  • Planet Earth
View GitHub Profile
$DNA1 = "ACGGGAGGACGGGAAAATTACTACGGCATTAGC";
$x = "AC";
$c = () = $DNA1 =~ /$x/g;
print "$c\n";

Next Steps

  • Measure time spend on index, flush, refresh, merge, query, etc. (TD - done)
  • Take hot threads snapshots under read+write, read-only, write-only (TD - done)
  • Adjust refresh time to 10s (from 1s) and see how load changes (TD)
  • Measure time of a rolling restart doing disable_flush and disable_recovery (TD)
  • Specify routing on query -- make it choose same node for each shard each time (MD)
  • GC new generation size (TD)
  • Warmers
  • measure before/after of client query time with and without warmers (MD)
/*
Liquid flow rate sensor -DIYhacking.com Arvind Sanjeev
Measure the liquid/water flow rate using this code.
Connect Vcc and Gnd of sensor to arduino, and the
signal line to arduino digital pin 2.
*/
byte statusLed = 13;
init coder
index item: 0
for ID: -1
configure cell
Yeah dude I'm totally set, I promise
2015-07-14 21:35:26.104 DrawPad[10913:784606] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
"<NSLayoutConstraint:0x7fb069f22bb0 H:[UIImageView:0x7fb069f24810(276)]>",
"<NSLayoutConstraint:0x7fb069f277b0 H:[UIImageView:0x7fb069f24810]-(0)-| (Names: '|':UIView:0x7fb069f24700 )>",
ec2-67-202-24-49:/var/local/www/panda# merb -i
~ Loaded DEVELOPMENT Environment...
~ loading gem 'merb-assets' ...
~ loading gem 'merb-mailer' ...
~ loading gem 'merb_helpers' ...
~ loading gem 'uuid' ...
~ loading gem 'amazon_sdb' ...
~ loading gem 'activesupport' ...
~ loading gem 'rvideo' ...
~ Compiling routes...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Basic Example</title>
<style type="text/css">
/*margin and padding on body element
can introduce errors in determining
element position and are not recommended;
YAHOO.util.Event.addListener(window, "load", function() {
var eventFormatter = function ( el , oRecord , oColumn , oData) {
if (oData != null && oData != "") {
var cellEl = new YAHOO.util.Element(el);
cellEl.setStyle('color', '#123321');
cellEl.setStyle('background-color', '#DDDDDD');
el.innerHTML = oData;
// YAHOO.util.Dom.addClass(el, "cal-first-uh");
}
};
#!/usr/bin/env ruby
require 'rubygems'
require 'eventmachine'
#require 'xmpp4r'
require 'xmpp4r-simple'
__DIR__ = File.dirname File.expand_path(__FILE__)
EM.run {
require 'sinatra'
require 'sinatra/async'
require 'app'
class AsyncRoutes < Sinatra::Application
register Sinatra::Async
enable :sessions
configure :development do
var BOSH_SERVICE = '/bosh/chat'
var connection = null;
var friend= "";
var me= "";
function removeNL(s){
return s.replace(/[\n\r\t]/g," ");
}