Need help with XiFi Platinum... Not worki
Hello everyone, I'm having (some?) trouble with my XiFi Platinum. I've had it for a little over a year now, and I personally think it's broken but I just want to be sure before I go out and buy something to replace it...
So yesterday it worked fine justl like new. Then I installed a new 8800GT (From 2 7900GT's being removed) and connected that. I had to rewire some things, move a harddri've around to make it fit, etc, but i didnt really mess with the soundcard, there was no need to. But when I turned the computer on after installing I find that there is no sound at all. Windows didint even detect the card anymore and simply said ''no audio device'' in the sound properties.
I then proceeded to re adjust the card in the same PCI slot and after reboot windows did recognize the card properly. I continued to test if it worked, because all the software settings said it should be working. I turned on my speakers and without even having any audio files running i had this high pitched ringing noise that never went away (until i turned off the speakers).
OK so I thought it might have been the PCI slot, so I doubtfully tried another slot. The card isn't recognized at all in the second slot, and I go back where I started to ''no audio device detected." I deleted the Creative drivers and downloaded the most recent XP32 ones that I'd need (SBXF_PCDRV_LB_2_5_0006.exe), but at the start of the installation it simply said something like ''there is no supported device detected, installation will now close.'' So at this point I'm not sure what I need to do because I think it's broken...
System Specs:
Motherboard: MSI P6N SLI Platinum? LGA 775
Processor: Intel Core 2 Duo E6550 @ 2.4GHz
RAM: (2xGB) Patriot signature DDR2 800
Hard Dri'ves: (2x) Western Digial Caviar 200GB (=400GB)
Graphics Card: eVGA Geforce 8800GT 52MB
Sound Card: CL SB Xi-Fi Platinum (http://us.creative.com/products/product.asp?category=&subcategory=208&product=4065 )
OS: Windows XP Home 32bit
Also, this is a ''relati'vely'' fresh install of win XP that I did about 2-3 weeks ago. Reinstalled nVida drivers last night after installing the 8800GT. At this point I'm thinking that i might have burnt out the card at some point while working with the computer, and I can't see otherwise, but I dont know..
Any help is appreciated.:manvery-happy:
**EDIT** I forgot to mention that after I switched the card to a new PCI slot it was detected by Windows as a new PCI device, but it didnt work and I couldnt install drivers. Strangely I think the bios got reset or something because after I moved the card the MSI logo was displayed as opposed to the boot information, which I had it set on. The clock also got reset.. I'll have to look more closely at the bios to see if anything else got changed too.
Message Edited by sniper23 on 07-22-2008 02:06 PM
Quote from: Svet on 13-October-09, 20:13:27
Try with better PSU, single rail with at least 40A at +12V
Any recommendations for a better PSU, I've also been looking at the stats for my current psu
quote some specs on it..
"Triple 12V Rails provide independent reliable power to the CPU, video card and other components with a combined rating of 50A (40A on 520W) maximum! Advanced circuitry design that automatically enables power sharing between the triple +12V rails in an event of overload on any single +12V rail."
Really thought this PSU would handle it.
Similar Messages
-
Need help with SQL*Loader not working
Hi all,
I am trying to run SQL*Loader on Oracle 10g UNIX platform (Red Hat Linux) with below command:
sqlldr userid='ldm/password' control=issue.ctl bad=issue.bad discard=issue.txt direct=true log=issue.log
And get below errors:
SQL*Loader-128: unable to begin a session
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux-x86_64 Error: 2: No such file or directory
Can anyone help me out with this problem that I am having with SQL*Loader? Thanks!
Ben PrusinskiHi Frank,
More progress, I exported the ORACLE_SID and tried again but now have new errors! We are trying to load an Excel CSV file into a new table on our Oracle 10g database. I created the new table in Oracle and loaded with SQL*Loader with below problems.
$ export ORACLE_SID=PROD
$ sqlldr 'ldm/password@PROD' control=prod.ctl log=issue.log bad=bad.log discard=discard.log
SQL*Loader: Release 10.2.0.1.0 - Production on Tue May 23 11:04:28 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL*Loader: Release 10.2.0.1.0 - Production on Tue May 23 11:04:28 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Control File: prod.ctl
Data File: prod.csv
Bad File: bad.log
Discard File: discard.log
(Allow all discards)
Number to load: ALL
Number to skip: 0
Errors allowed: 50
Bind array: 64 rows, maximum of 256000 bytes
Continuation: none specified
Path used: Conventional
Table TESTLD, loaded from every logical record.
Insert option in effect for this table: REPLACE
Column Name Position Len Term Encl Datatype
ISSUE_KEY FIRST * , CHARACTER
TIME_DIM_KEY NEXT * , CHARACTER
PRODUCT_CATEGORY_KEY NEXT * , CHARACTER
PRODUCT_KEY NEXT * , CHARACTER
SALES_CHANNEL_DIM_KEY NEXT * , CHARACTER
TIME_OF_DAY_DIM_KEY NEXT * , CHARACTER
ACCOUNT_DIM_KEY NEXT * , CHARACTER
ESN_KEY NEXT * , CHARACTER
DISCOUNT_DIM_KEY NEXT * , CHARACTER
INVOICE_NUMBER NEXT * , CHARACTER
ISSUE_QTY NEXT * , CHARACTER
GROSS_PRICE NEXT * , CHARACTER
DISCOUNT_AMT NEXT * , CHARACTER
NET_PRICE NEXT * , CHARACTER
COST NEXT * , CHARACTER
SALES_GEOGRAPHY_DIM_KEY NEXT * , CHARACTER
value used for ROWS parameter changed from 64 to 62
Record 1: Rejected - Error on table TESTLD, column DISCOUNT_AMT.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 2: Rejected - Error on table TESTLD, column DISCOUNT_AMT.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 3: Rejected - Error on table TESTLD, column DISCOUNT_AMT.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 4: Rejected - Error on table TESTLD, column DISCOUNT_AMT.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 5: Rejected - Error on table TESTLD, column DISCOUNT_AMT.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 6: Rejected - Error on table TESTLD, column DISCOUNT_AMT.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 7: Rejected - Error on table TESTLD, column DISCOUNT_AMT.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 8: Rejected - Error on table TESTLD, column DISCOUNT_AMT.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 9: Rejected - Error on table ISSUE_FACT_TESTLD, column DISCOUNT_AMT.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 10: Rejected - Error on table TESTLD, column DISCOUNT_AMT.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 11: Rejected - Error on table TESTLD, column DISCOUNT_AMT.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 12: Rejected - Error on table TESTLD, column DISCOUNT_AMT.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 13: Rejected - Error on table TESTLD, column DISCOUNT_AMT.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 14: Rejected - Error on table TESTLD, column DISCOUNT_AMT.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 15: Rejected - Error on table TESTLD, column DISCOUNT_AMT.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 16: Rejected - Error on table TESTLD, column DISCOUNT_AMT.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 17: Rejected - Error on table TESTLD, column DISCOUNT_AMT.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 18: Rejected - Error on table TESTLD, column DISCOUNT_AMT.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 19: Rejected - Error on table TESTLD, column DISCOUNT_AMT.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 20: Rejected - Error on table TESTLD, column DISCOUNT_AMT.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 21: Rejected - Error on table TESTLD, column DISCOUNT_AMT.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 22: Rejected - Error on table TESTLD, column DISCOUNT_AMT.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 23: Rejected - Error on table TESTLD, column DISCOUNT_AMT.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 24: Rejected - Error on table TESTLD, column DISCOUNT_AMT.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 39: Rejected - Error on table TESTLD, column DISCOUNT_AMT.
Column not found before end of logical record (use TRAILING NULLCOLS)
MAXIMUM ERROR COUNT EXCEEDED - Above statistics reflect partial run.
Table TESTLD:
0 Rows successfully loaded.
51 Rows not loaded due to data errors.
0 Rows not loaded because all WHEN clauses were failed.
0 Rows not loaded because all fields were null.
Space allocated for bind array: 255936 bytes(62 rows)
Read buffer bytes: 1048576
Total logical records skipped: 0
Total logical records read: 51
Total logical records rejected: 51
Total logical records discarded: 0
Run began on Tue May 23 11:04:28 2006
Run ended on Tue May 23 11:04:28 2006
Elapsed time was: 00:00:00.14
CPU time was: 00:00:00.01
[oracle@casanbdb11 sql_loader]$
Here is the control file:
LOAD DATA
INFILE issue_fact.csv
REPLACE
INTO TABLE TESTLD
FIELDS TERMINATED BY ','
ISSUE_KEY,
TIME_DIM_KEY,
PRODUCT_CATEGORY_KEY,
PRODUCT_KEY,
SALES_CHANNEL_DIM_KEY,
TIME_OF_DAY_DIM_KEY,
ACCOUNT_DIM_KEY,
ESN_KEY,
DISCOUNT_DIM_KEY,
INVOICE_NUMBER,
ISSUE_QTY,
GROSS_PRICE,
DISCOUNT_AMT,
NET_PRICE,
COST,
SALES_GEOGRAPHY_DIM_KEY
) -
Need help my iterator is not working
Hi, I am working on a program that deals with three keithley Multimeters and a GW instek power supply. I am currently having trouble getting my power supply to increment up and down. I have the correct formulas to complete this as they have worked before but after having this program totally redone the same code is not working. It would seem there is an error somewhere in the incrementing. The block I am talking about is in the lower right hand corner of the take reading state.
If you see anything please let me know. Thanks
Kenneth
North Dakota State University
Center for Nanoscale Science and Engineering
Attachments:
Thermo power 5-25-11 PM.vi 243 KBAre you saying the the indicator called '1' is not incrementing? It pretty much has to if your loop is running.
If the indicator IS incrementing and you expect it to actually do something, then you have a problem because it doesn't appear to be wired to anything except in the wait state. It's not connected to any part of your Instek code so it's not going increment any voltages. Did you mean to connect it to the Voltage control perhaps?
Using LabVIEW: 7.1.1, 8.5.1 & 2013 -
Need a little help with a Jbutton not working out the way I planned
The following code is to fulfill an assignment I am working on. The problem I am having is with the btnCalc. For some reason when the button is used, the results I get is from another button. I think the variables are set right for the program to function properly but I am really hung up on this. Do anyone have any suggestions?
import java.awt.*; //Contains classes for creating GUI
import java.awt.event.*; //For listener events
import javax.swing.*; // Imports the Main Swing Package
import javax.swing.event.*;
import javax.swing.text.*; // Positions text box
import java.text.NumberFormat; // For number format such as currency
import java.text.*; // Imports the Main Text Package
import java.util.*; // Utility Package
public class MPC extends JFrame implements ActionListener //Creates Class for MPC
//double dblLoanAmount, dblInterestRate, dblMonthlyPayment;
TextField txtTotalMort;
//JButton fixRates = new JButton("Choose Fixed Rates");
JLabel lblTotalMort = new JLabel("How much is the loan?"); // Label for dblLoanAmount amount
JTextField txtYears = new JTextField(10);
JLabel lblPayment = new JLabel("Your monthly payment is "); // Label for Payment
JTextField txtPayment = new JTextField(10);
JLabel lblYears = new JLabel("How many years?");
// add(lblYears);
JTextField txtYearsInput = new JTextField(10);
//a dd(txtYears);
JLabel lblInterestRate = new JLabel("What is the interest rate?");
//add(lblInterestRate);
JTextField txtInterestRate = new JTextField(10);
//add(txtInterestRate);
//JLabel lblPayment = new JLabel("Your monthly payment is:");
//add(lblPayment);
//JTextField txtPayment = new JTextField(10);
//txtPayment.setEditable(false);
//add(txtPayment);
JButton btnCalc = new JButton("Calculate");
//add(btnCalc);
//btnCalc.addActionListener(this);
JButton year7InterestRateBtn = new JButton("7 years at 5.35%"); // Mortgage Term and Interest Rate
JButton year15InterestRateBtn = new JButton("15 years at 5.50%");
JButton year30InterestRateBtn = new JButton("30 years at 5.75%");
JButton reset = new JButton("Clear All");
JTextArea boxSpace = new JTextArea(100,200); // Morgtage table size
JScrollPane scroll = new JScrollPane(boxSpace); // ScrollPane
public MPC() // Method
super("MPC"); // Frame Title
JMenuBar mb = new JMenuBar(); // Menu Bar
setJMenuBar(mb);
setSize(325, 500); // Frame Size
JPanel pane = new JPanel();
pane.setLayout(new BoxLayout(pane, BoxLayout.Y_AXIS)); //Grid box configuration
Container grid = getContentPane();
grid.setLayout(new GridLayout(8,2,8,8)); // Grid Layout
pane.add(grid); // Adds grid
pane.add(scroll); // Adds scrollPane
grid.setBackground(Color.white);
Setting color of text and backgrounds
txtYears.setBackground(Color.white);
txtYears.setForeground(Color.black);
txtYears.setFont(new Font("Arial", Font.PLAIN, 10));
txtPayment.setBackground(Color.white);
txtPayment.setForeground(Color.black);
txtPayment.setFont(new Font("Arial", Font.PLAIN, 10));
boxSpace.setBackground(Color.white);
boxSpace.setForeground(Color.black);
boxSpace.setFont(new Font("Arial", Font.PLAIN, 10));
grid.add(lblYears);
grid.add(txtYearsInput);
grid.add(lblInterestRate);
grid.add (txtInterestRate);
grid.add(lblTotalMort); // Adds the Mortgage Amount Label
grid.add(txtYears); // Adds the Mortgage Amount Text Field
grid.add(lblPayment); // Adds the Payment Label
grid.add(txtPayment); // Adds the Monthly Payment Text Field
txtPayment.setEditable(false); // Disables editing in this Text Field
grid.add(btnCalc);
grid.add(year7InterestRateBtn); // Adds 1st Loan and Rate Button
grid.add(year15InterestRateBtn); // Adds 2nd Loan and Rate Button
grid.add(year30InterestRateBtn); // Adds the Exit Button
grid.add(reset); // Adds the New Calc Button
setContentPane(pane); // Enables the Content Pane
setVisible(true); // Sets JPanel to be Visable
reset.addActionListener(this); // Adds Action Listener to the New Calc Button
txtYearsInput.addActionListener(this);
txtInterestRate.addActionListener(this);
btnCalc.addActionListener(this);
year7InterestRateBtn.addActionListener(this); // Adds Action Listener to the 1st loan Button
year15InterestRateBtn.addActionListener(this); // Adds Action Listener to the 2nd loan Button
year30InterestRateBtn.addActionListener(this); // Adds Action Listener to the 3rd loan Button
txtYears.addActionListener(this); // Adds Action Listener to the Mortgage Amount Text Field
txtPayment.addActionListener(this); // Adds Action Listener to the Monthly payment Text Field
public void actionPerformed(ActionEvent e) // Tests to Verify Which Button is Pressed
Object command = e.getSource(); // Enables command to get data
int intYears = 0; // Declares intYears
double dblLoanAmount, dblInterestRate, interestRate, intRate;
if (command == year7InterestRateBtn) // Activates the 1st Loan Button
intYears = 0; // Sets 1st value of Array
if (command == year15InterestRateBtn) // Activates the 2nd Loan Button
intYears = 1; // Sets 2nd value of Array
if (command == year30InterestRateBtn) // Activates the 3rd Loan Button
intYears = 2; // Sets 3rd value of Array
if (command == btnCalc)
//dblLoanAmount = Double.parseDouble(txtTotalMort.getText() ); // Loan amount
//interestRate = Double.parseDouble(txtInterestRate.getText() ); // /100 )/ 12; // Devides rate
intRate = (Double.parseDouble(txtInterestRate.getText() )/100 )/ 12;
//int intYearsMonths = Integer.parseInt(txtYearsInput.getText() );// * 12; //Multiplies loan length
int months = Integer.parseInt(txtYearsInput.getText() )* 12;
dblLoanAmount = 0; // Declares and Initializes dblLoanAmount
dblInterestRate = 0; // Declares and Initializes dblInterestRate
double [][] dblTrmLoanRate = {{7, 5.35}, {15, 5.50}, {30, 5.75},}; // Array Data for Calculation
try
dblLoanAmount = Double.parseDouble(txtYears.getText()); // Gets user input from txtYears Text Field
catch (NumberFormatException nfe) // Checks for correct user input
JOptionPane.showMessageDialog(null, "You must enter a valid number.", "MPC", JOptionPane.INFORMATION_MESSAGE);
return;
interestRate = dblTrmLoanRate [intYears][1];
//dblInterestRate=interestRate;
intRate = (interestRate / 100) / 12; // Calculates Interst Rate
double intYearsMonths = dblTrmLoanRate [intYears] [0]; // Calculates Loan Term in Months
int months = (int)intYearsMonths * 12; // Devides by months
double interestRateMonthly = (intRate / 12); // Devides Rate
double payment = dblLoanAmount * intRate / (1 - (Math.pow(1/(1 + intRate), months))); // Calculates monthly payment
double dblRmnLoan = dblLoanAmount; //Left over balance
double txtPaymentInterest = 0; // Payment
double txtPaymentPrincipal = 0; // Payment of principal
NumberFormat currency = NumberFormat.getCurrencyInstance(Locale.US); // Curreny format
txtPayment.setText(currency.format(payment));
boxSpace.setText("Month\tPrincipal\tInterest\tBalance Left\n");
for (;months > 0 ; months -- )
txtPaymentInterest = (dblRmnLoan * intRate);
txtPaymentPrincipal = (payment - txtPaymentInterest); // Calculates monthly payment
dblRmnLoan = (dblRmnLoan - txtPaymentPrincipal);
boxSpace.setCaret (new DefaultCaret()); // Scroll position
boxSpace.append(String.valueOf(months) + "\t" + // Table data
currency.format(txtPaymentPrincipal) + "\t" +
currency.format(txtPaymentInterest) + "\t" +
currency.format(dblRmnLoan) + "\n");
if(command == reset)
Clears fields
txtYearsInput.setText(null);
txtInterestRate.setText(null);
txtYears.setText(null);
txtPayment.setText(null);
boxSpace.setText(null);
public static void main(String[] args) //This is the signature of the entry point of all the desktop apps
new MPC();
}This portion to be exact. All the buttons work for me except this one. I need to calculate user input and also use the fixed data that can be found in the dblTrmLoanRate array. When I choos to use user input instead, the program either crashes or for some reason uses the year7InterestRateBtn instead.
if (command == btnCalc)
//dblLoanAmount = Double.parseDouble(txtTotalMort.getText() ); // Loan amount
//interestRate = Double.parseDouble(txtInterestRate.getText() ); // /100 )/ 12; // Devides rate
intRate = (Double.parseDouble(txtInterestRate.getText() )/100 )/ 12;
//int intYearsMonths = Integer.parseInt(txtYearsInput.getText() );// * 12; //Multiplies loan length
int months = Integer.parseInt(txtYearsInput.getText() )* 12;
I was going to leave out the remed portion but thought it might help you with the navigation. I am sorry I did not use code tags, but I am going to go find out what those are and use them in the future. -
Need Help! Ospprearm.exe not working with Windows 8 and Micorsoft Office 2013
I am running 64 bit win 8 and office 2013. I searched in my whole PC and I found Ospprearm.exe in this location C:\Program Files (x86)\Microsoft Office\Office15
That was the only place I found ospprearm.exe. When I opened it I got this error
There was an error when trying to rearm Office. You can try passing the SKU Id as a parameter. Passing the SKU ID is necessary if you are relying on activation to permit an additional rearm. Error: 0xc004f025
On a computer running Microsoft non-core edition, run 'slui.exe 0x2a 0xc004f025' to display the error text
I haven't rearmed Microsoft Office before with this technique before.
I really Don't know what happend.
<marquee>Please Reply</marquee><marquee>Please Reply</marquee><marquee>Please
Reply</marquee><marquee>Please Reply</marquee><marquee>Please Reply</marquee>Hello Ethan
I am a bit worried since using Ospprearm.exe for office in my 64-bit version of Windows
8 original version apparently changes my CMID will it affect my Windows Profile adversely as well or only office? I am told this rearms
does "the following tasks:
Resets the grace timer to 30 days.
Freezes the grace timer until either an Office application is run, or the ospp.vbs script is run.
Resets the client computer ID (CMID). This is important because the KMS host uses the CMID to determine the number of unique clients. To check the CMID, use the command ospp.vbs
/dcmid. For more information about ospp.vbs, see The ospp.vbs script.
Note: If you run this command on either Windows 8 or Windows Server 2012, it only returns to CMID for Windows,
not Office. To see the CMID for Office 2013, look for event 12288 in the Application Event log..."
Your clarification will be deeply appreciated thanks!!!
Wacef -
Need help with Mac & PC not recognizing external drive (disk not readable)
I am having trouble getting my computer(s) to recognize my Seagate External Drive.
Have tried on my MacBook, iMac, 2 Mini's & my roommate's PC and all reveal the same issue: The Disk you inserted was not readable by this computer.
MacBook/iMac both are working off of Leopard
Both Mini's are on Tiger
It won't show up in finder, rendering it unobtainable. I need to get the information if at all possible off of this hard drive (very important!!) so any help I can get would be greatly appreciated!
It allows me to go into disk utility where it shows up with this information:
Name : ST316002 3A Media
Type : Disk
Partition Map Scheme : Master Boot Record
Disk Identifier : disk4
Media Name : ST316002 3A Media
Media Type : Generic
Connection Bus : USB
USB Serial Number : 3LJ07T540000
Device Tree : /PCI0@0/USB7@1D,7/@4:0
Writable : Yes
Ejectable : Yes
Mac OS 9 Drivers Installed : No
Location : External
Total Capacity : 149.1 GB (160,041,885,696 Bytes)
S.M.A.R.T. Status : Not Supported
Disk Number : 4
Partition Number : 0
And it is in the "about this mac" section with this information:
Seagate Mass Storage:
Capacity: 149.05 GB
Removable Media: Yes
Detachable Drive: Yes
BSD Name: disk4
Version: 0.00
Bus Power (mA): 500
Speed: Up to 480 Mb/sec
Manufacturer: Seagate
Mac OS 9 Drivers: No
Partition Map Type: MBR (Master Boot Record)
Product ID: 0x0500
Serial Number: 3LJ07T540000
S.M.A.R.T. status: Not Supported
Vendor ID: 0x0bc2Additional info:
on the disk4s1 info in disk utility, this information is seen:
Name : disk4s1
Type : Volume
Disk Identifier : disk4s1
Mount Point : Not mounted
Connection Bus : USB
Device Tree : /PCI0@0/USB7@1D,7/@4:1
Writable : Yes
Capacity : 149.0 GB (160,022,790,144 Bytes)
Owners Enabled : No
Can Turn Owners Off : No
Can Be Formatted : No
Bootable : No
Supports Journaling : No
Journaled : No
Disk Number : 4
Partition Number : 1
so it looks like a whole lot of no's that need to be turned around! I can't understand why it won't be read by either Mac or PC with all of this, or how I can fix it -
I know that this isn't hard, but I just can't figure it out.
I am trying to create artificial cellular life, but the cells will be able to go through sexual reproduction.
The DNA for the cells is a 500 index boolean array. One array for Dominant genes, and another one for Rececive genes.
The DNA is generated randomly.
The division (to make a sperm cell) works like this -
1. I get a random number with the Math.random() function, and I use the Math.round() function to round it to either a 1, or a 0.
2. The boolean arrays are converted to integer arrays (true = 1, false = 0).
3. If the random number is a 1, then (in a for loop) the current index value of the dominant array is changed to a 3. If the random numnber is equal to a 0, then the current index value of the rececive array is changed to a 3.
I started working on a new class, to combine the sperm cell with another sperm cell (call it an egg cell, whatever, doesn't matter) in order to create a new complete cell.
I realized that I have no idea how I can reuse my classes, and make NEW cells, without overwriting my old cells.
All of the final information that the classes produce is passed through TestMain.class (which puts it into other variables, and sends it to the appropriate class).
So, I need to be able to run the process for creating a cell, then creating a sperm cell out of it, twice.
I can, of course, just copy and paste this action, but seeing as how I want to have unlimited amounts of cells in action, this would not be practical.
Here are my classes, sorry that they are not commented, but I explained what they do above, and I will write what they do overall.
Genes.java - Creates the random DNA (and is essentially the cell)
public class Genes {
public boolean[] domgenes = new boolean[501];
public boolean[] recgenes = new boolean[501];
public void randgenes()
System.out.println ("Dominant Genome: ");
System.out.println ("");
int domcount = 0;
for(int i=0; i<500; i++) {
double tempgene = (Math.round((Math.random())));
int tempdomgene = (int)(tempgene);
if(tempdomgene == 1) {
domgenes[i] = true;
System.out.print(1);
else {
domgenes[i] = false;
System.out.print(0);
for (int x = 0; x<500; x++) {
if (domcount == 0) {
System.out.println("");
System.out.println("");
System.out.println ("Rececive Genome: ");
System.out.println("");
domcount = 1;
double tempgene = (Math.round((Math.random())));
int temprecgene = (int)(tempgene);
if(temprecgene == 1) {
recgenes[x] = true;
System.out.print(1);
else {
recgenes[x] = false;
System.out.print(0);
public boolean[] getdomGenes()
System.out.println("");
return domgenes; //returns the dominant genome
public boolean[] getrecGenes()
return recgenes; //returns the rececive geneome
}DivideGenes.java - This creates the sperm cell out of the information that TestMain.java sent it (which is the information that Genes.java sent to it).
public class DivideGenes
int badcopy =0;
boolean[] domgenes;
boolean[] recgenes;
int[] tempdomgenes = new int[501];
int[] temprecgenes = new int[501];
int tempgene;
int geneholder;
public DivideGenes(boolean[] domgenes, boolean[] recgenes)
this.domgenes = domgenes;
this.recgenes = recgenes;
public int randommath() { //finds a random number
double tempgene2 = Math.random();
tempgene2 = tempgene2*500;
tempgene = (int)tempgene2;
return tempgene;
public void randdivide() //main process
for (int i = 0; i < 500; i++) {
if (domgenes[i] == true) {
tempdomgenes[i] = 1;
else {
tempdomgenes[i] = 0;
if (recgenes[i] == true) {
temprecgenes[i] = 1;
else {
temprecgenes[i] = 0;
for (int i = 0; i < 500; i++) { //creates the sperm cell
if (binmath() == 1) {
tempdomgenes[i] = 3;
else {
temprecgenes[i] = 3;
public int[] getNewDomGenes()
return tempdomgenes;
public int[] getNewRecGenes()
return temprecgenes;
public int binmath() {
double tempbingene = (Math.round((Math.random())));
int bingene = (int)(tempbingene);
return bingene;
}TestMain.java - This is the class that all of the result information is passed through, and is the regulator class (this is the class with the 'main' block). I used the names of the objects randomly, they do not represent anything (like cell2 does not represent the second cell), they are just names.
public class TestMain
public static void main(String[] args)
Genes cell = new Genes();
cell.randgenes();
boolean[] theDominantGenes = cell.getdomGenes();
boolean[] theRececiveGenes = cell.getrecGenes();
DivideGenes cell2 = new DivideGenes(theDominantGenes, theRececiveGenes);
cell2.randdivide();
int[] theTempDominantGenes = cell2.getNewDomGenes();
int[] theTempRececiveGenes = cell2.getNewRecGenes();
CreateNewCell cell3 = new CreateNewCell (theTempDominantGenes,theTempRececiveGenes);
cell3.CompileCell();
}CreateNewCells.java - This is going to combine two sperm cells in order to make one new cell. It doesn't have anything in it so far, just some System.out.println stuff I made to show my friends.
public class CreateNewCell {
int[] tempdomgenes;
int[] temprecgenes;
public CreateNewCell(int[] tempdomgenes, int[] temprecgenes)
this.tempdomgenes = tempdomgenes;
this.temprecgenes = temprecgenes;
public void CompileCell() {
System.out.println("");
System.out.println("Sperm Division Started");
System.out.println("------------------------------------------");
System.out.println("");
System.out.println ("Dominant Genome after random gene elimination");
System.out.println("");
for (int i = 0; i < 500; i++) {
System.out.print(tempdomgenes);
System.out.println("");
System.out.println("");
System.out.println ("Rececive Genome after random gene elimination");
System.out.println("");
for (int i = 0; i < 500; i++) {
System.out.print(temprecgenes[i]);
Thank you very much if you choose to help me out.As I said before, your code is not object.
When you write
DivideGenes cell2 = new DivideGenes(theDominantGenes, theRececiveGenes);it means than from 2 Genes, you are creating a new object which is DivideGenes. I assume that what you want is to create a cell from an other cell and its mate.
So it should be:
public class Cell {
//put here your gene class attributes and methods
public Cell divideCell(Cell mate) {
Cell child = new Cell();
//put here your divide code
return child;
}Otherwise I can't understand your code.
What kind of object is a createcellGene?? It must be a method of Cell !!
... -
Need help please swf html not working right
Hello everyone,
I created a game in keynote for my HS kids with links to the right slide according to whether or not they are the correct answer.
I exported it to flash. I got two files xxx.swf when I click on this on my desktop it opens in safari with a black background and it plays.
the second file is xxx.html when I click on this on my desktop it opens in safari and plays in a smaller frame with a white background.
So I uploaded my swf to idisk and I copied the content of the HTML in a snippet. I thought it would work. It does not.
I could not care less about the background I just want one or the other to work but I can figure it out.
Thank you in advance for your help
MireilleUpload the SWF and the HTML file to your website folder in Finder/Go/iDisk/My iDisk/Web/Sites.
Create a link on any web page to the HTML file....
http://web.mac.com/username/WebsiteName/xxx.html
... and select "open in a new window" if you want.
Clicking the link should then open your movie to play in a new window. -
Need help with installing ora10gR2 [not enough physical memory]
hey guys,
i am trying to install oracle10gR2 on fedora core 4.
i installed core 4 with following partitions on a 80gb harddrive.
100 mb /boot
1024 mb swap
rest for /
the OS is working perfectly fine.
but when i try to install ora10g on it it says that i dont have enough
physical disk space. i dont understand it b'coz almost 70GBs are
available for / partition.
any suggestions would help.
thanks
KDWelcome to the Community,
without any details about the VMware Workstation version you are using and the blog you read it's pretty hard to help. Anyway, the issue you mentioned was resolved with VMware Workstation 10.0.4 (see VMware Workstation 10.0.4 Release Notes), so in case you are running an older version it may be worth updating.
André
Message was edited by: a.p. - Fixed typo in version number 10.0.4 (instead of 10.4) -
Need help with color tints not finding t-slider can you help?
can someone help i'm going bonkers trying to get the tints and colors working
i checked the online help on how to make a color tint.
but the solution tells me if i don't have the "t-slider" make sure the color is checked
as global then go to show options
but this is not helping. i still don't see what i need to make a tint.
i really wish the way to make this work was more like indesign.
please help.
thank you
Message was edited by: [email protected]You need to make the color a swatch first. Then double click the swatch and check the Global box.
-
Need help with Itunes problem not being able to put custom made ringtone on iphone 4s.
My iphone 4s is running iOS7. My windows laptop is running the latest version of itunes, i follow instructions everywhere to get the ringtone i made onto my cellphone and i get stuck where it says to go to the apps tab and then scroll down till you see the apps you have and choose the app that you made the ringtone with. Well when i select apps it just goes to the app store, it doesn't do anything else. How in the world do i get that to come up so i can move the ringtone from the app to my phone??? please help!
Although WAV files have the same audio coding as an audio CD, a disc full of WAV files does not act like an audio CD; it lacks the indexing and ToC needed in order for a "regular" CD player to play it. As Diane notes, put your WAV files in an iTunes playlist and burn it as an *audio CD.*
-
Need help with simple stuff not compiling
I just started to use java today and I don't understand things very well...
I am working on doing arithmetic in java and when attempting to compile my program I get a list of 5 errors saying
"Arithmetic.java:17: package system does not exist
system.out.println(The sum is: "+ sum);
Arithmetic.java:22: package system does not exist
system.out.println(The difference is: "+ difference);"
and so on... in my Command Shell...
Here is the original code...
Arithmetic Java
This program demonstrates the arithmetic operators available in Java
public class Arithmetic {
public static void main(String[] args) {
int numberA = 10;
int numberB = 7;
//Addition+
int sum = numberA + numberB;
system.out.println("The sum is: "+ sum);
//Subtraction-
int difference = numberA - numberB;
difference = numberB - numberA;
system.out.println("The difference is: "+ difference);
//Multiplication*
int product= numberA * numberB;
system.out.println("The product is: "+ product);
//Division/
int quotient= numberA / numberB;
system.out.println("The quotient is: "+ quotient);
double doubleQuotient = (double) numberA / numberB;
system.out.println("the doubleQuotient is: " + doubleQuotient);
//Modulus%
int remainder = numberA % numberB;
System.out.println("the remainder is: " + remainder);
int CrazyEquasion = 4 + 7 *10 -11 *12;
System.out.println("The CrazyEquasion is: " + CrazyEquasion);
//Inc
//numberA = numberA + 1;
//numberA++;
//++numberA;
int increment = ++numberA;
System.out.println("The increment is: " + increment);
//Dec
numberA = numberA - 1;
numberA--;
--numberA;
numberA = numberA + numberB;
numberA += numberB;
numberA = numberA - numberB;
numberA -= numberB;
an explanation of what it means by packages is what I really am hoping for in the answer
Any help would be appreciated...
though I doubt this is worth anyone's time
Edited by: Prokaryote on Jul 21, 2008 4:35 AMsystem.out.println();
or
System.out.println(); -
Need Help with Kontakt2 player - not reading Garritan GPO files in Pro 7
I upgraded to Logic Pro 7 from 6 and messed up one of my libraries. First, the Kontakt player did not even show up in my pull-down menu, so, I upgraded to K2. Now, the player loads but it tells me that my GPO (Garritan) patches can't be used. What is going on? Anybody? Please help. Thank you.
P.S. I upgraded to 7.2.3 and that did not do it.The problem is that Kontakt plugin has no files in it
Kontakt has a file browser, which lets you access all the files on all your disks. It also has a comprehensive database function.
You do not need to put files in any particular place, you just need to navigate to where your files are, and load them. If you don't know how to use the disk browser, then read that section in the manual.
All you sample/instrument/multi files on your computer won't magically show up in this window, you need to do some file management or point the browser to the files you want to load.
I get the message the files cannot be used.
This is probably related to the issue I mentioned i my first response above.
Seriously - this is not a Logic issue, it is an NI one - you will get much better help in the NI forums, or GPO support than here.
Message was edited by: Bee Jay -
[SOLVED] Need help with urvxt customization (Not Serious Problem)
Hello, everybody. I'm new to this forum, and arch in general.
I need some help customizing urxvt. I would like it to have a black background against green text, like UNIX sort of, but I would also like semi-transparency.
It would be nice if someone could help. I have xcompmgr running on openbox.
EDIT: Also, volwheel is not showing in my system tray, and I am wondering what is the best desktop pager. Help appreciated.
Last edited by simplymac (2011-04-09 15:50:56)ngoonee wrote:Also, start a new thread for a different question. But first, do a search, don't expect others to do your homework for you.
Okay, I think I can do this, thanks for the fast response! -
I Need Help With Making This Program Work
The directions for this program:
Enhance the Student class to contain an Advisor. The advisor has a name (type Name), phone number (type String). Place edits in the Name class to validate that the length of the first name is between 1 and 15, middle inital <= 1, and lastName is between 1 and 15. Throw an IllegalArgumentException if the edits are not met. The advisor attribute in the Student class should replace the advisorName. Document the Name, Advisor, and Student classes including the preconditions and postconditions where necessary. Create a test class that will instantiate a Student, fully populate all of its fields and print it out. Do not document the test class. Submit for grade Student.java, Advisor.java, and Name.java.
public class Student
private Advisor advisorName;
private Advisor phoneNumber;
public void setAdvisorName(Advisor anAdvisorName)
advisorName = anAdvisorName;
public Advisor getAdvisorName()
return advisorName;
public void setPhoneNumber(Advisor aPhoneNumber)
phoneNumber = aPhoneNumber;
public Advisor getPhoneNumber()
return phoneNumber;
public class Name
private String firstName;
private String midInit;
private String lastName;
public String getFullName()
return firstName + " " + midInit + " " + lastName;
public String getFirstName()
return firstName;
public String getMidInit()
return midInit;
public String getLastName()
return lastName;
Calculates length of the first name.
(Postcondition: getFirstName() >= 0)
@param s the length of the first name to calculate
(Precondition: length of aFirstName > 0 and <= 15)
public void setFirstName(String aFirstName)
if(aFirstName.length() < 1)
throw new IllegalArgumentException();
if(aFirstName.length() > 15)
throw new IllegalArgumentException();
firstName = aFirstName;
Calculates length of the middle initial.
(Postcondition: getMidInit() >= 0)
@param s the length of the middle initial to calculate
(Precondition: length of s > 0 and <= 1)
public void setMidInit(String aMidInit)
if(aMidInit.length() == 1)
throw new IllegalArgumentException();
midInit = aMidInit;
Calculates length of the last name.
(Postcondition: getLastName() >= 0)
@param s the length of the last name to calculate
(Precondition: length of aLastName > 0 and <= 15)
public void setLastName(String aLastName)
if(aLastName.length() < 1)
throw new IllegalArgumentException();
if(aLastName.length() > 15)
throw new IllegalArgumentException();
lastName = aLastName;
public class Advisor
private Name advisorName;
private String phoneNumber;
public String getFullName()
return advisorName + " " + phoneNumber + " ";
public Name getAdvisorName()
return advisorName;
public String getPhoneNumber()
return phoneNumber;
public void setAdvisorName(Name anAdvisorName)
advisorName = anAdvisorName;
public void setPhoneNumber(String aPhoneNumber)
phoneNumber = aPhoneNumber;
public class Test
public static void main(String[] args)
Name name1 = new Name();
name1.setFirstName("Timothy");
name1.setLastName("O'Neal");
name1.setMidInit("J.");
System.out.println("name1 = " +
name1.getFirstName() + " " +
name1.getMidInit() + " " +
name1.getLastName());
Student st = new Student();
st.setAdvisorName(name1);
Name name2 = st.getAdvisorName();
System.out.println("name2 = " +
name2.getFirstName() + " " +
name2.getMidInit() + " " +
name2.getLastName());
name2.setFirstName("Timothy");
System.out.println("name2 = " +
name2.getFirstName() + " " +
name2.getMidInit() + " " +
name2.getLastName());
System.out.println("name1 = " +
name1.getFirstName() + " " +
name1.getMidInit() + " " +
name1.getLastName());
System.out.println("name1 = " + name1.getFullName());
System.out.println("name2 = " + name2.getFullName());
}I can't get the test class to compile and i'm not sure if this is what i'm suppose to dopublic class Test
public static void main(String[] args)
Student st = new Student();
Advisor advisor = new Advisor();
st.setAdvisor(advisor);
Name name1 = new Name();
name1.setFirstName("Jake");
name1.setLastName("Schmidt");
name1.setMidInit("K.");You have the general idea, I think. You are just doing it backwards.
You create and advisor and assign it to a student. But you don't give
the advisor a name until after you assign it to the student.
You should create an advisor, give the advisor a name and then add it to the student.
//create the name
Name name1 = new Name();
name1.setFirstName("John");
name1.setLastName("Smith");
name1.setMidInit("K.");
//create the advisor
Advisor advisor = new Advisor();
advisor.setAdvisorName(name1);
//create the student
Student student = new Student();
//assign the advisor to the student
student.setAdvisor(advisor);
//now the student has an advisor named John K. Smith
//What is the name of the advisor?
String name = st.advisor.getAdvisorName().getFullName();
//I know that line looks complicated...but that's how you have created your class structure.
Instead you could have done:
Class Student{
private Advisor advisor;
public String getAdvisorName(){
return advisor.getFullName();
class Advisor{
private Name advisorName;
public getFullName(){
return advisorName.getFullName();
This way, if you wanted to know the advisor's name you would go:
String name = st.getAdvisorName();
which is much easier.
I think it would be much easier to help you if we were both in the same room, on the same computer :)
Maybe you are looking for
-
IPhone 4S opening App Store in iPad's version.
So this is how it looks :<
-
I upgraded my Iphone to IOS6, but now I can't connect it to itunes (10.6.3) because it is not upgraded. However, when I want to upgraded, it says that my computer (imac Mac OS 10.5.8) needs to be upgraded to another version. I can't find anything to
-
PO and down pmt made in last F.Y and now cancel PO w/out cancel the down p
Hello Guru's Please help me for below scenario. Our client was created Imported PO and down payment made in last F.Y and now some reasons they want to cancel the PO and create new domestic PO with same PR. But down payment was cleared and accounts ar
-
Syncing Palm Tungsten E2 with Mac OS 10.4.11
Have synced with Palm Zire 21 for 3 years - no prob. New Tungsten E2 arrives. Can sync calendars from computer to E2, but not from E2 to computer. Also no memos will transfer from computer to E2. Address Book is same. Using USB connection only. Any s
-
Hi Guys, I have been an avid podcast listener for quite sometime and eventually decided to download itunes to not only manage my casts but to also provide some support to the podcast community in presenting some reviews. However since I am situated i