Code Doing Better But Still Problematic.; HELP

The end result is that the java program will take input through a console from a User (employee) and figure the hours worked times pay rate, then print out everything like the following example:
Employee Name: John Doe
Hourly Pay Rate: 8.00
Hours Worked: 40
Total Pay: 320.00
THAT's IT. I do have another class called Employee.java and Console.java, both of which do not have any errors. But the following has a few errors that don't make any sense. HELP. THANKS.
In the EmployeeDriver.java class, the errors are:
1. Malformed expression at line 15.
2. Illegal start of expression at line 18.
When I click on the error messages the lines
public static void main (String argv[])
  { highlight for the "malformed expression" error, and "illegal start" for the
public Console = new Console(); line. I tried public Console, private Console, Employee Console and just plain Console, the same error message remained.
Here's the entire EmployeeDriver code:
package Employee;
* <p>Title: Employee</p>
* <p>Description: Application allows an employee to enter a name, wage rate, hours worked and compute total pay.</p>
* <p>Copyright: Copyright (c) 2002</p>
* <p>Company: </p>
* @author John Doe
* @version 1.0
public class EmployeeDriver {
public class Console {
  public static void main(String argv[])
    public Console = new Console();
    Employee myEmployee = new Employee();
    String eN = Console.readString ("Enter Your Name");
    myEmployee.setName(eN);
    double payRate = Console.readDouble ("Enter Your Rate-of-Pay");
    myEmployee.setpayRate(payRate);
    double Hours = Console.readDouble ("Hours Worked");
    myEmployee.setHours(Hours);
         // Output the results.
    System.out.println("Your name is: " + myEmployee.getName());
    System.out.println ("Hourly Pay Rate: " + myEmployee.payRate());
    System.out.println ("Hours Worked: " + myEmployee.getHours());
    System.out.println (" ");   // Print a blank line
    System.out.println("Total Pay: " + myEmployee.totalPayThisWeek());
     System.out.println (" ");   // Print a blank line
    System.out.println("Please hit Enter to continue");

The code that I left the last is "the one and only
code for this project". So, it "is" the correct pasted
code. Below is what I now have, and as fu*k*ing
usual, filled with another batch of error messages.
Get rid of one batch of damned error messages and have
another batch show up.Hehe.
* Method readString(java.lang.string)not found in
class employee.EmployeeDriver.Console at line 20
* Method readDouble(java.lang.string)not found in
class employee.EmployeeDriver.Console at line 22
* Method readDouble(java.lang.string)not found in
class employee.EmployeeDriver.Console at line 24All three of these errors are the same ones I was just talking about. Ok, you already have a class written called Console (defined in Console.java). You also wrote your own class called Console. Look, this is your code (with some stuff removed):
    public class EmployeeDriver {
        public class Console
            public void main (String argv[])
    }See that line "public class Console"? You wrote that. For some reason, you are defining your own class named Console. It's an inner class of EmployeeDriver (because it is declared inside EmployeeDriver, hence all the errors having to do with "EmployeeDriver.Console"). Why are you doing that?
So, you have your own class named Console (in EmployeeDriver.java, which I will refer to from now on as EmployeeDriver.Console to avoid confusion), and you have this class Console from Console.java. We can see by looking at Console.java that Console does, indeed, contain the methods readString and readDouble. So, you don't need to write them. Here's what is happening when you try to call one of them, say, Console.readDouble:
1) You call Console.readDouble()
2) The compiler looks for this method in EmployeeDriver.Console, not the Console in Console.java.
3) Since that method is not in EmployeeDriver.Console, you get the error (even though it's in Console, because the compiler doesn't look in Console, it looks for it in EmployeeDriver.Console).
You do not need to define your own class named console. Like I said before, try changing your code to something more like:
    public class EmployeeDriver {
        public static void main (String argv[]) {
            // This is your 'main' code... notice it's in
            // EmployeeDriver, not EmployeeDriver.Console.
            // Also notice that the "public class Console"
            // line no longer appears... this is because we
            // don't need to or want to define our own class
            // in EmployeeDriver named Console.
    }You solved the 'no static members in inner classes' error by making main not static any more. The method 'main' must be static. You need to forget about this EmployeeDriver.Console stuff. Don't declare your own class named 'Console'! You need to make 'main' a static member of EmployeeDriver and, I can't say it enough, you must get rid of that EmployeeDriver.Console inner class.
Jason
public class EmployeeDriver {
public class Console
public void main(String argv[])
Employee myEmployee = new Employee();
String name = Console.readString ("Enter Your Name
ame ");
myEmployee.setName(name);
double payRate = Console.readDouble ("Enter Your
our Rate-of-Pay ");
myEmployee.setpayRate(payRate);
double hours = Console.readDouble ("Hours Worked
ked ");
myEmployee.setHours(hours);
// Output the results.
System.out.println("Your name is: " +
" + myEmployee.getName() + "name ");
System.out.println ("Hourly Pay Rate: " +
" + myEmployee.getpayRate() + "payRate ");
System.out.println ("Hours Worked: " +
" + myEmployee.getHours() + " hours ");
System.out.println (" "); // Print a blank line
System.out.println("Total Pay: " +
" + myEmployee.getTotal() + "total ");
System.out.println (" "); // Print a blank line
System.out.println("Please hit Enter to continue
nue ");
Employee.java ..NO errors here... package employee;
* <p>Title: Employee</p>
* <p>Description: Application allows an employee to
enter a name, wage rate, hours worked and compute
total pay.</p>
* <p>Copyright: Copyright (c) 2002</p>
* <p>Company: </p>
* @author John Doe
* @version 1.0
public class Employee{
// field variables
private String name;
private double hours;
private double payRate;
private double Total;
public Employee()  // empty constructor
// full constructor.  'Sets' do not return
return anything, thus void.
public Employee (String n, double h, double p, double
t)
name = n;
hours = h;
payRate = p;
Total = t;
}      // end full constructor
// 'Sets' do not return anything, thus void.
public void setName (String n)
name = n;
public void setHours (double h)
hours = h;
public void setpayRate (double p)
payRate = p;
public void setTotal (double t)
Total = t;
// get all of the field variables
public String getName()
return name;
public double getHours()
return hours;
public double getpayRate()
return payRate;
// public method to calculate pay
public double getTotal()
return Total;
public double Hours()
return hours;
public double payRate()
return payRate;
public double Total()
return hours * payRate;
Console.java  ...Coded by Sun Microsystems, so nothing
is changed here. package employee;
public class Console
* print a prompt on the console but don't
t don't print a newline
* @param prompt the prompt string to display
public static void printPrompt(String prompt)
{  System.out.print(prompt + " ");
System.out.flush();
* read a char or string from the console. The
le. The string is
* terminated by a newline
* @return the first character as a char
a char (without the newline)
public static char readChar()
char ch=' ';
try
ch = (char) System.in.read();
catch(java.io.IOException e)
return ch;
public static char readChar(String prompt)
printPrompt(prompt);
return readChar();
* read a char or string from the console. It
ole. It must start with T or F.
* The string is terminated by a newline. If
ne. If the first character
* is an f, the boolean false is returned or
rned or true for a T.
public static boolean readBoolean()
boolean done = false;
char ch=' ';
do {
try
ch = (char)
ch = (char) System.in.read();
catch (java.io.IOException e)
if (ch=='T' || ch == 't' || ch
='T' || ch == 't' || ch == 'F' || ch == 'f')
done = true;
} while (!done);
if (ch=='T' || ch == 't')
return true;
else
return false;
/** reads a Boolean from the keyboard
* returns the Boolean
public static boolean readBoolean(String prompt)
printPrompt(prompt);
return readBoolean();
* read a string from the console. The string
string is
* terminated by a newline
* @return the input string (without the
out the newline)
public static String readString()
{  int ch;
String r = "";
boolean done = false;
while (!done)
{  try
{  ch = System.in.read();
if (ch < 0 || (char)ch ==
(ch < 0 || (char)ch == '\n')
done = true;
else if ((char)ch != '\r') //
f ((char)ch != '\r') // weird--it used to do \r\n
translation
r = r + (char) ch;
catch(java.io.IOException e)
{  done = true;
return r;
* read a string from the console. The string
string is
* terminated by a newline
* @param prompt the prompt string to display
* @return the input string (without the
out the newline)
public static String readString(String prompt)
{  printPrompt(prompt);
return readString();
* read a word from the console. The word is
* any set of characters terminated by
ated by whitespace
* @return the 'word' entered
public static String readWord()
{  int ch;
String r = "";
boolean done = false;
while (!done)
{  try
{  ch = System.in.read();
if (ch < 0
||
||
||
||
||
||
||
|| java.lang.Character.isWhitespace((char)ch))
done = true;
else
r = r + (char) ch;
catch(java.io.IOException e)
{  done = true;
return r;
* read an integer from the console. The input
e input is
* terminated by a newline
* @param prompt the prompt string to display
* @return the input value as an int
* @exception NumberFormatException if bad
if bad input
public static int readInt(String prompt)
{  while(true)
{  printPrompt(prompt);
try
{  return Integer.valueOf
(readString().trim()).intValue();
} catch(NumberFormatException e)
{  System.out.println
("Not an integer. Please
("Not an integer. Please try again!");
* read a floating point number from the
rom the console.
* The input is terminated by a newline
* @param prompt the prompt string to display
* @return the input value as a double
* @exception NumberFormatException if bad
if bad input
public static double readDouble(String prompt)
{ while(true)
{ printPrompt(prompt);
try
{ return Double.valueOf
(readString().trim()).doubleValue();
} catch(NumberFormatException e)
{ System.out.println
("Not a floating point number. Please
t number. Please try again!");

Similar Messages

  • Time Machine in Snow Leopard much better but still problematic

    I've found Time Machine backups to a Time Capsule to be much faster under Snow Leopard than under previous versions of the OS, and I've found that TM seems to avoid some of the extra backups that always seemed to get scheduled:
    Jan 8 11:27:01 Musa [0x0-0x188188].backupd-helper[3527]: Not starting Time Machine backup after wake - less than 60 minutes since last backup completed.
    Jan 10 20:33:34 Musa com.apple.backupd-auto[14230]: Not starting scheduled Time Machine backup - less than 10 minutes since last backup completed.
    But the question is, why would Time Machine try to backup less than 60 or 10 minutes after the last backup in the first place?
    In addition, TM doesn't always avoid the extra, unnecessary backup:
    Jan 11 07:01:29 Musa com.apple.backupd[14508]: Starting standard backup
    Jan 11 07:01:29 Musa com.apple.backupd[14508]: Attempting to mount network destination using URL: afp://odysseus@Time%20Capsule.afpovertcp.tcp.local/odysseus
    Jan 11 07:01:37 Musa com.apple.backupd[14508]: Mounted network destination using URL: afp://odysseus@Time%20Capsule.afpovertcp.tcp.local/odysseus
    Jan 11 07:01:39 Musa com.apple.backupd[14508]: Disk image /Volumes/odysseus/Musa.sparsebundle mounted at: /Volumes/Time Machine Backups
    Jan 11 07:01:39 Musa com.apple.backupd[14508]: Backing up to: /Volumes/Time Machine Backups/Backups.backupdb
    Jan 11 07:01:51 Musa com.apple.backupd[14508]: No pre-backup thinning needed: 1.07 GB requested (including padding), 331.17 GB available
    Jan 11 07:03:08 Musa com.apple.backupd[14508]: Copied 9532 files (60.6 MB) from volume Gigas.
    Jan 11 07:03:08 Musa com.apple.backupd[14508]: No pre-backup thinning needed: 1.00 GB requested (including padding), 331.17 GB available
    Jan 11 07:03:18 Musa com.apple.backupd[14508]: Copied 734 files (201 KB) from volume Gigas.
    Jan 11 07:03:19 Musa com.apple.backupd[14508]: Starting post-backup thinning
    Jan 11 07:03:19 Musa com.apple.backupd[14508]: No post-back up thinning needed: no expired backups exist
    Jan 11 07:03:19 Musa com.apple.backupd[14508]: Backup completed successfully.
    Jan 11 07:03:23 Musa com.apple.backupd[14508]: Ejected Time Machine disk image.
    Jan 11 07:03:23 Musa com.apple.backupd[14508]: Ejected Time Machine network volume.'
    11 minutes later:
    Jan 11 07:14:52 Musa com.apple.backupd[14563]: Starting standard backup
    Jan 11 07:14:52 Musa com.apple.backupd[14563]: Attempting to mount network destination using URL: afp://odysseus@Time%20Capsule.afpovertcp.tcp.local/odysseus
    Jan 11 07:15:00 Musa com.apple.backupd[14563]: Mounted network destination using URL: afp://odysseus@Time%20Capsule.afpovertcp.tcp.local/odysseus
    Jan 11 07:15:04 Musa com.apple.backupd[14563]: Disk image /Volumes/odysseus/Musa.sparsebundle mounted at: /Volumes/Time Machine Backups
    Jan 11 07:15:05 Musa com.apple.backupd[14563]: Backing up to: /Volumes/Time Machine Backups/Backups.backupdb
    Jan 11 07:15:32 Musa com.apple.backupd[14563]: No pre-backup thinning needed: 1.00 GB requested (including padding), 331.17 GB available
    Jan 11 07:16:30 Musa com.apple.backupd[14563]: Copied 8407 files (1.4 MB) from volume Gigas.
    Jan 11 07:16:30 Musa com.apple.backupd[14563]: No pre-backup thinning needed: 1.00 GB requested (including padding), 331.17 GB available
    Jan 11 07:16:38 Musa com.apple.backupd[14563]: Copied 510 files (53 KB) from volume Gigas.
    Jan 11 07:16:40 Musa com.apple.backupd[14563]: Starting post-backup thinning
    Jan 11 07:16:40 Musa com.apple.backupd[14563]: No post-back up thinning needed: no expired backups exist
    Jan 11 07:16:40 Musa com.apple.backupd[14563]: Backup completed successfully.
    Jan 11 07:16:43 Musa com.apple.backupd[14563]: Ejected Time Machine disk image.
    Jan 11 07:16:44 Musa com.apple.backupd[14563]: Ejected Time Machine network volume.
    These were the first two backups that occurred after my MacBook Pro had been sleeping all night. Why does another backup happen so soon?

    odysseus wrote:
    I've found Time Machine backups to a Time Capsule to be much faster under Snow Leopard than under previous versions of the OS, and I've found that TM seems to avoid some of the extra backups that always seemed to get scheduled:
    Jan 8 11:27:01 Musa [0x0-0x188188].backupd-helper[3527]: Not starting Time Machine backup after wake - less than 60 minutes since last backup completed.
    When OSX wakes from sleep, Time Machine immediately checks to see if a backup is needed. Since one was done less than an hour before, it doesn't do another one. This message is just telling you why it didn't do a backup upon wake. (Under Leopard, it would do one automatically, which some folks complained about. So Apple changed it.)
    Jan 10 20:33:34 Musa com.apple.backupd-auto[14230]: Not starting scheduled Time Machine backup - less than 10 minutes since last backup completed.
    Most likely, you did a manual backup a few minutes before this. That does not re-set the schedule; but when the next scheduled backup time arrives, TM checks, and if less than 10 minutes has elapsed, resets the schedule and tells you why it didn't do the scheduled backup. Another thing foks complained about under Leopard that Apple changed.

  • The safari software will not display images (pictures).  I have done the "reset" but still no help.  What should i try next?

    the safari software will not display images (pictures).  I have done the "reset" but still no help.  What should i try next?

        Safari > Preference > Advanced
        Checkmark the box for "Show Develop menu in menu bar".
        "Develop" menu will appear in the Safari menu bar.
        Click Develop and make sure that"Disable Images" is not enabled in the dropdown.

  • After the new update my ipad4 will not do a full recharge even when turned off overnight and the battery goes flat it 2 hours  it is driving me crazy as I had to stop all apps but still not helping

    After the new update my ipad4 will not do a full recharge even when turned off overnight and the battery goes flat it 2 hours  it is driving me crazy as I had to stop all apps but still not helping but my iPhone 5 is great no troubles at all HELP

    Do you place the ipod in the dock during the night? I did this once and the other day the battery was almost empty because it kept on playing after it rested in the dock.
    Here is more info about battery life and exchange program: http://support.apple.com/kb/HT1322
    and http://www.apple.com/support/ipod/service/battery/

  • Ive gotten 3 responses from you guys. But still no help. Can't believe it's taken this long for apple to respond to this issue and I'm very disappointed that all I did was take precaution from left to my account info and my account has been disabled since

    Ive gotten 3 responses from you guys. But still no help. Can't believe it's taken this long for apple to respond to this issue and I'm very disappointed that all I did was take precaution from left to my account info and my account has been disabled since. Sad that we can't do any updates to equipment I've spent so much money in. Hope this is resolved real soon.

    Who exactly are you addressing this post to? And what exactly are you posting? We are just users like you, and have no idea what you are referring to. If there is something you would like to ask - user to user - please do so. Otherwise, you are wasting your time complaining about Apple, since we are not Apple.
    GB

  • So I'm trying to get a window to fit my mac. Its a window on pokerstars if that helps, so no minimize/maximize. The window is actually too long vertical ways to fit the screen so the bottom is cut off? I hid bottom toolbar but still no help :-/ any help?

    So I'm trying to get a window to fit my mac. Its a window on pokerstars if that helps, so no minimize/maximize. The window is actually too long vertical ways to fit the screen so the bottom is cut off? I hid bottom toolbar but still no help :-/ any help? Yeah i have no fit screen button, the top toolbar doesnt have zoom/minimize available... any help???

    Hi RobSten1306
    Send us an email if you need help on this case and we can help look into this for you.
    You can email us using the contact the mods link in my profile under the section 'About Me'.
    Thanks
    Stuart
    BTCare Community Mod
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry that we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)

  • I had to remove Mavericks and do a reinstall on 10.8.5 but still need help...

    I have been trying to undo my Mavericks upgrade in October and after considerable effort I am mostly got back to 10.8.5 OS but still need a bit of help. I just want the previous OS back in place then I'll try Mavericks soon....
    1)               I never seem to pay attention so is 10.8.5 the last OSX prior?  As long as it isn't Mavericks, I want to get it installed.
    2)               I had to reformat my iMac so I have a residual elements from 10.9 and one issue that I had before was permissions. Every number of files either on other hard drives or sometimes in my same user folder was asking for permission and authentication to simply move a file.. A popular one you'll see at the bottom the person/whatever/ problem known as fetching.  Could someone just give me the general reason of this fetching and permissions problem that I ran into?  Better yet since I just want to avoid it altogether into the future tell me what's the best way to assure it disappears forever.
    3)          Another, which is kind of a big ticket item for me is the backup/restore/cover your (!!!) system. I was a good little iMac User and had Time Machine backed up for a period prior to the Mavericks install. I'm a little bit upset that TM isn't 100%....but what is...?  I need another backup/restore system in place and that's what I am looking for recommendations on.  An item that saved me a bit was that I had OS 10.8.3 on an external hard drive.  The problem with that one was it was on a partition, on one of the drives requiring to be reformatted.  It worked as a bridge consolidating files and all but was a big headache as a partition on the external. Recovery Disk did it's part but wasn't enough as well.   Is there a simple/easy idea...clone, disk images, boot from an external drive… ?
    4)          iPhoto (9.4.3) currently will not open the libraries which iPhoto (9.5) converted. Is there way to go back?  Seems the App Store and Software update don't like something. I'm getting into a loop with App Store, iPhoto and the OS. Either the software needs operating system ... then the App Store says it's incompatible or some other complaint.  Right now I have 9.4.3 iPhoto installed for OSX 10.8.5 and was only able to create a new library and the converted ones currently do not open.
    Thanks to your help

    10.8.5 is the lates ML edition.  I use TM and also carbon copy cloner as my second backup.  If I were you and you have a TM backup prior to Mavericks I would try another restore at bootup.  You should erase your drive first in that process using disk utitlites and then use TM to put back you apps and files.  The other choice is to do an internet recovery and then use TM to restore your apps and files.  That should fix the permissions issue.  I did the same thing and all was OK including getting my original iPhoto progam (9.4.3), iphoto11 and photos back.

  • Installing LR4 Beta but still keep LR3.5

    Hi LR people just a quick question (maybe dumb question)...
    Can I install the LR4 Beta and still keep my LR3.5? I presume that I just install it in a different folder in my Applications? Did I get that right?
    Oh I am running a MAC Pro.
    Thanks everyone

    It will install at  /Applications/Adobe Photoshop Lightroom 4.app
    The default location for Lr3 was /Applications/Adobe Lightroom 3.app
    You can run both applications fine, but while Lr4 is in Beta it will not import you Lr3 catalog.
    Personally, for testing, I make a copy of some RAW files I already have in Lr3 then import those to Lr4 to experiment with.

  • Canon 1dsmkIII tether speed now better, but still no aperture tether?

    so 10.5.6 fixed the speed problem when using the canon app....files now come in fast...great.....but still no direct support in aperture for tethered shooting? or am i missing something?
    the problem now is the aperture hot folder script is waaaay too slow and drops 5 out of 8 frames...just skips over them when shooting fast....does anyone have a solution?
    aperture is still a pro app? right?

    shot tethered yesterday...dsmkIII via the canon utility, hot folder app into aperture.....not sure where the problem is but when i hit the buffer, everything freezes and it all has to be force quit and restated....not really a problem with canon utility, but the hot folder app is just so slow and a pain to set up....i think that might be the bottleneck....tried LR and C1 and neither have any problems....
    i am very close to switching back to LR right now....one of the reasons to go with aperture was the built in tether support.....i understand that canon changed things, but is it really that hard to make this work? none of the canons work and with the 5DII out and selling like crazy, this should really be addressed....
    just downloaded 2.4 raw update and had a silly little glimmer of hope that this might change things, but no luck....isn't aperture in for an update pretty soon anyway...nothing major, just a "clean-up"?

  • Wi-Fi on/off on my iPhone 4S is grey. First 2 times switch off then on was fine. This time I have done a full restore of the software and network settings and followed everything in Apple Support but still grey - help!

    Wi-Fi on/off on my iPhone 4S is grey. First 2 times I switched off then on it was fine. Third time this didn't work so I have done a full restore of the software and network settings and followed everything in Apple Support but still grey - nothing else wrong with the phone all sofware up to date, just can't swith wi-fi on - help!

    You're welcome.
    Good luck.

  • TS1559 since i installed ios8 my ipod5 is not connecting to the internet i tried doing evrething but still not connecting

    since my ipod updaded to ios8 its not connecting to the internet i've tried evrting but still not working plzz help

    Does the iOS device connect to other networks? If yes that tend to indicate a problem with your network.
    Does the iOS device see the network?
    Any error messages?
    Do other devices now connect?
    Did the iOS device connect before?
    Try the following to rule out a software problem:                
    - 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.
    - Power off and then back on your router
    .- Reset network settings: Settings>General>Reset>Reset Network Settings
    - iOS: Troubleshooting Wi-Fi networks and connections
    - Wi-Fi: Unable to connect to an 802.11n Wi-Fi network      
    - iOS: Recommended settings for Wi-Fi routers and access points
    - Restore from backup. See:
    iOS: How to back up
    - Restore to factory settings/new iOS device.
    If still problem and it does not connect to any networks make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar

  • Repeated authorisation requests - have read FAQ, but still problematic

    Hi,
    have downloaded aboout 80-100 tracks from iTunes, but recently I can't play them as I'm repeatedly asked to authorize my computer.
    Have tried the FAQ sheet - authorised computer, removed that hidden file and then reauthorised etc - but still can't get it to work.
    Three requests lodged with support over the last week, but no responses other than the automated links to the FAQ sheet.
    Any help greatly appreciated

    ^.^
    I have the same problem, and I did everything on the Support webpage that everyone points to. Nothing works. The only solution that I know of beyond that is to re-set the iPod to its original factory settings. Because of all of the issues with beacking up the iTunes library, and because I might have to replace TV shows that don't show up in the library after taking such a step, I am hesitant to take this drastic step.
    At the same time, I am also not happy with customer service, who were absolutely useless on this issue, and there has been no help on this issue other than the already read Support page, with all of its solutions, which I have already done.
    John B.
    Laramie, WY

  • The spinning delay circle became an increasing experience, went into Apple store, they said my Hard Drive was bad, paid to replace it.  Problem is better but still persists.  What can I do at this point?

    MacBook Pro 15" making me wait while circle spins.  Went to Apple Store, diagnosed a bad HD and replaced (HD is 65% full).  Spinning icon is less frequent but still a problem - what now?

    more than likely it is your video card. If it is ATI 2600XT, tell it bye-bye. The card is barely used at all in TDM or Safe Boot Mode. The 2600 and Lion and the issues with that card, even if it seems okay, is not.
    Depending on Windows OS as to how it mounts and sees your Lion HFSX (there is a nice HFSX driver from Paragon, and an NTFS driver for Lion too)
    480GB SSD is overkill for any system unless you are pushing CS6 2-3GB images and then for scratch. All you need for a boot drive is about 100GB.
    If you have an SSD now, then 1) you need to do a full image backup and restore (regularly as maintenance), and 2) TRIM Enabler
    Save Lion and you can always do a clean Lion install w/o going back to SL - but you might want to keep SL (dual boot) and handy if you run into anything you still need that required PowerPC/Rosetta
    FBDIMM RAM dies, Amazon has $32 kits of 4GB. And having all 8 DIMM slots filled improves things. If you need or want to and feel 16GB isn't overkill.
    SSD and issues are always possible. you should not just go along. not without a clone image. And you should have another drive w/ TRIM Enabler so that you can do a repair and "trim" what is needed.
    Clone a system with CCC regularly. Bootable. And can also be used by Setup Assistant.
    Install Lion over a heavily used SL system and there are likely remnants of old things that get in the way and left in there and not removed.

  • Password and Blowfish? (Much closer but still need help)

    I'm still trying to decrypt a file encoded with a password-based (PBKDF2) Blowfish cipher. I'm bit further now but starting to run out of ideas. Here is what I have so far:
    // 1. Given a password, build a password-based key and from that build a Blowfish key
    PBEKeySpec kspec = new PBEKeySpec( pwd.toCharArray(), salt, iterationCount, keySize );
    SecretKeyFactory kfact = SecretKeyFactory.getInstance( "PBKDF2WithHmacSHA1" );
    SecretKey sKey = kfact.generateSecret( kspec );
    byte[] keyBytes = sKey.getEncoded(); // Is this right?
    Key bfKey = new SecretKeySpec( keyBytes, "Blowfish" );
    // 2. Given Blowfish key and initialization vector, decrypt the cipherText into plainText
    Cipher cipher = Cipher.getInstance("Blowfish/CFB/NoPadding");
    IvParameterSpec iv = new IvParameterSpec( initVector );
    cipher.init( Cipher.DECRYPT_MODE, bfKey, iv );
    byte[] plainText = cipher.doFinal( cipherText );In a full test bed, this compiles and runs just fine, except that it doesn't appear to decrypt the data as expected.
    More specifically, when I use Cipher.ENCRYPT_MODE to encrypt something like "This-is-a-test" and then decrypt the result with the code above only the first 8 bytes of the result return to plain text, the rest are garbage ("This-is-XXXX...").
    The simple test case, at least, should work perfectly but I'm still missing something crucial. The fact that the first 8 bytes decode fine but not the rest feels like a hint to me, but I'm just not getting what the issue might be as I used the same password, initialization vector, key-, and cipher-types in both directions (encode/decode).
    Help?

    Umm, mea culpa on the encrypt/decrypt test; that part works now (yay!) My core issue remains, however, and that involves getting the OOo document component (content.xml) to decrypt:
    The document meta-data definitely indicates "Blowfish CFB" which I take to mean "Blowfish/CFB/NoPadding".
    What would help me greatly is if someone (perhaps even you, Sabre) could take a look at the following code fragment and tell me if I'm (a) doing something fundamentally wrong here (specifically with the key conversion from PBKDF2 to Blowfish), or (b) if there is an alternative way of doing what I think(hope) I'm doing, which may have different/better results. My trouble is that the decrypt step on the document produces merely binary data (not compressed data which was to come out of the decryption):
    // 1. Create a password-based ("PBKDF2") key, then build a "Blowfish" key from that
        SecretKeyFactory keyFactory = SecretKeyFactory.getInstance( "PBKDF2WithHmacSHA1" );
        PBEKeySpec pbKeySpec = new PBEKeySpec( password.toCharArray(), salt, 1024, 128 );
        SecretKey pbKey = keyFactory.generateSecret( pbKeySpec );
        byte[] encoded = pbKey.getEncoded();
        Key bfKey = new SecretKeySpec( encoded, "Blowfish" );
    // 2. Initialize a specific cipher with the key, and initialization vector
        Cipher bfCipher = Cipher.getInstance( "Blowfish/CFB/NoPadding" );
        IvParameterSpec iv = new IvParameterSpec( initVector );
        bfCipher.init( Cipher.DECRYPT_MODE, bfKey, iv );
    // 3. Decrypt it
        byte[] plainText = bfCipher.doFinal( cipherText );If full code would help, I'll gladly post it, but the above is the distilled core of the thing and probably easier to grok. Thanks!

  • STARTED IT, BUT STILL NEED HELP -- INPUTTTING CHARACTERS FROM LOADED FILE INTO TABLE, SELECTING STRINGS FROM TABLE AND PLACING IN NEW TABLE, SAVING NEW TABLE TO SPREADSHEET FILE

    I AM TRYING TO IMPORT CHARACTERS FROM A TAB DELIMITED FILE INTO A TABLE ON LABVIEW.  ONCE THE DATA IS IN THE TABLE I WANT TO BE ABLE TO SELECT INDIVIDUAL STRINGS FROM THE TABLE AND PLACE IT IN A NEW TABLE.  WHEN I CLICK ON A STRING I WOULD LIKE THE SELECTED STRING TO SHOW IN A TEXT BOX LABELED 'SELECTED STEP'  AFTER ALL THE SELECTED STRINGS IS IN THE TABLE I WOULD LIKE TO SAVE THE NEW TABLE AS ANOTHER SPREADSHEET -- TAB DELIMITED -- FILE, MAKING IT ACCESSIBLE TO OPEN.  HERE IS WHAT I HAVE SO FAR.  I CAN INPUT DATA INTO THE TABLE, BUT I CAN ONLY TRANSFER ONE STRING INTO THE TABLE I WOULD LIKE TO BE TO INPUT MULTIPLE STRINGS.    ALSO WHENEVER I TRY SAVING THE FILE, IT ALWAYS SAVES A UNKNOWN FILE, HOW CAN I GET IT TO SAVE AS A SPREADSHEET FILE.  THANKING ALL OF YOU IN ADVANCE FOR YOUR HELP!!!!!!
    Attachments:
    Selector.zip ‏30 KB

    Pondered,
       The question you are asking is the same one that you asked in: http://forums.ni.com/ni/board/message?board.id=170&message.id=132508#M132508, to which I supplied a revised version of the original vi you used (which was modified from the original one I supplied to an earlier thread). A couple of questions: 1) What does my latest not do that is in your question, 2) Why are you starting yet another thread about the same problem?  We are here trying to help, it makes it a lot easier if you keep the same problem in the same thread, it reduces duplication of effort from those that might not have been following the previous thread(s).  Those of us that don't have our "names in blue" are just doing this "for fun" (the blue names are NI employees, who may still be doing it "for fun"), and it makes it more fun if it doesn't seem (correctly or not) that our attempts are ignored.  If an answer doesn't help, or seems incomplete, post a little more detail to the same thread so that the original respondent, or someone new, can provide more information, or understand your problem better.
    P.M.
    Message Edited by LV_Pro on 07-20-2005 01:20 PM
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

Maybe you are looking for

  • File Count using SPFile Object

    Hi, I am trying to get the file count using through SPFile within the selected dates of date time controls as below. But not able to get the count of the files in the folder as there is not count property in the SPFile object. Please share your ideas

  • Currency in Europe Format

    Hi, I have a requirement to show currency in european format that is i want spaces as thousand separator instead of commas and i want to total in grand total. Please guide me to achieve the same. Thanks, Phani.

  • How To Make Screen Controls Disappear In Full Screen Mode?

    I downloaded Quicktime 7.2 and even though I have selected Edit/Preferences/Player Preferences/Full Screen and under Controls, Display Full Controls, Hide after 2 seconds - When I am watching a video in full screen mode, for example the latest Keynot

  • Lightroom cc and lightroom 5

    I've just run the update to get Lightroom CC, but Lightroom 5 still shows in Creative Cloud. Do I need both? is one for mobile?

  • The Facebook app can't upgrade.

    It only says "wait" and I can't even delete the app. I've tried pressing the on-off button att the same time as the home button but it didn't work. Please help, it's been like this for 2 weeks now...