Create a default path into Automation Refnum

I'm currently writing an app which should display a nice graph (chart) on
its front panel. I choose to use Mapinfo Active X.
To do this, I've placed an Automation Refnum on my front panel, and in the window
'select object form Type Library', I choose "Mapinfo.tlb" .
It works quite well, but :
When I re-open this Vi, I should re-setting the Automation refnum. I try to use Active X container, it doesn't work. Can I create a default path into the Automation Refnum or any other method which can solve this problem.
Thanks for your help.

You shouldn't select the type lybrary, in automation refnum, when you want to select te type, available types appear if properly registered in your system, if not, you should register your tlb.
Hope this helps

Similar Messages

  • Inject BGP Default Routes into Multiple VRF before Best Path Selection

    Hello, 
    I have the following setup:
    Multiple Border Routers with eBGP sessions to external AS. We receive a default route from this multiple AS to keep the Table manageable. We noticed an important part of our traffic was been SW routed instead of CEF when we had the Full Internet table. Router Resources came to the ground when we changed to a default. 
    Now I want to separate this default routes into different VRF. Attached is the Diagram. 
    My question is,  the multiple default route all go into the BGP Table. The BGP table then select the best route and place it on the RIB and then to the FIB. 
    I want to redistribute the different Route on the BGP table prior to the Best path selection algorithm and placed on the RIB. 
    How can I achieve this?

    Hi,
    Redistribution of multiple routes to same prefix is not possible. Even if you have configured BGP multipath and all different bgp routes got installed into routing table, during redistribution only route will be redistributed. 
    Also would like to understand the requirement of redistributing multiple BGP routes in to IGP. As per your diagram, 3 different eBGP sessions are on three different routers, so you can prefer eBGP route over iBGP received from other routers and can distribute eBGP route to IGP from each router. Thus you will have three different default routes in to IGP in core.
    Please don't forget to rate this post if it has been helpful
    - Akash

  • When saving documents from word 2013, the save as dialog shows the default path under "other web locations"

    it used to be in the gold ole days of sharepoint 2010 and office 2010 that when I created a document in sharepoint and saved it I would get a dialog, like this (see below)  I have also attached a screen shot of the 2013 save dialog (when you save
    a document for the first time).
    I find it strange that the user actually has to select their "Current Folder" and also that it shows in the dialog as "other web locations"  Why can't it be like in the 2010 days where it automically selects the correct location
    and the user just hits save.  And why does the sharepoint location show up as an "other web location".  Is there anything that can be done (through office registry settings or another way) to make this less confusing for our users???
    now when I do this in office 2013 I get a dialog like this:
    krd

    Hi kdube,
    I test in SharePoint 2013 again, When I created a new document library and created a first document and clicked save as, I got a same dialog with you that "Current Folder" was under  "other web locations". 
    But when I created a second document and from then on, when I clicked save as, I got a same dialog with myself that "Current Folder" was under "SharePoint".  
    As I have said, Actually, web locations contain Microsoft SkyDrive and SharePoint libraries. Even the default path under "other web locations", it will not affect the Save As function. 
    Best Regards,
    Lisa Chen
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]

  • Saving report output in default path

    Hi,
    We are using the 6i reports server. We want to save the report output as a file in a default path. We are making the report requests through URL call from within a PL/SQL block. When we give just the filename(this will dynamically be generated for each request) in the DESNAME parameter, it is saving directly into the path where we started the reports server. We don't want to hardcode the required path in the PL/SQL block.
    Can't we set the default path for saving the report output during the configuration of the reports server?
    Is there any alternative to achieve this, like storing the path(without filename) in any configuration file similar to <servername>.conf in 9i reports server?
    Regards,
    Milton.

    Hi Milton
    Try these suggestion and see if they work...
    Add ORACLE_HOME/bin in your system PATH and run Reports Server from the folder where you want your output file to be generated.
    You could also be storing the "default" path in a config file and use IO packages to read it.
    Create a user parameter of character type and do the following in any of the Reports trigger:
    :desname := :p_1 || :desname;
    You may pass the "default" path on the URL.
    Regards
    Sripathy

  • Storing Uploaded Image Path into Mysql

    Hi I am developing a cms and am using the code David gives in his book PHP Solutions,  everything works fine but I can't work out how to extract the uploaded path so that it is stored in my table.
    Help would be really appreciated, I am making good progress in learning the php especially with David's books but am still struggling when it comes to having to customized the code.
    The code for the upload.php is as follows,
    <?php
    class Gp1_Upload{
      protected $_uploaded = array();
      protected $_destination;
      protected $_max = 51200;
      protected $_messages = array();
      protected $_permitted = array('image/gif',
                                    'image/jpeg',
                                    'image/pjpeg',
                                    'image/png');
      protected $_renamed = false;
      public function __construct($path) {
        if (!is_dir($path) || !is_writable($path)) {
          throw new Exception("$path must be a valid, writable directory.");
        $this->_destination = $path;
        $this->_uploaded = $_FILES;
      public function getuploadpath (){
      public function getMaxSize() {
        return number_format($this->_max/1024, 1) . 'kB';
      public function setMaxSize($num) {
        if (!is_numeric($num)) {
          throw new Exception("Maximum size must be a number.");
        $this->_max = (int) $num;
      public function move($overwrite = false) {
        $field = current($this->_uploaded);
        if (is_array($field['name'])) {
          foreach ($field['name'] as $number => $filename) {
            // process multiple upload
            $this->_renamed = false;
            $this->processFile($filename, $field['error'][$number], $field['size'][$number], $field['type'][$number], $field['tmp_name'][$number], $overwrite);   
        } else {
          $this->processFile($field['name'], $field['error'], $field['size'], $field['type'], $field['tmp_name'], $overwrite);
      public function getMessages() {
        return $this->_messages;
      protected function checkError($filename, $error) {
        switch ($error) {
          case 0:
            return true;
          case 1:
          case 2:
            $this->_messages[] = "$filename exceeds maximum size: " . $this->getMaxSize();
            return true;
          case 3:
            $this->_messages[] = "Error uploading $filename. Please try again.";
            return false;
          case 4:
            $this->_messages[] = 'No file selected.';
            return false;
          default:
            $this->_messages[] = "System error uploading $filename. Contact webmaster.";
            return false;
      protected function checkSize($filename, $size) {
        if ($size == 0) {
          return false;
        } elseif ($size > $this->_max) {
          $this->_messages[] = "$filename exceeds maximum size: " . $this->getMaxSize();
          return false;
        } else {
          return true;
      protected function checkType($filename, $type) {
        if (empty($type)) {
          return false;
        } elseif (!in_array($type, $this->_permitted)) {
          $this->_messages[] = "$filename is not a permitted type of file.";
          return false;
        } else {
          return true;
      public function addPermittedTypes($types) {
        $types = (array) $types;
        $this->isValidMime($types);
        $this->_permitted = array_merge($this->_permitted, $types);
      protected function isValidMime($types) {
        $alsoValid = array('image/tiff',
                           'application/pdf',
                           'text/plain',
                           'text/rtf');
          $valid = array_merge($this->_permitted, $alsoValid);
        foreach ($types as $type) {
          if (!in_array($type, $valid)) {
            throw new Exception("$type is not a permitted MIME type");
      protected function checkName($name, $overwrite) {
        $nospaces = str_replace(' ', '_', $name);
        if ($nospaces != $name) {
          $this->_renamed = true;
        if (!$overwrite) {
          $existing = scandir($this->_destination);
          if (in_array($nospaces, $existing)) {
            $dot = strrpos($nospaces, '.');
            if ($dot) {
              $base = substr($nospaces, 0, $dot);
              $extension = substr($nospaces, $dot);
            } else {
              $base = $nospaces;
              $extension = '';
            $i = 1;
            do {
              $nospaces = $base . '_' . $i++ . $extension;
            } while (in_array($nospaces, $existing));
            $this->_renamed = true;
        return $nospaces;
      protected function processFile($filename, $error, $size, $type, $tmp_name, $overwrite) {
        $OK = $this->checkError($filename, $error);
        if ($OK) {
          $sizeOK = $this->checkSize($filename, $size);
          $typeOK = $this->checkType($filename, $type);
          if ($sizeOK && $typeOK) {
            $name = $this->checkName($filename, $overwrite);
            $success = move_uploaded_file($tmp_name, $this->_destination . $name);
            if ($success) {
                $message = "$filename uploaded successfully";
                if ($this->_renamed) {
                  $message .= " and renamed $name";
                $this->_messages[] = $message;
            } else {
              $this->_messages[] = "Could not upload $filename";
    ?>
    The code for my form page is this
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    <body>
    <?php
    //THE FOLLOWING CODE IS FOR THE UPLOADING OF IMAGES AND FILES
    // set the max upload size in bytes
    $max = 51200;
    if (isset ($_POST ['submit']))
                //define the path to the upload folder
                $destination = 'uploads/';
                require_once('classes/Upload.php');
                try {
                    $upload = new Gp1_Upload($destination);
                    $upload->setMaxSize($max);
                    $upload->move();
                    $result = $upload->getMessages();
                } catch (Exception $e) {
                    echo $e->getMessage();
    // END OF UPLOADING OF IMAGES AND FILES
    ?>
    <form id="newvenue" action="" method="post" enctype="multipart/form-data" >
          <?php
               // THIS CODE DISPLAYS ERROR MESSAGES FOR THE FILE UPLOADS
              if (isset($result)){
              echo '<ul>';
              foreach ($result as $message){
                  echo "<li>$message</li>";
              echo '</ul>';
           ?>
      <table id="neweventdisplay" cellpadding="5"  border="0">
        <tr>
      <td></td>
      <td><input type="hidden" name="user_id"  value="" /></td>
      </tr>
      <tr>
      <td></td>
        <td>Organisers Name</td>
        <td><input class="input80px" id="org_name" name="org_name" type="text" /> </td>
      </tr>
      <tr>
      <td></td>
      <td><label for="image">Upload image:</label></td>
      <td><p>
    <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $max; ?>" />
    <input type="file" name="image" id="image" />
    </p></td>
    </tr>
      <tr>
      <td></td>
      <td>Details about your upload</td>
      <td><input class="input80px" id="org_uploadcapt" name="org_uploadcapt" type="text"  /></td>
    </tr>
      <tr>
      <td></td>
      <td><input type="submit" name="submit" id="submit" value="upload"></td>
      </tr>
      <tr>
      <td class="heading"> </td>
      <td></td>
      </tr>
    </table>
    </form>
    <prep>
    <?php
    if (isset ($_POST ['submit'])){
        print_r($_FILES);}
        ?>
        </prep>
    </body>
    </html>

    Hi David
    Thank you very much for your help.  I had continued to work on the code and had worked out how to input the image path into the database but it was using the original filename, so when every it is changed it did not work.  The code in my page at that point was the following,
    <?php     // 2. NEW USER REGISTRATION<br />
            include_once ("includes/form_functions.inc.php");
            $max = 100000;
            $destination = 'uploads/';
            // START FORM PROCESSING FOR A NEW REGISTRATION
            if (isset($_POST['submit'])) { // Form has been submitted.
            $errors = array();
            // perform validations on the form data
            $required_fields = array('org_name');
            $errors = array_merge($errors, check_required_fields($required_fields, $_POST));    
            $required_numberfields = array('user_id');
            $errors = array_merge($errors, check_number_fields($required_numberfields, $_POST));
            $fields_with_lengths = array('org_name' => 36, 'org_website' => 100, 'org_contact' => 40,  'org_conemail' => 80, 'org_contel' => 30);
            $errors = array_merge($errors, check_max_field_lengths($fields_with_lengths, $_POST));
            /*Here I am using trim as well as ucwords, this function converts the first letter of each work into a capital letter,  I am using this only on the
            firstname and surname to ensure that the data is how I want it as it is going  into the database,  The better the data is preformated the better the data
            swill be within the database.*/
            $org_name = trim(strtolower(mysql_prep($_POST['org_name'])));
            $org_website = trim(strtolower(mysql_prep($_POST['org_website'])));
            $org_contact = trim(strtolower (mysql_prep($_POST['org_contact'])));
            $org_conemail = trim(strtolower (mysql_prep($_POST['org_conemail'])));
            $org_contel = strtolower (mysql_prep($_POST['org_contel']));
            $userid = $_POST['user_id'];
            $org_uploadcapt = $_POST['org_uploadcapt'];
            $image = $_FILES['image'];
            /*Here is the code that takes the variable captured from the input form and matches it  up with the appropriate field in the database.  An important point with insertion is that  the variables are in the same order as the mysql field names, there will be an error if the number of variables does not match the number of field names.  Note that there is no entry for the user id as this is an auto increment file within mysql and so is not needed to be entered*/
            if ( empty($errors) ) {
                $sql = "INSERT INTO organiser
                          (org_name, org_website, org_contact, org_conemail, org_contel, user_id, org_uploadurl, org_uploadcapt)
                          VALUES
                          ('{$org_name}', '{$org_website}', '{$org_contact}', '{$org_conemail}', '{$org_contel}', '{$userid}', '{$destination}".$image['name']."', '{$org_uploadcapt}' )";
                $result = mysql_query($sql, $connection);
                if ($result) {
                    $message = "The organiser was successfully created.<br />";
                } else {
                    $message = "I am sorry but the organiser could not be added.";
                    $message .= "<br />" . mysql_error();
                } else {
                    /* this counts the number of errors and informs the user of how many fields were
                    incorrectly entered*/
                if (count($errors) == 1) {
                    $message = "There was 1 error in the form.";
                } else {
                    $message = "There were " . count($errors) . " errors in the form.";
        } else { // Form has not been submitted.
            $org_name = "";
            $org_website = "";
            $org_contact = "";
            $org_conemail = "";
            $org_contel = "";
            $userid = "";
            $org_uploadcapt = "";
    //THE FOLLOWING CODE IS FOR THE UPLOADING OF IMAGES AND FILES
    // set the max upload size in bytes
    if (isset ($_POST ['submit']))
                //define the path to the upload folder
                // Use This On The Local Hosting Machine
                //$destination = 'C:/upload_test/';
                // Use This On The Live Server
                require_once('classes/Upload.php');
                try {
                    $upload = new Gp1_Upload($destination);
                    $upload->setMaxSize($max);
                    $upload->move();
                    $result = $upload->getMessages();
                } catch (Exception $e) {
                    echo $e->getMessage();
    // END OF UPLOADING OF IMAGES AND FILES
    ?>
    <title>Horse Events</title>
    <?php include_once("includes/meta.inc.php");?>
    <?php include_once("includes/cssfavgoogle.inc.php");?>
    <link href="css/adminpanel.css" rel="stylesheet" type="text/css" />
    <style>
    input[type="number"] {
        width:40px;
    </style>
    </head>
    <body>
    <div id="wrapper">
        <div id="admincontent">
    <form id="newvenue" action="neworganiser.php" method="post" enctype="multipart/form-data" >
          <?php if (!empty ($message)) {echo "<p class=\"message\">" . $message . "</p>";} ?>
          <?php if (!empty ($errors)) {display_errors($errors); } ?>
          <?php
              // THIS CODE DISPLAYS ERROR MESSAGES FOR THE FILE UPLOADS
              if (isset($result)){
              echo '<ul>';
              foreach ($result as $message){
                  echo "<li>$message</li>";
              echo '</ul>';
           ?>
    <br />
          <table id="neweventdisplay" cellpadding="5"  border="0">
        <tr>
      <td></td>
      <td><input type="hidden" name="user_id"  value="<?php echo $url_userid ['user_id']; ?>" /></td>
      </tr>
      <tr>
      <td> <span class="compuls">*</span></td>
        <td>Organisers Name</td>
        <td><input class="input80px" id="org_name" name="org_name" type="text" />
         </td>
      </tr>
          <tr>
          <td><span class="compuls">*</span></td>
        <td>Their Website</td>
        <td><input class="input80px" id="org_website" name="org_website" type="text" /></td>
      </tr>
        <tr>
        <td><span class="compuls">*</span></td>
        <td>Organisers Contact</td>
        <td><input id="org_contact" name="org_contact" type="text" />eg: Mrs Jean Kelly</td>
      </tr>
        <tr>
        <td><span class="compuls">*</span></td>
        <td>Contact Email</td>
        <td><input class="input80px" id="org_conemail" name="org_conemail" type="text" />
          </td>
      </tr>
        <tr>
        <td><span class="compuls">*</span></td>
      <td>Contact Tel No.</td>
      <td><input id="org_contel" name="org_contel" type="text" /></td>
      </tr>
      <tr>
      <td></td>
      <td><label for="image">Upload image:</label></td>
      <td><p>
    <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $max; ?>" />
    <input type="file" name="image" id="image" />
    </p></td>
    </tr>
      <tr>
      <td></td>
      <td>Details about your upload</td>
      <td><input class="input80px" id="org_uploadcapt" name="org_uploadcapt" type="text"  /></td>
    </tr>
      <tr>
      <td></td>
      <td><input type="submit" name="submit" id="submit" value="Add Your Organiser"></td>
      </tr>
      <tr>
      <td class="heading"> </td>
      <td></td>
      </tr>
    </table>
    <a  class="delete" href="controlpanel.php">Cancel</a>
    </form>
        </div>
    I have added the code you kindly forwarded but am getting an error,  I am still trying to learn the basics of php and am unsure of what to do next, my php Upload.php now looks like
    <?php
    class Gp1_Upload{
      protected $_uploaded = array();
      protected $_destination;
      protected $_max = 100000;
      protected $_messages = array();
      protected $_permitted = array('image/gif',
                                    'image/jpeg',
                                    'image/pjpeg',
                                    'image/png');
      protected $_renamed = false;
      protected $_filenames = array();
      public function __construct($path) {
        if (!is_dir($path) || !is_writable($path)) {
          throw new Exception("$path must be a valid, writable directory.");
        $this->_destination = $path;
        $this->_uploaded = $_FILES;
      public function getMaxSize() {
        return number_format($this->_max/100000, 1) . 'kB';
      public function setMaxSize($num) {
        if (!is_numeric($num)) {
          throw new Exception("Maximum size must be a number.");
        $this->_max = (int) $num;
      public function move($overwrite = false) {
        $field = current($this->_uploaded);
        if (is_array($field['name'])) {
          foreach ($field['name'] as $number => $filename) {
            // process multiple upload
            $this->_renamed = false;
            $this->processFile($filename, $field['error'][$number], $field['size'][$number], $field['type'][$number], $field['tmp_name'][$number], $overwrite);   
        } else {
          $this->processFile($field['name'], $field['error'], $field['size'], $field['type'], $field['tmp_name'], $overwrite);
      public function getMessages() {
        return $this->_messages;
      protected function checkError($filename, $error) {
        switch ($error) {
          case 0:
            return true;
          case 1:
          case 2:
            $this->_messages[] = "$filename exceeds maximum size: " . $this->getMaxSize();
            return true;
          case 3:
            $this->_messages[] = "Error uploading $filename. Please try again.";
            return false;
          case 4:
            $this->_messages[] = 'No file selected.';
            return false;
          default:
            $this->_messages[] = "System error uploading $filename. Contact webmaster.";
            return false;
      protected function checkSize($filename, $size) {
        if ($size == 0) {
          return false;
        } elseif ($size > $this->_max) {
          $this->_messages[] = "$filename exceeds maximum size: " . $this->getMaxSize();
          return false;
        } else {
          return true;
      protected function checkType($filename, $type) {
        if (empty($type)) {
          return false;
        } elseif (!in_array($type, $this->_permitted)) {
          $this->_messages[] = "$filename is not a permitted type of file.";
          return false;
        } else {
          return true;
      public function addPermittedTypes($types) {
        $types = (array) $types;
        $this->isValidMime($types);
        $this->_permitted = array_merge($this->_permitted, $types);
      protected function isValidMime($types) {
        $alsoValid = array('image/tiff',
                           'application/pdf',
                           'text/plain',
                           'text/rtf');
          $valid = array_merge($this->_permitted, $alsoValid);
        foreach ($types as $type) {
          if (!in_array($type, $valid)) {
            throw new Exception("$type is not a permitted MIME type");
      protected function checkName($name, $overwrite) {
        $nospaces = str_replace(' ', '_', $name);
        if ($nospaces != $name) {
          $this->_renamed = true;
        if (!$overwrite) {
          $existing = scandir($this->_destination);
          if (in_array($nospaces, $existing)) {
            $dot = strrpos($nospaces, '.');
            if ($dot) {
              $base = substr($nospaces, 0, $dot);
              $extension = substr($nospaces, $dot);
            } else {
              $base = $nospaces;
              $extension = '';
            $i = 1;
            do {
              $nospaces = $base . '_' . $i++ . $extension;
            } while (in_array($nospaces, $existing));
            $this->_renamed = true;
        return $nospaces;
      protected function processFile($filename, $error, $size, $type, $tmp_name, $overwrite) {
        $OK = $this->checkError($filename, $error);
        if ($OK) {
          $sizeOK = $this->checkSize($filename, $size);
          $typeOK = $this->checkType($filename, $type);
          if ($sizeOK && $typeOK) {
            $name = $this->checkName($filename, $overwrite);
            $success = move_uploaded_file($tmp_name, $this->_destination . $name);
            if ($success) {
                $message = "$filename uploaded successfully";
                if ($this->_renamed) {
                  $message .= " and renamed $name";
                $this->_messages[] = $message;
            } else {
              $this->_messages[] = "Could not upload $filename";
      public getFilenames() {
        return $this->_filenames;
    ?>
    The error is Parse error: syntax error, unexpected T_STRING, expecting T_VARIABLE.   
    I have not worked with oop before and have only very briefly looked at the principle was on my foundation degree.

  • How can I create a vector path boundary around an image?

    I have enclosed a screenshot of an image created in Photoshop CS4 with a wacom. It shows a grey boundary stroke around the entire image which was created with edit/stroke, then color and width of stroke selected.
    What I want to do is to bring this image into Illustrator CS4 and create a vector path boundary aroun d the image in the same way as the stroke boundary in Photoshop. But I dont know how to do thatx except by doing it manually with the pen tool.
    Does anyone know if it is possible to create a vector path around the image in a similar way that I created the stroke line around the image in Photoshop?
    I need the vector path to make a cutting line for a laser cutter, which works with vector files.
    Thanks for any advice about this.

    Not only should you draw the cut path deliberately with the Pen Tool, but that entire illustration should have been drawn as vector paths to begin with. In fact, if it were me, I would do that now anyway. It's nicely done, but illustrations like that are much more versatile and valuable as a vector drawings, because they are infinitely scaleable withou degradation of sharpness.
    Had it been drawn as vector paths, generating the outset cut line could be semi-automated by merging a copy of all the paths and then just outsetting the resulting path.
    Vector illustrations like that, consisting of just a few colored fills and strokes, can be entirely cut and assembled from sign vinyl at any scale, rather than resorting to merely printing the artwork and then cutting around it.
    Edits (recoloring, reshaping) can be easily made to vector paths without degradation, because each path is a separate object.
    And whenever you do need a raster image, a raster image suitable for any purpose can be exported from a vector drawing at any time. Each such rasterization is pristine, because no re-rasterization is involved.
    Not meaning to preach you a sermon; it just seems so many visitors here who have only used raster imaging don't even understand the reasons why vector drawing exists. This kind of graphic begs to be created as vector paths, and is also the very kind which would be ideal for vector-drawing beginners to start with. So it's just a good case-in-point.
    JET

  • Encoding error occurs using parameter "default path for scripts"

    Hello,
    assume we have a script "/home/artur/tymczasowe/test.sql". I can execute it using SQL Developer by:
    @/home/artur/tymczasowe/test.sql
    Everything works as expected.
    Then I set parameter "Tools - Preferences - Database - Worksheet - Default path to look for script" to "/home/artur/tymczasowe" and executed:
    @test.sql
    This time national characters has been lost, everyone replaced with "�".
    The script content:
    --create table a(enc varchar2(8), data varchar2(255));
    delete from a;
    insert into a(enc, data) values ('cp1250', 'zażółć gęślą jaźń');
    commit;
    Operating system is Debian Squeeze amd64, Developer version is 3.1.07, Build MAIN-07.42. This problem occurs using previous, 3.0.* versions too.

    Hi user633485
    Logged bug:
    Bug 13779254 - ENCODING DEFAULTS TO NATIVE RATHER THAN IDE SETTING USING DEFAULT PATH
    -Turloch
    SQLDeveloper Team

  • Does SQL Developer support a default Path to SQL scripts

    Just started using SQL Developer.
    In the past, I created shortcuts on my PC desktop to run SQLPLUS to the different
    instances as follows:
    1. Create a shortcut to PLUS80W.exe
    2. Set the property "Start in" to a directory where the SQL scripts are located.
    3. Add the login/password@instance to the end of the shortcut.
    In this way, ypu only needed to click on the shortcut to log into SQLPLUS and run your
    scripts via @script.sql etc.
    Can you setup a default path to SQL scripts SQL Developer so that it can locate
    the scripts on your PC ?

    I did notice in version 13.43 that if you close SQL Developer with a SQL script open in the SQL Worksheet, when you startup SQL Developer the next time it automatically opens the file in the SQL Worksheet with no database connection. It also sets the default path for SQL scripts to be the directory where your open SQL file resides. If you right-click in the SQL Workshop and then click on "Open File" the directory defaults to the directory of the SQL file that is open.
    Mike

  • AppV client default paths

    I want to know if i can publish a package that was created in the sequencer to another path then the default path on the APPV client machine defined in the registry PackageInstallationRoot.
    which by default goes to the hidden folder "c:\ProgramData\APPV\".
    I know I can change the path in the registry, but I want to know if there is a way I can create a package that when I add and publish on
    the client machine it deploys to a path that I define instead of the default path defined in the client registry.

    You mean it can't find itself because the file DIR has the hidden attribute?  Haven't seen an app do that before.
    I have bad news this is about the best I can come up with.  Let me know if I'm not clear on anything.
    Is the app writing its location to a registry key or ini file that you can manipulate?
    What would happen if you put C:\Programdata into your package?  Wonder if it would read the attributes differently. 
    If the exe is evaluating its own location to determine where it is, you may be short on options....this is the best I can come up with:
    Copy the exe out of the bubble into the real file system, essentially treating it the same way you would with a locally installed IE.  The App-V shortcut will turn into C:\Program Files\12345\abcde.exe /appvve:pGUID_vGUID (for example).  We had to
    do this with an application and it did work pretty well.  We used the add scripting event to create the needed dir structure, copy the exe, and permission if needed. 
    Outside of that maybe you could get a shim to trick the app into believing it is in the 'traditionally' installed path, ie  C:\Program Files\12345\?

  • How to insert a default value into MS server in java - help please

    hi
    suppose if i have a table and one of the column has a default value when the table was created. how can i insert the default value into this column? assuming that the column is the second column and i can't specify the column name when inserting. thanks.

    thanks for ur response, so if i have insert statement as follow
    insert into someTable values (1,'val1', 'val2', 'val3', 'val4')
    and column 3 has default value = DEFAULT
    then, to insert default value, my insert statement will look like this
    insert into someTable values (1,'val1', 'val3', 'val4')
    but the number of values will not match the number of columns.

  • How do I turn a list of files and paths into this format using AS?

    Hi everyone,
    I'm a complete novice with Applescript and I need some help to script turning a list of files from the Finder into a specific format in a text doc, so I can save as CSV and import into another app (Anki, for learning language).
    Here's an example list of files:
    I can get Automator to spit out the files names and paths into a text file, but I think I need Applescript to turn the result into this:
    <img src="12-1.jpg">;[sound:12-1.caf];;
    <img src="12-2.jpg">;[sound:12-2.caf];;
    <img src="12-3.jpg">;[sound:12-3.caf];;
    <img src="12-4.jpg">;[sound:12-4.caf];;
    Any help would be appreciated.

    This processes the JPG files, and then assumes that the CAF files are in the flle structure you provided.
    Select files in the Image Folder:
    The Run Shell Script [pass input as arguments] is:
    for f in "$@"
    do
         caf="$f"
         caf=${caf/Images/Audio}
         caf=${caf%.*}.caf
         echo \<img src=\""$f"\"\>\;\;[sound:$caf\]\;\;
    done

  • What's the fastest way to create a clipping path?

    In CS3 & 4 I've created a bazillion clipping paths via pen tool and mouse. I've also tried using the various selection tools to create selections, then turning those selections into paths and modifying the path. I've roughed in paths then zoomed way up to fine tune them.
    Is there any plug-in or other slick method to create clipping paths real quickly? Maybe a Wacom pen would work quicker than a mouse? I haven't tried that. I've tried everything else I can think of.
    I happened to notice there are online services that charge like $2.00 to create a clipping path for you. So that either has to be from slave labor or someone has figured out a real fast way to do it.
    I'm sorry to repeat a question if it's been answered before.  I searched for clipping paths in the Photoshop forum and Adobe returned 0 results.

    A Wacom tablet is a must. If you are doing lots of clipping paths, avoid carpel-tunnel, and get the work done easier and faster using the Wacom. I've tried all the sizes and I use a 4x5 because it's all the real estate you need, even on 30" monitors. Other than that, there is no software that thinks like a human can in making discretionary choices. Just get the Wacom and roll. You'll have that pen tool motating at full throttle and even make the labor enjoyable.
    Be sure to take your customary 20 minute ergonomic breaks to let your eyes focus and +20 feet away.
    Best,
    Ken

  • How to create a clipping path in PE12

    I work in Photoshop but am helping a client who has only Elements 12, which I know nothing about other than what looks like PS features.
    We want to create a clipping PATH around part of a photo and save the photo as a JPG so that type wraps around it in our layout program. I can do this in PS CC, but this response (Re: Trying to create a Clipping Path for a Photo In PE10. How is it done?) says PE can save only to PSD or TIF. I have a jpg photo with a clipping path that works fine, but can't get PE to save the clipping path with the jpg.
    Thanks.

    If you don't mind telling us, which layout program are you using?
    Yes, by default creating a Clipping Path in photoshop elements does not exist.
    That's why you would need to create/record an action using photoshop cc and then use the action in photoshop elements using Window>Actions
    Something like this:

  • Create folder / file icon with automator

    Guys,
    I know very little about using Automator.
    I was wondering if there is a way to create folder / file icons using automator to take an image of the contents of the file (maybe an image file / autodesk or sketchup drawing etc). The process would be similar to the way image files such as jpeg etc display the image as the file icon automatically.
    Hope this makes sense.
    Cheers....Scotty

    Have you considered using rsync?  This has the benefit of only copying only changed files on subsequent backups.
    Here's rsync wrapped in Applescript:
    set SrcDir to (choose folder with prompt "Please select Source directory")
    set DestDir to (choose folder with prompt "Please select Destination directory")
    set SrcDir to text items 1 thru -2 of POSIX path of SrcDir
    do shell script "/usr/bin/rsync -aHE --delete --exclude=\"*.mpg\" " & space & SrcDir & space & POSIX path of DestDir
    For a list of rsync options, in Terminal, enter: man rsync.

  • Has anyone else noticed that on CC the pentool does not allow you to create an open path? When I try to make two open paths(eg; two separate lines), the pentool connects them automatically. Also it does not automatically close a path. This is both a probl

    This is a big headache having the pentool respond this way. Does anyone else have this problem? I have also installed CC 2014 on my home computer and have the same problem. so it seems to be a problem with the program.

    Hi Doug,
    I'm sure I did not notice a difference in Esc key behavior simply because I have never tried to use the Esc key to stop the Pen Tool from picking up the current path.
    I just tested with all these versions of Photoshop:  6.0, CS2, CS3, CS4, CS5, CS6, CC 14.x, and CC (2014) on my PC workstation running Windows 8.1.
    Observations:
    Photoshop versions 6.0, CS5, and CS6 DO terminate the creation of the current path at the current point upon pressing the Esc key. However, Photoshop versions CS2, CS3, CS4, CC 14.x, and CC (2014). do not terminate the creation of the path upon pressing Esc, and will continue the path with another pen click.  Photoshop CC 14.x and CC (2014) may make it SEEM like the path creation is terminated because they hide the points, but the next click continues the path and causes all the points to reappear.
    In every case holding the control key down (to temporarily choose the Direct Selection Tool) and clicking off the current path terminates the creation with an open path and allows the creation of another separate path.
    No version closes the path (made the path into a closed shape) upon pressing Esc.  The only way I know to close a path is to bring the cursor back to the starting point, watch for a little o to appear next to the cursor, then click the mouse.
    With Photoshop 6.0, CS2, CS3, CS4, and CS5 the response of the Pen Tool was instantaneous.  There was a definite slowdown / sluggishness in Photoshop CS6 and CC 14.x, which is now corrected in Photoshop CC (2014), which is again instantly responsive.
    The only other thing I can think of regarding closing a path might be that when using the Pen Tool there are choices in the Options Bar about whether you're creating a shape or a path.  Are you ensuring you have that set the same way as you have had it set in the past?
    -Noel

Maybe you are looking for

  • How do I take a snapshot picture of my screen

    , How do I take a snapshot picture of my screen?

  • Problem in BDC for PA41

    Hello, I have written BDC for pa41 ..it is not taking the second employee after first is updated. after first employee updation i need to press back button and then press "NO" to exit batch input. then it goes to next employee and same process. while

  • Still need help with changing hostname on Solaris 10

    Hello. I have some difficulties with changing host name of my computer. It is DHCP Client. AS I understand there are the following steps that I have to do: 1. Edit the /etc/default/dhcpagent file and change the line that reads the following: #REQUEST

  • Payment processing from PaySafe

    Hi, i've purchase about 2-3 days ago 10 euro from paysafe. The first time worked, But this time.... In my skype contact i have 5 same warnings that they say : We're processing your order. The money they have been transferred form paysafe to skype tha

  • Creating fake depth in a photo

    I have a scene I need for a project, the problem is for the setting in question I've been unable to find any suitible footage on any of the stock sites, I have however found some photos that are ideal only, their not video's So I thought maybe I coul