Need help with no camera sounds & recording in Captivate 5
I am an experienced user of Captivate 3 & 4, but I'm having lots of problems with Captivate 5. I am working on a Windows 7 OS and have just installed Captivate 5. When I try to record I can't get any camera sounds, even though I have changed my preferences to show them. Also, Captivate seems to be recording erratically, and sometimes it is catching actions, other times it isnt' I am running the program as Administrator and I am very puzzled by this. Normally Captivate has worked like a charm out of the box. Now it seems to be fighting my every step of the way. Am I missing something?
Audio recording seems spotty too. Sometimes it works just fine, other times Captivate just hangs and doesn't really record any sound.
Any help would be appreciated/
Hello and welcome to the forum,
First to be sure: did you install the patch released in December (Help, Updates...)? If not try that first of all. You can find details about the issues solved by this patch in this blog post:
Patch for Captivate 5
If this doesn't help, try to clear the cache (Preferences, Global).
Perhaps (not sure) your Preferences folder has become corrupt. It so, try to find it. In Win7 normally it is a folder (Captivate 5) in this path:
\users\<username>\appdata\local\adob
Maybe you will have to change the settings to make this folder visible in Explorer, by default it is in a system folder and invisible. You can delete this folder (while CP is closed) and when you restart CP a brandnew one will be created.
Lilybiri
Similar Messages
-
I need help with my camera it's shows a black screen. And I have restarted it many times
Try:
- Reset the iOS device. Nothing will be lost
Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
least ten seconds, until the Apple logo appears.
- Reset all settings
Go to Settings > General > Reset and tap Reset All Settings.
All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
- Restore from backup. See:
iOS: How to back up
- Restore to factory settings/new iOS device.
If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem. Y are not alones. Sometimes the camera fails.
Apple Retail Store - Genius Bar -
hi,
i really hope someone can help me out here...
after i have done with recording video clips and i replay the video,the phone speaker came out a very noisy sound (is like a bad Radio Frequencies noise)
why or how is this happen ???
how can i stop the noisy sound that came out from the phone speaker ?
Thank you in advance !hi el_loco,
yes,the sound appear to be the same too when i play on the pc
the noisy sound came from the loudspeaker outlet,
i got a strong feeling that somethings is wrong with the build in microphones or maybe the loudspeaker ???Message Edited by nl3181 on 15-Jun-200709:23 PM -
Novice needs help with multi-cam
Hi, I've got 3 cameras and a seperate audio track synched in my timeline. (CC Premiere Pro 6 on a PC with - unfortunately, Windows 8) The cameras didn't all start at the same time but no problem the clips are where they need to be now. I've made several edits getting rid of stuff I don't need, and I've added a title, end note, and a few stills. All the tutorials I've watched deal with starting clips at the beginning but I can't seem to find one that shows what to do with a bunch of things already in the timeline where they need to be. Here's a screen shot if that helps to explain what I've done so far.I've tried nesting the clips and dragging that into the source panel, but no luck. Obviously, I'm missing something here (this is my very first project) hope someone can help.
Yes, what Jim said...
or if you really want to leave all your little stills and titles there and not have to add them later then alt+select all the video clips only and right click>nest. You can select all the audio clips too but I usually leave them there so I can see them all individually (personal preference) and I never have audio follow video in my edits so it's not necessary. Then right click>Multicam>Enable and proceed with #3 from Jim's list. I actually prefer to ignore the wrench and add that one touch little multicam toggle icon to the program monitor which it appears you've already done so you just need to select the far right icon on the bottom of your program window next to the little camera icon. That's the multicam toggle. Multicam cutting now takes place in the Program Window instead of the Source Window like it was in CS6. Oh also, the little "tweaks" that Jim mentioned can be easily done with the Rolling Edit Tool (Shortcut: N) You'll see. Good luck! -
Need help with problem using sound and vibration examples. question repost
I am generating a wav file using the sound and vibration example vi "SVXMPL_Wav Recorder(DAQmx)" using a ni 7422 board. Then, using the example vi SVXMPL_Getting started with SVT(Simulated)" attempting to play back that file. the wav file will load and play back on the graphs fine but when I click the "Play Wav File" which sends the audio to the computers speaker, I get the error "Cannot recognise sound Format". It plays the shipped example files fine. I can also play the wav files I generate on a Windows audio player. Don't know a lot about the sound and vibration toolkit or wav file formats but need to get these two to work together. Using LV 8.5 and sound and vibration toolkit 4.0. This is a bit of a repost of the same question ask last week but not answered. Thanks
Did you see Coq Rouge's reply in your original thread? Which thread are you going to continue?
-
Need help with editing drum sound
Hi, I'm trying to edit drum sound(got it from Standard Kit) that I input with my MIDI but I have no idea how to make the drum sound higher.( Is it possible anyway? Please help!
Message was edited by: fm198txHi @Joidivini ,
Thank you for visiting the HP Support Forums. I needed to edit your post and remove the Serial Number. From our Rules of Participation:
Protect privacy - yours and others'. Don't share anything about yourself that you would not want to see on a road-side billboard. Don't post contact or other personal information-your own or anyone else's-or any content that you receive in one-to-one communications without the author's consent. For example, don’t post your computer’s serial # or contact information publicly, and do not allow someone you don’t know to remotely take control of your computer.
If you need people to contact you directly, either ask them to send you a private message or subscribe to the thread so you will be notified when there are replies. You may also click on your name anywhere in the forum and you will be taken to your profile page, where you can find a list of threads you have participated in.
Sharing personal email addresses, telephone numbers, and last names is not allowed for your safety. If you have any questions feel free to send me a private message in reply.
Thank you
George
I work for HP -
Need Help with Hp computer sound!
Hi,
I am not sure what happened with my sound but all volume is up and still no sound. Here is my information, please help me!
HP 2000-2d19WM Notebook PC (Energy Star)
Serial Number: [edited Serial Number by Moderator]
Product Number: E0M17UAHi @Joidivini ,
Thank you for visiting the HP Support Forums. I needed to edit your post and remove the Serial Number. From our Rules of Participation:
Protect privacy - yours and others'. Don't share anything about yourself that you would not want to see on a road-side billboard. Don't post contact or other personal information-your own or anyone else's-or any content that you receive in one-to-one communications without the author's consent. For example, don’t post your computer’s serial # or contact information publicly, and do not allow someone you don’t know to remotely take control of your computer.
If you need people to contact you directly, either ask them to send you a private message or subscribe to the thread so you will be notified when there are replies. You may also click on your name anywhere in the forum and you will be taken to your profile page, where you can find a list of threads you have participated in.
Sharing personal email addresses, telephone numbers, and last names is not allowed for your safety. If you have any questions feel free to send me a private message in reply.
Thank you
George
I work for HP -
Need help with Multi-cam editing in Premiere Pro CC/7.0
I've been using 6.0 for a while now, and had to install 7.0/cc, but now I can't find where to record multi-cam edits. I've already lined up my clips and created a new sequence and enabled multi-cam, I just don't see the Multi-Cam Editor. Please help!
Hey!
I found the record-button in the programm panel. But now it won't let me hit record. The button is disabled (see screenshot).
What can I do about it?
If I just hit play and then change the angles in the source window, Premiere won't record those edits. Only thing it does is it keeps the whole clip in this one angle. -
Need help with foscam cameras connecting to AirPort Extreme N
Greetings,
I could really use some help from the AirPort gurus! I have an AirPort Extreme N base station, with firmware 7.4.2. I purchased a couple of Foscam FI8908W pan and tilt cameras. I am trying to get them to work on my home network, but cannot figure it out. Personally I think it might have something to do with port forwarding, but hec I just don't know. I have tried searching for answers, but came up empty. Here is a copy of the manual for anyone if interested <http://idisk.mac.com/wheelchairguy-Public>. I have been using VMware with XP to try and setup the camera, but the camera is not found with the IP Cam setup software. I thought I might be able to directly connect to my computer with an Ethernet cable, but no go there either. Also no go with an ethernet cable plugged to the camera into the base station. I just have no idea where or what I am doing wrong. If anyone can help me, I would be very grateful.
Thanks,
MarkHi OneCog,
We're also have broadband connected to TimeWarner. When I first got the camera I tried the same thing and had the same problem. I never read the docs and assume plug and play. So I just plugged the ethernet cable from my laptop to the camera directly and of course my laptop was connected wirelessly to the internet. It doesn't work that easily and don't worry about the cable modem, you never have to touch it's settings.
I went to the http://foscam.us website and found these instructions that actually worked:
Foscam IP Camera Instructions
Software Insallation:
Install from the Cd the IPCamSetup.exe file OR
Or download the IPcamsetup.exe file from the website Foscam.us
a) Go to the website Foscam.us
b) Click the tool & support section (top middle section)
c) Click on Download IP Camera Tools (for FI8908W or FI8904W)
d) Click on IPCamSetup.rar (bottom left corner)
e) Click on IPCamSetup.exe
You should now have an IP Camera Tools Icon
Hardware Installation:
Plug the Ethernet network cable(grey wire) into the camera then into the router
Plug the power adapter (black wire)into the camera and then into the power outlet
Opening the Camera:
Once` plugged in correctly, double click on the icon IP Camera Tools
The Camera’s IP address will appear, double click on it to open the camera
(If “subnet doesn’t match” appears , double click on it and check the box ’Obtain IP from DHCP server’ then click on OK)
Login to the Camera:
User: admin
Password: (leave it blank)
Click Login button
NOTE: Press the first Login button if using internet Explorer or other browsers OR
Press the second Login button if using Firefox, o r Google Chrome
Test to see if working:
Click on “Live Video”
Connecting Camera to Wireless:
Type your router Ip address unto your browser( press enter)
(Don’t know your router IP address? SEE: Finding your router IP address)
You may have to login or give your password. Do so.
Under the word Wireless(on left) find ‘Channel and SSID’
Click on ‘Channel and SSID’ write down(on paper) the SSID name
Click on ‘Security” and write down Security type, Authentication, Encryption Technique and Pre-shared Key information
Login back to the camera
Double click on Ip camera tools
Double click on camera’s Ip address
User: admin
Password: ( leave blank)
Click the correct Login button for your browser
Click on ‘Device Management’or ‘For Administrator’
Click on ‘Wireless Lan Settings’
Type in your SSID, Authentication Encryption technique and Pre-shared key info that you wrote down
Press Submit
Then wait 30 seconds
Disconnect ethernnet network cable from the camera
Disconnect the power plug from the camera
Reconnect the power plug to the camera ( do not reconnect the network cable wire)
wait till camera stops moving
Login back to the camera
a)Double click on Ip camera tools
b)Double click on camera’s Ip address
c)User: admin
d)Password: ( leave blank)
e)Click the correct Login button for your browser
15. Chec k to see if camera is working by clicking on to ‘Live video’
Connecting your Camera to the Internet
Write down the local IP address of your camera
(To find this address open IP Camera Tools)( it will display the IP address of the camera as htpp://[YourCamerasLocalIPAddress])
Write down your router’s external internet IP address
( The easiest way to find this would be to Google “What is my IP address” and go to the first link which pops up and that is usually whatismyipaddress.com)
Log in to your wireless router
To do this you must enter the IP address of your router into your browser(enter)
and then enter the username and password when prompted.
( If you are unsure of the ip address or username and password of your router, SEE Finding your Router IP Address )
Directing incoming connections on your external IP address to your cameras local IP address
a)Go through the options( on left side) find ‘DMZ’
b)Click on DMZ
c)set the DMZ IP address (also called “private”/”local” IP address”) to your cameras
local IP address(by changing the last component of the number to the last or last
two digits of your cameras IP address)
d)Select enable option
e)Save by clicking ‘Apply Changes’
OR If you have more than one camera
a)click on “Virtual Server” or “Port Forwarding”
b) set the inbound port to 80 and the outbound port to 80
c) Save by clicking ‘Apply Changes’
Test it to see if you set it up correctly
open a browser and enter your external internet ip address into the address bar and press enter
You should arrive at your camera’s login screen if you successfully connected the camera to the internet
NOTE: Please keep in mind that the camera’s IP address and the Internet’s external IP address can change at any time. Check and make sure that the IP addresses haven’t changed. If they have changed, use the new IP addresses.
Finding Your Routers IP Address: (Internal)
Refer to your router’s manual OR
Retrieve your Routers Ip Address from Ip Camera Tool software
Double Click on your IP Camera Tool Icon
Then left click once on your Camera’s IP address
Right click on it and choose ‘Network Configuration’
The ‘Gateway’ number is your router Ip address ( write it down) OR
view a list of default router IP addresses, usernames and passwords
by Google searching “default router IP addresses”
and clicking on the PDF titled “List of default Router Admin Passwords and Default Router IP” at: http://www.answersthatwork.com/DownloadArea/ATW_Library/Networking/Network__4-List_of_default_Router_Admin_Passwords_an d_IPaddresses.pdf
Go to ‘find’ and type in the brand name of your router (press enter)
Write down your routers IP address
Message was edited by: dollarbrand -
Need help with multi track/simultaneous recording
Please forgive me if the answer to my question has already been covered; I have searched the other posts but haven't been able to find the answer.
I am recording a podcast with a Behringer Xenyx X1832 mixer. In GB I know how to select "multi track recording" and set my two mics that are conneced to the first two channels of the mixer to "mono 1" and "mono 2" on the input source.
My question is how do I record audio from my Macbook on a seperate track?
I have a Focusrite 2i2 connected via USB to the Macbook acting as an output, then TRS cables from the outputs going to channel 7/8 on the mixer. When I play audio I can hear it perfect and adjust EQ and volume, but I am unable to record it on a seperate track on GB.
When I click on the track on GB, the input source says "stereo 1/2" and when I try to click the red buttons to arm the other two mono tracks where my mics are connected it says "The input channel of this track is already in use. To record on this track, choose another input channel."
What am I doing wrong? How do I send audio from the Macbook to the mixer and then record it on a seperate track, along with seperate tracks for each of the mics?You need to create an aggregate device:
http://support.apple.com/kb/HT1215 -
Apparently in seup in web mail, one can check the box for a sound to be heard when new mail arrives...ie.."You got mail or something to that effect." Getting info on this subject or any subject is like pulling teeth ..all i get is links that do not answer to my problem. What will it take to get a live person or at the least a response to my question. Also, when I open verizon.net to read or see if I have had any mail, I sign in correctly, and am asked if i forgot my password. I didn't forget, apparently verizon has...so just on a whim, in that same page, I click on the link email and voila, i see my mail...Now, that being said, whats to prevent anyone else to read my mail by doing the same thing? I even resetted the password...and I thought Time warner internet was bad.
Hi @Joidivini ,
Thank you for visiting the HP Support Forums. I needed to edit your post and remove the Serial Number. From our Rules of Participation:
Protect privacy - yours and others'. Don't share anything about yourself that you would not want to see on a road-side billboard. Don't post contact or other personal information-your own or anyone else's-or any content that you receive in one-to-one communications without the author's consent. For example, don’t post your computer’s serial # or contact information publicly, and do not allow someone you don’t know to remotely take control of your computer.
If you need people to contact you directly, either ask them to send you a private message or subscribe to the thread so you will be notified when there are replies. You may also click on your name anywhere in the forum and you will be taken to your profile page, where you can find a list of threads you have participated in.
Sharing personal email addresses, telephone numbers, and last names is not allowed for your safety. If you have any questions feel free to send me a private message in reply.
Thank you
George
I work for HP -
My back camera and flashlight does not work anymore for my iPod 5th gen. I have tried everything besides a factory restart. I have restarted it several times and restarted the software. Please help it's annoying me. Thanks
- Restore to factory settings/new iOS device.
If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
Apple Retail Store - Genius Bar -
Help with Audio Playback While Recording
I am an aspiring sound engineer and I am having a problem with recording in Audition 3.0 that I need help with. When i record vocals, the sound wave plays back in the speakers/headphones with like a 1.5 second delay after it is recorded. It really throws off the artists I am working with when they are trying to record vocals. How do i kill headphone/speaker playback while someone is recording?
There are problems with a lot of internal soundcards in a lot of laptops, and these seem to be so many and various that all you can do is use trial and error and hope for the best.
External soundcards should cure any problem, but you may have to look into what else is running on the laptop, as so much is integrated, and some machines seem to have audio problems caused by wireless or other network adaptors etc.
As I said, I use oldish Edirol and Tascam usb units. The Tascam has a known fault (noise when using a guitar channel at the same time as phantom powering a mic on the other channel) which I can live with, and I would hope has been solved in later and current versions. The Edirol is fine. I use 2 units to give me the connections I want (ie one has jacks, the other phono plugs, and different size headphone sockets). Both these have asio and wdm drivers and work fine with AA 3.0 here. More modern devices will be usb2 and will presumably provide more channels or higher sampling rates, but these are fine. Others will be more up to date than me, but I would think anything from Tascam, Edirol, Echo Audio and I think most m-audio models should be fine. Just be wary of anything from Creative Labs. I, too, have had bad experiences with one of their products (it drew too much current from the usb port on a couple of the laptops so I never got as far as to find whether it had asio drivers working or not). But others will be more up to date than I am.
I just went onto ebay over the years and kept bidding on sensible looking devices until I got ones at the right price, but it probably is better to buy new if you can afford it.
Sorry I can't give a more definite answer. -
Need Help With File Matching Records
I need help with my file matching program.
Here is how it suppose to work: FileMatch class should contain methods to read oldmast.txt and trans.txt. When a match occurs (i.e., records with the same account number appear in both the master file and the transaction file), add the dollar amount in the transaction record to the current balance in the master record, and write the "newmast.txt" record. (Assume that purchases are indicated by positive amounts in the transaction file and payments by negative amounts.)
When there is a master record for a particular account, but no corresponding transaction record, merely write the master record to "newmast.txt". When there is a transaction record, but no corresponding master record, print to a log file the message "Unmatched transaction record for account number ..." (fill in the account number from the transaction record). The log file should be a text file named "log.txt".
Here is my following program code:
// Exercise 14.8: CreateTextFile.java
// creates a text file
import java.io.FileNotFoundException;
import java.lang.SecurityException;
import java.util.Formatter;
import java.util.FormatterClosedException;
import java.util.NoSuchElementException;
import java.util.Scanner;
import org.egan.AccountRecord;
import org.egan.TransactionRecord;
public class CreateTextFile
private Formatter output1; // object used to output text to file
private Formatter output2; // object used to output text to file
// enable user to open file
public void openTransFile()
try
output1 = new Formatter("trans.txt");
catch (SecurityException securityException)
System.err.println("You do not have write access to this file.");
System.exit(1);
} // end catch
catch (FileNotFoundException filesNotFoundException)
System.err.println("Error creating file.");
System.exit(1);
} // end method openTransFile
// enable user to open file
public void openOldMastFile()
try
output2 = new Formatter("oldmast.txt");
catch (SecurityException securityException)
System.err.println("You do not have write access to this file.");
System.exit(1);
} // end catch
catch (FileNotFoundException filesNotFoundException)
System.err.println("Error creating file.");
System.exit(1);
} // end method openOldMastFile
// add transaction records to file
public void addTransactionRecords()
// object to be written to file
TransactionRecord record1 = new TransactionRecord();
Scanner input1 = new Scanner(System.in);
System.out.printf("%s\n%s\n%s\n%s\n\n",
"To terminate input, type the end-of-file indicator",
"when you are prompted to enter input.",
"On UNIX/Linux/Mac OS X type <ctrl> d then press Enter",
"On Windows type <ctrl> z then press Enter");
System.out.printf("%s\n%s",
"Enter account number (> 0) and amount.","? ");
while (input1.hasNext()) // loop until end-of-file indicator
try // output values to file
// retrieve data to be output
record1.setAccount(input1.nextInt()); // read account number
record1.setAmount(input1.nextDouble()); // read amount
if (record1.getAccount() > 0)
// write new record
output1.format("%d %.2f\n", record1.getAccount(), record1.getAmount());
} // end if
else
System.out.println("Account number must be greater than 0.");
} // end else
} // end try
catch (FormatterClosedException formatterClosedException)
System.err.println("Error writing to file.");
return;
} // end catch
catch (NoSuchElementException elementException)
System.err.println("Invalid input. Please try again.");
input1.nextLine(); // discard input so user can try again
} // end catch
System.out.printf("%s %s\n%s", "Enter account number (> 0) ",
"and amount.","? ");
} // end while
} // end method addTransactionRecords
// add account records to file
public void addAccountRecords()
// object to be written to file
AccountRecord record2 = new AccountRecord();
Scanner input2 = new Scanner(System.in);
System.out.printf("%s\n%s\n%s\n%s\n\n",
"To terminate input, type the end-of-file indicator",
"when you are prompted to enter input.",
"On UNIX/Linux/Mac OS X type <ctrl> d then press Enter",
"On Windows type <ctrl> z then press Enter");
System.out.printf("%s\n%s",
"Enter account number (> 0), first name, last name and balance.","? ");
while (input2.hasNext()) // loop until end-of-file indicator
try // output values to file
// retrieve data to be output
record2.setAccount(input2.nextInt()); // read account number
record2.setFirstName(input2.next()); // read first name
record2.setLastName(input2.next()); // read last name
record2.setBalance(input2.nextDouble()); // read balance
if (record2.getAccount() > 0)
// write new record
output2.format("%d %s %s %.2f\n", record2.getAccount(), record2.getFirstName(),
record2.getLastName(), record2.getBalance());
} // end if
else
System.out.println("Account number must be greater than 0.");
} // end else
} // end try
catch (FormatterClosedException formatterClosedException)
System.err.println("Error writing to file.");
return;
} // end catch
catch (NoSuchElementException elementException)
System.err.println("Invalid input. Please try again.");
input2.nextLine(); // discard input so user can try again
} // end catch
System.out.printf("%s %s\n%s", "Enter account number (> 0),",
"first name, last name and balance.","? ");
} // end while
} // end method addAccountRecords
// close file
public void closeTransFile()
if (output1 != null)
output1.close();
} // end method closeTransFile
// close file
public void closeOldMastFile()
if (output2 != null)
output2.close();
} // end method closeOldMastFile
} // end class CreateTextFile--------------------------------------------------------------------------------------------------
// Exercise 14.8: CreateTextFileTest.java
// Testing class CreateTextFile
public class CreateTextFileTest
// main method begins program execution
public static void main( String args[] )
CreateTextFile application = new CreateTextFile();
application.openTransFile();
application.addTransactionRecords();
application.closeTransFile();
application.openOldMastFile();
application.addAccountRecords();
application.closeOldMastFile();
} // end main
} // end class CreateTextFileTest-------------------------------------------------------------------------------------------------
// Exercise 14.8: TransactionRecord.java
// A class that represents on record of information
package org.egan; // packaged for reuse
public class TransactionRecord
private int account;
private double amount;
// no-argument constructor calls other constructor with default values
public TransactionRecord()
this(0,0.0); // call two-argument constructor
} // end no-argument AccountRecord constructor
// initialize a record
public TransactionRecord(int acct, double amt)
setAccount(acct);
setAmount(amt);
} // end two-argument TransactionRecord constructor
// set account number
public void setAccount(int acct)
account = acct;
} // end method setAccount
// get account number
public int getAccount()
return account;
} // end method getAccount
// set amount
public void setAmount(double amt)
amount = amt;
} // end method setAmount
// get amount
public double getAmount()
return amount;
} // end method getAmount
} // end class TransactionRecord -------------------------------------------------------------------------------------------------
// Exercise 14.8: AccountRecord.java
// A class that represents on record of information
package org.egan; // packaged for reuse
import org.egan.TransactionRecord;
public class AccountRecord
private int account;
private String firstName;
private String lastName;
private double balance;
// no-argument constructor calls other constructor with default values
public AccountRecord()
this(0,"","",0.0); // call four-argument constructor
} // end no-argument AccountRecord constructor
// initialize a record
public AccountRecord(int acct, String first, String last, double bal)
setAccount(acct);
setFirstName(first);
setLastName(last);
setBalance(bal);
} // end four-argument AccountRecord constructor
// set account number
public void setAccount(int acct)
account = acct;
} // end method setAccount
// get account number
public int getAccount()
return account;
} // end method getAccount
// set first name
public void setFirstName(String first)
firstName = first;
} // end method setFirstName
// get first name
public String getFirstName()
return firstName;
} // end method getFirstName
// set last name
public void setLastName(String last)
lastName = last;
} // end method setLastName
// get last name
public String getLastName()
return lastName;
} // end method getLastName
// set balance
public void setBalance(double bal)
balance = bal;
} // end method setBalance
// get balance
public double getBalance()
return balance;
} // end method getBalance
// combine balance and amount
public void combine(TransactionRecord record)
balance = (getBalance() + record.getAmount());
} // end method combine
} // end class AccountRecord -------------------------------------------------------------------------------------------------
// Exercise 14.8: FileMatch.java
import java.io.File;
import java.io.FileNotFoundException;
import java.lang.IllegalStateException;
import java.util.NoSuchElementException;
import java.util.Scanner;
import java.util.Formatter;
import java.util.FormatterClosedException;
import org.egan.AccountRecord;
import org.egan.TransactionRecord;
public class FileMatch
private Scanner inTransaction;
private Scanner inOldMaster;
private Formatter outNewMaster;
private Formatter theLog;
// enable user to open file
public void openTransFile()
try
inTransaction = new Scanner(new File("trans.txt"));
} // end try
catch (FileNotFoundException fileNotFoundException)
System.err.println("Error opening file.");
System.exit(1);
} // end catch
} // end method openTransFile
// enable user to open file
public void openOldMastFile()
try
inOldMaster = new Scanner(new File("oldmast.txt"));
} // end try
catch (FileNotFoundException fileNotFoundException)
System.err.println("Error opening file.");
System.exit(1);
} // end catch
} // end method openOldMastFile
// enable user to open file
public void openNewMastFile()
try
outNewMaster = new Formatter("newmast.txt");
catch (SecurityException securityException)
System.err.println("You do not have write access to this file.");
System.exit(1);
} // end catch
catch (FileNotFoundException filesNotFoundException)
System.err.println("Error creating file.");
System.exit(1);
} // end method openNewMastFile
// enable user to open file
public void openLogFile()
try
theLog = new Formatter("log.txt");
catch (SecurityException securityException)
System.err.println("You do not have write access to this file.");
System.exit(1);
} // end catch
catch (FileNotFoundException filesNotFoundException)
System.err.println("Error creating file.");
System.exit(1);
} // end method openLogFile
// update records
public void updateRecords()
TransactionRecord transaction = new TransactionRecord();
AccountRecord account = new AccountRecord();
try // read records from file using Scanner object
System.out.println("Start file matching.");
while (inTransaction.hasNext() && inOldMaster.hasNext())
transaction.setAccount(inTransaction.nextInt()); // read account number
transaction.setAmount(inTransaction.nextDouble()); // read amount
account.setAccount(inOldMaster.nextInt()); // read account number
account.setFirstName(inOldMaster.next()); // read first name
account.setLastName(inOldMaster.next()); // read last name
account.setBalance(inOldMaster.nextDouble()); // read balance
if (transaction.getAccount() == account.getAccount())
while (inTransaction.hasNext() && transaction.getAccount() == account.getAccount())
account.combine(transaction);
outNewMaster.format("%d %s %s %.2f\n",
account.getAccount(), account.getFirstName(), account.getLastName(),
account.getBalance());
transaction.setAccount(inTransaction.nextInt()); // read account number
transaction.setAmount(inTransaction.nextDouble()); // read amount
else if (transaction.getAccount() != account.getAccount())
outNewMaster.format("%d %s %s %.2f\n",
account.getAccount(), account.getFirstName(), account.getLastName(),
account.getBalance());
theLog.format("%s%d","Unmatched transaction record for account number ",transaction.getAccount());
} // end while
System.out.println("Finish file matching.");
} // end try
catch (NoSuchElementException elementException)
System.err.println("File improperly formed.");
inTransaction.close();
inOldMaster.close();
System.exit(1);
} // end catch
catch (IllegalStateException stateException)
System.err.println("Error reading from file.");
System.exit(1);
} // end catch
} // end method updateRecords
// close file and terminate application
public void closeTransFile()
if (inTransaction != null)
inTransaction.close();
} // end method closeTransFile
// close file and terminate application
public void closeOldMastFile()
if (inOldMaster != null)
inOldMaster.close();
} // end method closeOldMastFile
// close file
public void closeNewMastFile()
if (outNewMaster != null)
outNewMaster.close();
} // end method closeNewMastFile
// close file
public void closeLogFile()
if (theLog != null)
theLog.close();
} // end method closeLogFile
} // end class FileMatch-------------------------------------------------------------------------------------------------
// Exercise 14.8: FileMatchTest.java
// Testing class FileMatch
public class FileMatchTest
// main method begins program execution
public static void main( String args[] )
FileMatch application = new FileMatch();
application.openTransFile();
application.openOldMastFile();
application.openNewMastFile();
application.openLogFile();
application.updateRecords();
application.closeLogFile();
application.closeNewMastFile();
application.closeOldMastFile();
application.closeTransFile();
} // end main
} // end class FileMatchTest-------------------------------------------------------------------------------------------------
Sample data for master file:
Master file
Account Number Name Balance
100 Alan Jones 348.17
300 Mary Smith 27.19
500 Sam Sharp 0.00
700 Suzy Green -14.22Sample data for transaction file:
Transaction file Transaction
Account Number Amount
100 27.14
300 62.11
300 83.89
400 100.56
700 80.78
700 1.53
900 82.17 -------------------------------------------------------------------------------------------------
My FileMatch class program above has bugs in it.
The correct results for the newmast.txt:
100 Alan Jones 375.31
300 Mary Smith 173.19
500 Sam Sharp 0.00
700 Suzy Green 68.09The correct results for the log.txt:
Unmatched transaction record for account number 400Unmatched transaction record for account number 900------------------------------------------------------------------------------------------------
My results for the newmast.txt:
100 Alan Jones 375.31
300 Mary Smith 111.08
500 Sam Sharp 0.00
700 Suzy Green -12.69My results for the log.txt
Unmatched transaction record for account number 700-------------------------------------------------------------------------------------------------
I am not sure what is wrong with my code above to make my results different from the correct results.
Much help is appreciated. Please help.From the output, it looks like one problem is just formatting -- apparently you're including a newline in log entries and not using tabs for the newmast output file.
As to why the numbers are off -- just from glancing over it, it appears that the problem is when you add multiple transaction values. Since account.combine() is so simple, I suspect that you're either adding creating transaction objects incorrectly or not creating them when you should be.
Create test input data that isolates a single case of this (e.g., just the Mary Smith case), and then running your program in a debugger or adding debugging code to the add/combine method, so you can see what's happening in detail.
Also I'd recommend reconsidering your design. It's a red flag if a class has a name with "Create" in it. Classes represent bundles of independant state and transformations on that state, not things to do. -
Need Help with DVD recorder (HDMI) to record off DVR
I purchased a philips dvd recorder a few years ago and need help in setting up to record my DVR program recordings. The philips user manual is not very helpful being I'm trying to set-up with just using HDMI cables. I have a HDTV (Vizio) with a HDMI port; a DVD recorder with HDMI port and my Verizon set-top box have a HDMI port. How do i get it all to work and be able to record/copy programs from DVR to my DVD recorder? Do anyone have suggestions on how to set up wiring. Thanks.
Solved!
Go to Solution.First keep in mind that DVD is not an HD format, so you will not be able to record HD shows in HD; they will be in letterboxed 4:3.
The FiOS STB only has one HDMI (out) port. Therefore, you will need to use some other output from the STB to the DVD recorder. Component, or even composite/RCA, because it's not going to record in HD anyway to DVD, will work just fine. Then you want to set your DVD player to whatever input you used to connect from the STB; i.e. mine uses "Input 1" for my composite connection.
If you turn on your STB and DVD, this will record whatever the STB is outputting to a DVD if you press record on the DVD recorder. This includes all of the program menus and any other on-screen graphics on the STB, and this means you cannot change the channel if you are recording from your STB. You can shut your TV off, but you will not be able to watch another show while recording one to DVD.
Your DVD player might give you an HDCP message at first when the recording starts if it's getting an HD input, but that should go away after a few seconds, at least for my Panasonic DVD recorder with a composite connection.
Maybe you are looking for
-
How can I change the shipping address to buy a calendar in iPhoto?
Hello, I'll like to buy a calender with iphoto 11! I clicked on buy calender, i accepted the ammount, I logged in on my mobileme account and than, when it come to choose the adress i don't have any choice other than the country where my mobile me acc
-
Mac Pro | Mac OSX 10.6.8 | iPhone 4 | iPhone 5 | iTunes 10.7 (21) SYMPTOM: Syncing iPhone 4/4s/5 with iTunes and all music content is greyed out. [Mac Platform] Friends, I had epic issues with my iPhone 4 (After upgrading to iOS6) & my new iPhone 5.
-
Why takes up to 3 min to load web.de - explorer 15 sec?
firefox alwasy takes very long time to upload "home" my email server -explorer is always very fast no other site takes that long to upload and only with firefox I#m no expert nerd just user so dont please give me advice i cannot understand your educa
-
Syncing iPod to a new installation of iTunes while retaining Play Count
I have an iPod nano that I use in my baby's nursery for her lullaby music. I thought it would be cool to use the Audioscrobbler program from www.last.fm to track her "listening habits" from this very early age and be able to see years down the road w
-
Installing TFS 2013 and recieved TF255048 error
Add the port to both the SQL Server and the Server with Reporting Services Analysis. Not sure about the SQL Server Analysis Services Instance name. The forums referring to the fixes for 2010 are not working.