Finder counts files incorrectly

In finder, when I get info on a folder of files it indicates one too many files. If I count them, in this case there are 26 files,
finder info tells me there are 27 in the folder. This is a problem when I verify or manage photos for a client.
How do I fix this?

when I paste it in and run I get an apple script error.
tell application "Finder" to quit
if (do shell script "defaults read com.apple.finder AppleShowAllFiles") is "1" then
do shell script "defaults write com.apple.finder AppleShowAllFiles 0"
else
do shell script "defaults write com.apple.finder AppleShowAllFiles 1"
end if
delay 2
tell application "Finder" to run

Similar Messages

  • Trying to open iTunes I got a error message of msvcr80.dll can not be found. I thought that it was an iTunes program problem. I tried reloading iTunes and then got an error message of a program is trying to acces a library file incorrectly. How can I reso

    When trying to open ITunes, I got an error message of msvcr80.dll can not be found.
    Assuming that it was an iTunes file, I reinstalled iTunes.
    Trying to open again, I got an error message of an appication is trying to open a library file incorrectly.
    How do I resolve this problem.
    Neither my PC with Vista nor my my laptop with windows 7 will work?
    Thanks

    Hello Msvcr80.dll,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/TS5376
    Check for .dll files
    Go to C:\Program Files (x86)\iTunes and C:\Program Files\iTunes and look for .dll files.
    If you find QTMovie.DLL, or any other .dll files, move them to the desktop.
    Reboot your computer.
    Note: Depending on your operating system, you may only have one of the listed paths.
    Uninstall and reinstall iTunes
    Uninstall iTunes and all of its related components.
    Reboot your computer. If you can't uninstall a piece of Apple software, try using the Microsoft Program Install and Uninstall Utility.
    Re-download and reinstall iTunes 11.1.4.
    Best of luck,
    Mario

  • I can't get my music to play in my itunes. It comes with a exclamation mark next to the song numbers and says that the original songs can't be played cause cant find the file. How do I get the songs back? (I found the files)

    I can't get my music to play in my itunes. It comes with a exclamation mark next to the song numbers and says that the original songs can't be played cause cant find the file. How do I get the songs back? (I found the files

    You get exclamation marks or dead tracks because  iTunes can’t find the file. This can happen for a number of reasons:
    The song file or a folder in its path was renamed
    The song file or the folder it is in has been moved
    The song file has been deleted
    The device containing the song files e.g. external drive is not accessible or the drive letter has changed.
    If you use an external drive, a change in drive letter is a common cause and you need to change it back.
    AS a way of working out what has happened, right click on a track and select the summary tab (you will have to go past an error message). The summary tab will tell you where iTunes thinks the track is located. How does that compare with where the track actually is?
    The xml library file is not used by iTunes, it is created to allow other programs to access the library. You can recreate the iTl file from the xml file, but there is no point if the location of the files is wrong.
    There is a simple way of getting you music back in iTunes, but it loses all playlists counts and rating. To do this drag iTunes library.itl and iTunes Library.xml to your desktop. Then open iTunes and an empty library is created. Add you iTunes Media folder to it.
    If you can't work out what went wrong and how to fix it, you may have to do this.

  • Database Access in Java (Count field incorrect)

    Was given a stock tracking application to be edited for use as a Student/Admin login application which accesses a database and adds/deletes/edits student information. When I try to login, I get the following error: [Microsoft][OBDC Microsoft Access Driver]Count Field Incorrect
    The driver was set up in the Admin tools in Windows XP.
    The columns exist in the database.
    //makeDB.java
      import java.sql.*;
      import java.io.*;
      public class MakeDB
        public static void main(String[] args) throws Exception
          Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              String url = "jdbc:odbc:saad";
              Connection con = DriverManager.getConnection(url);
             Statement stmt = con.createStatement();
              // The following code deletes each index and table, if they exist.
              // If they do not exist, a message is displayed and execution continues.
              System.out.println("Dropping indexes & tables ...");
            try
                   stmt.executeUpdate("DROP INDEX PK_StudentUserBridge ON StudentUserBridge");
             catch (Exception e)
                   System.out.println("Could not drop primary key on saad table: "
                                     + e.getMessage());
            try
                     stmt.executeUpdate("DROP TABLE Student");
             catch (Exception e)
                   System.out.println("Could not drop Student table: "
                                     + e.getMessage());
            try
                     stmt.executeUpdate("DROP TABLE Users");
             catch (Exception e)
                   System.out.println("Could not drop Users table: "
                                     + e.getMessage());
            try
                     stmt.executeUpdate("DROP TABLE StudentUserBridge");
             catch (Exception e)
                   System.out.println("Could not drop StudentUserBridge table: "
                                     + e.getMessage());
              ///////// Create the database tables /////////////
              System.out.println("\nCreating tables ............");
              // Create Stocks table with primary key index
            try
                   System.out.println("Creating Student table with primary key index...");
                   stmt.executeUpdate("CREATE TABLE Student ("
                                     +"IDNumber TEXT(8) NOT NULL "
                                     +"CONSTRAINT PK_Student PRIMARY KEY, "
                                     +"FirstName TEXT(50), "
                                     +"LastName TEXT(50)"
                                     +")");
             catch (Exception e)
                   System.out.println("Exception creating Student table: "
                                     + e.getMessage());
              // Create Users table with primary key index
            try
                   System.out.println("Creating Users table with primary key index...");
                   stmt.executeUpdate("CREATE TABLE Users ("
                                     +"userID TEXT(20) NOT NULL "
                                    +"CONSTRAINT PK_Users PRIMARY KEY, "
                                    +"FirstName TEXT(30) NOT NULL, "
                                    +"LastName TEXT(30) NOT NULL, "
                                         +"pswd LONGBINARY, "
                                    +"email TEXT(30) NOT NULL, "
                                         +"admin BIT"
                                         +")");
             catch (Exception e)
                   System.out.println("Exception creating Users table: "
                                     + e.getMessage());
              // Create UserStocks table with foreign keys to Users and Stocks tables
            try
                   System.out.println("Creating StudentUserBridge table ...");
                   stmt.executeUpdate("CREATE TABLE StudentUserBridge ("
                                     +"userID TEXT(20) "
                                       +"CONSTRAINT FK1_StudentUserBridge REFERENCES Users (userID), "
                                          +"IDNumber TEXT(8), "
                                       +"CONSTRAINT FK2_StudentUserBridge FOREIGN KEY (IDNumber) "
                                       +"REFERENCES Student (IDNumber)"
                                       +")");
             catch (Exception e)
                   System.out.println("Exception creating StudentUserBridge table: "
                                     + e.getMessage());
              // Create UserStocks table primary key index
            try
                   System.out.println("Creating StudentUserBridge table primary key index...");
                   stmt.executeUpdate("CREATE UNIQUE INDEX PK_StudentUserBridge "
                                        +"ON StudentUserBridge (userID, IDNumber) "
                                        +"WITH PRIMARY DISALLOW NULL");
             catch (Exception e)
                   System.out.println("Exception creating StudentUserBridge index: "
                                     + e.getMessage());
              // Create one administrative user with password as initial data
              String userID = "admin01";
              String FirstName = "Default";
              String LastName = "Admin";
              String initialPswd = "admin01";
              String email = "[email protected]";
              Password pswd = new Password(initialPswd);
              boolean admin = true;
            PreparedStatement pStmt =
                       con.prepareStatement("INSERT INTO Users VALUES (?,?,?,?,?,?)");
            try
                 pStmt.setString(1, userID);
                  pStmt.setString(2, FirstName);
                  pStmt.setString(3, LastName);
                pStmt.setBytes(4, serializeObj(pswd));
                pStmt.setString(5, email);
                  pStmt.setBoolean(6, admin);
                  pStmt.executeUpdate();
              catch (Exception e)
                   System.out.println("Exception inserting user: "
                                     + e.getMessage());
            pStmt.close();
              // Read and display all User data in the database.
            ResultSet rs = stmt.executeQuery("SELECT * FROM Users");
            System.out.println("Database created.\n");
            System.out.println("Displaying data from database...\n");
            System.out.println("Users table contains:");
            Password pswdFromDB;
            byte[] buf = null;
            while(rs.next())
                   System.out.println("Logon ID         = "
                                     + rs.getString("userID"));
                 System.out.println("Last name        = "
                                   + rs.getString("FirstName"));
                 System.out.println("First name       = "+rs.getString("LastName"));
                 System.out.println("E-mail           = "+rs.getString("email"));
                 System.out.println("Administrative   = "+rs.getBoolean("admin"));
                 System.out.println("Initial password = "+initialPswd);
            // Do NOT use with JDK 1.2.2 using JDBC-ODBC bridge as
            // SQL NULL data value is not handled correctly.
                buf = rs.getBytes("pswd");
                if (buf != null)
                      System.out.println("Password Object  = "
                                      + (pswdFromDB=(Password)deserializeObj(buf)));
                      System.out.println("  AutoExpires    = "+ pswdFromDB.getAutoExpires());
                      System.out.println("  Expiring now   = "+ pswdFromDB.isExpiring());
                      System.out.println("  Remaining uses = "
                                        + pswdFromDB.getRemainingUses()+"\n");
                  else
                      System.out.println("Password Object  = NULL!");
            rs = stmt.executeQuery("SELECT * FROM Student");
            if(!rs.next())
                 System.out.println("Student table contains no records.");
              else
                 System.out.println("Student table still contains records!");
            rs = stmt.executeQuery("SELECT * FROM StudentUserBridge");
            if(!rs.next())
                 System.out.println("StudentUserBridge table contains no records.");
              else
                 System.out.println("StudentUserBridge table still contains records!");
             stmt.close(); // closing Statement also closes ResultSet
        } // end of main()
         // Method to write object to byte array and then insert into prepared statement
        public static byte[] serializeObj(Object obj)
                                  throws IOException
              ByteArrayOutputStream baOStream = new ByteArrayOutputStream();
            ObjectOutputStream objOStream = new ObjectOutputStream(baOStream);
            objOStream.writeObject(obj); // object must be Serializable
            objOStream.flush();
            objOStream.close();
            return baOStream.toByteArray(); // returns stream as byte array
         // Method to read bytes from result set into a byte array and then
         // create an input stream and read the data into an object
        public static Object deserializeObj(byte[] buf)
                                      throws IOException, ClassNotFoundException
             Object obj = null;
            if (buf != null)
              ObjectInputStream objIStream =
                new ObjectInputStream(new ByteArrayInputStream(buf));
              obj = objIStream.readObject(); // throws IOException, ClassNotFoundException
            return obj;
      } // end of class
    //STLogon.java
    import javax.swing.*;
    import javax.swing.border.TitledBorder;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import java.io.*;
    import java.sql.*;
    public class STLogon extends JFrame implements ActionListener, Activator
        StudentDB db;
        User user = null;
        String userID;
        String password;
        JTextField userIDField;
        JPasswordField passwordField;
        JButton jbtLogon;
        public STLogon()
            super("Stock Tracker"); // call super (JFrame) constructor
              int width = 300;
              int height = 100;
            try{
                 db = new StudentDB();
            catch(ClassNotFoundException ex){
                        JOptionPane.showMessageDialog(this,
                    ex.getMessage(),
                    "Class not found exception creating database object",
                    JOptionPane.ERROR_MESSAGE);
                           System.exit(0);
            catch(SQLException ex){
                        JOptionPane.showMessageDialog(this,
                    ex.getMessage(),
                    "SQL exception creating database object",
                    JOptionPane.ERROR_MESSAGE);
                           System.exit(0);
              // define GUI components
            JLabel label1 = new JLabel("User ID: ");
            userIDField = new JTextField(20);
            JLabel label2 = new JLabel("Password:   ");
            passwordField = new JPasswordField(20);
            passwordField.setEchoChar('*');
            jbtLogon = new JButton("Log on");
              // set up GUI
            JPanel userPanel= new JPanel(new BorderLayout());
            userPanel.add(label1,BorderLayout.CENTER);
            userPanel.add(userIDField,BorderLayout.EAST);
            JPanel pswdPanel= new JPanel(new BorderLayout());
            pswdPanel.add(label2,BorderLayout.CENTER);
            pswdPanel.add(passwordField,BorderLayout.EAST);
            JPanel buttonPanel= new JPanel(new FlowLayout());
            buttonPanel.add(jbtLogon);
            JPanel contentPanel= new JPanel(new BorderLayout());
            contentPanel.add(userPanel, BorderLayout.NORTH);
            contentPanel.add(pswdPanel, BorderLayout.CENTER);
            contentPanel.add(buttonPanel, BorderLayout.SOUTH);
             contentPanel.setBorder(new TitledBorder("Log on"));
            setContentPane(contentPanel);
            // add listeners
            jbtLogon.addActionListener(this);
            addWindowListener(new WindowAdapter() {
                public void windowClosing(WindowEvent e)
                                       try {db.close();
                                    catch(Exception ex)
                                    System.exit(0);
              // Enable Enter key for each JButton
              InputMap map;
              map = jbtLogon.getInputMap();
              if (map != null){
                   map.put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,0,false), "pressed");
                   map.put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,0,true), "released");
            pack();
              if( width < getWidth())                    // prevent setting width too small
                 width = getWidth();
              if(height < getHeight())               // prevent setting height too small
                   height = getHeight();
              centerOnScreen(width, height);
           public void centerOnScreen(int width, int height)
             int top, left, x, y;
             // Get the screen dimension
             Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
             // Determine the location for the top left corner of the frame
             x = (screenSize.width - width)/2;
             y = (screenSize.height - height)/2;
             left = (x < 0) ? 0 : x;
             top = (y < 0) ? 0 : y;
             // Set the frame to the specified location & size
           this.setBounds(left, top, width, height);
         private boolean validUser(String userID,String password)
                        throws PasswordException,SQLException,IOException,ClassNotFoundException
              boolean userOK = false;
              user = db.getUser(userID); // get user object from DB for this ID
              if(user != null)
                   user.validate(password); // throws PasswordException
                   userOK = true;
                   if(user.pswdAutoExpires())     // if tracking uses
                        db.updUser(user);          // update DB for this use
             return userOK;
        private void doStockActivity()throws PasswordException,SQLException,
                                                      IOException,ClassNotFoundException
            StockTracker f = new StockTracker(user,this,db);
            f.pack();
            this.setVisible(false);
            f.setVisible(true);
        public void activate()
            this.setVisible(true);
            userIDField.setText("");
            userIDField.requestFocus();
            user = null;
        public void actionPerformed(ActionEvent e)
              try
                   userID = userIDField.getText();
                if(userID.equals(""))
                           JOptionPane.showMessageDialog(this,
                            "Please enter a valid user ID.",
                           "Missing User ID.",
                           JOptionPane.ERROR_MESSAGE);
                       userIDField.requestFocus();
                   else
                        password = new String(passwordField.getPassword());
                     if(password.equals(""))
                                JOptionPane.showMessageDialog(this,
                                 "Please enter a valid password.",
                                "Missing Password.",
                                JOptionPane.ERROR_MESSAGE);
                            passwordField.requestFocus();
                        else
                             try
                                  // See if userID exists and validate password
                                  if(validUser(userID,password))
                                   if(user.pswdIsExpiring())
                                              JOptionPane.showMessageDialog(this,
                                                             user.getUserID()+" logon successful; "
                                                +user.getPswdUses()+" use(s) remaining.");
                                    if(e.getSource() == jbtLogon)
                                               doStockActivity();
                               else
                                    JOptionPane.showMessageDialog(this, "Invalid user.");
                             catch (PasswordExpiredException ex)
                                  JPasswordField pf1 = new JPasswordField();
                                  JPasswordField pf2 = new JPasswordField();
                                  Object[] message1 = new Object[]
                                            {"Password has expired. Please enter a new password.", pf1};
                                  Object[] options = new String[] {"OK", "Cancel"};
                                  JOptionPane op1 = new JOptionPane(message1,
                                                                     JOptionPane.WARNING_MESSAGE,
                                                              JOptionPane.OK_CANCEL_OPTION, null, options);
                                  JDialog dialog1 = op1.createDialog(null, "Change Password");
                                  dialog1.show();
                                  if(op1.getValue() != null && options[0].equals(op1.getValue()))
                                       String pswd1 = new String(pf1.getPassword());
                                       if(pswd1 != null)
                                           Object[] message2 = new Object[]
                                                               {"Please verify new password.", pf2};
                                            JOptionPane op2 = new JOptionPane(message2,
                                                                               JOptionPane.WARNING_MESSAGE,
                                                                       JOptionPane.OK_CANCEL_OPTION,
                                                                       null, options);
                                            JDialog dialog2 = op2.createDialog(null, "Verify Password");
                                            dialog2.show();
                                            if(op2.getValue() != null && options[0].equals(op2.getValue()))
                                                 String pswd2 = new String(pf2.getPassword());
                                                 if(pswd2 != null)
                                                      if(pswd1.equals(pswd2))
                                                        user.changePassword(password, pswd1);
                                                           db.updUser(user);
                                                           doStockActivity();
                                                      else
                                                           JOptionPane.showMessageDialog(this,
                                                          "Both passwords are not identical.",
                                                         "Password not changed",
                                                         JOptionPane.ERROR_MESSAGE);
                 userIDField.setText("");
                passwordField.setText("");
                userIDField.requestFocus();
            }// end of try
            catch (PasswordUsedException ex)
                JOptionPane.showMessageDialog(this,
                    ex.getMessage(),
                    "Password Previously Used. Try again.",
                    JOptionPane.ERROR_MESSAGE);
            catch (PasswordSizeException ex)
                JOptionPane.showMessageDialog(this,
                    ex.getMessage(),
                    "Invalid password size. Try again.",
                    JOptionPane.ERROR_MESSAGE);
            catch (PasswordInvalidFormatException ex)
                if(ex.getCount() > 2) // allows only 3 tries, then exits program
                     System.exit(0);
                else
                     JOptionPane.showMessageDialog(this,ex.getMessage()+", count:"+ex.getCount(),
                                                        "Invalid password format. Try again.",
                                                              JOptionPane.ERROR_MESSAGE);
            catch (PasswordInvalidException ex)
                if(ex.getCount() > 2) // allows only 3 tries, then exits program
                     System.exit(0);
                else
                     JOptionPane.showMessageDialog(this,ex.getMessage()+", count:"+ex.getCount(),
                                                        "Invalid password. Try again.",
                                                              JOptionPane.ERROR_MESSAGE);
            catch (PasswordException ex)
                JOptionPane.showMessageDialog(this,
                    ex.getMessage(),
                    "PasswordException.",
                    JOptionPane.ERROR_MESSAGE);
            catch (IOException ex)
                JOptionPane.showMessageDialog(this,
                    ex.getMessage(),
                    "IOException.",
                    JOptionPane.ERROR_MESSAGE);
            catch (SQLException ex)
                JOptionPane.showMessageDialog(this,
                    ex.getMessage(),
                    "SQLException.",
                    JOptionPane.ERROR_MESSAGE);
            catch (ClassNotFoundException ex)
                JOptionPane.showMessageDialog(this,
                    ex.getMessage(),
                    "ClassNotFoundException.",
                    JOptionPane.ERROR_MESSAGE);
        public static void main(String[] argv)
              final STLogon f = new STLogon();
              f.setVisible(true);
    //StudentDB.java
    import java.io.*;
    import java.sql.*;
    import java.util.*;
    public class StudentDB
         private Connection con = null;
         // Constructor; makes database connection
        public StudentDB() throws ClassNotFoundException,SQLException
              if(con == null)
                   String url = "jdbc:odbc:saad";
                 try
                      Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                   catch(ClassNotFoundException ex)
                        throw new ClassNotFoundException(ex.getMessage() +
                                  "\nCannot locate sun.jdbc.odbc.JdbcOdbcDriver");
                 try
                        con = DriverManager.getConnection(url);
                   catch(SQLException ex)
                        throw new SQLException(ex.getMessage()+
                                  "\nCannot open database connection for "+url);
         // Close makes database connection; null reference to connection
         public void close() throws SQLException,IOException,ClassNotFoundException
              con.close();
               con = null;
         // Method to serialize object to byte array
        private byte[] serializeObj(Object obj) throws IOException
              ByteArrayOutputStream baOStream = new ByteArrayOutputStream();
            ObjectOutputStream objOStream = new ObjectOutputStream(baOStream);
            objOStream.writeObject(obj); // object must be Serializable
            objOStream.flush();
            objOStream.close();
            return baOStream.toByteArray(); // returns stream as byte array
         // Method to deserialize bytes from a byte array into an object
        private Object deserializeObj(byte[] buf)
                             throws IOException, ClassNotFoundException
             Object obj = null;
            if (buf != null)
                   ObjectInputStream objIStream =
                      new ObjectInputStream(new ByteArrayInputStream(buf));
                obj = objIStream.readObject(); //IOException, ClassNotFoundException
            return obj;
         // Methods for adding a record to a table
        // add to the Student Table
         public void addStudent(String IDNumber, String FirstName, String LastName)
                     throws SQLException, IOException, ClassNotFoundException
              Statement stmt = con.createStatement();
               stmt.executeUpdate("INSERT INTO Student VALUES ('"
                                 +IDNumber+"'"+",'"+FirstName+"'"+",'"+LastName+"')");
               stmt.close();
         // add to the Users table
         public boolean addUser(User user) throws SQLException,IOException,
                                                  ClassNotFoundException
           boolean result = false;
          String dbUserID;
          String dbLastName;
          String dbFirstName;
          Password dbPswd;
          String dbemail;
          boolean isAdmin;
          dbUserID = user.getUserID();
          if(getUser(dbUserID) == null)
                dbLastName = user.getFirstName();
                dbFirstName = user.getLastName();
              Password pswd = user.getPassword();
    //          dbemail = user.getEmail();
                isAdmin = user.isAdmin();
              PreparedStatement pStmt = con.prepareStatement(
                  "INSERT INTO Users VALUES (?,?,?,?,?,?)");
              pStmt.setString(1, dbUserID);
              pStmt.setString(2, dbFirstName);
              pStmt.setString(3, dbLastName);
              pStmt.setBytes(4, serializeObj(pswd));
    //          pStmt.setString(5, dbemail);
              pStmt.setBoolean(5, isAdmin);
              pStmt.executeUpdate();
              pStmt.close();
              result = true;
           else
                throw new IOException("User exists - cannot add.");
           return result;
         // add to the UserStocks table
         public void addStudentUserBridge(String userID, String IDNumber)
                     throws SQLException,IOException,ClassNotFoundException
              Statement stmt = con.createStatement();
               stmt.executeUpdate("INSERT INTO StudentUserBridge VALUES ('"
                                 +userID+"'"
                                 +",'"+IDNumber+"')");
               stmt.close();
         // Methods for updating a record in a table
        // updating the Users Table
         public boolean updUser(User user) throws SQLException,IOException,
                                                  ClassNotFoundException
           boolean result = false;
             String dbUserID;
          String dbLastName;
          String dbFirstName;
          Password dbPswd;
          String dbemail;
          boolean isAdmin;
          dbUserID = user.getUserID();
          if(getUser(dbUserID) != null)
                dbLastName = user.getFirstName();
                dbFirstName = user.getLastName();
              Password pswd = user.getPassword();
    //          dbemail = user.getEmail();
                isAdmin = user.isAdmin();
              PreparedStatement pStmt = con.prepareStatement("UPDATE Users SET FirstName = ?,"
                                           +" LastName = ?, pswd = ?, email = ?, admin = ? WHERE userID = ?");
              pStmt.setString(1, dbFirstName);
              pStmt.setString(2, dbLastName);
              pStmt.setBytes(3, serializeObj(pswd));
    //          pStmt.setString(4, dbemail);
              pStmt.setBoolean(4, isAdmin);
              pStmt.setString(5, dbUserID);
              pStmt.executeUpdate();
              pStmt.close();
              result = true;
           else
                throw new IOException("User does not exist - cannot update.");
           return result;
         // Methods for deleting a record from a table
        // delete a record from the Student Table
         private void delStudent(String IDNumber)
                      throws SQLException,IOException,ClassNotFoundException
              Statement stmt = con.createStatement();
               stmt.executeUpdate("DELETE FROM Student WHERE "
                                 +"IDNumber = '"+IDNumber+"'");
            stmt.close();
        // delete a record from the Users Table
         public void delUser(User user) throws SQLException,IOException,
                                                  ClassNotFoundException
               String dbUserID;
            String stockSymbol;
              Statement stmt = con.createStatement();
              try {
                   con.setAutoCommit(false);
                   dbUserID = user.getUserID();
                   if(getUser(dbUserID) != null)  // verify user exists in database
                         ResultSet rs1 = stmt.executeQuery("SELECT userID, IDNumber "
                                           +"FROM StudentUserBridge WHERE userID = '"+dbUserID+"'");
                         while(rs1.next())
                         try
                             stockSymbol = rs1.getString("IDNumber");
                                  delUserStocks(dbUserID, stockSymbol);
                            catch(SQLException ex)
                                  throw new SQLException("Deletion of user student failed: "
                                                        +ex.getMessage());
                          } // end of loop thru UserStocks
                    try
                    {  // holdings deleted, now delete user
                             stmt.executeUpdate("DELETE FROM Users WHERE "
                                           +"userID = '"+dbUserID+"'");
                       catch(SQLException ex)
                             throw new SQLException("User deletion failed: "+ex.getMessage());
                     else
                          throw new IOException("User not found in database - cannot delete.");
                   try
                      con.commit();
                    catch(SQLException ex)
                        throw new SQLException("Transaction commit failed: "+ex.getMessage());
              catch (SQLException ex)
                   try
                        con.rollback();
                   catch (SQLException sqx)
                        throw new SQLException("Transaction failed then rollback failed: "
                                              +sqx.getMessage());
                   // Transaction failed, was rolled back
                   throw new SQLException("Transaction failed; was rolled back: "
                                         +ex.getMessage());
            stmt.close();
        // delete a record from the StudentUserBridge Table
         public void delUserStocks(String userID, String stockSymbol)
                     throws SQLException,IOException,ClassNotFoundException
              Statement stmt = con.createStatement();
             ResultSet rs;
               stmt.executeUpdate("DELETE FROM StudentUserBridge WHERE "
                                 +"userID = '"+userID+"'"
                                 +"AND IDNumber = '"+stockSymbol+"'");
               rs = stmt.executeQuery("SELECT IDNumber FROM StudentUserBridge "
                                     +"WHERE IDNumber = '"+stockSymbol+"'");
                 if(!rs.next()) // no users have this stock
    //               delStock(stockSymbol);
               stmt.close();
         // Methods for listing record data from a table
         // Ordered by:
         //           methods that obtain individual field(s),
         //           methods that obtain a complete record, and
         //           methods that obtain multiple records
         // Methods to access one or more individual fields
        // get a stock description from the Stocks Table
         public String getStockDesc(String stockSymbol)
                       throws SQLException, IOException, ClassNotFoundException
              Statement stmt = con.createStatement();
                String stockDesc = null;
               ResultSet rs = stmt.executeQuery("SELECT IDNumber, name FROM Student "
                                               +"WHERE IDNumber = '"+stockSymbol+"'");
               if(rs.next())
                   stockDesc = rs.getString("IDNumber");
               rs.close();
               stmt.close();
                return stockDesc;
         // Methods to access a complete record
        // get User data from the Users Table
         public User getUser(String UserID) throws SQLException, IOException,
                                                   ClassNotFoundException
           Statement stmt = con.createStatement();
             String dbUserID;
          String dbLastName;
          String dbFirstName;
          Password dbPswd;
          String dbemail;
          boolean isAdmin;
          byte[] buf = null;
          User user = null;
          ResultSet rs = stmt.executeQuery("SELECT * FROM Users WHERE userID = '"
                                          +UserID+"'");
          if(rs.next())
                dbUserID = rs.getString("userID");
                 dbFirstName = rs.getString("FirstName");
                 dbLastName = rs.getString("LastName");
                 dbemail = rs.getString("email");
            // Do NOT use with JDK 1.2.2 using JDBC-ODBC bridge as
            // SQL NULL data value is not handled correctly.
              buf = rs.getBytes("pswd");
                 dbPswd = (Password)deserializeObj(buf);
                 isAdmin = rs.getBoolean("admin");
                user = new User(dbUserID,dbFirstName,dbLastName,dbPswd,isAdmin);
          rs.close();
          stmt.close();
           return user; // User object created for userID
         // Methods to access a list of records
        // get list of selected fields for all records from the Users Table
         public ArrayList listUsers() throws SQLException,IOException,
                                             ClassNotFoundException
          ArrayList aList = new ArrayList();
           Statement stmt = con.createStatement();
          ResultSet rs = stmt.executeQuery("SELECT userID, FirstName, LastName, admin "
                                          +"FROM Users ORDER BY userID");
          while(rs.next())
                aList.add(rs.getString("userID"));
                  aList.add(rs.getString("FirstName"));
                  aList.add(rs.getString("LastName"));
                  aList.add(new Boolean(rs.getBoolean("admin")));
          rs.close();
          stmt.close();
          return aList;
        // get all fields in all records for a given user from the Userstocks Table
         public ArrayList listUserStocks(String userID) throws SQLException,IOException,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             

    saaddani wrote:
    No information popped up in the console window before, during, or after the error was given. The program compiled and ran and therefore no error information was provided in the complier window either.
    If I am missing what you are asking then please provide instructions as to how to find this error information. You are posting the error message for the exception but not printing the stack trace.
    Far as I can tell you are printing more information with each exception (for example "Exception creating Users table") but you did not post what that was, that info would localize the problem.
    As a guess the problem is when you extract the fields via the query. You are using named values rather than indexes and you use "select *" rather than specifically naming the columns. Some databases (for example Oracle), require that using names must be in exactly the same order as the query returns them. You have no idea what that order is because you use "select *"
    Finally it would be a LOT easier if you wrote classes that did nothing but the database operations. NO GUI CODE. You then test that code to make sure it works. Once that code works then you write gui code which uses those classes. Besides making it easier to understand you are also more likely to get assistance since there is less code to look at.

  • How to Find the file in UNIX?

    Hello Team,
    I Have below list files and i have to find the file with latest date and time
    CHECK_300914_200747_xxaa_account_name_20140930195924.txt
    CHECK_300914_203213_xxaa_account_name_20140930203055.txt
    CHECK_300914_205625_xxaa_account_name_20140930200219.txt
    CHECK_300914_211345_xxaa_account_name_20140930200446.txt
    CHECK_300914_213836_xxaa_account_name_20140930200718.txt
    CHECK_300914_215928_xxaa_account_name_20140930201143.txt
    In a list of files "CHECK_300914_215928_xxaa_account_name_20140930201143.txt" is the latest file i.e. ddmmyy:300914 and hhmmss:215928
    Can you please help me to find the file in UNIX
    Thanks in Advance,

    touch CHECK_300914_215928_xxaa_account_name_20140930201143.txt
    touch CHECK_300914_211345_xxaa_account_name_20140930200446.txt
    touch CHECK_300914_205625_xxaa_account_name_20140930200219.txt
    touch CHECK_300914_203213_xxaa_account_name_20140930203055.txt
    touch CHECK_300914_200747_xxaa_account_name_20140930195924.txt
    ll
    total 0
    -rw-r--r-- 1 oracle oinstall 0 Oct  7 11:27 CHECK_300914_200747_xxaa_account_name_20140930195924.txt
    -rw-r--r-- 1 oracle oinstall 0 Oct  7 11:27 CHECK_300914_203213_xxaa_account_name_20140930203055.txt
    -rw-r--r-- 1 oracle oinstall 0 Oct  7 11:27 CHECK_300914_205625_xxaa_account_name_20140930200219.txt
    -rw-r--r-- 1 oracle oinstall 0 Oct  7 11:26 CHECK_300914_211345_xxaa_account_name_20140930200446.txt
    -rw-r--r-- 1 oracle oinstall 0 Oct  7 11:25 CHECK_300914_213836_xxaa_account_name_20140930200718.txt
    -rw-r--r-- 1 oracle oinstall 0 Oct  7 11:25 CHECK_300914_215928_xxaa_account_name_20140930201143.txt
    We are interesting in file with maximal values in "field" 2 and 3 assuming that fields are parts of filename separated with "_". I especially created (the file we are interested in) CHECK_300914_215928_xxaa_account_name_20140930201143.txt file to be the first created/modified file.
    find . -name CHECK_300914_215928_xxaa_account_name_20140930201143.txt
    ./CHECK_300914_215928_xxaa_account_name_20140930201143.txt
    will definitely work. But we should know the file name. As for topicstarter note it is not the case.
    ls -tr . | tail -1
    CHECK_300914_200747_xxaa_account_name_20140930195924.txt
    gave incorrect file.
    ls -l . | cut -d" " -f10 | sed 's/\(^CHECK_\)\([0-9]\{2\}\)\([0-9]\{2\}\)\([0-9]\{2\}\)\(.*\)/\1\4\3\2\5/' | sort -r | head -1 | sed 's/\(^CHECK_\)\([0-9]\{2\}\)\([0-9]\{2\}\)\([0-9]\{2\}\)\(.*\)/\1\4\3\2\5/'
    CHECK_300914_215928_xxaa_account_name_20140930201143.txt
    P.S.
    I much apologize for an error in back filename transformation. Correct is marked in bold red.

  • How can I resolve Exception : "Count Field Incorrect" error

    Hi all,
    I am experiencing with "Count Field incorrect" error. What's wrong with it? How can I resolve it?
    This error is occured at UPDATE function of SQL. My JSP page is to update the old record.
    Sometimes, "Update statement error" message appear. These two problems I always confusing.
    What are the possible point of these error in my Java file and JSP page? I use package import to JSP Page.
    Pls help me.
    With thanks,

    Thanks,
    Your URLs help me exectly. But after I have changed my code, the error is changed to "Too Few Parameters : Expected 35". What's wrong with it? The following is my code.
    try {                                                                                                                                                                                                                
    String DRIVER = ("sun.jdbc.odbc.JdbcOdbcDriver");               
    String URL = "jdbc:odbc:Industrial_One_DSN";
    String sql = "UPDATE BusinessRegistration " +
    "SET [Date] = ?, ISIC = ?, BizName = ?, BizAddress = ?, " +
    "OwnerName = ?, OwnerNRC = ?, Investment = ?, EstablishedYear = ?, " +
    "L_Male = ?, L_Female = ?, F_Male = ?, F_Female = ?, " +
    "OwnershipType = ?, Remarks = ?, IndustialZoneName = ?, Unit = ?, " +
    "Fuel = ?, FactoryType = ?, FactoryName = ?, Township = ? " +
    "MainProductName = ?, MainProductCountType = ?, " +
    "MainProductQuantity = ?, MainProductValue = ?, RMName = ?, " +
    "RMCountType = ?, RMQuantity = ?, RMValue = ?, EnergyName = ?, " +
    "MachinePower = ?, AmountGallon = ?, StateDiv = ?, BizSize = ?  " +
    "WHERE RegistrationID = ?";
    Class.forName(DRIVER);
    Connection con = DriverManager.getConnection(URL);
    PreparedStatement pstmt = con.prepareStatement(sql);
    int ilmale = Integer.parseInt(lmale);
    int ilfemale = Integer.parseInt(lfemale);
    int ifmale = Integer.parseInt(fmale);
    int iffemale = Integer.parseInt(ffemale);
    int impq = Integer.parseInt(mpq);
    int impv = Integer.parseInt(mpv);
    int irmq = Integer.parseInt(rmq);
    int irmv = Integer.parseInt(rmv);
    int iamountgallon = Integer.parseInt(amountgallon);
    pstmt.setString(1, date);
    pstmt.setString(2, isic);
    pstmt.setString(3, bizname);
    pstmt.setString(4, bizaddress);
    pstmt.setString(5, ownername);
    pstmt.setString(6, ownernrc);
    pstmt.setString(7, investment);
    pstmt.setString(8, eyear);
    pstmt.setInt(9, ilmale);
    pstmt.setInt(10, ilfemale);
    pstmt.setInt(11, ifmale);
    pstmt.setInt(12, iffemale);
    pstmt.setString(13, ownershiptype);
    pstmt.setString(14, remark);
    pstmt.setString(15, izn);
    pstmt.setString(16, unit);
    pstmt.setString(17, fuel);
    pstmt.setString(18, ft);
    pstmt.setString(19, fname);
    pstmt.setString(20, township);
    pstmt.setString(21, mpn);
    pstmt.setString(22, mpct);
    pstmt.setInt(23, impq);               
    pstmt.setInt(24, impv);
    pstmt.setString(25, rmname);
    pstmt.setString(26, rmct);
    pstmt.setInt(27, irmq);
    pstmt.setInt(28, irmv);
    pstmt.setString(29, ename);
    pstmt.setString(30, mpower);
    pstmt.setInt(31, iamountgallon);
    pstmt.setString(32, statediv);
    pstmt.setString(33, bizsize);
    pstmt.setInt(34, Integer.parseInt(rid));
    pstmt.executeUpdate();
    }I have got 35 fields in my db. But i wanna edit 34 fields only. I have no primary key in my table. Is't alright?
    pls keep on helping me.
    With thanks,
    WTDAHL

  • Dbms_scheduler - ORA-27301: system cannot find the file specified

    Hi,
    I'm having problems running an executable job via dbms_scheduler. The invoking code reads:
    begin
       dbms_scheduler.create_job(job_name   => "fred",
                                 job_type   => "EXECUTABLE",
                                 job_action => 'convert c:\wowtemp\test.jpg -thumbnail 155 c:\wowtemp\test.png',
                                 enabled    => TRUE
       dbms_scheduler.run_job(job_name   => "fred");
    end;and running this in SQL*plus gives me:
    ERROR at line 1:
    ORA-27370: job slave failed to launch a job of type EXECUTABLE
    ORA-27300: OS system dependent operation:accessing execution agent failed with status: 2
    ORA-27301: OS failure message: The system cannot find the file specified.
    ORA-27302: failure occurred at: sjsec 6a
    ORA-27303: additional information: The system cannot find the file specified.
    ORA-06512: at "SYS.DBMS_ISCHED", line 150
    ORA-06512: at "SYS.DBMS_SCHEDULER", line 441
    ORA-06512: at line 7This happens no matter what I put in the job_action, and despite the fact that if I paste the jpb_action into a command prompt window it executes successfully. The user has CREATE ANY JOB privilege.
    Any ideas?
    BTW, this is using XE on WinXP. (I'd post in the XP forum but it seems to have disappeared).
    Thanks,
    john

    OK, problem #1 solved:
    By default, XE on Windows sets up the scheduler service to disabled. Enable and start it, then we can move on to problem #2:
    ORA-27369: job of type EXECUTABLE failed with exit code: Incorrect function.
    See http://www.adp-gmbh.ch/blog/2005/may/27.html for a workaround using a .bat file which sadly doesn't help me. How do I pass runtime switches and parameters?
    DBMS_SCHEDULER is wonderfully powerful, but NOWHERE in the copious documentation can I find help on how to do something really SIMPLE.
    I just want to run an unscheduled, ad hoc executable job which runs an OS command with parameters, as in:
    'c:\mydir\convert.exe c:\mydir\test.jpg -thumbnail 155 c:\mydir\test.png'
    Can the job_action parameter include command-line switches and parameters or not?
    In the documentation for CREATE_JOB, 'For an executable, the action is the name of the external executable, including the full path name and any command-line arguments.', but this doesn't work for me.
    Elsewhere (Error running executable job I read:
    If the job_type is executable then the scheduler expects only the executable name and path as job_action (no command line arguments) e.g. ("c:\win32\cmd.exe")
    For commandline arguments you should be setting number_of_arguments to the required value and then doing set_job_argument_value for each argument. (e.g. 3, "/q", "/c", "script.bat").
    What's the real story?
    Any and all assistance much appreciated
    Thanks

  • VSTO 2010 Addin installed on Outlook 2007 Machine: Giving binding error - 0x80070002. The system cannot find the file specified (Fusion Log).

    Fusion log:
    The operation failed.
    Bind result: hr = 0x80070002. The system cannot find the file specified.
    Assembly manager loaded from: C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\clr.dll
    Running under executable C:\PROGRA~1\MICROS~2\Office12\OUTLOOK.EXE
    --- A detailed error log follows.
    === Pre-bind state information ===
    LOG: User = XP-2007\Administrator
    LOG: DisplayName = Blue Jeans Outlook Addin, Version=3.0.233.24954, Culture=neutral, processorArchitecture=MSIL
    (Partial)
    WRN: Partial binding information was supplied for an assembly:
    WRN: Assembly Name: Blue Jeans Outlook Addin, Version=3.0.233.24954, Culture=neutral, processorArchitecture=MSIL | Domain ID: 2
    WRN: A partial bind occurs when only part of the assembly display name is provided.
    WRN: This might result in the binder loading an incorrect assembly.
    WRN: It is recommended to provide a fully specified textual identity for the assembly,
    WRN: that consists of the simple name, version, culture, and public key token.
    WRN: See whitepaper http://go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue.
    LOG: Appbase = file:///C:/Program Files/Blue Jeans/Outlook Addin/
    LOG: Initial PrivatePath = NULL
    LOG: Dynamic Base = NULL
    LOG: Cache Base = NULL
    LOG: AppName = OUTLOOK.EXE
    Calling assembly : (Unknown).
    ===
    LOG: Start binding of native image Blue Jeans Outlook Addin, Version=3.0.233.24954, Culture=neutral, PublicKeyToken=null.
    WRN: No matching native image found.
    LOG: IL assembly loaded from C:\Documents and Settings\Administrator\Local Settings\Application Data\assembly\dl3\LZMMEM67.CTT\397DNQ77.1W9\c337c5e7\0023f77f_891ed001\Blue Jeans Outlook Addin.dll.
    The required correct settings file is present in the location C:\Program Files\Blue Jeans\Outlook Addin but the .NET created user.config in AppData have wrong entries. The machine is installed with VSTO 2010 and .NET 4.0 Client Profile. Also the KB 976477 is
    already installed the registry entry EnableLocalMachineVSTO (KB 976811) is made. May someone please give me a clue on why the user.config file is created with wrong entries and also, why this assembly binding error happening?
    Thanks in advance.
    Prasad

    this might help:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/2601334c-d5cb-4f51-a99a-4d8ea9217938/userconfig-file-problem-after-upgrading-to-outlook-2010-from-2007?forum=vsto
    VSTO Word add-in user.config lost every update

  • In CLIENT_RESULT_CACHE_STATS$  "Find count always shows 0"

    In CLIENT_RESULT_CACHE_STATS$ "Find count always shows 0" even client cache is enabled.
    I am not able to enable client side result cache . I use ODAC which uses ODP.net driver internaly i have attached code file.
    I have done following settings in database
    client_result_cache_size 1048576 FALSE
    client_result_cache_lag 3000 TRUE
    result_cache_mode MANUAL
    result_cache_max_size 5373952
    result_cache_max_result 5
    result_cache_remote_expiration 0
    client_result_cache_size 1048576
    client_result_cache_lag 3000
    Database version is Enterprise Edition Release 11.2.0.1.0
    Only select * from V$RESULT_CACHE_STATISTICS where find count increases always but " Find count" in CLIENT_RESULT_CACHE_STATS$ is always 0.
    If the client side result cache enabled means it find count in CLIENT_RESULT_CACHE_STATS$ should increase rite???
    Please help me to solve this issue
    sharath

    Oops, not query the sys views.
    Thanks Chris, just read your message while post above.
    Yeah, should not use dba_objects.
    Message was edited by:
    user498460
    Message was edited by:
    user498460

  • Finder can't find / display files in external drive

    Just upgraded to Lion on my MacBook, and Finder can't find / display files from my external thumb drive. I got message that the external drive was removed incorrectly, but I did not remove the thumb drive at all. After several attempts on removing and inserting the thumb drive, the files just didn't show up under Finder, and I have no way of working on files from external drive. I went to a Window based notebook and checked, the files are still in my thumb drive so they have not been corrupted, hopefully. How can I make Finder works with external drive in Lion ?

    The problem I have was finally resolved by having a "clean" install for Lion, meaning to back up your hard disc, re-install Snow Leopard, then Lion. It's a lot of work but my MacBook is now working.

  • Could not load file or assembly 'Oracle.DataAccess, Version=2.121.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The system cannot find the file specified.

    Hi All,
    While trying to access oracle database from SharePoint facing "Could not load file or assembly 'Oracle.DataAccess, Version=2.121.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The system cannot find the file specified."
    How to fix this issue?  Thanks in advance!

    Hi,
    According to your post, my understanding is that you get error while access oracle database in SharePoint.
    You can set “Enable 32-bit Applications” to true in the application pool for the web application, then check whether it works.
    For more information:
    https://www.learningpenguin.net/myblog/2014/02/03/could-not-load-file-or-assembly-oracle-dataaccess-or-one-of-its-dependencies-an-attempt-was-made-to-load-a-program-with-an-incorrect-format/
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • FYI: How to Fix "iTunes Cannot Find Original File" Error

    Yesterday morning, I opened iTunes and tried to play a file. I got the old "iTunes cannot find the original file" error. I tried another file. Same thing. I tried restarting iTunes, holding down the shift key, and making sure iTunes knew where my Library file was. Yep. Still no dice. So I came here, and did a search for help. I could not find any definitive answers to this question. So I did a Google search and found the fix in an old Metafilter thread. Given that this problem seems a little common, I thought I'd post my solution here, for anyone who has this issue in the future.
    First things first, make sure that it's not just an issue of pointing iTunes to your current library location. Go to your advanced preferences and double-check the library location path. If this doesn't fix it, then it's time to go my route:
    1) Open your iTunes folder in windows explorer. Look for a file called "itunes library.xml". Copy that file to your desktop or somewhere else so that it's backed up...in case something goes wrong.
    2) Open the original XML file in notepad (right-click, "open with", "notepad").
    3) In this XML file, you will see a paragraph of information for every file you have (songs, podcasts, videos, etc.). In each of those paragraphs, there is a file path specifying where the file is supposed to reside. This is how the itunes library.itl file knows where to look. In my case, it should have been "e:/my music/itunes", but instead, it was "e:/my music/itunes/itunes music". The program had created that folder for some reason, and all my files were pointing there.
    4) Check a few of the paragraphs and see if they are pointing to your actual music folder. If so, then you have another problem...sorry. If not, then continue on:
    5) Go to edit->replace (or control-H). In the "find what" box, enter the incorrect file path (in my case, e:/my music/itunes/itunes music"). In the "replace with" box, enter the correct path of your itunes music folder (in my case, "e:/my music/itunes". Then click "replace all".
    If you have a lot of songs, this may take awhile. I have over 25,000 files, so it took at least 18 hours.
    6) When it's done, quit notepad and save the XML file. Open iTunes. If it doesn't automatically start updating your library, then try to play a song. If you get the same old error, then quite iTunes, then re-open it, go to the advanced preferences and select the correct file path for the library location. This should fix it.

    I am also finding many "ghost file" duplicate files (with the exclamation point "can not locate files" message), after pointing Itunes version 8.2.1.6 to my music folder on a separate, networked hard drive. My understanding is that the "Consolidate Files" feature in Itunes is supposed to properly identify all of the file locations, but it only worked for about 1/5 of our 10,000 plus files before it stopped running. (I've read in other forums that this software is buggy, and gets confused with long song titles, etc.)It also leaves you with duplicate "ghost" files to delete, when the music from the separate drive is "added".
    I can not find a file called ituneslibrary.xml to try your suggestion, when I open my Itunes folder. When I do "get info" on the individual music files in Itunes that can't be located, the "where" field = "not available". I have doublechecked the library location in preferences and it is properly pointed to "K:\itunes" which is the correct location.

  • Visual Studio 2012 Find in Files not Displaying Files

    Maybe I am doing something wrong but all of a sudden the Find in Files in my VS2012 does not display the actual file results. It displays the count but the file list is empty.. Am I missing something?
    Thanks.

    Hi Shahrouz,
    I can't reproduce your issue.
    There are some steps as following below you can try:
    Check the setting Find and Replace(Tools->Environment->Find and Replace(
    Use “devenv.exe /resetsettings”
    Use Visual Studio Setup Wizard (via Control Panel) to repair Visual Studio
    You also can read the reference about Find in Files:
    http://msdn.microsoft.com/en-us/library/dechx2tz.aspx
    Hope you can find what cause your issue.
    Best regards,
    Ego [MSFT]
    MSDN Community Support | Feedback to us

  • [PATCH] Fix find()/count() lookups on dbstl set/map

    Applies to 5.2.36
    Fix find()/count() lookups on dbstl set/map
    A bug was discovered that manifests when a custom marshaller
    is in use for objects serving as a key for either a db_map,
    or the item in a db_set. It may affect other subsystems
    (multimap/sets, etc) but this has not been explicitly confirmed.
    The symptom is that items that are inserted cannot be properly
    queried for (e.g. via .find()/.count()) within a container, yet
    the items can be iterated. It was determined that the root cause
    of this problem is related to the fact that items are inserted
    based on their custom marshaller, but are queried for using
    the default shallow/contiguous method. It is highly unlikely that
    both methods would return a comparable key, and therefore this
    explains why queries (such as via .find()) would not result
    in a match.
    The reason for the discrepancy relates to how the DBT is formed
    for a given query. In the insert path, the DBT "onstack"
    optimization was disabled, and this resulted in the DBT formation
    properly invoking the copy_function registered in the DbstlElemTraits.
    In the query path, the "onstack" optimization was enabled. This
    optimization avoids a malloc/memcpy cycle by just pointing the DBT
    to the object buffer. This is great when the buffer is already
    properly formed. However, when a copy_function is registered, this
    will hardly ever be the case. Therefore, the fix is to check
    if there is a custom marshaller registered when determining if
    the "onstack" optimization can be taken, and to skip the optimization
    when a marshaller is present. The ramification of this change is
    that DBTs formed under a custom marshaller will always be forced
    to take the malloc/memcpy hit, but this is unavoidable and logical
    anyway.
    Signed-off-by: Gregory Haskins <[email protected]>
    lang/cxx/stl/dbstl_dbt.h | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)
    diff --git a/lang/cxx/stl/dbstl_dbt.h b/lang/cxx/stl/dbstl_dbt.h
    index 43c5a19..691a9bd 100644
    --- a/lang/cxx/stl/dbstl_dbt.h
    +++ b/lang/cxx/stl/dbstl_dbt.h
    @@ -408,7 +408,7 @@ public:
    else
    sz = sizeof(dt);
    - if (onstack) {
    + if (onstack && EM::instance()->get_copy_function() == NULL) {
    freemem();
    pdbt->data = ((void*)&dt);
    // We have to set DB_DBT_USERMEM for DB_THREAD to work.

    Hi Greg,
    Thank you for addressing this. Your fix is very valuable.
    We've made some changes(including yours) to fix this kind of issue, and these changes will be in next major release.
    Regards,
    Winter Zhang
    Oracle Berkeley DB

  • Query Count files under Specific folder in Sccm?

    Hello!
    I try to create a Query in sccm. There I want to count files under a specific folder. If folder on the client have less than 35 files, show the name of that computer. How should I begin to create that Query? Should I use criteria Software files Count?
    Greetings
    Emil

    I think for this task you will find it easier to create a report instead. Queries are based on WQL which has some limitations.
    Kent Agerlund | My blogs: blog.coretech.dk/kea and
    SCUG.dk/ | Twitter:
    @Agerlund | Linkedin: Kent Agerlund |
    Mastering ConfigMgr 2012 The Fundamentals

Maybe you are looking for

  • Backing up files onto a DVD+RW disc

    I have backed up files onto a DVD+RW disc from my Mac.  However, when I go back to do another update, I get the message that I can't copy file because the disc is a read-only.  Why do I get this message?

  • Best way to share AddressBook on single mac with two users?

    Hey everyone. I'm still pretty new to the Mac world here and I have a quick question. I just got my first iMac this past weekend. I've set it up so that my wife and I both have user accounts on the machine. I was wondering if there is a way or what i

  • No replies??

    How does this forum work? I asked for help days ago (see below) and have not received one reply. Aren't there Adobe experts that browse the forums and reply? Isn't this how forums are supposed to work?? I'm running LR3.5 on a Mac and am just starting

  • Update to Flash Player 11 bring bug with wmode="transparent" &  video plays at half speed  in IE 9

    Hi Adobe & Folks! Since i updatet to Flashplayers 11 still i get, wie other peoples here too - a bug in wmode transparent and video plays in half speed (Sound still be correct)! It seems the transparent bug ist just in IE9! Firefox 7 & Google Chrome

  • Encore CS4 Root menu problem

    Heya peeps, On my main menu (the first one that appears when a dvd is inserted after a quick animation) if i click the button to start the movie and then press root menu the player takes me back to the main menu. However when i goto scene selection f