This is not a very java question
hi, I was implementing the bresenham algorithm taking a look at this link:
http://en.wikipedia.org/wiki/Bresenham%27s_line_algorithm
But I don't understand this lines:
if (2 * error >= deltax) {
y = y + ystep
error = error - deltax
}why it compares and decrements error with deltax??
Do you understand how the first piece of pseudocode given on Wikipedia works? Because from that point, it's fairly trivial. The parameter 'error' in the third example is equal to 'error * deltax' in the first example.
Similar Messages
-
I've followed the instructions to re-enable apple supplied Java SE 6 following upgrade to version 7 which caused a number of applications to stop working.
I wondered if anyone has had any joy re-enabling JAVA SE 6. I've tried contacting Apple but cannot get any response. They've sent me back default messages claiming that they have tried to contact me - they haven't! I'd be grateful for some help with this. ThanksThis is the latest news about Java.
http://www.macobserver.com/tmo/article/java-7-update-13-addresses-security-vulne rability-os-x-block
I do not use Java. So I cannot verify that this is the solution or not..
Best. -
Its not a really java question (its a bat file question)
hi all,
I created one bat file like below
start java.exe -mx50m -classpath ".\SerialConnection.jar" spc.SerialConnection.SECSConnection
its working
but I would like to want if I open the bat file I want to disappear the dos window..
if anyone knows please send the solution
thanksDoes :
java -mx50m -classpath ".\SerialConnection.jar"
spc.SerialConnection.SECSConnection &
work ?No because that's Unix shell syntax which does not work in Windows.
Jesper -
This is not troubleshoot, just a question from what it is strange form me and made me lose support to Firefox
Firefox '''3.6''' to Firefox 7 in 6 months.
-
I am very new to Macs and iPhoto so this may be an idiot's question, but I have just created my first photo book and want to buy it, but the "buy book" button is not highlighted and when I click it nothing happens. Is there some step I am missing or some connection I need? I am on the internet. Thanks!
I have now recently downloaded 10.0.2 which is confusing in itself, as, as far as I can ascertain that is actually version 11, but I'm not even sure about that.
Version 10.0.2 is the newest version and the successor to GarageBand '11 (version 6.0.5).
The '11 is referring to the iLife '11 suit of multimedia application - the older GarageBand was a part of this bundle.
Have a look at Edgar's graphical enhanced manuals, the explain very detailed how things work and why. You can buy them as iBooks from the iBook store or directly from the page:
http://DingDingMusic.com/Manuals/ -
If I upgrade to Mountain Lion on the computer that will install it, will my WIFI still work on the computer that cannot be upgraded? I know this is a very basic question. Trying to hold out as long as I can, but purchasing an iPhone for Christmas and new iMac next year when warrently expires.
Thank U very much for the quick reply, I wanted to upgrade this weekend, but still on the fence. I can live with the software that is not compatible, they are on another compuetr, just didn't want the obvious stuff to stop working.
-
This is a very simple question,but I don't know.Please me.Thank you!
I am a Chinese student in a university.I have a very simple question to ask.
I have writed a EJB module,and I have deployed to Weblogic8.1 successfully.
1.Now I want to write a client program.Is it necessary that the client program is packaged in the EJB package.For example ,the EJB package is Beans,is "package Beans " or "import Beans.*" necessary in my client program.
2.If I only know the EJB interfaces,that means the EJB module is writed by other programer.I want to know how I can write the client program.How can I call EJB module's method writed by other programer.Could you give me a simple example?
Thank you very much.I have writed a EJB module,and I have deployed to
Weblogic8.1 successfully.:-)
1.Now I want to write a client program.Is it
necessary that the client program is packaged in the
EJB package.For example ,the EJB package is Beans,is
"package Beans " or "import Beans.*" necessary in my
client program.You need not package your client with the EJB. It can be a JSP/servlet or a stand-alone application.
2.If I only know the EJB interfaces,that means the
EJB module is writed by other programer.I want to
know how I can write the client program.How can I
call EJB module's method writed by other
programer.Could you give me a simple example?
import java.util.*;
import javax.naming.*;
import javax.rmi.PortableRemoteObject;
import examples.*;
class TestEJBHello {
public static void main(String[] args) {
Context context = null;
Object object = null;
// Hashtable for environment properties.
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
env.put(Context.PROVIDER_URL, "t3://localhost:7001");
HelloHome home = null;
HelloWorld hello = null;
try {
context = new InitialContext(env);
object = context.lookup("HelloWorldTest");
System.out.println(" JNDI Looked up >>> " +object);
home = (HelloHome)PortableRemoteObject.narrow(object, HelloHome.class);
hello = home.create();
System.out.println(hello.hello());
} catch(Exception e) {
e.printStackTrace();
} finally {
close(context); // Closes the initial context.
private static void close(Context context) {
try {
context.close();
System.out.println("*** Context closed. ***");
} catch (NamingException namingException) {
namingException.printStackTrace();
} catch(Exception exception) {
exception.printStackTrace();
}Here's a sample client app code I use for a HelloWorld EJB. You need to have a EJB client JAR containing the home and remote interfaces in the classpath during compile time and runtime.
x -
Jli.dll: why it's is not a Java question?
jli.dll came with the downloaded program. Why lock my question?
probably because this is not a scite forum. certainly I had no idea what is was when I read your post.
-- and becuase this post doesn't say that the downloaded program is actually the JDK (or is it??) - if you make us guess what you could have actually told us - we are less likely to feel inclined to help you - don't assume we can read your mind.
however I have done a few moments research and it looks like it might be vaguely java related (but not java compiler related).
My windows install of java indeed does contain a jli.dll so if your's does not, it might be stuffed, and if the msi is corrupt, that might be why it didn't get installed.
I would try to download a new copy and reinstall the JDK and see what what happens. If there are problems (basic JDK problems - not skite problems) then post to the [ new to java|http://forums.sun.com/forum.jspa?forumID=54] forum for assistance. for skite problems go ask skite site. -
Entities not showing Contribution - very basic question
Hi guys,
Apologies for this very basic question - I'm very new to Hyperion, with just a weeks training! Anyway I'm building a basic model and have noticed that in the Value dimension my entities are not rolling up to the [Contribution Total]. This means that Entities do not roll up!!
One suggested issue was that I needed a Sub Consolidate in the Rules, however I've set the attribute "ConsolidationRules" to be = to N. In the documentation this is defined as "N to use the default consolidation and eliminations."
Wondering is there anything else that is needed to use default consolidations, or do I need to create some Rules??
Thanks
GWhy do you think it is not rolling up? If your Consoldiation Rules are set to 'N' you do not need rules.
Make sure your accounts are set to IsConsoldiate. Make sure you are viewing a 'Parent.Child' at Contribution Total. -
Siri go down all day long! did not respond to any questions, always: "I'm really sorry about this, but i can't take any re questa right now. Please try again in a little while. " please help me!
very very thanks!!!
-
Where can I report this to Apple, I've just spent 20 minutes trying to find some way to contact them.
Sorry Gimp, but in fairness you didn't solve my problem, you got the points though (accidentally).
It may well have worked, but just downloading the Combo update directly from Apple did the trick. This answer from Scott Newman put me onto it.
However, in this case, there is very clearly an issue that is correlated to two things: 1) Using the automated "Software Update" as compared to downloading and using the separate Mac OS X 10.7.3 Combo Updater; and 2) Certain Mac notebook computers. In most cases, but not all, running the Combo Updater over a failed 10.7.3 update using Software Updater will fix the problems. If a user can't get to the desktop or can't download the updater because of the previous failed update, there is information (albit geeky) in the previously noted thread to deal with this.
Most older, experienced Mac users never trust the automated Software Update process for system updates and always download and use the related "Combo" updater. Unfortunately, many newer Mac users know nothing about this. Apple's revenues and profit growth have come at the expense of having an exponentiall increase in the number of non-Geek users who just want their Mac to work like their toaster.
Thanks very much for your replies though -
I have my iTunes on my PC and have an iPod Classic, I have just purchased an iPod touch and want to load all of my Itunes music onto it, how do I do this and not loose my library, I'm not very computer savvy.
You sync music the same way as on the Classic. What you sync to an iPod does not effect the iTunes library on your computer.
iTunes 11 for Windows: Syncing overview
or
iTunes 11 for Mac: Syncing overview -
I currently have a DROID RAZR M and I'm 1 year into my 2 year contract. Since the Kitkat update, the phone won't stay charged and it's very buggy. I know this is not Verizons fault but it's also not mine. I would like to change my phone to an iPhone 5s and keep my same plan but switch to the Edge program. Is this possible? I don't think I should have to pay an early termination fee or anything like that since my phone has become almost unusable. I know under normal circumstances you have to wait 2 yrs to upgrade but due to the update and the poor service I'm now getting I hope Verizon can make an exception. Thank you.
How recently did you switch? If it's less than 60 days, then Verizon simply reinstates your previous account. The fact that you were on the EDGE plan and mailed the devices back, and they apparently are somewhere in the system, could cause complications, and it might just work out that you just go back on the same plan and they set you up with the same devices. I'm not sure how it will go - but since you are still being billed for the devices...
-
Thanks, the write-up was informative, But it do not answer for my question, that is where to look for serial # on my Macbook Pro Mid 2010 White Unibody Core 2 Duo 2.4 GHz 13.3"? Its not on bottom-case and the above article does not mention this model?
Click on the Apple and then on about this Mac. In the new window, click on the "version 10.9.2" until you see the serial number displayed.
-
Hey. I have received an iTunes gift card, so I was all excited, punching the code into the "redeem" option on iTunes on my iPad2; however, I kept on getting the alert, "This is not recognised as a valid code". It is very legible, though. How come?
The obvious answer I think is that maybe you are not entering the letters and numbers correctly. I almost never get it right the first time when I use a gift card.
Try entering the code again - slowly and methodically. If it still doesn't work - look here for help.
http://support.apple.com/kb/TS1292
One final thought - if you are using a gift card that was purchased in another country - say like you have a Canada gift card and you live in the U.S. - that card will not work in the U.S. iTunes store.
Maybe you are looking for
-
I had switches off my iPhone 5 at around 20 percent battery next morning I was not able to switch it on. I tried to get it charged but it didn't showed any sign of charging even when plugged in for about 2 hours. I had to take it to apple care centre
-
i purchased a movie to download onto my ipod but i am receiving this error. the last movie i downloaded took a really long time, but this movie received this error after downloading 183.2 MB of 1.29 GB. Please Advise... Thank you 30GB Windows Vista
-
I am trying fsck a mac mini. When I start up in single-user mode, the keyboard(Bluetooth and usb) do not work. I have to unplug the cpu. Does this mean it's broke?
-
Macbook Pro has a siren noise when restarting
When I restart my computer and as it starts to boot up, a loud interval siren noise starts and the computer has a blank black screen. The only way for me to stop it is to shut down my computer right away. Any suggestions on what this problem might be
-
Need some help styling datagrid...
Hi, I have added a datagrid to my flex application and I need to give it a specific style but I can't get it to work. I need to remove the rollover color of the datagrid column headers. I've trawled through the flex forumns and website but so far I'v