Need to get answers on DataFinder's troubles
Recently, I played with Datafinder and TDMS and posted my questions on this board.
Any NI Engineers were not interested in my question.
But I think Datafinder have a big trouble (seems to be BUG) in treating database, especially header file info.
What is the worst is some VI have a PASSWORD so I couldn't modify some secrets.
I want to confirm whether these questioin are bug or not.
If some NI engineer can read these articles, please reply.
1. http://forums.ni.com/ni/board/message?board.id=170&message.id=495544#M495544
2. http://forums.ni.com/ni/board/message?board.id=170&message.id=495215#M495215
3. http://forums.ni.com/ni/board/message?board.id=170&message.id=495146#M495146
labmaster
I moved this question to LabVIEW forum.
Similar Messages
-
Need to get answers on DataFinder's trouble
Recently, I played with Datafinder and TDMS and posted my questions on this board.
Any NI Engineers were not interested in my question.
But I think Datafinder have a big trouble (seems to be BUG) in treating database, especially header file info.
What is the worst is some VI have a PASSWORD so I couldn't modify some secrets.
I want to confirm whether these questioin are bug or not.
If some NI engineer can read these articles, please reply.
1. http://forums.ni.com/ni/board/message?board.id=170&message.id=495544#M495544
2. http://forums.ni.com/ni/board/message?board.id=170&message.id=495215#M495215
3. http://forums.ni.com/ni/board/message?board.id=170&message.id=495146#M495146
labmasterI moved this question to LabVIEW forum.
-
How would I find this? I need it for the police report so if I could get answers soon that would be great, thanks
Lanlani wrote:
... It there any other solution ?
Consider using this site: http://www.stolenlostfound.org/
This is Apple's official word on the subject:
Reporting a lost or stolen Apple product
If you have lost or found an Apple product, please contact your local law enforcement agency to report it. Although Apple does not have a process to track or flag lost or stolen product, you can use My Support Profile to find a list of serial numbers for items purchased or registered with your Apple ID. -
I need to get back to FF4. I did this in the past but lost the procedure. I need to get to FF4 so that Roboform tool bar works.
Thanks for the right fix.
By the way RF is now up to7.4.1
Also when the install of FF5 ran it said that the Roboform toolbar was incompatible and said there was no upgrade. That is what sent me searching for away back to FF4. So I didn't even look at RF's site believing there was no upgrade available. -
Need a quick answer should I get just wi-fi or wi-fi cellular thanks
Need a quick answer should I get wi-fi or wi-fi w/ cellular what do you think is the best way to go. Will be shopping for one in the next few days. Thanks
It depends upon where you will be using it - do you need to be able to access the internet when you are away from wifi networks, and/or do you need built-in GPS (only the cellular iPads have a built-in GPS chip) ? If you get the cellular version then you don't need to activate a service on it until if/when you need it
-
Why can't I update my iOS 5.1.1 to 6.1.6? I get the unknown error 1601 every time I try. Could anyone teach me how to fix it? I need a concrete answers/suggestions. Thanks!
Click here and follow the instructions.
(104277) -
HT201363 Hi I need to get my security answers
I need help getting my answers to my security questions
Click here for information. If the option to have the answers emailed to you isn't available or doesn't work(the email may take a few hours to arrive), contact the iTunes Store staff via the link in the 'Additional Information' section of that article.
(90695) -
HT5312 Please i need to get my security answer to enable to purchase any app
Please guid me how to get back my security question's answer?
The Three Best Alternatives for Security Questions and Rescue Mail
1. Use Apple's Express Lane.
Go to https://expresslane.apple.com ; click 'See all products and services' at the
bottom of the page. In the next page click 'More Products and Services, then
'Apple ID'. In the next page select 'Other Apple ID Topics' then 'Forgotten Apple
ID security questions' and click 'Continue'.
2. Call Apple Support in your country: Customer Service: Contact Apple support.
3. Rescue email address and how to reset Apple ID security questions.
A substitute for using the security questions is to use 2-step verification:
Two-step verification FAQ Get answers to frequently asked questions about two-step verification for Apple ID. -
Replacement for the second draft of this Thread (To be removed if Published as Tip)
kisight: How do I get my iSight working ?
Trouble Shooting an iSight Camera. (Version 3)
Hi, On many subjects Apple has Articles and Documents that can help.
In some case they are written by an Engineer or similar and can miss the mark for the average user.
In other cases they are crafted, detailed responses to an issue that has popped up many times in the Apple Discussions and take the best from many responses in those User-to-User Discussions, creating something that can not be surpassed.
This is the case of the Apple Article HT2090 on Trouble Shooting an iSight.
It lists steps and processes to go through for both Internal iSights and External ones.
However as with most things it does sometime pay to reword things differently so that people grasp the points in language they understand.
The info here is a reworking itself of two pages at ralphjohns.co.uk/EZ Jim pages namely EZ JIm's page 2 Where can I Find Help With My iSight ? and his page 4, How Can I Test My iSight is Completely Functional ? which were written several years ago and predate the Apple Article, being aimed at the External iSight. They have been updated since to address the Internal iSight as well but some of the comments are useful between the two types.
External First. For Internal iSights Start at 2b) (you will need to adjust some options/steps as the Internal is USB)
Steps
1) Pre Purchase
If buying an External iSight you should if you an get to see it in action.Apple no longer sells the External iSight so you will be buying it second hand.If you cannot get to see the device plugged in and working on Mac then check the smaller print of the seller and selling site as to nature of Returns and Faulty Goods.
2) Does it work ?
a) First of all Plug it in. It should come with a suitable mount (although there are variants on this) and a 6 pin to 6 pin Firewire cable.
Ideally it should have it's own Firewire port/socket on your computer. Connecting it "DaisyChained" to other devices can be a problem as they do not all use Firewire at the same Data speed.
It will then go through some checks as the OS powers it up and checks it's firmware.
Do not be concerned that the little green indicator light atop your iSight illuminates for a few seconds and then goes dark when you first connect your iSight or power on your Mac. Do not be concerned if you hear a soft whir as iSight attempt to focus either. Both these occurrences are normal. If your iSight passes the following tests, do not worry about this sound or the status of the green light.
There is no ON switch as such. It does have an iris mechanism that can be controlled by the User. The iris should be turned so you can see the Lens for the iSight to send pictures to an application.
b) Pick an Application to see the picture the iSight produces.iChat is one application you can use. Photobooth is another. iMovie (Version 4 or above for external iSight -- Version 6 or above for in-built iSight) and Comic Book (if bundled on your Mac) are yet more.
See this Users Tip for more applications Or this page for yet more.
Photo Booth is probably the simplest as it has no Preferences to choose a camera in the original version and is done from the Menu items in later versions (nor is there any setting in the OS) and Photo Booth will default to the External Camera if one is plugged in before the application is started. If you see your self or what the camera is pointing at, It Works !!
3) If it does Not Work
a) Check Cables/leads. Re-seat the cable at both ends. DO this carefully as although Firewire cables are keyed to fit the right way it has been known to force them the wrong way.
Try another 6 pin to 6 pin firewire cable.
b) Unplug the cable from any other FireWire device and give the iSight it's Own FireWire port/socket on the Mac (exclude issues with other FireWire devices). It is important that this be a port/socket on your computer and that you know that it works. Do not use a port in a FireWire hub or another FireWire device or a FireWire port in an Apple Display for testing. (Also see d below if you have an 800 FIreWIre Computer)
c) Check System Profiler (Apple Icon menu top Left > About this Mac. > More Info Button)Open the Reveal Triangles to see the list and go to Hardware > FireWire. (Use USB for Internal Cameras)
If it appears here try booting or Logging in as another user on the Mac (Create a Test account if you don't have one) and try item 2b) above again.
d) With FireWire 800 computers you may have to change your FireWire 400 to 800 Adaptor or Cable to get full Audio functionality with Lion Apps
If it is not in the System Profiler you are almost certainly going to need the Trouble Shooting Article from Apple at this point. This Article may also be of help (number HT1317 What to do if your computer won't recognise a FireWire or USB device).
If you have not resolved things at this stage it is going to be time for an Engineer with Apple credentials.There are no user serviceable parts inside any iSight.
Other Items
Audio.
The External Camera has two mics inside.The volume it records at or plays through for iChat is controlled in System Preferences > Sound > Input tab (select device) and this should be set to get the blue response bar to at least half way (preferably three quarters) when you talk.The same applies to any other Mic, even the Internal one on laptops and some other Macs.
Firmware.
The System Profiler as detailed above should tell you the Firmware the iSight has. The current version is 1.0.3 and was updated in Panther. (Essentially it is an Audio compatibility update but does seem to help in other situations)
If your computer is running Panther (10.2.x) then use this Updater
If running Tiger (10.4.x) or Leopard (10.5.x) then navigate manually to your Hard Drive/System/Library/Core Services/iSight Updater and run the updater found there.
If an iSight is Plugged in on the Computer when you do an OS update and the firmware needs updating on the iSight this app is supposed to be triggered but it seem it may need a hand at times.
Focusing on the External iSight
Essentially the External iSight is self or Autofocusing.
If in doubt then try better lighting and strong colours as opposes to light or pastels.
(All built-in iSights are fixed focus. Therefore, unless a built-in iSight lens cover is dirty or smudged, any built-in iSight whose image is blurry needs service by an Engineer with Apple credentials.)
EZ Jim has these more specific recommendations for piece of mind.
Make a cross whose lines are about one-half inch or more wide on a plain background to use as a focus target. (I have even used black electrical tape.)
Turn on plenty of light and hold the target very still at about two or three feet from the lens. Watch iSight focus. (You may need to use a tripod or brace yourself to hold the target still enough.)
Then quickly move the target and hold it very still at about one foot away from the lens. Watch iSight focus.
Finally, move in to about six inches from iSight, and check focus there, too. (Holding the target still is more important as you get closer to iSight.)
This Users Tip by Ian Bickerstaff can give you clues for any application really "Look and sound good in iChat"
Other Info and Links
iSight Support info at Apple Links to Users Guide, Manual and many other topics on the External iSight.
Apple's iSight Firewire Connectivity FAQs
Apple's iSight Service FAQs
If you feel you have not understood or think you have not grasped something here or in the links so far try the iSight Discussion Forum
1:13 PM Saturday; October 8, 2011
Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
G4/1GhzDual MDD (Leopard 10.5.8)
MacBookPro 2Gb( 10.6.8)
Mac OS X (10.6.8),
"Limit the Logs to the Bits above Binary Images." No, SeriouslyReplacement for the second draft of this Thread (To be removed if Published as Tip)
kisight: How do I get my iSight working ?
Trouble Shooting an iSight Camera. (Version 3)
Hi, On many subjects Apple has Articles and Documents that can help.
In some case they are written by an Engineer or similar and can miss the mark for the average user.
In other cases they are crafted, detailed responses to an issue that has popped up many times in the Apple Discussions and take the best from many responses in those User-to-User Discussions, creating something that can not be surpassed.
This is the case of the Apple Article HT2090 on Trouble Shooting an iSight.
It lists steps and processes to go through for both Internal iSights and External ones.
However as with most things it does sometime pay to reword things differently so that people grasp the points in language they understand.
The info here is a reworking itself of two pages at ralphjohns.co.uk/EZ Jim pages namely EZ JIm's page 2 Where can I Find Help With My iSight ? and his page 4, How Can I Test My iSight is Completely Functional ? which were written several years ago and predate the Apple Article, being aimed at the External iSight. They have been updated since to address the Internal iSight as well but some of the comments are useful between the two types.
External First. For Internal iSights Start at 2b) (you will need to adjust some options/steps as the Internal is USB)
Steps
1) Pre Purchase
If buying an External iSight you should if you an get to see it in action.Apple no longer sells the External iSight so you will be buying it second hand.If you cannot get to see the device plugged in and working on Mac then check the smaller print of the seller and selling site as to nature of Returns and Faulty Goods.
2) Does it work ?
a) First of all Plug it in. It should come with a suitable mount (although there are variants on this) and a 6 pin to 6 pin Firewire cable.
Ideally it should have it's own Firewire port/socket on your computer. Connecting it "DaisyChained" to other devices can be a problem as they do not all use Firewire at the same Data speed.
It will then go through some checks as the OS powers it up and checks it's firmware.
Do not be concerned that the little green indicator light atop your iSight illuminates for a few seconds and then goes dark when you first connect your iSight or power on your Mac. Do not be concerned if you hear a soft whir as iSight attempt to focus either. Both these occurrences are normal. If your iSight passes the following tests, do not worry about this sound or the status of the green light.
There is no ON switch as such. It does have an iris mechanism that can be controlled by the User. The iris should be turned so you can see the Lens for the iSight to send pictures to an application.
b) Pick an Application to see the picture the iSight produces.iChat is one application you can use. Photobooth is another. iMovie (Version 4 or above for external iSight -- Version 6 or above for in-built iSight) and Comic Book (if bundled on your Mac) are yet more.
See this Users Tip for more applications Or this page for yet more.
Photo Booth is probably the simplest as it has no Preferences to choose a camera in the original version and is done from the Menu items in later versions (nor is there any setting in the OS) and Photo Booth will default to the External Camera if one is plugged in before the application is started. If you see your self or what the camera is pointing at, It Works !!
3) If it does Not Work
a) Check Cables/leads. Re-seat the cable at both ends. DO this carefully as although Firewire cables are keyed to fit the right way it has been known to force them the wrong way.
Try another 6 pin to 6 pin firewire cable.
b) Unplug the cable from any other FireWire device and give the iSight it's Own FireWire port/socket on the Mac (exclude issues with other FireWire devices). It is important that this be a port/socket on your computer and that you know that it works. Do not use a port in a FireWire hub or another FireWire device or a FireWire port in an Apple Display for testing. (Also see d below if you have an 800 FIreWIre Computer)
c) Check System Profiler (Apple Icon menu top Left > About this Mac. > More Info Button)Open the Reveal Triangles to see the list and go to Hardware > FireWire. (Use USB for Internal Cameras)
If it appears here try booting or Logging in as another user on the Mac (Create a Test account if you don't have one) and try item 2b) above again.
d) With FireWire 800 computers you may have to change your FireWire 400 to 800 Adaptor or Cable to get full Audio functionality with Lion Apps
If it is not in the System Profiler you are almost certainly going to need the Trouble Shooting Article from Apple at this point. This Article may also be of help (number HT1317 What to do if your computer won't recognise a FireWire or USB device).
If you have not resolved things at this stage it is going to be time for an Engineer with Apple credentials.There are no user serviceable parts inside any iSight.
Other Items
Audio.
The External Camera has two mics inside.The volume it records at or plays through for iChat is controlled in System Preferences > Sound > Input tab (select device) and this should be set to get the blue response bar to at least half way (preferably three quarters) when you talk.The same applies to any other Mic, even the Internal one on laptops and some other Macs.
Firmware.
The System Profiler as detailed above should tell you the Firmware the iSight has. The current version is 1.0.3 and was updated in Panther. (Essentially it is an Audio compatibility update but does seem to help in other situations)
If your computer is running Panther (10.2.x) then use this Updater
If running Tiger (10.4.x) or Leopard (10.5.x) then navigate manually to your Hard Drive/System/Library/Core Services/iSight Updater and run the updater found there.
If an iSight is Plugged in on the Computer when you do an OS update and the firmware needs updating on the iSight this app is supposed to be triggered but it seem it may need a hand at times.
Focusing on the External iSight
Essentially the External iSight is self or Autofocusing.
If in doubt then try better lighting and strong colours as opposes to light or pastels.
(All built-in iSights are fixed focus. Therefore, unless a built-in iSight lens cover is dirty or smudged, any built-in iSight whose image is blurry needs service by an Engineer with Apple credentials.)
EZ Jim has these more specific recommendations for piece of mind.
Make a cross whose lines are about one-half inch or more wide on a plain background to use as a focus target. (I have even used black electrical tape.)
Turn on plenty of light and hold the target very still at about two or three feet from the lens. Watch iSight focus. (You may need to use a tripod or brace yourself to hold the target still enough.)
Then quickly move the target and hold it very still at about one foot away from the lens. Watch iSight focus.
Finally, move in to about six inches from iSight, and check focus there, too. (Holding the target still is more important as you get closer to iSight.)
This Users Tip by Ian Bickerstaff can give you clues for any application really "Look and sound good in iChat"
Other Info and Links
iSight Support info at Apple Links to Users Guide, Manual and many other topics on the External iSight.
Apple's iSight Firewire Connectivity FAQs
Apple's iSight Service FAQs
If you feel you have not understood or think you have not grasped something here or in the links so far try the iSight Discussion Forum
1:13 PM Saturday; October 8, 2011
Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
G4/1GhzDual MDD (Leopard 10.5.8)
MacBookPro 2Gb( 10.6.8)
Mac OS X (10.6.8),
"Limit the Logs to the Bits above Binary Images." No, Seriously -
I had this app called my disk (app store name is: Lock photo+video safe - secure folder manager to protect private photos vault & hide secret picture file privacy) This app lets me have two passwords with different pictures and videos in each of them. It's a really great app.
My friend deleted the app by "accident" and I need to get the app back with all my data. I have a backup of the app on my icloud backup that was taken place two months ago (around same time the app was deleted). It shows up in the cloud saying I have 4gb worth of that app in the cloud. I restore my phone back to that backup but the app data is not there. I wasn't sure if I had to wait till my iphone backs up everything (like music and pictures for example) for it to show up but as soon as the app downloaded I opened it hapilly knowing I have my data back but unfortunately it was not there. In the app itself, there's an option to backup from the cloud but it just brings up this window that says you can back up from the cloud (doesn't have a place to hit that says restore or anything).
Is there something I am doing wrong? Can anyone help me? I really need that app data back because I have pictures of memories with friends and family inside that app that I do not have anywhere else. Once i get the back back ill be sure to save the photos onto my computer just incase anything goes wrong again.
Thanks everyone for the help!
Nikhilfwiw
It seems that in a case like this you'd need to reset the device to factory settings and then restore from iCloud backup.
Sadly the reset to factory settings could cause more trouble than its worth.
Apple's iCloud backup, could, but does not let the user restore one app or its data.
You'll also find that even though that App's data is in the cloud, you as its owner do not have access to it.
Hope it helps/ -
I need to get Keyboard input as well as mouse input on a JButton
I need to get Keyboard input as well as mouse input on a JButton
I have attempted to implement KeyListener. I get the keyCode but I need it to go in to the same String variable as my Actionlistener section.Here is the code I have trouble with getting keyboard input as wells as mouse input into the same variable.
public class Calctester extends JFrame
implements ActionListener, KeyListener
private double var1, var2;//var1 and var2 are used to perform calculation
String operand1 = "";//takes first input until an operator is pressed
String operand2 = "";//takes input after operator is invoked
double result;//is used to store the result
boolean flag = false;//to signal operator pressed
boolean decimalFlag = false;//to signal decimal pressed
String stringInput;//used as a temporary store for all entry to allow for conditions to be evaluated
char ch; //used to store the operator for comparison//Reason is pre does not compare using string
String pre = "";//used to store the operator
double mem; //will hold memory operation values
double vMod; //Temporary store for var2 to be used with percent operations
//Creates buttons
JButton btn0 = new JButton("0");
JButton btn1 = new JButton("1");
JButton btn2 = new JButton("2");
JButton btn3 = new JButton("3");
JButton btn4 = new JButton("4");
JButton btn5 = new JButton("5");
JButton btn6 = new JButton("6");
JButton btn7 = new JButton("7");
JButton btn8 = new JButton("8");
JButton btn9 = new JButton("9");
JButton btnC = new JButton("C");
JButton btnCE = new JButton("CE");
JButton btnBkpSpc = new JButton("Backspace");
JButton btnPlus = new JButton("+");
JButton btnMinus = new JButton("-");
JButton btnMultiply = new JButton("*");
JButton btnDivide = new JButton("/");
JButton btnEquals = new JButton("=");
JButton btnPeriod = new JButton(".");
JButton btnPlusMinus = new JButton("+/-");
JButton btnSqrt = new JButton("sqrt");
JButton btnMod = new JButton("%");
JButton btnOneOverX = new JButton("1/x");
JButton btnMC = new JButton("MC");
JButton btnMR = new JButton("MR");
JButton btnMS = new JButton("MS");
JButton btnMPlus = new JButton("M+");
//Displays Text area for Display
JTextField txtArea = new JTextField("0.");//The calculation display area set to 0.
JTextField mArea = new JTextField();//to display memory operations
//Default constructor
Calctester()
//Defines a content pane
Container c = getContentPane();
//Defines the layout of the frame and sets it to null to allow absolute positioning
c.setLayout(null);
//Defines event handling
btn0.addActionListener(this);
btn1.addActionListener(this);
btn2.addActionListener(this);
btn3.addActionListener(this);
btn4.addActionListener(this);
btn5.addActionListener(this);
btn6.addActionListener(this);
btn7.addActionListener(this);
btn8.addActionListener(this);
btn9.addActionListener(this);
btnC.addActionListener(this);
btnCE.addActionListener(this);
btnBkpSpc.addActionListener(this);
btnPlus.addActionListener(this);
btnMinus.addActionListener(this);
btnDivide.addActionListener(this);
btnMultiply.addActionListener(this);
btnEquals.addActionListener(this);
btnPeriod.addActionListener(this);
btnPlusMinus.addActionListener(this);
btnSqrt.addActionListener(this);
btnMod.addActionListener(this);
btnOneOverX.addActionListener(this);
btnMR.addActionListener(this);
btnMS.addActionListener(this);
btnMPlus.addActionListener(this);
btnMC.addActionListener(this);
btn1.addKeyListener(this);
//Adds the buttons to the frame and sets the font of the label to be
//logical font Dialog,plain as opposed to Bold and the label size to 12
//Also sets the border type of aech button
c.add(btn0).setFont(new Font("Dialog", Font.PLAIN, 12));
btn0.setBorder(new BevelBorder(BevelBorder.RAISED));
c.add(btn1).setFont(new Font("Dialog", Font.PLAIN, 12));
btn1.setBorder(new BevelBorder(BevelBorder.RAISED));
c.add(btn2).setFont(new Font("Dialog", Font.PLAIN, 12));
btn2.setBorder(new BevelBorder(BevelBorder.RAISED));
c.add(btn3).setFont(new Font("Dialog", Font.PLAIN, 12));
btn3.setBorder(new BevelBorder(BevelBorder.RAISED));
c.add(btn4).setFont(new Font("Dialog", Font.PLAIN, 12));
btn4.setBorder(new BevelBorder(BevelBorder.RAISED));
c.add(btn5).setFont(new Font("Dialog", Font.PLAIN, 12));
btn5.setBorder(new BevelBorder(BevelBorder.RAISED));
c.add(btn6).setFont(new Font("Dialog", Font.PLAIN, 12));
btn6.setBorder(new BevelBorder(BevelBorder.RAISED));
c.add(btn7).setFont(new Font("Dialog", Font.PLAIN, 12));
btn7.setBorder(new BevelBorder(BevelBorder.RAISED));
c.add(btn8).setFont(new Font("Dialog", Font.PLAIN, 12));
btn8.setBorder(new BevelBorder(BevelBorder.RAISED));
c.add(btn9).setFont(new Font("Dialog", Font.PLAIN, 12));
btn9.setBorder(new BevelBorder(BevelBorder.RAISED));
c.add(btnC).setFont(new Font("Dialog", Font.PLAIN, 12));
btnC.setBorder(new BevelBorder(BevelBorder.RAISED));
c.add(btnCE).setFont(new Font("Helvetica", Font.PLAIN, 12));
btnCE.setBorder(new BevelBorder(BevelBorder.RAISED));
c.add(btnBkpSpc).setFont(new Font("Dialog", Font.PLAIN, 12));
btnBkpSpc.setBorder(new BevelBorder(BevelBorder.RAISED));
c.add(btnPlus).setFont(new Font("Dialog", Font.PLAIN, 12));
btnPlus.setBorder(new BevelBorder(BevelBorder.RAISED));
c.add(btnMinus).setFont(new Font("Dialog", Font.PLAIN, 12));
btnMinus.setBorder(new BevelBorder(BevelBorder.RAISED));
c.add(btnMultiply).setFont(new Font("Dialog", Font.PLAIN, 12));
btnMultiply.setBorder(new BevelBorder(BevelBorder.RAISED));
c.add(btnDivide).setFont(new Font("Dialog", Font.PLAIN, 12));
btnDivide.setBorder(new BevelBorder(BevelBorder.RAISED));
c.add(btnEquals).setFont(new Font("Dialog", Font.PLAIN, 12));
btnEquals.setBorder(new BevelBorder(BevelBorder.RAISED));
c.add(btnPeriod).setFont(new Font("Dialog", Font.PLAIN, 12));
btnPeriod.setBorder(new BevelBorder(BevelBorder.RAISED));
c.add(btnPlusMinus).setFont(new Font("Dialog", Font.PLAIN, 12));
btnPlusMinus.setBorder(new BevelBorder(BevelBorder.RAISED));
c.add(btnMod).setFont(new Font("Albertus Medium", Font.PLAIN, 12));
btnMod.setBorder(new BevelBorder(BevelBorder.RAISED));
c.add(btnSqrt).setFont(new Font("Microsoft San Serif", Font.PLAIN, 11));
btnSqrt.setBorder(new BevelBorder(BevelBorder.RAISED));
c.add(btnOneOverX).setFont(new Font("Dialog", Font.PLAIN, 12));
btnOneOverX.setBorder(new BevelBorder(BevelBorder.RAISED));
c.add(btnMC).setFont(new Font("Dialog", Font.PLAIN, 12));
btnMC.setBorder(new BevelBorder(BevelBorder.RAISED));
c.add(btnMS).setFont(new Font("Dialog", Font.PLAIN, 12));
btnMS.setBorder(new BevelBorder(BevelBorder.RAISED));
c.add(btnMR).setFont(new Font("Dialog", Font.PLAIN, 12));
btnMR.setBorder(new BevelBorder(BevelBorder.RAISED));
c.add(btnMPlus).setFont(new Font("Dialog", Font.PLAIN, 12));
btnMPlus.setBorder(new BevelBorder(BevelBorder.RAISED));
//sets the color of the label of the buttons
btnC.setForeground(Color.red);
btnCE.setForeground(Color.red);
btnBkpSpc.setForeground(Color.red);
btnDivide.setForeground(Color.red);
btnMultiply.setForeground(Color.red);
btnMinus.setForeground(Color.red);
btnPlus.setForeground(Color.red);
btnMC.setForeground(Color.red);
btnMR.setForeground(Color.red);
btnMS.setForeground(Color.red);
btnMPlus.setForeground(Color.red);
btnEquals.setForeground(Color.red);
btn0.setForeground(Color.blue);
btn1.setForeground(Color.blue);
btn2.setForeground(Color.blue);
btn3.setForeground(Color.blue);
btn4.setForeground(Color.blue);
btn5.setForeground(Color.blue);
btn6.setForeground(Color.blue);
btn7.setForeground(Color.blue);
btn8.setForeground(Color.blue);
btn9.setForeground(Color.blue);
btnPlusMinus.setForeground(Color.blue);
btnSqrt.setForeground(Color.blue);
btnMod.setForeground(Color.blue);
btnOneOverX.setForeground(Color.blue);
btn0.setFocusPainted(false);
btnPlus.setFocusPainted(false);
btnEquals.setFocusPainted(false);
//The display text area and the memory operation text area
c.add(txtArea);
txtArea.setBorder(new BevelBorder(BevelBorder.LOWERED));
txtArea.setBounds(7,0,240,25);//To provide a Text box @ the top of the frame
txtArea.setEditable(false);
txtArea.setBackground(Color.white);
c.add(mArea);
mArea.setBounds(13, 35, 28, 25);
mArea.setEditable(false);
mArea.setBorder(new BevelBorder(BevelBorder.LOWERED));
setSize(260,251);//size of the frame
setTitle("Calculator"); //Title
setVisible(true); //this makes the frame visible on the screen
setResizable(false); //this disallow resizing of the frame
setDefaultCloseOperation(EXIT_ON_CLOSE);//to close app
//instead of the above method you can use the WindowsListener which extennds other classes and implements other interfaces.
setLocation(300,200);//positioning of the window on the screen
txtArea.setHorizontalAlignment(JTextField.RIGHT);//sets the text in the text field to the right
mArea.setHorizontalAlignment(JTextField.CENTER);//centers the label
JMenu editMenu = new JMenu("Edit");//creates menu
JMenuItem copy = new JMenuItem("Copy Ctrl+C");//creates menu item
copy.addActionListener(this);//event handling
JMenuItem paste = new JMenuItem("Paste Ctrl+V");//creates menu
paste.addActionListener(this);//event handling
JMenuBar myMenu = new JMenuBar();//declares a menu bar
setJMenuBar(myMenu);//adds the menu bar to the frame
editMenu.setBorderPainted(false);//removes the border shadow around the menu bar
myMenu.setBorderPainted(false);//removes the border shadow around menu bar
//adds menu items to the menu, sets the font and font size.
editMenu.add(paste).setFont(new Font("Dialog", Font.PLAIN, 12));//
editMenu.add(copy).setFont(new Font("Dialog", Font.PLAIN, 12));
myMenu.add(editMenu).setFont(new Font("Dialog", Font.PLAIN, 12));
JMenu viewMenu = new JMenu("View");//creates menu
JMenuItem sci = new JMenuItem("Scientific");//creates menu item
sci.addActionListener(this);//event handling
JMenuItem std = new JMenuItem("Standard");//creates menu item
//adds menu items to the menu, sets the font and font size.
viewMenu.add(sci).setFont(new Font("Dialog", Font.PLAIN, 12));
viewMenu.add(std).setFont(new Font("Dialog", Font.PLAIN, 12));
myMenu.add(viewMenu).setFont(new Font("Dialog", Font.PLAIN, 12));
JMenu helpMenu = new JMenu("Help");//creates menu
JMenuItem helpTopics = new JMenuItem("Help Topics");//creates menu item
JMenuItem aboutCalc = new JMenuItem("About Calculator");//creates menu item
helpTopics.addActionListener(this);//event handling
//helpTopics.setBorder(new BevelBorder(BevelBorder.RAISED));
helpTopics.setBorder(LineBorder.createGrayLineBorder());
//adds menu items to the menu, sets the font and font size.
helpMenu.add(helpTopics).setFont(new Font("Dialog", Font.PLAIN, 12));
helpMenu.add(aboutCalc).setFont(new Font("Dialog", Font.PLAIN, 12));
myMenu.add(helpMenu).setFont(new Font("Dialog", Font.PLAIN, 12));
//aboutCalc.setBorder(new BevelBorder(BevelBorder.RAISED));
aboutCalc.setBorder(LineBorder.createGrayLineBorder());
//aboutCalc.setActionCommand("Nothing here right now");
//Setting absolute positions for the buttons.
btn0.setBounds(50, 160, 35, 28);
btn1.setBounds(50, 130, 35, 28);
btn2.setBounds(90, 130, 35, 28);
btn3.setBounds(130, 130, 35, 28);
btn4.setBounds(50, 100, 35, 28);
btn5.setBounds(90, 100, 35, 28);
btn6.setBounds(130, 100, 35, 28);
btn7.setBounds(50, 70, 35, 28);
btn8.setBounds(90, 70, 35, 28);
btn9.setBounds(130, 70, 35, 28);
btnC.setBounds(180, 35, 63, 28);
btnCE.setBounds(115, 35, 63, 28);
btnBkpSpc.setBounds(50, 35, 63, 28);
btnPlus.setBounds(170, 160, 35, 28);
btnMinus.setBounds(170, 130, 35, 28);
btnMultiply.setBounds(170, 100, 35, 28);
btnDivide.setBounds(170, 70, 35, 28);
btnEquals.setBounds(210, 160, 35, 28);
btnPeriod.setBounds(130, 160, 35, 28);
btnPlusMinus.setBounds(90, 160, 35, 28);
btnMC.setBounds(8, 70, 35, 28);
btnMR.setBounds(8, 100, 35, 28);
btnMS.setBounds(8, 130, 35, 28);
btnMPlus.setBounds(8, 160, 35, 28);
btnSqrt.setBounds(210, 70, 35, 28);
btnMod.setBounds(210, 100, 35, 28);
btnOneOverX.setBounds(210, 130, 35, 28);
// btn7.addKeyListener(this);
try
UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");
SwingUtilities.updateComponentTreeUI(this);
catch (Exception e)
System.out.println("Could not load Metal Look and Feel");
public void keyReleased(KeyEvent e)
//btn1 = txtArea.getRegisteredKeyStrokes();
// System.out.println(1);
// keyTyped();
public void keyPressed(KeyEvent e)
//if (e.getActionCommand().equals("1"));
//(e.getKeyText().compareTo("1"));
//(e.getKeyCode().equals("1"));
//else
System.out.println("Error");
//keyTyped();
public void keyTyped(KeyEvent e)
//displayInfo(e, "KEY TYPED: ");
System.err.println("KeyTyped >>> " + e.KEY_TYPED);
//keyEvent.keyTyped();
// e.KEY_TYPED;
/* protected void displayInfo (KeyEvent e, string s)
{KeyCodeString;
int keyCode = e.getKeyCode();
keyCodeString = "key code " + keyCode
+ "("
+ KeyEvent.getKeyText(keyCode);
public void actionPerformed(ActionEvent e)
stringInput = e.getActionCommand();
System.out.println("First stringInput action performed>>" +stringInput);
System.out.println("First pre action performed>>" +pre);
if (stringInput == "C")
operand1 = "";
operand2 = "";
var1 = 0;
var2 = 0;
var1 = result;
txtArea.setText("0.");
flag = false;//to force the operations to jump to operand 1 and go through the loop as normal
pre = "";
if (stringInput == "CE")
operand2 = "";
var2 = 0;
txtArea.setText("0.");
flag = true;//to force the operations to jump to operand 1 and go through the loop as normal
if (stringInput == "MR")
if (var1 != 0)
txtArea.setText(Double.toString(var1));
mArea.setText("M");
System.err.println("mem@operand1 >> "+ mem );
else if (var2 != 0)
txtArea.setText(Double.toString(var2));
mArea.setText("M");
System.err.println("mem @ mR else>> "+ mem );
if (stringInput == "MS")
mArea.setText("M");
if (operand1 != "")
mem = var1;
else if (operand2 != "")
mem = var2;
else
mem = 0;
if (stringInput == "MC")
mArea.setText("");//to clear the text area display
mem = 0;//to reset the variable
if (stringInput == "M+")
mArea.setText("M");
flag = true;//to force the operations to jump to operand 2 and go through the loop as normal
if (stringInput == "=")
//result = evaluate();
txtArea.setText(Double.toString(result));
System.out.println("Equals>>" +stringInput);
System.out.println("Equals>>" +pre);
System.err.println("The flag at equals is " + flag);
if (stringInput == "+"||stringInput == "-"||stringInput == "/"||
stringInput == "*"||stringInput == "=")
pre = pre.concat(stringInput);
System.out.println("Second action perfo/check for operator>>" +stringInput);
System.out.println("Second pre action perfo/check for operator>>" +pre);
operand2 = "";
System.err.println("The flag at +,- etc is " + flag);
if(!flag &&(stringInput == "*"|| stringInput == "/"))
var2 = 1;
stringInput = "";
flag = true;
if(!flag)
stringInput = pre;
System.out.println("if flag true/stringInput" +stringInput);
System.out.println("flag true/pre" +pre);
else
//These statements extract the operator
stringInput = pre.valueOf(pre.charAt(pre.length()-2));
ch = pre.charAt(pre.length()-2);
System.out.println("@ position -2 stringInput" + pre.valueOf(pre.charAt(pre.length()-2)));
System.out.println("@ position -2 pre" + pre.charAt(pre.length()-2));
result = evaluate();
var2 = 0;
operand2 = "";
txtArea.setText(Double.toString(result));
System.out.println("Total is " + result);
flag = true;
if(!flag &&(stringInput == "*"|| stringInput == "/"))
var2 = 1;
stringInput = "";
flag = true;
if (stringInput == "%")
//evaluate();
txtArea.setText(Double.toString(result));
System.err.println("mem @ mR else>> "+ result + " %" );
if (stringInput == "1/x")
if (operand1 != "")
txtArea.setText(Double.toString(1/var1));
//System.err.println("mem@operand1 >> "+ mem );
else if (operand2 != "")
operand2 = "";
txtArea.setText(Double.toString(1/var2));
//System.err.println(">> "+ mem );
if (Character.isDigit(stringInput.charAt(0))||stringInput == ".")
System.out.println(operand1);
if (stringInput == "." && operand1 == "")
operand1 = "0";
System.out.print("fail op1");
if (stringInput == "." && operand2 == "")
System.out.print("fail op2");
operand2 = "0";
if (flag==false)
operand1 = operand1.concat(stringInput);
result = Double.parseDouble(operand1);
System.out.println("op1 =>" + operand1);
txtArea.setText(operand1);
//result = var1;
System.out.println("result after var1 = result " + result);
else
operand2 = operand2.concat(stringInput);
var2 = Double.parseDouble(operand2);
//var2 = vMod;
System.out.println("op2 =>" + operand2);
txtArea.setText(" ");//to clear the text area
txtArea.setText(operand2);//to display the second number if (operators == "+")
System.out.println("result after var2 " + result);
public double evaluate()
if (ch == '+' )
result = result + var2;
if (ch == '-' )
result = result - var2;
if (ch == '/' )
result = result / var2;
if (ch == '*' )
result = result * var2;
if (ch == '%')
var2 = Double.parseDouble(operand2);
result = result/vMod*100;
System.out.println("% "+ result);
return result;
public static void main(String [] args)
Calctester x = new Calctester();
} -
I need help getting past the installation error "windows cannot fint TEMP file"
I need help getting past the installation error "windows cannot find TEMP file"
Seems like some who have tried two devices on the JMICRON IDE port have had trouble. Try without the hard drive and see if you get that error. If that is the case I would try a PATA to SATA converter for your hard drive and connect it to one of the Intel SATA Ports.
http://www.newegg.com/Product/Product.aspx?Item=N82E16812107112
http://www.amazon.com/ADDONICS-IDE-SERIAL-CONVERTER-ADIDESA/dp/B000090169
http://www.compusa.com/products/product_info.asp?product_code=339900#ts
http://www.xpcgear.com/ide2sata.html
http://www.ubuyitdirect.com/-p-1045.html?currency=USD
http://www.satasite.com/sata-ide-converter.htm
http://www.pcgears.com/default.aspx?oid=187150
-
Need to get a new printer.
My PSC 2210 is really acting up and I need to get a new HP. Is there an "all in one" that does a decent job with color slides? I really don't want to buy two units and will only have to copy the slides one time then I will be done. A fax is not mandatory but will use it if there is an "all in one" that will do the slides. My printing needs are simple, personal black and white letter, some color, copy letters and some photos. The PSC 2210 filled all my needs except for not being able to do the slides.
This question was solved.
View Solution.By color slides do you mean you want to scan 35mm slides or that you want to print overhead transparencies? Scanning 35mm slides requires a backlight adapter, referred to by HP as a Transparency Media Adapter (TMA). As listed here this feature does not seem to be offered on the recent HP all-in-one units, it is available in some specialized photo scanners.
Bob Headrick, HP Expert
I am not an employee of HP, I am a volunteer posting here on my own time.
If your problem is solved please click the "Accept as Solution" button ------------V
If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V -
Help needed in getting the previous Quarter Data
Hello folks,
I have this procedure where i have to modify the current procedure in the following manner:
I need to get rid of the variables p_start and p_end so that i cannot see them in the crystal report and include the Frequency in the procedure to get the Data based on the Dates.
and Main requirement is" If the Frequency is Quarterly " it should get the previous quarter Data, if "Frequency is monthly" it should return the previous month data.Can anyone please let me know where shud i make changes. Am including the procedure for refernce. Any help is appreciated
Thanks a millioin,
CREATE OR REPLACE PROCEDURE hcsc_recovery_report_h(report_record in out cr_return_types.gen_cursor,
p_start string,
p_end string)
IS
v_startdate date;
v_enddate date;
BEGIN
v_startdate := to_date(p_start, 'YYYY/MM');
v_enddate := last_day(to_date(p_end, 'YYYY/MM'));
open report_record for
select --distinct r.recovery_id
r.event_id,
r.event_case_id,
c.client_id,
c.client_code,
c.client_name,
b.branch_group_code,
b.branch_group_description,
g.employer_group_code,
g.employer_group_name,
e.client_policy_identifier,
e.date_of_incident,
e.event_type_code,
sum(nvl(r.amount, 0)) as amt_received,
nvl(sum(case
when r.amount >= 0 then
rd.fees
else
rd.fees * (-1)
end),
0) as fees,
ec.close_date, *001* commented
(case
when ec.close_date <= to_date(to_char(v_enddate, 'MMDDRRRR') || '235959',
'MMDDRRRR HH24MISS') then
ec.close_date
else
null
end) as close_date, --*001* added
get_case_value(ec.event_id, ec.event_case_id, v_enddate) as case_value,
nvl(etl.fee_percent_flag, 'N') workmans_comp,
max(to_char(r.recovery_date, 'FMMonthYYYY')) Year_Month,
max(to_char(r.recovery_date, 'YYYYMM')) Y_M,
max(to_date(to_char(r.recovery_date, 'MMYYYY'), 'MM/YYYY')) date_MY
from recovery r,
recovery_detail rd,
event e,
client c,
branch_group b,
employer_group g,
event_case ec,
event_type_lookup etl
where r.event_id = e.event_id
and r.event_case_id = ec.event_case_id
and ec.event_id = e.event_id
and rd.recovery_id(+) = r.recovery_id
and r.recovery_date between v_startdate and
to_date(to_char(v_enddate, 'MMDDRRRR') || '235959',
'MMDDRRRR HH24MISS')
and e.client_id = c.client_id
and g.client_id = c.client_id
and b.client_id = c.client_id
and g.employer_group_id(+) = e.employer_group_id
and b.branch_group_id(+) = g.branch_group_id
and e.event_type_code = etl.event_type_code -- SST 130852 04/14/09
group by r.event_id,
r.event_case_id,
c.client_id,
c.client_code,
c.client_name,
b.branch_group_code,
b.branch_group_description,
g.employer_group_code,
g.employer_group_name,
e.client_policy_identifier,
e.date_of_incident,
e.event_type_code,
ec.close_date,
get_case_value(ec.event_id, ec.event_case_id, v_enddate),
nvl(etl.fee_percent_flag, 'N')
having sum(nvl(r.amount, 0)) <> 0
order by c.client_code,
b.branch_group_code,
g.employer_group_code,
r.event_case_id;
Edited by: user11961230 on Oct 20, 2009 9:02 AMuser11961230 wrote:
1. I want to get rid of the p_start and p_end. So how do i declare the v_startdate and v_enddate in the following part?
v_startdate := to_date(p_start, 'YYYY/MM');
v_enddate := last_day(to_date(p_end, 'YYYY/MM'));I'm not sure what you mean by "declare".
In PL/SQL, "declare" means state (at the beginning of a block) that there will be a certain variable with a certain name (such as v_startdate) and datatype (such as DATE). You're already declaring the variables v_startdate and v_enddate correctly, right before the BEGIN statement.
Declaring a variable is not the same as initializing it, that is, giving it a value for the first time. Your next question seems to be about initializing..
2. where exactly shud i include the logic that u have mentioned. sorry a dumb questionIn place of the two assignment statments that reference p_start and p_end.
3. This time am gonna use frequency instead of report_type so that i will get rid of the p_start and p_end from the procedure.Do you mean you want to pass an argument (called frequency) that tells if you want a quarterly or a mionthly report, just like the variable report_type in my example?
If so, replace report_type in my example with frequency.
I think you want something like this:
CREATE OR REPLACE PROCEDURE hcsc_recovery_report_h
( report_record in out cr_return_types.gen_cursor
, frequency IN VARCHAR2
IS
-- Declare local variables:
v_startdate date;
v_enddate date;
BEGIN
-- Initialize v_startdate and v_enddate, depending on frequency
IF frequency = 'QUARTERLY'
THEN
v_startdate := TRUNC ( ADD_MONTHS (SYSDATE, -3)
, 'Q'
v_enddate := TRUNC (SYSDATE, 'Q');
ELSIF frequency = 'MONTHLY'
THEN
v_startdate := TRUNC ( ADD_MONTHS (SYSDATE, -1)
, 'MM'
v_enddate := TRUNC (SYSDATE, 'MM');
END IF;
-- Subtract one second from v_enddate
v_enddate := v_enddate - ( 1
/ (24 * 60 * 60)
open report_record for
select --distinct r.recovery_id
r.event_id,
and r.recovery_date BETWEEN v_startdate
AND v_enddate
...When you post formatted text on this site (and code should always be formatted), type these 6 characters:
(small letters only, inside curly brackets) before and after sections of formatted text, to preserve spacing.
Edited by: Frank Kulash on Oct 20, 2009 2:37 PM
Changed query to use BETWEEN -
My phone has been smashed I need to get records of all my iMessages and texts from the last month. How do I get these?
Do you have a backup of your iPhone which contains these messages?
If so, you can restore a new iPhone from that backup during setup.
If not, the messages are gone.
Maybe you are looking for
-
Upgrading my extra site license to Logic 7?
I have 2 licenses for Logic 6 Plat that I'd like to upgrade to 7 Pro. I seem to recall previous upgrades to my additional license being lower cost through eMagic as it was considered a site license. I called the Apple Store sales line and they were p
-
Groupware Error 7008: Update lotus document failed
got some new infos: when I add an attachment to the activity (simple txt-file) it works. I figured it out by checking the exception stack trace, which lead to a NullPointerException in java.lang.NullPointerException at java.util.StringTokenizer.
-
Pg_upgrade fails for "$libdir/postgis-2.0"
Hello I was trying to update my system, when found that postgresql needs a little tweaking from 9.2 to 9.3. Following the instructions on the wiki, I ran pg_upgrade: [26] root@xxxlinux : /home/ognyan $ su - postgres -c 'pg_upgrade -b /opt/pgsql-9.2/b
-
Lens profile for Canon 28/1.8 - already installed in LR4?
Hmm, the explanation of lens profiles and how to add them is a little confusing. When I look here in Adobe's own list of supported lenses, my new "Canon EF 28mm f/2.8 IS USM" is listed there: http://helpx.adobe.com/x-productkb/multi/lens-profile-supp
-
IPhone 2.0.2 upgrade crashes
My new iPhone was fine but now has crashed with the upgrade. The upgrade was hung up with a message stating verifying iphone software that appears in iTunes. I then tried a restore but that has the same result. Now the only thing I see on my iPhone i