Don't really know where to go...

Hey there fellas....
I've got quite a weird series of problems on my hands, so I'm hoping you can help.
Basically, my whole program won't repaint, and therefore I can't really tell what the hell is going on... anyway, here goes the whole thing....
import javax.swing.*;
import javax.swing.event.*;
import java.awt.*;
import java.awt.event.*;
import java.awt.geom.*;
import java.util.*;
import java.lang.Math.*;
public class EMGame extends JFrame {
// various panes I'll need to display stuff
JPanel toppanel = null;
SimPanel simulation = null;
JPanel partsbin = null;
JPanel properties = null;
JMenuBar menubar = null;
JMenu filemenu = null;
JMenu simmenu = null;
Vector PtChargeList = null;
String ItemOnCursor = null;
JButton PtChargeButton = null;
PtCharge SelectedCharge = null;
boolean simulating = false;
JTextField ChargeProp = null;
JTextField MassProp = null;
JTextField xPosBox = null;
JTextField yPosBox = null;
JTextField zPosBox = null;
JLabel ChargePropLabel = null;
JLabel MassPropLabel = null;
JLabel xPosBoxLabel = null;
JLabel yPosBoxLabel = null;
JLabel zPosBoxLabel = null;
// main program that calls the function
public static void main(String args[]) {
EMGame game = new EMGame();
public EMGame() {
setTitle("Electricity and Magnetism Game");
     setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
PtChargeList = new Vector(10);
PtChargeList.add(0,new PtCharge(100,100,0,0,0,0, 2, 1e-30));
PtChargeList.add(1,new PtCharge(200,100,0,0,0,0,2,1e-30));
PtChargeList.add(2,new PtCharge(150,100,0,0,10,0,-8,1e-30));
PtChargeList.add(3,new PtCharge(150,120,0,10,10,0,0,1e-30));
JMenuItem menuitem;
// creating the panes
toppanel = new JPanel(new BorderLayout());
simulation = new SimPanel();
simulation.setBackground(Color.yellow);
simulation.setPreferredSize(new Dimension(700,700));
partsbin = new JPanel(new GridLayout());
partsbin.setBackground(Color.black);
partsbin.setPreferredSize(new Dimension(800,100));
PtChargeButton = new JButton("Point Charge");
PtChargeButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
ItemOnCursor = "PtCharge";
} // end actionPerformed
} // end ActionListener
partsbin.add(PtChargeButton);
properties = new JPanel(new GridLayout(20,1));
properties.setBackground(Color.white);
properties.setPreferredSize(new Dimension(100,700));
ChargeProp = new JTextField("Charge");
ChargeProp.setEditable(false);
MassProp = new JTextField("Mass");
MassProp.setEditable(false);
xPosBox = new JTextField("x-position");
xPosBox.setEditable(false);
yPosBox = new JTextField("y-position");
yPosBox.setEditable(false);
zPosBox = new JTextField("z-position");
zPosBox.setEditable(false);
ChargePropLabel = new JLabel("Charge:");
MassPropLabel = new JLabel("Mass:");
xPosBoxLabel = new JLabel("x-Position");
yPosBoxLabel = new JLabel("y-Position");
zPosBoxLabel = new JLabel("z-Position");
properties.add(ChargePropLabel);
properties.add(ChargeProp);
properties.add(MassPropLabel);
properties.add(MassProp);
properties.add(xPosBoxLabel);
properties.add(xPosBox);
properties.add(yPosBoxLabel);
properties.add(yPosBox);
properties.add(zPosBoxLabel);
properties.add(zPosBox);
menubar = new JMenuBar();
setJMenuBar(menubar);
filemenu = new JMenu("File");
filemenu.setMnemonic(KeyEvent.VK_F);
filemenu.getAccessibleContext().setAccessibleDescription("");
menubar.add(filemenu);
simmenu = new JMenu("Simulation");
simmenu.setMnemonic(KeyEvent.VK_S);
simmenu.getAccessibleContext().setAccessibleDescription("Simulation Options");
menubar.add(simmenu);
menuitem = new JMenuItem("Quit", KeyEvent.VK_Q);
menuitem.setAccelerator(KeyStroke.getKeyStroke(
KeyEvent.VK_Q, ActionEvent.CTRL_MASK));
menuitem.getAccessibleContext().setAccessibleDescription(
"Leaves the Program");
menuitem.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
System.exit(0);
} // end actionPerformed
} // end ActionListener
filemenu.add(menuitem);
menuitem = new JMenuItem("Go!!!", KeyEvent.VK_G);
menuitem.setAccelerator(KeyStroke.getKeyStroke(
KeyEvent.VK_G, ActionEvent.CTRL_MASK));
menuitem.getAccessibleContext().setAccessibleDescription(
"Starts the Simulation");
menuitem.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
simulating=true;
simulate();
toppanel.repaint();
} // end actionPerformed
} // end ActionListener
simmenu.add(menuitem);
menuitem = new JMenuItem("Stop!!!", KeyEvent.VK_S);
menuitem.setAccelerator(KeyStroke.getKeyStroke(
KeyEvent.VK_S, ActionEvent.CTRL_MASK));
menuitem.getAccessibleContext().setAccessibleDescription(
"Stops the Simulation");
menuitem.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
simulating=false;
toppanel.repaint();
} // end actionPerformed
} // end ActionListener
simmenu.add(menuitem);
/* Adding the parts together like this:
* ---------+
* | | |
* | | |
* ---------+
* | |
toppanel.add(menubar, BorderLayout.NORTH);
toppanel.add(simulation, BorderLayout.CENTER);
toppanel.add(partsbin, BorderLayout.SOUTH);
toppanel.add(properties, BorderLayout.EAST);
getContentPane().add(toppanel);
pack();
setVisible(true);
} // end EMGame Constructor
private void simulate(){
while(simulating){
for(int i=0; i<PtChargeList.size(); i++) {
if(PtChargeList.get(i) != null){
((PtCharge) PtChargeList.get(i)).calculate(.01);
} // end if
} // end for
} // end while
} // end simulate()
public class SimPanel extends JPanel implements MouseInputListener {
private Vector PartsOnScreen = new Vector(10);
public void paintComponent(Graphics g){
super.paintComponent(g);
Graphics2D g2 = (Graphics2D) g;
for(int i=0; i<(PtChargeList.size()); i++) {
PtCharge tmp = (PtCharge)PtChargeList.get(i);
if(tmp != null) {
PartsOnScreen.add(i,new Ellipse2D.Double(tmp.x, tmp.y, 10, 10));
} // end if
} // end for
for(int i=0; i<(PartsOnScreen.size()); i++) {
if(PartsOnScreen.get(i) != null) {
// color if's
int tmpcharge = ((PtCharge)PtChargeList.get(i)).charge;
if(tmpcharge > 0){
g2.setPaint(Color.blue);
} else if(tmpcharge < 0) {
g2.setPaint(Color.red);
} else {g2.setPaint(Color.gray);} // end color if's
g2.fill((Ellipse2D)PartsOnScreen.get(i));
} // end if
} // end for
} // end paintComponent
public void mouseClicked(MouseEvent e) {
// for loop to check if you clicked any charges
for(int i=0; i<(PartsOnScreen.size()); i++) {
// finds out if you clicked on a specific charge
if(((Ellipse2D)PartsOnScreen.get(i)).contains(e.getX(),e.getY())){
// if so, makes that the Selected Charge
SelectedCharge=(PtCharge)PtChargeList.get(i);
ChargeProp.setEditable(true);
ChargeProp.setText(""+SelectedCharge.charge);
ChargeProp.setEditable(SelectedCharge.getEditable());
MassProp.setEditable(true);
MassProp.setText(""+SelectedCharge.mass);
MassProp.setEditable(SelectedCharge.getEditable());
xPosBox.setEditable(true);
xPosBox.setText(""+SelectedCharge.x);
xPosBox.setEditable(SelectedCharge.getEditable());
yPosBox.setEditable(true);
yPosBox.setText(""+SelectedCharge.y);
yPosBox.setEditable(SelectedCharge.getEditable());
zPosBox.setEditable(true);
zPosBox.setText(""+SelectedCharge.z);
zPosBox.setEditable(SelectedCharge.getEditable());
} // end if
} // end for
if(ItemOnCursor!=null){
PtChargeList.add(new PtCharge(e.getX(),e.getY(),0,0,0,0,1,1e-30));
} // end if(ItemOnCursor!=null)
repaint();
public void mouseDragged(MouseEvent e) {
public void mousePressed(MouseEvent e){}
public void mouseMoved(MouseEvent e){}
public void mouseExited(MouseEvent e){}
public void mouseEntered(MouseEvent e){}
public void mouseReleased(MouseEvent e){}
} // end SimPanel
public class PtCharge /* extends Part */ {
// the mass and charge of the particle
int charge;
double mass;
// loc[6] = [x1, y1, z1], vel[3] = [Vx, Vy, Vz]
double x, y, z, Vx, Vy, Vz;
// a variable which tells it whether it moves when running simulation
private boolean CanMove;
// whether settings can be changed
private boolean CanEditSettings;
/* constructor:
* should take in arrays of points, the charge, and settings
* should assign those inputs appropriately
public PtCharge(double x, double y, double z,
double Vx, double Vy, double Vz,
int charge, double mass){
// setting the variables
this.charge=charge;
this.x=x;
this.y=y;
this.z=z;
this.Vx=Vx;
this.Vy=Vy;
this.Vz=Vz;
this.mass=mass;
this.CanMove=true;
this.CanEditSettings=true;
} // end constructor
// should calculate the next position
public void calculate(double step) {
double k1[]=null;
double k2[]=null;
double k3[]=null;
double k4[]=null;
double l1[]=null;
double l2[]=null;
double l3[]=null;
double l4[]=null;
//for(int i=0;i<3;i++)
k1[0]=step*Vx;
k1[1]=step*Vy;
k1[2]=step*Vz;
l1=force(x,y,z,Vx,Vy,Vz);
l1[0]*=step;
l1[1]*=step;
l1[2]*=step;
k2[0]=step*(Vx+l1[0]/2);
k2[1]=step*(Vy+l1[1]/2);
k2[2]=step*(Vz+l1[2]/2);
l2=force(x+k1[0]/2,y+k1[1]/2,z+k1[2]/2,Vx+l1[0]/2,Vy+l1[1]/2,Vz+l1[2]/2);
l2[0]*=step;
l2[1]*=step;
l2[2]*=step;
k3[0]=step*(Vx+l2[0]/2);
k3[1]=step*(Vy+l2[1]/2);
k3[2]=step*(Vz+l2[2]/2);
l3=force(x+k2[0]/2,y+k2[1]/2,z+k2[2]/2,Vx+l2[0]/2,Vy+l2[1]/2,Vz+l2[2]/2);
l3[0]*=step;
l3[1]*=step;
l3[2]*=step;
k4[0]=step*(Vx+l3[0]);
k4[1]=step*(Vy+l3[1]);
k4[2]=step*(Vz+l3[2]);
l4=force(x+k3[0],y+k3[1],z+k3[2],Vx+l3[0],Vy+l3[1],Vz+l3[2]);
l4[0]*=step;
l4[1]*=step;
l4[2]*=step;
// updating the x's, y's, z's
x+=k1[0]/6+k2[0]/3+k3[0]/3+k4[0]/6;
y+=k1[1]/6+k2[1]/3+k3[1]/3+k4[1]/6;
z+=k1[2]/6+k2[2]/3+k3[2]/3+k4[2]/6;
//updating Vx's, Vy's, Vz's
Vx+=l1[0]/6+l2[0]/3+l3[0]/3+l4[0]/6;
Vy+=l1[1]/6+l2[1]/3+l3[1]/3+l4[1]/6;
Vz+=l1[2]/6+l2[2]/3+l3[2]/3+l4[2]/6;
} // end move
private double[] force(double x, double y, double z, double Vx, double Vy, double Vz){
final double k = 8987551787.3683;
// the components of the B-field at the point charge (x,y,z)
double Bx=0, By=0, Bz=0;
double Ex=0, Ey=0, Ez=0;
double f[]=null;
for(int i=0; i<PtChargeList.size(); i++){
// a temporary variable that is used to simplify code below
PtCharge tmp = (PtCharge)PtChargeList.get(i);
// the distance beween the current point charge and the other one, cubed
double denom = Math.pow((tmp.x-x)*(tmp.x-x)+(tmp.y-y)*(tmp.y-y)+(tmp.z-z)*(tmp.z-z), 1.5);
// B = (mu0/4pi)*q (v X (r-r1))/|r-r1|^3
Bx+=(tmp.charge)/10000000*((tmp.Vz*(y-tmp.y))+(tmp.Vy*(tmp.z-z)))/denom;
By+=(tmp.charge)/10000000*((tmp.Vz*(tmp.x-x))+(tmp.Vx*(z-tmp.z)))/denom;
Bz+=(tmp.charge)/10000000*((tmp.Vy*(x-tmp.x))+(tmp.Vx*(tmp.y-y)))/denom;
// E = k*q/r^2 rhat = kq/r^3 *r
Ex+=k*tmp.charge/denom*(tmp.x-x);
Ey+=k*tmp.charge/denom*(tmp.y-y);
Ez+=k*tmp.charge/denom*(tmp.z-z);
} // end for
f[0] = (this.charge*(Bz*Vy-By*Vz) + this.charge*Ex)/this.mass;
f[1] = (this.charge*(Bx*Vz-Bz*Vx) + this.charge*Ey)/this.mass;
f[2] = (this.charge*(By*Vx-Bx*Vy) + this.charge*Ez)/this.mass;
return f;
}// end force
public void setEditable(boolean bool) {
this.CanEditSettings=bool;
} // end setEditable
public boolean getEditable() {
return this.CanEditSettings;
} // end getEditable
public void setCanMove(boolean bool) {
this.CanMove=bool;
} //end setCanmove
public boolean getCanMove() {
return this.CanMove;
} //end getCanMove
} // end PtCharge
}

You get the ArrayIndexOutOfBoundsException because of this part:
for(int i=0; i<(PartsOnScreen.size()); i++) {
     if(PartsOnScreen.get(i) != null) {
          // color if's
          int tmpcharge = ((PtCharge)PtChargeList.get(i)).charge;
          if(tmpcharge > 0){
               g2.setPaint(Color.blue);
          } else if(tmpcharge < 0) {
               g2.setPaint(Color.red);
          } else {g2.setPaint(Color.gray);} // end color if's
          g2.fill((Ellipse2D)PartsOnScreen.get(i));
     } // end if
} // end forYour for loop goes from 0 to the size of the PartsOnScreen Vector, but you use it to index PtChargeList. That won't work unless you know for sure that PartsOnScreen and PtChargeList are always the same size.
You'll also find that you have a lot of NullPointerExceptions because you don't initialize your local arrays. There are many places where you use double[] f = null;That array doesn't exist yet. You need to allocate storage for it using double[] f = new double[3];The repaint problem happens because you're doing everything on the event dispatch thread. Normally, that thread is used for processing events. When the Simulate MenuItem is pressed, the event dispatch thread runs the actionPerformed code for that menu item, which starts the simulation. The simulation goes into an endless loop, which ties up the event dispatch thread so that it can't process any more events. That's why you can't click on anything or close the window once the simulation has started. The event dispatch thread is stuck calling calculate() over and over.
What your code should do is create a new thread that runs the simulation. That way the event dispatch thread is free to continue processing events.

Similar Messages

  • Newbie Question - Don't really know where to start

    I am trying to build a stand alone flash graphic using
    photographs and text. I have gotten so far as to organize the
    photos into folders on layers. I would like for the photographs to
    fade in and out and the text to move across the screen. I
    originally built all of the files in Photoshop including the text.
    At this point, I am just lost. I have tried doing the
    tutorials and lessons included with the flash program and even have
    Katherine Ulrich's Macromedia Flash for Windows and Macintosh but I
    can't seem to find the answers to my questions.
    I don't know whether I should make the photos into symbols or
    not and the text is really confusing. Am I just making this harder
    than it is?
    Thanks,
    Tiffany

    anaire,
    > Those gifs I was trying... Hmm....
    > They may actually not be suitable at all. ...
    Really?
    > I'm thinking that the problem I encountered (both images
    > coming up in the movie in the same time) is only
    happening
    > because of those gifs. 75% of those images is actually
    > transparent content.
    Aha. Then, yes, the lower image would show through a bit, if
    the upper
    one had areas of transparency. If you wanted to block that
    transparency,
    you could add a solid background to the GIF images *after*
    they had been
    turned into symbols. You'll see the symbols as separate
    entities in your
    Library. Double click on them in the Library (or on the
    Stage) to enter the
    timeline of each graphic symbol in turn. (Symbols have
    timelines just like
    the main timeline.) Inside of each symbol, you can add a new
    layer, if you
    like, beneath the GIF image itself, then use the rectangle
    tool to draw a
    shape with a solid fill. Draw it when that new layer is on
    top, to make it
    easier, then drag the shape under the GIF image. Just a
    thought.
    Flash is also capable of importing PNG files, which have a
    much greater
    range of transparency. GIFs have a limited palette of (at
    most) 256 colors,
    and only one of those colors can be transparent.PNGs, on the
    other hand, can
    have millions of colors with a transparency range of 256
    levels (completely
    transparent, a great range of semi-transparency, to
    completely opaque).
    > I'm thinking : can this happen because of the
    transparency?
    Yes, for sure.
    > I'm going to go now and try with my real photos, jpegs
    > this time.
    That would be the easiest route. Be aware that you could
    even use BMPs,
    TIFFs, or any other image format Flash is capable of
    importing. Even though
    those are heavier file formats, the end result, a SWF, will
    apply JPEG
    compression to the images to reduce their size. The amount of
    compression
    can be determined by you in two ways: a) over all in the
    Publish Settings
    (File > Publish Settings > Flash tab) or b)
    individually for each image by
    right-clicking / Command-clicking each image in the Library
    and choosing
    Properties from the resultant context menu.
    > I'm going to try the tutorials and the Slide Class as
    well.
    I should probably give the Slide API a bit more of a chance.
    I've done
    some experimentation with it to help someone in a different
    thread. It
    seems to me that the "screens" mode of Flash -- that is, File
    > New > Flash
    Slide Presentation or Flash Form Application -- is supposed
    to make things
    easier for this specific genre of presentation, but it does
    require a bit of
    ActionScript, while the techniques discussed earlier in this
    thread require
    no programming whatsoever. In fact, I would argue that
    learning the
    fundamentals of symbols and timeline tweening provide more
    bang for the
    buck.
    See this thread for a possible pitfall of using Slides ...
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=15&catid=194&threadid =1287381&enterthread=y
    David Stiller
    Co-author, Foundation Flash CS3 for Designers
    http://tinyurl.com/2k29mj
    "Luck is the residue of good design."

  • I have a ipod touch 4gen and whenever i sync it, i just lose all my memory... and im also trying to restore my memory but don't really know how... how do i do it?

    i have a ipod touch 4gen and whenever i sync it, i just lose all my memory... and im also trying to restore my memory but don't really know how... how do i do it?

    Only sync chosen songs. Even with that I had a bad song once that was corrupted and it blew the ipod touch's mind. Can't remember how I found the song, but deleted it off the computer and was able to get a fresh copy off this quite old CD. Also, settings-general-usage, you can see which files are gathering up in your memory. There are some surprisingly large programs.

  • Hi all...  My user ID is Keychain Access won't allow me to access my information in my Keychain.  I can't seem to fix it.  What do I need to do?  I don't really know how to explain it but I can access all the other keychains just not my user account

    Hi all...
    My user ID is Keychain Access won't allow me to access my information in my Keychain.  I can't seem to fix it.  What do I need to do?  I don't really know how to explain it but I can access all the other keychains just not my user account keychain.  Can this be fixed?
    Thanks!

    That is correct...  I know the Admin password but the password for my keychain is not correct and I can't seem to remember what the last password would have been.  Any ideas how to reset it?  Maybe delete and recreate?  I know I may lose some info.  Thanks!

  • Hi guys, a game I'm trying to play keeps unexpectedly closing every time I try to play. When I try reopening, the same thing keeps popping up so I don't really know how to fix that problem. Can you help?

    Hi guys, a game I'm trying to play keeps unexpectedly closing every time I try to play. When I try reopening, the same thing keeps popping up so I don't really know how to fix that problem. Can you help?

    Plus this showed up when I looked up the details of why it quit unexpectedly.
    Process:         launchd [458]
    Path:            /Users/USER/Library/Application Support/Steam/*/Starbound.app/Contents/MacOS/starbound
    Identifier:      com.chucklefish
    Version:         ??? (???)
    Code Type:       X86-64 (Native)
    Parent Process:  launchd [154]
    Date/Time:       2014-01-06 19:19:28.898 -0500
    OS Version:      Mac OS X 10.7.5 (11G63b)
    Report Version:  9
    Interval Since Last Report:          1786 sec
    Crashes Since Last Report:           23
    Per-App Crashes Since Last Report:   23
    Anonymous UUID:                      6F40DBC0-08A7-4A21-A80E-185F669D1C93
    Crashed Thread:  Unknown
    Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes: KERN_INVALID_ADDRESS at 0x00007fff5fc01028
    Backtrace not available
    Unknown thread crashed with X86 Thread State (64-bit):
      rax: 0x0000000000000055  rbx: 0x0000000000000000  rcx: 0x0000000000000000  rdx: 0x0000000000000000
      rdi: 0x0000000000000000  rsi: 0x0000000000000000  rbp: 0x0000000000000000  rsp: 0x0000000000000000
       r8: 0x0000000000000000   r9: 0x0000000000000000  r10: 0x0000000000000000  r11: 0x0000000000000000
      r12: 0x0000000000000000  r13: 0x0000000000000000  r14: 0x0000000000000000  r15: 0x0000000000000000
      rip: 0x00007fff5fc01028  rfl: 0x0000000000010203  cr2: 0x00007fff5fc01028
    Logical CPU: 2
    Binary images description not available
    External Modification Summary:
      Calls made by other processes targeting this process:
        task_for_pid: 1
        thread_create: 0
        thread_set_state: 0
      Calls made by this process:
        task_for_pid: 0
        thread_create: 0
        thread_set_state: 0
      Calls made by all processes on this machine:
        task_for_pid: 1095
        thread_create: 0
        thread_set_state: 0
    Model: MacBookPro8,1, BootROM MBP81.0047.B27, 2 processors, Intel Core i5, 2.3 GHz, 4 GB, SMC 1.68f99
    Graphics: Intel HD Graphics 3000, Intel HD Graphics 3000, Built-In, 384 MB
    Memory Module: BANK 0/DIMM0, 2 GB, DDR3, 1333 MHz, 0x80AD, 0x484D54333235533642465238432D48392020
    Memory Module: BANK 1/DIMM0, 2 GB, DDR3, 1333 MHz, 0x80AD, 0x484D54333235533642465238432D48392020
    AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0xD6), Broadcom BCM43xx 1.0 (5.106.198.19.22)
    Bluetooth: Version 4.0.8f17, 2 service, 18 devices, 1 incoming serial ports
    Network Service: Wi-Fi, AirPort, en1
    Network Service: BlackBerry (en3), Ethernet, en3
    Serial ATA Device: TOSHIBA MK3265GSXF, 320.07 GB
    Serial ATA Device: MATSHITADVD-R   UJ-8A8
    USB Device: FaceTime HD Camera (Built-in), apple_vendor_id, 0x8509, 0xfa200000 / 3
    USB Device: hub_device, 0x0424  (SMSC), 0x2513, 0xfa100000 / 2
    USB Device: Apple Internal Keyboard / Trackpad, apple_vendor_id, 0x0252, 0xfa120000 / 5
    USB Device: BRCM2070 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0xfa110000 / 4
    USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x821a, 0xfa113000 / 7
    USB Device: hub_device, 0x0424  (SMSC), 0x2513, 0xfd100000 / 2
    USB Device: RIM Network Device, 0x0fca, 0x8013, 0xfd120000 / 4
    USB Device: IR Receiver, apple_vendor_id, 0x8242, 0xfd110000 / 3

  • Hi,  I don't really know wether I should post this message in the iPad sect

    Hi,
    I don't really know wether I should post this message in the iPad section or in this section... Anyway.
    Here is my problem :
    I would like to stream music from my iPad to my living room soundsystem, so I bought an Airport Express. BUT my router is upstairs, and I can't set up a permanent Ethernet connection between my router & Airport Express.
    So my question is : Is it possible to set up the Airport Express as a "distinct network" (not connected to the internet) and Have the iPad connect on Both networks ?
    * my usual LAN to surf the net & everything else
    * The airport Network to stream music to the soundsystem
    If my setup is wrong, i'm obviously open to any advice... Just keep in mind that I can't have a wired connection between the Airport Express & the Router...
    Many thanks in advance for your answers.

    Before to close this topic and mark it as solved, I will explain the whole process, so if you find this, you can try it directly... French version hereunder.
    Hardware setup :
    - Bbox2 Modem router provided by my ISP
    - PC with latest version of Airport Utility
    - Airport Express connected to amplifier (Jack - Double RCA) and to the router through Ethernet (the whole purpose of this is to remove this Ethernet cable).
    Before you begin :
    Open your router configuration utility (typically 192.168.1.1 or 192.168.0.1 in your browser). Change your network password (by default, mine was the 26 characters WEP key - 13 letters and 13 numbers). Choose a 13 characters password. I chose one with 7 letters followed by 6 numbers. Waring : This operation might (should ?) crash your current internet connexion and you may experience problems reconnectiong. Under Win 7, Go to the properties --> security of your network to type your new password & connect again.
    Once this is done :
    1. Open the Airport Utility on your computer
    2. Do a "hard reset" of the Airport Express" (AE) using a pen or a paperclip --> the AE disappears from the Airport utility, then shows up again.
    3. Select "replace the settings with default settings" to clean up the mess your previous attempts might have caused
    4. You're back to the default configuration
    5. On the Airport utility window you see now, invent a new password for the AE & clic continue
    6. Select "I want AE to join my current network" (3rd option), clic on "Continue".
    7. Select "I want AE to wirelessly join my current network" (1st Option), clic on continue
    8. Select your network in the drop down menu and select "WEP 128 bits" as encryption mode (Your network obviously has to use WEP encryption. If it's not the case, go back to your router management utility and set the security to WEP or write another tutorial
    9. Clic on "Update"
    10. Watch your LAN crash
    11. Say "What the F**" and unplug the Ethernet cable from the AE. Your LAN should get better very quickly.
    12. Accidentally unplug the AE from the wall. Plug it again quickly with 2 or 3 "Sh** !"
    You're done !
    French version :
    Préalable :
    Configuration hardware :
    - Modem router Bbox2 fourni par mon FAI (Belgacom)
    - PC avec la dernière version de Airport Utility
    - Airport Express connecté à un ampli (Jack - Double cinch) et au routeur via un câble Ethernet (le but de la manoeuvre est de virer ledit câble Ethernet)
    Ouvrir l'utilitaire de configuration de votre routeur (192.198.1.1 dans le navigateur par exemple) et changer là le mot de passe du réseau (anciennement chez moi : la clé WEP de 26 caractères) en choisissant un mot de passe d'exactement 13 caractères (chiffres et lettres mêlées ont fonctionné pour moi). Attention, cette opération peut avoir des retombées un peu bizarres sur votre connexion... Deux redémarrages de Bbox et pas mal d'essais de reconnexion m'ont été nécessaires.
    Une fois cela fait :
    1. Ouvrez l'Airport utility
    2. Opérez un Hard reset de l'airport avec un trombone --> l'AE disparait de l'utility, puis réapparaît
    3. Sélectionner "Replace the settings with default settings" histoire de virer tout merdier d'essais précédents.
    4. Vous êtes de retour à la configuration "de base"
    5. Sur l'écran qui s'affiche alors, inventez un nouveau mot de passe pour l'AE puis Cliquez sur "continuer"
    6. Sélectionnez "I want Export Express to Join my current network (3ième option)" puis cliquez sur "continuer"
    7. Choisissez "I want AE to wirelessly Join my current network (1ière option)" puis cliquez sur "continuer"
    8. Sélectionnez votre réseau dans la liste déroulante et sélectionnez "WEP" comme mode de cryptage (il faut évidemment que votre réseau soit crypté en WEP. Si ce n'est pas le cas, passez en WEP ou faites un nouveau tuto...
    9. Cliquez sur "Update"
    10. Regardez votre réseau local se planter en beauté...
    11. Débranchez le câble de l'AE. Le réseau local devrait se sentir beaucoup mieux
    12. Retirez accidentellement l'AE de la prise. Rebranchez-le vite fait avec 2-3 "Mert".
    You're done !

  • Basic How to Question: Don't even know where to start

    I have a graphic taking up 1/8 of the size of a solid band of colour in a web banner. I want to take one edge of the shape of the graphic and do a kind of gradient blend but not of the colour, of the shape. Kind of like a ladder with the steps getting smaller, evenly or smoothly to solid colour.
    I've tried searching for tutorials but don't even know what it might be called or what particular tools to use. Can someone point me in the right direction please?
    Many thanks
    Martin

    Search for blends. If you want the color to not change then both object will have to be the same color. The blend effects the stroke as well, so if you want it to be smooth, give the stroke no color.

  • Royally Messed Up Page - Don't Even Know Where to Start

    Hello,
    This is my first post here - I inherited the managment of this website as part of my day to day tasks and know very little about properly operating Dreamweaver CS3...just enough to be dangerous.
    I have royally messed up this page:  http://www.earthserviceandsupply.com/html/essnews.html
    This seemed to occur when I inserted a weather radar into the code and now I can't fix the problem.  I really don't want to delete the radar.
    I have tried to reapply the original template hoping that it would fix the bug but to no avail.  I keep getting multiple errors such as: 
    Any help that could be given to remedy this problem would be much appreciated. 
    Thanks so much!

    I inherited the managment of this website as part of my day to day tasks and know very little about properly operating Dreamweaver CS3
    This is worrisome.  It's not Dreamweaver you should be learning but code basics.   If you don't know code basics, DW is going to continue to punish you. 
    Start here:  HTML & CSS Tutorials - http://w3schools.com/
    Errors in code are responsible for 98% of browser rendering issues.  You have more than a few to work on starting with a valid document type.  Without one, your web pages render in Quirks Mode which is geek speak for a confused mess.
    Open your main Template.dwt file.
    To add a document type in DW, go to Modify > Page Properties > Title/Encoding tab and choose a doc type that fits your coding skills.  I recommend XHTML transitional.  Hit OK. 
    Next, Validate code and fix reported errors using the tools below.
         Code Validation Tools
         CSS - http://jigsaw.w3.org/css-validator/
         HTML - http://validator.w3.org/
    NOTE: if this is beyond your skill set, tell whoever saddled you with this project that the site is in desperate need of a re-build to meet modern web and accessibility standards. 
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/

  • My MacBook Pro is EXTREMELY slow after installing Yosemite.  I ran EtreCheck, but don't really know how to proceed.  Help?!?!

    Problem description:
    Load times for programs and websites is significantly slowed after Yosemite install.
    EtreCheck version: 2.0.11 (98)
    Report generated November 18, 2014 at 12:47:02 PM CST
    Hardware Information: ℹ️
      MacBook Pro (Retina, 13-inch, Early 2013) (Verified)
      MacBook Pro - model: MacBookPro10,2
      1 2.6 GHz Intel Core i5 CPU: 2-core
      8 GB RAM Not upgradeable
      BANK 0/DIMM0
      4 GB DDR3 1600 MHz ok
      BANK 1/DIMM0
      4 GB DDR3 1600 MHz ok
      Bluetooth: Good - Handoff/Airdrop2 supported
      Wireless:  en0: 802.11 a/b/g/n
    Video Information: ℹ️
      Intel HD Graphics 4000 -
      Color LCD spdisplays_2880x1800Retina
    System Software: ℹ️
      OS X 10.10 (14A389) - Uptime: 6 days 2:35:1
    Disk Information: ℹ️
      APPLE SSD SM256E disk0 : (251 GB)
      S.M.A.R.T. Status: Verified
      EFI (disk0s1) <not mounted> : 210 MB
      Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
      Macintosh HD (disk1) /  [Startup]: 249.77 GB (185.10 GB free)
      Core Storage: disk0s2 250.14 GB Online
    USB Information: ℹ️
      HP HP Officejet Pro 8610
      Apple Inc. BRCM20702 Hub
      Apple Inc. Bluetooth USB Host Controller
      Apple Inc. Apple Internal Keyboard / Trackpad
      Apple Inc. FaceTime HD Camera (Built-in)
    Thunderbolt Information: ℹ️
      Apple Inc. thunderbolt_bus
    Gatekeeper: ℹ️
      Mac App Store and identified developers
    Kernel Extensions: ℹ️
      /Library/Extensions
      [not loaded] com.intego.Family-Protector.safe-boot (2271 - SDK 10.8) Support
      /System/Library/Extensions
      [loaded] com.globaldelight.driver.BoomDevice (1.1 - SDK 10.9) Support
    Launch Agents: ℹ️
      [not loaded] com.adobe.AAM.Updater-1.0.plist Support
      [running] com.intego.commonservices.integomenu.plist Support
      [running] com.intego.commonservices.taskmanager.plist Support
      [loaded] com.intego.commonservices.uninstaller.plist Support
      [running] com.intego.Family-Protector.agent.plist Support
      [running] com.intego.netbarrier.alert.plist Support
      [running] com.intego.netupdate.agent.plist Support
      [loaded] com.intego.personalbackup.agent.plist Support
      [loaded] com.intego.virusbarrier.alert.plist Support
    Launch Daemons: ℹ️
      [loaded] com.adobe.fpsaud.plist Support
      [running] com.intego.commonservices.daemon.integod.plist Support
      [running] com.intego.commonservices.daemon.taskmanager.plist Support
      [loaded] com.intego.commonservices.icalserver.plist Support
      [loaded] com.intego.commonservices.metrics.kschecker.plist Support
      [running] com.intego.Family-Protector.daemon.plist Support
      [running] com.intego.netbarrier.daemon.logger.plist Support
      [running] com.intego.netbarrier.daemon.monitor.plist Support
      [running] com.intego.netbarrier.daemon.plist Support
      [running] com.intego.netupdate.daemon.plist Support
      [running] com.intego.PersonalBackup.daemon.plist Support
      [loaded] com.intego.virusbarrier.daemon.emlparser.plist Support
      [running] com.intego.virusbarrier.daemon.logger.plist Support
      [running] com.intego.virusbarrier.daemon.plist Support
      [running] com.intego.virusbarrier.daemon.scanner.plist Support
      [running] com.intego.WashingMachine.service.plist Support
      [loaded] com.microsoft.office.licensing.helper.plist Support
    User Launch Agents: ℹ️
      [loaded] com.adobe.AAM.Updater-1.0.plist Support
      [loaded] com.google.keystone.agent.plist Support
    User Login Items: ℹ️
      Boom Application (/Applications/Boom.app)
      iTunesHelper Application (/Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)
      Dropbox Application (/Applications/Dropbox.app)
      ElementsAutoAnalyzer Application (/Applications/Adobe Elements 12 Organizer.app/Contents/ElementsAutoAnalyzer.app)
    Internet Plug-ins: ℹ️
      Flip4Mac WMV Plugin: Version: 3.2.0.16   - SDK 10.8 Support
      FlashPlayer-10.6: Version: 15.0.0.223 - SDK 10.6 Support
      QuickTime Plugin: Version: 7.7.3
      Flash Player: Version: 15.0.0.223 - SDK 10.6 Support
      CouponPrinter-FireFox_v2: Version: 1.1.10 - SDK 10.6 Support
      Default Browser: Version: 600 - SDK 10.10
      WidevineMediaOptimizer: Version: 6.0.0.12757 - SDK 10.7 Support
      SharePointBrowserPlugin: Version: 14.4.6 - SDK 10.6 Support
      Silverlight: Version: 5.1.20913.0 - SDK 10.6 Support
    Safari Extensions: ℹ️
      Adblock Plus
    3rd Party Preference Panes: ℹ️
      Flash Player  Support
      Flip4Mac WMV  Support
    Time Machine: ℹ️
      Auto backup: YES
      Volumes being backed up:
      Macintosh HD: Disk size: 249.77 GB Disk used: 64.67 GB
      Destinations:
      My Passport [Local]
      Total size: 249.38 GB
      Total number of backups: 3
      Oldest backup: 2014-01-06 19:50:48 +0000
      Last backup: 2014-01-09 23:24:23 +0000
      Size of backup disk: Adequate
      Backup size 249.38 GB > (Disk used 64.67 GB X 3)
    Top Processes by CPU: ℹ️
          4% WindowServer
          1% coreaudiod
          0% fontd
          0% Boom
          0% netbiosd
    Top Processes by Memory: ℹ️
      627 MB WindowServer
      472 MB virusbarriers
      223 MB Mail
      129 MB com.apple.WebKit.WebContent
      129 MB Safari
    Virtual Memory Information: ℹ️
      414 MB Free RAM
      4.25 GB Active RAM
      1.06 GB Inactive RAM
      1.29 GB Wired RAM
      12.00 GB Page-ins
      602 MB Page-outs

    1. This procedure is a diagnostic test. It changes nothing, for better or worse, and therefore will not, in itself, solve the problem. But with the aid of the test results, the solution may take a few minutes, instead of hours or days.
    Don't be put off by the complexity of these instructions. The process is much less complicated than the description. You do harder tasks with the computer all the time.
    2. If you don't already have a current backup, back up all data before doing anything else. The backup is necessary on general principle, not because of anything in the test procedure. Backup is always a must, and when you're having any kind of trouble with the computer, you may be at higher than usual risk of losing data, whether you follow these instructions or not.
    There are ways to back up a computer that isn't fully functional. Ask if you need guidance.
    3. Below are instructions to run a UNIX shell script, a type of program. As I wrote above, it changes nothing. It doesn't send or receive any data on the network. All it does is to generate a human-readable report on the state of the computer. That report goes nowhere unless you choose to share it. If you prefer, you can act on it yourself without disclosing the contents to me or anyone else.
    You should be wondering whether you can believe me, and whether it's safe to run a program at the behest of a stranger. In general, no, it's not safe and I don't encourage it.
    In this case, however, there are a couple of ways for you to decide whether the program is safe without having to trust me. First, you can read it. Unlike an application that you download and click to run, it's transparent, so anyone with the necessary skill can verify what it does.
    You may not be able to understand the script yourself. But variations of the script have been posted on this website thousands of times over a period of years. The site is hosted by Apple, which does not allow it to be used to distribute harmful software. Any one of the millions of registered users could have read the script and raised the alarm if it was harmful. Then I would not be here now and you would not be reading this message.
    Nevertheless, if you can't satisfy yourself that these instructions are safe, don't follow them. Ask for other options.
    4. Here's a summary of what you need to do, if you choose to proceed:
    ☞ Copy a line of text in this window to the Clipboard.
    ☞ Paste into the window of another application.
    ☞ Wait for the test to run. It usually takes a few minutes.
    ☞ Paste the results, which will have been copied automatically, back into a reply on this page.
    The sequence is: copy, paste, wait, paste again. You don't need to copy a second time. Details follow.
    5. You may have started the computer in "safe" mode. Preferably, these steps should be taken in “normal” mode, under the conditions in which the problem is reproduced. If the system is now in safe mode and works well enough in normal mode to run the test, restart as usual. If you can only test in safe mode, do that.
    6. If you have more than one user, and the one affected by the problem is not an administrator, then please run the test twice: once while logged in as the affected user, and once as an administrator. The results may be different. The user that is created automatically on a new computer when you start it for the first time is an administrator. If you can't log in as an administrator, test as the affected user. Most personal Macs have only one user, and in that case this section doesn’t apply. Don't log in as root.
    7. The script is a single long line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, though you may not see all of it in the browser window, and you can then copy it. If you try to select the line by dragging across the part you can see, you won't get all of it.
    Triple-click anywhere in the line of text below on this page to select it:
    PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/libexec;clear;cd;p=(Software Hardware Memory Diagnostics Power FireWire Thunderbolt USB Fonts SerialATA 4 1000 25 5120 KiB/s 1024 85 \\b%% 20480 1 MB/s 25000 ports ' com.clark.\* \*dropbox \*genieo\* \*GoogleDr\* \*k.AutoCAD\* \*k.Maya\* vidinst\* ' DYLD_INSERT_LIBRARIES\ DYLD_LIBRARY_PATH -86 "` route -n get default|awk '/e:/{print $2}' `" 25 N\\/A down up 102400 25600 recvfrom sendto CFBundleIdentifier 25 25 25 1000 MB ' com.adobe.AAM.Updater-1.0 com.adobe.AAM.Updater-1.0 com.adobe.AdobeCreativeCloud com.adobe.CS4ServiceManager com.adobe.CS5ServiceManager com.adobe.fpsaud com.adobe.SwitchBoard com.adobe.SwitchBoard com.apple.aelwriter com.apple.AirPortBaseStationAgent com.apple.FolderActions.enabled com.apple.installer.osmessagetracing com.apple.mrt.uiagent com.apple.ReportCrash.Self com.apple.rpmuxd com.apple.SafariNotificationAgent com.apple.usbmuxd com.citrixonline.GoToMeeting.G2MUpdate com.google.keystone.agent com.google.keystone.daemon com.microsoft.office.licensing.helper com.oracle.java.Helper-Tool com.oracle.java.JavaUpdateHelper com.oracle.java.JavaUpdateHelper org.macosforge.xquartz.privileged_startx org.macosforge.xquartz.startx ' ' 879294308 4071182229 461455494 3627668074 1083382502 1274181950 1855907737 2758863019 1848501757 464843899 3694147963 1233118628 2456546649 2806998573 2778718105 2636415542 842973933 2051385900 3301885676 891055588 998894468 695903914 1443423563 4136085286 523110921 3873345487 ' 51 5120 files );N5=${#p[@]};p[N5]=` networksetup -listnetworkserviceorder|awk ' NR>1 { sub(/^\([0-9]+\) /,"");n=$0;getline;} $NF=="'${p[26]}')" { sub(/.$/,"",$NF);print n;exit;} ' `;f=('\n%s: %s\n' '\n%s\n\n%s\n' '\nRAM details\n%s\n' %s\ %s '%s\n-\t%s\n' );S0() { echo ' { q=$NF+0;$NF="";u=$(NF-1);$(NF-1)="";gsub(/^ +| +$/,"");if(q>='${p[$1]}') printf("%s (UID %s) is using %s '${p[$2]}'",$0,u,q);} ';};s=(' s/[0-9A-Za-z._]+@[0-9A-Za-z.]+\.[0-9A-Za-z]{2,4}/EMAIL/g;/faceb/s/(at\.)[^.]+/\1NAME/g;/\/Shared/!s/(\/Users\/)[^ /]+/\1USER/g;s/[-0-9A-Fa-f]{22,}/UUID/g;' ' s/^ +//;/de: S|[nst]:/p;' ' {sub(/^ +/,"")};/er:/;/y:/&&$2<'${p[10]} ' 1s/://;3,6d;/[my].+:/d;s/^ {4}//;H;${ g;s/\n$//;/s: (E[^m]|[^EO])|x([^08]|02[^F]|8[^0])/p;} ' ' 5h;6{ H;g;/P/!p;} ' ' ($1~/^Cy/&&$3>'${p[11]}')||($1~/^Cond/&&$2!~/^N/) ' ' /:$/{ N;/:.+:/d;s/ *://;b0'$'\n'' };/^ *(V.+ [0N]|Man).+ /{ s/ 0x.... //;s/[()]//g;s/(.+: )(.+)/ (\2)/;H;};$b0'$'\n'' d;:0'$'\n'' x;s/\n\n//;/Apple[ ,]|Genesy|Intel|SMSC/d;s/\n.*//;/\)$/p;' ' s/^.*C/C/;H;${ g;/No th|pms/!p;} ' '/= [^GO]/p' '{$1=""};1' ' /Of/!{ s/^.+is |\.//g;p;} ' ' $0&&!/ / { n++;print;} END { if(n<10) print "com.apple.";} ' ' { sub(/ :/,"");print|"tail -n'${p[12]}'";} ' ' NR==2&&$4<='${p[13]}' { print $4;} ' ' END { $2/=256;if($2>='${p[15]}') print int($2) } ' ' NR!=13{next};{sub(/[+-]$/,"",$NF)};'"`S0 21 22`" 'NR!=2{next}'"`S0 37 17`" ' NR!=5||$8!~/[RW]/{next};{ $(NF-1)=$1;$NF=int($NF/10000000);for(i=1;i<=3;i++){$i="";$(NF-1-i)="";};};'"`S0 19 20`" 's:^:/:p' '/\.kext\/(Contents\/)?Info\.plist$/p' 's/^.{52}(.+) <.+/\1/p' ' /Launch[AD].+\.plist$/ { n++;print;} END { if(n<200) print "/System/";} ' '/\.xpc\/(Contents\/)?Info\.plist$/p' ' NR>1&&!/0x|\.[0-9]+$|com\.apple\.launchctl\.(Aqua|Background|System)$/ { print $3;} ' ' /\.(framew|lproj)|\):/d;/plist:|:.+(Mach|scrip)/s/:[^:]+//p ' '/^root$/p' ' !/\/Contents\/.+\/Contents|Applic|Autom|Frameworks/&&/Lib.+\/Info.plist$/ { n++;print;} END { if(n<1100) print "/System/";} ' '/^\/usr\/lib\/.+dylib$/p' ' /Temp|emac/{next};/(etc|Preferences|Launch[AD].+)\// { sub(".(/private)?","");n++;print;} END { split("'"${p[41]}"'",b);split("'"${p[42]}"'",c);for(i in b) print b[i]".plist\t"c[i];if(n<500) print "Launch";} ' ' /\/(Contents\/.+\/Contents|Frameworks)\/|\.wdgt\/.+\.([bw]|plu)/d;p;' 's/\/(Contents\/)?Info.plist$//;p' ' { gsub("^| |\n","\\|\\|kMDItem'${p[35]}'=");sub("^...."," ") };1 ' p '{print $3"\t"$1}' 's/\'$'\t''.+//p' 's/1/On/p' '/Prox.+: [^0]/p' '$2>'${p[43]}'{$2=$2-1;print}' ' BEGIN { i="'${p[26]}'";M1='${p[16]}';M2='${p[18]}';M3='${p[31]}';M4='${p[32]}';} !/^A/{next};/%/ { getline;if($5<M1) a="user "$2"%, system "$4"%";} /disk0/&&$4>M2 { b=$3" ops/s, "$4" blocks/s";} $2==i { if(c) { d=$3+$4+$5+$6;next;};if($4>M3||$6>M4) c=int($4/1024)" in, "int($6/1024)" out";} END { if(a) print "CPU: "a;if(b) print "I/O: "b;if(c) print "Net: "c" (KiB/s)";if(d) print "Net errors: "d" packets/s";} ' ' /r\[0\] /&&$NF!~/^1(0|72\.(1[6-9]|2[0-9]|3[0-1])|92\.168)\./ { print $NF;exit;} ' ' !/^T/ { printf "(static)";exit;} ' '/apsd|BKAg|OpenD/!s/:.+//p' ' (/k:/&&$3!~/(255\.){3}0/ )||(/v6:/&&$2!~/A/ ) ' ' $1~"lR"&&$2<='${p[25]}';$1~"li"&&$3!~"wpa2";' ' BEGIN { FS=":";p="uniq -c|sed -E '"'s/ +\\([0-9]+\\)\\(.+\\)/\\\2 x\\\1/;s/x1$//'"'";} { n=split($3,a,".");sub(/_2[01].+/,"",$3);print $2" "$3" "a[n]$1|p;b=b$1;} END { close(p);if(b) print("\n\t* Code injection");} ' ' NR!=4{next} {$NF/=10240} '"`S0 27 14`" ' END { if($3~/[0-9]/)print$3;} ' ' BEGIN { L='${p[36]}';} !/^[[:space:]]*(#.*)?$/ { l++;if(l<=L) f=f"\n   "$0;} END { F=FILENAME;if(!F) exit;if(!f) f="\n   [N/A]";"cksum "F|getline C;split(C, A);C="checksum "A[1];"file -b "F|getline T;if(T!~/^(AS.+ (En.+ )?text(, with v.+)?$|(Bo|PO).+ sh.+ text ex|XM)/) F=F" ("T", "C")";else F=F" ("C")";printf("\nContents of %s\n%s\n",F,f);if(l>L) printf("\n   ...and %s more line(s)\n",l-L);} ' ' s/^ ?n...://p;s/^ ?p...:/-'$'\t''/p;' 's/0/Off/p' ' END{print NR} ' ' /id: N|te: Y/{i++} END{print i} ' ' / / { print "'"${p[28]}"'";exit;};1;' '/ en/!s/\.//p' ' NR!=13{next};{sub(/[+-M]$/,"",$NF)};'"`S0 39 40`" ' $10~/\(L/&&$9!~"localhost" { sub(/.+:/,"",$9);print $1": "$9|"sort|uniq";} ' '/^ +r/s/.+"(.+)".+/\1/p' 's/(.+\.wdgt)\/(Contents\/)?Info\.plist$/\1/p' 's/^.+\/(.+)\.wdgt$/\1/p' ' /l: /{ /DVD/d;s/.+: //;b0'$'\n'' };/s: /{ /V/d;s/^ */- /;H;};$b0'$'\n'' d;:0'$'\n'' x;/APPLE [^:]+$/d;p;' ' /^find: /d;p;' "`S0 44 45`" ' BEGIN{FS="= "} /Path/{print $2} ' ' /^ *$/d;s/^ */   /;' ' s/^.+ |\(.+\)$//g;p ' '/\.(appex|pluginkit)\/Contents\/Info\.plist$/p' ' /2/{print "WARN"};/4/{print "CRITICAL"};' ' /EVHF|MACR/d;s/^.+: //p;' );c1=(system_profiler pmset\ -g nvram fdesetup find syslog df vm_stat sar ps crontab iotop top pkgutil 'PlistBuddy 2>&1 -c "Print' whoami cksum kextstat launchctl smcDiagnose sysctl\ -n defaults\ read stat lsbom mdfind ' for i in ${p[24]};do ${c1[18]} ${c2[27]} $i;done;' pluginkit scutil dtrace profiles sed\ -En awk /S*/*/P*/*/*/C*/*/airport networksetup mdutil lsof test osascript\ -e );c2=(com.apple.loginwindow\ LoginHook '" /L*/P*/loginw*' "'tell app \"System Events\" to get properties of login items'|tr , \\\n" 'L*/Ca*/com.ap*.Saf*/E*/* -d 1 -name In*t -exec '"${c1[14]}"' :CFBundleDisplayName" {} \;|sort|uniq' '~ $TMPDIR.. \( -flags +sappnd,schg,uappnd,uchg -o ! -user $UID -o ! -perm -600 \)' '.??* -path .Trash -prune -o -type d -name *.app -print -prune' :${p[35]}\" :Label\" '{/,}L*/{Con,Pref}* -type f ! -size 0 -name *.plist -exec plutil -s {} \;' "-f'%N: %l' Desktop L*/Keyc*" therm sysload boot-args status " -F '\$Time \$(RefProc): \$Message' -k Sender Req 'fsev|kern|launchd' -k RefProc Rne 'Aq|WebK' -k Message Rne 'Goog|ksadm|probe|Roame|SMC:|sserti|suhel| VALI|ver-r|xpma' -o -k Message Req 'abn|bad |Beac|caug|corru|dead[^bl]|FAIL|fail|GPU |hfs: Ru|inval|jnl:|last value [1-9]|NVDA\(|pagin|proc: t|Roamed|rror|SL|Throttli|tim(ed? ?|ing )o|WARN' " '-du -n DEV -n EDEV 1 10' 'acrx -o comm,ruid,%cpu' '-t1 10 1' '-f -pfc /var/db/r*/com.apple.*.{BS,Bas,Es,J,OSXU,Rem,up}*.bom' '{/,}L*/Lo*/Diag* -type f -regex .\*[cght] ! -name .?\* ! -name \*ag \( -exec grep -lq "^Thread c" {} \; -exec printf \* \; -o -true \) -execdir stat -f:%Sc:%N -t%F {} \;|sort -t: -k2 |tail -n'${p[38]} '/S*/*/Ca*/*xpc* >&- ||echo No' '-L /{S*/,}L*/StartupItems -type f -exec file {} +' '-L /S*/L*/{C*/Sec*A,Ex}* {/,}L*/{A*d,Ca*/*/Ex,Co{mpon,reM},Ex,In{p,ter},iTu*/*P,Keyb,Mail/B,Pr*P,Qu*T,Scripti,Sec,Servi,Spo,Widg}* -path \\*s/Resources -prune -o -type f -name Info.plist' '/usr/lib -type f -name *.dylib' `awk "${s[31]}"<<<${p[23]}` "/e*/{auto,{cron,fs}tab,hosts,{[lp],sy}*.conf,mach_i*/*,pam.d/*,ssh{,d}_config,*.local} {,/usr/local}/etc/periodic/*/* /L*/P*{,/*}/com.a*.{Bo,sec*.ap}*t {/S*/,/,}L*/Lau*/*t .launchd.conf" list getenv /Library/Preferences/com.apple.alf\ globalstate --proxy '-n get default' -I --dns -getdnsservers\ "${p[N5]}" -getinfo\ "${p[N5]}" -P -m\ / '' -n1 '-R -l1 -n1 -o prt -stats command,uid,prt' '--regexp --only-files --files com.apple.pkg.*|sort|uniq' -kl -l -s\ / '-R -l1 -n1 -o mem -stats command,uid,mem' '+c0 -i4TCP:0-1023' com.apple.dashboard\ layer-gadgets '-d /L*/Mana*/$USER&&echo On' '-app Safari WebKitDNSPrefetchingEnabled' "+c0 -l|awk '{print(\$1,\$3)}'|sort|uniq -c|sort -n|tail -1|awk '{print(\$2,\$3,\$1)}'" -m 'L*/{Con*/*/Data/L*/,}Pref* -type f -size 0c -name *.plist.???????|wc -l' kern.memorystatus_vm_pressure_level '3>&1 >&- 2>&3' " -F '\$Time \$Message' -k Sender kernel -k Message CSeq 'n Cause: -' " );N1=${#c2[@]};for j in {0..9};do c2[N1+j]=SP${p[j]}DataType;done;N2=${#c2[@]};for j in 0 1;do c2[N2+j]="-n ' syscall::'${p[33+j]}':return { @out[execname,uid]=sum(arg0) } tick-10sec { trunc(@out,1);exit(0);} '";done;l=(Restricted\ files Hidden\ apps 'Elapsed time (s)' POST Battery Safari\ extensions Bad\ plists 'High file counts' User Heat System\ load boot\ args FileVault Diagnostic\ reports Log 'Free space (MiB)' 'Swap (MiB)' Activity 'CPU per process' Login\ hook 'I/O per process' Mach\ ports kexts Daemons Agents XPC\ cache Startup\ items Admin\ access Root\ access Bundles dylibs Apps Font\ issues Inserted\ dylibs Firewall Proxies DNS TCP/IP Wi-Fi Profiles Root\ crontab User\ crontab 'Global login items' 'User login items' Spotlight Memory Listeners Widgets Parental\ Controls Prefetching SATA Descriptors App\ extensions Lockfiles Memory\ pressure SMC Shutdowns );N3=${#l[@]};for i in 0 1 2;do l[N3+i]=${p[5+i]};done;N4=${#l[@]};for j in 0 1;do l[N4+j]="Current ${p[29+j]}stream data";done;A0() { id -G|grep -qw 80;v[1]=$?;((v[1]==0))&&sudo true;v[2]=$?;v[3]=`date +%s`;clear >&-;date '+Start time: %T %D%n';};for i in 0 1;do eval ' A'$((1+i))'() { v=` eval "${c1[$1]} ${c2[$2]}"|'${c1[30+i]}' "${s[$3]}" `;[[ "$v" ]];};A'$((3+i))'() { v=` while read i;do [[ "$i" ]]&&eval "${c1[$1]} ${c2[$2]}" \"$i\"|'${c1[30+i]}' "${s[$3]}";done<<<"${v[$4]}" `;[[ "$v" ]];};A'$((5+i))'() { v=` while read i;do '${c1[30+i]}' "${s[$1]}" "$i";done<<<"${v[$2]}" `;[[ "$v" ]];};A'$((7+i))'() { v=` eval sudo "${c1[$1]} ${c2[$2]}"|'${c1[30+i]}' "${s[$3]}" `;[[ "$v" ]];};';done;A9(){ v=$((`date +%s`-v[3]));};B2(){ v[$1]="$v";};for i in 0 1;do eval ' B'$i'() { v=;((v['$((i+1))']==0))||{ v=No;false;};};B'$((3+i))'() { v[$2]=`'${c1[30+i]}' "${s[$3]}"<<<"${v[$1]}"`;} ';done;B5(){ v[$1]="${v[$1]}"$'\n'"${v[$2]}";};B6() { v=` paste -d: <(printf "${v[$1]}") <(printf "${v[$2]}")|awk -F: ' {printf("'"${f[$3]}"'",$1,$2)} ' `;};B7(){ v=`grep -Fv "${v[$1]}"<<<"$v"`;};C0() { [[ "$v" ]]&&sed -E "$s"<<<"$v";};C1() { [[ "$v" ]]&&printf "${f[$1]}" "${l[$2]}" "$v"|sed -E "$s";};C2() { v=`echo $v`;[[ "$v" != 0 ]]&&C1 0 $1;};C3() { v=`sed -E "${s[63]}"<<<"$v"`&&C1 1 $1;};for i in 1 2 7 8;do for j in 0 2 3;do eval D$i$j'(){ A'$i' $1 $2 $3; C'$j' $4;};';done;done;{ A0;D20 0 $((N1+1)) 2;D10 0 $N1 1;B0;C2 27;B0&&! B1&&C2 28;D12 15 37 25 8;A1 0 $((N1+2)) 3;C0;D13 0 $((N1+3)) 4 3;D23 0 $((N1+4)) 5 4;D13 0 $((N1+9)) 59 50;for i in 0 1 2;do D13 0 $((N1+5+i)) 6 $((N3+i));done;D13 1 10 7 9;D13 1 11 8 10;B1&&D73 19 53 67 55;D22 2 12 9 11;D12 3 13 10 12;D23 4 19 44 13;D23 5 54 12 56;D23 5 14 12 14;D22 6 36 13 15;D22 20 52 66 54;D22 7 37 14 16;D23 8 15 38 17;D22 9 16 16 18;B1&&{ D82 35 49 61 51;D82 11 17 17 20;for i in 0 1;do D82 28 $((N2+i)) 45 $((N4+i));done;};D22 12 44 54 45;D22 12 39 15 21;A1 13 40 18;B2 4;B3 4 0 19;A3 14 6 32 0;B4 0 5 11;A1 17 41 20;B7 5;C3 22;B4 4 6 21;A3 14 7 32 6;B4 0 7 11;B3 4 0 22;A3 14 6 32 0;B4 0 8 11;B5 7 8;B1&&{ A8 18 26 23;B7 7;C3 23;};A2 18 26 23;B7 7;C3 24;D13 4 21 24 26;B4 4 12 26;B3 4 13 27;A1 4 22 29;B7 12;B2 14;A4 14 6 52 14;B2 15;B6 14 15 4;B3 0 0 30;C3 29;A1 4 23 27;B7 13;C3 30;B3 4 0 65;A3 14 6 32 0;B4 0 16 11;A1 26 50 64;B7 16;C3 52;D13 24 24 32 31;D13 25 37 32 33;A2 23 18 28;B2 16;A2 16 25 33;B7 16;B3 0 0 34;B2 21;A6 47 21&&C0;B1&&{ D73 21 0 32 19;D73 10 42 32 40;D82 29 35 46 39;};D23 14 1 62 42;D12 34 43 53 44;D12 22 20 32 25;D22 0 $((N1+8)) 51 32;D13 4 8 41 6;D12 21 28 35 34;D13 27 29 36 35;A2 27 32 39&&{ B2 19;A2 33 33 40;B2 20;B6 19 20 3;};C2 36;D23 33 34 42 37;B1&&D83 35 45 55 46;D23 32 31 43 38;D12 36 47 32 48;D13 10 42 32 41;D13 37 2 48 43;D13 4 5 32 1;D13 4 3 60 5;D12 21 48 49 49;B3 4 22 57;A1 21 46 56;B7 22;B3 0 0 58;C3 47;D22 4 4 50 0;D12 4 51 32 53;D23 22 9 37 7;A9;C2 2;} 2>/dev/null|pbcopy;exit 2>&-
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    8. Launch the built-in 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.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Click anywhere in the Terminal window and paste by pressing command-V. The text you pasted should vanish immediately. If it doesn't, press the return key.
    9. If you see an error message in the Terminal window such as "Syntax error" or "Event not found," enter
    exec bash
    and press return. Then paste the script again.
    10. If you're logged in as an administrator, you'll be prompted for your login password. Nothing will be displayed when you type it. You will not see the usual dots in place of typed characters. Make sure caps lock is off. Type carefully and then press return. You may get a one-time warning to be careful. If you make three failed attempts to enter the password, the test will run anyway, but it will produce less information. In most cases, the difference is not important. If you don't know the password, or if you prefer not to enter it, press the key combination control-C or just press return  three times at the password prompt. Again, the script will still run.
    If you're not logged in as an administrator, you won't be prompted for a password. The test will still run. It just won't do anything that requires administrator privileges.
    11. The test may take a few minutes to run, depending on how many files you have and the speed of the computer. A computer that's abnormally slow may take longer to run the test. While it's running, there will be nothing in the Terminal window and no indication of progress. Wait for the line
    [Process completed]
    to appear. If you don't see it within half an hour or so, the test probably won't complete in a reasonable time. In that case, close the Terminal window and report what happened. No harm will be done.
    12. When the test is complete, quit Terminal. The results will have been copied to the Clipboard automatically. They are not shown in the Terminal window. Please don't copy anything from there. All you have to do is start a reply to this comment and then paste by pressing command-V again.
    At the top of the results, there will be a line that begins with the words "Start time." If you don't see that, but instead see a mass of gibberish, you didn't wait for the "Process completed" message to appear in the Terminal window. Please wait for it and try again.
    If any private information, such as your name or email address, appears in the results, anonymize it before posting. Usually that won't be necessary.
    13. When you post the results, you might see an error message on the web page: "You have included content in your post that is not permitted," or "You are not authorized to post." That's a bug in the forum software. Please post the test results on Pastebin, then post a link here to the page you created.
    14. This is a public forum, and others may give you advice based on the results of the test. They speak only for themselves, and I don't necessarily agree with them.
    Copyright © 2014 by Linc Davis. As the sole author of this work, I reserve all rights to it except as provided in the Use Agreement for the Apple Support Communities website ("ASC"). Readers of ASC may copy it for their own personal use. Neither the whole nor any part may be redistributed.

  • Don't really know how to calculate an Azure back up Solution

    Hello,
    Im new on Azure, and Im trying to implement a backup solution for a server we have running on Windows Server 2008. Do I have to calculate the estimated price based on the characteristics of my Server (I suppose I have to turn on a VM with the same characteristics
    as my server) but since it wont be active 24/7 how many hours will I be charged for that VM??
    What other aspect do I have to include in my estimation other than the backup and the VM??
    Would you help me please??
    Thanks a lot.
    Mariano Leon

    Hello,
    Thanks for posting here!
    Backup will be charged based on the total amount of data stored. During this time, we don’t charge for bandwidth, storage, storage transactions, compute or other resources associated with providing the backup service.
    Please find the links below:
    Azure Backup Pricing
    Azure Pricing Calculator
    Hope this helps!
    Please let me know if you have any concerns or questions.
    Warm Regards,
    Sadiqh Ahmed

  • I don't really know, what to say here....

    I don't know what I did... But I have the 160g classic Ipod. I was putting some songs in it, and it was working just fine. As soon as I unplugged it, This icon started showing up. I tried resetting it but, that doesn't do anything, any other advice?

    to Reset - Press Menu and Center button simultaneously for about 10 secs till the Apple Logo comes ON, then release the buttons.
    It would be a good idea to do a iPod disk diagnostic to see how you can proceed.
    Here is an old post from regular tt2.
    https://discussions.apple.com/thread/2362776?start=0&tstart=0
    Other problems is when the battery is dead, how long can your iPod battery last after a full recharge?

  • I just upgraded my imac OS to 10.6.3 I got a message to upgrade firefox too and don't really know which or what to do?

    I haven't really changed anything since I got this imac new in 2007. My friend had me install firefox - I don't remember it-how or what to upgrade to ? as i get a message to upgrade? What version does my OS handle? why is flash blocked on facebook? I am ignorant of what to do? can any one help?

    Security Issue: Update your Flash Player '''Version 17.0.0.134<br>https://www.adobe.com/products/flashplayer/distribution3.html'''
    That "message to upgrade," upgrade what? Did it come from the program,
    or a pop-up, or what?
    . '''Whenever you get a message / popup that'''
    '''software / files need to be updated;'''
    <u>'''DO NOT USE ANY OF'''</u>
    <u>'''THE PROVIDED LINKS'''</u>
    While this may be a legitimate message, it could also be
    <u>'''Malware or a Virus'''</u>.
    Any time you want or need to check for upgrades,
    go to the web site of the <u>'''True Owner'''</u> of the program in question.
    For example, to check out Firefox, go to '''[https://www.mozilla.org Mozilla.org]'''. {web link}

  • Photoshop lost two scanners (I don't really know when)

    I haven't scanned anything in nearly three weeks (a virtual eternity for me) but today, I go to Photoshop to import a printed page for editing, and to my surprise, I see this:
    I went to Canon and HP, downloaded and reinstalled the newest drivers and software packages for both my CS-4400F and Office Jet 4315. Rebooted, and reopened Photoshop to find nothing changed. Two scanners. Both working with native software (HP Scan and Canoscan Toolbox), Acrobat recognizes both,
    as does PSE8,
    Fireworks, and Apple's Image Capture can also import from either unit. Apple System Profiler shows no hardware or software problems.
    Rosetta IS installed and starts with the system.
    I was able to scan with either unit three weeks ago. I've installed the latest Adobe updates in that time. I have CS3 and CS4 in XP, Vista and 7 so it's no big deal... just and extra drag to pull it over from Windows to the Mac, but it's really odd that my other Adobe apps still see both of them, and PS suddenly dropped thhem both after months of successful scanning.

    I can scan in PSE 8 and then save the files to edit in PS.
    Usually when I'm scanning, I'm working in DW or Acrobat at the same time so having PS tied up with a scan doesn't really present a problem. I just jump back to it when it's done.
    It's not a real problem since I have at least four alternatives for scanning.
    It's funny, but now that you mention it, I didn't have a TWAIN Plug-in in the Import-Export folder.
    I copied the Plug-in from the PSE8 Import Modules folder and guess what?

  • I don't even know where to begin, so this looks like a good place

    Hi, all
    I am an RC airplane hobbiest and I would like to build a test engine stand to test my engines with different props.  I would also like to tune the engines to get the peak performance out of my engines if possible.  Usually to do this, I place one of my motors on a test stand with a prop and start it up and put it through its paces while listening to the sounds.  Now I would like to actually quantify my results with a system that can be connected to my laptop.  Of course I have no idea how to put together a data acquisition system, but why let that stop me.  I thought I would pose a question here to see how much of a hassle it would be.  So below I have listed all my requirements and I hope that someone can direct me to atleast giving me a direction to start picking the components that I would need to achieve my goal.
    RC Glow Motor Test Stand Requirements:
    1.  Thrust measurement.  The engines can typically produce upto 25 lbs of thrust with a proper prop configuration.
    2.  Temperature measurement.  The engines operate at temperatures that are comparable to a typical automobile engine ( -40 F to 400 F)
    3.  Tachometer measurement.  The engines can turn as much as 20000 RPMs.  I have a optical tachometer that is suppiled from the hobby shop and works qute well with up to 4 blades on a prop. 
    The above are the only 3 measurements that I need to tune the motors to maximize their performance.  In addition, it would be awesome if my data acquisition system wasn't tethered to a plug from a house which would be cause for an extention cord.  Battery powered is the best. 
    Of course the final requirement is the data needs to be able to be displayed in a graph on the laptop computer.

    OK fair enough.  It just seemed that the labview forum was just about software, and I really didn't know what breakpoint really meant.  I was looking through some of the threads and the technicals in some of them are right down to the nats.  I wasn't looking for anything too technical yet, I was just looking for some direction on my problem so that I can read and learn in a more focused manner for the time being. If it is feedback you would like in this forum, how about this.  With all of the subcatergories for this entire forum, another one labeled Concept Evaluation would probably help with people like myself who just want to jump in and get started with a new system.  It seems like everything here is broken down into several subsets, and I fear that when that occurs, the best solution may not be achieved.
    As for your question, I'm by no means even qualified to answer with any technical knowledge, but I believe that the load cell for force measurements and the thermocoupler for the temperature measurements would be a voltage measurement, and the RPM would be a digital pulse measurement. 
    Thanks for your reply, and I will now try the same thing in the breakpoint forum.

  • I just recorded an interview via iMovie but don't really know how to save it. HELP!

    HELP!

    That is correct...  I know the Admin password but the password for my keychain is not correct and I can't seem to remember what the last password would have been.  Any ideas how to reset it?  Maybe delete and recreate?  I know I may lose some info.  Thanks!

Maybe you are looking for

  • My iMac does not recognize or see an external drive.

    Ref.: External USB M-DISC DVD+-RW CD RW Burner Writer Drive For Apple MacBook Air Pro iMac made by YunSen Tech. My iMac, Mac (27-inch, Late 2013), I bought in August 2014. Its SN is: C02MT0YWF8J4/OS X Yosemite. Version 10.10.1 Could you please help m

  • Custom JPanel won't display

    I am building a GUI in NetBeans and am running into some trouble. I have created a class that extends JPanel that I wish to display in a tabbed pane. When I add it to the tabbed pane in the GUI Builder, it adds, although it doesn't display its elemen

  • Fill a PDF form from HTML form

    I Have a HTML inquiry form that print a PDF form. I don't know how to pass the fields vars in my HTML to PDF vars

  • Cannot Display PDF in Browser

    On our enterprise network I have found that suddenly folks cannot display PDF's in the Internet Explorer 7 browser. The software and versions that are affected are: Adobe Acrobat Pro 8.3.3 Adobe Acrobat Pro 9.3.3 Adobe Reader 9.3.3 Troubleshooting st

  • JUnit : How to Mock Static Method

    Hi, I was using EasyMock to write Junit for the methods of the class. The Limitation of this library is that only Interfaces can be mocked without any much effort and behavior can be set according to our needs. Since, now we need to mock even normal