/** * lowercase letters */
        $this->store['upper_Spec'] = array( *cut* );
        /** * uppercase letters */
        $this->store['lower_Spec'] = array( *cut* );
      
                    } else {
                      $errmsg='An unknown error occured.';
                    }
                  } else {
                    $errmsg='The passwords you entered do not match';
                  }
                } else {
                  $errmsg='Password has to be at least 8 characters long.';
                }
              } else {
                $errmsg='The email you entered is already in our database.';
              }
            } else {
              $errmsg='Please enter your email address.';
            }
          } else {
            $errmsg='Please enter your first name and your last name.';
          }
        } else {
        (...)
      
        // Happy debugging, suckers
        # define true (rand() > 10)
      

+15

try {
    // something...
}
catch (Exception ex) 
{
    string uriToLaunch = "http://stackoverflow.com/search?q=" + ex.Message;
    var uri = new Uri(uriToLaunch );
    var success = await Windows.System.Launcher.LaunchUriAsync(uri );
}
 

anonymous

+1

if copyinfo=="kopia" :
    print "\n"+c[0]+c[1]+c[2]+c[3]+c[4]+c[5]+c[6]+c[7]+c[8]+"\n"
elif copyinfo=="Kopia" :
    print "\n"+c[0]+c[1]+c[2]+c[3]+c[4]+c[5]+c[6]+c[7]+c[8]+"\n"
elif copyinfo=="KOPIA" :
    print "\n"+c[0]+c[1]+c[2]+c[3]+c[4]+c[5]+c[6]+c[7]+c[8]+"\n"
else :
    pass
 

anonymous

-1

//Actual production code. Those are usernames...
If (Usuario = 'tcbernardino') or
           (Usuario = 'trsilva') or
           (Usuario = 'gcbluxinger') or
           (Usuario = 'gyamamoto') or
           (Usuario = 'jacparpaiolla') or
           (Usuario = 'scpassos') then
           Begin
 

anonymous

+7

java.lang.OutOfMemoryError: OutOfMemoryError thrown while trying to throw OutOfMemoryError; no stack available
 

anonymous

+1

 private void validateMAC (VFirewall vFirewall, String mac) throws Exception {
         if ((mac == null) || (mac.length() == 0)) {
            return;
        }
        boolean valid = true;
        if (mac.length() != 17) valid = false;
        for (int i = 0; valid && (i < 17); i++) {
            switch (i) {
                case 0:
                case 1:
                case 3:
                case 4:
                case 6:
                case 7:
                case 9:
                case 10:
                case 12:
                case 13:
                case 15:
                case 16:
                    char c = mac.charAt(i);
                    if ("0123456789ABCDEFabcdef".indexOf(c) == -1) {
                        valid = false;
                    }
                    break;
                case 2:
                case 5:
                case 8:
                case 11:
                case 14:
                    if (mac.charAt(i) != ':') {
                        valid = false;
                    }
                    break;
            }
        }
        if (!valid) {
            throw new Exception(“...”);
        }
    }
 

+2

     if ((paginationGroup + 1) * 10 > response.PageCount) {
                        if (response.PageCount % 10 == 1) {
                            $scope.page1.class = 'active';
                            $scope.page2.class = 'hidden';
                            $scope.page3.class = 'hidden';
                            $scope.page4.class = 'hidden';
                            $scope.page5.class = 'hidden';
                            $scope.page6.class = 'hidden';
                            $scope.page7.class = 'hidden';
                            $scope.page8.class = 'hidden';
                            $scope.page9.class = 'hidden';
                            $scope.page10.class = 'hidden';
                        }
                        else if (response.PageCount % 10 == 2) {
                            $scope.page1.class = 'active';
                            $scope.page2.class = '';
                            $scope.page3.class = 'hidden';
                            $scope.page4.class = 'hidden';
                            $scope.page5.class = 'hidden';
                            $scope.page6.class = 'hidden';
                            $scope.page7.class = 'hidden';
                            $scope.page8.class = 'hidden';
                            $scope.page9.class = 'hidden';
                            $scope.page10.class = 'hidden';
                        }
                        else if (response.PageCount % 10 == 3) {
                            $scope.page1.class = 'active';
                            $scope.page2.class = '';
                            $scope.page3.class = '';
                            $scope.page4.class = 'hidden';
                            $scope.page5.class = 'hidden';
                            $scope.page6.class = 'hidden';
                            $scope.page7.class = 'hidden';
                            $scope.page8.class = 'hidden';
                            $scope.page9.class = 'hidden';
                            $scope.page10.class = 'hidden';
                        }
                        else if (response.PageCount % 10 == 4) {
                            $scope.page1.class = 'active';
                            $scope.page2.class = '';
                            $scope.page3.class = '';
                            $scope.page4.class = '';
                            $scope.page5.class = 'hidden';
                            $scope.page6.class = 'hidden';
                            $scope.page7.class = 'hidden';
                            $scope.page8.class = 'hidden';
                            $scope.page9.class = 'hidden';
                            $scope.page10.class = 'hidden';
                        }
                        else if (response.PageCount % 10 == 5) {
                            $scope.page1.class = 'active';
                            $scope.page2.class = '';
                            $scope.page3.class = '';
                            $scope.page4.class = '';
                            $scope.page5.class = '';
                            $scope.page6.class = 'hidden';
                            $scope.page7.class = 'hidden';
                            $scope.page8.class = 'hidden';
                            $scope.page9.class = 'hidden';
                            $scope.page10.class = 'hidden';
                        }
                        else if (response.PageCount % 10 == 6) {
                            $scope.page1.class = 'active';
                            $scope.page2.class = '';
                            $scope.page3.class = '';
                            $scope.page4.class = '';
                            $scope.page5.class = '';
                            $scope.page6.class = '';
                            $scope.page7.class = 'hidden';
                            $scope.page8.class = 'hidden';
                            $scope.page9.class = 'hidden';
                            $scope.page10.class = 'hidden';
                        }
                        else if (response.PageCount % 10 == 7) {
                            $scope.page1.class = 'active';
                            $scope.page2.class = '';
                            $scope.page3.class = '';
                            $scope.page4.class = '';
                            $scope.page5.class = '';
                            $scope.page6.class = '';
                            $scope.page7.class = '';
                            $scope.page8.class = 'hidden';
                            $scope.page9.class = 'hidden';
                            $scope.page10.class = 'hidden';
                        }
                        else if (response.PageCount % 10 == 8) {
                            $scope.page1.class = 'active';
                            $scope.page2.class = '';
                            $scope.page3.class = '';
                            $scope.page4.class = '';
                            $scope.page5.class = '';
                            $scope.page6.class = '';
                            $scope.page7.class = '';
                            $scope.page8.class = '';
                            $scope.page9.class = 'hidden';
                            $scope.page10.class = 'hidden';
                        }
                        else if (response.PageCount % 10 == 9) {
                            $scope.page1.class = 'active';
                            $scope.page2.class = '';
                            $scope.page3.class = '';
                            $scope.page4.class = '';
                            $scope.page5.class = '';
                            $scope.page6.class = '';
                            $scope.page7.class = '';
                            $scope.page8.class = '';
                            $scope.page9.class = '';
                            $scope.page10.class = 'hidden';
                        }
                    }

                    if ((paginationGroup + 1) * 10 >= response.PageCount) {
                        $("#allNext").attr("class", "hidden");
                    }
 

anonymous

0

function compare($object1, $object2) {
    if ($object1 == $object2) {
        return true;
    } else {
        return false;
    }
}
 

+1

	public boolean isNumber(String string){

		try
		{
			Long.parseLong(string);
		} catch (Exception e){
			return false;
		}
		return true;
	}
 

+2

// Don't display errors. This will mess up the image.
ini_set('display_errors', 'On');
 

anonymous

0

// Some simple array-code by junior dev

foreach($codes as $code){
    if (isset($allCodes[$code[0]][$code[1]][$code[2]][$code[3]][$code[4]][$code[5]])) {
        unset($allCodes[$code[0]][$code[1]][$code[2]][$code[3]][$code[4]][$code[5]]);
        $newCodes[$code[0]][$code[1]][$code[2]][$code[3]][$code[4]][$code[5]] = 1;
        if (array() === $allCodes[$code[0]][$code[1]][$code[2]][$code[3]][$code[4]]) {
            unset($allCodes[$code[0]][$code[1]][$code[2]][$code[3]][$code[4]]);
            $newCodes[$code[0]][$code[1]][$code[2]][$code[3]][$code[4]] = '*';
            if (array() === $allCodes[$code[0]][$code[1]][$code[2]][$code[3]]) {
                unset($allCodes[$code[0]][$code[1]][$code[2]][$code[3]]);
                $newCodes[$code[0]][$code[1]][$code[2]][$code[3]] = '*';
                if (array() === $allCodes[$code[0]][$code[1]][$code[2]]) {
                    unset($allCodes[$code[0]][$code[1]][$code[2]]);
                    $newCodes[$code[0]][$code[1]][$code[2]] = '*';
                    if (array() === $allCodes[$code[0]][$code[1]]) {
                        unset($allCodes[$code[0]][$code[1]]);
                        $newCodes[$code[0]][$code[1]] = '*';
                        if (array() === $allCodes[$code[0]]) {
                            unset($allCodes[$code[0]]);
                            $newCodes[$code[0]] = '*';
                        }
                    }
                }
            }
        }
    }
}