|
Thread Rules 1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution. 2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20) 3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible. 4. Use [code] tags to format code blocks. |
So I thought I'd try Google Web Toolkit and Eclipse. I have never used Eclipse before so I have a bit of trouble setting it up. I've used this guide http://code.google.com/intl/sv-SE/webtoolkit/usingeclipse.html but when I am starting the web server with Debug As > Web Application I get the following output in the console:
+ Show Spoiler +java.lang.IllegalArgumentException: URI has an authority component at java.io.File.<init>(Unknown Source) at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:260) at com.google.gwt.dev.cfg.ModuleDefLoader$1.load(ModuleDefLoader.java:198) at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule(ModuleDefLoader.java:324) at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(ModuleDefLoader.java:156) at com.google.gwt.dev.DevModeBase.loadModule(DevModeBase.java  92) at com.google.gwt.dev.DevMode.loadModule(DevMode.java:557) at com.google.gwt.dev.DevMode.doStartup(DevMode.java:443) at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1058) at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:811) at com.google.gwt.dev.DevMode.main(DevMode.java:311) Exception in thread "Thread-2" java.lang.IllegalArgumentException: URI has an authority component at java.io.File.<init>(Unknown Source) What does this mean?
EDIT: [SOLVED] Apparently I cannot use my server as workspace.
|
Just a quick question. Is it safe to assume that conventions for 2d collision are the same as 3d collision just with another axis?
I currently have my collision function to check the two possible scenerios on each axis that make it so collision is never possible and if none of them are true then it is assumed they are colliding.
ie obj 1 right side is less than obj 2 left side, collision is never possible.
I am not taking orientation into account in the calculations, just the collision cube.
|
On September 14 2011 07:18 Phrost wrote: Just a quick question. Is it safe to assume that conventions for 2d collision are the same as 3d collision just with another axis?
I currently have my collision function to check the two possible scenerios on each axis that make it so collision is never possible and if none of them are true then it is assumed they are colliding.
ie obj 1 right side is less than obj 2 left side, collision is never possible.
I am not taking orientation into account in the calculations, just the collision cube.
Yes, that works just fine, if a "boolean" check with AABBs is really all you want.
|
On September 13 2011 13:26 catamorphist wrote:Show nested quote +On September 13 2011 10:59 Clank wrote: ok, im in high school and looking for some good extracurriculars for colleges. I have limited knowledge in programming, as I've only taken 2 classes, one intro to basic at school, and then an intro to python. I did very well in those classes and enjoyed them , but still, im quite nooby. Basically what im wondering is, do you think it would be possible for me to try and learn how to make a very basic app for the app store? And if that would be too challenging, do you have any suggestions to try and incorporate programming into a fun, good extracurricular? No, you could do it in a couple weeks worth of evenings. Go do it!
ok, thank you! any tips for getting starting?
|
On September 14 2011 08:14 Clank wrote:Show nested quote +On September 13 2011 13:26 catamorphist wrote:On September 13 2011 10:59 Clank wrote: ok, im in high school and looking for some good extracurriculars for colleges. I have limited knowledge in programming, as I've only taken 2 classes, one intro to basic at school, and then an intro to python. I did very well in those classes and enjoyed them , but still, im quite nooby. Basically what im wondering is, do you think it would be possible for me to try and learn how to make a very basic app for the app store? And if that would be too challenging, do you have any suggestions to try and incorporate programming into a fun, good extracurricular? No, you could do it in a couple weeks worth of evenings. Go do it! ok, thank you! any tips for getting starting?
Well, I jumped the gun a little, because I haven't written any iOS apps myself, so I can't give you a lot of advice. Also, I don't think there's an official way to write iOS apps under Windows or Linux, so unless you have a Mac, it's going to be more of a pain in the butt (you'll have to use some cross-compiling tool.)
But if you do have a Mac, then Apple's preferred IDE, XCode, is free and includes all the tools you need to write apps, including iPhone and iPad emulators for testing them. So you should grab it and start looking at the built-in tutorials and documentation.
http://developer.apple.com/xcode/
|
|
On September 14 2011 07:57 heishe wrote:Show nested quote +On September 14 2011 07:18 Phrost wrote: Just a quick question. Is it safe to assume that conventions for 2d collision are the same as 3d collision just with another axis?
I currently have my collision function to check the two possible scenerios on each axis that make it so collision is never possible and if none of them are true then it is assumed they are colliding.
ie obj 1 right side is less than obj 2 left side, collision is never possible.
I am not taking orientation into account in the calculations, just the collision cube. Yes, that works just fine, if a "boolean" check with AABBs is really all you want.
I just don't want you to walk into a tree. That's about it
|
Hey i was wondering if anyone with a decent amount of knowledge in Java could help me with some code? Im pretty confused right now, and ive been staring at my screen for a few hours hoping i would miraculously figure it out. I really only need some help getting started in the right direction, because im just lost from the start.
|
Hyrule18969 Posts
On September 17 2011 12:30 eFonSG wrote: Hey i was wondering if anyone with a decent amount of knowledge in Java could help me with some code? Im pretty confused right now, and ive been staring at my screen for a few hours hoping i would miraculously figure it out. I really only need some help getting started in the right direction, because im just lost from the start. Elaborate? I know the OP says not to post and ask what's wrong, but you can post and say "I tried X, Y, and Z and I still don't know what's going on. Can anyone help?" That's actually the attitude I'd love to see going on.
On September 14 2011 08:14 Clank wrote:Show nested quote +On September 13 2011 13:26 catamorphist wrote:On September 13 2011 10:59 Clank wrote: ok, im in high school and looking for some good extracurriculars for colleges. I have limited knowledge in programming, as I've only taken 2 classes, one intro to basic at school, and then an intro to python. I did very well in those classes and enjoyed them , but still, im quite nooby. Basically what im wondering is, do you think it would be possible for me to try and learn how to make a very basic app for the app store? And if that would be too challenging, do you have any suggestions to try and incorporate programming into a fun, good extracurricular? No, you could do it in a couple weeks worth of evenings. Go do it! ok, thank you! any tips for getting starting? Just Do It™. That's my approach.
|
On September 17 2011 12:52 tofucake wrote:Show nested quote +On September 17 2011 12:30 eFonSG wrote: Hey i was wondering if anyone with a decent amount of knowledge in Java could help me with some code? Im pretty confused right now, and ive been staring at my screen for a few hours hoping i would miraculously figure it out. I really only need some help getting started in the right direction, because im just lost from the start. Elaborate? I know the OP says not to post and ask what's wrong, but you can post and say "I tried X, Y, and Z and I still don't know what's going on. Can anyone help?" That's actually the attitude I'd love to see going on. Show nested quote +On September 14 2011 08:14 Clank wrote:On September 13 2011 13:26 catamorphist wrote:On September 13 2011 10:59 Clank wrote: ok, im in high school and looking for some good extracurriculars for colleges. I have limited knowledge in programming, as I've only taken 2 classes, one intro to basic at school, and then an intro to python. I did very well in those classes and enjoyed them , but still, im quite nooby. Basically what im wondering is, do you think it would be possible for me to try and learn how to make a very basic app for the app store? And if that would be too challenging, do you have any suggestions to try and incorporate programming into a fun, good extracurricular? No, you could do it in a couple weeks worth of evenings. Go do it! ok, thank you! any tips for getting starting? Just Do It™. That's my approach.
Can do, Im trying to make a program that will ask for a user input for a full name, then re-arrange the order and capitalization to match the exercise ( and it forces me to use nextLine() rather than next()). For example import java.util.Scanner; public class ThreeNames{ public static void main(String[]args){ Scanner A = new Scanner (System.in); System.out.print("Please enter your name: "); String Name = A.nextLine();
The user would type in a full name, such as firstname middlename lastname, i need to then rearrange it so that it shows the initials(F.M.L), and then re-arrange it so that its Lastname, firstname M. Ive been trying to use substring() to break apart the the string Name into just the first letters so that i can capitalize them
String B = (Name.substring(0,1)).toUpperCase());
This would give me the very fist letter of the first name so that i could capitalize it. My problem is that i dont know how to get the first letters of the middlename and lastname, so i can capitalize them and put them in proper format. I was under the assumption that substring() can only have ints as its argument and not whitespace characters, which was my first guess. But that failed pretty miserably. So im not really sure how to break up the string Name because i cant predict how long the name will be, and therefore cannot have an actual int value for the substring. Maybe im looking at it wrong, but any help would be greatly appreciated.
|
Hyrule18969 Posts
|
you can use split, and search for blank spaces. Or you can use a Tokenizer to break the string up into it's separate parts and get them that way as well, both should work fine
|
Out of curiosity, what domain are most of the programmers/developers here in? Web, mobile, enterprise systems, etc?
I run a little web agency where I also do the web development work (HTML5/PHP/MySQL).
|
On September 17 2011 13:44 eFonSG wrote:Show nested quote +On September 17 2011 12:52 tofucake wrote:On September 17 2011 12:30 eFonSG wrote: Hey i was wondering if anyone with a decent amount of knowledge in Java could help me with some code? Im pretty confused right now, and ive been staring at my screen for a few hours hoping i would miraculously figure it out. I really only need some help getting started in the right direction, because im just lost from the start. Elaborate? I know the OP says not to post and ask what's wrong, but you can post and say "I tried X, Y, and Z and I still don't know what's going on. Can anyone help?" That's actually the attitude I'd love to see going on. On September 14 2011 08:14 Clank wrote:On September 13 2011 13:26 catamorphist wrote:On September 13 2011 10:59 Clank wrote: ok, im in high school and looking for some good extracurriculars for colleges. I have limited knowledge in programming, as I've only taken 2 classes, one intro to basic at school, and then an intro to python. I did very well in those classes and enjoyed them , but still, im quite nooby. Basically what im wondering is, do you think it would be possible for me to try and learn how to make a very basic app for the app store? And if that would be too challenging, do you have any suggestions to try and incorporate programming into a fun, good extracurricular? No, you could do it in a couple weeks worth of evenings. Go do it! ok, thank you! any tips for getting starting? Just Do It™. That's my approach. Can do, Im trying to make a program that will ask for a user input for a full name, then re-arrange the order and capitalization to match the exercise ( and it forces me to use nextLine() rather than next()). For example import java.util.Scanner; public class ThreeNames{ public static void main(String[]args){ Scanner A = new Scanner (System.in); System.out.print("Please enter your name: "); String Name = A.nextLine(); The user would type in a full name, such as firstname middlename lastname, i need to then rearrange it so that it shows the initials(F.M.L), and then re-arrange it so that its Lastname, firstname M. Ive been trying to use substring() to break apart the the string Name into just the first letters so that i can capitalize them String B = (Name.substring(0,1)).toUpperCase()); This would give me the very fist letter of the first name so that i could capitalize it. My problem is that i dont know how to get the first letters of the middlename and lastname, so i can capitalize them and put them in proper format. I was under the assumption that substring() can only have ints as its argument and not whitespace characters, which was my first guess. But that failed pretty miserably. So im not really sure how to break up the string Name because i cant predict how long the name will be, and therefore cannot have an actual int value for the substring. Maybe im looking at it wrong, but any help would be greatly appreciated.
I remember doing a similar exercise back in my first java class. I believe I did it just with a mixture of Substring and IndexOf methods. Split would be easier though. Check javadocs String class for the Substring and IndexOf method documentation if you decide to go that route. Use the IndexOf method taking a string and integer as parameters (so you can specify not only the " " whitespace string, but also the position to start the search from so you can substring out the names you need).
|
On September 18 2011 01:21 Shootist wrote: Out of curiosity, what domain are most of the programmers/developers here in? Web, mobile, enterprise systems, etc?
I run a little web agency where I also do the web development work (HTML5/PHP/MySQL). Web/enterprise java developer here. Currently developing software for one of the largest airline companies in Russia. Syberian Airlines website. Yep im very proud of it. ^_^
|
why doesnt anyone who can program c++, write a video capture driver that can read fullscreen directx games and make them accessible for flash live media encoder
|
On September 18 2011 01:21 Shootist wrote: Out of curiosity, what domain are most of the programmers/developers here in? Web, mobile, enterprise systems, etc?
I run a little web agency where I also do the web development work (HTML5/PHP/MySQL).
Apps for the iPhone (so Objective-C)... i know Java pretty good too....
What I'd like to learn in the future is HTML5 for development on Windows 8... looks pretty awesome the way they're setting it up
|
On September 18 2011 01:21 Shootist wrote: Out of curiosity, what domain are most of the programmers/developers here in? Web, mobile, enterprise systems, etc?
I run a little web agency where I also do the web development work (HTML5/PHP/MySQL). I study game dev at uni, i use some c# and xna framework for xbox, C++ and directx for windows games and i code in C++ for iphone stuff!
I kinda know some java too which i learned at college
|
On September 18 2011 01:21 Shootist wrote: Out of curiosity, what domain are most of the programmers/developers here in? Web, mobile, enterprise systems, etc?
I run a little web agency where I also do the web development work (HTML5/PHP/MySQL).
Developing a mixed(native low level code with a managed GUI on top) C++ particle analysis program in Visual Studio 2008. I work on an asp.net website used internally for test results analysis. The test results are reported to asp.net web services from various machines and stored in a postgresql database. The asp.net website queries the postgresql database to get information to show on the site. I run a build system and test system using CruiseControl.net and Java CruiseControl. I use Nant with ccnet and Ant with the normal java cruisecontrol. I use XML heavily and CSS and XSL to format data into build and test notification emails.
|
On September 14 2011 07:18 Phrost wrote: Just a quick question. Is it safe to assume that conventions for 2d collision are the same as 3d collision just with another axis?
I currently have my collision function to check the two possible scenerios on each axis that make it so collision is never possible and if none of them are true then it is assumed they are colliding.
ie obj 1 right side is less than obj 2 left side, collision is never possible.
I am not taking orientation into account in the calculations, just the collision cube.
3d collision detection requires a solid understanding of 3d vectors and planes. Determining whether a ray between two points intersects a plane requires some study at first.
This is a really nice page to get started http://www.gamespp.com/algorithms/collisionDetection.html
|
|
|
|