/** * 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)
      

anonymous

-2

re.match(r'2[0-9][0-9]', str(response.status_code))
 

anonymous

+2

public String getGeoLocation(String ip) {		
		String location;
		try {
			location = GeoIPHelper.getLocation(ip);
		} catch(Exception ex) {
			ex.printStackTrace();
			location = ex.getMessage();
		}
		return location;
}
 

anonymous

+2

public static string Utf8Iso(string vsStr)
{
    string strTemp;
    strTemp = vsStr;

    strTemp = strTemp.Replace("ç", "ç");
    strTemp = strTemp.Replace("ä§", "ç");
    strTemp = strTemp.Replace("é", "é");
    strTemp = strTemp.Replace("ä©", "é");
    strTemp = strTemp.Replace("è", "è");
    strTemp = strTemp.Replace("ä¨", "è");
    strTemp = strTemp.Replace("ê", "ê");
    strTemp = strTemp.Replace("äª", "ê");
    strTemp = strTemp.Replace("ë", "ë");
    strTemp = strTemp.Replace("ä«", "ë");
    strTemp = strTemp.Replace("Ê", "Ê");
    strTemp = strTemp.Replace("äŠ", "Ê");
    strTemp = strTemp.Replace("Ë", "Ë");
    strTemp = strTemp.Replace("ä‹", "Ë");
    strTemp = strTemp.Replace("î", "î");
    strTemp = strTemp.Replace("ä®", "î");
    strTemp = strTemp.Replace("ï", "ï");
    strTemp = strTemp.Replace("ä¯", "ï");
    strTemp = strTemp.Replace("ì", "ì");
    strTemp = strTemp.Replace("ÃŽ", "Î");
    strTemp = strTemp.Replace("äŽ", "Î");
    strTemp = strTemp.Replace("ò", "ò");
    strTemp = strTemp.Replace("ä²", "ò");
    strTemp = strTemp.Replace("ô", "ô");
    strTemp = strTemp.Replace("ä´", "ô");
    strTemp = strTemp.Replace("ö", "ö");
    strTemp = strTemp.Replace("ä¶", "ö");
    strTemp = strTemp.Replace("õ", "õ");
    strTemp = strTemp.Replace("ó", "ó");
    strTemp = strTemp.Replace("ø", "ø");
    strTemp = strTemp.Replace("äµ", "õ");
    strTemp = strTemp.Replace("ä³", "ó");
    strTemp = strTemp.Replace("ä¸", "ø");
    strTemp = strTemp.Replace(@"Ã""", "Ô");
    strTemp = strTemp.Replace(@"ä""", "Ô");
    strTemp = strTemp.Replace("Ö", "Ö");
    strTemp = strTemp.Replace("ä–", "Ö");
    strTemp = strTemp.Replace("Ã ", "à");
    strTemp = strTemp.Replace("ä ", "à");
    strTemp = strTemp.Replace("â", "â");
    strTemp = strTemp.Replace("ä¢", "â");
    strTemp = strTemp.Replace("ä", "ä");
    strTemp = strTemp.Replace("ä¤", "ä");
    strTemp = strTemp.Replace("Ã¥", "å");
    strTemp = strTemp.Replace("ä¥", "å");
    strTemp = strTemp.Replace("Â", "Â");
    strTemp = strTemp.Replace("ä‚", "Â");
    strTemp = strTemp.Replace("Ä", "Ä");
    strTemp = strTemp.Replace("ä„", "Ä");
    strTemp = strTemp.Replace("ù", "u");
    strTemp = strTemp.Replace("û", "û");
    strTemp = strTemp.Replace("ü", "ü");
    strTemp = strTemp.Replace("ä¼", "ü");
    strTemp = strTemp.Replace("Û", "Û");
    strTemp = strTemp.Replace("Ãœ", "Ü");
    strTemp = strTemp.Replace("ä¹", "u");
    strTemp = strTemp.Replace("ä»", "û");
    strTemp = strTemp.Replace("ä¼", "ü");
    strTemp = strTemp.Replace("ä¼", "ü");
    strTemp = strTemp.Replace("ä›", "Û");
    strTemp = strTemp.Replace("äœ", "Ü");
    strTemp = strTemp.Replace("ò", "ñ");
    strTemp = strTemp.Replace("ñ", "ñ");

    return strTemp;
}
 

anonymous

+3

// you really did it by hand?
public static String buildUrlEncode(String cityName) {
	if(cityName != null) {
		String encodedString = (((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((cityName.replace('.', '-'))
				  .replace('ù', 'u')).replace('ú', 'u')).replace('û', 'u')).replace('ü', 'u')).replace('ý', 'y')).replace('ë', 'e')).replace('à', 'a'))
				  .replace('á', 'a')).replace('â', 'a')).replace('ã', 'a')).replace('ä', 'a')).replace('å', 'a')).replace('æ', 'a')).replace('ç', 'c'))
				  .replace('è', 'e')).replace('é', 'e')).replace('ê', 'e')).replace('ë', 'e')).replace('ì', 'i')).replace('í', 'i')).replace('î', 'i'))
				  .replace('ï', 'i')).replace('ð', 'o')).replace('ñ', 'n')).replace('ò', 'o')).replace('ó', 'o')).replace('ô', 'o')).replace('õ', 'o'))
				  .replace('ö', 'o')).replace('ø', 'o')).replace(' ', '-')).replace('/', '-')).replace('\'', '-')).replace(":", "")).replace("~", ""))
				  .replace("!", "")).replace("@", "")).replace("#", "")).replace("$", "")).replace("%", "")).replace("*", "")).replace("(", ""))
				  .replace(")", "")).replace("_", "")).replace("+", "")).replace("{", "")).replace("}", "")).replace("[", "")).replace("]", ""))
				  .replace(";", "")).replace("'", "")).replace(":", "")).replace("\"", "")).replace("<", "")).replace(">", "")).replace("?", ""))
				  .replace(",-", "-")).replace("----", "-")).replace("---", "-")).replace("--", "-"));
		return encodedString;
	}
	return "";
}
 

anonymous

-2

// XXX: This class sucks.
 

anonymous

+1

	/**
	 * Default true value
	 */
	public static final String DEFAULT_TRUE_VALUE = "false";
 

+1

echo "<select>";
for($i=1;$i<=12;$i++){
  echo("<option value=".$i.">");
  switch($i){
    case 1: echo("January");break;
    case 2: echo("February");break;
    case 3: echo("March");break;
    case 4: echo("April");break;
    case 5: echo("May");break;
    case 6: echo("June");break;
    case 7: echo("July");break;
    case 8: echo("August");break;
    case 9: echo("September");break;
    case 10: echo("October");break;
    case 11: echo("November");break;
    case 12: echo("December");break;
  }
}
echo "</select>";
 

anonymous

+1

$authToken = sha1(md5(time()) ^ md5(rand(rand(), rand()));
 

anonymous

+3

function abs(i){
    return (i + "").replace("-", "");
}
 

anonymous

+2

UPDATE tableUsers SET name = ‘John’;