Jump to content
xisto Community

truefusion

Members
  • Content Count

    3,324
  • Joined

  • Last visited

Everything posted by truefusion

  1. If you are familiar with Linux, you should know that when a PHP script creates a file, although the same permissions may be attached like other files, the owner of the file is different. The owner becomes "www-data" (i believe), and not the one that gets placed upon uploading a file via FTP or the File Manager. The only way to change permissions or edit the desired file is to create another PHP that performs such actions. Same goes for deleting that file.
  2. Here's a similar script only without syntax highlighting but line numbers and line highlight. <?phpecho "<html><head><title>Source Code Demo</title><style type=\"text/css\">body {margin: 0;padding: 0;}td.auto{content: counter(number);counter-increment: number;padding: 5px;margin-right: 5px;background: #eee;color: black !important;}td {padding: 5px;font-size: 11px;font-family: Sans, Arial;}td.content:hover {background: #eee;}</style></head><body>\n";if ($_GET['page'] == "source" && isset($_POST['submit'])){$filename = $_POST['file'];if (!empty($filename) && $filename != ""){$handle = fopen($filename, "r");$contents = fread($handle, filesize($filename));fclose($handle);$contents = str_replace("<", "<", $contents);$contents = str_replace(">", ">", $contents);$contents = explode("\n", $contents);/*$contents = highlight_string($contents, true);$contents = explode("<br />", $contents);*/echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n";foreach ($contents as $value){echo "<tr><td class=\"auto\"></td><td class=\"content\">".$value."</td></tr>\n";}echo "</table>";} else {die ("No file declared.");}} else {echo "<form method=\"post\" action=\"?page=source\"><input type=\"text\" name=\"file\" value=\"File URL Here\" onclick=\"this.value='';\" /><input type=\"submit\" name=\"submit\" value=\"View Source\" /></form>";}echo "</body></html>";?> Syntax highlighting, as you can see, i commented out because it doesn't cover the entire syntax, since the SPAN element gets split up along the way. I also did not include any "verification number," for if it's going to be shown on the page, why include it?
  3. Topic is resolved.Please PM any moderator to continue this discussion. Until then, this topic is closed.
  4. If we are brought back to make up for past-life wrongs, then that means two things: 1. There is a force greater than us that is in control, and 2. this force has established absolute morality. For if morality (right or wrong) was relative, and because people tend to believe that all their ways are right (not wrong), then there would be no need to come back to life, for there would be nothing to make up for in the first place. But to add on to this, what would happen if there is no planet Earth to go back to? What if everything that was destined to fade away has already faded away? How, then, would one be able to make up for past sins? And what if one creates more sins in this new lifetime? They may be bound to an endless cycle. And what happens if one bears no sin in their previous life, where to are they to go? Or what if one finishes paying for their past sins, where to then (assuming this is possible)? Have you gone this far in thought before? One more thing, your post implies that the person would indeed remember their past sins, however, they can't even or barely remember an old face. How, then, would they be able to know of their past sins? [1]If there was nothing before your birth, then how were you born?[2]If you can waste time being nothing, then how can you possibly be nothing in the first place? For if you have the ability to waste time, then you must therefore exist. On the contrary, many who are placed in hard times may seek death just so the pain may end. But the question may come up: if they sought an end, would they want things to start back up again? Does a new life bring no pain? But that's to say that you're only indulging yourself in the present and maybe also the past. It's the distant future where the activity of the brain may prove to be unnecessary. Although there are two ways to consider this, as varalu has mentioned, my feelings about life after death are quite real. I wouldn't necessarily say that my religious upbringing had as much to do with it as my questioning to things have. However, i have found my religion to be more realistic when it comes to life after death. When i look at things, i find it hard not to look at it this way.
  5. I went with an elegant grunge style with this one. Wasn't hard to find renders for this.
  6. Delivis stands out the most for me. I like the way the text has an indent effect to the background, like it's burning through; nice blending. I guess it's the light colors that pull me in.
  7. Just that i enjoyed it as well and thanks for your time. I too have seen what religion can do, and as a believer i must support those that do good and shun evil, though i tend to rebuke evil more than shun. I await to see others' reason(s) for their belief.
  8. [1]I am being rational, and there are things in life that can affect you which you cannot control whether or not you believe in God. You see it in many places (e.g. the cost of living raising).[2]It does have an affect in your life, though insignificant to you, it does affect you—it affects what you know. [3:1]Mhmm. [3:2]The evidence did not come from very few people, it came from many—over 1500-years worth of people. And though they may appear strange to you, that does not mean that the events did not happen, nor the reasoning behind it being false.
  9. Ah, you're not an atheist like i thought you were. You're a Deist. Amazing on how there's a word for everything now-a-days, huh? But i ask you something else, only this time relating to things needed to be proven in order to believe: Do you believe in Napoleon Bonaparte? How about Julius Caesar? Christopher Columbus? If so for any of these, how were they proven to you? Logic is not perfect. Although it is one of our ways to verify data, it is still flawed due to ignorance. If something doesn't make sense, that does not automatically declare it false. And if something makes sense, that doesn't automatically declare true. The way i define logic is in categories. I realise there are different kinds of logic, but i will list a few of my categories for example: hard logic, average logic, irrational logic, etc. If i did not check to see if it were true or not, i would not have believed. On the same note, i'm a Non-trinitarian Christian for that reason. Also, i am not one that gets offended easily, and i am one that welcomes questions, assuming you're willing to accept the answer(s) to these questions. Both can be possible at the same time. You speak in a way that seems limited to one account.
  10. Before i answer your question, i would like to invert your question by asking, why do you not believe in God? [1]If that were the case, what would be more likely to happen: they come up with their own religion or follow one already established? The person would be taking in a subjective view of the world rather than objective. I would say the former would be more likely to happen. [2]Ever read the Old Testament? [3]Please keep in mind that the Abrahamic God should not be considered the same as other gods. Big G is known as the Abrahamic God, small G is known as either a (righteous) human, a statue (i.e. an object) or a god found in another religion. [4]That depends where you live. [5]That depends on who you are observing. [6]Many have all the proof they need and continue receiving it. [7]I believe because all the questions i asked pertaining to my religion were answered in an acceptable and logical way.
  11. Here's the simplest attempt to prevent malware: Discontinue your service with your ISP. Seriously, isn't the majority if not all of this stuff found over the internet? All of the suggestions here deal with stuff over the internet. But a computer without internet these days is a boring one, especially for us web developers—it ruins the whole purpose of being a web developer. The only possible way to gain malware into a system that has no internet connection is through some kind of outside media (e.g. CDs, DVDs, floppy disks, etc), and even then, the malware on those mediums came from the internet.
  12. If he really cared about his daughter, wouldn't he have turned himself in instead of hiring a lawyer? He must really be sorry about his daughter's death by letting a lawyer deal with this.
  13. Glad to hear that it works. But i, too, would blame the fact that you're not closing your MySQL connections. Having too many MySQL connections open at the same time adds load to your MySQL server, and i think by default, MySQL only allows 15 per user. It's a general rule of thumb to use mysql_close() at the end of any page that starts a connection to your MySQL server, but not all pages (e.g. the includes).
  14. Here's a user running WoW through Cedega: link. Does that look like a decrease in performance?
  15. Judging by your coding, i believe this is what you wanted:This is using the Prototype Framework: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-trans.dtd;<html xmlns="http://www.w3.org/1999/xhtml/; xml:lang="en" lang="en"><head><title>untitled</title><meta http-equiv="content-type" content="text/html;charset=utf-8" /><script type="text/javascript" src="prototype.js"></script><script type="text/javascript">function getProducts(id, container){var form = $F(id);var opt = { onLoading: function(){$(container).innerHTML = 'Loading...';}, onSuccess: function(transport){$(container).innerHTML = transport.responseText;}}new Ajax.Request(form, opt);}</script></head><body><select id="products" onchange="getProducts('products', 'container');"><option>Pick One</option><option value="whatever.php">List 1</option><option value="whatever2.php">List 2</option></select><div id="container" style="border: 1px solid black; margin: 3px; padding: 3px; background: #EEE;"></div></body></html>This should be easy to understand at first look, but if you need me to explain, let me know.
  16. Cedega has more game support than WINE, because its main goal is Linux gaming. And you could use a virtual machine to run Windows and its software like VMware Server.
  17. On my computer i have a Dictionary server which i use with Kdict, it allows me to look up terms without having to access the internet, since i have it set for localhost, and you can install different languages, too. For an Encyclopedia, you can install WikipediaFS, i suppose, or do what rayzoredge said and run MS Encarta or Encyclopedia Britannica through WINE. It may not be as good as iLumina Bible, but there is BibleTime; i recommend version 1.63b, 1.64 seems a little buggy. You can use Bibledit to make a Bible for Bibletime if you want. As for peer-to-peer programs, there are popular ones for Linux.
  18. I use PrototypeJS for a project i'm working on. I find it easy to use, and it's very cross-browser compatible. I'm assuming at this point in stage, you're basically willing to accept anything that works and the way you want it to. If i get a similiar concept of yours to work with PrototypeJS, would you use it?
  19. I've been using Kubuntu 7.10 since Tribe 4. I love the fact that they changed from that icky purple color to a nice blue color and modified the graphics up a bit. I also like the fact that they added a userlist to the default login screen. But what i like the most is how their repository contains the latest version of almost all the programs i use. I know stability doesn't necessarily come with the latest version, but i like having everything up to date. I hear 7.10 now fully supports reading and writing to NTFS via NTFS-3g. On a side note, i wasn't able to upgrade from 7.04 to 7.10 properly through the package manager. You're better off burning 7.10 into a CD and using the CD as a repository or just reinstall Kubuntu altogether.
  20. Try this: Replace this.http.onreadystatechange = handleUserslist; with this.http.onreadystatechange = handleUserslist(event_id); Then replace function handleUserslist() { with function handleUserslist(event_id) { Then place the function statement for handleUserslist outside of the function statement that it is in. Save and try it again in other browsers.
  21. Define "support." Linux is missing from their downloads section. The only reference to Linux support is the one quoted in the FAQs page. Novell, the distributor and maintainer of SuSE, the ones that made a deal with Microsoft during Microsoft's patent threat (which was later called off by Microsoft), seem to be the only ones that will be able to install this program, only it'll be called "Moonlight."
  22. I hear Vista's built-in anti-spyware program kills the CPU and hogs up most of the RAM. Many have increased their Vista-runned computer's performance by terminating that process and switching to a more efficient (and better) anti-spyware program.
  23. Maybe it was one of those Windows moments. Vista may be more secure than its predecessor, but that doesn't necessarily include stability.
  24. I don't believe having "this." in front of "http" is a possibility, although, i am amazed Safari managed to still work with it. As for your question: It wasn't added because it doesn't need it—the function has no custom defined options for it. I don't think JavaScript has a W3C standard.
  25. By the looks of it, it contains about three gradients: [1]The background (light green to dark green), [2]the gloss (white to transparent) and [3]another, i would say, white to transparent one that's over the background, but its blending mode is probably overlay to increase the glow on the bottom. [1] From bottom to top, [2] from top to bottom, and [3] from bottom to top set as overlay (and maybe some opacity). That should be all.
×
×
  • 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.