A little help with some code and theory
Hey guys, I'm kinda new to this whole programming thing so
bare with me please. I have a little problem that I just can't seem
to get my hear around. I have a working on an inventory management
page. It keeps track of what software is installed where and how
many copies we have, and serials and such. Well, this page was set
up long before I started here and it wasn't too friendly. So I'm
editing it and adding some new features. Well one of them is
displaying the “available installs count” with the
search results.
Here is my problem. The way the system keeps track of what
software is installed where is by adding taking the appId from the
table it with all the app's information on it (the sn, name, max
installs, etc) and creating a new entry in another table that
indexs that appId and the workstation it is installed on. (along
with an Install id) well the only way to check to see how many
copies is installed is to get the record count for a particular
appId.
This is where I run into trouble. When a user searches for
apps the results page displays the apps that still have installs
available. So where the record count of getInstallCount for
whatever appId is less than the max installs. Well what is the best
way to do this since to get the record count of getInstallCount I
need an appID and the appID isn't found until I do the search
query. What I'm using now is this but it always returns 0 for
current Install Count. See the attached Snippet of code:
I see what it is doing. It is getting the isntallCount for
all appIds, but I dont' know how to narrow it down without doing
the search first, and I don't know how to do the search with out
getting the install count first. Any ideas or advice would rock
guys. Like I said I'm kinda new to this programming stuff but it is
awesome! Thanks!
Kevin
The w and wi are just table aliases that make it easier to
referrence those tables by column when joining multiple tables
(avoids having to prefix column names with the entire table name,
etc.) When doing a self-join (joining a table to itself), the use
of table aliases is
required, otherwise you would have no other way to tell
which column belonged to which "instance" of table.
The query itself is pretty simple. It is just using a
correlated subquery to select only those instances of
workstationApps where the count of appID instances in
workstationAppIndex is less than the amount specified in the
maxConcurrentInstalls for the same appID.
Also, I do see what you are doing with #form.searchType#, I
was just making sure that it was what you really intended to do.
Phil
Similar Messages
-
Need little help with JPA code and displaying database data into tables
Hello Everyone,
I am using java6 and Netbeans 6.1 on Windows XP platform.
This is probably very simple but have'nt been able to figure it out yet. I am using the Travel Java Databse included in NB6 as a learning tool.
I have a JComboBox connected to Person Table and want to display a Trip table from using the selected item from theJcombobox. In other words, Trip table shows only the Person selected from the Jcombobox.
If someone could point me on the right direction how to code JPA code or how to use NB6 GUI to accomplish this.
ThanksThe w and wi are just table aliases that make it easier to
referrence those tables by column when joining multiple tables
(avoids having to prefix column names with the entire table name,
etc.) When doing a self-join (joining a table to itself), the use
of table aliases is
required, otherwise you would have no other way to tell
which column belonged to which "instance" of table.
The query itself is pretty simple. It is just using a
correlated subquery to select only those instances of
workstationApps where the count of appID instances in
workstationAppIndex is less than the amount specified in the
maxConcurrentInstalls for the same appID.
Also, I do see what you are doing with #form.searchType#, I
was just making sure that it was what you really intended to do.
Phil -
Need a little help with some errors.
Receiving some errors..
btn2.addActionListener(new ActionListener() {
and also
frame.setLocation(400,400);
frame.setVisible(true);
}<<~~has 2 errors here...
Both above have class or interface expected errors..clueless on what i'm missing at the moment.
Anyone mind pointing out what {'s and }'s i'm missing?
btn1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
btn1actions();
private void btn1actions() {
if (radio1.isSelected()) System.out.println("Radio Button 1 is selected.");
if (radio2.isSelected()) System.out.println("Radio Button 2 is selected.");
btn2.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
btn2actions();
private void btn2actions() {
if (radio1.isSelected()) System.out.println("Radio Button 1 is selected.");
if (radio2.isSelected()) System.out.println("Radio Button 2 is selected.");
btn3.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
btn1actions();
private void btn3actions() {
txt1.setText("");
txt1.requestFocus();
public static void main(String[] args) {
Test2 frame = new Test2();
frame.setTitle("Test Frame");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setSize(400, 300);
frame.setLocation(400,400);
frame.setVisible(true);
}All my code..finally posted...just need help with more errors.
F:\DocumentsTest2.java:169: ';' expected
btn1.addActionListener(new ActionListener()) {
^
F:\Documents\Test2.java:176: illegal start of expression
private void btn1actions() {
^
F:\Documents\Test2.java:191: illegal start of expression
private void btn2actions() {
^
F:\Documents\.java:202: illegal start of expression
private void btn3actions() {
^
4 errors
Tool completed with exit code 1
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class Test2 extends JFrame{
static JButton btn1,btn2,btn3;
static JTextField txt1;
static JRadioButton radio1,radio2;
public Test2() {
Container container = getContentPane();
container.setLayout(new BorderLayout());
//Create Panels
JPanel Panel1 = new JPanel();
JPanel Panel2 = new JPanel();
JPanel Panel3 = new JPanel();
JPanel Panel4 = new JPanel();
JPanel Panel5 = new JPanel();
JPanel Panel6 = new JPanel();
JPanel Panel7 = new JPanel();
JPanel Panel8 = new JPanel();
JPanel Panel9 = new JPanel();
JPanel Panel10 = new JPanel();
//Set Layout for Panels
Panel3.setLayout(new BorderLayout());
Panel4.setLayout(new BorderLayout());
Panel5.setLayout(new BorderLayout());
Panel6.setLayout(new BorderLayout());
Panel10.setLayout(new BorderLayout());
//Create the Various Fonts and Colors for this GUI
Font font1 = new Font("SansSerif", Font.BOLD, 20);
Font font2 = new Font("Serif", Font.PLAIN, 15);
Color color1 = new Color(3,15,125);//A Dark Blue Color
Color color2 = new Color(201,29,10);//A Red Color
Color color3 = new Color(127,127,127);//A Grey Color
//Create Buttons and Labels
btn1 = new JButton("Submit");
btn2 = new JButton("Display Schedule");
btn3 = new JButton("Enter New Name");
JLabel label1 = new JLabel("Student Name");
JLabel label2 = new JLabel("Course Number");
JLabel label3 = new JLabel("Welcome to the Java Community College");
JLabel label4 = new JLabel("Registration System!");
//Declare Text Field For Entering Student Names
txt1 = new JTextField(15);
//"Put Course Number from another Method Here"
String[] courseStrings = { "CISM2230 A", "CISM2230 B", "CISM1110 A", "CISM1110 B", "CISM1120 A", "CISM1120 B" };
JComboBox Combo1 = new JComboBox(courseStrings);
//Declare Radio Buttons for Add and Drop Course
radio1 = new JRadioButton("Add a Course", false);
radio2 = new JRadioButton("Drop a Course", false);
ButtonGroup radioButtons = new ButtonGroup();
radioButtons.add(radio1);
radioButtons.add(radio2);
//Panel 10 is the Main Displaying Panel
Panel10.add(Panel3, BorderLayout.NORTH);
Panel10.add(Panel4, BorderLayout.CENTER);
Panel10.add(Panel8, BorderLayout.SOUTH);
//Panel 3 Used to Display Label 3 and 4 using Panels 1 and 2
Panel3.add(Panel1, BorderLayout.NORTH);
Panel3.add(Panel2, BorderLayout.CENTER);
Panel1.add(label3);
Panel2.add(label4);
//Panel 4 Used to Display Student Name, Txt1, Course Number, Combo Box and Radio Buttons
Panel5.add(label1, BorderLayout.NORTH);
Panel5.add(txt1, BorderLayout.CENTER);
Panel6.add(label2, BorderLayout.NORTH);
Panel6.add(Combo1, BorderLayout.CENTER);
Panel7.add(radio1, BorderLayout.NORTH);
Panel7.add(radio2, BorderLayout.CENTER);
Panel4.add(Panel5, BorderLayout.NORTH);
Panel4.add(Panel6, BorderLayout.CENTER);
Panel4.add(Panel7, BorderLayout.SOUTH);
//Panel 8 Used to Display the Buttons
Panel9.add(btn1, BorderLayout.CENTER);
Panel9.add(btn2, BorderLayout.CENTER);
Panel9.add(btn3, BorderLayout.SOUTH);
Panel8.add(Panel9, BorderLayout.CENTER);
//Setting Background, ForeGround and Font of all Text.
Panel1.setBackground(color3);
Panel2.setBackground(color3);
Panel3.setBackground(color3);
Panel4.setBackground(color3);
Panel5.setBackground(color3);
Panel6.setBackground(color3);
Panel7.setBackground(color3);
Panel8.setBackground(color3);
Panel9.setBackground(color3);
Panel10.setBackground(color3);
btn1.setBackground(color3);
btn2.setBackground(color3);
btn3.setBackground(color3);
radio1.setBackground(color3);
radio2.setBackground(color3);
btn1.setFont(font2);
btn2.setFont(font2);
btn3.setFont(font2);
Combo1.setFont(font2);
Combo1.setBackground(color3);
Combo1.setForeground(color1);
label1.setFont(font2);
label2.setFont(font2);
label3.setFont(font1);
label4.setFont(font1);
label1.setForeground(color2);
label2.setForeground(color2);
label3.setForeground(color1);
label4.setForeground(color1);
container.add(Panel10);
//Setting Keyboard Shortcuts to Radio Buttons and Regular Buttons
btn1.setMnemonic('S');
btn2.setMnemonic('D');
btn3.setMnemonic('E');
radio1.setMnemonic('A');
radio2.setMnemonic('C');
//ActionListener
btn1.addActionListener(new ActionListener()) {
public void actionPerformed(ActionEvent evt) {
btn1actions();
private void btn1actions() {
if (radio1.isSelected()){ System.out.println("Radio Button 1 is selected. Button 1")};
if (radio2.isSelected()){ System.out.println("Radio Button 2 is selected. Button 1")};
btn2.addActionListener(new ActionListener()) {
public void actionPerformed(ActionEvent evt) {
btn2actions();
private void btn2actions() {
if (radio1.isSelected()) System.out.println("Radio Button 1 is selected(Button 2).");
if (radio2.isSelected()) System.out.println("Radio Button 2 is selected.Button 2");
btn3.addActionListener(new ActionListener()) {
public void actionPerformed(ActionEvent evt) {
btn1actions();
private void btn3actions() {
txt1.setText("");
txt1.requestFocus();
public static void main(String[] args) {
JavaCollegeTest2 frame = new JavaCollegeTest2();
frame.setTitle("Project 4");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setSize(400, 300);
frame.setLocation(400,400);
frame.setVisible(true);
} -
I am a complete newbe to programming in general but especially to JAVA. I just started a class to learn but the professor just assigns tasks and the book does not go into actually how to do any of what he asks. Of course this is an online class so there is no real teaching on his part either. What is wrong with my code. I have had to look at code online to try and figure this stuff out. I'm afraid though I havent quite got the jist of what the syntax is for JAVA so my understanding of all of this is very limited.
here is my code: (the way the forums message box works it seems to word wrap a little different then notepad++ so please bare with the lines that should be "//" and dont show it at the beginning. (example first two lines).
// My java app that checks to see if a number is even or odd and if it is between 1 and 1000. It also uses the JOptionPane to input and output.
import javax.swing.JOptionPane;
import java.io.*;
import java.lang;
public class numberChecker
public static void main(String[] args) throws IOException{
try{
JOptionPane.showMessageDialog( "This is a Program to check whether numbers are even\nand if they are between 1 and 1000");
String name =
JOptionPane.showInputDialog( null, "Enter in a Number");
Integer.parseInt( String, name );
if (name % 2 == 0)
JOptionPane.showMessageDialog("Is %s even\ntrue");
} else {
JOptionPane.showMessageDialog("Is %s even\nfalse.");
if (name > 0)
if (name < 1001)
JOptionPane.showMessageDialog("The number %s between 1 and 1000 is true");
} else {
JOptionPane.showMessageDialog("The number %s between 1 and 1000 is false");
} else {
JOptionPane.showMessageDialog("The number %s between 1 and 1000 is false");
JOptionPane.showMessageDialog(null, name);
catch(NumberFormatException e){
JOptionPane.showWarningDialog(e.getMessage() + " is not a numeric value.");
System.exit(0);
};i had updated the code to be this now:
// My java app that checks to see if a number is even or odd and if it is between 1 and 1000. It also uses the JOptionPane to input and output.
import javax.swing.JOptionPane;
import java.io.*;
import java.lang;
public class numberChecker
public static void main(String[] args) throws IOException{
try{
JOptionPane.showMessageDialog( "This is a Program to check whether numbers are even\nand if they are between 1 and 1000");
String name =
JOptionPane.showInputDialog( null, "Enter in a Number");
Int valueToParse =
Integer.parseInt( name );
if (valueToParse % 2 == 0)
JOptionPane.showMessageDialog("Is ",valueToParse," even\ntrue");
} else {
JOptionPane.showMessageDialog("Is ",valueToParse," even\nfalse.");
if (name > 0)
if (name < 1001)
JOptionPane.showMessageDialog("The number ",valueToParse," between 1 and 1000 is true");
} else {
JOptionPane.showMessageDialog("The number ",valueToParse," between 1 and 1000 is false");
} else {
JOptionPane.showMessageDialog("The number ",valueToParse," between 1 and 1000 is false");
JOptionPane.showMessageDialog(null, name);
catch(NumberFormatException e){
JOptionPane.showWarningDialog(e.getMessage(), " is not a numeric value.");
System.exit(0);
};Now i get a bunch of "cant find symbol" errors. -
A little help with installing Windows and configuring GRUB
I want to install Windows XP on my machine for various reasons. As I am writing this I am using an existing Archlinux. Now I wonder what I should take care of considering GRUB when installing Windows.
I know that Windows likes to mess with the MBR and as I am not too proficient with such things I want to be careful.
Alright, now I put in the Windows installation CD, choose a fitting partition and let it install. I assume that afterwards my GRUB will be gone... How do I take care of this?After windows has finished installing, re-insert you arch install cd and boot from it.
Mount your arch Installation as below
mount /dev/sdXY /mnt
- change sdX for your arch / partition, also mount /boot if you have a seperate /boot partition.
start the installer, and then just do the grub stage of the install again
or issue the command
grub-install /dev/sdX --root-directory=/mnt
Last edited by gazj (2008-02-25 14:43:26) -
Need help with some code ... Searching a tree and inserting data
I'm trying to write code for the addIterative method below.
My problem is that I also need to search the list or node to see if the word exists.
The method add(word,line,position,iterative) validates the parameters; and, in order to update the tree and/or any relevant linked-list, calls either the incomplete method addIterative(word,line,position) or the incomplete method addRecursive(word,line,position). Note the following: if the word is not contained currently in the tree, then all of the (word,line,position) triplet needs to be added to the data structure; otherwise, only the (line,position) pair needs to be added to the data structure. The result must be the same regardless of the algorithmic strategy employed.
any suggestions would be greatly appreciated, new to java, and very lost.
regards,
Jimmy
* Write a description of class Tree091 here.
* @author (your name)
* @version (a version number or a date)
class Tree091 /*(i.e., WordTree)*/
{ private char[] word=null;
private List091 list=null;
private Tree091 precursor=null; /*(i.e., leftSubTree)*/
private Tree091 successor=null; /*(i.e., rightSubTree)*/
public Tree091(char[] word,
List091 list,
Tree091 precursor, /*(i.e., lexicographically < word)*/
Tree091 successor) /*(i.e., lexicographically > word)*/
{ if (word==null) return;
if (word.length<1) return;
if (list==null) return;
this.word=word;
this.list=list;
this.precursor=precursor;
this.successor=successor;
public void add(char[] word,
int line,
int position,
boolean iterative)
{ if (word==null) return;
if (word.length<1) return;
if (line<0) return;
if (position<0) return;
if (iterative)
this.addIterative(word,line,position);
else
this.addRecursive(word,line,position);
private void addIterative(char[] word,
int line,
int position)
/* something goes here*/
private void addRecursive(char[] word,
int line,
int position)
/* something goes here*/
private int compare(char[] array1,
char[] array2)
{ if (array1==null) return -2;
if (array2==null) return -2;
int length1=array1.length;
if (length1==0) return -2;
int length2=array2.length;
if (length2==0) return -2;
int minLength=length1<length2?length1:length2;
for (int i=0; i<minLength; i++)
{ if (array1[i]<array2) return -1;
if (array1[i]>array2[i]) return 1;
return length1==length2 ? 0 : length1<length2 ? -1 : 1;
public boolean contained(char[] word)
{ int compare=compare(this.word,word);
if (compare==1&&this.precursor!=null)
return this.precursor.contained(word);
if (compare==0) return true;
if (compare==-1&&this.successor!=null)
return this.successor.contained(word);
return false;
public int listNodeCount(boolean iterative)
/* something goes here*/
return 24;
public int maximumWordLength(int currentLength)
/* something goes here*/
return 25;
public String toString()
{ String string="";
if (this.precursor!=null) string+=this.precursor;
string+="\""+(new String(this.word))+"\""+this.list;
if (this.successor!=null) string+=this.successor;
return string;
public int treeNodeCount()
/* something goes here*/
return 26;
public String wordArray(int length)
/* something goes here*/
return "hey hey wordarray";hey,
ok, wow, that was intense, my brain hurts!!!!
And now I've got to go do a graduate program test, argh!!!
A problem I keep getting is trying to figure out what my lecturer is doing in the start of the Tree091 class,
that is, I can see that he is constructing the list and tree but it appears that he is doing it all at the same time, and I'm getting confused with what actually gets inserted into the list, and do we insert the word, line and position, or just the line and position?
Also, I didnt use a 'while loop', I'm not sure how, but I found a 'for loop' in the text book, what do you think of it? Is it ok for now?
And I'm getting an error at this line:
Tree091 ins = new Tree091(char[] word); // getting error '.class' expected here
any ideas?
heres what I've got so far:
private void addIterative(Comparable char[] word,int line, int position){
// Insert char[] word into the this BST
int direction = 0;
Tree091 parent = null, curr = root;
for (;;) {
if (curr == null) {
Tree091 ins = new Tree091(char[] word); // getting error '.class' expected here
// word found so we call insertList method
insertList091(line, position, List091 precursor);
if (root) == null)
root = ins;
else if (direction < 0)
parent.left = ins;
else // direction > 0
parent.right = ins;
return;
direction = elem.compareTo(curr.element);
if (direction == 0)
return;
parent = curr;
if (direction < 0)
curr = curr.left;
else // direction > 0
curr = curr.right;
}And heres an attempt at the insertList method
private void insertList(char[] word, int line, int position, List091 precursor){
// Insert line and position at a given point in this List091, either after the node
// precursor, or before the first node if precursor is null
// Looking at assignment question we may need a double linked list
List091 ins = new List091 (char[] word, line, position, null);
if precursor == null) { //insert before first node (if any).
ins.successor = first;
first = ins;
} else {
ins.successor = precursor.successor;
precursor.successor = ins;
}How far off am I Joachim?
cheers,
Jimmy
ps. heres the tree091 class again:
class Tree091 /*(i.e., WordTree)*/
{ private char[] word=null;
private List091 list=null;
private Tree091 precursor=null; /*(i.e., leftSubTree)*/
private Tree091 successor=null; /*(i.e., rightSubTree)*/
public Tree091(char[] word,
List091 list,
Tree091 precursor, /*(i.e., lexicographically < word)*/
Tree091 successor) /*(i.e., lexicographically > word)*/
{ if (word==null) return;
if (word.length<1) return;
if (list==null) return;
this.word=word;
this.list=list;
this.precursor=precursor;
this.successor=successor;
public void add(char[] word,
int line,
int position,
boolean iterative)
{ if (word==null) return;
if (word.length<1) return;
if (line<0) return;
if (position<0) return;
if (iterative)
this.addIterative(word,line,position);
else
this.addRecursive(word,line,position);
private void addIterative(char[] word,
int line,
int position)
/* students to complete */
private void addRecursive(char[] word,
int line,
int position)
/* students to complete */
private int compare(char[] array1,
char[] array2)
{ if (array1==null) return -2;
if (array2==null) return -2;
int length1=array1.length;
if (length1==0) return -2;
int length2=array2.length;
if (length2==0) return -2;
int minLength=length1<length2?length1:length2;
for (int i=0; i<minLength; i++)
{ if (array1<array2[i]) return -1;
if (array1[i]>array2[i]) return 1;
return length1==length2 ? 0 : length1<length2 ? -1 : 1;
public boolean contained(char[] word)
{ int compare=compare(this.word,word);
if (compare==1&&this.precursor!=null)
return this.precursor.contained(word);
if (compare==0) return true;
if (compare==-1&&this.successor!=null)
return this.successor.contained(word);
return false;
public int listNodeCount(boolean iterative)
/* students to complete */
public int maximumWordLength(int currentLength)
/* students to complete */
public String toString()
{ String string="";
if (this.precursor!=null) string+=this.precursor;
string+="\""+(new String(this.word))+"\""+this.list;
if (this.successor!=null) string+=this.successor;
return string;
public int treeNodeCount()
/* students to complete */
public String wordArray(int length)
/* students to complete */
Edited by: allergy01 on Apr 25, 2009 9:19 PM
Edited by: allergy01 on Apr 25, 2009 9:20 PM -
Help with some flash and flare
I am trying to do some cool effects to logo and have beat my brain senseless and can not figure out how to do it. I have attached a link to a video trailer that contains some of the effects I am trying to achieve can somebody maybe steer me in the right direction of how to achieve these effects.
http://dezertpeople.com/clips/dp5/DP5trailer_V1lg.wmv
Thank You,
Bob.
Mac OS X (10.4)
Mac OS X (10.4)Many of these effects can be accomplished with Motion and 3-D animation software. I use Lightwave and PiXELS 3D. The logo effects could be replicated using a combination of animated light sources, volumetric lighting, and particle effects.
If you are not familiar with 3D animation software t, they have a very steep learning curv, take a substantial amount of time to render unless you have a render farm, but can yield impressive results. Compositing software like Shake is often used to incorporate animations with motion video.
Hope this helps,
Dave F -
Help with some effects and transitions?
Hello, i'm trying to do add some transitions to my video. I want to do a intro like this: http://www.youtube.com/watch?v=aBPV0f6c56s
I have already written the swords, the texts and the central anime minecraft guy with Anime Studio, but i need to do this 3 things:
1. Am expanding cirle opening
2. A light/flash as transition between the first animation and the next logo
(I have another question, but more difficult: I want to do a sun rays effect from an angle)
All of these effects-transitions are in the youtube video that i linked.
Can someone help me with one of these questions?
I have Adobe After Effects and Premiere Pro.
Thank you for the attention.1. Dont know excactly what you want.
2. Filmflash transition is not default in Premiere. BCC has it for AE.
If you do not have bcc then look here.
http://www.youtube.com/watch?v=mIOAqO6Trvw
3. Sunrays: look for Redgiants Shine plugin. -
Hi all,
We have been provided with a range of public IP addresses by our ISP. I want to configure some static NAT in and dynamic NAT out for our SIP based PBX. I also want to put an ACL on the outside interface so only my ITSP can talk to the public IP assigned to the PBX. I want all other hosts on my network to be able to NAT out using the WAN address assigned to the router.
Obviously the addresses are fictional!
4.4.4.3 – Default gateway to the internet
4.4.4.4 – Public IP of my router
4.4.4.5 – Public IP for the PBX
10.1.1.0/24 – PBX subnet
192.168.1.0/24 – LAN subnet
1.1.1.1 & 1.1.1.2 ITSP addresses
10.1.1.2 - PBX LAN Address
Can someone take a look at my config, would this work!?
Thanks
Matty
interface GigabitEthernet0/0
description *** Internet ***
ip address 4.4.4.4 255.255.255.192
ip access-group 111 in
ip nat outside
ip virtual-reassembly in
duplex auto
speed auto
ip nat pool PBX_POOL 4.4.4.5 4.4.4.5 netmask 255.255.255.192
ip nat inside source list 101 interface GigabitEthernet0/0 overload
ip nat inside source list PBX_SUBNET pool PBX_POOL overload
ip nat inside source static tcp 10.1.1.2 5060 4.4.4.5 5060 extendable
ip nat inside source static udp 10.1.1.2 5060 4.4.4.5 5060 extendable
ip route 0.0.0.0 0.0.0.0 4.4.4.3
ip access-list extended PBX_SUBNET
permit ip 10.1.1.0 0.0.0.255 any
access-list 101 permit ip 192.168.1.0 0.0.0.255 any
access-list 111 permit ip host 1.1.1.1 host 4.4.4.5
access-list 111 permit ip host 1.1.1.2 host 4.4.4.5
access-list 111 deny ip any host 4.4.4.5
access-list 111 permit ip any anyMatty
Not familiar with SIP so can't say for sure about that in terms of ports but some comments -
1) you don't show other interfaces but presumably the LAN interface(s) has "ip nat inside" enabled
2) the PBX subnet is 10.1.1.0/24 yet your static NATs are referring to 10.18.21.2 ?
3) following on from 2) your PBX_SUBNET acl is wrong, it should be -
ip access-list extended PBX_SUBNET
permit ip 10.1.1.0 0.0.0.255 any <-- note the last octet of the wildcard mask is 255.
Edit - also assuming that any internal subnets not directy connected to the router have routes setup for them so you router knows how to get to them.
Jon -
Hello, thanks for helping:
my problem is that I am creating a "before" and "after" situation between strings. (What a string was before.. and now what it is)
so here's the sample I created. Basically a display issue. If you run it you'll know the problem.
Thanks again for helping.
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class JScrollExample extends JFrame
JPanel mainpanel = new JPanel();
JTextArea text = new JTextArea();
JScrollPane scroll = new JScrollPane(text);
String[] before, after, other;
int sda, indexMaxLength;
int[] ja;
StringBuilder[] sb;
String[] name;
public JScrollExample()
getContentPane().add(mainpanel, BorderLayout.NORTH);
setTitle("JScrollExample");
text.setColumns(100);
text.setRows(30);
mainpanel.add(scroll);
before = new String[]
"asdf-asdfasdfasdf-asdf", "asdf-asdfasdfasdf-asdffdsaasdf",
"asdf-asdffdsaasdffdssasdfasdf-asdf", "AVDSDFDSasdf-asdfasdfasdf-asdf",
"asdsdfsdfsdfsdfsdsdfsdf-asddsffasdsdfsdfasdfvfdvdfvfd-asdf"
after = new String[]
"jkloolkj-iriod-3342", "jsdfsdolkj-iriod-3342", "jkloolkj-fdsfiriod-3342",
"jkloolkj-idsfsfsfsdfsdfiod-3sdfds342", "ASXkloolkj-iriod-3342MBW"
other = new String[]
"AAAAAAAAAAAAAAAAAAAA", "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "AAAAAAAAA", "AAAAAAAAAAAAA"
indexMaxLength = 0;
sb = new StringBuilder[before.length];
ja = new int[before.length];
name = new String[before.length];
for(int j = 0; j < before.length; j++)
if(before[j].length() > before[indexMaxLength].length())
indexMaxLength = j;
sda = before[indexMaxLength].length();
for(int i = 0; i < before.length; i++)
ja[i] = ((sda - before.length()) + 25);
for(int j = 0; j < ja.length; j++)
sb[j] = new StringBuilder("");
for(int g = 0; g < ja[j]; g++)
sb[j].append(" -");
text.append("I'm trying to make it look nice and neat," +
"and have each line have same amount of '-' " + "I tried doing it " +
"and this is what I got. Basically what i'm doing is finding " +
"the longest string, subtracting each string's \nlength with the " +
" longest one, then adding 25, to get an equal value, then using " +
"that value to put that many '-' in between before and after. But " +
"because every character has a different size, it doesn't work\n " +
"unless all the characters are the same\n\n");
for(int i = 0; i < before.length; i++)
String y = (after[i]);
text.append(before[i] + sb[i].toString() + "> " + y + "\n");
indexMaxLength = 0;
sb = new StringBuilder[before.length];
ja = new int[before.length];
for(int j = 0; j < other.length; j++)
if(other[j].length() > other[indexMaxLength].length())
indexMaxLength = j;
sda = other[indexMaxLength].length();
for(int i = 0; i < other.length; i++)
ja[i] = ((sda - other[i].length()) + 25);
for(int j = 0; j < ja.length; j++)
sb[j] = new StringBuilder("");
for(int g = 0; g < ja[j]; g++)
sb[j].append(" -");
text.append("\n\nWHAT I WANT IS THIS: \n\n");
for(int i = 0; i < other.length; i++)
String y = (after[i]);
text.append(other[i] + sb[i].toString() + "> " + y + "\n");
public static void main (String[] args)
JFrame.setDefaultLookAndFeelDecorated(true);
JScrollExample frame = new JScrollExample();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
frame.pack();what methods do you think I should use?I think you should use the monospaced font.
I went to the font metrics page, and I understand what it does.Well, then you should realize that you can't be guaranteed that your column will line up if you attempt to use the FontMetrics class. All the FontMetrics class can tell you is the width of a String.
You can calculate the width of your longest String and then calculate the width of 25 " -" to get the total width before the second colum. Lets assume this width is 500. Now lets also assume that each " -" string is 10 pixels.
If we have "i" as the only text and its width is 3 pixels, then how do you calculate a multiple of " -" which will total to 500 pixels?
Similiarly if you have a "W" as the text and its width is 7 pixels you will never be able to add characters that will total to 500 pixesl.
So if you need "- - - - >" between column 1 and column 2 the easiest solution is to use a monospaced font.
If on the other hand you only care about column two lining up in the same postion each time, then you may be able to use tabs in a JTextPane as you can easily control the placement of text for each tab. This posting will give you an idea:
http://forum.java.sun.com/thread.jspa?forumID=57&threadID=585006 -
Little help with imovie hd and canon camcorder..
im trying to get videos from canon legria hf m406 to imovie hd, using macbook air. it doesnt seem to recognize the camera even though canon hdd icon appears on desktop and i get access to jpegs. it says no camera connected or whatnot. i got it working on my other mac with star iconed imovie..not sure which version this is.
any help would be appreciated!wrong category here. This is iMovie for iphone/ipod/ipad..
-
Little help with a NameChangeListener and Event
Hi,
This is very simple but having some trouble. Ive written my NameChangeEvent class and NameChangeListener. I also have a 'MainWindow' class which is a frame and on that frame I have a text field and a button. The button is called 'change name' and when I press this a JOptionPane comes up saying 'Please enter new name'. Now this is where i'm stuck....I want the new name to appear in the text field in the MainWindow but can't remember how to do this??
Thanks alot.veldhanas wrote:
[See This|http://exampledepot.com/egs/java.util/CustEvent.html?l=rel]
Yeh i've done all that, here is my classes.
package explicit;
import java.util.EventListener;
public interface NameChangeListener extends EventListener {
public void nameChanged(NameChangeEvent event);
package explicit;
import java.util.EventObject;
public class NameChangeEvent extends EventObject {
private String name;
public NameChangeEvent(Object source, String name) {
super(source);
this.name = name;
public String getName() {
return name;
}But i'm stuck here....
private JButton getChangeNameButton() {
if (changeNameButton == null) {
changeNameButton = new JButton();
changeNameButton.setBounds(new Rectangle(60, 58, 127, 23));
changeNameButton.setText("Change Name");
changeNameButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent e) {
JOptionPane.showInputDialog(MainWindow.this, null, "Please enter in name",1);
return changeNameButton;
}What do i code in here? -
Help with some code concerning threads, please.
I get a crazy error when i run this program and press forward ('w') more then once. can anyone help?
import javax.swing.*;
import java.awt.event.*;
import java.awt.*;
public class NBoard extends JFrame implements KeyListener{
int selection = 0;
boolean selectionmade = false;
final int WIDTH = 600;
final int HEIGHT = 600;
Image Viz =Toolkit.getDefaultToolkit().getImage(JOptionPane.showInputDialog("What character do you want?")+".gif");
int XC = 50;
int YC = 50;
Thread moving = new Move();
Unit Host = new Unit();
public NBoard(){
this.setSize(WIDTH,HEIGHT);
selection = Integer.parseInt(JOptionPane.showInputDialog("What level design do you want?"));
if(selection > 0){
selectionmade = true;
addKeyListener(this);
this.setVisible(true);
public static void main(String args[]){
new NBoard();
public void paint(Graphics g){
if(selectionmade == true){
selectionmade = false;
if(selection == 1){
g.setColor(Color.white);
g.fillRect(0,0,WIDTH,HEIGHT);
g.setColor(Color.black);
g.drawLine(WIDTH/2,0,WIDTH/2,HEIGHT);
if(selection == 2){
g.setColor(Color.white);
g.fillRect(0,0,WIDTH,HEIGHT);
g.setColor(Color.black);
g.drawLine(WIDTH/2,0,WIDTH/2,HEIGHT);
for(int ctr = 1; ctr < 6; ++ctr){
g.drawRect(WIDTH/4 ,ctr * 100, 20, 20);
g.drawRect((WIDTH / 3) * 2 ,ctr * 100, 20, 20);
if(selection == 3){
g.setColor(Color.white);
g.fillRect(0,0,WIDTH,HEIGHT);
g.setColor(Color.black);
g.drawLine((WIDTH/2) - 90,0,(WIDTH/2) + 90,HEIGHT);
g.drawImage(Viz,XC,YC,this);
public void keyPressed(KeyEvent e){ //The Problem Areas
if(e.getKeyChar() == 'w'){
moving.start(); //Starting the thread to move up
else if(e.getKeyChar() == 's'){
YC = YC + 2;
else if(e.getKeyChar() == 'a'){
XC = XC - 2;
else if(e.getKeyChar() == 'd'){
XC = XC + 2;
System.out.println(e.getKeyChar());
repaint();
public void keyReleased(KeyEvent e){ //The Problem Areas
if(e.getKeyChar() == 'w'){
System.out.println("YO ZAPPA");
moving.interrupt(); //Trying to interrupt the thread once the key is released
public void keyTyped(KeyEvent e){}
class Move extends Thread{ //The Problem Areas
Unit Host = new Unit();
public void run(){ //The Thread
System.out.println("YO TESTING");
Unit.XC = Unit.XC - 2;
try{
Thread.sleep(1000);
catch (Exception e){}
class Unit{ //The Object which will hold all of the information about each unit
static int XC = 30;
static int YC = 30;
} Thank you!The problem is that each movement in each direction
should be in its own thread, because later on i am
going to try to network it so that more people can
play. That's why it has to be in a thread. The game
is basically gonna be a very simple rendition of
dodgeball, although i want to get the movement right
before I get to the ball.
Thanks for the pseudo code, but the problem is
implementing those commansd into a thread.
All i want to do for now is to be able to press the
'w' button, and make the guy move forward, while the
program is capable of doing anything else. Any help
in getting it to this stage would be appreciated.I have managed to rewrite you code to be compilable and runnable, however, I don't
understand the roles of the 'w' key, Move class and Unit class in your game. So I have
left out those parts.
import javax.swing.*;
import java.awt.event.*;
import java.awt.*;
public class NBoard2 extends JFrame implements KeyListener{
int selection = 0;
boolean selectionmade = false;
final int WIDTH = 600;
final int HEIGHT = 600;
Image Viz
= Toolkit.getDefaultToolkit().getImage(JOptionPane.showInputDialog
("What character do you want?")+".gif");
int XC = 50;
int YC = 50;
Move moving;
GamePanel gp;
boolean notStarted;
public NBoard2(){
notStarted = true;
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setSize(WIDTH, HEIGHT);
selection
= Integer.parseInt(JOptionPane.showInputDialog
("What level design do you want?"));
if(selection > 0){
selectionmade = true;
addKeyListener(this);
gp = new GamePanel();
add(gp, BorderLayout.CENTER);
setVisible(true);
moving = new Move(this);
public static void main(String args[]){
new NBoard2();
class GamePanel extends JPanel{
public void paintComponent(Graphics g){
super.paintComponent(g);
if(selectionmade == true){
selectionmade = false;
if(selection == 1){
g.setColor(Color.white);
g.fillRect(0, 0, WIDTH, HEIGHT);
g.setColor(Color.black);
g.drawLine(WIDTH/2, 0, WIDTH/2, HEIGHT);
else if(selection == 2){
g.setColor(Color.white);
g.fillRect(0, 0, WIDTH, HEIGHT);
g.setColor(Color.black);
g.drawLine(WIDTH / 2, 0, WIDTH / 2, HEIGHT);
for(int ctr = 1; ctr < 6; ++ctr){
g.drawRect(WIDTH/4, ctr * 100, 20, 20);
g.drawRect((WIDTH / 3) * 2 , ctr * 100, 20, 20);
else if(selection == 3){
g.setColor(Color.white);
g.fillRect(0, 0, WIDTH, HEIGHT);
g.setColor(Color.black);
g.drawLine((WIDTH / 2) - 90, 0, (WIDTH / 2) + 90, HEIGHT);
g.drawImage(Viz, XC, YC, this);
} // class GamePanel
public void keyPressed(KeyEvent e){
if(e.getKeyChar() == 'w' && notStarted == true){
moving.stop = false;
moving.start();
notStarted = false;
else if(e.getKeyChar() == 's'){
YC = YC + 2;
else if(e.getKeyChar() == 'a'){
XC = XC - 2;
else if(e.getKeyChar() == 'd'){
XC = XC + 2;
// System.out.println(e.getKeyChar());
repaint();
public void keyReleased(KeyEvent e){
if(e.getKeyChar() == 'w'){
//System.out.println("YO ZAPPA");
moving.stop = true;
notStarted = true;
/* reinstantiate the thread, if you need it */
moving = new Move(this); // Java Thread can't be reused
} // Once finished its run()method,
} // thread is no more in valid state
// if you do not want to reinstantiate the Move thread at the second
// 'w' press, write a proper conditional for that
public void keyTyped(KeyEvent e){}
} // class NBoard2
class Move extends Thread{
Unit Host = new Unit();
public boolean stop = false;
JPanel gpanel;
public Move(NBoard2 bd){
gpanel = bd.gp;
public void run(){
while (! stop){
System.out.println("YO TESTING");
Unit.XC = Unit.XC - 2;
//// What Unit.XC does for NBoard2.XC or other drawing parameters???
//// There's no logic written yet.
//// In other words, Move and Unit class do not particpate in the game
//// at all.
gpanel.repaint(); // may be you need it here ??? or ??
try{
Thread.sleep(1000);
catch (Exception e){
class Unit{
static int XC = 30;
static int YC = 30;
}You must learn basic of major aspects of Java programming. Tuorials at java.sum.com site are
good for that. -
Interval Since Last Panic Report: 6395213 sec
Panics Since Last Report: 1
Anonymous UUID: 8AEBAB22-1943-48B3-8D30-E4D07CCDEEA0
Tue Mar 18 13:30:13 2014
Machine-check capabilities (cpu 3) 0x0000000000000006:
family: 6 model: 15 stepping: 6 microcode: 198
Intel(R) Xeon(R) CPU 5160 @ 3.00GHz
6 error-reporting banks
Machine-check status 0x0000000000000005:
restart IP valid
machine-check in progress
MCA error-reporting registers:
IA32_MC0_STATUS(0x401): 0x1000000020000000 invalid
IA32_MC1_STATUS(0x405): 0x0000000000000000 invalid
IA32_MC2_STATUS(0x409): 0x0000000000000000 invalid
IA32_MC3_STATUS(0x40d): 0x0020000000000000 invalid
IA32_MC4_STATUS(0x411): 0x0000000000000011 invalid
IA32_MC5_STATUS(0x415): 0xb200001080200e0f valid
MCA error code: 0x0e0f
Model specific error code: 0x8020
Other information: 0x00000010
Status bits:
Processor context corrupt
Error enabled
Uncorrected error
panic(cpu 2 caller 0x2cf3cc): "Machine Check at 0x002d3432, trapno:0x12, err:0x0," "registers:\n" "CR0: 0x80010033, CR2: 0x103dd000, CR3: 0x00100000, CR4: 0x00000660\n" "EAX: 0x00000000, EBX: 0x000000be, ECX: 0x6241b000, EDX: 0x00000001\n" "ESP: 0x6f853c58, EBP: 0x6f853c58, ESI: 0x00000000, EDI: 0x827a6b3c\n" "EFL: 0x00000016, EIP: 0x002d3432\n"@/SourceCache/xnu/xnu-1699.32.7/osfmk/i386/trap_native.c:258
Backtrace (CPU 2), Frame : Return Address (4 potential args on stack)
0x6853cf38 : 0x2203de (0x6b08cc 0x6853cf58 0x229fb0 0x0)
0x6853cf68 : 0x2cf3cc (0x6bde94 0x6bdfc8 0x2d3432 0x12)
0x6853d0d8 : 0x2cf409 (0x6853d110 0xde 0x6bdfc8 0x1)
0x6853d0f8 : 0x2e6182 (0x6853d110 0x0 0x0 0x0)
0x6f853c58 : 0x2d381e (0x20 0x7fffffff 0x6f853c88 0x29701be)
0x6f853c68 : 0x29701be (0x684b6100 0xffffffff 0x6f853cb8 0x9d8e800)
0x6f853c88 : 0x297028b (0x684b6100 0xffffffff 0x7fffffff 0x827aa38d)
0x6f853cb8 : 0x296864f (0x684b6100 0x827aa38d 0xbe 0xffffffff)
0x6f853d58 : 0x29699fe (0x827aa38d 0xbe 0x3 0x0)
0x6f853de8 : 0x2d0cde (0xffffffff 0x7fffffff 0x6f853e08 0x2cd4ca)
0x6f853e08 : 0x22d3e5 (0x684c5000 0x827a6711 0xbe 0x684c5de0)
0x6f853e48 : 0x22e1c0 (0xd58c7f0 0x684c5000 0x0 0x0)
0x6f853e98 : 0x22f6c2 (0xd58c80c 0x2 0x12 0xd7c0e00)
0x6f853ef8 : 0x22f821 (0x2150f0 0x0 0x0 0xd58c7f0)
0x6f853f18 : 0x21505d (0x2150f0 0x7000006 0xc00 0xffffffff)
0x6f853f48 : 0x21b385 (0xede8f28 0x7000006 0xc00 0xffffffff)
0x6f853f98 : 0x2b7bb7 (0xd4c9954 0x7fff 0xd4c9984 0x8)
0x6f853fc8 : 0x2e60c7 (0xd4c9950 0x0 0x10 0xd4c9950)
Kernel Extensions in backtrace:
com.apple.driver.AppleIntelCPUPowerManagement(195.0)[D1550426-D346-4805-A777-06 63C69080DA]@0x2966000->0x298ffff
BSD process name corresponding to current thread: iTunes
Mac OS version:
11G63
Kernel version:
Darwin Kernel Version 11.4.2: Thu Aug 23 16:26:45 PDT 2012; root:xnu-1699.32.7~1/RELEASE_I386
Kernel UUID: 859B45FB-14BB-35ED-B823-08393C63E13B
System model name: MacPro1,1 (Mac-F4208DC8)
System uptime in nanoseconds: 818233088876
last loaded kext at 91751914186: com.apple.driver.AppleHWSensor 1.9.5d0 (addr 0x2990000, size 28672)
last unloaded kext at 226546974280: com.apple.driver.CSRHIDTransitionDriver 4.0.8f17 (addr 0x21cd000, size 12288)
loaded kexts:
com.parentalctrl.kext.filter 3.8.1
com.logmein.driver.LogMeInSoundDriver 1.0.3
com.apple.driver.AppleHWSensor 1.9.5d0
com.apple.driver.AppleUpstreamUserClient 3.5.9
com.apple.driver.AppleMCCSControl 1.0.33
com.apple.driver.AppleHDA 2.2.5a5
com.apple.driver.AudioAUUC 1.59
com.apple.GeForce7xxx 7.0.4
com.apple.driver.AppleUSBDisplays 323.3
com.apple.iokit.IOUserEthernet 1.0.0d1
com.apple.iokit.IOBluetoothSerialManager 4.0.8f17
com.apple.Dont_Steal_Mac_OS_X 7.0.0
com.apple.driver.AppleMCEDriver 1.1.9
com.apple.driver.Apple_iSight 4.0.1
com.apple.driver.AudioIPCDriver 1.2.3
com.apple.driver.ApplePolicyControl 3.1.33
com.apple.driver.ACPI_SMC_PlatformPlugin 5.0.0d8
com.apple.driver.AppleLPC 1.6.0
com.apple.filesystems.autofs 3.0
com.apple.driver.CSRUSBBluetoothHCIController 4.0.8f17
com.apple.iokit.SCSITaskUserClient 3.2.1
com.apple.driver.AppleRAID 4.0.6
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
com.apple.BootCache 33
com.apple.driver.XsanFilter 404
com.apple.iokit.IOAHCIBlockStorage 2.1.0
com.apple.driver.AppleFWOHCI 4.9.0
com.apple.driver.AppleAHCIPort 2.3.1
com.apple.driver.AppleIntelPIIXATA 2.5.1
com.apple.driver.AppleIntel8254XEthernet 2.1.3b1
com.apple.driver.AppleEFINVRAM 1.6.1
com.apple.driver.AppleUSBHub 5.1.0
com.apple.driver.AppleUSBUHCI 5.1.0
com.apple.driver.AppleUSBEHCI 5.1.0
com.apple.driver.AppleACPIButtons 1.5
com.apple.driver.AppleRTC 1.5
com.apple.driver.AppleHPET 1.7
com.apple.driver.AppleSMBIOS 1.9
com.apple.driver.AppleACPIEC 1.5
com.apple.driver.AppleAPIC 1.6
com.apple.driver.AppleIntelCPUPowerManagementClient 195.0.0
com.apple.nke.applicationfirewall 3.2.30
com.apple.security.quarantine 1.4
com.apple.security.TMSafetyNet 8
com.apple.driver.AppleIntelCPUPowerManagement 195.0.0
com.apple.driver.AppleBluetoothHIDMouse 175.9
com.apple.driver.AppleHIDMouse 175.9
com.apple.driver.IOBluetoothHIDDriver 4.0.8f17
com.apple.driver.AppleSMBusController 1.0.10d0
com.apple.driver.DspFuncLib 2.2.5a5
com.apple.nvidia.nv40hal.G7xxx 7.0.4
com.apple.NVDAResman.G7xxx 7.0.4
com.apple.iokit.IOFireWireIP 2.2.5
com.apple.iokit.IOSurface 80.0.2
com.apple.iokit.IOSerialFamily 10.0.5
com.apple.driver.AppleHDAController 2.2.5a5
com.apple.iokit.IOHDAFamily 2.2.5a5
com.apple.iokit.IOAudioFamily 1.8.6fc18
com.apple.kext.OSvKernDSPLib 1.3
com.apple.driver.AppleGraphicsControl 3.1.33
com.apple.iokit.IONDRVSupport 2.3.4
com.apple.iokit.IOGraphicsFamily 2.3.4
com.apple.driver.AppleSMC 3.1.3d10
com.apple.driver.IOPlatformPluginLegacy 5.0.0d8
com.apple.driver.IOPlatformPluginFamily 5.1.1d6
com.apple.kext.triggers 1.0
com.apple.driver.AppleUSBBluetoothHCIController 4.0.8f17
com.apple.iokit.IOBluetoothFamily 4.0.8f17
com.apple.driver.AppleUSBHIDKeyboard 160.7
com.apple.driver.AppleHIDKeyboard 160.7
com.apple.iokit.IOUSBHIDDriver 5.0.0
com.apple.driver.AppleUSBMergeNub 5.1.0
com.apple.driver.AppleUSBComposite 5.0.0
com.apple.iokit.IOSCSIMultimediaCommandsDevice 3.2.1
com.apple.iokit.IOBDStorageFamily 1.7
com.apple.iokit.IODVDStorageFamily 1.7.1
com.apple.iokit.IOCDStorageFamily 1.7.1
com.apple.iokit.IOATAPIProtocolTransport 3.0.0
com.apple.iokit.IOSCSIArchitectureModelFamily 3.2.1
com.apple.iokit.IOFireWireFamily 4.4.8
com.apple.iokit.IOAHCIFamily 2.0.8
com.apple.iokit.IOATAFamily 2.5.1
com.apple.iokit.IONetworkingFamily 2.1
com.apple.iokit.IOUSBUserClient 5.0.0
com.apple.driver.AppleEFIRuntime 1.6.1
com.apple.iokit.IOUSBFamily 5.1.0
com.apple.iokit.IOHIDFamily 1.7.1
com.apple.iokit.IOSMBusFamily 1.1
com.apple.security.sandbox 177.11
com.apple.kext.AppleMatch 1.0.0d1
com.apple.driver.DiskImages 331.7
com.apple.iokit.IOStorageFamily 1.7.2
com.apple.driver.AppleKeyStore 28.18
com.apple.driver.AppleACPIPlatform 1.5
com.apple.iokit.IOPCIFamily 2.7
com.apple.iokit.IOACPIFamily 1.4
Model: MacPro1,1, BootROM MP11.005C.B08, 4 processors, Dual-Core Intel Xeon, 3 GHz, 5 GB, SMC 1.7f10
Graphics: NVIDIA GeForce 7300 GT, NVIDIA GeForce 7300 GT, PCIe, 256 MB
Memory Module: DIMM Riser A/DIMM 1, 512 MB, DDR2 FB-DIMM, 667 MHz, 0x802C, 0x39485446363437324A592D36363742344433
Memory Module: DIMM Riser A/DIMM 2, 512 MB, DDR2 FB-DIMM, 667 MHz, 0x802C, 0x39485446363437324A592D36363742344433
Memory Module: DIMM Riser A/DIMM 3, 2 GB, DDR2 FB-DIMM, 667 MHz, 0x8319, 0x4D4B435333385554412D4944542020202020
Memory Module: DIMM Riser A/DIMM 4, 2 GB, DDR2 FB-DIMM, 667 MHz, 0x8319, 0x4D4B435333385554412D4944542020202020
Bluetooth: Version 4.0.8f17, 2 service, 18 devices, 1 incoming serial ports
Network Service: Ethernet 1, Ethernet, en0
PCI Card: NVIDIA GeForce 7300 GT, sppci_displaycontroller, Slot-1
Serial ATA Device: ST3250824AS Q, 250.06 GB
Serial ATA Device: SAMSUNG HD501LJ, 500.11 GB
Serial ATA Device: WDC WD10EADS-00M2B0, 1 TB
Serial ATA Device: WDC WD10EADS-00M2B0, 1 TB
Parallel ATA Device: SONY DVD RW DW-D150A
USB Device: hub_device, apple_vendor_id, 0x911d, 0xfd500000 / 3
USB Device: Keyboard Hub, apple_vendor_id, 0x1006, 0xfd520000 / 5
USB Device: Apple Keyboard, apple_vendor_id, 0x0220, 0xfd522000 / 6
USB Device: Apple Cinema Display, apple_vendor_id, 0x921d, 0xfd530000 / 4
USB Device: USB2.0 Hub, 0x05e3 (Genesys Logic, Inc.), 0x0608, 0xfd400000 / 2
USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x8206, 0x5d200000 / 2
FireWire Device: built-in_hub, 800mbit_speed
FireWire Device: iSight, Apple Computer, Inc., 200mbit_speed
FireWire Device: unknown_device, unknown_speedKernel panic, machine check, uncorrected error correlates very strongly with RAM memory errors.
Time for a Memory upgrade. -
Need a little help with this code
Hi,
right now I'm going through the xmlmenu tutorial, which I've
found at kirupa.com. It's pretty much clear to me. Then I decided
to try to import a blur filter. And as soon as I wright the import
flash.filter line, I get a syntax error. Where is the problem? How
do I get button's blurx/y = 0 onRollover? I was thinking to apply
the filter to menuitem mc (see the code)
Here's the codeyes, you are right - flash.filters. Another "syntax error"
;-). I did manage to get it work (the import line part). My next
question is to which MC must I apply the blur filter to get next
result:
by default the buttons are blured. OnRollOver the button gets
cleared of blur. Here's my blur code:
var myBlur = new flash.filters.BlurFilter(20,20,2);
var myTempFilters:Array = _root.mainmenu_mc.filters;
->which MC must be here to get the wanted result??????
myTempFilters.push(myBlur);
_root.mainmenu_mc.filters = myTempFilters;
curr_item.onRollOut = function() {
myBlur.blurX = 20;
myBlur.blurY = 20;
this.filters = new Array(myBlur);
curr_item.onRollOver = function() {
myBlur.blurX = 0;
myBlur.blurY = 0;
this.filters = new Array(myBlur);
THX for your help
Maybe you are looking for
-
IMac freezing and kernel panicking
My iMac 20" is keeping on freezing and then has a kernel panic a second to a minute after the freeze occurs. The following is the log from panic.log Mon Aug 27 20:13:10 2007 panic(cpu 0 caller 0x00191931): pmapflushtlbs() timeout pmap=0x30c30e8 cpust
-
Java dc use another java dc with java.lang.NoClassDefFoundError
Dear All: I've created 2 java dc. I assinged the second dc as a used dc for the first dc. I've created a web dynpro dc and add the first dc as used dc. I can build those three dc without any error, but when I deploy to server and run I got an excepti
-
Trouble burning Sony dvd-r discs
I am not able to burn video to Sony brand DVD-r discs and I am able to burn to memorex discs of same type, if I slow down the burn rate from 8x to 3x. Any way I can use the Sony Discs? Thanks.
-
Influencing BGP attributes within MPLS network
pls take a look at my question and diagram is attached in the file. pls help me to fix this problem. I have following requirement about traffic paths within the MPLS network.MPLS network is running MP-BGP4. 1.Traffic from Europe branch to Asia bran
-
Since loading Tiger I can't print or use Macromedia
Since I loaded Tiger I can't print OR use my Macromedia software I have reinstalled many times and when I try to open the software, nothing happens. When I download and install drivers for HP printers the Printer utility still won't see them. Anyone