sparkx
Members-
Content Count
368 -
Joined
-
Last visited
Everything posted by sparkx
-
JDBC With Postgresql Cant find org.postgresql.Driver??
sparkx replied to xboxrulz1405241485's topic in Programming
I don't use NetBeans because in my opinion it is just easier to use Notepad (or other editors if you’re on linux) and batch files rather then learning NetBeans. I have used MySQL on windows and received a similar error. It occurs when the jar "org" is not present in the running folder. For example your class is in C:/.../My Documents/my_class.class. The class org.postgresql.Driver located in either a folder named org or org.jar needs to be moved to C:/.../My Documents/. If you upload my_class.class then you need to also upload org.jar because it is required to run the applet.This should solve your problem.Good Luck,Sparkx -
A few ways to tune up your old computer would include.Free up space - Remove old useless programs that require lots of space. The space on the HD itself may not slowdown the computer but programs often run in the background that might slow it down. Also by freeing up some space you could set up virtual ram partitions allowing for more programs to be run.Virus scan - There is a high probability your system has viruses I suggest using AVG or Avast for viruses and Stinger for Spyware.Use msconfig (run --> msconfig) - This will allow you to turn off programs that startup automatically. You would be surprised how many services start up that you don’t really need. There are lots of websites with a list of windows required services just Google "Windows <version> required software."Over Clock - This will probably be the most effective but is the most dangerous to destroying your computer permanently. The main thing to watch for is temperature. Most Computer have a temperature warning siren, when you hear it just turn off your computer and wait for it to cool down. Anyway to over clock simply turn on your computer and press delete (right as you turn it on continuously pressing or holding down delete until something pops up is the best way to get to the menu in my opinion though some will disagree). Once the system menu comes up go to CPU settings and set your CPU GHz you will need to enter in a number between the system min and max. The higher the number the faster your computer goes but the hotter it gets. Linux - If that doesn't work well enough for you I strongly recommend using Linux. Ubuntu is my favorite. Linux will run most windows software also (except software designed for vista and some XP software). Just download wine. I will agree Jeight and just about every other post so far that Linux is probably the best way to go for an old computer.Hope this helps,Sparkx
-
Spam Issues...is Astahost Selling Our Addresses?
sparkx replied to ethergeek's topic in Web Hosting Support
I don't think there is or ever was any problem with Xisto giving out email accounts. I have been in-active for 20 days in a row before and I hadn't noticed an increase in spam emails. You say you have an email from: spamgourmet.com? This is not a large email provider (such as Yahoo, Gmail, MSN est.) there is a possibility that (despite the website's name) they gave your email account to people. There may be a user database lookup (or social network) attached that you are not aware of and people get email accounts from that. I know that seems a little far out, but I have been using Xisto for over a year and it isn't the type of website to give away email accounts. Unless of course you set up an email forwarder on your Xisto account in which case you should be able to disable from the Cpanel.Hope this helps you narrow down how your account is getting spam,Sparkx -
Reply to Toby I don't have the room to keep my computer that far away from me. At the moment my large (not thin) monitor is pressed against the back wall, my keyboard is up against that and that takes up pretty much my entire desk. I would have to agree however that laptops have a strange keyboard setup and is hard to get used to especially if you use the number pad a lot (which is not on most laptops). If I ever got a laptop I would look for one with the mouse pad, scrolling ball on the keyboard and a wireless mouse. The mouse pad is hard for most people to use which is another reason most people like desktops more (even if you can get a tiny mouse to plug into your laptop).Thanks,Sparkx
-
I have never had a laptop of my own, but I do know of people that have used laptops. One problem is they don't stay charged for very long when your using it (you only get a few hours of use in before you run out of battery). I also know people that have had trouble with the battery. I like desktops especially because you can get a decent one cheep (or free) these days. If you put Windows XP rather then Vista on it, it will work just fine and if you use Linux it is just like a high end computer running Windows Vista. Laptops are defiantly more expensive, but I could see good advantages to it, both the mobility and size may make paying more worth it. A little off topic but what do you think about this $30,000 laptop? 5-pen computer and Images. Seems like a bit much for a few projectors but may be a look at future computers, that is if they ever make them work outside of a dark room... Thanks, Sparkx
-
I will download this one... Sounds like fun I thought the beta versions were good (that was about a year ago). I was just a little worried about privacy and security. Everyone knows (like it or not) eventually they will have the technology to have a live feed. Just think about what that would do to privacy (your always be watched). Now if that doesn't bother your then just imagine the threat to national security. We were scared when Russia lunched its first satellite, soon every single person with a computer and an internet connection could access the very same thing. Maybe the U.N. should put a limit to what non-military satellites can do (if they don't already have one).Thanks,Sparkx
-
Forums are often very large and require many pages. Most forum softwares take a long time to make. The one I made however only was a few PHP pages and already out ranks every other one I have seen but the method that you are using will take a lot more space then mine did. I would recommend that you finish your entire tutorial on one post and rather then posting code just make a .txt file, upload it and link to it. This would really help people follow your post's easier. Your post could be a good tutorial if you were to put all the code together but at the moment all I see is a good tutorial in the making that isn't quite ready to be posted yet.Good luck,Sparkx
-
What Is My Mysql Url (connecting Through Java/jdbc)
sparkx replied to sparkx's topic in Websites and Web Designing
That was just a phrase to keep my post shorter and more to the point. Localhost in PHP means the server IP and localhost for java means the client's IP. I am quite aware of the basics of JDBC and PHP in MySQL. I simply need to know the URL to my MySQL server. This is just one of the things that I don't like about the new Cpanel (Cpanel X). The old one told how to connect to each individual database.Thanks,Sparkx -
I have been working on a java applet that requires access to a MySQL database. I have been receiving an error. When I run the file my applet tries to access the user’s database not my server's database! I was using the mysql:localhost/database... method just like in PHP but apparently localhost doesn't mean the same think in Java. Seems funny but I need to know the location (URL) to the MySQL databases on Xisto. I am on the Gamma server if that makes a difference.Thanks,Sparkx
-
3=2 ! Ramanujam's Proof!.... Can U Find Any Flaws?
sparkx replied to shiv's topic in Websites and Web Designing
Replying to Feedbacker I’m confused division by zero is exactly what I said; you just said it in a different way. I said: Any number times 0 is 0. (true use your calculator). You said: Any number divided by 0 is infinity. (also true). Unless there is something I am missing (which might be because I haven't taken calculus in a formal class yet) I think both things are correct. This was simply to show a common mistake made by people who often forget basic rules of math, similar to the mistake that people may make in this problem. Thanks, Sparkx -
I thought I had finally solved this problem but I keep getting errors. I go to put my program on the web and bam security errors again. Anyway I was a little confused about something. I read this and made the Write.jp but it won’t work correctly. I get a java.security.AccessControlException that has access denied for (java.lang.RuntimePermission createClassLoader). Is there any other tutorial that will show me how to sign my jar and attach the policy to it so that the class will be granted permission for all (java.security.AllPermission) and will work for HTML (without modifying my .java file). Kaleb Noclassdeffounderror is caused by something different. I think it has to do with an invalid class or an incorrect class path. Also I think that error is cause by JDK (Java Development Kit) not JRE (Java Runtime Environment). Thanks for the help, Sparkx
-
I’m probably the only person that is able to do so much with Java3D and yet still can't even get some of the Java basics down. Anyway is it (and if so how is it) possible to make a variable editable and readable in multiple class files? It seems like this should be an easy question to answer, but here is a little code to help you understand what I am talking about. public class test extends Applet{ Â public int Col = 0; Â [some long code basically all it does is call for a collision behavior]Â [(TestB multiple times every 100 milliseconds).]Â if(Col==1){ Â Â [...Some collision handling...] Â }}class TestB extends Behavior { Â [I check my collision now I want to set the variable so it can be accessed later] Â if(collision == true){Â Â Col = 0; Â }else{Â Â Col = 1; Â }}That should give you the basics what I am doing. I’m just trying to get the collision results back into my original class not just the Behavior class. Thanks in advanced for helping me with this problem, Sparkx Edit: Spacing and Smilies fixed.
-
I Need Help Finding The Best Way To Learn Php
sparkx replied to dipesh1405241559's topic in Programming
That’s good you already have a goal or "project": to build a web-based game. That is the first step. I suggest that you start by A: Doing a small project then building off of it or B: start with your goal. After all isn't the best way to learn something is by using it the way you want to. Anyway to start off, you should think about what you want to accomplish in small portions for example one of your first may be: build a login page that displays a user's level if logged in else a login page. There are lots of tutorials to do just that (I can't remember but I am sure that I have made a few posts on Xisto). If you are not sure about how to do this (what to search for est.) read on. Basically your first page of PHP generally contains an IF statement to check if logged in by checking a cookie (data stored on the user's computer). It also connects to a database and has some basic variables set. From there you can require other pages based on both the user and a page ID. Here is a brief explanation and differences between common data types used in PHP. PHP - This is the source of it all. Global information and data is put here. Think of it as a template, you have a place for the user's name, level est. to go into but they are not their yet. MySQL - All your "changeable" data such as usernames, levels est. are stored in databases so you don't need to write your HTML/PHP page for every user. This data can be changed with PHP MyAdmin read this: Overview of setting up MySQL and Connecting. In our example this is the name, level est. that is inserted into the PHP. Cookies - Since all your data is in a database and you can select it you need to make specification on the user so that John Doe doesn't have get Jain's info. Most PHP sites use WHERE tags that check for a "password" from the user's computer. You can do this two ways: make the server check the WHERE for the IP or even better have the server get a cookie (data received from the computer that was set by the server) read this: Cookies. This is also used a lot for identification but CANNOT be trusted because people can change both their IP and Cookies. In our little example, this is usually used as the key to your office "template". Insert in your key and either get rejected (3 rejections you get kicked from the building all together) or get into your unique office. I know that is probably way confusing but it is good to know what everything is. Look through the tutorial section of Xisto to find just about everything about PHP. I also like to use: Tizag for MySQL and I have heard that people love W3 Schools. Good Luck, Sparkx -
That seems like a lot of work to count the number of visitors. Also how safe is it? I get a little worried when you try to edit actual files rather then using a database. This is how I would count visitors using a database: <?php //Updatemysql_connect("localhost", "username", "password") or die(mysql_error());mysql_select_db("database") or die(mysql_error());$row = mysql_fetch_array(mysql_query("SELECT * FROM info WHERE ID='1'") or die(mysql_error())); $count = $row['count']+1;$result = mysql_query("UPDATE info SET count='$count' WHERE ID='1'") or die(mysql_error()); //Displayecho 'Visitors: <font color="#FF6600">'.$count.'</font>.';?>This method is great and very secure unless you don't have MySQL access. Otherwise your script would be the only option and would work good as long as you made sure your server only allowed editing of that file only and only from the server itself (not an external server/hacker). Your script is still good to know though because when you get into more advanced things you might need to actually save a file to the server (for example when someone is installing your open source code on their server). Sparkx
-
Mysql - So Hard Come in here if you think MySQL is soo hard
sparkx replied to Cain1405241557's topic in Programming
Actually to be honest I thought MySQL was pretty easy. Simply connect to a database then you can get all the results simply by using an * and arraying the tables. The only trouble I have ever had (and I’m still having so if you have an answer please tell me) is connecting to a MySQL server from an external location for example a clients download. Other then that I had no problem learning MySQL. You should use this site if you need help with it: here. It is very simple and good to use just for documentation purposes or if you forget the format of something. The only thing to watch out for is MySQL injection or hacks. I believe the website above has a basic solution for them if you are using PHP. Good luck at learning MySQL and don't forget it is less complicated then you think. By the way one nice thing about MySQL is that it is almost identical in every language ex PHP, Java and C++. Sparkx Also wutske I have never seen a MySQL code that complicated... I wish I would have known about the sooner, probably would have made my life a lot easier then when I was trying to loading two or more tables with lots of statements (that was fun...). yaoersd just a suggestion, try making longer posts, they look better on hosting applets. -
As stated before MsConfig is probably the best way to do this. Sometimes however it doesn't work (I don't know the exact reason but it seems to miss some files). To fix this problem you should start up Windows in safe mode (press F8 at startup) then try MsConfig again. If the service continues to startup then try RegSeeker (it is freeware). For some programs if you delete the Startup entry rather then just disabling it then the program doesn't startup anymore (I’m not exactly sure why simply disabling a program doesn't always work). If the program continues to run, head on over here and be the first on your block to use Linux. As always, while using MsConfig or RegSeeker, be careful not to turn off necessary programs as they might make your system unstable. Hope this Helps, Sparkx
-
I agree Sun probably (and hopefully) won’t make MySQL commercial. Java is free and they could easily make that cost money. I wouldn’t be surprised however if they make a professional version and a free version of MySQL. I have just one question. If this version of MySQL is good enough for my use now, then in the future if they make it commercial, would it be possible for me to simply not upgrade? As long as I accept the fact that the current database may be hackable within a few years.Thanks,Sparkx
-
Looks very simalar to .co.nr but without ads. Can anyone tell me what dns is? Make sure your posts are a little more in depth next time. Just reading it brings up multiple questions such as can I turn off frames? Is my site displayed as a frame so every page has example.co.cc or can I set it to be example.co.cc/folder/my_page_on_Astahost.php? Other then that it looks like a good site to use if you dont want to buy a domain. I also read that it has a costomizable email. I might look into that if it allows POP forwarding...Thanks,Sparkx
-
It’s good that you posted links rather then just quoting tutorials or worse not quoting them... I never understood why you can find 1000s of tutorials about HTML but you are lucky to find 5 good ones about actual programming. Anyways if I made the post I would have put... Reasons why not to use frames. --> How to stop using FRAMES? Why sound is annoying. --> Don’t use it or at least make an off button and have it default off. Other then that they are good tutorials as long as new programmers know that it is not always cool to load up their site with un-necessary effects. Which is probably the more important then HTML itself. My Opinion, Sparkx
-
Have You Ever...? liked a website that....
sparkx replied to FirefoxRocks's topic in Websites and Web Designing
Dilbert.com isn't so bad but definitely acceptable for a large site like that. In my opinion Hotmail is one of the worst sites compared to how popular it is. I don't get it how they can force effects on you or make it so when you log in you get 404 half the time and the other half the time the cookies don't store correctly forcing you to login twice. Maybe I am the only one experiencing these problems but I get the errors on multiple computers on all web browsers. I also prefer non-flash websites and sites that don't use too much java script. Yahoo’s new mail is like this and runs real slow on my computer. Is it just me or even computers a few years old getting outdated for even the basic internet? I agree, how hard is it to make a site that works? There are lots of sites out there that teach how to make your site look professional. People think just because they know how to program that they can make their site however they want and people will like it. Some day people will find out that a basic site that works is better then one filled with effects and glitches. Thanks, Sparkx -
I don’t think the owners of Yahoo! ever considered selling to Microsoft. They simply heard the offer because they had to and because of share holders. I (not invested in Yahoo!) like the fact that Microsoft didn't buy Yahoo! It seems like Microsoft messes up everything it gets a hold of. That is just my opinion. I hope that Yahoo! starts to offer more things to people for free (ex. POP3 email) a few changes could set them in front of other email providers such as MSN. But people may soon move from Yahoo! and MSN to Google. After all if it wasn't for Yahoo! Finance I would no longer need a Yahoo! account and just a Google account. I just hope that Yahoo! comes out of its finance trouble. It would really show Microsoft that they haven’t taken over the web just yet.My Opinion,Sparkx
-
How Bad Are Is $0.03 For 2 Clicks On Adsense?
sparkx replied to LegallyHigh's topic in Online Advertising
No add software pays very much per click and $0.015 is a lot relatively (correct me if I am wrong). Because of this most sites that use add software are larger and receive millions of clicks on advertisements (which does bring in quite a lot of money). For new sites however I suggest (and some people will agree with me) that you do not put ads on your site simply because it makes a site look trashy and if you are not getting many clicks anyway it isn't bringing in much profit either. As far as I am aware you can set your preferences on the types of ads that are displayed simply buy describing your site on the settings. Google Adsense will automatically find sites that are relevant to your description and display them on your site. Sometimes sites that are relevant are displayed but others they are completely irrelevant. Making a good description should help. I think that you can add your advertisements to any site no matter the domain as long as the site allows you to add HTML and JavaScript. You cannot however recommend or tell visitors to click on ads. Other then that, you shouldn’t have a problem with having a domain rather then sub-domain.Generally Google pays per million clicks (and may have a possible pay per million views). The amount of money earned shouldn't be affected by anything else (the only thing might be page rank but I don't think that matters).Hope this helps,Sparkx -
3=2 ! Ramanujam's Proof!.... Can U Find Any Flaws?
sparkx replied to shiv's topic in Websites and Web Designing
I know these tricks with math you bend 1 or 2 rules that are so basic that most people forget about them and don't realize what has happened. An example and simple variation of this trick uses division by 0 which cannot work because anything times by 0 is 0. So the lesson works but there are exceptions to them. All the lessons before work in real math except division by 0.5=2add 1 to each side5+1=2+1 --> 7=3still false but wait divide both sides by 0.7/0=3/0 --> 0=0Therefore5=2 I believe I found the problem: (3-5/2) 2 = (2-5/2)2. This equation is flawed: a2 – 2(a)( + b2 = (a-B)2 try reducing in you get: b=2a-2b. I don’t think that’s correct.Now I’m not the best at math but it makes since that the equation doesn’t work.Thanks,SparkxEdit: Smilies are anoying... -
Thank you very much for replying. My problem did have to do with permissions for local files. I finally got it to work by signing my applet and using the keytool. Now I can access local files and it works on Xisto and the object loads just fine (without color but that is probably because I messed up when I exported my .obj file). It seems like you know lots about java maby you could help me out in the future if I get some more errors.Thanks again,Sparkx
-
The regular 3X3 only takes a few minutes for most people to complete. You really cannot do it face by face but rather making it from the top down. Once you know how to do the rubics cube it is very easy to do allowing some people to do it with their eyes closed. Once you know how to do the 3 by 3 you can do any odd number one (assuming that you can get the middle pieces correct). I think their is a guy that can do a 3 By 3 in just 11 seconds but I am not sure if that is true. Seems a bit too fast unless you already knew were all the pieces were. Anyway I can do all 6 faces but I don't time myself I on it. I know it doesn't take more then 2:30 for me to do it which is about the same amount of time that most people can do it in. So it's not strange to do all 6 faces, its the person that can do 5 that makes you wounder....Thanks,Sparkx