Odd behavior in Finder and Shared Drives

As you can see from the screenshot below.. I am seeing some very odd behavior in Finder regarding a Shared Network Drive I have attached to another Mac.
Details:
Mac with Shared Drive attached is a 2011 iMac running 10.8.2
Mac with issue in Finder is 2011 Mac Mini running 10.8.2
When I go to the shared drive via Finder on the Mac Mini and open it, it shows multiple copies of the Shared Networked Drive. If I click on one of those copies it opens up another copy of the shared drive which also includes even more copies of the shared Drive inside.
Trying to eject the Shared HD via the Mac Mini results in the following msg...
“Sea2TB” is a partition on a disk that has 2 partitions. Do you want to eject “Sea2TB” only, or both partitions?
The problem is that HD is not partitioned.. It has only one partition called Sea2TB
Ejecting the HD from it's Host iMac... results in a normal ejection without this message about there being two partitions...
I have tried rebooting both Macs.. Removing and re-adding the share on the Host iMac... Renaming the Drive and so far this issue keeps returning.
It is the only shared Hard Drive that has this issue.. I am sharing another 4 HDs via the iMac to the Mac Mini and none of the other shares show up as multiple copies in Finder.. Only the Sea2TB share...
Any ideas anyone as to how to fix this?

Anyone got any ideas please?

Similar Messages

  • Neither Spotlight nor Finder searching SHARED drives

    I have two shared drives (both accessed via a Time Capsule) on my local network (LAN). I have total access to these two drives (reading,writing,etc.).
    How can I perform a search for a particular file on these drives?
    When I attempt to search via Finder, I enter the name of a file I know exists on one of these drives (just to test the process out) in the Search box in Finder. I click the Shared and File Name buttons, but nothing happens, no files found, nothing, zip, nada.
    I know this file exists on one of these drives.
    Why don't I see any results when I attempt to perform a search on Shared drives?
    (NOTE: This works if I search on "This Mac").
    Ideas?
    Thanks
    -Mike
    Message was edited by: Soniq2

    Apparently this is a bug in 10.5.6.
    Several posts throughout these forums indicate that many folks are experiencing the same issue.
    We can search within individual folders on a Sharepoint, but cannot perform a search of the entire sharepoint.
    Strange.
    Apple, are you aware of this?
    Thanks
    -Mike

  • What if TC is backup and shared drive?

    I want to use TC as backup station for all my Mac's & PC's as well as use it as a shared drive. But then how do I backup the files on the shared drive part?
    What is the recommended scenario for this?

    See #Q3 in Using Time Machine with a Time Capsule for some possible workarounds, to keep everything on the TC's internal HD, if there's room and you want to do that.
    As Bob says, Time Machine can't back up from a network drive.  The Chronosync app might be a workable alternative for that.

  • Bug or feature: Finder's sidebar and shared drives

    I don't know if this is a bug or an incomplete feature.
    I have a Windows fileserver on the network. In Finder if I go to afp://<ipaddress> and authenticate with name and password I get a window with the list of available Apple shares. So far so good, just like Tiger. When I choose ONE drive I want, however, the Finder sidebar does not show the drive but shows the server itself and clicking the servername shows ALL available shares. I can click anyone I want and view the contents.
    If the Go To process didn't ask for which drive I wanted to connect to, that'd be great since the sidebar display them all anyways.
    It's a bit odd though. In list view there's no triangles to expand the folders, and it seems odd that the Go To process asks which drive to connect to but then give you all of them anyways. But I certainly like not having to choose which drives I want to connect to.
    Bug or feature? I'm rooting for feature.

    supersolenoid wrote:
    I've recently noticed some very strange behavior when I use exposé with windows minimized and applications hidden.
    When applications are hidden, their windows do not appear in exposé, which seems reasonable.
    But windows that were minimized before hiding the application continue to appear in exposé even while they are not shown in the dock.
    Is this normal behavior? It's irking the **** out of me.
    yes, it's normal behavior. minimized windows show up in exposé but are smaller than non minimized windows. Personally, I like it that way. and when you choose the option to minimize to the application this is the easiest way to unminimize them. but if you are not happy with this you can send apple feedback on the issue
    http://www.apple.com/feedback/macosx.html

  • "iMacs" in finder and shared

    I have installed yosemite and since then I have a couple of issues. In finder i have multiple imacs under shared.
    And my computer changes number all the time
    <edited by host>

    I started getting multiple Shared Connections after updating to Yosemite. I found at least five discussions here in the Apple Support Community about this problem.  After sifting through the various solutions this is what worked for me.
    I unplugged Apple TV and my Time Capsule. After plugging them back in the multiple shared instances in of my MacBook Pro in Finder disappeared. I'm not sure if the Apple TV had anything to do with it.
    I'm pretty sure the Time Capsule was holding on to a pre-Yosemite "instance". After using the MacBook on and off the Time Capsule's WiFi network for a couple of weeks I was up to MacBook(19). I started to become concerned when my Reminders on the MacBook stopped syncing with my iPhone. All the IOS devices that shared those Reminders synced with each other just fine.
    I suppose the Reminders issues could be unrelated, but it did seem that completely restarting my Time Capsule's WiFi (unplugging and plugging back in) cured both problems.

  • Slow transfer speeds between Mac Pro and Shared Drive on Windows Domain

    Hi Guys,
    Getting really slow transfer speeds when I try and transfer a file from a Mac Pro to a shared network drive on one of our Windows 2003 Servers.
    The Mac Pro is logged on to windows domain. This data is transferring via our hard network, not via wireless. Not having any other transfer speed issues on any other PC's.
    For example an 8mb file took around 45 mins.
    Hope you can help. Many Thanks.

    I saw this at a site where they were using DFS with Server 2003. When the few Mac's they had connected to the actual server and uploaded the file it was okay. But when it was sending the file via the \\DFS_node\share_name the Mac took heaps longer for the same file. Watching the Activity Monitor > Network monitor you could see gaps with the data transfer, as if there was some pausing between packets. A pcap showed that there was constant DNS requests coming from the Mac, even after the connection to the share was made. The same wasn't happening when the connection via SMB was directly to the actual file server. As there was only a few Mac on site they left it with the direct connection but were getting an MS specialist in to look at it. Never heard what happened with that one but you may want to try monitoring the packet transfer to see if the data movement is contstant or breaking. I'd also recommend getting Wireshark to monitor the transfer. You can compare upload to download and maybe even the transfer from the Mac to an MS workgroup share.

  • Strange icons behavior on Finder and Dock

    Hi!
    I’ve purchased a new MacBook and am in the process of transforming my old iBook G4 into a sort of netbook for Web and iWork but am having some strange problems.
    This notebook served me very well for several years but I decide to clean it after the migration of all my content to the new MacBook.
    First I formatted and reinstalled Leopard on it. Then I performed all the OS online updates and finally installed iWork/iLife and also performed the online updates for these Apps. After that I activated MobileMe, imported all my data and began to download Apps like Evernote, Skype, etc.
    After downloading some Apps I started to place their icons on the Dock but for some reason they simple disappeared after some seconds. Went to the web and found some tips to delete the Dock "plist" and some other files. Did that, perform a restart, but that didn’t work for me.
    Since everything was new I decide to create a new user and test the Dock. It worked fine in the new user (without MobileMe activated) but then some other strange thing happened. The icons of installed Apps are not appearing on the Finder, though they were there in the deleted user. If I search for them with Spotlight they are there (in the Application folder!) and I can even drag them to the Dock, but for some reason they are not in the Finder window itself.
    I remember selecting “install in all users” when installing all the Apps, so this cannot be the problem. Other interesting thing to notice is that if I search for a App with Spotlight, drag it to another place (out of the Application folder) and then move it back to the Application folder, the icon appears on the Finder window.
    My questions are: Does anyone know what can be happening? Should I start all over reinstalling Leopard?
    Thanks!

    vladcampos wrote:
    Hi!
    I’ve purchased a new MacBook and am in the process of transforming my old iBook G4 into a sort of netbook for Web and iWork but am having some strange problems.
    This notebook served me very well for several years but I decide to clean it after the migration of all my content to the new MacBook.
    First I formatted and reinstalled Leopard on it. Then I performed all the OS online updates and finally installed iWork/iLife and also performed the online updates for these Apps. After that I activated MobileMe, imported all my data and began to download Apps like Evernote, Skype, etc.
    After downloading some Apps I started to place their icons on the Dock but for some reason they simple disappeared after some seconds.
    this is a very common mobileme issue caused by corupt sync data. turn off and reset mobileme syncing
    http://support.apple.com/kb/HT1497
    Went to the web and found some tips to delete the Dock "plist" and some other files. Did that, perform a restart, but that didn’t work for me.
    Since everything was new I decide to create a new user and test the Dock. It worked fine in the new user (without MobileMe activated) but then some other strange thing happened. The icons of installed Apps are not appearing on the Finder,
    I don't understand what you mean by this.
    though they were there in the deleted user. If I search for them with Spotlight they are there (in the Application folder!) and I can even drag them to the Dock, but for some reason they are not in the Finder window itself.
    which finder window?
    I remember selecting “install in all users” when installing all the Apps, so this cannot be the problem. Other interesting thing to notice is that if I search for a App with Spotlight, drag it to another place (out of the Application folder) and then move it back to the Application folder, the icon appears on the Finder window.
    My questions are: Does anyone know what can be happening? Should I start all over reinstalling Leopard?
    Thanks!

  • Finder and Shared Computer

    How do I keep my Emac, although it's sleeping, in the finder of my laptop so, when I want to wake on demand I can.

    This post gave me some partial answers. https://discussions.apple.com/thread/5194462?tstart=0
    It appears my approach is incorrect method for what I want to achieve.
    I have a cable modem that's connected to a Microtik router which my Apple extreme and a Netgear are connect to. However, when I set the AE to DHCP - NAT, I get double nat.
    So, I'll keep calm and carry on, while abandoning the post.

  • Really odd behavior on startup and power supply

    Hi there,
    I am using MAC book pro and have X v.10.6 Snow Leopard installed couple months ago. One day several weeks ago, there was a long single beeping while I was surfing the internet and the system shut down by itself. After that, there is no way to boot the system up again. I tried to take the battery down and only have the magsafe connected to the machine, still no good to boot up the system. I tried everything I can do: reset SMC and NVRAM, change magsafe. Still no good. Last week, don't know why, I succeed in booting the system with the battery connected but it shown that the battery was in very low power. After that, the system never boot up again. I put the battery back and try to charge it via magsafe, no good, flashing alternatively with green and orange lights. I left the machine alone with magsafe and battery on for two days. Today, I tried to power on the machine, the familiar sound comes again, and the battery seems fully charged (I check by another MAC). However, there is a progress bar appears on the grey boot screen, after it has been fully filled, the spinning wheel seem runs forever and the system doesn't really boot up and no login box shown. Since my machine have both Mac OS X and windows 7 installed with bootcamp. I pushed down the power button and ALT to load the windows 7, no problem at all. But when I come back to MAC OS, same problem appears again. The system's startup process takes forever to finish. So
    1) What's going on with the power supply? Since the problem lasting for too long, I assumed the logic broad must be damaged and I am ready to change a new one. But why it suddenly heals itself? And how come the battery fully charged? Weird!
    2) How to solve the problem of 'forever loading' on startup?
    I tried to boot from DVD by holding ALT and select DVD ROM on starting. The system shut down automatically after the DVD began to be loaded. And after that, I also tried to boot the system without DVD and the system automatically shut down in 10minutes.

    Hi, Kurt. What you're seeing with the ringlight on the adapter is normal behavior for an adapter connected to a noisy or "dirty" AC power line. It's not an adapter fault, and is nothing to worry about except that it may impact other devices, such as your iPod, that are connected and drawing bus power when the adapter shuts down. See item 2 in this article for a brief explanation and suggested remedy:
    http://docs.info.apple.com/article.html?artnum=302461
    This is off the main subject, but since you mentioned it, I'm very interested to hear that your iPod Touch works normally when connected to your IOGear USB 2.0 card. Does the card draw bus power from one of your built-in USB 1.1 ports or from its own AC adapter, or is it supplying sufficient power all on its own to run the iPod?
    Many people have posted here about troubles getting USB 2.0 devices, and iPods in particular, to work when connected to USB 2 cards in Tibooks. It seems that many such devices need more power than these cards can supply without auxiliary power. If the IOGear card can somehow pass along more power than others (which seems unlikely), or if the the iPod Touch doesn't need as much power as other iPod models (which also seems unlikely), those would be useful things to know.
    Message was edited by: eww

  • JDBC error - Unable to find or load Driver

    Hi,
    I'm attempting to connect to a MySQL database with using the statement below, using MySQL Connector 3.0.8:
    public void connectToDB() {
    try {
    connection = DriverManager.getConnection(
    "jdbc:mysql://localhost:3306/accounts?user=root&password=spider");
    } catch(SQLException connectException) {
    System.out.println(connectException.getMessage());
    System.out.println(connectException.getSQLState());
    System.out.println(connectException.getErrorCode());
    However, I obtain the error shown below when executing my code:
    C:\> java Accounts
    Unable to find and load Driver
    which is an output from:
    public Accounts() {
    try {
    Class.forName("com.mysql.jdbc.Driver").newInstance();
    } catch (Exception e) {
    System.err.println("Unable to find and load driver");
    System.exit(1);
    My database is not located on another machine, but on the same machine rather (127.0.0.1) i.e. on my local PC.
    I've tried trouble shooting the problem by:
    C:\> telnet localhost 3306
    Bad Connection 4.0.20a-max@!5
    Connection to host lost
    C:\> ping 127.0.0.1
    4.0.20a-maCGxG;2&f,&#9787;
    Connection to host lost.
    C:\>ping 127.0.0.1:3306
    Ping request could not find host 127.0.0.1:3306. Please check the name and try a
    gain.
    C:\>ping 127.0.0.1
    Pinging 127.0.0.1 with 32 bytes of data:
    Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
    Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
    Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
    Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
    Ping statistics for 127.0.0.1:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms
    C:\>
    Could anyone kindly tell me where did I go wrong, and how do I go about solving this issue?
    Below is the complete set of code(Accounts.java) which querries, inserts and deletes entries in the database.
    Thanks in advance.
    // Accounts.java
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.sql.*;
    import java.util.*;
    public class Accounts extends JFrame {
    private JButton getAccountButton,
    insertAccountButton,
    deleteAccountButton,
    updateAccountButton;
    private JList accountNumberList;
    private Connection connection;
    private JTextField accountIDText,
    usernameText,
    passwordText,
    tsText,
    activeTSText;
    private JTextArea errorText;
    public Accounts() {
    try {
    Class.forName("com.mysql.jdbc.Driver").newInstance();
    } catch (Exception e) {
    System.err.println("Unable to find and load driver");
    System.exit(1);
    private void loadAccounts() {
    Vector v = new Vector();
    try {
    Statement statement = connection.createStatement();
    ResultSet rs = statement.executeQuery("SELECT acc_id FROM acc_acc");
    while(rs.next()) {
    v.addElement(rs.getString("acc_id"));
    rs.close();
    } catch(SQLException e) {
    displaySQLErrors(e);
    accountNumberList.setListData(v);
    private void buildGUI() {
    Container c = getContentPane();
    c.setLayout(new FlowLayout());
    accountNumberList = new JList();
    loadAccounts();
    accountNumberList.setVisibleRowCount(2);
    JScrollPane accountNumberListScrollPane = new JScrollPane(accountNumberList);
    //Do Get Account Button
    getAccountButton = new JButton("Get Account");
    getAccountButton.addActionListener (
    new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    try {
    Statement statement = connection.createStatement();
    ResultSet rs = statement.executeQuery("SELECT * FROM acc_acc WHERE acc_id = " + accountNumberList.getSelectedValue());
    if (rs.next()) {
    accountIDText.setText(rs.getString("acc_id"));
    usernameText.setText(rs.getString("username"));
    passwordText.setText(rs.getString("password"));
    tsText.setText(rs.getString("ts"));
    activeTSText.setText(rs.getString("act_ts"));
    } catch(SQLException selectException) {
    displaySQLErrors(selectException);
    //Do Insert Account Button
    insertAccountButton = new JButton("Insert Account");
    insertAccountButton.addActionListener (
    new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    try {
    Statement statement = connection.createStatement();
    int i = statement.executeUpdate("INSERT INTO acc_acc VALUES(" +
    accountIDText.getText() + ", " +
    "'" + usernameText.getText() + "', " +
    "'" + passwordText.getText() + "', " +
    "0" + ", " +
    "now())");
    errorText.append("Inserted " + i + " rows successfully");
    accountNumberList.removeAll();
    loadAccounts();
    } catch(SQLException insertException) {
    displaySQLErrors(insertException);
    //Do Delete Account Button
    deleteAccountButton = new JButton("Delete Account");
    deleteAccountButton.addActionListener (
    new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    try {
    Statement statement = connection.createStatement();
    int i = statement.executeUpdate("DELETE FROM acc_acc WHERE acc_id = " +
    accountNumberList.getSelectedValue());
    errorText.append("Deleted " + i + " rows successfully");
    accountNumberList.removeAll();
    loadAccounts();
    } catch(SQLException insertException) {
    displaySQLErrors(insertException);
    //Do Update Account Button
    updateAccountButton = new JButton("Update Account");
    updateAccountButton.addActionListener (
    new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    try {
    Statement statement = connection.createStatement();
    int i = statement.executeUpdate("UPDATE acc_acc " +
    "SET username='" + usernameText.getText() + "', " +
    "password='" + passwordText.getText() + "', " +
    "act_ts = now() " +
    "WHERE acc_id = " + accountNumberList.getSelectedValue());
    errorText.append("Updated " + i + " rows successfully");
    accountNumberList.removeAll();
    loadAccounts();
    } catch(SQLException insertException) {
    displaySQLErrors(insertException);
    JPanel first = new JPanel(new GridLayout(5,1));
    first.add(accountNumberListScrollPane);
    first.add(getAccountButton);
    first.add(insertAccountButton);
    first.add(deleteAccountButton);
    first.add(updateAccountButton);
    accountIDText = new JTextField(15);
    usernameText = new JTextField(15);
    passwordText = new JTextField(15);
    tsText = new JTextField(15);
    activeTSText = new JTextField(15);
    errorText = new JTextArea(5, 15);
    errorText.setEditable(false);
    JPanel second = new JPanel();
    second.setLayout(new GridLayout(6,1));
    second.add(accountIDText);
    second.add(usernameText);
    second.add(passwordText);
    second.add(tsText);
    second.add(activeTSText);
    JPanel third = new JPanel();
    third.add(new JScrollPane(errorText));
    c.add(first);
    c.add(second);
    c.add(third);
    setSize(500,500);
    show();
    public void connectToDB() {
    try {
    connection = DriverManager.getConnection(
    "jdbc:mysql://localhost:3306/accounts?user=root&password=spider");
    } catch(SQLException connectException) {
    System.out.println(connectException.getMessage());
    System.out.println(connectException.getSQLState());
    System.out.println(connectException.getErrorCode());
    private void displaySQLErrors(SQLException e) {
    errorText.append("SQLException: " + e.getMessage() + "\n");
    errorText.append("SQLState: " + e.getSQLState() + "\n");
    errorText.append("VendorError: " + e.getErrorCode() + "\n");
    private void init() {
    connectToDB();
    public static void main(String[] args) {
    Accounts accounts = new Accounts();
    accounts.addWindowListener(
    new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    accounts.init();
    accounts.buildGUI();
    }

    Hi,
    Below is my PATH setting to the MySQL JDBC JAR added in the autoexec.bat file:
    PATH C:\j2sdk1.4.1_01\bin;C:\mysql-connector-java-3.0.8-stable-bin.jar;%CLASSPATH%
    Could you tell me where did I go wrong & how can I fix this problem?
    FYI, I'm using a Windows XP platform.
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    C:\mysql\bin>net stop mysql
    The MySQL service is stopping..
    The MySQL service was stopped successfully.
    C:\mysql\bin>mysqld.exe
    C:\mysql\bin>net stop mysql
    The MySQL service is not started.
    More help is available by typing NET HELPMSG 3521.
    C:\mysql\bin>net start mysql
    The MySQL service is starting.
    The MySQL service was started successfully.
    I then tried initiating the MySQL client also on the same PC machine, but obtained the error below:
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    C:\mysql\bin>mysql.exe
    ERROR 2003: Can't connect to MySQL server on 'localhost' (10061)
    C:\mysql\bin>telnet localhost 3306
    Connecting To localhost...Could not open connection to the host, on port 3306: C
    onnect failed
    C:\mysql\bin>
    Could you or anyone else help me on this problem? I'm still a newbie with MySQL and JDBC.
    Thanks in advance

  • Setting up shared drive

    I want to attach an external mirror drive to my G5 iMAC to use as a time machine back up and shared drive.  I have my computers networked as shared over an airport extreme.  So here are my questions.
    When setting up the shared drive on my other macs I have to input the computer name and password.  Does this prevent anyone else from accessing the computers and drives?
    What Apple format do I use to format the drives?  Journaled, GUID, etc.
    Can I or will I be able to use the external drives as iTunes media central file?  Meaning can I stream a movie to one mac and listen to iTunes on another?
    Is there a better or more simpler way to do this?  I do not know anything about NAS? or how else to accomplish this with what I currently know.
    Thanks.

    I ended up splitting the drive into two partitions. One is shared through the Server Preferences using Time Machine. The other is used locally to backup the server itself. No more problems of extended preparing stage. I think it was doing that because the server detected changes to the drive when other backups were made, and it was just checking for changes.

  • Shared drives ejecting themself

    Hi,
    I have a Mackbook Pro Retina (2012) & a MAc Mini (2010).
    The Mac Mini is dedicated to mediacenter (XBMC) :
    1 - 2x WD Elements Desktop 3 To (USB 2.0)
    2 - TV LCD LOEWE 40 DR+
    The Macbook Pro Retina is ma main machine, i manage the Mini with file sharing and shared drives (2)
    For a reason i don't know sometime the shared drives are ejecting themselfs from the Mackbook Pro Retina.
    Disk verification on these drive is ok, no FW available.
    I don't know why
    Thanks
    Nemrod

    Up

  • Odd behavior when using custom Composite/CompositeContext and antialiasing

    Hi,
    I created a custom Composite/CompositeContext class and when I use it with antialiasing it causes a black bar to appear. I seems it has nothing to do with the compose() code but just that fact that I set my own Composite object. The submitted code will show you what I mean. There are 3 check boxes 1) allows to use the custom Composite object, 2) allows to ignore the compose() code in the CompositeContext and 3) toggles the antialiasing flag in the rendering hints. When the antialiasing flag is set and the Composite object is used the bar appears regardless of if the compose() method is executed or not. If the Composite object is not used the bar goes away.
    The Composite/CompositeContext class performs clipping and gradient paint using a Ellipse2D.Float instance.
    a) When the Composite is not used the code does a rectangular fill.
    b) When the Composite is used it should clip the rectangular fill to only the inside of a circle and do a gradient merge of background color and current color.
    c) If the compose() method is ignored then only the background is painted.
    d) When antialiasing is turned on the black bar appears, i) if you ignore the compose() method it remains, ii) if you do not use the Composite object the bar disappears (???)
    NOTE: the compose method's code is only for illustration purposes, I know that AlphaComposite, clipping and/or Gradient paint can be used to do what the example does. What I am trying to find out is why the fact of simply using my Composite object with antialiasing will cause the odd behavior.  Been trying to figure it out but haven't, any help is appreciated.
    Thx.
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import java.awt.image.*;
    import javax.swing.*;
    public class TestCustomComposite2
    extends JFrame
    implements ActionListener {
        private JCheckBox useCompositeChk, useAntialiasingChk, useCompositeContextChk;
        private Shape clippingShape = new Ellipse2D.Float(100, 100, 100, 100);
        private MergeComposite composite = new MergeComposite();
        public TestCustomComposite2() {
            super("Test Custom Composite");
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            JPanel cp = (JPanel) getContentPane();
            cp.setLayout(new BorderLayout());
            cp.add(new TestCanvas(), BorderLayout.CENTER);
            JPanel panel = new JPanel(new FlowLayout(FlowLayout.LEFT, 0, 0));
            panel.add(useCompositeChk = new JCheckBox("Use Composite", true));
            useCompositeChk.addActionListener(this);
            panel.add(useCompositeContextChk = new JCheckBox("Use Composite Context", true));
            useCompositeContextChk.addActionListener(this);
            panel.add(useAntialiasingChk = new JCheckBox("Use Antialiasing"));
            useAntialiasingChk.addActionListener(this);
            cp.add(panel, BorderLayout.SOUTH);
            pack();
            setVisible(true);
        public void actionPerformed(ActionEvent evt) {
            useCompositeContextChk.setEnabled(useCompositeChk.isSelected());
            invalidate();
            repaint();
        private class TestCanvas
        extends JComponent {
            public TestCanvas() {
                setSize(300, 300);
                setPreferredSize(getSize());
            public void paint(Graphics gfx) {
                Dimension size = getSize();
                Graphics2D gfx2D = (Graphics2D) gfx;
                gfx2D.setColor(Color.GRAY);
                gfx2D.fillRect(0, 0, size.width, size.height);
                RenderingHints rh = null;
                if(useAntialiasingChk.isSelected()) {
                    rh = gfx2D.getRenderingHints();
                    gfx2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
                Rectangle r = clippingShape.getBounds();
                //gfx2D.setColor(Color.GREEN);
                //gfx2D.drawRect(r.x, r.y, r.width, r.height);
                gfx2D.setColor(Color.YELLOW);
                gfx2D.fill(clippingShape);
                Composite oldComposite = null;
                if(useCompositeChk.isSelected()) {
                    oldComposite = gfx2D.getComposite();
                    gfx2D.setComposite(composite);
                gfx2D.setColor(Color.ORANGE);
                gfx2D.fillRect(r.x, r.y, r.width + 1, r.height + 1);
                if(oldComposite != null)
                    gfx2D.setComposite(oldComposite);
                if(rh != null)
                    gfx2D.setRenderingHints(rh);
        public class MergeComposite
        implements Composite, CompositeContext {
            public CompositeContext createContext(ColorModel srcColorModel,
                                                  ColorModel dstColorModel,
                                                  RenderingHints hints) {
                return this;
            public void compose(Raster src,
                                Raster dstIn,
                                WritableRaster dstOut) {
                if(!useCompositeContextChk.isSelected())
                    return;
                int[] srcPixel = null;
                int[] dstPixel = null;
                for(int sy = src.getMinY(); sy < src.getMinY() + src.getHeight(); sy++) {
                    for(int sx = src.getMinX(); sx < src.getMinX() + src.getWidth(); sx++) {
                        int cx = sx - dstOut.getSampleModelTranslateX();
                        int cy = sy - dstOut.getSampleModelTranslateY();
                        if(!clippingShape.contains(cx, cy)) continue;
                        srcPixel = src.getPixel(sx, sy, srcPixel);
                        int ox = dstOut.getMinX() + sx - src.getMinX();
                        int oy = dstOut.getMinY() + sy - src.getMinY();
                        if(ox < dstOut.getMinX() || ox >= dstOut.getMinX() + dstOut.getWidth()) continue;
                        if(oy < dstOut.getMinY() || oy >= dstOut.getMinY() + dstOut.getHeight()) continue;
                        dstPixel = dstIn.getPixel(ox, oy, dstPixel);
                        float mergeFactor = 1.0f * (cy - 100) / 100;
                        dstPixel[0] = merge(mergeFactor, srcPixel[0], dstPixel[0]);
                        dstPixel[1] = merge(mergeFactor, srcPixel[1], dstPixel[1]);
                        dstPixel[2] = merge(mergeFactor, srcPixel[2], dstPixel[2]);
                        dstOut.setPixel(ox, oy, dstPixel);
            protected int merge(float mergeFactor, int src, int dst) {
                return (int) (mergeFactor * src + (1.0f - mergeFactor) * dst);
            public void dispose() {
        public static void main(String[] args) {
            new TestCustomComposite2();
    }

    I got a better version to work as expected. Though there will probably be issues with the transformation to display coordinates as mentioned before. At least figured out some of the kinks of using a custom Composite/CompositeContext object.
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import java.awt.image.*;
    import javax.swing.*;
    public class TestCustomComposite2
    extends JFrame
    implements ActionListener {
        private JCheckBox useCompositeChk, useAntialiasingChk, useCompositeContextChk;
        private Shape clippingShape = new Ellipse2D.Float(100, 100, 100, 100);
        private MergeComposite composite = new MergeComposite();
        public TestCustomComposite2() {
            super("Test Custom Composite");
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            JPanel cp = (JPanel) getContentPane();
            cp.setLayout(new BorderLayout());
            cp.add(new TestCanvas(), BorderLayout.CENTER);
            JPanel panel = new JPanel(new FlowLayout(FlowLayout.LEFT, 0, 0));
            panel.add(useCompositeChk = new JCheckBox("Use Composite", true));
            useCompositeChk.addActionListener(this);
            panel.add(useCompositeContextChk = new JCheckBox("Use Composite Context", true));
            useCompositeContextChk.addActionListener(this);
            panel.add(useAntialiasingChk = new JCheckBox("Use Antialiasing"));
            useAntialiasingChk.addActionListener(this);
            cp.add(panel, BorderLayout.SOUTH);
            pack();
            setVisible(true);
        public void actionPerformed(ActionEvent evt) {
            useCompositeContextChk.setEnabled(useCompositeChk.isSelected());
            invalidate();
            repaint();
        private class TestCanvas
        extends JComponent {
            public TestCanvas() {
                setSize(300, 300);
                setPreferredSize(getSize());
            public void paint(Graphics gfx) {
                Dimension size = getSize();
                Graphics2D gfx2D = (Graphics2D) gfx;
                gfx2D.setColor(Color.GRAY);
                gfx2D.fillRect(0, 0, size.width, size.height);
                RenderingHints rh = null;
                if(useAntialiasingChk.isSelected()) {
                    rh = gfx2D.getRenderingHints();
                    gfx2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
                Rectangle r = clippingShape.getBounds();
                //gfx2D.setColor(Color.GREEN);
                //gfx2D.drawRect(r.x, r.y, r.width, r.height);
                gfx2D.setColor(Color.YELLOW);
                gfx2D.fill(clippingShape);
                Composite oldComposite = null;
                if(useCompositeChk.isSelected()) {
                    oldComposite = gfx2D.getComposite();
                    gfx2D.setComposite(composite);
                gfx2D.setColor(Color.ORANGE);
                gfx2D.fillRect(r.x, r.y, r.width + 1, r.height + 1);
                if(oldComposite != null)
                    gfx2D.setComposite(oldComposite);
                if(rh != null)
                    gfx2D.setRenderingHints(rh);
        public class MergeComposite
        implements Composite, CompositeContext {
            public CompositeContext createContext(ColorModel srcColorModel,
                                                  ColorModel dstColorModel,
                                                  RenderingHints hints) {
                return this;
            public void compose(Raster src,
                                Raster dstIn,
                                WritableRaster dstOut) {
    //            dumpRaster("SRC   ", src);
    //            dumpRaster("DSTIN ", dstIn);
    //            dumpRaster("DSTOUT", dstOut);
    //            System.out.println();
                if(dstIn != dstOut)
                    dstOut.setDataElements(0, 0, dstIn);
                if(!useCompositeContextChk.isSelected())
                    return;
                int[] srcPixel = null;
                int[] dstPixel = null;
                int w = Math.min(src.getWidth(), dstIn.getWidth());
                int h = Math.min(src.getHeight(), dstIn.getHeight());
                int xMax = src.getMinX() + w;
                int yMax = src.getMinY() + h;
                for(int x = src.getMinX(); x < xMax; x++) {
                    for(int y = src.getMinY(); y < yMax; y++) {
                        try {
                            // THIS MIGHT NOT WORK ALL THE TIME
                            int cx = x - dstIn.getSampleModelTranslateX();
                            int cy = y - dstIn.getSampleModelTranslateY();
                            if(!clippingShape.contains(cx, cy)) {
                                dstPixel = dstIn.getPixel(x, y, dstPixel);
                                dstOut.setPixel(x, y, dstPixel);
                            else {
                                srcPixel = src.getPixel(x, y, srcPixel);
                                dstPixel = dstIn.getPixel(x, y, dstPixel);
                                float mergeFactor = 1.0f * (cy - 100) / 100;
                                dstPixel[0] = merge(mergeFactor, srcPixel[0], dstPixel[0]);
                                dstPixel[1] = merge(mergeFactor, srcPixel[1], dstPixel[1]);
                                dstPixel[2] = merge(mergeFactor, srcPixel[2], dstPixel[2]);
                                dstOut.setPixel(x, y, dstPixel);
                        catch(Throwable t) {
                            System.out.println(t.getMessage() + " x=" + x + " y=" + y);
            protected int merge(float mergeFactor, int src, int dst) {
                return (int) (mergeFactor * src + (1.0f - mergeFactor) * dst);
            protected void dumpRaster(String lbl,
                                      Raster raster) {
                System.out.print(lbl + ":");
                System.out.print(" mx=" + format(raster.getMinX()));
                System.out.print(" my=" + format(raster.getMinY()));
                System.out.print(" rw=" + format(raster.getWidth()));
                System.out.print(" rh=" + format(raster.getHeight()));
                System.out.print(" tx=" + format(raster.getSampleModelTranslateX()));
                System.out.print(" ty=" + format(raster.getSampleModelTranslateY()));
                System.out.print(" sm=" + raster.getSampleModel().getClass().getName());
                System.out.println();
            protected String format(int value) {
                String txt = Integer.toString(value);
                while(txt.length() < 4)
                    txt = " " + txt;
                return txt;
            public void dispose() {
        public static void main(String[] args) {
            new TestCustomComposite2();
    }

  • All my external Hard Drives stopped showing up in both Finder and Disk Utility

    Hello there.
    i have this strange issue that occured just out of nowhere without me (knowingly) having contributed anything to it.
    yesterday i launched my iMac and my external firewire drive wasn't showing up in neither the finder nor on the desktop. i instantly thought about a hard drive crash, but soon tried other things to evaluate (or not) my guess.
    for instance, i unplugged the drive waited a few minutes before i plugged it in again. since this iomega drive is also equipped with a regular usb port i also switched cables and tried connecting it via the iMac usb sockets as well as via an usb hub without any luck. the drive still won't show up. so i launched the Disk Utility, to see if the drive needs some checking/repairing, but to my surprise it wasn't showing in Disk Utility either.
    thus far i only considered this to be an issue with only this particular external drive, but when i eventually switched on a 2nd external drive (this time an usb drive i use for Time Machine) that drive also refused to show up in either the Finder or the Disk Utility app.
    curious as i was, i then fired up a 3rd and 4th external drive and now had all 4 drives running at the same time. none of which were showing up, just as if they weren't even connected with the iMac.
    this strikes me as more than odd. i've heard about hard drive failures and crashes. they just occur over time. maybe and under some very strange coincidences it is possible that two external hard drives quit their jobs at the very same time, but seriously .... 4 of them?? i hardly think so.
    well, maybe it's the iMac's usb/firewire controller that's causing the trouble, i thought. but then again, my other connected devices (iPhone, iPad, Printer, Scanner, eyeTV) are functioning and get detected just fine as far as i can tell.
    i have no idea what's going on. i dismiss the idea of 4 external drives having crashed all at the same time just as much as i don't think that the iMac's usb/firewire controller has got any issues. re-formatting any of the 4 drives is out of the question and even if i'd consider such desperate measures, the Disk Utility wouldn't let me re-format anything anyhow, because the drives aren't listed there. i wish i could just use my Time Machine to resolve the issue but, as i mentioned earlier, i can't access the Time Machine because it also won't show up.
    please, i need an expert's help here. please, somebody bring back my 4 external drives so i can access them in finder again.
    any help will be much appreciated.
    thank you in advance..
    ..Otis

    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ If you’re running Mac OS X 10.7 or later, open LaunchPad. Click Utilities, then Terminal in the page that opens.
    Drag or copy — do not type — the following line into the Terminal window, then press return:
    diskutil list
    Post any lines of output that appear below what you entered — the text, please, not a screenshot.
    If any personal information appears in the output, edit before posting, but don’t remove the context.

  • IMac 21" late 09: Slow, screen flickering/tearing and odd behavior - the problem that puzzles everyone

    PLEASE HELP!
    My iMac 21" late -09, started acting a bit wierd a year ago. Things got worse rapidly, it got slower, the screen flickers/tears (see link below), short moments of lost internet connection, lost connection whit the keyboard (might be keyboard that is broken), almost overheats when gaming and odd behavior on some webbsites whit galleries and/or videos.
    Let's begin whit the screen: it's not vertikal lines or major distortions, just a subtle horisontal line that "wanders" from bottom to topp and some lagging from time to time. Looks like this: http://cl.ly/3i2W2o3S1D2T
    The wierd thing is that hi-res does not mean more "tearing". Yes the lagg and risk of tearing increases, but the connection seems to be: lots of movement=tearing. So a pixeld 240p video of people dancing can be way worse than a news debbate in1080p!?!
    Lost connection whit internet and keyboard rarely happens and is probably due to something else, but thought that was good to have in mind.
    Odd behavior: galleries ex: when browsing images on Facebook in fullscreen, the image sometimes jumps around in the beginning and when clicking on next the same picture might appear again or just nothing at all. When scrolling down overwiewing a gallery, the updating stops and you can't scroll down further. This problem appers mainly on FB, deviantart also acts a bit wierd but there is often small issues whit image sites. Doesn't help to switch browsers either!
    Videos: Youtube is horrible to use, stops loading, dosen't start loading, erases everything loaded (grey bar disapears and reloads), refuse to switch ressolution and suddenly stops the video like it was done! "ehh.. wasn't this 2min long? Not anymore, now its 34sec!". Mainly a Youtube problem but many similar sites can be a bit problematic to use.
    NO, it's not the HTML-5 problem or any standard flash issue and using a different browser dosen't help!
    Worst is the fact that most of these errors are not constant! One day your watching youtube or mabey a movie in VLC, a bit laggy, but almost no problem. Next day **** brakes lose and after 2hours of struggling you are ready to stabb yourself in the face!
    What i tried: Most easy buggfixes that might cause the above problems, updating most things, Switched from OS X SL to OS X ML, complete reinstall and some things i probably forgot by now. Then went to MacStore for repair, they didn't find anything wrong and said it worked fine after the standard diagnostic/repair program!?! Went home and everything was the same! Went a second time to MacStore, same result.
    So I'v reinstalled a few times and it seems to improve the Mac. But 2-3weeks later every error is back, even if I barely installed or downloaded anything!?!
    Any idea what this could be? Or is the graphic card broken and MacStore has a blind, inbred muppet as a technician?

    No I didn't. The first time i explained the problem thoroughly and thought that they just couldn't miss such a visual error. I was wrong. The second time the technician wasn't there so i showed the above clip to the salesstaff and explained everything onceagain. Later the technician called me and we talked for 10min.
    Btw, the problems always "manifests themselves", just varies between strenght and frequence.
    But all other issues aside, what could cause the tearing of the screen as seen int the above clip?

Maybe you are looking for

  • How to change Amts in Assets'-- G/L Reconciliation Acctts after closing

    Hi Experts, I want to change / modify the Accumulated Depreciation Amounts for some Fixed Assets-->>G/L reconciliation Accounts. This I want to do in the very first initial year (2005) - when the assets were first loaded / transferred from legacy sys

  • Cancel the cancelled billing document

    HI friends, I have cancel the billing document in VF11.but posting date was wrong so i want to cancel the cancel billing document how I can do this ? Regards, Chetan

  • Ora-01489: result of string concatenation is too long

    Hello Gurus, i have a typical problem i am constructing a query in FORM and writing SQLPLUS script into a .SQL file. file will contain final data like below.. set linesize 90 set pagesize 0 set echo off set verify off set termout off set feedback off

  • Dashboard Name as Link in OBIEE 10g

    HI, Can v create the dashboard name as link in which when clicked will divert us to another portal?? Actually we have an external portal ,we would like to pass the OBIEE UID & PASSWORD with the URL so that the external portal gets authenticated with

  • Reading controller data into LabVIEW through serial connections to controllers?

    I'd like to read data from environmental chamber controllers (System Plus) into LabVIEW through RS232 connections.  Has anyone done something similar? I see interfacing with the serial controllers as the biggest obstacle and although not directly rel