Jump to content
xisto Community

truefusion

Members
  • Content Count

    3,324
  • Joined

  • Last visited

Posts posted by truefusion


  1. The problem is when I try adding "<br/> and "<hr/>" to $somecontent, it doesn't write them and gives me an parse error!
    How can I add br and hr tags in $somecontent? I tried this:

    $somecontent = "<br/>" + "\nName: {$_POST['name']}\nComment: {$_POST['comment']}\n";

    Also would like to add br into the middle of 'name' and 'comment'
    I'm guessing the plus sign in the code snippet is from your knowledge in another language. PHP doesn't do plus signs when combining strings with (and) variables, it does dots. However, the proper way of doing what you want would be (taking a guess at where you want <hr/>):
    $somecontent = "<br/>\nName: {$_POST['name']}<br/>\nComment: {$_POST['comment']}\n<hr/>";


  2. My guess is layer blending, setting the pattern layer with perhaps Overlay. They have two pattern layers, one for the wall and one for the floor. They probably used a layer mask to remove any parts they didn't want on the clothes, etc. I don't think there's much "magic" going on. You'll have to find your own stock image and loop pattern to test it out yourself.


  3. I'm inclined to say it's the major forum upgrade and not the myCENTs script or how many users we have. I remember that by simply disabling the BR bbcode tag, forum performance increased. For me the pages other than the forum index load quicker. If we reduce the amount of queries and processes of the index page, we may see the entire forum increase in performance.


  4. The solution is somewhat simple; the observable problem deals with what seems to be clinging on to what is capable of failing, which in turn does for many or most people (though i'm inclined to say for more). This clinging on tends to involve self-clinging if you will—or at least that is where it starts. Why do we cling on to ourselves first? It's the first thing we feel that we can trust, for the logic behind it appears to be, though perhaps subtle: if you can't trust yourself, who can you trust? So what follows for such an act? As already mentioned, expectations follow; that is, you feel you are capable of making good judgments about anything—because you trust yourself—and therefore you start making judgments. This form of judgment, perhaps in a sneaky way, starts placing trust in other things—things that most likely do not share your interests. Since these other things are either inanimate and or unconscious, or conscious; whether they are inanimate or unconscious, it obviously doesn't share your interest, and is perhaps there just to keep you distracted for the time being until perhaps you get bored of it. Here's the dangerous cycle of getting bored with it: you seek other things which would keep you distracted longer. After serving its "purpose," you seek more things that could distract you even longer. Obviously no material can provide the kind of "security" that lasts forever. So you keep piling up junk until you die—or at least that's the case with many people.Then there is trusting in conscious things like yourself (i.e. other humans, or animals—conscious and physical things), that may or may not share your interest. (The question of whether or not your interests should be supported i'll leave alone and assume that there is nothing wrong with your interests.) If they share your interests, then you're in luck. If they don't, then you may find yourself either searching for those that do or you might "fight" for yourself, that is, seeking to somehow convince the person that it's okay and that they should follow. This form of "fighting for one's self" can be found when someone falls in love with another person: it's called "trying to impress." If you fail to impress and they reject you, another dangerous cycle may occur, some people even ending their lives due to it. But if they're interested, then you're in luck. However, that may be just one field of interest; that is, the other person obviously has other interests they seek to reach. So there's conflict of interests; however, i wouldn't limit conflict of interests here to your interests or another person's interests conflicting with your interests or theirs, for you yourself may have conflict of interests within yourself. Since such a thing is basically unavoidable due to how many things the world has to offer to people, you find disappointment due to perhaps the excitement that came from finding something that is interested in what you're interested in. This may deep down be a way of satisfying the ego, in the sense that if they care about your interest(s), then on at least some level they care about you. And i think that's what it may all come down to, the hidden agenda: seeking something that cares about you, preferably something that won't fail you.So the question becomes: what is conscious and can't fail and cares about me, offering purpose and self-worth?


  5. The problem is located in the fwrite function:

    fwrite ($file, "$name", " " . "$comment");
    Why? Because you're passing it a third parameter that is pure text. What happens when you try to convert a string into an integer the PHP way when the string has no integer in the beginning of it (in your case there is a space character and who knows what $comment equals)? If there is no number starting in the beginning of it but a non-numerical character, then when PHP casts the string to an integer in the background, it'll become 0. Since the third parameter tells fwrite how many bytes not to go over concerning the filesize of the file, you are telling fwrite to write to the file while making sure the filesize remains at 0 bytes. Therefore you are experiencing no errors though there is nothing in the file. The correct way of writing fwrite would be:
    fwrite($file, $name.":<br/>".$comment);

  6. Programming Paradigm Course

    This is a list of videos i found concerning how C, C++, etc, work. It goes into a lot about how they handle memory, hints on good practices, and a lot of other useful information concerning programming in general. You can download each clip in the playlist separately straight off the YouTube website, provided by Standford University. I figured there would be some people who would be interested in this freely-available information about programming.

  7. How does that work?

    Explaining how it works goes a bit deeper than perhaps what you would expect in the answer. First you would need a content management system (CMS). A CMS of this kind would require a database that isn't flat-file based. The database is used for storing the articles and comments and user account information, etc. The CMS allows you to create, edit or delete articles. Through modules or built-in features, the CMS displays the comment management system at the end of each article, of which users who have logged into your website can post comments on the relative articles, unless perhaps you allow for guest or anonymous posts.

    Do I need to hire the service from another company or can I implement it in my site which is hosted with the basic plan at Xisto?

    You can do both, but obviously Xisto would be the cheaper, equal-quality way of doing it.

    Is it difficult to do it?

    Only if you're new to the languages that are capable of producing such a thing, assuming you mean to code it youself. Otherwise it is merely time consuming.

    Can I get the code from a php programmers website or somewhere else?

    Yes, you can. There are many free CMS scripts out there that support a comment system, which can be installed on your Xisto account, provided you meet the requirements, which you should with the Logic Plan or greater. Of course, the other alternative is to code it yourself, but i'm sure that is out of the question. :D

  8. Please good members that I know well here at Trap help me. Help me with some .php code that can perhaps stop them from attacking my site? :D

    We have no evidence that it is him. Regardless, if you can't access the site, how would you be able to put into effect a script that prevents your site from shutting down? As already mentioned, assistance is better off through a support ticket if you have not already done so. You should rely on any firewall and site monitoring that Xisto itself has, suggesting that if there is evidence of an attack, that any IP blocking or other preventative measures be not removed in the future if a request were to be made for their removal.

  9. Here's an old JavaScript script using JQuery i did. You may modify it to fit your needs. This script loops through the images infinitely, and doesn't attempt to preload the images before displaying. It doesn't do an overlap fade, where the next image fades on top of the previous image, but that can be fixed if you convert the anchor element into a block-level element and adjust its size to the current image, then upon fade place the image as the background of it and start fading in the next image, and repeat. I've only been modifying this script based on "necessity," so if you notice anything you don't like, you'll have to adjust it accordingly.

    var index = 0;var links = ["URL_for_first_image", "URL_for_second_image"];var images = ["/path/to/first_image.jpg", "/path/to/second_image.jpg"];$(document).ready(	function(){		banner_rotate();	});function banner_rotate(){	if (!$('#image-rotate').length){	$('#rotate').attr("href", links[index]);	$('#rotate').append("<img id=\"image-rotate\" src=\""+images[index]+"\" alt=\"\"/>");	}	setTimeout(doBannerFade, 7000);}function doBannerFade(){	$('#image-rotate').fadeOut(1250, function()		{			index++;			if (index == images.length){			index = 0;			}			$('#image-rotate').attr("src", images[index]);			$('#image-rotate').fadeIn(1250, function()				{					banner_rotate();				}			);			if (links[index] != "#removeAttr"){			$('#rotate').attr("href", links[index]);			} else {			$('#rotate').removeAttr("href");			}		}	);}

    <a id="rotate" style="border: 0;"></a>


  10. So what does JavaScript allow me to do?

    To add what has already been said to this question, since you seem to be planning on diving into Flash, there's one thing you should know about it: if JavaScript is disabled, the Flash movie won't work; likewise if plug-ins are disabled. This is the trouble with client-side scripting: the user normally has the option to disable features of their browser concerning websites, especially concerning Opera. Cross-browser compatibility is a goal that web designers try to reach. You have to know how to provide a warning to the visitor with these features off on their browser (which some websites fail to do). But it's not hard, it deals with placing the warning within the content of the element. For example, if JavaScript is disabled:
    <noscript>This site requires JavaScript in order to function properly. Please enable JavaScript.</noscript>

    If frames are disabled:

    <iframe>Your browser doesn't seem to have iframe support, please either enable frames support or switch to a browser that does support frames.</iframe>


    etc...


  11. Could you please explain how it works in your javascript code, in the http://api.jquery.com/index/ example I am guessing the index() returns an index number based on the current position it is in of similar elements in our case divs?

    I don't fully understand how it works either :D, i just tried to mirror the example the best i could, as that seemed the only possible way of getting what i wanted. I didn't think i had to repeat "#container div" to get it to work, which was the reason why it took me a few tries to get the proper index instead of "-1" to show up.

     

    Typically you would pass it a string expression to get your object for instance $('#idhere'); but I am trying to find a way where I can pass it an existing object and then filter it down some more with another string expression like $(object+"new expression here"); but it does not obviously work that way. Is there another method of achieving this?

    I've only done similar but with variables: $("#"+var). I believe in your example, object = $("exp"), which would be like saying $($("exp")+"exp2"). If that's the case, then you would use the selector method to retrieve the expression passed; that is, $($("exp").selector+"exp2"). However, this method doesn't work in cases of $(this). Since selector was introduced in version 1.3 of JQuery, if you have an earlier version, you'd have to update your copy of JQuery.

  12. Learning Flash implies learning ActionScript 3, both of which requires a lot of time to learn if you're new to web design. The languages mentioned imply that you mostly want a good looking site, not necessarily a site that works with or makes use of the server other than to retrieve files. Whatever the case, if you want to speed up the learning process concerning medium to high level languages, you should consider learning the fundamentals of programming. But after learning HTML, you shouldn't go straight to Flash, you should then move onto CSS.


  13. Uh, here's my version of it, at least the view. It imitates a selected item and moves only the selected item up or down depending on which button is pressed. Since its selection is kept track by IDs, i used hidden INPUT elements to keep track of their number. If you notice, the INPUT have a name as "item[]", so when you send the form, the server side script would (or should) receive an array in the order that the items are ordered in. I have not tested this script any further than what i have provided, so you'll have to see for yourself whether it can be implemented or if it is useful for you. I believe it performs most of the work you are trying to do concerning the view of the form from what i can understand in your post.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "https://w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;<html xmlns="https://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 src="/path/to/jquery.js"></script><script>var children;var index;$(document).ready( function (){ children = $("#container").children("div"); $("#container div").click(function () { $("div#selected").removeAttr("id"); $(this).attr("id", "selected"); index = $("#container div").index(this); }); });function updateChildrenList(){ children = $("#container").children("div"); index = $("#container div").index($("#container div#selected"));}function moveItemUp(){ if (index > 0){ $("#container div#selected").insertBefore($(children[index-1])); } updateChildrenList();}function moveItemDown(){ if (index < (children.length-1)){ $("#container div#selected").insertAfter($(children[index+1])); } updateChildrenList();}</script><style>#container {padding: 3px;border: 1px solid black;}#container div {margin: 3px;padding: 5px;background-color: #EEE;border: 1px solid #CCC;}#container div#selected {border-color: #999;}h3 {margin: 0;}</style></head><body><div id="container"><button onclick="moveItemUp();">Up</button><button onclick="moveItemDown();">Down</button><!-- --><div><input type="hidden" name="item[]" value="1"/><h3>One</h3></div><!-- --><div><input type="hidden" name="item[]" value="2"/><h3>Two</h3></div><!-- --><div><input type="hidden" name="item[]" value="3"/><h3>Three</h3></div><!-- --></div></body></html>

  14. By "on top" I think you just mean virtual machined? I mean, with VM you can make your other OS full screen as well. I used to do that on my PC here.. I would run XP with Linux in a virtual machine on it, and when I wanted to mess w/ Linux I would make it full screen(alt + shift I think, or something like that) and it would make it look as if Linux is the only OS even on the pc.

    Right, the person was using VirtualBox. However, he didn't full-screen the program, Windows was still running in its own window, but the window was made to appear like it wasn't VirtualBox but as if Windows was its own separate process.

  15. Well, logic says get over the whole mom thing first, then look at the similarities between both scenarios and see if the reason why you like this girl is genuine or not. You imply you wouldn't want it to end if you were to get together; however, if you can't control yourself around other girls or women, then obviously it's bound to end, since it can basically be said that there isn't any love, or not enough love, in the relationship. Relationships are about being faithful.


  16. On the note of running virtual machines, would running Windows XP under something like Ubuntu be fine for gaming?

     

    My reason for asking is that when I run Linux machines under XP, the Linux system is pretty slow and laggy. But I'm assuming that is just because Windows has horrible ram/cpu management and rolling XP through Linux would be better?

     

    I'm a newb to Linux really, but I've heard too many positive things to write it off. I would love a system that I can use for all of my normal things and then a way to play games(I would use the Virtual Machine solely for running XP during game times).

     

    I considered dual booting but I do not want to reboot everytime I go from a game to normal computing and back again. It would just be too much of a hassle.

    There was a YouTube video i came across a long time ago which showed Windows XP running on top of Linux. It ran Windows XP in its own window. You don't catch a good glimpse of it until about 47 seconds into the video, but you see more of it later on in the video (about a little over a minute into the video). I'm not certain how they managed to pull off such a thing, but i've seen some complex Ubuntu documentation on the subject that may have you achieve the same thing (although the user is running Fedora). As you can see in the video, the performance appears to be pretty good for the tasks they're performing. However, since they didn't show a game playing, it is uncertain how it would affect performance, but if even those tasks perform well, then perhaps so should the games, especially if you have a multi-core processor.

  17. 3)Advice and help. An "ask questions" spot.- This could have several sections. It would have topics that are already there but more advice geared. Just for people seeking answers or wanting to help the afore mentioned. A few would be psychology, weight, dating, etc... But for advice only not telling what happened yesterday or posting informational topics for others to read. questions and answers. that would be the difference.

    There's a somewhat recently new forum that was added a while ago called Xisto ANSWERS. Although it was originally meant for guests, forum members have been using it. There's also the Questions and Queries forum. The examples you gave of what could go there may be better off in their respective forums.

    4)Website Bragging-Im not sure if this is already here, but it would be cool to have a forum to brag about your website. There would be ules of course, like only one topic per person, no spamming, be mature, and so on. Just an idea

    It's already here: Website Showcase.

  18. A bit of back ground on me, i am a doctor, a medical scientist.

    there’s no evidence to suggest that you should be wary of canola oil. Nutritionally, it’s an excellent source of omega-3 fatty acids, and has been shown in many clinical trials to lower LDL cholesterol levels (the type associated with coronary heart disease), and total cholesterol. It’s a safe and nutritionally sound choice for cooking but, as with any fat, use it in moderation.

    There's something i noticed from doctors that has its own flaw: labeling HDL as "good cholesterol" and LDL as "bad cholesterol." There's no such thing as good and bad cholesterol. HDL and LDL aren't even cholesterol, they're lipoproteins. Their purpose is to give and retrieve cholesterol to and from the cells: HDL takes from the cells and LDL gives to the cells. They call "LDL cholesterol" bad because of what it does. "LDL cholesterol" is not the cause of heart disease, even though it is the reason why the cholesterol is there in the first place. Your cells need the cholesterol in order to function properly. Cholesterol is also used as a defense mechanism for the cells. Your brain even uses a lot of cholesterol during your sleep. What you don't want to happen is have the cholesterol oxidize, that's what causes problem, for it causes things to build up and clog. That's why you need vitamins, since a lot of them are what they call "antioxidants." People in the far north and far south eat a lot of meat, because you can't really grow anything there, so their cholesterol levels are bound to be higher than what most or many doctors consider to be healthy. If you have low cholesterol, that means if your body needs cholesterol, it taxes the liver for it. The liver makes cholesterol on its own for the cells to use. By eating foods with cholesterol in them, you make things easier for the liver concerning cholesterol, since all it would have to do is recycle the cholesterol gained from your diet. All in all, eating healthy isn't as good if it's not coupled with exercise.

  19. It could be an allergy, but i'm not one to talk on what it could be. I'm not sure what the degree of the phrase "a lot" is, but in either case, you should go seek proper help. We could tell you what to do, but it may or may not help, as we can only guess on the causes. Doctors tend to have a book they can read out of to figure out what the actual cause is.


  20. That's pretty cool but can you also blur just small parts of an image?
    Like if you have a picture of 5 characters of a game, can you blur only the outside around them rather than the entire image?

    Each layer normally equals a frame. Depending on the option you choose, the lower layers may show up during the animation when you did not intend for them to show up, so you may have to mess around a bit further. To blur the surrounding area of the characters you would have to select the area around the character with the Free Select Tool and then perform the blur.

  21. Have any of you used Trillian that can make a solid comparison between it and Pidgin?

    Performance wise, Pidgin wins. When Trillian Astra comes out it may get closer to Pidgin's performance. Concerning plug-ins, Pidgin is the winner concerning cost, since you have to purchase Trillian in order to use plug-ins. However, concerning how useful the plug-ins are it could go either way due to personal preference. But the Pidgin plug-in pack is filled with a lot of useful plug-ins, and the plug-ins are capable of using almost every function that Pidgin itself uses. Concerning platform independence, Pidgin obviously wins. Concerning look and feel, Trillian wins, especially with Trillian Astra. Concerning MSN capabilities, Trillian might win, since most of the MSN capabilities in Pidgin is due to reverse engineering, thanks to Microsoft's restrictions. That's about all the major points i can think of.

  22. And another feature which is not yet implemented in any of the client is the plugins feature... Like in firefox, you can add addons to your pidgin client to add additional features, which you would like to see.

    Most of the other popular IM clients don't have add-on support, but some do, although they may not be as platform-independent as Pidgin is. Speaking of add-ons, after following up the Python d-bus tutorial and documentation on the Pidgin website, i managed to make an extension to Pidgin. You can find the topic i made about it here. I haven't done much research on how to get Pidgin to make use of the plug-in so you won't have to start it separately, so for now it takes up its own space in the system tray. This one i believe only performs the on-screen display, but that was part of another Pidgin extension project i was working on; i just took only the OSD from it. Can be useful for learning purposes if you can't use the extension.

  23. On the Company >> contact details page (http://forums.xisto.com/no_longer_exists/) I have used CSS to make an illustration go at the bottom right of the screen. The problem is, as browser size gets smaller, the image overlaps the text. I would like the text to overlap the image instead. How can I do this?

    Use a background image and align it bottom right instead of it being an element itself, if possible.

    Also, while the site looks fine in Firefox, Safari, Opera etc, when it comes to Internet Explorer, the page expands larget than the screen. It's all laid out on a big table of height 100%. for some reason, IE has a different idea of the 100% height. How can I make the table behave for all browsers?

    Internet Explorer is too unstable for me to test out the page (since i'm using Linux), so maybe someone else can help you out there. The JavaScript you're using for the menus, though, is affecting Konqueror in a really bad way.

  24. Birthing(Now...This might be a hot spot for some. I feel that it should be covered because the child should not be punished for the parents' mistake.)

    Interesting point; noted.

    Well if we did have a national healthcare system I feel it should only cover dire emergencies.
    If you're sitting at home coughing a lot, it should not be covered.
    If you just want to get a physical for school, it should not be covered.
    If you feel you might be sick, but have no real symptoms other than "Maybe I am," it should not be covered.

    And other things that really REQUIRE healthcare.

    And you can dispute the fact that some people may *need* to go because of something like a flu, but at the same time there would be many who would make up reasons to go, without really needing it. It just would not make any sense for us to be spending our tax dollars for those purposes.

    So all in all, I do understand that there are some things that would warrant the health care system, but on the other hand it has to be limited. As the limits open up, so does the amount of corruption(and "stealing") of our tax dollars.

    Right. I was contemplating on whether or not we should give doctors a bonus for actually making better the sick. For people who just think they're sick might actually be allowed all because the doctor knows they will get a bonus out of it, therefore making the system a bit corrupt. Also, the doctor might actually write down more than what the patient actually has, therefore gaining more income because of it. I figured that banning substances within the food we eat which has caused this nation to be one of the unhealthiest countries on earth, like high fructose corn syrup, would help increase health. I was also considering banning unorganic farming, but that would, i believe, cause food prices to raise more than what it currently is, so we would have to first fix our economy before we can even consider such a thing. Also, that may cause companies to seek farming else where, therefore avoiding the laws we have in place. So we would have to probably work with other countries to prevent our companies from dodging the law. That is, if one of our companies own land in the other countries, that piece of land would be subject to our laws concerning agriculture.

    And yes, the type of care that you would get will still be largely based on how much money you have, but it is better than letting people scam everyone else. The fact of the matter is, our government is just like any other business. They have to make more money than they spend or they can not afford to stay open. In the case of the national health care system, their lack of funds would mean higher taxes, thereby hurting all of us taxpayers again.

    Heh. One of the proposals i was contemplating on was limiting the amount of income politicians are allowed to keep or tax them the most, perhaps 35% (or more) of their total earnings. We all know a lot of these people earn money outside of their original salaries, of which would more than certainly, i would say, not only bring us out of debt but also help cover so many other things. Failure to allow such a thing would show just how greedy they are. The unfortunate part being that in order to avoid getting taxed so much, they would seek to "humble" themselves, reducing their earnings to try and keep more of it if possible. This would also show their greed, but it would reduce the kind of income for the States. However, i wouldn't say that because of this "loophole" that this system shouldn't be implemented, for money will come in anyways, and no business i know of would actually seek to reduce their income, let alone customers. The people, of course, would get taxed less based on their total earnings. I was looking into the FairTax thing, and it appears to have similar ideas, but i haven't really done enough research on it to conclude anything about it.

  25. This reminds me of my thoughts concerning thoughts being a chemical process. If thoughts are mere chemical processes, then the chemical process obviously comes first. If it comes first, then we lack free will. That would mean we don't control these processes; matter would be over mind, not the other way around. So how do these chemical processes function? That implies outside interference. But from what? Theoretically, this can be traced all the way back to the ends of the universe, but that also implies that there is outside interference concerning the universe itself. Would we run into a paradox? Would that in itself be proof of a higher, conscious being? Or is mind really over matter and not the other way around?Concerning Bell's theorem, here's the flaw that it is said no one has ever found for it: just because it's logical doesn't make it true. Simplicity hasn't much to do with it not being able to be disproved. Bell's theorem deals with cause and effect; it's really nothing new. It also concerns predictions. An example of Bell's theorem would be a set of dominoes stacked in a huge line so that all would fall. If the first piece falls, the decision has already been made for all the other pieces to fall, even for the ones that haven't already fallen; though in this case, we would be calling the first event the last domino piece, or a domino piece in the middle, which obviously forms a paradox. So Bell's theorem is a bit flawed, as it appears to imply an infinite regression, at least according to your explanation of it.

×
×
  • 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.