"You must learn from the mistakes of others. You can't possibly live long enough to make them all yourself"
Sam Levenson
Pages: 123 ... 13
  1:  var next = Math.max.apply(Math, $(this).parent().parent().parent().parent().find(".features").last().find('input').map(function () {
  2:      var t = this.name.match(/\d+/g);
  3:      return t[1];
  4:  }).get()) + 1;
  5:  
  6:  if (!isFinite(next))
Tags: javascript jquery View more Last activity 2 hours, 26 minutes ago  
Cpp  Connection must already open -159 Votes
  1:  privatevoid button1_Click(object sender, EventArgs e)
  2:  {
  3:  SqlConnection sqlConn =new SqlConnection();
  4:  sqlConn.ConnectionString = "server=Localhost;user=sa;pwd=a;database=Northwind;";
  5:  sqlConn.Open();
  6:  }
Tags: connection , sql View more Last activity 3 days, 9 hours ago  
  1:  /* This is bad. Reaaly bad. It's a really, really bad hack. If you're an employee of 
  2:   * Intertrode Communication, then I'm really, really sorry that you have to maintain
  3:   * this. I was honestly planning on removing this tomorrow, but I've been known to 
  4:   * forget things like this. It happens.
  5:   *
  6:   * So here's the thing. I can't seem to figure out why the AccountId variable isn't 
View more Last activity 6 days, 16 hours ago  
  1:  void PROMJTAGComments(int instruction, FILE *file) {
  2:    char str[80], fstr[120];
  3:  
  4:    if (!writeSVFFile) return;
  5:    if (PROMINSTLENGTH == 16) {
  6:      if (instruction == PROMEXTEST)
Tags: c++ horrible thisismyjob View more Last activity 1 week ago  
  1:  $(function(){
  2:    $("select[name=customer_id]").change(function(){
  3:      var thi = $(this).parent().parent().parent().parent();
  4:      $.post("<? echo $site ?>js/select/select_address.php",{customer_id: $(this).val()}, function(j){ 
  5:        var options = j;
  6:        $(thi).children().children().children().children().children("select[name=address_id]").html(options);
Tags: jquery,rape,php View more Last activity 1 week, 5 days ago  
  1:  <? 
  2:  ob_start(); 
  3:  include("../config.php");
  4:  $result = mysqli_query($conn," DELETE FROM `crm_vehicles` WHERE id = '" . $_GET["id"] . "'");
  5:  header('Refresh: 0; url=index.php?deleted=si'); 
  6:  ob_end_flush(); 
Tags: php,sql View more Last activity 1 week, 5 days ago  
Php  NOT NOT True 0 Votes
  1:  if (!(strpos($strHaystack, $strNeedle)===false)){
  2:     // absolutely not false
  3:  }
Tags: boolean false php View more Last activity 1 week, 6 days ago  
  1:  for( var i=0, ii=allColors.length; i<ii; i++ ) {
  2:  	//stuff happens
  3:  }
View more Last activity 2 weeks ago  
  1:  if not router_ids:
  2:      pass
  3:  else:
  4:      query = query.filter(RouterL3AgentBinding.router_id.in_(router_ids))
Tags: openstack neutron View more Last activity 2 weeks ago  
  1:  SELECT * 
  2:  FROM table1 
  3:  CROSS JOIN table2;
  4:  
  5:  -- table1 has < 10M record and table2 has  < 10M record
Tags: CrossJoin SQL View more Last activity 2 weeks, 1 day ago