Long posts in I.E. 8 refresh issue
Recently I've had to upgrade to I.E. 8 on some PCs I work with, and posting from them, I've noted the that editing long posts have refresh issues. I type and the cursor returns to the beginning of the post, and I have to keep scrolling back down. Is this a known bug? Or is there a workaround with I.E. 8?
Hi Dave,
I'm obviously far too tolerant of bugs. I'm running IE8 both at home and at work, but this has only ever happened on my work machine. I've meant to look into the cause before now, but I only notice when I'm in the middle of a large post and by the time I've got that out of the way it's usually time to deal with other matters. I've often just put up with the text snapping up and down the screen as I type, but occasionaly have started composing in Notepad or switched browsers. I've just implemented the fix so hopefully I won't need to worry again.
Many thanks,
tt2
Similar Messages
-
A rather long post of me talking gibberish and asking LOTS of questions.
================================================== ================================================== ===
Before reading this MASSIVE post, please read the bottom at the stupid amount of P.P.S.'s as they probably have a lot of information that I forgot to put in the middle or something.
================================================== ================================================== ===
Hi, I'm some guy on the internet and I am 15 years old. For the sake of this post and the answers I hope to have, please ignore my age and understand my maturity and I hope that you can understand why I would like to learn this language so much. I seem to have major issues with learning this language and online tutorials and stacks of books do not seem to do the trick. Please do not reply saying "this is not for you, try something else" because although I do not know much in Java in terms of making good applications, I have learned quite a few things and I am able to make simple things with the console such as making a calculator where the user has to type in what operator they want to use and then they are asked to enter two numbers in which they are timed/added/divided etc. together and it gives the answer. Considering this I really want to continue learning this language because I find it fun to learn and fun to program in, yet I am having serious stress issues because I can't understand simple things and I just forget some of them and I then find it difficult to make simple applications. For example, I am trying to make a simple snake game where you have to find all the apples and eat them and then your body grows larger etc. but I just can't think of how I would do it. I know a few simple application type things and maybe how to put them to use, but I just don't know how to use them in this situation and how to start off making games like these.
Just to tell you a little bit about my background of programming, I have known about programming since I was about 11, I made a virus in Visual Basic believe it or not. It would disguise itself as Mozilla Firefox and would slowly delete random files that were opened or edited in the last month starting from the last used files in said month. It would delete a set amount of files every time you booted up and it was pretty nasty. It was obviously quite easy to get rid of it and it probably had many bugs, but it was a nasty virus nonetheless. Anyway, that lasted around 2 months and I never really picked up on programming until around 13 at which point I learned a bit of Java up until the System.out.println part, so not very far at all and I barely understood anything. Then I kinda picked it up at 14 last summer (2012) and learned almost as much I know now over the summer holidays and then kind of left it until after Christmas because I couldn't really get past a certain 'barrier' so I got bored and gave up. Until now. After Christmas I got back into it and starting learning a few more things, understood functions a little more and downloaded a bunch of source code from lots of different websites. I've now been extremely stressed out for the past 2 weeks going crazy because I can't fit anything else into my head because I just forget it or just don't understand it. So I am now in a complete frenzy not doing homework, being a douche to my friends and just not being very social or doing stupid things.
Unfortunately this is going to be a rather long post as you can probably already tell and there will be a 20 Q's kind of 'game' below where I ask things that I desperately need to know and maybe things that I want to know but don't necessarily need to know.
If you can, I would greatly appreciate it if you could answer all of the first 14 questions in one post instead of 1 or 2. Also, please do not post anything unnecessary or nasty as I am a new poster here and I just want to get started in Java and I have my own reasons for starting at such a young age and my intentions are rather personal. So please treat this matter with maturity and I hope someone can really help me.
I am sorry for any misspellings or grammatical errors, I am fully English, I am just rubbish at spelling.
THE QUESTIONS!!!
1) What is SUPER used for, when should I use it and why should I use it?
2) When making a new class and you type PUBLIC [insert class name here](){} what does this do and why does it need to be the same name as the class it is in?
3) Why do you need to make new classes inside already made classes sometimes?
4) What is the use of NEW and why do you need to use it when you are creating something like a JFrame, where for example you would use it in your main function and have NEW [insert name of function with JFrame inside]();, why can't you just do [insert name of function with JFrame inside]();?
5) What is actionPerformed, where is it used and why should I use it?
6) When using a function, what is achieved when you call another class and make another variable inside said function? Eg, public [insert class name here]([insert other class name here][insert new variable name here]){}
7) What 'type' is an ENUM? Is it an int? String? Double? So if I were to make ENUM [insert name of enum here] {A, B, C, D, E, F, G}; So what would happen if I were to say PUBLIC [insert name of enum here] B = 5; what would that mean? Would that assign it as an integer?
8) When should I use enums, what is the point in them?
9) What does [inset object here].ORDINAL mean? What is it used for and when should I use it?
10) Although I understand that the RETURN statement is used to end a function and return it with a value if there is one specified, but when it returns it with that value that you may have specified, what happens to that value, how do I retrieve it and how do I use it? When will I know when to use RETURN?
11) Briefly explain how to use KeyEvent, getKeyCode and just anything else to do with accepting user input and how I would use it.
12) When using the KeyAdapter, why do you need to make a new class inside an already made class? What does this achieve? Why can you not extend it on the current class you are using instead of making a new class? This links back to the 3rd question.
13) What is the difference between ++object and object++? Does it really matter which way I use them? Why should I use them differently and how will it affect my code if I use them differently?
14) What's the difference between an IF statement and a BOOLEAN statement? They are both booleans and if used correctly can be used to do the exact same thing with just one or two lines of codes difference. Which one should I pick over the other and why? Which one is better to use for what kind of things?
================================================== ================================================== ===
POINTLESS QUESTIONS THAT I JUST FEEL LIKE ASKING THAT DON'T NEED TO BE ANSWERED AND DON'T HAVE MUCH TO DO WITH THE CODE ITSELF
================================================== ================================================== ===
15) What is the best way to get into the mindset of 'a programmer'? What is the best way to understand the ways in which you would build an application and learning the step by step processes so you know what you have to do next and how to do it.
16) I seem to always be worried that it takes programmers 5 minutes to program a very simple game, like Tetris because I've seen videos and just other places where it makes it look like it takes them a very small amount of time to make something that might take me months to learn. Is this how it works? Or can it take hours to program 5 classes for a very simple game? If so, why does it, if said programmer hypothetically understands the language well enough to make said program? Surely they would know what to do and how to make it so it would not take long at all?
17) How often are IF and ELSE statements used in common programs? I feel when I am making a program I am always using them too much and I just stop programming from there because I feel that I am using too much of something so maybe it isn't the right way to do it or maybe there is a better way to do it.
18) What would be the best way to learn programming for someone who finds it difficult to teach himself said topic yet has no efficient way to have someone teach him? I feel I am somewhat intelligent enough to learn a programming language, I have gotten this far, so I feel I should just keep going. Besides, despite the difficulties I have and the ridiculous amount of stress I get from not being able to learn on my own, I find it very entertaining to program things, read over other peoples code and slowly learn the world of programming. I feel that I see myself as a programmer in the future and I just really hope that I can learn this language quickly before I am too old to have time to learn this as a hobbie as I do now.
19) I am someone who hopes to become a games developer as I thoroughly enjoy playing games as much as I do finding out how they work. What would be the right way about learning how to make games? Should I stick with Java or should I go to C++? I've only stuck with Java because I have more experience with it and I feel that I should learn an easy language and get used to OOP and other things before I go off making complex programs with a difficult language. I know how to print something to the console in C++ and that's about it.
20) I have no way of having an education on programming in my school at the moment and all courses that have programming in them aren't very good - you make a simple application for coursework and you do a computer physics exam at the end of the year, not too helpful for me. Also, I don't have many friends that are diversed in any language of programming and the ones I do have, coincidentally, absolutely none of them are any good at making games or painting anything in graphics or anything to do with frames and windows. They're all about the console and making mods for games instead of making full on programs with a window and what not so it's difficult to get any of them to teach me anything. I've looked at college courses and none of them are for my age and what I am wanting, or they are just too damn expensive. I have also looked at online courses, one-to-one tutoring etc. but they are either way too expensive or they aren't very good in terms of being in a country half way across the world or maybe they have bad ratings. Anyway, what I'm trying to ask, despite all the negative put backs and all the issues that seem to follow me whenever I try to learn this damn language, what would be the best way to teach myself this language or any other language, or where are the best places to have someone teach me for free/cheap prices? I just essentially want to make something basic like a video game like Tetris or something so I at least have some knowledge of making a video game so I can maybe learn other things much easier.
P.S. I am in top sets for all my classes at school, so any intelligence issues aren't a part of this. I guess you could maybe call it laziness, but I just prefer to say that I am too used to people teaching me things and doing things for me rather than teaching and doing things myself. So if I were stuck on an island alone I really would not know what to do at all because I would mainly rely on other people.
P.P.S. Just for anyone's curiosity, I use Eclipse as my IDE on a Windows 7 Ultimate OS.
P.P.P.S. I am British.
P.P.P.P.S. I have read through about 4 books about Java, but on most of them I just get really bored and stop reading them half way through because they either don't explain what I want to know or they really suck at explaining what I want to know.
P.P.P.P.S If you are going to post a good tutorial, please post one that I have most likely NOT been on. PLEASE. I have gone through MANY tutorials which all of them don't do me any favours. Please post one that you think that I might not have seen and actually tells me what EACH line of code does and WHY it does it and WHY I might use it and WHERE I might use it. Etc.
P.P.P.P.P.S If this is a TL;DR kind of post, then I am awfully sorry to have bored you, please go onto another post, but thank you very much for taking the time to actually LOOK and CLICK on my post. However if you do not have any intention of helping my dilemma, please leave as although I am asking for A LOT for FREE, I really don't need pointless posts that really do not solve my problem. Thanks.
P.P.P.P.P.P.S (Last P.P.S I swear! I just keep forgetting things.) If you have any questions to ask or I might not have asked something properly, feel free to ask as I will probably be refreshing this page non-stop for the next 2 weeks. Thanks ^^
For all the people out there who are THAT awesome to post here answers to these questions, I really salute to you and I would VERY gladly give you money for your time and effort, if I had the funds to give you what it's worth. ;-)
Edited by: 983242 on 21-Jan-2013 16:26Before reading this MASSIVE postI didn't read it. I went straight to the questions. The rest of it was a complete waste of your time. Nobody cares whether you are 15, are stressed, get bored, etc. You should spend more time learning and less time emoting, and typing.
I am rubbish at spelling.So fix that. If you stay in this business you will have to spell properly or get nowhere. Compilers won't accept mis-spellings: why should anybody else? Get over it. In a few years you will have to write a resume. If I get it and it is misspelt it goes in the bin.
1) What is SUPER used for, when should I use it and why should I use it?It is used for two purposes that are described in the Java Language Specification. If you can't read language specifications you will have to learn, or get nowhere. You can't learn languages in forums.
2) When making a new class and you type PUBLIC [insert class name here](){} what does this do and why does it need to be the same name as the class it is in?That's two questions. 'public' is used for a purpose that is described in [etc as above]. The class name needs to agree with the file name because that is a rule of Java. Period. There's a reason for the rule but you should be able to discover it for yourself eventually, and it doesn't actually matter what the reason is at this stage in your development.
3) Why do you need to make new classes inside already made classes sometimes?Why not?
4) What is the use of NEW and why do you need to use it when you are creating something like a JFrame, where for example you would use it in your main function and have NEW [insert name of function with JFrame inside]();, why can't you just do [insert name of function with JFrame inside]();?Meaningless. You have to use the language the way it was designed. Same applies to most if not all your questions.
5) What is actionPerformed, where is it used and why should I use it?See the Javadoc.
6) When using a function, what is achieved when you call another class and make another variable inside said function? Eg, public [insert class name here]([insert other class name here][insert new variable name here]){}I cannot make head or tail of this question. You could try making it intelligible.
7) What 'type' is an ENUM?It is of type Enum.
Is it an int? String? Double?No, no, and no.
So if I were to make ENUM [insert name of enum here] {A, B, C, D, E, F, G}; So what would happen if I were to say PUBLIC [insert name of enum here] B = 5; what would that mean? Would that assign it as an integer?I'm getting sick of this [insert name here] business. Try making your questions legible and intelligible. And again, an enum is not an int.
8) When should I use enums, what is the point in them?When you want them. Not a real question.
9) What does [inset object here].ORDINAL mean?Nothing. There is no such construct in Java. There might be an occasional class with a public variable named ORDINAL, in which case it means whatever the guy who wrote it meant. If you're lucky he documented it. If not, not.
10) Although I understand that the RETURN statement is used to end a function and return it with a value if there is one specified, but when it returns it with that value that you may have specified, what happens to that value, how do I retrieve it and how do I use it?You store it in a variable, or pass it to another function, or use it as a value in a statement, for sample as an if or while condition.
When will I know when to use RETURN?Err, when you want to return a value?
11) Briefly explain how to use KeyEvent, getKeyCode and just anything else to do with accepting user input and how I would use it. In a forum? You're kidding. Read the Javadoc. That's what I did.
12) When using the KeyAdapter, why do you need to make a new class inside an already made class?You don't.
13) What is the difference between ++object and object++?This is all described in the Java Language Specification [etc as above] and indeed most of this stuff is also in the Java Tutorial as well. Read them.
Does it really matter which way I use them?Of course, otherwise they wouldn't both exist. Language designers are not morons.
Why should I use them differently and how will it affect my code if I use them differently?That's just the same question all over again.
14) What's the difference between an IF statement and a BOOLEAN statement?The difference is that there is no such thing as a boolean statement.
POINTLESS QUESTIONSThanks for stating that.
THAT I JUST FEEL LIKE ASKINGBad luck. I don't feel like answering pointless questions. Ever. -
"Hello,
From reading of these newsgroups I've seen many different manifestations
of what seems to be the same root cause with connection pools and
connections which are refreshed/replaced when found broken. In our
case weblogic server hangs.
Kit: 2xWeblogic 5.1.0 sp11 (not clusterd), Solaris 8,
java 1.3.1_01, 1xoracle 8.1.6, latest JDBC 2.0 drivers from oracle. Each weblogic instance and oracle have their own machines.
We do indeed have a firewall employed to run our subnets, and hence
our weblogic servers and oracle databses are in different DMZ's, but are
allowed to communicate to each other via rules set up on the firewall and
inspection of the logs show no such connections being dropped.
As far as the db is concerned, lookups (no writes) never take more than a few
hundred milliseconds and are then closed and given back to the connection pool
immediately from within the 'finally' block of code, hence hard to see when,if ever, the db is
is closing them due to excessive idle time.
weblogic.jdbc.connectionPool.RecipeDBPool=\
url=jdbc:oracle:thin:@foo:1521:BAA,\
driver=oracle.jdbc.driver.OracleDriver,\
loginDelaySecs=1,\
initialCapacity=30,\
maxCapacity=50,\
capacityIncrement=1,\Alkesh wrote:
Hi Joe,
The fix you suggested has been implemented and has been running fine
now for the past 3 days. I'm delighted with the result,Great. Glad to help.
but am concerned as to why this problem wasnt highlighted during our
load-testing phases...It's a possibility that your load-testing didn't present the same sort
of load that your actual runtime does.
Thanks for your time on this.Well sure. We want you successful.
Joe
Alkesh
At 01:52 PM 2/22/2002 +0000, you wrote:
Hi Joe,
Thanks for your reply
Please find attached a copy of the jvm thread dump we got from thelast time
that weblogic blocked upon trying to refresh a broken connection.
We have turned off JIT with the environment settingJAVA_COMPILER=NONE.
FYI hotspot is enabled with '-hotspot', these settings can be foundin the
attached 'startWeblogic.sh'.Hi. I found a serious problem by reading the thread dump:
"ExecuteThread-11" daemon prio=5 tid=0x179d40 nid=0x19 waiting for
monitor entry
[0xeee80000..0xeee819e0]
at java.sql.DriverManager.getConnection(DriverManager.java:144)
- waiting to lock <f8e77ad0> (a java.lang.Class)
at com.akqa.sainsburys.jv_recipe.ejb.session.RecipeBean.getConnection(Re
cipeBean.java:759)
It is important to never call DriverManager methods in a multithreaded
application
such as Weblogic, because these JVM methods are alloverly synchronized
at
the class level. One such method, DriverManager.println(), is called
continuously
by all JDBC drivers as well as the SQLException constructor. If one
server thread
makes a long-lasting or hanging call to DriverManager.getConnection(),
it can halt
all JDBC in the whole JVM including work on other open driver
connections.
Please show me the code for RecipeBean.java, and I will send you an
altered version
that should solve this problem. In fact, I can infer from the thread
dump what is needed.
Change the one method getConnection() to this:
// Make once and re-use a driver instance directly, avoiding
DriverManager
Driver d = (Driver)class.forName("weblogic.jdbc.jts.Driver").newInstance();
public Connection getConnection()
return d.connect("jdbc:weblogic:jts:yourPoolNameHere", null );
Also, change your pool definition. I assume you have
testConnsOnReserve set to true.
(You should). Also, you should change your refresh minutes to
something huge, like
9999999. The refresh is interfering with your online performance and
is unnecessary
if you have testConnsOnReserve set. I recommend:
weblogic.jdbc.connectionPool.RecipeDBPool=\
url=jdbc:oracle:thin:@foo:1521:BAA,\
driver=oracle.jdbc.driver.OracleDriver,\
loginDelaySecs=1,\
initialCapacity=50,\ <------ note that this should be the
same as max, so all cons are made at startup
maxCapacity=50,\
testTable=dual,\
testConnsOnReserve=true,\
refreshTestMinutes=9999999,\
etc.
Joe
I've also attached some firewall logs around the time of weblogicblocking
(12.09). I could only get screen dumps for you, this may or maynot be
useful.
For the firewall logs use the following legend :-
195.110.64.205 - DNS
172.16.160.195 - host webserver 1 (i.e. what our licenses are boundto)
172.16.160.196 - host webserver 2
172.16.160.220 - website 1
172.16.160.230 - website 2
Thanks
Alkesh
-----Original Message-----
From: Joe [mailto:[email protected]]
Sent: 20 February 2002 22:09
To: [email protected]
Subject: Re: 5.1.0 sp11 Connection pool refresh issue,
revisited....again...!!!
At 02:47 PM 2/20/2002 +0000, you wrote:
Hi Joe,
Please find attached a copy of our thread dumps for the most recentoccasion
that weblogic server has stopped.
Apologies for any misunderstandings with my previous post, it appears to
have been cropped. Full posting below (yes we do have testConnOnReserve and
testTable properties set).
Thanks for your time.sure, but first let's get you running OK. These dumps seem to be
very cryptic, as if you're running a highly optimized JVM that
loses almost all of the Java class references I'd normally see.
Can you run again with a more basic JVM? I am beginning to suspect
the JIT JVM...
Joe
Alkesh
Joseph Weinstein wrote:
Hello,
From reading of these newsgroups I've seen many
different manifestations of what seems to be the sameroot cause with connection pools and connections
which are refreshed/replaced when found broken. In our
case weblogic server hangs.
Kit: Weblogic 5.1.0 sp11 (not clusterd),
Solaris 8, java 1.3.1_01, oracle 8.1.6,
latest JDBC 2.0 drivers from oracle.
We do indeed have a firewall employed to run our subnets,
and hence our weblogic servers and oracle databses are
in different DMZ's, but are allowed to communicate to each
other via rules set up on the firewall and inspection of
the logs show no such connections being dropped.
As far as the db is concerned, lookups (no writes) never
take more than a few hundred milliseconds and are then
closed and given back to the connection pool immediately
from within the 'finally' block of code, hence hard to
see when,if ever, the db is is closing them due to excessive idle time.
weblogic.jdbc.connectionPool.RecipeDBPool=\
url=jdbc:oracle:thin:@foo:1521:BAA,\
driver=oracle.jdbc.driver.OracleDriver,\
loginDelaySecs=1,\
initialCapacity=30,\
maxCapacity=50,\
capacityIncrement=1,\
allowShrinking=false,\
testTable=dual,\
testConnsOnReserve=true,\
shrinkPeriodMins=1,\
refreshTestMinutes=10,\ // has been 1 and 5 but 10 'more' stable.
Fequently however, connections are found to be broken
(either by periodical refresh - refreshTestMinutes or
testing connection before granting it to the
application - testConnsOnReserve=true), this has been
confirmed by viewing JDBC.log .
When this is so, weblogic attempts to replace these
broken connections with new ones and then proceeds
to grant it to the application. Once in a while however
(and by no means 'x' refreshes later), weblogic will not
come back.
One of 2 errors occur in our deployment which cuase weblogic
to refresh a connection.
<JDBC Pool RecipeDBPool> java.sql.SQLException: No more data to read fromsocket
and
<JDBC Pool RecipeDBPool> java.sql.SQLException: Io exception: Broken pipe
I believe these settings to all be correct, JDBC drivers
in the correct point BEFORE weblogic.aux in classpath, yet
still have the issue of broken connections.
Any ideas ? I've been reading a lot into this probelm
on various postings now, and i'm completely stumped.
Thanks for your time.
Alkesh -
RE: Forte/CORBA inquiry - Long post
Dave,
Are you using any kind of structured object in the parameters to your
CORBA-exposed method?
We have found that Forté will change the order of struct class attributes
when changes are made in the IDE (often even when seemingly unrelated).
Look at the IDL generated in your last deploy to be sure the order of
attributes is the same.
- MikeL
-----Original Message-----
Date: Thu, 3 Aug 2000 12:10:17 -0700
From: "Dave Ortman" <dortmanrcsis.com>
To: kamranaminyahoo.com
Subject: Forte/CORBA inquiry - Long post
Message-id: <3989c399.22c.0rcsis.com>
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Hello,
I've been experimenting with accessing Forte through Java via CORBA. While
I have adequate experience with Forte and Java, I'm fairly new to CORBA. As
a result, I've discovered some issues which I can't seem to resolve.
I fear my explanation might be a bit lengthy, but I figure it's easier to
offer
comments when you have all the information. I apologize in advance.
I started by writing a Java application that would access a Forte service
object.
To keep things simple, I didn't use any of our existing code base. I
instead
used the code examples in tech note #10950: Forte Service Objects and
VisiBroker
Java IIOP clients. However, instead of using the VisiBroker ORB, I used the
Java 1.2 ORB. Other than that, I used the same code offered in the tech
note.
This example worked fine. I exported the IDL from Forte, ran the Sun
idltojava
tool, and compiled my Java classes.
I then tried to carry this example forward, and use some of our existing
Forte
objects. Things did not go as smoothly, and I am now left with a few
questions.
I created two new projects in my workspace - CorbaSO and CorbaManager.
In the CorbaManager I created a single class - CustomerManager. This object
has one method which retrieves a customer object based upon a CustomerID
which
is passed into the method. This project has three supplier plans which are
needed to retrieve this Customer object.
In the CorbaSO project, I created two classes - CorbaServer and TestClass.
CorbaServer has two methods: getCustomer and GetDamage. The getCustomer
method
instantiates an instance of the CustomerManager class, and uses it to
retrieve
a customer based upon the CustomerID passed into the getCustomer method,
then
returns the CustomerName (string). The GetDamage method is the same method
that's used in tech note #10950 (discussed above). I just wanted to make
sure
it still worked. I then made a Service Object from the CorbaServer class,
which
I called CorabaServerSO. This project has two supplier plans - the
CorbaManager
project discussed above, and the plan which contains the CustomerObject
(which
is returned by the CUstomerManager class).
Lastly, the test class simply contains a go() method, which I used to make
sure
the CorbaServerSO was working fine. All it does is call
CorbaServerSO.getCustomerName()
passing in a CustomerID, and writes the returning name out the logger.
The code compiles, and it works fine when I run it from within Forte
[through
TestClass.go()]. I then deployed the app and exported the IDL.
However, when looking at the IDL, I find that Forte exported 900k of IDL.
It
exported the IDL definition of every class within the supplier plan
hierarchy.
Given that I only wanted to expose my one service object, I assumed that I
would only get IDL for that one project. Instead, I got IDL for every
object
all the way down the Supplier Plan chain. So my first question is, why do I
get IDL for everything?
To make matters worse, this 900k IDL file is littered with errors - and my
IDL
compiler chokes. I edited the IDL so that it only contained definitions for
the CorbaSO project, and ran the IDLTOJAVA tool on that edited file. That
created
the JAVA files just fine, and I then compiled them into CLASS files. So far
so good.
I then wrote a Java client to call methods on my newly published
CorbaServerSO.
I found that the GetDamage() method worked fine, while the getCustomer
method
yield the following error: 'org.omg.CORBA.UNKNOWN: minor code: 1
completed:
Maybe'. This error is offered immediately after calling the getCustomer
method
on the CORBA stub.
Curious as to why one method worked, and one didn't - I looked to the code
in
the GetDamage method. The code was as follows (all undeclared variables are
input or output variables of type double):
tmp1 : i4;
tmp1 = i4(total * 0.0775 * 100.0 + 0.5);
salesTax = double(tmp1) / 100.0;
tmp1 = i4(total * 0.15 * 100.0 + 0.5);
tips15 = double(tmp1) / 100.0;
newTotalwoTips = salesTax + total + total;
As written above, the code works. I then modified the code to the following
(all parameters were unchanged):
custManager : CustomerManager= new();
tempCustomer : Customer = custManager.fetchCustomer(12345);
tmp1 : i4;
tmp1 = i4(total * 0.0775 * 100.0 + 0.5);
salesTax = double(tmp1) / 100.0;
tmp1 = i4(total * 0.15 * 100.0 + 0.5);
tips15 = double(tmp1) / 100.0;
newTotalwoTips = salesTax + total + total;
After deploying the newly modified code, I find that the GetDamage method
now
does not work. All I did was instanstiate an object, and call a method on
it.
I never did anything with the results. Yet I get the same error:
'org.omg.CORBA.UNKNOWN:
minor code: 1 completed: Maybe'.
So my two question are:
1. Why did I get IDL for every object within the Supplier Plan tree when I
was
only attempting to expose 1 Service Object.
2. Why does a method cease to work via CORBA when I interact with another
object?
Thanks in advance for any help,
-Dave OrtmanIn a previous post, I asked:
<<Why did I get IDL for every object within the Supplier Plan tree when I
was
only attempting to expose 1 Service Object.>>
Since writing this, I have come across tech note #11427 - which mentions use
of a IIOPIgnore extended flag which you can set on objects to suppress IDL
generation. Otherwise, Forte automatically generates IDL for any object
which is marked as Distributed.
Most of our objects are distributed. I set this property on the objects
within the two projects I was working in, and the IDL for these objects was
not created. However, the rest of the objects in the Supplier Plan chain
were still translated to IDL. Am I going to have to set this property on
every object? I don't see how I could be misapplying the property - but you
never know.
<<Why does a method cease to work via CORBA when I interact with another
object?>>
Through the use of putline()'s, I've found that the error is generated
somewhere deeper within our application architecture. It may be a problem
with our code - I'm not sure. I would still be happy to hear any input on
the matter.
Thanks,
-Dave Ortman -
I wish to know if there are any refresh issues in the following scenario.
Consider the same application running in 2 distinct VM, jvm1 and jvm2 in a
simple
configuration without L2 cache.
In jvm1 I have:
PersistenceManager pm = pmf.getPersistenceManager();
pm.currentTransaction().begin();
Object oid = xxx;
Object o = pm.getObjectById(oid)
System.err.println(o.xxxx);
pm.currentTransaction().commit();
pm.close():
Then in jvm2:
PersistenceManager pm = pmf.getPersistenceManager();
pm.currentTransaction().begin();
Object oid = xxx;
Object o = pm.getObjectById(oid)
o.setSomeAttribute(xxxx);
pm.currentTransaction().commit();
pm.close():
Now if I execute in jvm1 the first code fragment, do I see the modification
applied in
jvm2 ?
Thanks in advance,
Guido Anzuoni.
BTW, are you going to include oid (and hopefully, class) keyword in
projection in kodo3 ?Guido,
Yes, you will see the modification in the next PM. The only "stale data"
issues you might see are when you get object ID X in JVM1, modify and
commit object ID X in JVM2, and then continue to reference it in JVM1
(without any closing or refreshing): you will continue to see the cached
version of object ID X.
When this situation is intolerable, you can use pessimistic
transactions: that will guarantee up-to-date views of the object, at the
cost of keeping database locks on the rows open.
In article <[email protected]>, Guido Anzuoni wrote:
No, no, just for confirmation. I have read some posts on this topic and I
have only shown my tipical usage.
Is this behaviour somehow dependent on optimistic settings ?
What if the DB schema is a preexisting one and there is no column for
optimistic locking check ?
Thanks again,
Guido.
"Stephen Kim" <[email protected]> ha scritto nel messaggio
news:[email protected]...
Yes. Are you not seeing this behavior?
As for oid and class keywords, I'm not sure if the feature has been
resolved one way or another yet.
Guido Anzuoni wrote:
I wish to know if there are any refresh issues in the following
scenario.
Consider the same application running in 2 distinct VM, jvm1 and jvm2 ina
simple
configuration without L2 cache.
In jvm1 I have:
PersistenceManager pm = pmf.getPersistenceManager();
pm.currentTransaction().begin();
Object oid = xxx;
Object o = pm.getObjectById(oid)
System.err.println(o.xxxx);
pm.currentTransaction().commit();
pm.close():
Then in jvm2:
PersistenceManager pm = pmf.getPersistenceManager();
pm.currentTransaction().begin();
Object oid = xxx;
Object o = pm.getObjectById(oid)
o.setSomeAttribute(xxxx);
pm.currentTransaction().commit();
pm.close():
Now if I execute in jvm1 the first code fragment, do I see themodification
applied in
jvm2 ?
Thanks in advance,
Guido Anzuoni.
BTW, are you going to include oid (and hopefully, class) keyword in
projection in kodo3 ?
Stephen Kim
[email protected]
SolarMetric, Inc.
http://www.solarmetric.com
Marc Prud'hommeaux [email protected]
SolarMetric Inc. http://www.solarmetric.com -
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 -
Screen refresh issue with SQL Developer 1.5.5 on Vista 64 bit
I am using the latest version of SQL Developer.
I have screen refresh issues in sql developer. On scrolling up and down the display gets jumbled, some time screen do not display at all. Its making working with SQL Developer very difficult. I don't have such an issue with any of my other editors.
Is this something specific to Vista? Is there any know solution to this issue.
Thanks
Edited by: user5899685 on Sep 1, 2009 11:14 AMSpecific? Not really, but judging from the posts here Vista is more prone. It usually indicates incompatibility between Java and video drivers.
If updating your JDK or video driver doesn't work or isn't an option, just disabling DirectDraw in \sqldeveloper\bin\sqldeveloper.conf usually works too:
AddVMOption -Dsun.java2d.noddraw=trueHope that helps,
K. -
K9A Platinum no longer posting after bios update
I recently upgraded my computer to the specs below, and vista ultimate wouldn't start up (In safe mode it would freeze on checkdisk). I tried some of the solutions I found here (unplugging IDEs, etc) to no avail, and finally I decided to flash the BIOS and upgrade it to the most recent version (1.5). It worked once after restart (sor of, it froze on checkdisk again) but on subsiquent boots it no longer posts! Help please, I need my desktop!
Athlon X2 6000+
8 gb (4x2gb) DDR2 800
K9A Platinum
ATI 1800 Crossfire
650 Watt power supply
---Quote from: Piuro on 16-May-07, 11:25:02
Okay, i'm able to get into vista with four gigs, six gigs causes it to reset at crcdisk.sys, and it seems to boot with 8. It seems that some setting got tripped in the BIOS update, Looks like this was some spirit of spontaneity prevalent in so many computers. Thanks for the help!
you are welcome, next time please do not touch the BIOS when everythink is working fine. and don't update BIOS only because its a new one.. read here: https://forum-en.msi.com/index.php?topic=103441.0
also 1.5 are known as problematic one for most of K9A owners...
"Okay, i'm able to get into vista with four gigs, six gigs causes it to reset at crcdisk.sys, and it seems to boot with 8."
that is normal, issues can be expected when using 3 memory sticks. recommended are 2 memory sticks, other working combination 1 or 4 memory sticks.(but 3 memory sticks are not recommended.)
also its a good idea to check memory for errors with Memtest86, to ensure that they are working correctly without errors. -
My firefox updated this morning. Since the update I can no longer post to facebook. Any thoughts? Other browsers work. I am using Windows 7 and Firefox 10.0.1. All was working fine yesterday.
BTW, I can read everything just fine, but when enter information to post and press the post button, nothing happens. I have another computer running Win XP and firefox 8.x and all is fine.
-
A question about arrays (brace yourself this is a long post)
I am working on an assignment that is about generating a random rabbit race by using arrays:
Rabbit Race
Write a program to simulate a race between 4 rabbits (numbered 0 to 3). Initially, all contestants are at the start of the race track (position 0) and must race on a 20 meter track (positions numbered 0 to 19). Each participant has its own technique; some run fast, but are sometimes lazy; while others run slowly but steadily. All rabbits make 1 movement one after the other and the one who arrives at the end of the track before the others, wins the race. Here are the rabbit?s strategies :
At each turn, rabbit 0:
- sleeps (so does not run), 50% of the time;
- runs 4 meters, 30% of the time;
- runs 3 meters, 20% of the time.
At every turn, rabbit 1 runs 2 meters.
At each turn, rabbit 2:
- sleeps, 30% of the time;
- runs 3 meters, 70% of the time.
At each turn, rabbit 3:
- runs 1 meter, 80% of the time;
- runs 10 meters, 20% of the time.
The difficulty in the race is that the track has little slippery hills. So after each movement, rabbits can slide down a hill bringing them either closer to the finishing line, or closer to the starting line. How much they slide and in what direction depends on the slope of the hill at their current position, and how many meters they ran during this turn. Each position (or meter) of the hill has a slope represented by an integer between -3 and +2. If the slope is :
- zero : then, there is no hill at this position and rabbits that reach this position stay there.
- a negative integer : then, there is a declining side of a hill at this position, and all rabbits reaching this position will slide down
to a new position that is closer to the finishing line. The new position will be the current position minus the slope times the number of meters the rabbit ran.
For example, assume a rabbit was in position 10, then ran 5 meters to position 15. If the slope at position 15 is -2, then the new position of the rabbit will be 15 - (-2 x 5) = 25.
- a positive integer : then, there is a rising side of hill at that position, and all rabbits reaching this position will slide down to a new position that is closer to the starting line. The new position will be the current position minus the slope times the number of meters the rabbit ran.
For example, assume a rabbit was in position 10, then ran 5 meters to position 15. If the slope at position 15 is +1, then the new position of the rabbit will be 15 - (+1 x 5) = 10.
Notes on the race:
- Rabbits have 40 turns to reach the finish line. If after 40 turns no one has managed to reach position 19 (or beyond), then the race is cancelled and no winner is declared.
- A rabbit?s position can never go below 0. If, after calculating a rabbit?s position, you arrive at a negative position (ex. position -3), then consider that it is at position 0.
- Consider that any position outside the track (ex. position 0 or position 20) has a slope of 0.
- If a rabbit reaches position 19 (or goes beyond it), it does not immediately win the race. If any other rabbit reaches position 19 (or beyond) during the same turn, then there is a tie.
- If at the same turn, one rabbit reaches position 19, and another reaches a position higher than 19, the second rabbit does not win the race because it went further than the first. They both win.
Ok I know this is long and boring to read but I already completed the majority of the assignment here is my code:
public class Assignment_3 {
public static void main (String args[])
int[] position = new int[20];
int[] slope = new int[20];
int[] moveRabbit = new int[4];
moveRabbit[1] = 2;
int[] currentPosition = new int[4];
int currentPositionandSlope = 0;
for (int i=0;i<position.length;i++)
{ position=i;
System.out.print(position[i] + " ");
System.out.println();
for (int i=0;i<(position.length-5);i++)
{ slope[i]=(int) (-3 + Math.random()*5);
for (int i=0;i<position.length;i++)
System.out.print(slope[i] + " ");
System.out.println();
for (int turn=1;turn<=40;turn++)
int randomNb0 = (int) (Math.random () * 100);
int randomNb2 = (int) (Math.random () * 100);
int randomNb3 = (int) (Math.random () * 100);
if (randomNb0<=50)
moveRabbit[0] = 0;
else if (randomNb<=30)
moveRabbit[0] = 4;
else
moveRabbit[0] = 3;
if (randomNb2<=30)
moveRabbit[2] = 0;
else
moveRabbit[2] = 3;
if (randomNb3<=80)
moveRabbit[3] = 1;
else
moveRabbit[3] = 10;
for (int j=0;j<=3;j++)
System.out.println ("Rabbit" + j + " is at position " + position[currentPosition[j]]);
if (slope[currentPosition[j]+moveRabbit[i]] < 0)
currentPositionandSlope = position[currentPosition[j]+moveRabbit[j]] - (slope[currentPosition[j]+moveRabbit[j]] * moveRabbit[j]);
else if (slope[currentPosition[j]+moveRabbit[i]] > 0)
currentPositionandSlope = position[currentPosition[j]+moveRabbit[j]] - (slope[currentPosition[j]+moveRabbit[j]] * moveRabbit[j]);
else
currentPositionandSlope = (currentPosition[j]+moveRabbit[j]);
System.out.println ("it will move by " + moveRabbit[j] + ", but at position " + (position[currentPosition[j]] + moveRabbit[j]) + " there is a slope of " + slope[currentPosition[j] + moveRabbit[j]]);
System.out.println ("so it will slip by " + (position[currentPositionandSlope] - moveRabbit[j]) + " positions, and end up at position " + position[currentPositionandSlope]);
currentPosition[j] += currentPositionandSlope;
*Ok basically my question is that in the assignment there is an example output where the rabbit is at position 21 but the array is only 20 in length and my program crashes if i go beyond the array length.*
The example output is here:
Welcome to the 4 rabbit race:
position: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
slopes: 0 0 1 -2 1 0 -1 -1 1 -2 1 0 -1 -1 1 0 0 0 0 0
TURN #1
rabbit 0 is at position 0
it will move by 3, but at position 3 there is a slope of -2
so it will slip by 6 positions, and end up at position 9
rabbit 1 is at position 0
it will move by 2, but at position 2 there is a slope of 1
so it will slip by -2 positions, and end up at position 0
rabbit 2 is at position 0
it will move by 3, but at position 3 there is a slope of -2
so it will slip by 6 positions, and end up at position 9
rabbit 3 is at position 0
it will move by 1, but at position 1 there is a slope of 0
so it will slip by 0 positions, and end up at position 1
TURN #2
rabbit 0 is at position 9
it will move by 0, but at position 9 there is a slope of -2
so it will slip by 0 positions, and end up at position 9
rabbit 1 is at position 0
it will move by 2, but at position 2 there is a slope of 1
so it will slip by -2 positions, and end up at position 0
rabbit 2 is at position 9
it will move by 3, but at position 12 there is a slope of -1
so it will slip by 3 positions, and end up at position 15
rabbit 3 is at position 1
it will move by 1, but at position 2 there is a slope of 1
so it will slip by -1 positions, and end up at position 1
TURN #3
rabbit 0 is at position 9
it will move by 3, but at position 12 there is a slope of -1
so it will slip by 3 positions, and end up at position 15
rabbit 1 is at position 0
it will move by 2, but at position 2 there is a slope of 1
so it will slip by -2 positions, and end up at position 0
rabbit 2 is at position 15
it will move by 3, but at position 18 there is a slope of 0
so it will slip by 0 positions, and end up at position 18
rabbit 3 is at position 1
3
it will move by 10, but at position 11 there is a slope of 0
so it will slip by 0 positions, and end up at position 11
TURN #4
rabbit 0 is at position 15
it will move by 0, but at position 15 there is a slope of 0
so it will slip by 0 positions, and end up at position 15
rabbit 1 is at position 0
it will move by 2, but at position 2 there is a slope of 1
so it will slip by -2 positions, and end up at position 0
*rabbit 2 is at position 18*
*it will move by 3, but at position 21 there is a slope of 0*
*so it will slip by 0 positions, and end up at position 21*
*We have a potential winner...*
rabbit 3 is at position 11
it will move by 1, but at position 12 there is a slope of -1
so it will slip by 1 positions, and end up at position 13
So yeah :) that's basically my question (all this text for a simple question like that lol)
If you've managed to get to the end of my post then any guidance on my code would be appreciated too :)I'm not going to read that long post. As suggested, produce an SSCCE
and paste in the exact, complete error message, and indicate clearly which line causes it.
I did notice this though:
Ok basically my question is that in the assignment there is an example output where the rabbit
is at position 21 but the array is only 20 in length and my program crashes if i go beyond the array length.Either you're misunderstanding something, or the assignment has a typo. If you have an array of length 20, then the indices are 0..19.
Maybe the instructor is calling index 0 position 1--separating Java's array impelementation details from
colloquial 1-based counting, so that the rabbit starts at "position 1" (index 0) goes through "position 20"
(index 19), and when he's done, he's "at postion 21"--i.e., past the finish line, off the end of the course, etc.
This won't correspond to any index in the array, but can still be considered a logical position in the race. "Oh, he's
at position 21. He's done. There's nothing more to do with the array, as it has no slot corresponding to
this 'done' position."
That's pure speculation on my part. You'll have to ask your instructor or figure out for yourself what's going on. -
Refresh Issue in Oracle ADF In JDeveloper
Hi all,
My ADF Application is having around 350 Forms. Application size is 700MB. I am facing a refresh issue in this application. whenever i am modifying any queries in view objects or lookups it is not reflecting immediately. Say : i modified one query. Then i deployed the application means the query is taking the old query. to take the modified query i have to rebuilt the view object. Every time i am facing this same problem. Some times within 2-3 deployments the query is modified by itself(without rebuild) and working fine. Sometime after 10 times also it is taking the old query only. Every time i have to rebuilt to fix this issue. Please help me to fix this issue. I am using oralce 11g.Try to invoke Clean All Operation before you deploy the application.
From Main Menu -- >Build --> Clean All -
When I was asked to upgrade Firefox it did say it was not presently compatible with Google Tool Bar. I have lost most of my buttons for Google now. How long will it be before this compatibility issue is resolved? Can I go backwards to the previous version?
I suspect an extension that you had isn't compatible with Firefox 5.
You can try this extension to override compatibility issues,
* https://addons.mozilla.org/en-US/firefox/addon/add-on-compatibility-reporter/
If you still want to downgrade, see here:
* http://www.mozilla.com/en-US/firefox/all-older.html
* http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest-4.0/ - choose the operating system, then '''en-US''' directory
* [[installing firefox]] -
Scrollbar refresh issue in ADF Table
Hello, All
We have an issue regarding the ADF Tables. Please let me know if it is a Oracle bug. All of us know that 'ExecuteQuery' operation refreshes the cache in View Objects.
But, based on our testing results, there might be a table refresh issue on vertical scrollbars after this opertion is executed.
Settings:
In the attached example project, we have a ADF RichTable included in a PanelCollection.
In addition, We set 'AutoHeightRows' property on this ADF RichTable in order to show scrollbars on the PanelCollection.
Furthremore, a standard CommandButton is created on the toolbar to execute queries.
Experimental Steps:
1. Use your mouse to move the vertical scrollbar to around the center of its range. This behavior causes the scrollbar scrolling vertically.
2. Click on any row showing in the table right now, make it to be the active row.
3. Press the 'ExecuteQuery' button, waiting for the table refresh.
Results:
1. Active row moves to the first row in the rowset.
2. Vertical scrollbar stay in the center of its range without moving to the first row.
3. The first row is hidden from end users. The user can not see the active row in this case.
FYI:
The attached project can be accessed from the following link:
http://www.4shared.com/zip/Xn4Ki0DP/Application3.html
In this project, we tried to set 'partialTriggers' on RichTable and its surrounding PanelCollection separately. But, the refreshing issue still exists.
Regards,
David HeWelcome David to forums.
Always mention your exact Jdev version. For more information read this: https://forums.oracle.com/forums/ann.jspa?annID=56
I too faced the similar kind of issue in one of my application.
As you have not mentioned the exact jdev version, I will tell you what I did in my application which was developed using Jdev 11.1.2.0
After the VO is executed, you can write the below line of code to show the first rows in the table.
applicationsRichTable.setDisplayRow(applicationsRichTable.DISPLAY_ROW_FIRST);
//applicationRichTable is the binding for the RichTable in managed beanHope it helps. -
Here's a strange refresh issue with the Apex Calendar. None of the built-in buttons (Monthly, Weekly, Daily, Previous, or Next) are refreshing the calendar with any entries at all when I first load the page. The grid and labels will be updated correctly but the data is not there.
The weird thing is that after a page refreshes, everything suddenly works. I've tried apex.widget.calendar.ajax_calendar('M','same'); etc to no avail. Any help on this would be most appreciated.
Thanks.
mwtSame thing happening on my iMac. Can't do much on the computer.
-
I can no longer post I photo pxs to Facebook, the "publish" command is not active
I can no longer post IPhots pictures to Facebook, the "publish" command is not active
On what Mac or iDevice running what operating system?
Maybe you are looking for
-
Hi all, Is it possible to have tab child components of a tabset oriented in a vertical direction (so that you can have it used on a left menu fragment)? the default layout keeps child tabs in a horizontal direction. Any clue?
-
I have a large Captivate 4 project (160 slides). I imported a PowerPoint and had Captivate add a pause button for each slide (Advance Slide On mouse click). At a later date, I decided to remove the buttons on each slide so that the project would adva
-
How to unstall Adobe Reader 10.1.6
I installed Adobe Reader 11 and now I cannot delete Adobe Reader 10.1.6 When I try it tells me to get in contact with Adobe. HELP - I do not want 2 on the computer.
-
is at&t ipad3 locked? I want to use it in egypt with vodafone egypt is there any limit for that? thanks
-
Sieve port doesn't seem to be listening
After the Mavericks upgrade, I noticed that the roundcube plugin was failing for managesieve. I get the famous "cannot connect to server" dialog in roundcube when selecting the plug-in. After verifying the setup was still correct, I noticed that I c