Help with "unchecked conversion" warning

Hello,
following line
Vector devices = SomeDeviceManager.getDeviceList();
gives a warning (when compiled in java 1.5 with -Xlint):
found raw type: java.util.Vector
missing type parameters for generic class java.util.Vector<E>
When I change code to
Vector<DeviceInfo> devices = SomeDeviceManager.getDeviceList();
warning turns into "unchecked conversion" warning. SomeDeviceManager is from some old .jar library, so it's not possible to change getDeviceList signature.
How can I eliminate this warning?
Thanks.

@SuppressWarnings("unchecked")
- Saish

Similar Messages

  • Help with message please:  Warning: mysql_free_result() expects parameter 1 to be resource, null given in...... line

    I would really appreciate some help with my search & results page that is now throwing up the following error:
    Warning: mysql_free_result() expects parameter 1 to be resource, null given in...... line (the line number refers to the following code:
    mysql_free_result($RSsearchforsale);
    mysql_free_result($RsSearchForSale2);
    mysql_free_result($RsSearchForSale3);
    mysql_free_result($RsSearchForSale4);
    I am new to php and am setting up a dynamic site in Dreamweaver (thanks to the Missing Manual – very helpful). I apologise in advanced for my lengthy description of the problem (perhaps get yourself a drink before continuing!)
    I have a Search page with 4 list menus where the user can select an option from ANY or ALL of the menus, if a menu is not selected the value posted to the results page will be 'zzz'.
    On the results page I have 4 recordsets, all getting the correct results, only one recordset is required to run depending on how many of the menus from the search page have been selected and a test is run before executing the sql using a SWITCH statement checking how many of the menus had passed the 'zzz' values from the Search page if you see what I mean. The results page  has Repeating Regions, Recordset Paging and Display Record Count. The exact result that I require are generated by this method.
    THE PROBLEM, when a user makes a selection the first page of 10 results is fine, but the error message above is shown at the bottom of the page, AND when the user clicks NEXT to go to the next page of results THERE ARE NO RESULTS.
    This is exactly what happens depending on how many menus selected and which recordset is used:
    4 menus selected from Search: runs RSsearchforsale, results correct but 3 error messages on 1st page relating to mysql_free_result($RsSearchForSale2),mysql_free_result($RsSearchForSale3), & mysql_free_result($RsSearchForSale4). The display record count shows correct results found. NEXT page is empty of results and still shows the correct display record count as if it should be displaying the records, also has the same 3 error messages.
    3 menus selected from Search:  runs RsSearchForSale2, results correct but 3 error messages on 1st page relating to mysql_free_result($RSsearchforsale),mysql_free_result($RsSearchForSale3), & mysql_free_result($RsSearchForSale4). The display record count shows correct number of results. NEXT page shows results from the  DEFAULT setting of the recordset and the Display record count reflects this new set of results. Also still shows the 3 mysql_free_results for RsSearchForSale2, 3 and 4.
    2 menus selected from Search: runs   RsSearchForSale3, results correct but 2 error messages on 1st page relating to  mysql_free_result($RSsearchforsale) & mysql_free_result (RsSearchForSale4). The display record count is correct. NEXT page does exactly the same as described in above 3 menus selected.
    1 menu selected from search: runs RsSearchForSale4, results correct but 1 error meaasge on 1st page, mysql_free_result($RSsearchforsale). Display record count is correct and again when NEXT page is selected does as described in above where 2 or 3 menus selected.
    If you have gotten this far without falling asleep then thank you and well done! I have pasted my code below and I know its a lot to ask but please please can you give me an idea as to where or why I have gone wrong. I felt I was so close at perfecting this search and have been working on it for weeks now. I feel sure the problem is because I have 4 recordsets on the page but I could find no other way to get the exact results I wanted from the menus.
    Looking forward to any help.
    <?php require_once('Connections/propertypages.php'); ?>
    <?php if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $currentPage = $_SERVER["PHP_SELF"];
    $maxRows_RSsearchforsale = 10;
    $pageNum_RSsearchforsale = 0;
    if (isset($_GET['pageNum_RSsearchforsale'])) {
      $pageNum_RSsearchforsale = $_GET['pageNum_RSsearchforsale'];
    $startRow_RSsearchforsale = $pageNum_RSsearchforsale * $maxRows_RSsearchforsale;
    $varloc_RSsearchforsale = "mpl";
    if (isset($_POST['location'])) {
      $varloc_RSsearchforsale = $_POST['location'];
    $vartype_RSsearchforsale = "vil";
    if (isset($_POST['type'])) {
      $vartype_RSsearchforsale = $_POST['type'];
    $varprice_RSsearchforsale = "pr9";
    if (isset($_POST['price'])) {
      $varprice_RSsearchforsale = $_POST['price'];
    $varbed_RSsearchforsale = "b5";
    if (isset($_POST['beds'])) {
      $varbed_RSsearchforsale = $_POST['beds'];
    switch (true) {
    case ($varloc_RSsearchforsale != 'zzz' && $vartype_RSsearchforsale != 'zzz' && $varprice_RSsearchforsale != 'zzz' && $varbed_RSsearchforsale != 'zzz'):
    mysql_select_db($database_propertypages, $propertypages);
    $query_RSsearchforsale = sprintf("SELECT DISTINCT trueprice,`desc`, `propid`, `bathrooms`, `photo1`, locationtable.loc, typetable.style, bedtable.`number` FROM detailstable JOIN locationtable ON detailstable.location=locationtable.locid JOIN typetable ON detailstable.type=typetable.typeid JOIN pricetable ON detailstable.price=pricetable.priceid JOIN bedtable ON detailstable.beds=bedtable.bedid WHERE location=%s AND price=%s AND type=%s AND beds=%s ORDER BY detailstable.trueprice ASC", GetSQLValueString($varloc_RSsearchforsale, "text"),GetSQLValueString($varprice_RSsearchforsale, "text"),GetSQLValueString($vartype_RSsearchforsale, "text"),GetSQLValueString($varbed_RSsearchforsale, "text"));
    $query_limit_RSsearchforsale = sprintf("%s LIMIT %d, %d", $query_RSsearchforsale, $startRow_RSsearchforsale, $maxRows_RSsearchforsale);
    $RSsearchforsale = mysql_query($query_limit_RSsearchforsale, $propertypages) or die(mysql_error());
    $row_RSsearchforsale = mysql_fetch_assoc($RSsearchforsale);
    if (isset($_GET['totalRows_RSsearchforsale'])) {
      $totalRows_RSsearchforsale = $_GET['totalRows_RSsearchforsale'];
    } else {
      $all_RSsearchforsale = mysql_query($query_RSsearchforsale);
      $totalRows_RSsearchforsale = mysql_num_rows($all_RSsearchforsale);
    $totalPages_RSsearchforsale = ceil($totalRows_RSsearchforsale/$maxRows_RSsearchforsale)-1;
    $queryString_RSsearchforsale = "";
    if (!empty($_SERVER['QUERY_STRING'])) {
      $params = explode("&", $_SERVER['QUERY_STRING']);
      $newParams = array();
      foreach ($params as $param) {
        if (stristr($param, "pageNum_RSsearchforsale") == false &&
            stristr($param, "totalRows_RSsearchforsale") == false) {
          array_push($newParams, $param);
      if (count($newParams) != 0) {
        $queryString_RSsearchforsale = "&" . htmlentities(implode("&", $newParams));
    $queryString_RSsearchforsale = sprintf("&totalRows_RSsearchforsale=%d%s", $totalRows_RSsearchforsale, $queryString_RSsearchforsale); } ?>
    <?php require_once('Connections/propertypages.php'); ?>
    <?php if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $currentPage = $_SERVER["PHP_SELF"];
    $maxRows_RsSearchForSale2 = 10;
    $pageNum_RsSearchForSale2 = 0;
    if (isset($_GET['pageNum_RsSearchForSale2'])) {
      $pageNum_RsSearchForSale2 = $_GET['pageNum_RsSearchForSale2'];
    $startRow_RsSearchForSale2 = $pageNum_RsSearchForSale2 * $maxRows_RsSearchForSale2;
    $varloc2_RsSearchForSale2 = "mpl";
    if (isset($_POST['location'])) {
      $varloc2_RsSearchForSale2 = $_POST['location'];
    $varprice2_RsSearchForSale2 = "p9";
    if (isset($_POST['price'])) {
      $varprice2_RsSearchForSale2 = $_POST['price'];
    $vartype2_RsSearchForSale2 = "vil";
    if (isset($_POST['type'])) {
      $vartype2_RsSearchForSale2 = $_POST['type'];
    $varbed2_RsSearchForSale2 = "b5";
    if (isset($_POST['beds'])) {
      $varbed2_RsSearchForSale2 = $_POST['beds'];
    switch (true) {
    case ($varloc2_RsSearchForSale2 == 'zzz'):
    case ($varprice2_RsSearchForSale2 == 'zzz'):
    case ($vartype2_RsSearchForSale2 == 'zzz'):
    case ($varbed2_RsSearchForSale2 == 'zzz'):
    mysql_select_db($database_propertypages, $propertypages);
    $query_RsSearchForSale2 = sprintf("SELECT DISTINCT trueprice,`desc`, `propid`, `bathrooms`, `photo1`, locationtable.loc, typetable.style, bedtable.`number` FROM detailstable JOIN locationtable ON detailstable.location=locationtable.locid JOIN typetable ON detailstable.type=typetable.typeid JOIN pricetable ON detailstable.price=pricetable.priceid JOIN bedtable ON detailstable.beds=bedtable.bedid WHERE (location=%s AND price=%s AND type=%s) OR (location=%s AND price=%s AND beds=%s) OR (location=%s AND type=%s AND beds=%s) OR (price=%s AND type=%s AND beds=%s) ORDER BY detailstable.trueprice ASC", GetSQLValueString($varloc2_RsSearchForSale2, "text"),GetSQLValueString($varprice2_RsSearchForSale2, "text"),GetSQLValueString($vartype2_RsSearchForSale2, "text"),GetSQLValueString($varloc2_RsSearchForSale2, "text"),GetSQLValueString($varprice2_RsSearchForSale2, "text"),GetSQLValueString($varbed2_RsSearchForSale2, "text"),GetSQLValueString($varloc2_RsSearchForSale2, "text"),GetSQLValueString($vartype2_RsSearchForSale2, "text"),GetSQLValueString($varbed2_RsSearchForSale2, "text"),GetSQLValueString($varprice2_RsSearchForSale2, "text"),GetSQLValueString($vartype2_RsSearchForSale2, "text"),GetSQLValueString($varbed2_RsSearchForSale2, "text"));
    $query_limit_RsSearchForSale2 = sprintf("%s LIMIT %d, %d", $query_RsSearchForSale2, $startRow_RsSearchForSale2, $maxRows_RsSearchForSale2);
    $RsSearchForSale2 = mysql_query($query_limit_RsSearchForSale2, $propertypages) or die(mysql_error());
    $row_RsSearchForSale2 = mysql_fetch_assoc($RsSearchForSale2);
    if (isset($_GET['totalRows_RsSearchForSale2'])) {
      $totalRows_RsSearchForSale2 = $_GET['totalRows_RsSearchForSale2'];
    } else {
      $all_RsSearchForSale2 = mysql_query($query_RsSearchForSale2);
      $totalRows_RsSearchForSale2 = mysql_num_rows($all_RsSearchForSale2);
    $totalPages_RsSearchForSale2 = ceil($totalRows_RsSearchForSale2/$maxRows_RsSearchForSale2)-1;
    $queryString_RsSearchForSale2 = "";
    if (!empty($_SERVER['QUERY_STRING'])) {
      $params = explode("&", $_SERVER['QUERY_STRING']);
      $newParams = array();
      foreach ($params as $param) {
        if (stristr($param, "pageNum_RsSearchForSale2") == false &&
            stristr($param, "totalRows_RsSearchForSale2") == false) {
          array_push($newParams, $param);
      if (count($newParams) != 0) {
        $queryString_RsSearchForSale2 = "&" . htmlentities(implode("&", $newParams));
    $queryString_RsSearchForSale2 = sprintf("&totalRows_RsSearchForSale2=%d%s", $totalRows_RsSearchForSale2, $queryString_RsSearchForSale2);
    }?>
    <?php require_once('Connections/propertypages.php'); ?>
    <?php if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $currentPage = $_SERVER["PHP_SELF"];
    $maxRows_RsSearchForSale3 = 10;
    $pageNum_RsSearchForSale3 = 0;
    if (isset($_GET['pageNum_RsSearchForSale3'])) {
      $pageNum_RsSearchForSale3 = $_GET['pageNum_RsSearchForSale3'];
    $startRow_RsSearchForSale3 = $pageNum_RsSearchForSale3 * $maxRows_RsSearchForSale3;
    $varloc3_RsSearchForSale3 = "mpl";
    if (isset($_POST['location'])) {
      $varloc3_RsSearchForSale3 = $_POST['location'];
    $varprice3_RsSearchForSale3 = "p9";
    if (isset($_POST['price'])) {
      $varprice3_RsSearchForSale3 = $_POST['price'];
    $vartype3_RsSearchForSale3 = "vil";
    if (isset($_POST['type'])) {
      $vartype3_RsSearchForSale3 = $_POST['type'];
    $varbed3_RsSearchForSale3 = "b5";
    if (isset($_POST['beds'])) {
      $varbed3_RsSearchForSale3 = $_POST['beds'];
    switch (true) {
    case ($varloc3_RsSearchForSale3 == 'zzz' && $varprice3_RsSearchForSale3 == 'zzz'):
    case ($varprice3_RsSearchForSale3 == 'zzz' && $vartype3_RsSearchForSale3 == 'zzz'):
    case ($vartype3_RsSearchForSale3 == 'zzz' && $varbed3_RsSearchForSale3 == 'zzz' ):
    case ($varbed3_RsSearchForSale3 == 'zzz' && $varloc3_RsSearchForSale3 == 'zzz'):
    case ($varloc3_RsSearchForSale3 == 'zzz' && $vartype3_RsSearchForSale3 == 'zzz'):
    case ($varprice3_RsSearchForSale3 == 'zzz' && $varbed3_RsSearchForSale3 == 'zzz'):
    mysql_select_db($database_propertypages, $propertypages);
    $query_RsSearchForSale3 = sprintf("SELECT DISTINCT trueprice,`desc`, `propid`, `bathrooms`, `photo1`, locationtable.loc, typetable.style, bedtable.`number` FROM detailstable JOIN locationtable ON detailstable.location=locationtable.locid JOIN typetable ON detailstable.type=typetable.typeid JOIN pricetable ON detailstable.price=pricetable.priceid JOIN bedtable ON detailstable.beds=bedtable.bedid WHERE (location=%s AND price=%s) OR (location=%s AND  type=%s) OR (location=%s AND beds=%s) OR ( type=%s AND beds=%s) OR (price=%s AND type=%s) OR (price=%s AND beds=%s) ORDER BY detailstable.trueprice ASC", GetSQLValueString($varloc3_RsSearchForSale3, "text"),GetSQLValueString($varprice3_RsSearchForSale3, "text"),GetSQLValueString($varloc3_RsSearchForSale3, "text"),GetSQLValueString($vartype3_RsSearchForSale3, "text"),GetSQLValueString($varloc3_RsSearchForSale3, "text"),GetSQLValueString($varbed3_RsSearchForSale3, "text"),GetSQLValueString($vartype3_RsSearchForSale3, "text"),GetSQLValueString($varbed3_RsSearchForSale3, "text"),GetSQLValueString($varprice3_RsSearchForSale3, "text"),GetSQLValueString($vartype3_RsSearchForSale3, "text"),GetSQLValueString($varprice3_RsSearchForSale3, "text"),GetSQLValueString($varbed3_RsSearchForSale3, "text"));
    $query_limit_RsSearchForSale3 = sprintf("%s LIMIT %d, %d", $query_RsSearchForSale3, $startRow_RsSearchForSale3, $maxRows_RsSearchForSale3);
    $RsSearchForSale3 = mysql_query($query_limit_RsSearchForSale3, $propertypages) or die(mysql_error());
    $row_RsSearchForSale3 = mysql_fetch_assoc($RsSearchForSale3);
    if (isset($_GET['totalRows_RsSearchForSale3'])) {
      $totalRows_RsSearchForSale3 = $_GET['totalRows_RsSearchForSale3'];
    } else {
      $all_RsSearchForSale3 = mysql_query($query_RsSearchForSale3);
      $totalRows_RsSearchForSale3 = mysql_num_rows($all_RsSearchForSale3);
    $totalPages_RsSearchForSale3 = ceil($totalRows_RsSearchForSale3/$maxRows_RsSearchForSale3)-1;
    $queryString_RsSearchForSale3 = "";
    if (!empty($_SERVER['QUERY_STRING'])) {
      $params = explode("&", $_SERVER['QUERY_STRING']);
      $newParams = array();
      foreach ($params as $param) {
        if (stristr($param, "pageNum_RsSearchForSale3") == false &&
            stristr($param, "totalRows_RsSearchForSale3") == false) {
          array_push($newParams, $param);
      if (count($newParams) != 0) {
        $queryString_RsSearchForSale3 = "&" . htmlentities(implode("&", $newParams));
    $queryString_RsSearchForSale3 = sprintf("&totalRows_RsSearchForSale3=%d%s", $totalRows_RsSearchForSale3, $queryString_RsSearchForSale3);
    } ?>
    <?php require_once('Connections/propertypages.php'); ?>
    <?php if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $currentPage = $_SERVER["PHP_SELF"];
    $maxRows_RsSearchForSale4 = 10;
    $pageNum_RsSearchForSale4 = 0;
    if (isset($_GET['pageNum_RsSearchForSale4'])) {
      $pageNum_RsSearchForSale4 = $_GET['pageNum_RsSearchForSale4'];
    $startRow_RsSearchForSale4 = $pageNum_RsSearchForSale4 * $maxRows_RsSearchForSale4;
    $varloc4_RsSearchForSale4 = "mpl";
    if (isset($_POST['location'])) {
      $varloc4_RsSearchForSale4 = $_POST['location'];
    $vartype4_RsSearchForSale4 = "vil";
    if (isset($_POST['type'])) {
      $vartype4_RsSearchForSale4 = $_POST['type'];
    $varprice4_RsSearchForSale4 = "p9";
    if (isset($_POST['price'])) {
      $varprice4_RsSearchForSale4 = $_POST['price'];
    $varbed4_RsSearchForSale4 = "b5";
    if (isset($_POST['beds'])) {
      $varbed4_RsSearchForSale4 = $_POST['beds'];
    switch (true) {
    case ($varloc4_RsSearchForSale4 == 'zzz' && $vartype4_RsSearchForSale4 =='zzz' && $varprice4_RsSearchForSale4 == 'zzz'):
    case ($varloc4_RsSearchForSale4 == 'zzz' && $varprice4_RsSearchForSale4 =='zzz' && $varbed4_RsSearchForSale4 == 'zzz'):
    case ($varloc4_RsSearchForSale4 == 'zzz' && $varbed4_RsSearchForSale4 =='zzz' && $vartype4_RsSearchForSale4 == 'zzz'):
    case ($varbed4_RsSearchForSale4 == 'zzz' && $vartype4_RsSearchForSale4 =='zzz' && $varprice4_RsSearchForSale4 == 'zzz'):
    mysql_select_db($database_propertypages, $propertypages);
    $query_RsSearchForSale4 = sprintf("SELECT DISTINCT trueprice,`desc`, `propid`, `bathrooms`, `photo1`, locationtable.loc, typetable.style, bedtable.`number` FROM detailstable JOIN locationtable ON detailstable.location=locationtable.locid JOIN typetable ON detailstable.type=typetable.typeid JOIN pricetable ON detailstable.price=pricetable.priceid JOIN bedtable ON detailstable.beds=bedtable.bedid WHERE location=%s OR price=%s OR type=%s OR beds=%s ORDER BY detailstable.trueprice ASC", GetSQLValueString($varloc4_RsSearchForSale4, "text"),GetSQLValueString($varprice4_RsSearchForSale4, "text"),GetSQLValueString($vartype4_RsSearchForSale4, "text"),GetSQLValueString($varbed4_RsSearchForSale4, "text"));
    $query_limit_RsSearchForSale4 = sprintf("%s LIMIT %d, %d", $query_RsSearchForSale4, $startRow_RsSearchForSale4, $maxRows_RsSearchForSale4);
    $RsSearchForSale4 = mysql_query($query_limit_RsSearchForSale4, $propertypages) or die(mysql_error());
    $row_RsSearchForSale4 = mysql_fetch_assoc($RsSearchForSale4);
    if (isset($_GET['totalRows_RsSearchForSale4'])) {
      $totalRows_RsSearchForSale4 = $_GET['totalRows_RsSearchForSale4'];
    } else {
      $all_RsSearchForSale4 = mysql_query($query_RsSearchForSale4);
      $totalRows_RsSearchForSale4 = mysql_num_rows($all_RsSearchForSale4);
    $totalPages_RsSearchForSale4 = ceil($totalRows_RsSearchForSale4/$maxRows_RsSearchForSale4)-1;
    $queryString_RsSearchForSale4 = "";
    if (!empty($_SERVER['QUERY_STRING'])) {
      $params = explode("&", $_SERVER['QUERY_STRING']);
      $newParams = array();
      foreach ($params as $param) {
        if (stristr($param, "pageNum_RsSearchForSale4") == false &&
            stristr($param, "totalRows_RsSearchForSale4") == false) {
          array_push($newParams, $param);
      if (count($newParams) != 0) {
        $queryString_RsSearchForSale4 = "&" . htmlentities(implode("&", $newParams));
    $queryString_RsSearchForSale4 = sprintf("&totalRows_RsSearchForSale4=%d%s", $totalRows_RsSearchForSale4, $queryString_RsSearchForSale4);
    }?>

    Hi David,
    Thank you for your reply and patience, we are getting closer in spite of me!
    Of course i needed to change the name of the recordset, i did that the first time i did it (when i got the error), the when i re did it i forgot, in my defense i was also trying to get a full understanding of the code using the W3Schools php reference and writing by the side of the code on a piece of paper what it meant in English.
    Anyway after re doing the code correctly it still displayed all the records of my database but i realised that was because i was POSTING from the search form and when i changed it to the GET method I now get results when all 4  list menus are selected from and the paging works. After reading about the POST / GET method i chose the POST option, is the GET method a better option in my circumstance?
    On my site now if the user selects from 1,2 or 3 of the menus rather than selecting the relevant records it displays the NO RESULT page, I would like my users to be able to select from all of the menus or ANY combination of the menus and find exact results for their search, for example if they only select a location and a price i want it display all records that match that location and price with any number of bedrooms and any Type of property: Perhaps this is due to how my list menus are set up, for each menu the first Item label is Location (or Beds or Type or Price) and the value i have left blank which i believe means that it will use the item label as the value, the second Item label for all menus is Any and again the value has been left blank. All other item labels have values relevant to database records.  
    I do look forward to your reply and cannot thank you enough for following this through with me, please continue to bare with me just a little more,
    best regards
    Tessimon
    Date: Wed, 11 Nov 2009 06:56:24 -0700
    From: [email protected]
    To: [email protected]
    Subject: Help with message please:  Warning: mysql_free_result() expects parameter 1 to be resource, null given in...... line
    You're not adding the WHERE clause to the SQL query. My example code uses $query_search. You need to change that variable to match the name of your recordset, i.e. $query_RSsearchforsale.
    Moreover, the WHERE clause needs to go before ORDER BY.
    $query_RSsearchforsale = "SELECT trueprice,`desc`, `propid`, `bathrooms`, `location`, `type`, `price`, `beds`, `photo1`, locationtable.loc, typetable.style, bedtable.`number` FROM detailstable JOIN locationtable ON detailstable.location=locationtable.locid JOIN typetable ON detailstable.type=typetable.typeid JOIN pricetable ON detailstable.price=pricetable.priceid JOIN bedtable ON detailstable.beds=bedtable.bedid ";
    // Set a flag to indicate whether the query has a WHERE clause
    $where = false;
    // Loop through the associatiave array of expected search values
    foreach ($expected as $var => $type) {
      if (isset($_GET[$var])) {
        $value = trim(urldecode($_GET[$var]));
        if (!empty($value)) {
          // Check if the value begins with > or <
          // If so, use it as the operator, and extract the value
          if ($value[0] == '>' || $value[0] == '<') {
            $operator = $value[0];
            $value = ltrim(substr($value, 1));
          } elseif (strtolower($type) != 'like') {
            $operator = '=';
          // Check if the WHERE clause has been added yet
          if ($where) {
            $query_RSsearchforsale .= ' AND ';
          } else {
            $query_RSsearchforsale .= ' WHERE ';
            $where = true;
          // Build the SQL query using the right operator and data type
          $type = strtolower($type);
          switch($type) {
            case 'like':
              $query_RSsearchforsale .= "`$var` LIKE " . GetSQLValueString('%' .
    $value . '%', "text");
              break;
            case 'int':
            case 'double':
            case 'date':
              $query_RSsearchforsale .= "`$var` $operator " .
    GetSQLValueString($value, "$type");
              break;
            default:
            $query_RSsearchforsale .= "`$var` = " . GetSQLValueString($value,
    "$type");
    $query_RSsearchforsale .= ' ORDER BY detailstable.trueprice ASC';
    >

  • Unchecked conversion warning - What is the proper way to fix this?

    I've been trying to figure this out for awhile now, and I have not seen an example that will set me on the right track. Given the following code:
            public TreeSet<String> sort = new TreeSet<String>(CI_NE_Comparator);
            public static Comparator CI_NE_Comparator = new CaseInsensitiveNeverEqualsComparator();
            public static class CaseInsensitiveNeverEqualsComparator implements Comparator
              public int compare(Object o1, Object o2)
                   String s1 = (String) o1;
                   String s2 = (String) o2;
                   int compare = s1.trim().toLowerCase().compareTo(s2.trim().toLowerCase());
                   if (compare == 0)
                        return 1; // ensure like values are never deemed equal
                   return compare;
         }I'm getting a warning declaring the class variable sort:
    Type safety: The expression of type Comparator needs unchecked conversion to conform to Comparator <? super String>
    So just what is the proper method to make the Comparator conform to generics?
    ** Btw - if anyone knows of a better way to do that comparator, I'm all ears!

    Why don't you want like values to be deemed equal?
    What would be wrong with using
    String.CASE_INSENSITIVE_ORDER?The code you see above is a stripped down example. We have the need to present data records in alphabetical order to a user, and sometimes these records have the same dscr, but that doesn't necessarily mean it's a unique record. Because of the backing query, I can't rely on the order in which the records were received.
    I can't modify the queries. Also, I can't modify the 30 or so different types of data records, all having the common field dscr, so that I can write a better implementation. But, I can write a better comparator.
    This is all legacy code that I've been working with, so I have to make sure things work as they did before.

  • Need help with XML Conversion

    I have a very large unstructured document that I need to convert to XML. This document once had a structure applied to it but somehow this structure was deleted (not by me). Since the structure was deleted, a fair amount of content has been added to the file.
    Ive been reading through PDF help files and trying to figure out how to solve this problem. I am very new to this so any help or input would really be great.
    So far thoughts on converting to XML are:
    1) Get structure back working in the original file. I do not know if there is a way to transfer the structure Pre-Loss to the new file. I have created a conversion table already that I can use. I have ran the CT and created what seems to be a structured document, but I think I may be missing further steps.
    2) Export the element definitions to an EDD
    3) Convert the EDD to a DTD
    4) Create a template file (not sure how to do this?)
    Finally export to XML. Before I start on this some feedback would be very welcomed. Sorry I am very inexperienced with all of this.

    Hello Frank,
    with the conversion there is a problem concering the graphics/ xrefs.
    after you have created the conversion table and structured your document you now can
    save the document as xml file.
    In the output you then will still have all graphics that are in the document, but the xrefs are missing.
    convert the document via StructureTools > Utilities > Convert Documents to Structured Format.
    In the output you then will have all the xrefs, but the graphics are missing.
    However, it's possible that I'm not up-to-date her as I haven't tried this since quite some time now.
    Point 2 and 3 from your list:
    Normally it's the other way around: You have a DTD and import that as a new EDD file in FrameMaker.
    Also I don't think that there really is a possiblity to export any element definitions from FrameMaker. But I'm happy, if you are able to disabuse me here.
    Template file:
    Any FM file. It just contains the page layout and the character formats etc.
    What you need to do is to add a Structured Application containing all the information on where to find the Template, EDD, DTD and also the read and write rules.
    With FrameMaker there are several Structured Applications delivered, e.g. DITA.
    If you do not have enough experience to create a new structured application without any model, it's best to copy and modify one of these.
    Regards,
    Anna

  • Help with "Unresolved Component" warning

    I know this was asked recently, but I think the poster had different set of circumstances, because the advice offered in that thread didn't lead me to a solution. Or else I'm incompetent! Hopefully someone can help me with the issue I'm having.
    Here's the scenario:
    I get a "Unresolved Component" warning for syntax like this: "createObject('component', 'ss_components.application_methods')"
    - 'ss_components' is a mapping on the CF Server, and the application works fine when tested
    - My CFBuilder Project folder is located in a different place than the wwwroot. Wwwroot is where all the CF scripts/application files are. Within the CFBuilder project, i have a Linked Folder to the wwwroot folder.
    I have the following settings in CFBuilder. Some of these settings are the way they are because I was trying various things out to try and fix this 'Unresolved' problem.:
    -Preferences>ColdFusion>Server Settings> (all checked)
    -Preferences>ColdFusion>Startup> Index all CFCs... (unchecked)
    -Properties>ColdFusion Project>(I have my linked folder here, when I created it, I unchecked the 'Use Link Folder to Resolve CFCs)
    -Local Server Settings: blank entry for "Document Root"
    I'm aware of the inheretence for finding components and I don't fully understand it since I'm new to CFBuilder, but all I know is that the first place CFBuilder looks for components is Mappings defined by CFServer....  I only want it to look there, since that's the only way I ever refer to components
    - Running CF Builder 2, trial on my dev machine which has:
         CF9 installed
         IIS7.5
         RDS Enabled (and works because i can browse the db in CFBuilder)
         CFBuilder was installed as an Eclipse plugin, not standalone.
    Please if anyone can help me with this, i would really appreciate it. I've been trying to fix this all day! :-S
    Thanks
    Dan

    I'm having the same problem.  If I look in the Services Browser, the component shows up correctly, but in CFB2, I get the Unresolved Component message.  Here is my code:
    component output="false" extends="appname.extensions.components.core.Framework" {...}
    I have a CF mapping "appname\extensions" to the folder where the code is.  I've tried just about everything with the server settings in CFB2 as well as the Project settings.  When I click on the error in the gutter, "Quick Fix" suggests to me to create "appname.appname.extensions.core.Framework", but I'm not sure why.  Any help would be great!
    Thanks,
    Tyler

  • Help with T61 monitor warning

    Whenever I use Adobe Photoshop Elements 5, or just recently installed Elements 7, I keep getting a warning at the start of the editing option that says "The monitor profile "Lenovo ThinkPad LCD Monitor" appears to be defective.  Please rerun your monitor calibration software.  It also has buttons to click "Ignore Profile" and "Use Anyway."  I don't know what this means.  I usually click the Ignore Profile button.  Can someone tell me what I need to do to resolve this warning.  And is there a Lenovo monitor calibration software?  What do I need to do to calibrate the monitor.  Thanks for any help you can give.

    I think this is just to warn you regarding your colour profile of your monitor doesn't match with that of the software, which may result in colour inconsistencies.
    Regards,
    Jin Li
    May this year, be the year of 'DO'!
    I am a volunteer, and not a paid staff of Lenovo or Microsoft

  • Need help with RAW conversion in 1.5

    Previous tests on RAW conversion have confirmed that Aperture and CI pretty much all in camera settings except white balance. In my previous tests with everything set to pretty much "normal" in camera Aperture's RAW conversion was close but not exact to the camera produced JPG's of the same exact image (camera set to RAW+JPG). I have no way to test but now the same exact images are no where near the same color balance or temperature.
    Does anyone else have this issue with 1.5? What is going on?
    I can post some examples if it would help.

    Hello, rwboyer
    Quote: "[sic with] pretty much all in camera settings
    except white balance. In my previous tests with
    everything set to pretty much "normal" in camera
    Aperture's RAW conversion was close but not exact to
    the camera produced JPG's of the same exact image
    (camera set to RAW+JPG)."
    What are you using as a comparison for the jpegs?
    Comparing a RAW photograph to a jpeg duplicate would
    not look the same under close examination.
    Let's see the examples.
    love & peace,
    victor
    Let me rephrase and provide an example,
    I have the camera set to produce a RAW file and a JPG of the same shot. In Aperture 1.1 the way both file looked side by side in Aperture was close but not identical, the way both files looked exported to JPG were close. After switching to Aperture 1.5 the same exact files look completely different.
    Here is an example exported from Aperture 1.5
    {Moderator note: Links to images were removed. Please only link to images that would be 'family-friendly'.}
    Thanks
    MacBookPro Mac OS X (10.4.6)

  • Need help with Currency Conversion

    Hello,
    I need to implement currency conversion in our existing classic planning application (11.1.2.1) which was initially set as a multi-currency application but so far we didn’t have the users entering data in their local currencies. We were entering all the values in USD. Now the users will be entering data in their local currencies and we need to convert their local data into USD  for reporting purposes.
    I don’t have much experience with multi-currency applications and so I would really appreciate if the gurus here can guide and help me.
    Our currency dimension has the following three members USD, B, C. Our reporting currency is USD which is the default currency for our application.
    After reading some forum posts and documentation below are the steps I tried but couldn’t get it to work right. Correct me if I am doing something wrong, or in the wrong order or missing something.
    Administration – Manage – Exchange Rates – Create – A_FY13 – Edit – Chose all the options – Average, Ending, BegBalance, Historical, Method – Clicked Next – Chose the Year as FY13 from the drop down (in Show Years) and entered the exchange rates for both B & C – Save.
                          A message was displayed – “Exhange Rate has been saved successfully”. 
    Administration – Manage – Currency Conversions – A_FY13 – Next - Currency - USD, Scenario – Actual, Version Type – Target, Version – Working – Save.
                                  A message was displayed – “Scripts were successfully created”.
    In EAS both the scripts – HspCRtT & A_FY13 were created.
    Edited the A_FY13 script FIXs to only work on year FY13 for one month for testing purposes.
    In workspace edited the Actual scenario to be associated with the A_FY13 exchange rate table.
    In EAS ran the HspCRtT script first followed by ACT_FY13. The scripts completed successfully.
    While pulling data (Level 0 data) in Excel the data is present in “Local” intersection for the accounts I am looking at but when looked at the USD intersection the data is converted right for only one account, for some other accounts there is no data in the intersection and for another account which is a weight account (weight of a product) which doesn’t need to get converted the values got converted. For some reason the conversion isn’t working right for the accounts.
    Are there any steps that I am missing here?  Please let me know your ideas and help me. Any help is appreciated and I will be looking forward for suggestions and ideas.
    Thanks.
    ~ Adella
    P.S ~ I had posted a similar question a couple months earlier but still couldn't really get things to work... and so I am posting it again to get more help. For those who are feeling that they have read this kind of a question earlier from me...please bear with me as I couldn't get my issues resolved and still couldnt get things implemented successfully. Again, I would really appreciate if you could further help me with your ideas and suggestions.

    replied to the old thread
    Regards
    Celvin
    http://www.orahyplabs.com

  • Need help with this Generics Warning

    Hi All,
    I could not understand what the following Generics Warning means
    Type safety: The cast from Object to HashMap<String,Object> is actually checking against the erased type HashMap
    Could anyone please help me with this.
    Here is the erring line of Code :
    HashMap<FDTColumInfoKey, ColumnInfo> designMap = (HashMap<FDTColumInfoKey, ColumnInfo>)wdContext.currentContextElement().getColumnInfoMap();
    Thanks !

    SloMoe wrote:
    Hi Malcolm,
    tnx for taking time to answer my query, but doesn't Generics give an exception during compile time as opposed to Run Time ? I mean if the attributes type in the Generic definition does not match with the type of the attributes during Compile time, An exception will be thrown. So why the warning ?Because, in this case, there's no way that the compiler can check the correctness of the generics. You're telling the compiler that the object you retrieve is of the relevant generic types but the compiler can't verify it.
    That's also true with an ordinary cast from Object, of course, but if with an ordinary cast at least the run time will verify that the object is actually of the required type where the cast is made and throw a CastClassException immediately. So it's easy to debug.
    With generics the run time doesn't have access to the generics data. This is what is meant by "erasure". So it can check that the object is a HashMap when casting, but not that it contains the right type of entries. This means that, at some later point in the code, it might retrieve an object from the map and discover that it's of the wrong type, thus causing a ClassCastException in a statement with no explicit cast.

  • Help with binary conversion project

    hey my assignment was to make a program that would say the binary representation of an int. i got my program working and im pretty sure it works for all negatives and 0. my question is can you guys help me with a way to do the same steps with for( or while( ? it seems like i went the long way doing this project and even tho it works theres probably a much simpler way of going about it. theres no interface or anything we just change the value of N and recompile it and run from command prompt so far in our class. thanks for the help
    class binary {
    public static void main(String[]args){
         int N = -264;
         int M = N*-1;
         int A;
         int A1;
         int B;
         int B1;
         int C;
         int C1;
         int D;
         int D1;
         int E;
         int E1;
         int F;
         int F1;
         int G;
         int G1;
         int H;
         int H1;
         int I;
         int I1;
         if(N==0) {
              System.out.println("The Binary reresentation of "+N+" is = 0");
         if(N<0) {
              A=M/2;
              A1=M%2;
              B = A/2;
              B1 = A%2;
              C = B/2;
              C1 = B%2;
              D = C/2;
              D1 = C%2;
              E = D/2;
              E1 = D%2;
              F = E/2;
              F1 = E%2;
              G = F/2;
              G1 = F%2;
              H = G/2;
              H1 = G%2;
              I = H/2;
              I1 = H%2;
         else {
              A= N/2;
              A1 = N%2;
              B = A/2;
              B1 = A%2;
              C = B/2;
              C1 = B%2;
              D = C/2;
              D1 = C%2;
              E = D/2;
              E1 = D%2;
              F = E/2;
              F1 = E%2;
              G = F/2;
              G1 = F%2;
              H = G/2;
              H1 = G%2;
              I = H/2;
              I1 = H%2;
         if(A1==1 && N<0){
         B1=B1-1;
         C1=C1-1;
         D1=D1-1;
         E1=E1-1;
         F1=F1-1;
         G1=G1-1;
         H1=H1-1;
         I1=I1-1;
         if(A1==0 && B1==1 && N<0){
         C1=C1-1;
         D1=D1-1;
         E1=E1-1;
         F1=F1-1;
         G1=G1-1;
         H1=H1-1;
         I1=I1-1;
         if(A1==0 && B1==0 && C1==1 && N<0){
         D1=D1-1;
         E1=E1-1;
         F1=F1-1;
         G1=G1-1;
         H1=H1-1;
         I1=I1-1;
         if(A1==0 && B1==0 && C1==0 && D1==1 && N<0){
         E1=E1-1;
         F1=F1-1;
         G1=G1-1;
         H1=H1-1;
         I1=I1-1;
         if(A1==0 && B1==0 && C1==0 && D1==0 && E1==1 && N<0){
         F1=F1-1;
         G1=G1-1;
         H1=H1-1;
         I1=I1-1;
         if(A1==0 && B1==0 && C1==0 && D1==0 && E1==0 && F1==1 && N<0){
         G1=G1-1;
         H1=H1-1;
         I1=I1-1;
         if(A1==0 && B1==0 && C1==0 && D1==0 && E1==0 && F1==0 && G1==1 && N<0){
         H1=H1-1;
         I1=I1-1;
         if(A1==0 && B1==0 && C1==0 && D1==0 && E1==0 && F1==0 && G1==0 && H1==1 && N<0){
         I1=I1-1;
         if(A1==-1){
         A1=A1*-1;
         if(B1==-1){
         B1=B1*-1;
         if(C1==-1){
         C1=C1*-1;
         if(D1==-1){
         D1=D1*-1;
         if(E1==-1){
         E1=E1*-1;
         if(F1==-1){
         F1=F1*-1;
         if(G1==-1){
         G1=G1*-1;
         if(H1==-1){
         H1=H1*-1;
         if(I1==-1){
         I1=I1*-1;
         if(A==0 && N<0){
              System.out.println("The Binary reresentation of "+N+" is = 1"+A1);
         else if(B==0 && N<0){
              System.out.println("The Binary reresentation of "+N+" is = 1"+B1+A1);
         else if(C==0 && N<0){
              System.out.println("The Binary reresentation of "+N+" is = 1"+C1+B1+A1);
         else if(D==0 && N<0){
              System.out.println("The Binary reresentation of "+N+" is = 1"+D1+C1+B1+A1);
         else if(E==0 && N<0){
              System.out.println("The Binary reresentation of "+N+" is = 1"+E1+D1+C1+B1+A1);
         else if(F==0 && N<0){
              System.out.println("The Binary reresentation of "+N+" is = 1"+F1+E1+D1+C1+B1+A1);
         else if(G==0 && N<0){
              System.out.println("The Binary reresentation of "+N+" is = 1"+G1+F1+E1+D1+C1+B1+A1);
         else if(H==0 && N<0){     
              System.out.println("The Binary reresentation of "+N+" is = 1"+H1+G1+F1+E1+D1+C1+B1+A1);
         else if(I==0 && N<0){     
              System.out.println("The Binary reresentation of "+N+" is = 1"+I1+H1+G1+F1+E1+D1+C1+B1+A1);
         if(A==0 && N>0){
              System.out.println("The Binary reresentation of "+N+" is = 0"+A1);
         else if(B==0 && N>0){
              System.out.println("The Binary reresentation of "+N+" is = 0"+B1+A1);
         else if(C==0 && N>0){
              System.out.println("The Binary reresentation of "+N+" is = 0"+C1+B1+A1);
         else if(D==0 && N>0){
              System.out.println("The Binary reresentation of "+N+" is = 0"+D1+C1+B1+A1);
         else if(E==0 && N>0){
              System.out.println("The Binary reresentation of "+N+" is = 0"+E1+D1+C1+B1+A1);
         else if(F==0 && N>0){
              System.out.println("The Binary reresentation of "+N+" is = 0"+F1+E1+D1+C1+B1+A1);
         else if(G==0 && N>0){
              System.out.println("The Binary reresentation of "+N+" is = 0"+G1+F1+E1+D1+C1+B1+A1);
         else if(H==0 && N>0){     
              System.out.println("The Binary reresentation of "+N+" is = 0"+H1+G1+F1+E1+D1+C1+B1+A1);
         else if(I==0 && N>0){     
              System.out.println("The Binary reresentation of "+N+" is = 0"+I1+H1+G1+F1+E1+D1+C1+B1+A1);
    }

    String intAsBinaryString(int n){
      String res = "";
      for(int i = 1; i!=0; i *=2){
        res = ((n & i != 0)?"1":"0") + res;
      return res;
    }Pete is right, in order to understand this you need to know how integers are stored.

  • Help with a JavaScript Warning

    I have created a form that added fields into total fields.  The total fields are then added together.  In another part of the form there is addition and subtraction that gives another total.   If these two totals do not equal then a number is plugged into one of two fields Over or Short according to which be the case.  My problem is that all of these fields are set for the number format with 2 decimal places but as soon as you enter the last number the warning
    "The value entered does not match the format of the field [Over] and if you click enter another message with the same wording just for Short comes up.  This happens when there is no offage.  It does not happen if there is a number to plug in the short or over fields.
    At this time it does not recalculate and the numbers that should have changed to 0 stays in place.  This causes the ending total to be off.
    There is a custom validation to not show negative numbers.  The validation that is keyed is as follows:
    // null field if number is negative
    if (event.value<0) event.value="";
    This script is keyed into the over and short fields.

    The fields involve are totals of currency.  There are 4 columns that are added together to come up with a TotalCash sum.  In another area I have a field named OldBalance that together with a field named CashIn(+) and CashOut(-) gives the sum of NewBalance.  The sum of NewBalance should equal the Sum of TotalCash if not then either the Over or the Short field should have a sum plugged, therefore; Over or Short can not show a negative number or sum a negative number.
    The calculations for the NewBalance is correct.  The calculation for TotalCash is correct.  The problem is that when you plug the number into CashOut the error messages comes up.  If you answer ok to the 2 error messages and then delete the numbers in the over or short field the Total field is correct.  If not the number that should have cleared when entering the CashOut field stays and caused the Total field to be out of balance.  I should add that if the sheet is out of balance that it will not let you clear the field.
    I tried changing the format to none and the same errors popped up.

  • Help with Coding and Warning/Error Messages

    Can someone help me with Java Language to get SAP to enter through soft warnings and errors?
    I am working to record/write a script to change orders but am hitting a road block when error messages pop up. I need to get it to enter through if the message pops up or move to the next step if not... there can be 1 error or multiples depending on the number line items.
    THANKS!

    I'm guessing that your computer is too slow to record
    real-time audio.
    Of itself it should be fine - I still use a G3 desktop to record stereo with no problems at all - though GB may add an overhead. Still, this shouldn't be happening.
    If you have other tracks playing
    while you are recording this could be an issue,
    especially if there are a lot playing.
    Yes...
    If this is the
    case then you can lock the tracks playing by pressing
    the lock icon.
    This won't make any difference to audio tracks, only to MIDI tracks, and in that case it reduces demands on the processor but increases demands on the disk - which appears to be the trouble in the first place.
    I agree that you should consider
    getting an external hard drive. You can set the
    record path to the external hard drive
    Since laptop disks are usually slower than external ones this might help - particularly if your internal drive is very full.
    which will
    free up working memory to your computer.
    No it won't, but it will take the strain off the internal disk, if that's what you mean. The memory might be an issue, which would be resolved by installing more RAM if possible.

  • I need help with a conversion problem!!!!

    I need to know how to convert a movie I made on Windows Movie Maker to a Quicktime file, so I can view it in iTunes and on the new iPod. If anyone knows, please help me. Thank you.
    Jason

    Jason hello,
    Welcome to the Apple Discussions as you are not running a MAC your question would be best served in the special
    iTunes for windows forum. Click here
    TP

  • Please Help with Simple Conversion

    I cannot figure out how to convert a String containing XML into a javax.xml.soap.SOAPElement. Could someone please advise?
    Thank you in advance.

         * Get SOAPMessage object from an InputStream and closes this stream.
         * @param soapStream InputStream with SOAP content.
         * @return SOAPMessage or null if failed.
         * @throws SOAPException
        public static SOAPMessage getMessage(InputStream soapStream) throws SOAPException {
            SOAPMessage result = null;
            if (soapStream != null) {
                StreamSource ss = null;
                try {
                    SOAPMessage message = SOAPUtils.createMessage();
                    SOAPPart part = message.getSOAPPart();
                    ss = new StreamSource(soapStream);
                    part.setContent(ss);
                    result = message;
                } finally {
                    try {soapStream.close(); } catch (IOException ioe) { ioe.printStackTrace(System.err); }
            return result;
        }//getMessage()
         * Convert a SOAPMessage in string format to a SOAPMessage object.
         * @param string String with SOAP content.
         * @return SOAPMessage or null if failed.
         * @throws Exception
        public static SOAPMessage toMessage(String string) throws SOAPException {
            SOAPMessage result = null;
            if (string != null) {
                result = getMessage(new ByteArrayInputStream(string.getBytes()));
            return result;
        }//toMessage()

  • Anybody out there, please help with this conversion..

    WHy does this not work: I get exception errors and errors like unparseable date. the string is "05231999"
    if (elementAttrValue.equals("DecisionDate"))
    {System.out.println(elementAttrValue + " " + elmentValue);
    myString = elementValue;
    SimpleDateFormat myFormat = new SimpleDateFormat("MM/dd/yyyy");
    try
    Date myDate = myFormat.parse(myString);
    System.out.println(elementAttrValue + " " + myDate);
    application.setDecisionDate(myDate);
    catch(Exception e)
    e.printStackTrace(System.err);
    }

    DrClap,, Thanks so much for your help. I think Iam on track now. But by defining SimpleDateFormat(mmddyyyy) am I not restricting myself. What if my data coming in as string is larger than what I have defined SimpleDateFormat. Iam reading this input data from XML, to which Iam passing values from database. So this XML file will contain nulls,mmddyyyy,etc string values. How can i be flexible??. Thanks in advance

Maybe you are looking for

  • MacBook Pro 2010, 15" Freezes for 20-30sec every now and then

    Hi there, I recently got my MBP Mid-2010 with a Core i5, 4GB RAM and the BTO 500GB 7200rpm HDD. From time to time the current application freezes, spinning beachball - using app switch I can still switch to another application but 1-2 seconds later t

  • Using owa_util.showpage

    Hi, I just learning how the package owa_util works in my db 10g and I don't Know why the code that I describe below give me a few errors: CREATE TABLE feds_data ( tid       NUMBER(9), serial_no VARCHAR2(30), mfg_abbr  VARCHAR2(8), type_code VARCHAR2(

  • Custom fields specific to country.

    Dear Friends, In Info Type 0008,I added a custom field on screen. But for employees of US it appears and for swiss employee it doesn't appear. I want to show this field for certain countries. How should I do this? Thanks Prashant

  • UDF(user defined function) for standard date transformate function,

    Hi All, Hope you are doing good !!! I have a requirement where i need to write an UDF(user defined function). Please help me in writing the code for below logic- I am getting my Input as 111213 where 11 denotes HH 12 denotes mm 13 denotes ss. I need

  • RAW conversion with Aperture

    Has anyone compared the quality of RAW conversion of Aperture vs. Nikon Capture as well as other converters? I really like the quality of nikon capture and would not want to purchase aperture unless the conversion was at least equivalent. Thanks for