Jump to content
xisto Community

dyknight

Members
  • Content Count

    33
  • Joined

  • Last visited

About dyknight

  • Rank
    Member [ Level 1 ]
  1. The Web is shifting, gradually but indubitably, from one that merely provides information to one that congregates information - from an age of information to an age of participation. This new era of the Web has been termed 'Web 2.0'. However, the definition of Web 2.0 is not universally agreed on nor is it ubiquitous. Just what does Web 2.0 mean to you?
  2. ya. That sounded pretty disgusting. Women wear push-up bras and low-cut tops to expose cleavage because men are attracted to them - their breasts, as part of our natural instinct. But women are definitely not attracted to a man's penis, although a very small minority might be.
  3. What is the use of language when he is alone? He won't have anyone to speak to except himself. Though I believe that humans are born to speak, I doubt that he will develop a language since he won't find it necessary. Moreover, he would probably be no more intelligent than an ape since there is nothing to challenge his intellect and develop it. If there is food, he will eat, if there is water, he will drink, because those are his basic instincts.Then the rest will depend on the room conditions. He will probably be curious and want to learn more, but if the room is empty then there is nothing to learn. If he can see the outside world he will probably wonder why is he trapped, but if he cannot then he won't even have the concept of society and interaction, much less question his meaning of life. He will not know about colour, size, and all other concepts within our dimension because there is no one to teach and introduce. He might develop such spacial concepts on his own; he will be deemed to be of another dimension.He will probably live longer than we do, since there is nothing to challenge his body. On the other hand, a weak immunity system and body may accelerate the effects of aging, resulting in a premature death. His brain cells will die earlier, and his other bodily functions will halt and death will come.My guesses.
  4. I don't think we will ever find another life system like ours.The Earth can be said to be a miracle. For any planet to support life, they must be separated from the Sun (their own Sun) by at least 2 and not more than 3 smaller planets and protected by at least 1 but not more than 2 bigger planets. We are separated from the Sun by Mercury and Venus, and are protected by Mars and Jupiter whose gravitational fields prevent comets from crashing into the Earth. This, in combination with a delicate balance of gravitational field strength, ensures that the Earth gets its supply of energy from the Sun while maintaining suitable temperature for life to evolve. Such complex conditions mean that the chances of having another system out there that supports life are very minute. Further, given the extensive space capacity, the chances of us finding them, or them finding us, are negligible.
  5. Yup, Javascript is the client-side scripting language of the Internet. What I would do is to add a short notice on the frontpage to warn the user that he should have javascipt enabled. Without Javascipt, site functions and flexibility are pretty limited.Anyway, for the more experienced, you can add more checks to ensure that you don't pop-up the window unnecessarily. For my example I added a check for submission.
  6. i think he wants to create an installation file.
  7. I have decided to come up with a series of Java tutorials teaching simple Java. This is my first chapter. For this chapter, I will be showing how to write a simple program that: 1. Pops up a JOptionPane, 2. Shows a message on the pane. Classes, Objects Java, as some of you might already know, is a/an (almost) completely object-orientated programming language (OOP). Some of the experts out there may argue that Java is fully object-orientated, but I don't think that is absolute. Some programmers consider Ruby to be fully OOP and Java to be almost fully OOP because Java still uses primitive data types. (I don't know much on this, but if you do, please PM me. I love to learn.) Object-orientated means that the program works with objects. An object is something that contains data and methods. A class defines the object, specifying what information the object should hold and what methods can be called. (methods are also known as functions) An analogy: "Humans" can be considered to be a class. Objects of this class should have a name, an age, a gender, and a bloodtype. The objects should be able to talk, sleep, eat, and see. "John" is an object. His name is John, age 18, male, bloodtype O. Like all humans, he talks, sleeps, eats, and sees. Human -> Class John -> Object name, an age, a gender, and a bloodtype -> information talk, sleep, eat, and see -> methods The Code To start coding, you need Java 2 Standard Edition Runtime Environment and Development Kit (J2RE and JDK, which can be downloaded from java.sun.com) and a compiler. I recommend Dr. Java, which can be downloaded from drjava.org. In Java, everything is held within a class. Even the main method is enclosed within a class. So we start by typing this in: /* Lab 1: File: Lab01.java */public class Lab01 { Now, we need to DECLARE the objects we need (e.g. we need to declare a human "john"): javax.swing.JFrame window;java.awt.Point position; The above declares a window object and a point object, from the javax.swing package and the java.awt package. Next, we need to CREATE the objects we need (e.g. creating John's body): window = new javax.swing.JFrame ();position = new java.awt.Point(200,500); Then we give the characteristics: window.setSize(300,300);window.setTitle("My First Java Program in Lab");window.setLocation(position); Finally, we make it visible: window.setVisible(true); The final code looks like this: /* Lab 1: File: Lab01.java */public class Lab01 { public static void main (String [] args) { javax.swing.JFrame window; window = new javax.swing.JFrame (); window.setSize(300,300); window.setTitle("My First Java Program in Lab"); java.awt.Point position; position = new java.awt.Point(200,500); window.setLocation(position); window.setVisible(true); }} Type the above into Dr Java, compile and hit F2 to run. There you go!. Do leave a message to ask for help if you need.
  8. I am sure all of us have had the frustration of having to retype an entire email from scratch because we accidentally hit "back" or otherwise left the page. As web technology improves and becomes more profound, such problems have found their simple solutions, as displayed by Google on Gmail, Google Calendars, Google Pages, Blogger etc. This tutorial will explore this script used to prevent a user from leaving the page accidentally. In order to achieve this, make sure your users have Javascript enabled. We will be using window.onbeforeunload. Firstly, open up your HTML in your favorite text editor, such as Notepad or Dreamweaver. You will see something like: <html>....<head>....</head><body>...</body></html> Next, paste the following into the script, between the head tags: <script language="javascript" type="text/javascript">window.onbeforeunload = askConfirm;function askConfirm(){ return "You have unsaved changes."; }</script> so that we get this: <html><head><script language="javascript" type="text/javascript">window.onbeforeunload = askConfirm;function askConfirm(){ return "You have unsaved changes."; }</script></head><body></body></html> Save the script and test it in your browser. Try navigating away from the page. A popup pane will appear, asking you to confirm your exit and showing the message: "You have unsaved changes."; Of course, we would like to achieve more than that, such as asking only when the user has made changes to the form. We will need to do this: <script language="javascript" type="text/javascript"> needToConfirm = false; window.onbeforeunload = askConfirm; function askConfirm(){ if (needToConfirm){ return "You have unsaved changes."; } }</script> We first set a boolean "needToConfirm" to false, so that we don't ask unless the user has done something, and this something will change needToConfirm to true. Before unload, the function askConfirm will be called. If the boolean "needToConfirm" is true, the function will return a string and there will be a pop-up window. Else, it will return null and the pop-up won't show. Now we need to add something to set needToConfirm to true. <form> <input type="text" onchange="needToConfirm=true"/> <input type="submit" value="Submit"/></form> The input field, when changed, will set needToConfirm to true. If unchanged, the boolean will be false. However, we do want to note that when the user has changed and SUBMITTED the form, we do not show the pop-up. So we add the following: <form onsubmit="needToConfirm=false;"> <input type="text" onchange="needToConfirm=true"/> <input type="submit" value="Submit" onclick="needToConfirm=false;" /></form> And we result in the final code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://forums.xisto.com/no_longer_exists/ xmlns="http://forums.xisto.com/no_longer_exists/ http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>Untitled Document</title><script language="javascript" type="text/javascript"> needToConfirm = false; window.onbeforeunload = askConfirm; function askConfirm(){ if (needToConfirm){ return "You have unsaved changes."; } }</script></head><body><form onsubmit="needToConfirm=false;"> <input type="text" onchange="needToConfirm=true"/> <input type="submit" value="Submit" onclick="needToConfirm=false;" /></form></body></html> There you go. You might want to save the javascript in an external file and link it, so that you don't have to enter the code on every page. Use the following: <script language="javascript" type="text/javascript" src="[i]your file name[/i]>
  9. hiya. I will say v1 is better. The colours of v2 comes across too gaudy and is too dark - it hides the details and produces a clumsy mess. v1 is more defined and clearer. You might want to add a yellow-orange layer over it and do a colour dodge just to add more detail to the left and right.Hope this helps.
  10. Yes, I have read about it before. I think they call it God's territory, because they believe that God himself has locked up this portion of our brain, hoping to restrict our mental capacities. Think about it for a while. How exciting and fantastic will it be if we can somehow master control over this uncharted region? How much power can we possess? We will have almost unlimited capabilites. The world might turn into what The Matrix portayed - a world without boundaries, the only limit is your imagination. But of course, we won't consider ourselves so invincible then, since everyone else is. In addition, there will be widespread destruction and masscre as people abuse their powers and use them for warfare and combat. If that is the case, then life must have really been a conspiracy. A conspiracy between God and peace, between God and the world, between us and our souls. God placed life and unlimited potential into us. He then made a pact with peace to restrict our capabilities. God placed us on the world, and made a pact to let us rule it, only to realize that we are destroying it. As we endlessly try to reach into our souls, we strive to uncover more of ourselves, trying to remove that restriction that has been placed on us.
  11. There is an easier way. Go to the folder that you want to unlock. Right-click, select the security tab. Then click advanced. Then go to owner. Change the owner, make sure to check "Change owners of subcontainers, folders ..." Apply and close. You might need to open the security tab again and add a user. Enter your username, then click check name, then check ok. If you are using xp pro, you might need to disable simple file sharing. Go to my computer, on the top click tools->Folder Options ->Advanced->uncheck simple file sharing. If you are using xp home, reboot in safe mode, then sign in as admin. else you won't see the security tab. Anyway, this is not decrypt. This is hack/gaining access. Hope this helps. Tell me what happens.
  12. Good morning everyone. Out there in the cyberspace, there are some programmers/scripters who actively and voluntarily share their scripts or sources on websites such as Hotscripts.com, and some even come with ample and professional documentation such as scripts on Freshmeat.net. However, on the other extreme, there are people who ACTIVELY and DELIBERATELY hide their source codes by disabling right click or escaping their HTML scripts. What are your takes? Do you think we, as programmers, should protect our source codes to acknowledge our efforts or share it with everyone in the name of goodwill? For me, I choose the latter. That was how I came to be the scripter/programmer I am today. That was how I learnt. That's how I am going to return it to the cyberspace (maybe not right now...when I get better). Those people who hide their sources in the name of intellectual copyright are ultimately selfish and arrogrant. Of course it may be rebuked that these people do not want their works to get stolen or their credits deleted. Howver, all they need to do is to add a short note in the beginning, stating that if they wish to use their scripts, they must not delete the credits. What better way to show off your intellect than to share your works with the world.
  13. No question at all! Gmail is of course better than Hotmail. Like many of the posts before, I must restate that there is no competition. Use Gmail if you know what is good for you.1. Gmail is much faster. It uses AJAX. Hotmail doesn't. It takes years to load.2. This allows Gmail to have more features, like browser-chat, labels, sideboxes, since they load instantly. Imagine having sideboxes in Hotmail, like "Labels." You click and the whole page loads.3. Gmail auto-saves your drafts. I don't know about Hotmail. It didn't when I left.4. Gmail prevents you from navigating away by showing a pop-up warn when you are in the compose mode. Hotmail doesn't.5. Gmail offers approx. 3GB of space. Take that, Hotmail.6. Gmail Notifier fits into Firefox. Hotmail fits into an external application, MSN Messenger.I don't mind logging in to Gmail and logging out. It is almost instant. I hate signing in to Hotmail. But of course, Gmail chat cannot surpass MSN Messenger.If I have said anything that isn't factual, do forgive my ignorance. I left Hotmail long ago. Check it out: 86.61% for Gmail
  14. I created a hosting account sometime this afternoon. I was able to go in and look around the cpanel, but I didn't do anything. However, a few hours later, I was unable to login. The ftp login using cmd was fine but the cpanel login at http://forums.xisto.com/cpanel failed. I wasted 10 credits changing the password. Please enlighten me.I apologize for using File-> save on the hosting account create page. It didn't manage to save my account info. Where can I get them again?
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.