galexcd
Members-
Content Count
1,313 -
Joined
-
Last visited
Everything posted by galexcd
-
The Power Of Java the best application that shows java features
galexcd replied to Jdeveloper's topic in Programming
I know this is an old topic, but I didn't see it when it was first posted, and I am obligated to leave my opinion. I HATE java. Java is terrible. What other language can you not compare a string variable to a string? ex: String a="java";return a=="java" //<---RETURNS FALSEThis is because Sun forgot to incorporate strings in Java and instead of developing it into the language, they decided just to make String a class, which makes you hit roadblocks like this. Other things that tick me off about java: You are forced to program object oriented all the time. Even if your program isn't object oriented you need to make all of your methods static so java at least treats it non OO, even though it still is. All Complex data types are passed by reference instead of value when passing them to a method. So you don't even get a choice if you want your variable to be a pointer or not. It just is or it isn't. Not up to the programmer. Why does java make it so difficult to change the amount of elements in an array. I understand about memory allocation but I would prefer if java would automatically garbage collect an old array and pass the values in a new array so you wouldn't have to go through this extra annoying step every time. -
Yes, lowercase-x is the x coord of the fixed point, and uppercase-X(t) returns the x coord of the moving object. And yes t=1 is one full journey of the circle, so what I would suggest if you wanted it to go around once a second smoothly, increment t by 1/100 every 10 milliseconds.
-
There Are Cheats Cheats by Greeneggsandham
galexcd replied to green eggs and ham's topic in Computer Gaming
Of course they apply to all games. How do you think I always win at football? I just open up my real-life console, type in /teleport endzone and win. And when the refs accuse me of cheating I teleport them to Antarctica. -
Assuming you already know how to make gui in java and draw objects on the screen you can find the x and y of a certain object over a given time using sine and cosine.If the point is at x,y, the following two functions would give you the x and y of the object.X(t)=x+r*cos(t*2*PI)Y(t)=y+r*sin(t*2*PI)where r is the radius that you want it to follow, and t is the amount of times you want it to go around for example if you want it to go around once a second, increment T once every second (but if you want the animation to be smother you will have to increment it smaller in smaller amounts in less amount of time)Also since this is java you might want to change PI to Math.PI, unless you have already defined the constant pi in your program.
-
You've redone your site! I saw your website a while back but it wasn't as organized as it is now. Now I am calling your website organized, not professional. In fact, in my opinion it isn't a very good website. Yes it is organized, but the iframe, and all the ads ruin it. You can get the same layout as you get with the iframe with some div layers and some css, but I would prefer if I could escape that top nav bar. It is kind of big to have following me everywhere while I scroll down the page. And as for the ads, I don't like google ads in the middle of content because it blends in and I can't tell the difference when I'm reading it if I'm reading ads or your content. Perhaps a single vertical box of text ads on the right hand side would be better. It just feels cluttered. But other than that I like it. It has a nice little logo, and it is much more organized that it was last time I saw it.
-
If you aren't skilled enough to program your own game then yes the "game creators" will cost money, but there are plenty of free compilers out there if you bothered to learn a real language. You could use a lot of the tools that DemonFire suggested to help you on your quest. Thanks for that list demon. The real price for making the game would come in paying for a team that would help you make it, if you use any classes or engines that require you to buy them (but there are plenty of game engines out there already if you want a pre-built one), and perhaps advertisement costs, and perhaps a server if you want to make a multiplayer game that isn't going to direct connect.
-
Changing A Dynamic Ip How to change your dynamic IP.
galexcd replied to yoofus's topic in General Discussion
If you already have a dynamic IP from your ISP all you have to do is switch your modem off and on... no need to do anything in the command prompt. -
Yes I am quite tired of hearing the whole "vista stole from mac" argument, yes mac incorporated a lot of the features you see in vista in their OS first, but as you said, it's not like any of those features were patented, groundbreaking, innovations that mac brought to the computing world. I've seen search similar to spotlight on websites, I don't know why people are all up in arms about this. Microsoft has been taking ideas from Apple from the beginning, just like Apple seems to like to take ideas from other OS's. That is how the market works now. It's not who can make it first, it is who can make it the best.Which brings me back to you hating mac... Just because you are some insolent, smartass, 15 year old who obviously only cares about his OS being able to run games doesn't mean that macs suck.... In fact their operating system better laid out and more organized than any Microsoft OS is. Now I would prefer linux over mac in almost all occasions, but I still use mac a lot because it is much easier than searching the net for drivers to your graphics card when it could be pre-installed on the computer already. Now I'm not saying that I hate Microsoft Windows. Since XP came out it really isn't that bad of an operating system, I'm just saying it would be my last choice if I was given one.
-
Alright. Use the code I gave you for the "frontend" of your website, meaning the part that the users will see. After you run the first block of code I gave you, upload the second block and name it whatever you want. Then when people go to that page they will see a box where they enter their email and it will add that email to the database. Now for the "backend" part of it that will let you send an email to every single email in that database: First put this code into a .php file and upload it to your server: <?phpif(isset($_POST['from'])){mysql_connect("localhost",$username,$password);mysql_select_db($database);$query=mysql_query("SELECT * FROM 'email'");$to="Bcc:".mysql_result($query,0,"address");for($i=1;i<mysql_num_rows($query);i++)$to.=",".mysql_result($query,i,"address");mysql_close();if(mail($_POST['from'],$_POST['subject'],$_POST['message'],"From:".$_POST['from']."\r\n".$to))echo"Mail sent successfully!";else echo"There was an error when sending the message";}?><form method="post" action="">From:<input name="from"><br>Subject:<input name="subject"><br>Message:<br><textarea name="message"></textarea><input type="submit" value="Send!"></form>Then whenever you want to send an email to everyone on your list just go to this page and hit send. The email puts all of your emails in blind carbon copy so everybody can't see everybody else's email address. The from field is whatever email address you want to send this email from. It will also send a copy to this email for your records. Once again this code wasn't tested so if you have any problems just post em back here and I'll take a look at it.
-
Ah so you want an email list, that's what I thought. Use the code in my first reply to store it in the database, and you can use the php mail() function to send it out to everyone in the database.
-
Well we can't really help you unless you tell us what you want. Do you want this for an account login system, or for an email list or what?
-
Ohh I thought this was some kind of newsletter or something. Didn't realize you wanted a login script. Yeah those are a bit more complicated. Oh and haslip, how did you know he wanted a login script? His initial post had nothing in it to hint to that... I guess you are just a psychic.
-
There is alot of forum software that you can use. Phpbb, AEF, Simple Machines forums, IP Board. All of those are free except IP Board which is what Xisto uses. They have step by step instructions on how to get them running on your server after you upload them to your server.
-
Alright, first I'd suggest creating the structure of the database in phpmyadmin, but if you don't have phpmyadmin, I've included the code below. Ok So the database only needs to hold emails so it is easy. Make a table called email and put one field called address, type varchar, and lets say 30 characters. Incase you don't have phpmyadmin, type this code into a php page, upload it to your server and load the page once. <?phpmysql_connect("localhost",$username,$password);mysql_select_db($database);mysql_query("Create Table 'email'('address' VARCHAR( 30 ));");mysql_close();?> Now that we've got the structure, lets write the php page to add emails to the table. <?phpif(isset($_POST['email']){if(strpos($_POST['email'], "@")!==false&&strpos($_POST['email'], ".")!==false)echo"The email address you entered is not valid";else{mysql_connect("localhost",$username,$password);mysql_select_db($database);mysql_query("Insert INTO 'email' SET 'address'='".addslashes($_POST['email'])."'");mysql_close();}}else{?><form action="" method="post">Email:<input name="email"><input type="submit" value="Add"></form><? } ?> And that should be it.
-
Ahh. What a well written tutorial. You've even got the default values for the parameters in the functions. A nice extra touch. I am not a very neat coder, but I may use this script somewhere on the net. But as some of you know I love short code, the shorter the better and if you don't mind I would like to provide a recursion example: Tabs: function tabs($t=1){ // to print $t number of tab charactersreturn ($t==1)?"\t":"\t".tabs($t-1);} Nls: function nls($n=1){ // to print $n number of new-linesreturn ($n==1)?"\n":"\n".nls($n-1);}
-
Are we allowed to use infinity in our equation as long as the final answer doesn't come out to infinity? If so I will have another equation, but uh if my calculation is correct this should be the biggest one so far... Int(0,8)[x^9dx]=348,678,440 Thats: =348,678,440 For those who can't read my text notation.
-
Although I think Wc3 is way more fun than MMO's it is not an mmorpg like he is asking. It is an rts. Way different.
-
Ahh yes good old net send. That got me a Saturday detention at my school... I was trying to set it up so I could send random messages to different people in the library using the computers, but I didn't realize that it was somehow disabled on all of the user accounts but not on the teacher accounts, so whenever I tried sending something all of the faculty would get my message.... It was pretty funny actually.
-
The goal of a website is not to have the source code easy to read. The goal is to be useful, and the more spaces and linebreaks you have the longer it will take for that particular page to load. I might be the wrong person to reply to this topic because I hate comments. Whenever I code something even if I don't look at it for a year I still know where every part is because I know the way I code. If I make something for somebody else then yes, I will include comments and spaces, otherwise no.