Please help me fix the error
I am not done with the program but I get errors that I am not sure how to fix them. I was wondering if anyone can help me solve the problem.
This program is a quiz program and has to handle 3 subjects. The user is able to select from these 3 categories. The program presents 3 questions and has to provide 4 option for each question. One would be to exit from the quiz. If the user responds to a question correctly, the program displays a positive feedback message. If the user responds incorrectly to the question, the program displays the correct answer. Exiting the questions menu returns the student to the topics menu. At the end of the quiz, the program displays the total number of correct and incorrect answers for each topic. Have a counter to count the correct answers.
Plese help me fix the problem with the code
import java.util.Scanner;
import java.io.*;
public class Test
int correctAnswer = 0;
String str;
String q;
Scanner scan = new Scanner (System.in);
System.out.println("key in m for Math category, s for Science category, a for Art category, or x to exit the test");
String str = scan.nextLine();
while (str != 'x')
if( str == m)
System.out.println (" What is the area if Triangle? a) l*W b)S^2 c)1/2 b * h");
q = scan.nextLine();
if (q == c)
System.out.println(" your answer is correct");
correctAnswer = correctAnswer+1
else System.out.println(" your answer is not correct");
System.out.println ("What is the premiter? a)The distance of all the sides b)the parallel distance c)The angle of a shape");
q = scan.nextLine();
if (q == a)
System.out.println(" your answer is correct");
correctAnswer = correctAnswer+1
else System.out.println(" your answer is not correct");
System.out.println ("What is a right angle? a)100 degree b)180 degree c)90 degree");
q = scan.nextLine();
if (q == c)
System.out.println(" your answer is correct");
correctAnswer = correctAnswer+1
else System.out.println(" your answer is not correct");
if( str == s)
System.out.println (" What is Diffusion? a)No movement between Molecules b)Movement of molecules high to low c)Movement of molecules high to low");
q = scan.nextLine();
if (q == c)
System.out.println(" your answer is correct");
correctAnswer = correctAnswer+1
else System.out.println(" your answer is not correct");
System.out.println ("What is the element sign for carbon dioxide? a)CO2 b)CO c)O2");
q = scan.nextLine();
if (q == a)
System.out.println(" your answer is correct");
correctAnswer = correctAnswer+1
else System.out.println(" your answer is not correct");
System.out.println ("What is the normal body temperature? a)98.5 b)99.0 c)102.1");
q = scan.nextLine();
if (q == a)
System.out.println(" your answer is correct");
correctAnswer = correctAnswer+1
else System.out.println(" your answer is not correct");
if( str == a)
System.out.println ("which artist painted the Monalisa? a)Michael Angelo b)Leonardo De Vinci c)Pablo Picasso ");
q = scan.nextLine();
if (q == a)
System.out.println(" your answer is correct");
correctAnswer = correctAnswer+1
else System.out.println(" your answer is not correct");
System.out.println ("which artist painted the Sister Chapple? a)Michael Angelo b)Leonardo De Vinci c)Pablo Picasso ");
q = scan.nextLine();
if (q == a)
System.out.println(" your answer is correct");
correctAnswer = correctAnswer+1
else System.out.println(" your answer is not correct");
System.out.println ("which artist paint the Monalisa? a)Michael Angelo b)Leonardo De Vinci c)Pablo Picasso");
q = scan.nextLine();
if (q == b)
System.out.println(" your answer is correct");
correctAnswer = correctAnswer+1
else System.out.println(" your answer is not correct");
}}
Here's a better version, fixing what I mentioned above. I haven't test compiled it, but it should work now. As a note, you might want to look into the ++ operator as well. And when you post code, enclose it in the "code" tags (see the code button above your posting). That makes it easier to read.
Anyway, here it is:
import java.util.Scanner;
import java.io.*;
public class Test {
int correctAnswer = 0;
String str;
String q;
Scanner scan = new Scanner (System.in);
static public void main(String [] args) {
System.out.println("key in m for Math category, s for Science category, a for Art category, or x to exit the test");
String str = scan.nextLine();
while (!str.equals("x")) {
if( str.equals("m")) {
System.out.println (" What is the area if Triangle? a) l*W b)S^2 c)1/2 b * h");
q = scan.nextLine();
if (q.equals("c")) {
System.out.println(" your answer is correct");
correctAnswer = correctAnswer+1;
} else {
System.out.println(" your answer is not correct");
System.out.println ("What is the premiter? a)The distance of all the sides b)the parallel distance c)The angle of a shape");
q = scan.nextLine();
if (q.equals("a")) {
System.out.println(" your answer is correct");
correctAnswer = correctAnswer+1;
} else {
System.out.println(" your answer is not correct");
System.out.println ("What is a right angle? a)100 degree b)180 degree c)90 degree");
q = scan.nextLine();
if (q.equals("c")) {
System.out.println(" your answer is correct");
correctAnswer = correctAnswer+1;
} else { System.out.println(" your answer is not correct");
if( str.equals("s")) {
System.out.println (" What is Diffusion? a)No movement between Molecules b)Movement of molecules high to low c)Movement of molecules high to low");
q = scan.nextLine();
if (q.equals("c")) {
System.out.println(" your answer is correct");
correctAnswer = correctAnswer+1;
} else {
System.out.println(" your answer is not correct");
System.out.println ("What is the element sign for carbon dioxide? a)CO2 b)CO c)O2");
q = scan.nextLine();
if (q.equals("a") {
System.out.println(" your answer is correct");
correctAnswer = correctAnswer+1;
} else {
System.out.println(" your answer is not correct");
System.out.println ("What is the normal body temperature? a)98.5 b)99.0 c)102.1");
q = scan.nextLine();
if (q.equals("a")) {
System.out.println(" your answer is correct");
correctAnswer = correctAnswer+1;
} else {
System.out.println(" your answer is not correct");
if( str.equals("a")) {
System.out.println ("which artist painted the Monalisa? a)Michael Angelo b)Leonardo De Vinci c)Pablo Picasso ");
q = scan.nextLine();
if (q.equals("a")) {
System.out.println(" your answer is correct");
correctAnswer = correctAnswer+1;
} else {
System.out.println(" your answer is not correct");
System.out.println ("which artist painted the Sister Chapple? a)Michael Angelo b)Leonardo De Vinci c)Pablo Picasso ");
q = scan.nextLine();
if (q.equals("a")) {
System.out.println(" your answer is correct");
correctAnswer = correctAnswer+1;
} else {
System.out.println(" your answer is not correct");
System.out.println ("which artist paint the Monalisa? a)Michael Angelo b)Leonardo De Vinci c)Pablo Picasso");
q = scan.nextLine();
if (q.equals("b")) {
System.out.println(" your answer is correct");
correctAnswer = correctAnswer+1;
} else {
System.out.println(" your answer is not correct");
}
Similar Messages
-
Please help me find the error in the annex VI,access
Hello, everyone, this is a program about ACCESS, please help me find the error in the annex VI, why do I always run time error. Thank you very much.
Attachments:
write access test.vi 22 KBThank you for your reply, I have an attachment process map, could you help me change it, I just want to put my number in the array can continue to update the database. And I want to create a table.
this is my msn :[email protected]
Waiting for your reply on line
谢谢你的回复,我的附件中有程序图,能不能帮我改一下,我只是希望,把我的数组中的数能够持续的更新在数据库中。并且创建一个我想要的表。 -
Hi All,
could anybody help in fixing the following error.
C:\bea\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\myserver_SAISTARS_SAISTARS\jsp_servlet\__listproject.java:1071: cannot resolve symbol
probably occurred due to an error in /listProject.jsp line 221:
<pg:pager maxIndexPages="<%=10%>" maxPageItems="<%=10%>">
Thanks and Regards,
shaikHi abinash,
Not enough information!
Check the logs for errors and post the here.
regards
Juan -
Please Help me with the error P6
I recently installed the Primavera P6 but when I started
using it for the first time I get the following error
message :
C:\Program files\Primavera\Project
Management\Languages\comCaptions.en-us
<br
/>Please help me with this error ;
ThanksHi,
This sounds like an issue
that might best be handled by support. You can find
information on contacting support here:<br
/><br
/>http://www.primavera.com/customer/support.asp<br
/>
Thanks,
Sean -
Please help me fix the bug relate to x$kzsro
Dear everybody
I'm new to oracle. I'm using Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 in window vista.
recently, i try to run this code :
select u.name, o.obj#, o.name,
decode(o.type#, 2, 'TABLE', 4, 'VIEW')
from sys.user$ u, sys.obj$ o
where o.owner# = u.user#
and o.linkname is null
and o.type# in (2, 4)
and (o.owner# = uid
or
obj# in (select obj#
from sys.objauth$
where grantee# in (select kzsrorol from x$kzsro)
or grantee#=uid
and encounter error :
Error starting at line 1 in command:
select u.name, o.obj#, o.name,
decode(o.type#, 2, 'TABLE', 4, 'VIEW')
from sys.user$ u, sys.obj$ o
where o.owner# = u.user#
and o.linkname is null
and o.type# in (2, 4)
and (o.owner# = uid
or
obj# in (select obj#
from sys.objauth$
where grantee# in (select kzsrorol from x$kzsro)
or grantee#=uid
Error at Command Line:11 Column:56
Error report:
SQL Error: ORA-00942: table or view does not exist
00942. 00000 - "table or view does not exist"
*Cause:
*Action:
this error relate to table or view x$kzsro in oracle 10.2
i can't fix this bug.so please help me.
thanksx$kzsro is a fixed table. You can select from fixed tables only if you are connected as sysdba. You can't grant select on a fixed table to a user:
SQL> grant select on sys.x$kzsro to scott;
grant select on sys.x$kzsro to scott
ERROR at line 1:
ORA-02030: can only select from fixed tables/views
SQL> What you could do is as k your DBA to:
SQL> create view v$kzsro as select * from x$kzsro;
View created.
SQL> grant select on v$kzsro to scott
2 /
Grant succeeded.
SQL> connect scott
Enter password: *****
Connected.
SQL> select * from sys.x$kzsro;
select * from sys.x$kzsro
ERROR at line 1:
ORA-00942: table or view does not exist
SQL> select * from sys.v$kzsro;
ADDR INDX INST_ID KZSROROL
00000000 0 1 1
00000008 1 1 54
00000010 2 1 2
00000018 3 1 3
00000020 4 1 4
00000028 5 1 6
00000030 6 1 20
00000038 7 1 7
00000040 8 1 8
00000048 9 1 9
00000050 10 1 10
ADDR INDX INST_ID KZSROROL
00000058 11 1 13
00000060 12 1 18
00000068 13 1 26
00000070 14 1 32
00000078 15 1 33
00000080 16 1 40
00000088 17 1 42
00000090 18 1 48
00000098 19 1 80
000000A0 20 1 82
21 rows selected.
SQL> SY.
P.S. If you are new to oracle starting with sys owned tables and fixed tables isn't the best choice. -
Please help me with the error ASAP
I am trying to write an ABAP statement for the below requirement.
Function has two import parameters. 1. key and 2. date.
Export parameter: export_rec like TAB.
Req: I need to select a record from a table where key = input parameter and input date lies between the from and to date fields in the table. (since table is time dependent).
EXPORT_REC like TAB,
I_T_TAB like TAB OCCURS 0 WITH HEADER LINE.
SELECT SINGLE * FROM I_T_TAB INTO EXPORT_REC WHERE KEY = IMPORT_ PARAMETER AND IMPORT_PARAM_DATE BETWEEN FROM_DATE AND TO_DATE.
But, I am getting errors. It says the I_T_TAB is not defined in the Abap dictionary as table, view or projection.
I defined it as an internal table. But, even then I am getting this error.
Can anyone please help me out with this issue,
Thanks,
Regards,
aarthi
[email protected]Hi aarthi,
SELECT can be used to fetch data only from database tables/views. in your case you used SELECT from an INTERNAL table,which is not allowed.
SELECT *
FROM <DBTABLE NAME>
INTO TABLE EXPORT_REC
WHERE KEY = IMPORT_ PARAMETER AND
IMPORT_PARAM_DATE BETWEEN FROM_DATE AND TO_DATE.
HERE Instead of <DBTABLE NAME>,you have to give your Database table,which stores these values.
then your data will comes into EXPORT_REC.
and remember to give EXPORT_REC in TABLES parameters of that FUNCTION MODULE and give associated Type for that.
Regards
Srikanth -
hi friends,
I am new to J2ME, i have cofigured eclipseME with J2ME wireless Toolkit when i debug an alert shows Error exist in required projects continue launch if we select yes then the emulator pops up and disappear and then another message box alerts as couldn't connect to virtual machine and goes and the below mentioned message is displayed on the console output.
Warning: Running JAM, Ignoring all other options (but "-Xheapsize", and OTA flags if provided)
Running with storage root MediaControlSkin
** Error installing suite (36): Corrupt JAR, error while reading: com/TestMidlet.class
Execution completed.
192983 bytecodes executed
4 thread switches
738 classes in the system (including system classes)
1182 dynamic objects allocated (51152 bytes)
1 garbage collections (0 bytes collected)
Please help me .
Thanks in advancehi friends,
I am new to J2ME, i have cofigured eclipseME with
J2ME wireless Toolkit when i debug an alert shows
Error exist in required projects continue
launch if we select yes then the emulator pops
up and disappear and then another message box alerts
as couldn't connect to virtual machine and
goes and the below mentioned message is displayed on
the console output.dear frien dif error exists how can u launch it
just go show view--> problems in ecplise menu
and c what's the problem -
Please help in finding the error in this code
Dear Friends,
I am trying to make the value of 'Shift' on the basis of BLDAT CPUDT & CPUTM of MKPF but I am doing something wrong. Kindly have a look at the following code, especially the IF..ELSEIF section and help me in finding the error.
Regards,
Alok.
SELECT MBLNR MJAHR BKTXT BUDAT BLDAT CPUDT CPUTM USNAM
INTO CORRESPONDING FIELDS OF TABLE I_MKPF1
FROM MKPF
WHERE
BUDAT EQ S_BUDAT AND
TCODE2 EQ 'MFBF'.
********************************************************ALOK 01.02.07
LOOP AT I_MKPF1.
I_MKPF-MBLNR = I_MKPF1-MBLNR.
I_MKPF-MJAHR = I_MKPF1-MJAHR.
I_MKPF-BKTXT = I_MKPF1-BKTXT.
I_MKPF-BUDAT = I_MKPF1-BUDAT.
I_MKPF-BLDAT = I_MKPF1-BLDAT.
I_MKPF-CPUDT = I_MKPF1-CPUDT.
I_MKPF-CPUTM = I_MKPF1-CPUTM.
I_MKPF-USNAM = I_MKPF1-USNAM.
IF ( ( I_MKPF1-CPUTM >= '090000' AND I_MKPF1-CPUTM < '160000' )
AND ( I_MKPF1-BLDAT = I_MKPF1-CPUDT ) ).
I_MKPF-SHIFT = 'A'.
ELSEIF ( ( I_MKPF1-CPUTM >= '090000' AND I_MKPF1-CPUTM <= '110000' )
AND ( I_MKPF1-BLDAT <> I_MKPF1-CPUDT ) ).
I_MKPF-SHIFT = 'C'.
ELSEIF ( ( I_MKPF1-CPUTM >= '160000' AND I_MKPF1-CPUTM < '000000' )
AND ( I_MKPF1-BLDAT = I_MKPF1-CPUDT ) ).
I_MKPF-SHIFT = 'B'.
ENDIF.
APPEND I_MKPF.
CLEAR I_MKPF.
ENDLOOP.Hi.
IF ( I_MKPF1-CPUTM >= '090000' AND I_MKPF1-CPUTM < '160000' )
AND ( I_MKPF1-BLDAT = I_MKPF1-CPUDT ) .
I_MKPF-SHIFT = 'A'.
ELSEIF ( I_MKPF1-CPUTM >= '090000' AND I_MKPF1-CPUTM <= '110000' )
AND ( I_MKPF1-BLDAT <> I_MKPF1-CPUDT ) .
I_MKPF-SHIFT = 'C'.
ELSEIF ( I_MKPF1-CPUTM >= '160000' AND I_MKPF1-CPUTM < '000000' )
AND ( I_MKPF1-BLDAT = I_MKPF1-CPUDT ) .
I_MKPF-SHIFT = 'B'.
ENDIF.
Try the above code ..
Regards
Sudheer -
iPhone 4s Wifi problem, After using the device of 7 month. wifi is not working. BEFORE WAS WORKING FINE and now wifi is not able to identify. I tried all the possibilities to fix the wifi, such as resetting network, restart the phone, restore from iTune and setup as new phone, but the problem remain same. turning on the wifi can't recognise any network. any other idiea to fix the wifi of iPhone. Thanks
Hello Mohunkrisna,
Welcome to the Apple Support Communities. If you are having issues with the your iPhone not connecting to Wi-Fi networks, the following will provide some assistance. Now you have done most of the troubleshooting, but there are a few more steps to try in the article.
iOS: Troubleshooting Wi-Fi networks and connections
http://support.apple.com/kb/ts1398
Regards,
-Norm G. -
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BankApplication
class Program
static void Main(string[] args)
String AccountName = " ";
float Balance = 0f;
Boolean quit = false;
int userChoice;
Console.WriteLine("please Chose what to do:");
Console.WriteLine("1. Create Acount");
Console.WriteLine("2. Deposit cash");
Console.WriteLine("3. Withdraw Cash");
Console.WriteLine("4. Chech balance");
Console.WriteLine("or 0. to quit");
userChoice = Console.Read();
switch(userChoice)
case 1:
string name;
Console.WriteLine("please enter account name");
name = Console.ReadLine();
if (name==name)
Console.WriteLine("name alredy exist");
else
AccountName += name;
Console.WriteLine("Account Name ", name);
break;
case 2:
float amount;
Console.WriteLine("Amount to deposit: ");
amount = Console.Read();
if (amount <= 0){
Console.WriteLine("Can't deposit nonpositive amount.");
else {
Balance += amount;
Console.WriteLine("R" + amount + " has been deposited.");
break;
case 3:
Console.WriteLine("Amount to withdraw: ");
amount = Console.Read();
if (amount <= 0 || amount > Balance)
Console.WriteLine("Withdrawal can't be completed.");
else {
Balance -= amount;
Console.WriteLine("R" + amount + " has been withdrawn.");
break;
case 4:
Console.WriteLine("Your balance: R" + Balance);
break;
case 0:
quit = true;
break;
default:
Console.WriteLine("Wrong choice.");
break;
while(!quit);
Console.WriteLine("BIY!");In addition to the other good advice already posted, I suggest that you NOT us the float datatype for the balance, as you may encounter rounding errors.
Use the decimal datatype instead.
Instead of:
float Balance
= 0f;
use:
decimal Balance = 0d;
Read here:
https://msdn.microsoft.com/en-us/library/364x0z75.aspx?f=255&MSPPError=-2147217396
"the decimal type has more precision and a smaller range, which makes it appropriate for financial and monetary calculations." -
Please Help me fix the css for font colors in this menu!
I have finally figured out how to make my drop down menu work, but I need some help troubleshooting this code. I have fiddled with the code for several hours and have still been unable to fix it. My issue is that I have been unable to distinguish between the top level links and the dropdown menu links. I want the dropdown menu links to be a light cream color. However, they are being displayed as the same color as the hover color.
Here is the webpage loaded online: www.theriveroverlook.com/Trial.html
If you hover over "Accomodations", you will see the issue. The green color of the hovered links is also being displayed in the lower level menu. This makes them unable to be read easily and presents a problem.
Here is applicable css code:
body {
width:1170px;
height:1300px;
background-image:url(BackgroundImage.jpg);
background-repeat:no-repeat;
padding-left:0px;
padding-right:0px;
padding-top:0px;
/* BEGIN HORIZONTAL DROP-MENU */
#navcontainer {
margin-left:0px;
padding-left:0px;
margin-top:200px;
background-image:url(MenuBarFINAL.png);
background-repeat: no-repeat;
height: 192px;
width:1170;
nav {
font-size:22px;
font:"goudy-bookletter-1911";
font-weight:500;
text-align: left;
padding-top: 65px;
margin-left:0px;
padding-left:0px;
nav ul ul {
display: none;
nav ul li:hover > ul {
display: block;
nav ul {
margin-left:0px;
padding: 0 0px;
list-style: none;
display: inline-table;
/*Top level nav spacing, listing*/
nav ul li {
float: left;
margin-left:0px;
nav ul li:hover a {color:#060;}
nav ul li:active a {color:#300;}
nav ul li:visited a {color:#900;}
/*top level text display*/
nav ul li a {
display:inline;
text-decoration: none;
color:#55390e;
ul.accomdrop a {
color:#fbf1cc;
#accomdrop {
background-image:url(dropdownpng.png);
margin-top: 13px;
width: 155px;
padding-bottom: 69px;
background-repeat:no-repeat;
nav ul ul li {
font-size:18px;
font-weight: 100;
float: none;
color:#e4ddc8;
#home {
margin-left: 75px;
#accom {
margin-left: 35px;
width: 120 px;
padding-right: 25px;
#holston {
padding-top: 10px;
padding-bottom:10px;
padding-left: 17px;
word-wrap:normal;
text-align:center;
width:120px;
#tennessee {
padding-top: 10px;
padding-bottom: 15px;
padding-left:17px;
word-wrap: normal;
text-align:center;
width: 120px;
#french {
padding-top: 8px;
padding-bottom: 10px;
padding-left: 17px;
word-wrap:normal;
text-align:center;
width: 120px;
#amenities {
margin-left: 15px;
width: 110px;
#packages {
margin-left: 285px;
width:120px;
#packdrop {
background-image:url(dropdownpng2.png);
margin-left:-35px;
margin-top: 13px;
width: 155px;
padding-bottom: 80px;
background-repeat:no-repeat;
#romance {
padding-top: 5px;
padding-bottom:8px;
padding-left: 2px;
word-wrap:normal;
text-align:center;
width:150px;
#golf {
padding-top: 15px;
padding-bottom:12px;
padding-left:2px;
word-wrap:normal;
text-align:center;
width: 150px;
#photo {
padding-top: 5px;
padding-bottom:13px;
padding-left:2px;
word-wrap:normal;
text-align:center;
width:150px;
#cook {padding-top: 7px;
padding-bottom:10px;
padding-left:2px;
word-wrap:normal;
text-align:center;
width:150px;
#fish {padding-top: 10px;
padding-bottom:10px;
padding-left:2px;
word-wrap:normal;
text-align:center;
width:150px;
#directions {
margin-left: 20px;
I really appreciate any help you can give me! Sometimes, you stare at something so long that you can't see the obvious problem before you!
JaimeSee if this helps:
http://alt-web.com/DEMOS/CSS-Multi-colored-drop-menu.shtml
Nancy O. -
Problem description:
I upgraded to Yosemite recently. Now my computer acts like it has a virus although my virus checker says it is clean. It is slow, freezes all the time, I have to turn off my computer to get it to work again. I don’t like the new Yosemite.
EtreCheck version: 2.0.7 (93)
Report generated October 30, 2014 at 3:57:56 AM CDT
Hardware Information: ℹ️
MacBook Pro (15-inch, Late 2011) (Verified)
MacBook Pro - model: MacBookPro8,2
1 2.2 GHz Intel Core i7 CPU: 4-core
4 GB RAM Upgradeable
BANK 0/DIMM0
2 GB DDR3 1333 MHz ok
BANK 1/DIMM0
2 GB DDR3 1333 MHz ok
Bluetooth: Old - Handoff/Airdrop2 not supported
Wireless: en1: 802.11 a/b/g/n
Video Information: ℹ️
Intel HD Graphics 3000 - VRAM: 384 MB
Color LCD 1440 x 900
AMD Radeon HD 6750M - VRAM: 512 MB
System Software: ℹ️
OS X 10.10 (14A389) - Uptime: 0:26:55
Disk Information: ℹ️
APPLE HDD HTS547550A9E384 disk0 : (500.11 GB)
S.M.A.R.T. Status: Verified
EFI (disk0s1) <not mounted> : 210 MB
Recovery HD (disk0s3) <not mounted> [Recovery]: 650 MB
Macintosh HD (disk1) / [Startup]: 498.88 GB (434.65 GB free)
Core Storage: disk0s2 499.25 GB Online
MATSHITADVD-R UJ-8A8
USB Information: ℹ️
Apple Inc. FaceTime HD Camera (Built-in)
Apple Inc. Apple Internal Keyboard / Trackpad
Apple Inc. BRCM2070 Hub
Apple Inc. Bluetooth USB Host Controller
Apple Computer, Inc. IR Receiver
Thunderbolt Information: ℹ️
Apple Inc. thunderbolt_bus
Gatekeeper: ℹ️
Mac App Store and identified developers
Kernel Extensions: ℹ️
/System/Library/Extensions
[not loaded] com.devguru.driver.SamsungComposite (1.4.12 - SDK 10.6) Support
/System/Library/Extensions/ssuddrv.kext/Contents/PlugIns
[not loaded] com.devguru.driver.SamsungACMControl (1.4.12 - SDK 10.6) Support
[not loaded] com.devguru.driver.SamsungACMData (1.4.12 - SDK 10.6) Support
[not loaded] com.devguru.driver.SamsungMTP (1.4.12 - SDK 10.5) Support
[not loaded] com.devguru.driver.SamsungSerial (1.4.12 - SDK 10.6) Support
Launch Agents: ℹ️
[loaded] com.google.keystone.agent.plist Support
[loaded] com.trendmicro.itis.dca.plist Support
[running] com.trendmicro.itis.uimgmt.agent.plist Support
[running] com.trusteer.rapport.rapportd.plist Support
Launch Daemons: ℹ️
[loaded] com.adobe.fpsaud.plist Support
[loaded] com.google.keystone.daemon.plist Support
[loaded] com.microsoft.office.licensing.helper.plist Support
[running] com.trendmicro.icore.av.plist Support
[running] com.trendmicro.icore.main.plist Support
[running] com.trendmicro.icore.wp.plist Support
[running] com.trendmicro.itis.plugin.plist Support
[running] com.trusteer.rooks.rooksd.plist Support
[running] com.zeobit.MacKeeper.plugin.AntiTheft.daemon.plist Support
User Launch Agents: ℹ️
[loaded] com.adobe.ARM.[...].plist Support
[running] com.amazon.cloud-player.plist Support
[failed] com.facebook.videochat.[redacted].plist Support
[loaded] com.trendmicro.itis.uninstaller.plist Support
[running] com.zeobit.MacKeeper.Helper.plist Support
User Login Items: ℹ️
Flux Application (/Applications/Flux.app)
iTunesHelper ApplicationHidden (/Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)
Trend Micro Titanium Application (/Applications/TrendMicro.localized/iTIS.app)
Dropbox Application (/Applications/Dropbox.app)
AdobeResourceSynchronizer ApplicationHidden (/Applications/Adobe Reader.app/Contents/Support/AdobeResourceSynchronizer.app)
Genieo Application (/Incompatible Software/Genieo.app)
KiesViaWiFiAgent ApplicationHidden (/Applications/Kies.app/Contents/MacOS/KiesViaWiFiAgent.app)
KiesAgent ApplicationHidden (/Applications/Kies.app/Contents/MacOS/KiesAgent.app)
fuspredownloader ApplicationHidden (/Users/[redacted]/Library/Application Support/.FUS/fuspredownloader.app)
Internet Plug-ins: ℹ️
o1dbrowserplugin: Version: 5.38.5.0 - SDK 10.8 Support
Default Browser: Version: 600 - SDK 10.10
Flip4Mac WMV Plugin: Version: 3.1.0.24 - SDK 10.8 Support
AdobePDFViewerNPAPI: Version: 11.0.09 - SDK 10.6 Support
FlashPlayer-10.6: Version: 15.0.0.189 - SDK 10.6 Support
Silverlight: Version: 5.1.10411.0 - SDK 10.6 Support
Flash Player: Version: 15.0.0.189 - SDK 10.6 Support
QuickTime Plugin: Version: 7.7.3
googletalkbrowserplugin: Version: 5.38.5.0 - SDK 10.8 Support
SharePointBrowserPlugin: Version: 14.4.5 - SDK 10.6 Support
AdobePDFViewer: Version: 11.0.09 - SDK 10.6 Support
CouponPrinter-FireFox_v2: Version: Version 1.1.7 - SDK 10.5 Support
JavaAppletPlugin: Version: 15.0.0 - SDK 10.10 Check version
User Internet Plug-ins: ℹ️
WebEx64: Version: 1.0 - SDK 10.6 Support
NPRoblox: Version: 1, 2, 8, 25 - SDK 10.9 Support
Safari Extensions: ℹ️
Omnibar (Disabled)
3rd Party Preference Panes: ℹ️
Flash Player Support
Flip4Mac WMV Support
Trusteer Endpoint Protection Support
Time Machine: ℹ️
Time Machine not configured!
Top Processes by CPU: ℹ️
14% WindowServer
5% Safari
4% Dropbox
2% hidd
1% lsregister
Top Processes by Memory: ℹ️
172 MB Safari
142 MB softwareupdated
90 MB rapportd
66 MB Dropbox
64 MB com.apple.WebKit.WebContent
Virtual Memory Information: ℹ️
33 MB Free RAM
1.40 GB Active RAM
1.38 GB Inactive RAM
1.08 GB Wired RAM
4.82 GB Page-ins
237 MB Page-outsThank you all for the help. My mac still freezes. I've deleted what you suggested. I hope it did it right. Can you check and help me out?
Also I went through the list and saw this
MATSHITADVD-R UJ-8A8
Could this be the reason why my CD/DVD player quit working because it's crap?
thanks
Problem description:
My macbook pro still freezes at times and i have to power it off and on again after downloading Yosemite. This never happened prior. This is my second time running etresoft. I deleted the mackeeper as suggested. What else is going on?
EtreCheck version: 2.0.11 (98)
Report generated November 4, 2014 at 10:26:26 AM CST
Hardware Information: ℹ️
MacBook Pro (15-inch, Late 2011) (Verified)
MacBook Pro - model: MacBookPro8,2
1 2.2 GHz Intel Core i7 CPU: 4-core
4 GB RAM Upgradeable
BANK 0/DIMM0
2 GB DDR3 1333 MHz ok
BANK 1/DIMM0
2 GB DDR3 1333 MHz ok
Bluetooth: Old - Handoff/Airdrop2 not supported
Wireless: en1: 802.11 a/b/g/n
Video Information: ℹ️
Intel HD Graphics 3000 - VRAM: 384 MB
Color LCD 1440 x 900
AMD Radeon HD 6750M - VRAM: 512 MB
System Software: ℹ️
OS X 10.10 (14A389) - Uptime: 2 days 18:23:38
Disk Information: ℹ️
APPLE HDD HTS547550A9E384 disk0 : (500.11 GB)
S.M.A.R.T. Status: Verified
EFI (disk0s1) <not mounted> : 210 MB
Recovery HD (disk0s3) <not mounted> [Recovery]: 650 MB
Macintosh HD (disk1) / [Startup]: 498.88 GB (433.64 GB free)
Core Storage: disk0s2 499.25 GB Online
MATSHITADVD-R UJ-8A8
USB Information: ℹ️
Apple Inc. FaceTime HD Camera (Built-in)
Apple Inc. BRCM2070 Hub
Apple Inc. Bluetooth USB Host Controller
Apple Inc. Apple Internal Keyboard / Trackpad
Apple Computer, Inc. IR Receiver
Thunderbolt Information: ℹ️
Apple Inc. thunderbolt_bus
Gatekeeper: ℹ️
Mac App Store and identified developers
Kernel Extensions: ℹ️
/Applications/SmartSwitch.app
[not loaded] com.devguru.driver.SamsungACMControl (1.4.12 - SDK 10.6) Support
[not loaded] com.devguru.driver.SamsungACMData (1.4.12 - SDK 10.6) Support
[not loaded] com.devguru.driver.SamsungComposite (1.4.12 - SDK 10.6) Support
[not loaded] com.devguru.driver.SamsungMTP (1.4.12 - SDK 10.5) Support
[not loaded] com.devguru.driver.SamsungSerial (1.4.12 - SDK 10.6) Support
Problem System Launch Agents: ℹ️
[failed] com.apple.CallHistoryPluginHelper.plist
[failed] com.apple.CallHistorySyncHelper.plist
[failed] com.apple.cmfsyncagent.plist
[failed] com.apple.coreservices.appleid.authentication.plist
[failed] com.apple.icloud.fmfd.plist
[failed] com.apple.rcd.plist
[failed] com.apple.spindump_agent.plist
[failed] com.apple.telephonyutilities.callservicesd.plist
[failed] com.apple.warmd_agent.plist
Problem System Launch Daemons: ℹ️
[failed] com.apple.awdd.plist
[failed] com.apple.ctkd.plist
[failed] com.apple.ifdreader.plist
[failed] com.apple.nehelper.plist
[failed] com.apple.periodic-weekly.plist
[failed] com.apple.tccd.system.plist
[failed] com.apple.wdhelper.plist
Launch Agents: ℹ️
[loaded] com.google.keystone.agent.plist Support
[loaded] com.trendmicro.itis.dca.plist Support
[running] com.trendmicro.itis.uimgmt.agent.plist Support
[running] com.trusteer.rapport.rapportd.plist Support
Launch Daemons: ℹ️
[loaded] com.adobe.fpsaud.plist Support
[loaded] com.google.keystone.daemon.plist Support
[loaded] com.microsoft.office.licensing.helper.plist Support
[running] com.trendmicro.icore.av.plist Support
[running] com.trendmicro.icore.main.plist Support
[running] com.trendmicro.icore.wp.plist Support
[running] com.trendmicro.itis.plugin.plist Support
[running] com.trusteer.rooks.rooksd.plist Support
User Launch Agents: ℹ️
[loaded] com.adobe.ARM.[...].plist Support
[running] com.amazon.cloud-player.plist Support
[failed] com.facebook.videochat.[redacted].plist Support
[loaded] com.trendmicro.itis.uninstaller.plist Support
User Login Items: ℹ️
Flux Application (/Applications/Flux.app)
iTunesHelper ApplicationHidden (/Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)
Trend Micro Titanium Application (/Applications/TrendMicro.localized/iTIS.app)
Dropbox Application (/Applications/Dropbox.app)
AdobeResourceSynchronizer ApplicationHidden (/Applications/Adobe Reader.app/Contents/Support/AdobeResourceSynchronizer.app)
KiesAgent ApplicationHidden (/Applications/Kies.app/Contents/MacOS/KiesAgent.app)
fuspredownloader ApplicationHidden (/Users/[redacted]/Library/Application Support/.FUS/fuspredownloader.app)
KiesViaWiFiAgent ApplicationHidden (/Applications/Kies.app/Contents/MacOS/KiesViaWiFiAgent.app)
Internet Plug-ins: ℹ️
o1dbrowserplugin: Version: 5.38.5.0 - SDK 10.8 Support
Default Browser: Version: 600 - SDK 10.10
Flip4Mac WMV Plugin: Version: 3.1.0.24 - SDK 10.8 Support
AdobePDFViewerNPAPI: Version: 11.0.09 - SDK 10.6 Support
FlashPlayer-10.6: Version: 15.0.0.189 - SDK 10.6 Support
Silverlight: Version: 5.1.10411.0 - SDK 10.6 Support
Flash Player: Version: 15.0.0.189 - SDK 10.6 Support
QuickTime Plugin: Version: 7.7.3
googletalkbrowserplugin: Version: 5.38.5.0 - SDK 10.8 Support
SharePointBrowserPlugin: Version: 14.4.5 - SDK 10.6 Support
AdobePDFViewer: Version: 11.0.09 - SDK 10.6 Support
CouponPrinter-FireFox_v2: Version: Version 1.1.7 - SDK 10.5 Support
JavaAppletPlugin: Version: 15.0.0 - SDK 10.10 Check version
User Internet Plug-ins: ℹ️
WebEx64: Version: 1.0 - SDK 10.6 Support
NPRoblox: Version: 1, 2, 8, 25 - SDK 10.9 Support
3rd Party Preference Panes: ℹ️
Flash Player Support
Flip4Mac WMV Support
Trusteer Endpoint Protection Support
Time Machine: ℹ️
Time Machine not configured!
Top Processes by CPU: ℹ️
9% Safari
6% WindowServer
5% com.apple.WebKit.Plugin.64
4% hidd
0% authd
Top Processes by Memory: ℹ️
172 MB Safari
146 MB com.apple.WebKit.Plugin.64
56 MB WindowServer
52 MB iTunes
47 MB com.apple.WebKit.WebContent
Virtual Memory Information: ℹ️
64 MB Free RAM
1.13 GB Active RAM
1.07 GB Inactive RAM
1.10 GB Wired RAM
23.40 GB Page-ins
1.55 GB Page-outs -
Please help me with the error of Java related to UNIX
Can you help me with my code?
I wrote a Java program and ran it in gdb, the debugger said that :
(gdb) run handhelditems 1 1000
Starting program: /home/wqq/crawl/handhelditems/crawl_what_i_want handhelditems 1 1000
[Thread debugging using libthread_db enabled]
[New Thread -1208232256 (LWP 3796)]
[New Thread -1210332272 (LWP 3799)]
[New Thread -1220822128 (LWP 3800)]
[New Thread -1231311984 (LWP 3801)]
[New Thread -1243206768 (LWP 3802)]
[New Thread -1253696624 (LWP 3803)]
[New Thread -1264186480 (LWP 3804)]
[New Thread -1274676336 (LWP 3805)]
[New Thread -1285166192 (LWP 3806)]
[New Thread -1295656048 (LWP 3807)]
[New Thread -1306145904 (LWP 3808)]
[New Thread -1316635760 (LWP 3809)]
Program received signal SIGPWR, Power fail/restart.
[Switching to Thread -1316635760 (LWP 3809)]
0x00196402 in __kernel_vsyscall ()
(gdb)
the crawl_what_i_want.java is :
public class crawl_what_i_want {
public static void main(String[] args){
if(args.length!=3){
System.out.println("Usage: java crawl_html [site name] [start at] [end at]");
else
String v1 = args[0];
int v2 = Integer.parseInt(args[1]);
int v3 = Integer.parseInt(args[2]);
thread thread0 = new thread(v1,v2,v3,0);
thread thread1 = new thread(v1,v2,v3,1);
thread thread2 = new thread(v1,v2,v3,2);
thread thread3 = new thread(v1,v2,v3,3);
thread thread4 = new thread(v1,v2,v3,4);
thread thread5 = new thread(v1,v2,v3,5);
thread thread6 = new thread(v1,v2,v3,6);
thread thread7 = new thread(v1,v2,v3,7);
thread thread8 = new thread(v1,v2,v3,8);
thread thread9 = new thread(v1,v2,v3,9);
thread0.start();
thread1.start();
thread2.start();
thread3.start();
thread4.start();
thread5.start();
thread6.start();
thread7.start();
thread8.start();
thread9.start();
the thread.java is :
import java.io.*;
import java.sql.*;
import java.util.*;
import java.net.*;
public class thread extends Thread
String site_n;
int s_at;
int e_at;
int for_id;
thread(String site_n,int s_at,int e_at,int for_id){
this.site_n = site_n;
this.s_at = s_at;
this.e_at = e_at;
this.for_id = for_id;
public synchronized void run() {
String site = site_n;
int fornum = for_id;
int start = s_at;
int end = e_at;
//String site_name = "http://www."+site+".com";
ArrayList url_list = new ArrayList();
ArrayList url_id_list = new ArrayList();
try{
Class.forName("com.mysql.jdbc.Driver").newInstance();
String getconn = "jdbc:mysql://localhost/url_set_"+site+"?user=xxxx&password=xxxx";
Connection conn = DriverManager.getConnection(getconn);
PreparedStatement stmt = conn.prepareStatement("");
ResultSet rs = null;
stmt = conn.prepareStatement("select url,url_id from urls where url_id>=? and url_id<=?");
stmt.setInt(1,start);
stmt.setInt(2,end);
rs = stmt.executeQuery();
while(rs.next())
url_id_list.add(rs.getString(2));
url_list.add(rs.getString(1));
if(rs!=null)
rs.close();
stmt.close();
conn.close();
catch(Exception e){
e.printStackTrace();
try{
InputStream in = null;
InputStreamReader rd = null;
BufferedReader br = null;
for(int i=fornum; i<url_list.size(); i=i+10){
String save_dir = "./" + String.valueOf(Integer.parseInt(url_id_list.get(i).toString())/10000) + "/" ;
try{
if(!(new File(save_dir).isDirectory()))
new File(save_dir).mkdir();
catch(Exception exp){
exp.printStackTrace();
String html = "";
URL this_url = new URL(url_list.get(i).toString());
in = this_url.openConnection().getInputStream();
rd = new InputStreamReader(in);
br=new BufferedReader(rd);
String line = br.readLine();
int imgmark = 0 ;
while(line != null){
html += line + (char)13;
// get image //
if(line.indexOf("product image(s) bof")>0)
imgmark = 1;
if(line.indexOf("product image(s) eof")>0)
imgmark = 0;
if(imgmark == 1 && line.indexOf("img src")>=0)
int bofimg = line.indexOf("http://www.unix.com/images/");
int eofimg = line.indexOf("jpg\"")+3;
if(eofimg>bofimg){
String imgURL = "http://www."+site+".com/" + line.substring(bofimg,eofimg);
String imgdir = save_dir + url_id_list.get(i).toString() + ".jpg";
getpic gp = new getpic();
gp.crawlpic(imgURL,imgdir);
line = br.readLine();
br.close();
rd.close();
in.close();
if(html==null)
html = "";
if(html.length()>0){
String saveTo = save_dir+ url_id_list.get(i).toString() +".html";
try {
new outPut(html, saveTo);
} catch (IOException e) {
e.printStackTrace();
System.out.println((i+start) + ". Saved " + url_list.get(i) + " as " + (i+start) + ".html");
else
System.out.println((i+start) + ". failed at " + url_list.get(i));
if(br!=null)
br.close();
}catch (Exception e){
e.printStackTrace();
the outPut.java is :
import java.io.*;
public class outPut {
public outPut(String content, String outPutFile)throws IOException{
FileWriter fl = null;
BufferedWriter bw = null;
try{
File f = new File(outPutFile);
if(!f.exists())
f.createNewFile();
fl = new FileWriter(outPutFile);
bw = new BufferedWriter(fl);
bw.write(content);
finally{
if(bw!=null)
bw.flush();
if(fl!=null)
fl.flush();
if(bw!=null)
bw.close();
if(fl!=null)
fl.close();
the getpic.java is
import java.io.*;
import java.net.*;
public class getpic {
public synchronized void crawlpic(String url, String savedir)throws Exception {
InputStream in = null;
InputStream inBuffer = null;
OutputStream out = null;
try{
URL this_url = new URL(url);
in = this_url.openConnection().getInputStream();
inBuffer = new BufferedInputStream(in);
out = new FileOutputStream(savedir);
while(true){
int bytedata = inBuffer.read();
if(bytedata == -1)
break;
out.write(bytedata);
finally{
if(out != null)
out.close();
if(inBuffer != null)
inBuffer.close();
if(in != null)
in.close();
}above are all my code .
On the other hand, the codes can be run at JDB, but it will lose some thread after run for some minute or seconds.Hi aarthi,
SELECT can be used to fetch data only from database tables/views. in your case you used SELECT from an INTERNAL table,which is not allowed.
SELECT *
FROM <DBTABLE NAME>
INTO TABLE EXPORT_REC
WHERE KEY = IMPORT_ PARAMETER AND
IMPORT_PARAM_DATE BETWEEN FROM_DATE AND TO_DATE.
HERE Instead of <DBTABLE NAME>,you have to give your Database table,which stores these values.
then your data will comes into EXPORT_REC.
and remember to give EXPORT_REC in TABLES parameters of that FUNCTION MODULE and give associated Type for that.
Regards
Srikanth -
I have windows 7 and adobe photo shop elements 4.0 I cant get it to work and can not afford these expensive programs I want my help getting my 4.0 to work that I purchased
You can check compatibility on the Microsoft site.
Make older programs run in this version of Windows - Windows Help -
Please help where is the error?
Hi all,
the following code is in when-validate-item (:desig_date)
DECLARE
rg_name VARCHAR2(40) := 'rg_type';
rg_id RecordGroup;
errcode NUMBER;
cursor cur_name
is
select emp_name ||' '||' '||emp_middle_name||' '||emp_last_name from employee_master
where emp_code=:edcd_emp_code;
BEGIN
open cur_name;
fetch cur_name into :to_whom;
close cur_name;
if :edcd_emp_code is not null then
rg_id := Find_Group( rg_name );
msg_alert('rg_id','I' ,false);
if not id_null(rg_id) then
ABORT_QUERY;
delete_group(rg_id);
end if;
if id_null(rg_id) then
rg_id := Find_Group( rg_name );
rg_id := Create_Group_From_Query
( rg_name,'Select distinct ehd_type,ehd_type from employee_hist_details '||
'where ehd_type is not null and ehd_emp_code ='||:edcd_emp_code ||*'and ehd_date='||to_date(:desig_date)* );
end if;
errcode:=populate_group(rg_id);
POPULATE_LIST('E_TYPE',rg_id);
:edcd_type:=GET_LIST_ELEMENT_VALUE('e_type',1);
end if;
exception
when others then
msg_alert(sqlerrm,'E',True);
end;h5.
if i omit the highlighted part in the above code, it is working , but if it is included
h5.
am getting error FRM-41072 cannot create record group rg_type
h5.
and FRM-41076 error populating groupHi ,
Now , list is populating for first time ,for second time ie.
if i change the emp_code and desig_date
its showing error
h5.
FRM-41076 ERROR POPULATING GROUP
rg_id := Create_Group_From_Query( rg_name,'Select distinct ehd_type, ehd_type ehd_value from employee_hist_details '||
' where ehd_orgn = '''||:parameter.p_orgn ||'''' ||
' AND (ehd_ctry = ''' || :parameter.P_ctry || '''' ||
' OR '''|| :parameter.P_ctry ||''''||' is null) ' ||
' AND (ehd_loc = ''' || :parameter.P_loc || ''''||
' OR ''' || :parameter.P_loc ||''''|| ' is null) ' ||
' AND (ehd_oru = ''' || :parameter.P_oru || ''''||
' OR ''' || :parameter.P_oru ||''''|| ' is null) '||
' and ehd_type is not null '||
' and ehd_emp_code ='||:edcd_emp_code ||
' AND ehd_date = TO_DATE(''' || :desig_date || ''')'
);
Maybe you are looking for
-
How do I find out how much ram my macbook has?
I clicked on hardrive and clicked info but it only says my hardrive space, I want to know my processor size and how much ram I have so I can add some more if I can Thanks
-
Accessing the device from one node to antoher node
Hi All , I have one local devices c1t0d0, the corresponding DID is d4. I want to access this device in another node. how to access this? Regards, R. Rajesh Kannan.
-
BAPI_GOODSMVT_CREATE - Movement type 309
I am using this BAPI to do a 309 movement. I get the error message M7 E021 Deficit of SL Unrestricted-use . I do not get the error message for the same data when i use MB1b. The prob
-
Want to find the owner of an iPhone 5C 16GB pink
Hey everybody, Since it's the winter holidays time I thought I'd make someone a surprise and help them get back their phone. So I bought a used locked iPhone 5C and now I am trying to find its rightful owner. How can I do it? I don't have any apple s
-
Hi All, I have now had a stable line for just over 5 days and IP Profile is stubbornly stuck ay 2Mb Down and 0.89 Up. Is there anyway I can get this 'banding' released so that I can get a faster profile? Current ADSL Stats: ADSL Line Status Connectio