Is Java2D broken in general, or just on my config?

Hi all,
I am working with java 6.0_10 or _11 (is that out?) on a Linux Ubuntu 8.04 machine
Below is my code. I was just working on adding an 2 small additional features to my MouseDragOutliner class. First first addition was to add line drawing (works), and the second was to allow the user to specify a custom shape to be used in drawing the outline. In my test example, I used a star shape (a Polygon). It actually works great, but sometimes (especially it I move up and to the left) it throws an java.lang.InternalError in the run area (where the painting is happening)
Here's what the InternalError says:
Unable to Stroke shape (setDashT4: invalid dash transformation (singular))
     at sun.java2d.pipe.LoopPipe.getStrokeSpans(LoopPipe.java:234)
     at sun.java2d.x11.X11Renderer.draw(X11Renderer.java:325)
     at sun.java2d.pipe.ValidatePipe.draw(ValidatePipe.java:136)
So now I am catching this Error (probably a very bad idea, but what is the alternative?) and it works fine.
Can anybody confirm that this is a problem on other platforms? Any thoughts on handling this in a different way ie not catching the InternalError?
package tjacobs.ui.drag;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Component;
import java.awt.Container;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.Rectangle;
import java.awt.Shape;
import java.awt.Stroke;
import java.awt.event.*;
import java.awt.geom.AffineTransform;
import java.util.ArrayList;
import java.util.Iterator;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.SwingUtilities;
import tjacobs.ui.util.PaintUtils;
import tjacobs.ui.util.WindowClosingActions;
* See the public static method addAMouseDragOutliner
public class MouseDragOutliner extends MouseAdapter implements MouseMotionListener {
     public static final BasicStroke DASH_STROKE = new BasicStroke(1.0f, BasicStroke.CAP_SQUARE, BasicStroke.JOIN_BEVEL, 10.0f, new float[] {8, 8}, 0);
     public static final int RECTANGLE = 0;
     public static final int OVAL = 1;
     public static final int LINE = 2;
     private boolean mUseMove = false;
     private Point mStart;
     private Point mEnd;
     private int mShape = RECTANGLE;
     private Shape mCustomShape;
     private Component mComponent;
     private MyRunnable mRunner= new MyRunnable();
     private ArrayList mListeners = new ArrayList(1);
     public MouseDragOutliner() {
          super();
     public MouseDragOutliner(boolean useMove) {
          this();
          mUseMove = useMove;
     public void setShape(int s) {
          mShape = s;
     public int getShape() {
          return mShape;
     public void setCustomShape(Shape s) {
          mCustomShape = s;
     public Shape getCustomShape() {
          return mCustomShape;
     public void mouseDragged(MouseEvent me) {
          doMouseDragged(me);
     public void mousePressed(MouseEvent me) {
          mStart = me.getPoint();
     public void mouseEntered(MouseEvent me) {
          mStart = me.getPoint();
     public void mouseReleased(MouseEvent me) {
          Iterator i = mListeners.iterator();
          Point end = me.getPoint();
          while (i.hasNext()) {
               ((OutlineListener)i.next()).mouseDragEnded(mStart, end);
          //mStart = null;
     public void mouseMoved(MouseEvent me) {
          if (mUseMove) {
               doMouseDragged(me);
     public     void addOutlineListener(OutlineListener ol) {
          mListeners.add(ol);
     public void removeOutlineListener(OutlineListener ol) {
          mListeners.remove(ol);
     private class MyRunnable implements Runnable {
          public void run() {
               Graphics g = mComponent.getGraphics();
               if (g == null) {
                    return;
               Graphics2D g2 = (Graphics2D) g;
               Stroke s = g2.getStroke();
               g2.setStroke(DASH_STROKE);
               int x = Math.min(mStart.x, mEnd.x);
               int y = Math.min(mStart.y, mEnd.y);
               int w = Math.abs(mEnd.x - mStart.x);
               int h = Math.abs(mEnd.y - mStart.y);
               g2.setXORMode(Color.WHITE);
               if (mCustomShape != null) {
                    Rectangle r = mCustomShape.getBounds();
                    AffineTransform scale = AffineTransform.getScaleInstance(w / (double)r.width, h / (double)r.height);
                    AffineTransform trans = AffineTransform.getTranslateInstance(x - r.x, y-r.y);
                    g2.transform(trans);
                    g2.transform(scale);
                    try {
                         g2.draw(mCustomShape);
                    catch (java.lang.InternalError error) {
                         //this is a really bad thing to be catching!
                         error.printStackTrace();
                    //something
               } else {
                    if (mShape == RECTANGLE) g2.drawRect(x, y, w, h);
                    else if (mShape == OVAL) g2.drawOval(x, y, w, h);
                    else if (mShape == LINE) g2.drawLine(mStart.x, mStart.y, mEnd.x, mEnd.y);
               g2.setStroke(s);     
     public void doMouseDragged(MouseEvent me) {
          mEnd = me.getPoint();
          if (mStart != null) {
               mComponent = me.getComponent();
               mComponent.repaint();
               SwingUtilities.invokeLater(mRunner);
     public static MouseDragOutliner addAMouseDragOutliner(Component c) {
          MouseDragOutliner mdo = new MouseDragOutliner();
          c.addMouseListener(mdo);
          c.addMouseMotionListener(mdo);
          return mdo;
     public static interface OutlineListener {
          public void mouseDragEnded(Point start, Point finish);
     public static void main(String[] args) {
          JFrame f = new JFrame("MouseDragOutliner Test");
          Container c = f.getContentPane();
          JPanel p = new JPanel();
          //p.setBackground(Color.BLACK);
          c.add(p);
          MouseDragOutliner outliner = addAMouseDragOutliner(p);
          outliner.setShape(LINE);
          Shape a = PaintUtils.createStandardStar(100, 100, 5, .3, 0);
          outliner.setCustomShape(a);
          f.setBounds(200, 200, 400, 400);
          f.addWindowListener(new WindowClosingActions.Exit());
          f.setVisible(true);
============
PaintUtils
============
* Created on Jun 25, 2005 by @author Tom Jacobs
package tjacobs.ui.util;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.GraphicsConfiguration;
import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;
import java.awt.Point;
import java.awt.Polygon;
import java.awt.Shape;
import java.awt.Transparency;
import java.awt.geom.Area;
import java.awt.geom.Ellipse2D;
import java.awt.image.BufferedImage;
import javax.swing.JPanel;
public class PaintUtils {
     private PaintUtils() {
          super();
          // TODO Auto-generated constructor stub
     public static StringBuffer printPoint(Point p) {
          return new StringBuffer("" + p.x + "," + p.y);
     public static void drawArc(Graphics2D g, int x, int y, int width, int height, double start, double end, int innerXOffset, int innerYOffset) {
          Area a = createArc(x, y, width, height, start, end, innerXOffset, innerYOffset);
          g.draw(a);
     public static void fillArc(Graphics2D g, int x, int y, int width, int height, double start, double end, int innerXOffset, int innerYOffset) {
          Area a = createArc(x, y, width, height, start, end, innerXOffset, innerYOffset);
          g.fill(a);
     public static Area createArc(int x, int y, int width, int height, double start, double end, int innerXOffset, int innerYOffset) {
           Shape s = new Ellipse2D.Double(x,y, width, height);
           Area a = new Area(s);
           int center_x = x + width / 2;
           int center_y = y + height / 2;
           int xs[] = new int[6];
           int ys[] = new int[6];
           xs[0] = center_x;
           ys[0] = center_y;
           double middle = start + (end -start) / 2;
           double quarter1 =start + (middle - start)/2; //new point in the polygon between start and middle
           double quarter2 =middle + (end - middle)/2; //new point in the polygon between middle and end
           int pt1_x = (int) (center_x + width * Math.cos(start));
           int pt1_y = (int) (center_y + height * Math.sin(start));
           int pt2_x = (int) (center_x + width * Math.cos(end));
           int pt2_y = (int) (center_y + height * Math.sin(end));
           int mid_x = (int) (center_x + width * Math.cos(middle)); //now there is no need to *2 because with a polygon with 6 points the worst case (360 degrees) is guaranteed
           int mid_y = (int) (center_y + height * Math.sin(middle));
           int quar1_x= (int) (center_x + height * Math.cos(quarter1)); //calculates the x and y for the new points
           int quar1_y= (int) (center_y + height * Math.sin(quarter1));
           int quar2_x= (int) (center_x + height * Math.cos(quarter2));
           int quar2_y= (int) (center_y + height * Math.sin(quarter2));
           //inserts the new points in the polygon' array in the rigth order
           xs[1] = pt1_x;
           ys[1] = pt1_y;
           xs[2] = quar1_x;
           ys[2] = quar1_y;
           xs[3] = mid_x;
           ys[3] = mid_y;
           xs[4] = quar2_x;
           ys[4] = quar2_y;
           xs[5] = pt2_x;
           ys[5] = pt2_y;
           Polygon p = new Polygon(xs, ys, 6); // create the new polygon with the 6 points
           Area clip = new Area(p);
           a.intersect(clip);
          Ellipse2D.Double inner = new Ellipse2D.Double(x + innerXOffset, y + innerYOffset, width - innerXOffset * 2, height - innerYOffset * 2);
          a.subtract(new Area(inner));
          return a;
     public static Polygon createStandardStar(double width, double height, int points, double centerRatio, double angleOffset) {
          int pts = points * 2;
          int xs[] = new int[pts];
          int ys[] = new int[pts];
          double xrad = width / 2;
          double yrad = height / 2;
          int innerx = (int) (xrad * centerRatio);
          int innery = (int) (yrad * centerRatio);
          double startangle = 0 + angleOffset;
          double anglePer = 2 * Math.PI / points;
          for (int i = 0; i < points ; i++) {
               double angle = startangle + anglePer * i;
               xs[i * 2] = (int) (xrad + xrad * Math.sin(angle));
               ys[i * 2] = (int) (yrad - yrad * Math.cos(angle));
               xs[i * 2 + 1] = (int) (xrad + innerx * Math.sin(angle + anglePer / 2));
               ys[i * 2 + 1] = (int) (yrad - innery * Math.cos(angle + anglePer / 2));
          Polygon p = new Polygon(xs, ys, pts);
          return p;
     public static BufferedImage optimizeImage(BufferedImage img)
          GraphicsDevice gd = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();                    
          GraphicsConfiguration gc = gd.getDefaultConfiguration();
          boolean istransparent = img.getColorModel().hasAlpha();
          BufferedImage img2 = gc.createCompatibleImage(img.getWidth(), img.getHeight(), istransparent ? Transparency.BITMASK : Transparency.OPAQUE);
          Graphics2D g = img2.createGraphics();
          g.drawImage(img, 0, 0, null);
          g.dispose();
          return img2;
     public static void main (String[] args) {
          //arcTest();
          standardStarTest();
     public static void standardStarTest() {
          final Polygon gon = createStandardStar(100,100, 5, .3, 0);
          JPanel jp = new JPanel() {
               public void paintComponent(Graphics g) {
                    super.paintComponent(g);
                    g.setColor(Color.BLACK);
                    ((Graphics2D)g).fill(gon);
//                    for (int i = 0; i < gon.npoints - 1; i++) {
//                         g.drawLine(gon.xpoints, gon.ypoints[i], gon.xpoints[i + 1], gon.ypoints[i + 1]);
                    g.drawLine(gon.xpoints[gon.npoints - 1], gon.ypoints[gon.npoints - 1], gon.xpoints[0], gon.ypoints[0]);
          jp.setPreferredSize(new Dimension(100,100));
          WindowUtilities.visualize(jp);
     public static void arcTest() {
          JPanel jp = new JPanel() {
               public void paintComponent(Graphics g) {
                    Graphics2D g2 = (Graphics2D) g;
                    g2.setColor(Color.RED);
                    drawArc(g2, 10,10,50,50, Math.PI / 2, 3 * Math.PI / 2, 12, 0);
                    g2.setColor(Color.MAGENTA);
                    fillArc(g2, 60,10,50,50, 0, 3 * Math.PI / 4, 6, 6);
                    g2.setColor(Color.GREEN);
                    fillArc(g2, 10,60, 50,50, 0, 3.5 * Math.PI / 2, 15, 6);
          jp.setPreferredSize(new Dimension(100,100));
          WindowUtilities.visualize(jp);

Add some System.out.println's
AffineTransform scale = AffineTransform.getScaleInstance(w / (double)r.width, h / (double)r.height);
System.out.println("Scale: " + scale);
AffineTransform trans = AffineTransform.getTranslateInstance(x - r.x, y-r.y);
System.out.println("Translation: " + trans);
System.out.println("G2 Transform: " + g2.getTransform());
g2.transform(trans);
System.out.println("G2 Transform after Trans: " + g2.getTransform());
g2.transform(scale);
System.out.println("G2 Transform after Scale: " + g2.getTransform());
try {
          g2.draw(mCustomShape);
}Here's an example output that I get when the error is thrown
Scale: AffineTransform[[0.010526315789474, 0.0, 0.0], [0.0, 0.0, 0.0]]
Translation: AffineTransform[[1.0, 0.0, 37.0], [0.0, 1.0, 35.0]]
G2 Transform: AffineTransform[[1.0, 0.0, 0.0], [0.0, 1.0, 0.0]]
G2 Transform after Trans: AffineTransform[[1.0, 0.0, 37.0], [0.0, 1.0, 35.0]]
G2 Transform after Scale: AffineTransform[[0.010526315789474, 0.0, 37.0], [0.0, 0.0, 35.0]]Basically the scale transformation is screwing things up. When I initially click on the panel and start dragging
y-r.ysometimes equals zero. This makes the y-scale factor zero, which in turn causes the graphics object to have a singular matrix when all is said and done. And I guess java2D doesn't like a singular matrix. The fix would be to make sure x-r.x or y-r.y doesen't equal zero.

Similar Messages

  • I am still trying to update my ipod touch 4 to the iOS 6 version. It is on the 4.3.5 (8L1) version. When I go to settings-General-it just says About and nothing about an update. I have no idea how to update it! Please help!

    I am still trying to update my Ipod touch 4 to the iOS 6 version. It is on the 4.3.5 (8L1) version. When I go to settings-General-it just says About and nothing about an update. I have no idea how to update it! Please help!

    You can only update via the ipod with ios 5 or later.
    You need to update via itunes on your computer as always.

  • Is it recommended to run beta software in general or just wait for a stable update in Lion 10.7 ?

    Is it recommended to run beta software in general or just wait for a stable update to make sure the Lion system in general ok ??
    What do you all suggest ?
    Example:
    Google Chrome has 13.0.782.112 Stable and 14.0.835.94 Beta on Macupdate: http://www.macupdate.com/app/mac/32956/google-chrome
    Evernote has 2.2.3 Stable and 3.0.0 Beta 4 for Lion compatible.

    Always have back-ups.
    It maybe if you have a window of oppurtunity, go for it.
    If not wait

  • AirPlay keeps turning itself on.  Thought my internal speaker was broken!  Nope.  Just have to keep turning AirPlay off.

    AirPlay, iPod3, iOS 6.0.1: AirPlay keeps turning itself on.  Seems to be since iOS update.  I thought my internal speaker was broken!  Nope.  Just have to keep turning AirPlay off.  I'm posting this both for others who might have this problem, and to ask how to keep airplay off.

    The "fix" is to get the phone repaired.  There's no magic solution for a broken phone.
    Bring your phone ant $149 to Apple for an out of warranty replacement, or find a 3rd party repair shop near you. 

  • My ipad 2 got repaired like 4 months ago from a broken screen. I just saw that the side of the ipad is lifted like if the glue isn't glued right any suggestions how to repair??

    My ipad 2 got repaired like 4 months ago from a broken screen. I just saw that the side of the ipad is lifted like if the glue isn't glued right any suggestions how to repair??

    If the screen was repaired by anyone other than Apple ,They will not touch it
    you will have invalidated your warranty

  • Macbook Pro slow, pixellated, broken in general

    My Macbook, which I bought in mid 2012, was wrking fine this past week and now it just went to ****. The screen flashes either grey or "broken tv snowstorm" depending on its mood. Here is a video of it: http://tinypic.com/player.php?v=2v8ju3c%3E&s=8#.Uz718Ba1y34
    It also refuses to open certain applications like Chrome.
    I cant type very well because every second or so it lags and any clicks or keys pressed in that time are invalid.
    I have rebooted and everything but nothing works..
    Can someone assist me?
    Steve

    Please make a Genius Appointment and take it in for service.

  • Hi there, i have a ipod nano general 7, just used one year. Now can't charge battery. When charging, the icon shows full power, but disconnect it. It becomes dark, no power. Why, the battery doesn't work ?

    I've a ipod nano general 7, I've just used it one year. Now, I can't charge the battery. When charging, the icon shows full power. But when I disconnect, the ipod becomes dark, no power is keeped. Why, the battery doesn't work ? the life of my ipod's battery is too short ? 

    Howdy tamsg,
    Welcome to Apple Support Communities.
    The article linked below provides a lot of great troubleshooting tips that can help you resolve the issue with your iPod nano charging or displaying a blank black screen.
    iPod nano (7th generation): Hardware troubleshooting - Apple Support
    So long,
    -Jason

  • Superdrive - How can I tell if its broken or I'm just using it wrong?

    I've had my Quad PPC G5 for a while now, and the Superdrive has always been flakey...
    When I try to burn my vids using DVD Studio Pro mostly (but other software is used), it says it burns, but when move it to other machines or my TV, the vids freeze midway... When i copy the files to my PC and burn from there using Roxio, it burns fine & plays fine... I'm afraid to use the Superdrive now as I've given my stuff to people and they can't play it..
    I also have problems ejecting discs once theyre in the drive...If i have nothing in there, eject works fine, but if i put discs (any discs) in there, I have to reboot and hold down the eject button to get them out...
    I have AppleCare, but before i call, I'm hoping it is just a matter that I;m doing something wrong or using cheap DVDs (Generic DVD-R's 16X speed)... Buit that wouldn't explain away the eject issue...
    Any ideas? Thanks!

    Hi James-
    Here's the info on your drive (performance review):
    http://www.cdfreaks.com/reviews/First-look-LG-GSA-4165B-DVD-Burner/1st-look-conc lusion.html
    The maker is LG- typically receives good reviews.
    I notice that you are running OS 10.4.6. How long has it been since you did a system reinstall? With regard to the eject function, it could very well be that you have some corrupt files within the OS. Could be that a repair with Disk Utility could help. Beyond this, an Archive and Install may be useful, followed by (preferred) a clean system reinstall. A simple re-update might be all that is needed.....
    But, since the drive has displayed the problem from the beginning, it does tilt the balance towards a hardware problem. Having said this, depending on the original OS version (10.4.2?), and the update history, the problem could lie within the firmware, or, system software.
    Does the problem occur in a different user account? Setting up a second user account, with Admin privileges, is a good trouble shooting technique. If no problem, then it is in your account only. If the same, the saga continues.......
    So- first, I would run Disk Utility (booted from install disk) and repair the hard drive. I would also repair permissions. Following this (after testing the drive) I would try a re-application of the 10.4.6 Combo Update:
    http://www.apple.com/support/downloads/macosx1046comboforppc.html
    Should this fail, I think I would be inclined to use my Applecare.
    As for the disk reading and writing- take note of the makers that are listed on the bottom of the review (1st look conclusion) page that I linked. Can't go wrong with them. Also, look at user responses on the following (select format):
    http://www.cdfreaks.com/media/
    G4AGP(450)Sawtooth, 2ghz PowerLogix, 2gbRAM, 300gbSATA+160gbATA, ATI Radeon 9800   Mac OS X (10.4.8)   Pioneer DVR-109, ExtHD 160gb x2, 23"Cinema Display, Ratoc USB2.0, Nikon Coolscan

  • IS my ipod battery broken or is it just me

    ok heres the problem i just bought an ipod video and it works fine but after watching about 30 min of videos the battery indicator tells me its half empty then when i turn the ipod off its almost at full and same thing with music and is it suposed to drain that much for videos

    Calibrate the battery and the battery meter.

  • TA48312 i  have ip and need to download ios 5, my computer runs windows 6 and ip has no update button under general to just download updates what can i do?

    i have an i pad, plain not a ipad 2, it doen't have update button under general settings, how do i get ios 5.l.......download.  Then i go to i turnes and can't fine where to go for the download everyone directs me to in the i tunes store.

    You must upgrade to iOS 5 or greater to have such a feature.
    See the chart below to determine whether you can upgrade your device and what you can upgrade to.
    IPhone, iPod Touch, and iPad iOS Compatibility Chart
         Device                                       iOS Verson
    iPhone 1                                      iOS 3.1.3
    iPhone 3G                                   iOS 4.2.1
    iPhone 3GS                                 iOS 6.1
    iPhone 4                                      iOS 6.1
    iPhone 4S                                    iOS 6.1
    iPhone 5                                      iOS 6.1
    iPod Touch 1                               iOS 3.1.3
    iPod Touch 2                               iOS 4.2.1
    iPod Touch 3                               iOS 5.1.1
    iPod Touch 4                               iOS 6.1
    iPod Touch 5                               iOS 6.1
    iPad 1                                          iOS 5.1.1
    iPad 2                                          iOS 6.1
    iPad 3                                          iOS 6.1
    iPad 4                                          iOS 6.1
    iPad Mini                                     iOS 6.1
    Select the method most appropriate for your situation.
    Upgrading iOS
       1. How to update your iPhone, iPad, or iPod Touch
       2. iPhone Support
       3. iPod Touch Support
       4. iPad Support
         a. Updating Your iOS to Version 6.0.x from iOS 5
              Tap Settings > General > Software Update
         If an update is available there will be an active Update button. If you are current,
         then you will see a gray screen with a message saying your are up to date.
         b. If you are still using iOS 4 — Updating your device to iOS 5 or later.
         c. Resolving update problems
            1. iOS - Unable to update or restore
            2. iOS- Resolving update and restore alert messages

  • Please help me to repair my broken IPAD screen I just bought it two months back while my wife is cleaning around something has fallen down on the screen which damage the front side however, everything is working fine including app, wifi?

    BTW , I live in Saudi Arabia

    Sorry, but I cannot tell you what the "best" option would be. You can take the iPad to an authorized Apple service provider and have the iPad replaced. Unless you purchased AppleCare+ for the iPad (I don't know if that plan is offered in the KSA) then you will have to pay Apple's out-of-warranty exchange price. You can search for an authorized service center through this web page:
    http://www.apple.com/uk/buy/locator/
    There are independent iPad repair services that may be able to replace the screen for less. Do a web search for "ipad repair".  Note, though, that if you elect to have the iPad serviced by an unauthorized shop, all further warranty will be void. It is also possible to find parts and do a repair yourself, though you do so completely at your own risk.
    It will be up to you to decide which option is best for you.
    Regards.

  • Is Drift In text behavior broken, or is it just me?

    The Drift In behavior (found in Behaviors/Text Sequence/Text Basic) is great for sliding text into place on the screen ... unless you want to slide from the right. Am I doing something wrong?
    I drop the default behavior on a text object and it looks like this:
    The default gives me exactly what I want: text sliding from left to right. Now I want the next text object to slide right to left. So I change the Direction parameter:
    But it still slides in from left to right!?! This control seems to have no effect. Am I missing something here?

    The reason it doesn't work like you were hoping is because that specific behavior has the text sliding in from a specific position on the left, set in the "Format" section at the top of the behavior. Changing the direction doesn't change the position of where the text animates in from, only which character, word, or block starts the animation. Try changing the Unit Size to Character, then changing the direction from Left to Right, then Right to Left to see what I'm talking about. You'll see the same Drift In animation, only it will start from the left-most character when Left to Right is selected, but will start from the right-most character when Right to Left is selected.
    To get what you're looking for, open up the parameters at the top of the behavior and change the Position X parameter to a positive value. It's set to -220, simply change it to 220, and your text will move in from the right.

  • Is this group broken or that's just me?

              I can see only two postings as of today and "Next Page" button brings the same
              page...
              -- ME
              

    Most bea groups seem to be having trouble, all but a few messages have
              dissapeared from them. Hope they sort it out..
              //LN
              "mike" <[email protected]> wrote in message
              news:3deba252$[email protected]..
              >
              > I can see only two postings as of today and "Next Page" button brings the
              same
              > page...
              >
              > -- ME
              

  • Is there a way to use locations to do more than just basic network config?

    Hello,
    I'm trying to figure out if the network location can be used to do more than just the basics. For example, is there a way to automatically connect to network drives when I'm at a particular location? Trying to connect to them all the time (as a login item for example) makes the computer slow down whenever I'm at a different location. Also, is there a way to change the default printer or even sharing of pictures or music? It doesn't make sense to have a default printer something that's not available anymore at my new location, right?
    What would be the best way to automatize all this (if it's not already supported?)
    Many thanks in advance,
    Adrian

    You can create many calendars. Here's the tip:
    Example: you have 1 son and 1 daughter.
    In iCloud ( https://www.icloud.com )
    Create 1 calendar called Son ( Choose a color to tell them apart )
    Create 1 calendar called Daughter ( Ditto )
    Create 1 calendar called Kids
    Since you are the creator, you get to see all calendars combined.
    Send invitations to each of them
    Son gets Son and Kids calendars
    Daughter gets Daughter and Kids calendars
    So if there an event for Son, just put in that calendar
    If it's for both then enter it in the Kids calendar
    Likewise for daughter.

  • Just installed, minimal config, ethernet not recognized (or something)

    I just installed Arch, but although ifconfig recognizes my ethernet card, pacman consistently (across reboots) returns a "cannot connect" type error for every host. Please help!

    !! don't use the ftp.archlinux.org mirror as it's being throttled as of late.
    1) You can use the rankmirrors script to sort your mirrors based on speed..  search for it in the forums.  It's going to be included in pacman 3!
    2) you can use the aria2 methods mentioned in the Improve Pacman Performance wiki.  I recommend not using the 2 connection per server as it seems kind of abusive.  I just started using the pacget script myself and it distributes the load amongst all the servers.  Seems to speed things up greatly and is supposed to support resuming.

Maybe you are looking for

  • APD Process for Cube -  ODS data transfer.

    hi, Two data sources (cube and ODS) are feeding another ODS. I want to delete the data in Data target (ODS)belongs to that particular infosource for every data load if it comes from the same infosource without using process chain or events. (I want t

  • Macbook pro lid squeaks

    hi guys, i have a macbook pro mid 2009. The top lid makes a squeaking sound whenver i want to close it, opening is fine. it almost sounds like its rubbing against something something? my warranty has run out so calling apple wouldnt do much. i dont w

  • Copying data for custom includes in FB50

    I have added new fields to FB50 by using the screen painter in SAPLFSKB screen 100. I created new fields in CI_COBL called ZZNAME1 and ZZPARVW. These now appear on FB50. The problem is, data that is entered into those fields disappears when trying to

  • Partition problem

    i was wondering how could i get the following error when my partition strategy is partition by range (service_dt) partition call_minvalue values less than (to_date('2007-07-09','YYYY-MM-DD')) tablespace data1, partition call_part_20070719 values less

  • Auto assignmrnt of batch no. in MIGO

    dear friends, I want to assign batch no. of vender provided materials automatically  to the receiving material in MIGO. I provide material to vender with batchs. In MIGO while doing GRN, I select the provided materials batches by batch  determination