I've Done it! Whoop!

Hey everyone,
I've been having a little battle with integrating OD and AD and spent much time reading through pdf's, looking through afp584.com and of course these lovely forums. Finally I have done it and would like to share with you all just incase you are in the dark as I once was and found it difficult to get started.
Just to set the scene as it were, I am using this setup in a college environment where students will use both Mac and Windows client machines to access their work anywhere in the building so they are using mobile home directories. The AD server is for controlling the Windows workstations through Group Policy and handling user management and authentication. The OD Server (an xServe) is for storing home folder directories and providing Time Machine backups for staff laptops (as all staff use apple laptops) since they are much quicker, run a better file system an oh did I mention, THEY ROCK!
(Can you tell I'm a reformed Windows Admin?)
This is my rough step by step guide to setting the whole thing up:
1. Setup your AD server, (mine is a win2k3 AD domain called mydomain.private. It was originally mydomain.local but this caused some difficulties with OS X so I had to delete my domain and start again!)
2. I created 2 test users (I am using this in a college environment so one test student (we will call student!) and a test teacher (we will call teacher!)). I then created 2 groups students and teachers and added them to each group!
3. I then set up my xServe running OS X Server 10.5.1 (upgrade to 10.5.4, this has helped no end!). I set the server up in advanced mode. I then went to Server Admin and gave my xServe the following services:
AFP - Gives the apple clients access to their home directories
SMB - Gives the windows clients access to their home directories
Open Directory - Handles authentication through Kerberos-SSO to authorize users to access their home folders
4. I made the xServe a stand alone OD server. Then used Directory Utility to bind it to the AD server (/Applications/Utilities/Directory Utility.app).
5. I then went back to Server Admin and to the Open Directory settings, and joined it to he Kerberos Realm. Click the "Join Realm" button, choose your domain from the drop down list "mydomain.private" and authenticate as a local admin. However, no confirmation was given to say I had joined the realm the dialogue box just disappeared?
run this command in the terminal:
sudo klist -ke
and see your server listed three times per service it is providing, it will look like something like this:
afpserver/[email protected] (ArfFour with HMAC/md5)
afpserver/[email protected] (DES cbc mode with CRC-32)
afpserver/[email protected] (DES cbc mode with RSA-MD5)
Also I ran another terminal command to confirm the kerberos-sso integration was working to make sure user details were being passed from the AD server to the OD server to authenticate users to use their home folders:
dsconfigad -enable sso
That may need a "sudo" first? Now you are “Kerberised' between the OD and AD server you can promote your stand alone OD server to an OD Master! Wu-hay! Here you will have to make a Directory Administrator user (usually diradmin short name) which is separate to your Local Administrator account.
6. Next I went into Workgroup Manager (authenticate as local admin) and connected to the local directory system, /LDAPv3/127.0.0.1 (now authenticate as diradmin). If the local LDAP directory isn't already in the list of available directories as mine wasn't, just click the globe icon and select other from the drop down list, then in the pop-up window chose LDAPv3 > 127.0.0.1 and click OK. Use the padlock on the right hand side of the workgroup manager to authenticate.
Once authenticated and working on the correct directory system (the local LDAP directory), I created two groups, "student imports" and "teacher imports" and guess what? When I went to add members, I selected the "/Active Directory/All Domains/" directory system, and added my user "student" to the "student imports" group and the other user "teacher" to the "teacher imports" group!
7. Now go back to Server Admin, select the SMB option and go to the settings tab at the top. My server is set as a "Domain Member" and all the fields have been auto populated with the computer name, domain name and realm so we can see everything is coming together. I wont talk about the security settings those are different for everyone, you may want gust access you may not? You may want to turn off NTLM and Lan Manager and keep just NTML 2 & Kerberos on if you are using Windows XP and above workstations; or not if you have Windows 98/2000 work stations? Again this is the same for the AFP service. I have guest access turned off, and authentication set to Kerberos only because its nice and secure and most importantly, cross-platform! If at this point in time you don't know anything about kerberos drop me a line and I will send you an excellent little 10 minute movie which explains what it is and how it works.
8. Share Points! Here we go!
Under Server Admin, select your server in the left hand pane, and choose File Sharing from the top. Again I don't want to go into what Share Points are and how to set them up, that is fairly easy and well documented. So, I created two share points, you guessed it:
Students
Teachers
These are both sharing over smb and afp so teachers and students can logon to either a Mac or Windows client to get their work. POSIX permissions are:
Local Admin Read & Write < Owner
Student Imports Read & Write < Group
Others None <Other
This handles things for the Mac clients just fine. Just add one ACL for "Student Imports" for the windows clients (mine is set to “Full Control” for testing purposes then I slowly step it down as I get things set up). This is all the same for the teachers also just using the Teacher Imports group instead. Since these are home folder mounts "Enable Automount" has to be enabled. Also with the protocol options that's up to you, I have turned off all guest access, and only have afp and smb sharing turned on.
Now all you need to do is bind a test Mac and Windows machine to the domain to test your setup. With the windows machine its dead simple, just bind to the AD server and authenticate as an AD Admin account or any account that has "Domain Joining" privileges. With the Mac client, use Directory Utility to bind your Mac to the AD SERVER FIRST!!! Then the OD second. The order is important here. Read "Leveraging Active Directory on MAC OS X", it's a pdf document. As I write this the current version is 2.0, its great! It also has a generous amount of links and references to other resources at the end so after reading it and everything it references you can't go wrong! I had a previous version, 1.1 I think, which I lost, and I think it was written by Bombich? So I don't know who did version 2.0 it doesn't say but well worth a read!
Test logging in as student from you mac, save something to the home folder. Then log in as the student user on the windows machine check your mapped network drive (H:) and make sure the saved something is there, edit it for example if it were a text document. And make another. Log back in on the mac again. Make sure the file changes have been saved and you can see them, and you can see and edit the new file. This will confirm there aren't any cross-platform and share point permission issues.
N.B. I have used workgroup manager to set users home directories on the xServe. Open WGM and authenticate to the AD Directory. Select your user and set their home folder to the appropriate share point, an example would be:
smb://myXserve.mydoamin.private/students/student
Under active directory this will show up in the user account as a mapped network drive (assigned the letter H: by default). I have used group policy management console to make "My Documents" a shortcut/redirect to the users H: drive when they log on!
When things start going wrong, fire up the Console app on the OS X server, Console is your friend! I can not lie, it can only point you in the right direction by showing what's wrong! Also these forums are great and just google google google!
I hope this has helped some how. Feel free to ask about something I have written, I will answer the best I can but I am new to Mac Administration. I only have one other server that is a 10.4.11 server running as a OD Master on its own.
Search the forums, google everything, check afp548.com, bombich.com etc. Get all the apple server administration pdfs. The information for this is out there, its just scattered around and needs piecing together for your particular requirements.
Thanks to everyone that help me, I can't mention you all, it was over many 'a forum post to which many people have replied. If you have ever replied to a post I have started, thanks!
r00tb00t

You could have used it as an overlay and just need to map out the colors for the three states
http://dvdstepbystep.com/newmap.php
Or layers (not as reliable)
http://dvdstepbystep.com/layersover.php

Similar Messages

  • Yahoo mail starts to open an email (I can see the content) but then a message comes up saying "Whoops! The page could not be found. Try giving it another chanc"

    When i am in Yahoo mail and am opening on an email to open, the email starts to open (I can see the content of the email for a second) and then I get a screen with a message that states 'Whoops! The page could not be found. Try giving it another chance below'. But the email had been there so I don't understand that is happening. This just stated happening about a week or two ago. There is a search bar in the center of the screen and at the bottom of the error page is the following.
    Contact us | Why did I get this page?
    © 2012 Conduit

    Make sure that you access the Yahoo mail page via the Yahoo home page and not via a bookmarked link to a specific page.<br />
    The latter may include POST or GET data that is no longer valid.
    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"
    You can also check for issues caused by extensions.
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • DrLazaroJamF It can be done... challange complete....

    Here ya go without a SpringLayout. However I still don't get GridBagLayout.
         private static void addComponentsToPane(Container pane)
              JPanel northPanel  = new JPanel();
              northPanel.setLayout(new GridLayout(4, 2) );
              //Create Needed components
              String[] labelsText = {     "Type: ","Type: ", "Jurs Code: ", "Amount: "};
              JLabel[] labels = setLables(labelsText);
              String[] inputFieldsText = {"", "", "", ""};
              JTextField[] inputFields = setTextFields(inputFieldsText);
              String[] buttonsText = {"Calculate Taxes"};
              JButton[] buttons = setButtons(buttonsText);
              String[] textAreaText = {""};
              JTextArea[] textArea = setTextArea(textAreaText);
              //Add components to northPanel
              for(int count = 0; count < labels.length; count++){
                   northPanel.add(labels[count]);
                   northPanel.add(inputFields[count]);
              //Add components to the centerPanel
              centerPanel.add(buttons[0]);
              //Add components to the southPanel
              centerPanel.add(textArea[0]);
              //Add components to JFrame Panel
              pane.add(northPanel,BorderLayout.NORTH);
    //******************************* Private Functions ************************************
         private static JTextArea[] setTextArea(String[] txtArray){
              JTextArea[] txtArea = new JTextArea[txtArray.length];
              for(int count = 0; count < txtArray.length; count++){
                   txtArea[count] = new JTextArea(txtArray[count], 10, 10);
              return txtArea;
         private static JLabel[] setLables(String[] txtArray){
              JLabel[] labels = new JLabel[txtArray.length];
              for(int count = 0; count < txtArray.length; count++){
                   labels[count] = new JLabel(txtArray[count], JLabel.RIGHT);
              return labels;
         private static JButton[] setButtons(String[] txtArray){
              JButton[] buttons = new JButton[txtArray.length];
              for(int count = 0; count < txtArray.length ; count++){
                   buttons[count] = new JButton(txtArray[count]);
              return buttons;
         private static JTextField[] setTextFields(String[] txtArray){
              JTextField[] inputFields = new JTextField[txtArray.length];
              for(int count = 0; count < txtArray.length; count++){
                             inputFields[count] = new JTextField(txtArray[count], 10);
              return inputFields;
          private static void createAndShowGUI() {
            //Make sure we have nice window decorations.
            JFrame.setDefaultLookAndFeelDecorated(true);
            //Create and set up the window.
            JFrame frame = new JFrame("GridBagLayoutDemo");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            //Set up the content pane.
            addComponentsToPane(frame.getContentPane());
            //Display the window.
            frame.pack();
            frame.setSize(300, 120);
            frame.setResizable(false);
            frame.setVisible(true);
    //*****************************  Program Main ******************************************
        public static void main(String[] args) {
             //creating and showing this application's GUI.
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
        }

    Agreed. I just got it up last night (no pun). With all of the
    info in this discussion forum it should be relatively easy to get
    it going.
    Bryan Taylor (guest) wrote:
    : Whoopie!!! I'm up.
    : Many, thanks to all of the people who have helped solve the
    : numerous obstacles. To the rest of you struggling out there,
    I've
    : put the teaser below - keep trying. I like what others were
    : saying -- They call it 8i because it works on the 8th
    install ;-]
    : It CAN be done!
    : I noticed Oracle posted they will have a patch out soon.
    : [oracle@shadow oracle]$ sqlplus system/manager
    : SQL*Plus: Release 8.1.5.0.0 - Production on Fri Aug 6 23:08:53
    : 1999
    : (c) Copyright 1999 Oracle Corporation. All rights reserved.
    : Connected to:
    : Oracle8i Enterprise Edition Release 8.1.5.0.0 - Production
    : With the Partitioning and Java options
    : PL/SQL Release 8.1.5.0.0 - Production
    : SQL> select 'Hello World' from dual;
    : 'HELLOWORLD
    : Hello World
    : SQL>
    null

  • [done] Alternative to compiz (unusual "tiling compiz" setup)

    Compiz isn't doing so well...hasn't been for a while... and I wonder what I'm going to do when it will get too hard to keep working on my machine... guess my way of working with compiz is rather far away from the standard... is there another window manager around that can be set up to work (almost) like what I'm used to?
    Most important feature for me include but are not limited to:
    - The grid plugin. I mostly use compiz as a tiling window manager, without window decorations. The easy & fast "num pad / 3 available sizes toggle, 9 center points" is ideal for me.
    - Desktop Plane / Expo on a mouse button: I use this to drag windows around. Also to drag them to the desktop I want them on. Also to get a quick overview of what's happening on the other desktops... like keeping an eye on resync while I watch a video fullscreen.
    - Fish Eye / Magnifier / mousewheel on top screen edge: If have this set up to work with screen edge instead of keyboard keys, because usually when I need it I don't have my keyboard with me. I tend to walk around with my mouse a lot and that's when I want quick & easy access to the magnifier / fish eye.
    - Setting rules for windows. Mostly for window decorations: I only want those on "temporary / floating / popup" sort of windows... the rest is tiled neatly anyway.
    - Scale plugin on a mouse button. So I can easily switch between windows that are on different desktops. Also as I don't have window decoration for most programs, I use it to close programs.
    - widget layer: I like conky. And I like a panel (when I don't have my keyboard with me). Just don't want to see it always.
    So... if you use a (sort of) similar setup / "workflow" but another window manager - let me know which one please, thanks!
    Last edited by whoops (2012-06-11 13:26:22)

    DE Base... like: compiz + xfce4session + a little bit of lxde = does everything I want. Has been great for years... just it's starting to look like it won't be working much longer. Compiz is hardest to replace I guess, the rest that's missin whould be easy once I found something that has the freatures described above. 
    Hard to describe that fish-eye-thing better than in the first post... hmm....  if I have some sort of fish eye where I can bind the mouse wheel at screen edges to zoom in + zoom out... then I can... more easily do anything I can do without a keyboard from afar? Read, click buttons, change desktop, drag files into windows... with a quick mousewheel stroke that zooms into "fisheye mode" it's a lot easier than with a normal magnifier to do things from afar, especially with a smooth / pseydo-steppless zoom. Haven't looked at gnome + kde for too long, but what I saw available there looked like just a normal magnifier which has to be started and then it's always open with a square "window".
    Also there I saw no way to specify which windows are supposed to have decorations and which ones not.
    ( And I don't have to tile windows without a keyboard, because I only very rarely need new ones - everything stays open and I can easily switch around with scale or expo plugin.)

  • Network choices don't appear ?

    I have a local network that is totally functional from a file sharing perspective;
    iChat,iTunes,iPhoto all share ... but.. one of the macs no longer shows any data on it's NETWORK window It appears on other machines NETWORK window and opens fine from that direction. I have shut down all systems including router & airport serving defective machine and of coarse double checked sharing prefs ... ?

    whoops, i meant downloaded files don't always appear on the desktop but i can see them in the terminal. it's been a long day heheh.
    all three checkboxes in finder preferences are on so they should show on the desktop, i haven't done anything in open firmware yet. so far the system is running smoothly with clamXav turned off, it's possible version 1.0.1 (what i was running) was incompatible with tiger. the retrospect clients are all at the latest version released by emc/dantz.
    i'm thinking less and less that it is a bug, especially since i can't find any mention of others having that issue on these discussion boards.

  • Snapping: Things that go snap, things that don't.

    I've been using Logic for a while now and the one thing that still drives me nuts is the terrible time I have moving things around. Specifically, when I move regions around, trim them, or adjust the loop, I can hardly ever get them to move where and how I want them to. I think I understand the snapping drop down menu. I think I understand the meaning of snap to absolute value, but my wrist, hand, and fingers would say otherwise. I must have something set incorrectly in Logic, as when I do the same basic stuff in Ableton, it is fast, accurate and simple. When I come back to Logic, i feel as if I am adjusting the depth of a miniature nail with a 40pound hammer.
    Specifically, I'm posting this now, because here I am, trying to take simple midi loop that is 4 bars long and stretch it out, looping it 4 times. Whoops, I went a little bit past the 4th time, into the fifth. No worries, I'll just drag it back a bit. But I can't seem to get it do drag back to the end point of the 4th loop. I can get it close, but it won't snap back JUST so. Even if it LOOKS like it might end right at the end of the 4th loop, if I zoom way in, there always seems to be a little bit extra.
    I fully realize that this MUST be some sort of setting issue. Or that there must be a better way of doing this, because nobody would keep using Logic if they had to do what I'm doing. Thus my new affinity for Ableton. But ya know, I'd like to do it in Logic if I can.
    Would anybody share with me how you have your snapping set? When/if you change it around? How you feel about moving things around in Logic?
    Thanks for any suggestions.

    Your grid resolution setting may be your problem. It's found on the transport. I can't recall which one I use most but I change it according to the type and depth of editing being done.

  • It can be done!

    Intense e-mailing between me and Nokia the last few days, led to  this today:
    March 6th, 2009  – I left a Nokia N81 in for repair
    June 24, 2009  – What I have demanded was to get the faulty handset back as I left, without having to pay for it. What I had given up on was the due process I am entitled, to have Nokia assess the faults.
    Nokia has today let me know that not only will get my handset, they will have it repaired w/o cost any further consideration.
    The last few days have given me some insight to what exactly was the problem.  This is my take, that Nokia has not confirmed or denied.
    It is a perfect storm of a Customer Care reps doing his own thing that is in conflict with Nokia's policies(and common courtesy), and Nokia Sweden CC management who, until I left them no room tro continue doing so chose to either go hiding so they wouldn't need to answer my questions, or deny that it had happened.  (ie that I was lying).
    I am cutting a little slack to Nokia.  This is a very typical take on SWEDISH customer care we in Sweden have seen over and over
    1) They do not believe the customer
    2) They do not believe their stuff would do anything wrong  
    3) They do not want to hear anything that contradicts their believes.
    I believe that what happened in Sweden is a Swedish customer care culture problem, rather than a Nokia problem.
    That said, I think I shouldn't have gone to the lengst I had to go to get Nokia to listen to me.
    Nokia: Please consider that if you have a single line of communication, the local customer care, it may fail, and there should still exist some way to have a discourse betweenNokia and the customer.  You know - You should be  Connecting People!
    The story's evolving at http://sweden101.wordpress.com
    6267, N81, E71, BH-503, MD-7W, LD-3W

    Agreed. I just got it up last night (no pun). With all of the
    info in this discussion forum it should be relatively easy to get
    it going.
    Bryan Taylor (guest) wrote:
    : Whoopie!!! I'm up.
    : Many, thanks to all of the people who have helped solve the
    : numerous obstacles. To the rest of you struggling out there,
    I've
    : put the teaser below - keep trying. I like what others were
    : saying -- They call it 8i because it works on the 8th
    install ;-]
    : It CAN be done!
    : I noticed Oracle posted they will have a patch out soon.
    : [oracle@shadow oracle]$ sqlplus system/manager
    : SQL*Plus: Release 8.1.5.0.0 - Production on Fri Aug 6 23:08:53
    : 1999
    : (c) Copyright 1999 Oracle Corporation. All rights reserved.
    : Connected to:
    : Oracle8i Enterprise Edition Release 8.1.5.0.0 - Production
    : With the Partitioning and Java options
    : PL/SQL Release 8.1.5.0.0 - Production
    : SQL> select 'Hello World' from dual;
    : 'HELLOWORLD
    : Hello World
    : SQL>
    null

  • MSI P55-GD80 Benchies. Whooping i5 750 @ 4.8ghz on Dry Ice!!!

    Below were shots taken from the Philippines Launch Event for MSI P55 Motherboards. My friend bartman1973 & I were invited by the local distro of MSI & got the privileged overclocking the MSI P55 GD-80 motherboard.
    Here are some pictures we took on that event. Three MSI P55 motherboards were introduced and these were MSI P55-GD80 (High-End), MSI P55-GD65 (Mainstream) & MSI P55-CD53 (Entry)
    MSI P55-GD80
    MSI P55-GD65
    MSI P55-CD53
    And here is the specifications of the demo unit we used for the event
    Quote
    Motherboard: MSI P55-GD80 beta bios 1.51 I think
    Processor: Intel i5 750 2.67 default clock
    Memory: Team Xtreem Dark 2x1GB 1866
    VC: MSI R4890 Cyclone Super Overclocked Edition (1ghz core damn!!! 1000mhz mems)
    PSU: Acbel M8 670 Modular PSU
    Harddisk: WD Raptor 150GB
    Monitor: Hanns-G HH281 28" LCD
    Cooler: Koolance
    System Snapshot
    So here are the bench scores.
    1. Lets start with stock settings
    Quote
    Vista Ultimate SP1 32bit was used for the Operating System. No tweaks at all
    2. OC Genie Enabled
    3. Air Cooling AVC Global Star from MSI was used
    For the Grand Finale. Whooping 4.8GHZ on Dry ICE!!!
    Quote
    For this last overclock run we made. We didn't have the time anymore for checking the stability of the sytem. But we are still hoping to reach the 5ghz barrier for the next following days.
    We will update you guys on this and post more benchies if ever.
    --I made your larger images clickable for those not using Firefox, and so people don't have to leave the forum to see images who do(view image in FF).
      Click the modify button to see how I hotlinked the images using url tags.
    --Mike
     

    managed to get 4.9ghz already few clocks and would hit the 5 ghz barrier already. WAAAAHHHH!!!!!. Itch itch.......
    my good friend DJSUB. Helped me out pouring some crushed Dry Ice.
    Sweet 233 Bclock ^^ . Same MSI P55-GD80 system used 

  • ITunes issue on IPhone 5s - songs don't show up

    I upgraded the operating system on my iPhone 5s to 8.1.2. I manually synced songs from an old Macbook Pro with ITunes 11.4 (the most recent version). (I can not update to iTunes 12 because my computer is not supported.) The issue is that 11 voice memos that were synced to the iPhone 5s do not show up. They do not show up as songs by the "song titles" I gave them or as the "voice memo" genre. The playlist I created for them shows up as empty. These voice memos were originally recorded on the iPhone 5s. The weird thing is that when I plug the iPhone 5s into my Macbook Pro via USB, the voice memos show up as having been transferred.  I have tried reboot the iPhone and resetting it.

    After hours of resync-ing and rebooting, I figured out what was going on. The voice memos are on the phone but they only show up in the voice memo app. They do not show up in the iTunes app. I don't need to play them in iTunes so this solves the problem for me. Hopefully, my experience will save someone else some time.

  • Balls don't move in bouncing balls game.Please Help !?

    I want to repaint the canvas panel in this bouncing balls game, but i do something wrong i don't know what, and the JPanel doesn't repaint?
    The first class defines a BALL as a THREAD
    If anyone knows how to correct the code please to write....
    package ****;
    //THE FIRST CLASS
    class CollideBall extends Thread{
        int width, height;
        public static final int diameter=15;
        //coordinates and value of increment
        double x, y, xinc, yinc, coll_x, coll_y;
        boolean collide;
        Color color;
        Rectangle r;
        bold BouncingBalls balls; //A REFERENCE TO SECOND CLASS
        //the constructor
        public CollideBall(int w, int h, int x, int y, double xinc, double yinc, Color c, BouncingBalls balls) {
            width=w;
            height=h;
            this.x=x;
            this.y=y;
            this.xinc=xinc;
            this.yinc=yinc;
            this.balls=balls;
            color=c;
            r=new Rectangle(150,80,130,90);
        public double getCenterX() {return x+diameter/2;}
        public double getCenterY() {return y+diameter/2;}
        public void move() {
            if (collide) {
            x+=xinc;
            y+=yinc;
            //when the ball bumps against a boundary, it bounces off
            //bounce off the obstacle
        public void hit(CollideBall b) {
            if(!collide) {
                coll_x=b.getCenterX();
                coll_y=b.getCenterY();
                collide=true;
        public void paint(Graphics gr) {
            Graphics g = gr;
            g.setColor(color);
            //the coordinates in fillOval have to be int, so we cast
            //explicitly from double to int
            g.fillOval((int)x,(int)y,diameter,diameter);
            g.setColor(Color.white);
            g.drawArc((int)x,(int)y,diameter,diameter,45,180);
            g.setColor(Color.darkGray);
            g.drawArc((int)x,(int)y,diameter,diameter,225,180);
            g.dispose(); ////////
        ///// Here is the buggy code/////
        public void run() {
            while(true) {
                try {Thread.sleep(15);} catch (Exception e) { }
                synchronized(balls)
                    move();
                    balls.repairCollisions(this);
                paint(balls.gBuffer);
                balls.canvas.repaint();
    //THE SECOND CLASS
    public class BouncingBalls extends JFrame{
        public Graphics gBuffer;
        public BufferedImage buffer;
        private Obstacle o;
        private List<CollideBall> balls=new ArrayList();
        private static final int SPEED_MIN = 0;
        private static final int SPEED_MAX = 15;
        private static final int SPEED_INIT = 3;
        private static final int INIT_X = 30;
        private static final int INIT_Y = 30;
        private JSlider slider;
        private ChangeListener listener;
        private MouseListener mlistener;
        private int speedToSet = SPEED_INIT;
        public JPanel canvas;
        private JPanel p;
        public BouncingBalls() {
            super("****");
            setSize(800, 600);
            p = new JPanel();
            Container contentPane = getContentPane();
            final BouncingBalls xxxx=this;
            o=new Obstacle(150,80,130,90);
            buffer=new BufferedImage(getSize().width, getSize().height, BufferedImage.TYPE_INT_RGB);
            gBuffer=buffer.getGraphics();
            //JPanel canvas start
            canvas = new JPanel() {
                final int w=getSize().width-5;
                final int h=getSize().height-5;
                @Override
                public void update(Graphics g)
                   paintComponent(g);
                @Override
                public void paintComponent(Graphics g) {
                    super.paintComponent(g);
                    gBuffer.setColor(Color.ORANGE);
                    gBuffer.fillRect(0,0,getSize().width,getSize().height);
                    gBuffer.draw3DRect(5,5,getSize().width-10,getSize().height-10,false);
                    //paint the obstacle rectangle
                    o.paint(gBuffer);
                    g.drawImage(buffer,0,0, null);
                    //gBuffer.dispose();
            };//JPanel canvas end
            addWindowListener(new WindowAdapter() {
                @Override
                public void windowClosing(WindowEvent e) {
                    System.exit(0);
            addButton(p, "Start", new ActionListener() {
                public void actionPerformed(ActionEvent evt) {
                    CollideBall b = new CollideBall(canvas.getSize().width,canvas.getSize().height
                            ,INIT_X,INIT_Y,speedToSet,speedToSet,Color.BLUE,xxxx);
                    balls.add(b);
                    b.start();
            contentPane.add(canvas, "Center");
            contentPane.add(p, "South");
        public void addButton(Container c, String title, ActionListener a) {
            JButton b = new JButton(title);
            c.add(b);
            b.addActionListener(a);
        public boolean collide(CollideBall b1, CollideBall b2) {
            double wx=b1.getCenterX()-b2.getCenterX();
            double wy=b1.getCenterY()-b2.getCenterY();
            //we calculate the distance between the centers two
            //colliding balls (theorem of Pythagoras)
            double distance=Math.sqrt(wx*wx+wy*wy);
            if(distance<b1.diameter)
                return true;
            return false;
        synchronized void repairCollisions(CollideBall a) {
            for (CollideBall x:balls) if (x!=a && collide(x,a)) {
                x.hit(a);
                a.hit(x);
        public static void main(String[] args) {
            JFrame frame = new BouncingBalls();
            frame.setVisible(true);
    }  This code draws only the first position of the ball:
    http://img267.imageshack.us/my.php?image=51649094by6.jpg

    I'm trying to draw everything first to a buffer:
    buffer=new BufferedImage(getSize().width, getSize().height, BufferedImage.TYPE_INT_RGB);
    gBuffer=buffer.getGraphics();
    The buffer is for one JPanel and then i want to draw this buffer every time when balls change their possitions(collide or just move).
    The logic is something like this:
    startButton -> (ball.start() and add ball to List<balls>),
    ball.start() -> ball.run() -> (move allballs, paint to buffer and show buffer)
    In the first class:
    BouncingBalls balls; //A REFERENCE TO SECOND CLASS
    In the second class:
    private List<CollideBall> balls=new ArrayList();
    the tames are the same but this isn't an error.
    Edited by: vigour on Feb 14, 2008 7:57 AM

  • "Enable Swipe" don't work and Tablet Layout on a Smartphone

    Hi there,
    I have two big problems with my own site www.mhgrafikdesign.de:
    1. I have different slideshows in my tablet version of my site. I created the slideshow before one of the updates with the feature "Enable swipe" came out. However, it worked well on my Samsung Galaxy Tab 10.1n. Now I have a Microsoft Surface and it's not working anymore although "Enable Swipe" is enabled. I don't know if the Microsoft Surface has problems with the slideshow or one of the updates has "damaged" my slideshow. Please help me! Any ideas?
    2. I have a HTC 8S smartphone and if I type www.mhgrafikdesign.de my smartphone always show me the tablet version. Any idea why? P.S. Swiping there is also not possible.
    Many thanks for quick help. My website is my flagship in the web and it's a little bit embarrassing if my slideshow on the tab don't work... = /

    This is now a slideshow created with Muse: Homepage
    The slideshow uses fullscreen mode and was build with the latest version of Muse. On my Win8-Tablet, it is not working. I tested this with the IE11 in desktop- and in modern-ui-mode.
    Next to this problem, I also run into these things:
    1. Using the buttons to go forward and backward in the slideshow will select the text-arrow inside the button when touched.
    2. Clicking the forward- and backward-button behaves different. Windows Desktop -> slideshow does not roll back, so you can click forever in one direction, no feedback that you reached the end. On iOS -> slideshow will be rolled back and you get the visual feedback to start over again.
    3. Zoom into the fullscreen-slideshow will result in strange and not really controllabel behaviour. Zooming in does not allow to pan.
    But I am not talking only about the phones. It is more about windows tablets in general. So, content can be viewed in the InternetExplorer11 in desktop-mode and also in modern-UI-mode (touch does work in both modes). But it is also possible, that people use other browsers like Firefox and Chrome. I think, it would be a quite a good idea to translate the movement of the mousepointer into gestures. This javascript library shows what I think is a good aproach: Hammer.JS - Hammer.js

  • Some loops don't loop in browser

    In the Loop Browser when previewing, the loops play over and over until I stop them, including ones downloaded from MacLoops. Except one group from MacLoops (Chillout) only plays once through then stops. How can I get them to play continuously like all the others?

    This one set of loops acts differently. Besides not "looping" when playing in the browser they also do not follow the tempo&pitch of the Project. (In fact the option is grayed out when the loop is in the Timeline). It's the macloops chillout set.
    http://www.macloops.com/audio/freechillout_drum_loops_forgarageband.php
    I don't think I did anything different than with the other loops of theirs I D/L'd. (I think I'll try deleting them and D/L'ing again).

  • I am trying to restore my catalog having previously done a back up to an external hard drive and subsequently an incremental backup. I am using Photoshop Elements 11 and the only option given in the restore procedure is to open a .tly file.

    I have done this but now the restore function is asking for yet another file, which i assume to be the original back up, but that is the only .tly file since the only other relevant file appears to be called catalog.buc but that is just not visible when using the restore function? How do I continue from here with this restoration of my catalog?

    Martin_Had a écrit:
    Thank you Andaleeb. I appear to have an old backup of a year ago, and a more recent full back up plus an incremental backup.
    Regrettably I don't really understand what is going on because firstly the restore does not complete its cycle so I cannot see what that backup file contains and secondly all I have read would suggest that the .tly file is the full backup and the catalog.buc file is the incremental backup. For the present, the catalog shows the photos for 2014 which makes me think I might have backed from the old back up file.
    I am minded to create another catalog and try again.
    Any views on what I can do?
    A backup (full or incremental) is a folder, not a file. It contains renamed pictures file copies as well a copies of the files and subfolders of the original catalog. The catalog.buc is a renamed copy of the database of your original catalog while the backup.tly. That backup.tly file contains the information to restore the renamed pictures where you decide, the original location or a new custom one. You can't do anything with the backup yourself, only the restore process can do the job if it finds the backup.tly file. In the case of an incremental backup, you have to tell the restore process where to find the incremental backup folder; it finds the backup.tly file in that folder and finds what is to restore there; then it asks you for the previous backup folder (in your case the full backup); you then browse to that full backup folder so that the restore process can find find the backup.tly there; the restore then deals with the rest of the files to restore.

  • I have a 27 in. iMac with the latest version of Snow Leopard. When Lion comes out, will it be software I purchase and download online? I am trying to prepare for cost and don't have a point of reference, having been a Windows guy until last summer.

    I want to know what to expect in terms of moving from one OS to another. Having been a Windows guy until last summer, my only experience is going from one version of Windows to another, which is usually a fairly costly purchase. I will want to go to Lion, but as a retired teacher, my income is fixed. I am not looking for a specific price, I am sure that is unknown, but I would just like to know help Apple does these things so I won't be sadly surprised.

    Historically Apple has sold OS X upgrades via DVD media however with the advent of the Mac Apple Store that throws another possibility into the mix. That's about as much as I can say as these forums don't allow us to speculate about future products. As for the cost historically Apple has priced OS X upgrades between $29-$129, the last upgrade (Snow Leopard) was only $29 but that was an exception. Again we cannot speculate on these forums about that. The good news is that Apple is unlike Microsoft which makes OS upgrades expensive and complicated. The choice with OS X is do you want a server version (most users don't need one) or a single computer license. The users that buy server versions tend to have a number of Macs they manage from a server, most consumers don't have this issue.
    Keep reading the news, as you know Apple has announced a Summer release for Lion.
    Upgrades on OS X are usually very simple. I've upgraded from Tiger to Leopard to Snow Leopard and each transition has been very easy. With any major OS upgrade there are some basic rules to follow, for example always, always, always backup prior to any update. When Lion is released to the general public post again for what to do to prepare or even do a Google search on "How to prepare for OS X upgrade" and you will find a number of articles that will provide some suggestions and valuable insight. You can also re-post here and users will be happy to assist.

  • Brand New MacB Air and i haven't been able to get passed the format which has had to be done twice because, I have a French Numeric Keyboard and Language in English.  The minute I type in my password, the keyboard gives me letters that i did NOT type.

    I live in Switzerland and can only buy a Mac Air with a French or German keyboard, no chance to buy an English keyboard Mac here,.  When setting up  I chose the French numerique keyboard, although there are two choices French or French numerique.  I put in my language as English.  When all was set up I came to the start page and had to put in my password, by the grace of g....I just happened to see the first letter I typed before it turned into a dot.  My password which was supposed to start with the number 2 showed a french e with accent before it quikly became a dot.
      Because of the dot system, this meant that I had no clue what the keyboard was typing as my password ...........and true enough my password was not accepted despite my trying all combinations.  I have had to reformat twice now thanks to Apple Chat and both times my password was not accepted.  I am in the process of formatting it again, this time on my own.  If the Start page does not accept my password again this can only mean that the Mac left the factory with faults.  I could not be more disappointed with the money spent and the time and trouble that Apple Chat and I have spent in trying to correct a brand new out of the box Mac.  I have a cheap Toshiba laptop also with a french keyboard and english language which gave me no trouble at all.  I am not impressed with the so called King of computers!  First of all the dot system is daft.  People want to be able to see and confirm their passwords before they are set for good.  Second,  this problem is going to give me a lot of grief.  Switzerland business is not renowned for its after sales service or the time it takes to do repairs.  When I had an issue with my Vaio laptop which was still under warranty, they kindly picked it up from my house, repaired and promptly returned it.  How's that for good proper service.

    i didn't read a lot of your 2nd paragraph, but it seems like the password is the issue, right?
    do a true clean install
    reboot your machine and hold down command+option+r, you should see a spinning globe - if you don't see the globe or anything that reads internet recovery, shut down and try again
    at menu, chose disk utility and once there, find your HD on the left side, select the physical name and erase it as mac journaled
    exit disk utlity
    at menu, choose install OSX
    this time, when it asks for a password just hit continue, it will let you complete without a password
    you should be able to get into your laptop, now figure out what password you'll be able to use with your kb issue

Maybe you are looking for

  • Payment Program and Spot Exchange Rate Type

    Hi Everyone, When performing wire transfers in foreign currency, my company wants to be able to have the payment program, F110, be able to convert the payment to the vendor based on the bank's spot rate at that moment in time.  I found that we can us

  • JDK 1.6.0_12

    I Installed Jdk1.6.0_12 ,I also set d class path &the program is compiled but Not shown d Output but i have new doubt with java i.e D program is complied successfully, But don't display d output it raaises an error with C:\Program Files\prhms>javac E

  • Where should i put html with applet class embedded?thanks

    Tomcat4.0 server i put html and applet class in the root of my project(/webapps/test/) when i hit the html file locally, it displays well. but it doesn't work when it comes to service. plus:the applet class is developed with jdk1.1.8 any help is appr

  • IPhoto won't import JPEG pics from iPhone4

    I'm not able to import photos taken with my new iPhone 4 into iPhoto; I get the warning 'unrecognized file format' and a list of files, and they're all in JPG format. Any suggestions how to solve this problem?

  • Cl_abap_char_utilities= horizontal_tab

    Hi Can someone explain me the use of class cl_abap_char_utilities=>horizontal_tab; in programming. I faced any issue working on upgradation object  regarding mutual convertablity of the fields in hexadecimal and character modes. Thanks in Advance Rgd