galexcd
Members-
Content Count
1,313 -
Joined
-
Last visited
Everything posted by galexcd
-
I also dislike object oriented programming. When I have a choice between it and regular coding I always choose structured, regular coding. BUT it is sometimes necessary to use OOP (or at least OOP would make it WAY easier). For example if you are creating a game or a simulation where you must control many different instances of an object like an enemy or whatever the simulation is simulating. Instead of creating an array and hardcoding all of the objects into the program it is much easier to make a class and make instances of that class (for me at least). For your ball.animate example, what if the animate function changes ball in some way? that would be impossible using animate(ball) unless you are using pointers which is extremely annoying to me.
-
I actually found some other problems in the code. First you didn't put an open bracket after if($_GET['toolbar'] == 'smilie') but you put a closing bracket. Second you didn't set the variable toolbar in the iframe. I don't know if that was just an example, but if you don't set it it will just reload the actual page. I just set toolbar to notepad as an example. <?phpif($_GET['toolbar'] == 'bbcode'){//display my bbcode reference page here}else if($_GET['toolbar'] == 'notepad'){//display my notepad page here}else if($_GET['toolbar'] == 'smilie'){//display my smilie page here}else{?><!-- Display my chatbox here --><!-- IFRAME code --><iframe src="thispage.php?toolbar=notepad"></iframe><?php}?> Also quick note, spaces and newlines don't change php at all. You don't have to write statements like if and else out like this: }else{}else{ works just fine. It's all just depending on your style, but most people prefer the latter.
-
If it is echoing nothing that means that when you coded the forum for setting the style you didn't name the input correctly, or you are submitting it via get. Can you link us to your website? I might be able to help more that way.
-
If I understand what you want to do correctly, you want to have the page display the iframe if the toolbar get variable isn't 'smilie', 'notepad', or 'bbcode'. And the iframe is going to reference this page except with those variables? Well if that is the case it looks like you are missing quite a few else's Try This: <?phpif($_GET['toolbar'] == 'bbcode'){//display my bbcode reference page here}else if($_GET['toolbar'] == 'notepad'){//display my notepad page here}else if($_GET['toolbar'] == 'smilie')//display my smilie page here}else{?><!-- Display my chatbox here --><!-- IFRAME code --><iframe src="thispage.php?toolbar"></iframe><?php}?> If you don't do this you will have an iframe inside an iframe inside an iframe inside an iframe... well you get the point. Infinite loop of iframes.
-
Hmm well I sure don't see anything wrong with it. Are you sure you are posting the style under the post variable "style"? It looks like its passing the first if statement or something. Try echoing "test" after your first setCookie(). If it doesn't print then thats your problem but if it does... hmm I have no idea. Post back here and tell us what happens. About your question whether Xisto allows non-english sites: Basically no. Your site must be in english but you can get past that rule by having an english translation and a different language translation of your site.
-
The Earth Is Really Flat Its a conspiracy
galexcd replied to galexcd's topic in Science and Technology
Alright just PM me the coordinates of your current location and I'll meet up with you there. I'll bring some supplies and we'll set camp at 15,000. -
Hmm it didn't work for me... Perhaps its because I have an older version?
-
Perpetual Motion A possible pointless thought.
galexcd replied to Dagoth Nereviar's topic in Science and Technology
Perpetual motion may seem as if it is possible at first but been prooved by many to be impossible. Now I'm not quite sure if I belive that or not. I won't take a side just so I can't be proven wrong. I actually think that it is possible because gravity is a never ending force, if only we could somehow harness it we could get perpetual motion... Perhaps if we built a giant track around the entire earth that has a conductor inside that produces electricity when moved around the track and we tie a giant cable to the moon and attack the other end to the contuctor... Eh I'm getting off track. Linekill brings up a good point that eventually when it loses momentum it will go backwards and lose all of its motion.You mention oil and how we are soon going to run out but remember, most of our sources of energy do not come from oil. There are hardly any oil power plants left. People are using wind and nueclear power now. Much cleaner and more reliable. The new technology of hydrogen powered automobiles (i think) will crush teh oil industry as everything slowly transitions to cleaner, more reliable sources of power. -
how are you going to "carry on" the evil group if you were thrown out of it?
-
Theoretical Question - Teleportation? Question 1
galexcd replied to galexcd's topic in Science and Technology
Yes you do make a good point, but even if people say it uses the same atoms and doesn't just kill our original, I still would be too scared to go through one of those things... One because I don't like myself being broken down into atoms and being rebuilt by a machine, and two... If you ever saw the movie "The Fly" you would be pretty freaked out too -
I Actually wasn't planning on posting this one this soon but seeing as I already have my topic fresh in mind from the last theoretical question I guess I'll talk about it... CLONING- As i discussed previously, humans have become greatly advanced with technology. Lets just say for this example that it is possible to make an "exact duplicate" of a human. By exact duplicate, I mean when you have yourself cloned, your clone will be created the same age, with the same memories, etc, and will not have to "grow" like sheep and other organisms have to when they are cloned with today's technology. Ok so they have the technology to make an exact duplicate of you, and you decide that it would be neat to have a clone. So you to and have yourself cloned and the clone of yourself has the same memories and everything that you have. Now picture for a moment that you are that clone, you "remember" the same experiences that your "host" had up until that point, and you would technically not even know that your the clone. You would think that you are the host and finding out that you are the clone would come as quite a shock to you because you remember every detail up to the cloning that your host experienced. This means that when you clone yourself you have a 50% chance of being the clone and a 50% chance of being the original EVEN THOUGH you would really still be the original, but your clone would suddenly realize that he hasn't existed until 5 minutes ago even though he remembers everything. Do you guys get my (perhaps flawed) logic? Ok so lets say that the technology to make an exact copy of one's self doesn't ever exist but we can clone humans the way we clone sheep today, by being grown. If you believe in God (once again bringing up this point from my last topic), would your clone have a soul? So this brings me to my ultimate question for this thread.... What if humans don't discover how to create the exact duplicates of one another(with same output age, memories, etc...), but they are able to clone humans like they clone sheep. Is it moral to "grow" people just to use their organs and other parts to use as replacements when the original host becomes ill and needs a transplant? (Note question idea from the movie "The Island")
-
So over the years I've thought of many strange questions related to math, science, and physics, and there are way too many and they all go way too much into depth to all be put into 1 thread so I shall make separate threads for them all when I think of them. This is my first question which I have been pondering for quite some time... TELEPORTATION- As humans invent and discover newer ways of doing things and new technologies that change the world, teleportation doesn't seem like it could be that far away. I have read a few articles talking about an experiment where scientists actually teleport a beam of light. Now I'm not quite sure how they know they are teleporting that beam of light or it is a new light coming out, but I'm sure they have ways of figuring that out. But I am curious... what will happen when they get to the point of teleporting matter? Will it just make a copy of the matter and destroy the original? Will it send all of the atoms across some kind of tube to the "other side"? What happens when we have the technology to teleport human beings? What if it just copied our atomic structure and "rebuilds" us on the other side, and disposes of our "original" self? For this I need to go into cloning for a moment (not too long because that is what I am planning to write about for my next theoretical question), lets say we can clone a human but not from birth, that we can physically recreate an exact copy of you. Then imagine that YOU have yourself cloned. Your clone would have the same memories and everything that you have. And you keep living your life out through the clone, while your original self is destroyed? I would be fearful of teleportation in the future. What about people, like me, who believe in God? Are we just really animals and flesh and nothing more or do we have a soul? If we have a soul, is it left behind when we teleport? So this brings me to my ultimate question for this thread.... When, and if, technology becomes so advanced that we could possibly have portable teleportation machines, what exactly would happened if we put one of the "teleporters" through the one it is connected with?
-
I will let you rethink your decision on that after i take over the world with technology.... muahahaha
-
Unfortunately, unless they recently changed it, you need to be hosted first before spending the 280 to get the domain Which means no matter what you do, you are going to lose all of your credits silver.
-
Google Map Catches Ufo? whatever it is, it is on google map :P
galexcd replied to serverph's topic in Search Engines
Yes, but I still want to know how he came to the conclusion of a drop of water on the lens.. I'm pretty sure space is cold enough to freeze any water roaming around out there >_> -
Google Map Catches Ufo? whatever it is, it is on google map :P
galexcd replied to serverph's topic in Search Engines
Did you bother to read the topic? The image has been updated. You can't see it anymore! I doubt you even went to the map page. A drop of water? How often does it rain in space? -
haslip's new sig is funny, but alas I labled who's who for all of you guys.... ^____^--------- TikiPrincess ________Saint_Michael--------^ || || jlhaslip (the guy who runs)
-
Watch Star Wars Inside Cmd Watch Star Wars inside CMD
galexcd replied to AcaiR's topic in General Discussion
Indeed this is quite old but I still enjoy watching it from time to time. Just to clarify this isn't the entire movie only about 1/3 of it. This isn't just a windows feature, the thing is on the net, not hardcoded into windows so you can see it on mac and linux too. You just need telnet to do this, contact your ISP for more info on if you have telnet or not. You do not even need to go through all of these steps. Just point your browser here: telne http://forums.xisto.com/no_longer_exists/ to go to it and it will open the cmd automatically if you have telnet support. As I said above, you need telnet. Contact your ISP for more info. CMD is an abbreviation for Command, or Command prompt. If you are on a windows machine you can just go under start> run and type cmd. If you have a mac you can find the terminal under Applications>Utilities. Different distros of linux may have the terminal in different places but I'd check under the applications menu if your on a linux machine. Once again, you do not have to use the terminal to do this, just go to telne http://forums.xisto.com/no_longer_exists/ and the terminal will open by itself and start playing if you have telnet. -
Yes it is quite expensive... I've never seen a keyboard with a lock on it to keep people from stealing it
-
Bleah. Sometimes I have days like that where everything just seems to be going against me. I hate it. I don't blame you. You can totally get revenge on them... Make them feel guilty by telling them that the reason that you feel like you need to escape to the computer is because your parents parents divorced (at least i assume that since your dad has a gf =\) It might not be true, but it will really make them feel bad and most likely lighten up on you...