Jump to content
xisto Community

pyost

Members
  • Content Count

    1,210
  • Joined

  • Last visited

Everything posted by pyost

  1. Aah, it's working all fine for me, and I can say that I really appreciate the new cPanel theme (the default one, if I am not mistaken). The last one, while fully functional, just wasn't professional enough If there is anyone whose account still has some glitch - be patient, it will all be sorted out in a matter of hours, if not minutes.
  2. Just as nightfox said, if you can't find something within the first one thousand result, you either need to refine your query or it can't be found. However, since we are talking about Internet, it usually can be found. And with the right keywords, it will end up amongst the first fifty results in most cases. Of course, you could turn to other search engines, but if Google can't put it in the first 1000 results, why would Yahoo or some other web site be able?
  3. Actually, no. It is still in its beta phase, and only at Xisto. However, if it turns out to be working perfectly fine, and the members find the offer great, it will probably be applied to Xisto, too
  4. The error correcting thing in different browsers is actually quite a funny thing. As you've proven in this example, Firefox will not be able to display code with errors; I am not talking about valid code, since there are so many standards which differ. However, you should follow some general rules - the tags which surround some content should be <tag>Content</tag>, and those which stand alone, like input, br or img, should be <tag />. So, no matter whether a browser displays all the parts of you page correctly, be sure to make the code error-free. Another thing to talk about, when it comes to errors, is the CSS file. When creating one from scratch, make it 100 per cent valid, as this is very important for proper display in good browsers. Why do I say good? Because Internet Explorer is not good. It will interpret the CSS code in a very strange way, and you will probably have to use some "hacks" to fix it. This is why you will have to create errors yourself It is well-know that Firefox doesn't tolerate invalid CSS code, and that a certain line (probably) won't work if it contains an error. On the other hand, Internet Explorer skips some errors (e.g. ignores invalid characters), which leads to a CSS file with no errors. Of course, this method is not recommended, as the code will not be valid, but it is a nice example of how errors can help you
  5. @gingica: That's exactly what I thought of today, but it doesn't seem to be so, since BuffaloHELP posted his last message on 2nd April. Or was it 2nd April in his time zone
  6. I'm not sure if it would be so successful - from mine point of view, it is quite hard to build up 280 credits if each day you lose one, especially since Xisto has a narrower range of topics
  7. Exactly Although the TiSP system is a bit more obvious I.e. there are not many links on the GMail Paper page that would lead you to the "April Fool!" page - actually, there is only one, and that is the Privacy Policy. I'm so glad they've created two jokes this year; as far as I know, it has always been only one. What's more, I find GMail Paper to be the best one yet, when we talk about how real they are.
  8. m^e probably does, I remember him having almost 1000 a few months ago Anyway, another great offer, I'm really glad to see Xisto/Xisto services expanding
  9. I doubt it's a Fantastico glitch, since a professional piece of software like that would never allow such an error to occur. My belief is that the script you are trying to install has a conflict with the PHP version installed at Xisto - version 5. There were many changes in PHP 5, when you compare it to PHP 4, and these include changing some functions/procedures. Maybe different variable order, or a float being used instead of an integer, who knows. On the other hand, the error could be caused not by the compatibility problems, but rather undefined variables and other small mistakes. You best shot is to open the file where the error occurs, find the problematic line, and try to fix it according to the http://php.net/ specifications.
  10. I wouldn't count on it The thing is that http://forums.xisto.com/no_longer_exists/ isn't the real URL - it is a dynamic URL "rewritten" with .htaccess to make the web site more optimized for search browsers. What's hidden behind this folder structure is index.php?someParameters. Since the PHP code isn't "fooled" by this, favicon.ico will not be pointing to coding/favicon.ico However, the issue still remains. I guess you could try removing the type part, but I doubt that would solve the problem. Your best shot might be what turbopowerdmaxsteel - use the absolute URL.
  11. If I were you, I'd make a web site that would do the exact thing. What your father needs seems to be quite specific, so the best solution would be to make a custom script to deal with it. A simple administration panel to control which users can access the web site, an index of documents, an upload page, and a comment form on each page with a document
  12. Wow I haven't seen a design this good in a while. Good use of rounded corners, clean code, good colours and beautiful headers - these might even the best improvement. I also like how they customized the forum to fit the new design, quite tasteful. If they make the default phpBB 3 template this good, they'll attract even more users.
  13. I think I'll be able to write Part Two during the forthcoming weekend, since I'm too busy over the week.
  14. On the Credit Transfer page. There you have to enter your forum information and the member's username you are transferring the credits to. If you want to use the bank, just type in BANK in the "To" field. Sometimes it is not necessary to complicate things, e.g. if you just want to be generous
  15. No. You can transfer your web site to Xisto and achieve the same effect
  16. Actually, the Google Ads aren't in a frame, that's just how Google displays them. As for the rounded corners, it definitely is better to the them with CSS than Javascript. What's more, since your page is fixed width, this can be accomplished with two images - one at the top and one at the bottom, with no CSS editing at all. Of course, if you decide to stick to JavaScript, it's not that bad, as the page looks fine without the rounded corners.
  17. I haven't heard of such a program, but you could make it yourself. That way you would get exactly what you want and how you want it. I've even got an idea how to do it: Three text boxes: files, search and replace In each line of the first one would be a file you want to edit, the second one would contain what to search for, and the third what to replace it with When clicked on "Start", the program would load each line of the second and the third box in a array. After that, the program would load the file contents in an array (again, one element for each line) The program would then search the file array to see if any sequence of members matches the one in the search array - if it does, it would be replaced with the sequence in the replace array Finally, the file would be opened for writing and cleared, and then you'd write the new file array into it Repeat the process for all files Might not be so fast, but will definitely do what you need.
  18. First of all, I would like to congratulate you on creating a valid XHTML 1.1 template, since this standard isn't easy to accomplish But now I must go over to some bad points: two, actually.First of all, the background. The solid red colour is not too pleasant for the eyes, so you might want to consider another colour (a darker one), and perhaps a slightly visible pattern on it. It will put the emphasis on the content and will also look nicer/more professional. The other thing is not that much of a problem, but of aesthetic nature. You have those two link that are used for changing the language, and you have implemented a nice hover effect. Why not do the same with the main menu? It would make navigating easier, since the user would know "what he's at"
  19. I advise you to use Simple Machines Forum as it is one of the most secure free forums. People usually dismiss it because it's complicated (but isn't complicated also detailed, which is good?) and ugly (but you can make look the same as phpBB/IPB/vBulletin!) - those arguments aren't good at all. So what if phpBB has more mods? I am sure there is an equivalent for alsmost every one at the numerous SMF resource web sites; and if there isn't, you can always make on yourself, or have it made. Now, to explain my choice a bit more. phpBB isn't even worth trying because of the bad security, unless it is phpBB Plus, which seems to be working fine. IceBB is still in beta, and that probably leaves it with even more security holes than phpBB (if that is even possible). On the other hand, it is very similar to Invision Power Board (which was the creator's intention), and since I find it to be one of the best forum's available, IceBB might not be such a bad choice. As for the "Other" part, there's isn't much to say - when someone says "free forum", I tend to think about three pieces of software only: phpBB, SMF and YABB. People say YABB is rather good, but I haven't tried it myself, so can't say anything good (or bad) about it.
  20. If I remember well, SilverFox, you said that there is nothing to write about, since it is all already here, right? Wrong! While there might be all the possible discussion topics (which I highly doubt), there aren't enough tutorial to cover all the existing technologies. Now, I'm am sure there is an area you are good at which hasn't been covered. If there is such - just write a lengthy tutorial and get 10 or more points for one post Just give it the best you've got.
  21. Well, look at that I must have switched this feature off some time in the past, since a large part of my posts isn't in English. If that weren't the case, I'd probably be using it all the time. However, when I'm at Xisto or some other English-speaking board, I tend to use the spelling check Google Toolbar has - by clicking only one button, it checks all the text entered on page in different text boxes. It is good because there is no on/off setting, so you can use it only when you want. Actually, I used it right now
  22. Of course, you should do so if you can because Pascal can't really be compared to C#. If you, however, don't know these "complex" languages, starting with Pascal is a good idea. Practically, Delphi is Pascal, just object oriented. Once you've learned Pascal, you can easily transfer that knowledge to Delphi and create serious Windows applications.
  23. As far as I know, you are free to do whatever you want with your credits. That's exactly why there is such option. So, to answer your questions:1. Yes2. Yes. However, you must take into consideration that Xisto won't be responsible for any transaction deals. So, if you get scammed, there's nothing we can do about it.3. Yes, and again, it is just between you and the customer.4. NoIf I am wrong, please correct me
  24. This is the first part of my Pascal tutorial for beginners. Here is what the complete tutorial contains, and it might get expanded (some parts are not written yet): Part One Introduction What do you need to start? The program layout (organisation) and syntax Variables And what if there is an error? "Hello World" Input & Output Examples Swapping numbers Reading and writing multiple variables Part Two Conditions The IF condition The CASE condition Loops The FOR loop The WHILE loop The REPEAT loop Examples Checking whether a number is positive or negative Writing the first positive N numbers Calculating the sum of positive numbers Introduction Nowadays, there are so many programming languages that it is quite hard to decide on which to start with. However, what people usually fail to realise is that it's not all about the language - what use is it if you don't know how to solve a problem? When looking at the problem from that angle, the best choice would be a language with syntax that is easy to understand and learn, while at the same time it is powerful enough for complex operations. Starting out with Java or a C is OK with me, but in my opinion, beginners should stick to something "lighter" - like Pascal. If you have been convinced by the introduction paragraph, continue reading. What do you need to start? Since Pascal is as thoroughly developed as C# for example, you won't have to spend hours downloading the tools. There are several good compilers out there - the most popular ones are Free Pascal and Turbo Pascal. You might find it a bit hard to adjust to using it, but it's one of the best choices, being free. As soon as you acquire a decent compiler, you are ready to go! The program layout (organisation) and syntax As this tutorial is for complete beginners, the programs will not be complicated. This taken into consideration, I will only mention three (somewhat) important "blocks" of a program. At the very beginning of the program there can be a line defining its name. I say can be because this part is not obligatory. It is, however, good practice to use it, since you might find it helpful in the future. The correct way to define the program name is: program programName; "Program" is a reserved word that must be used this way. The second part, "programName", is obviously the program name. It can contain lowercase and uppercase letters, as well as numbers underscores. If you leave out this line of code, the program will work all fine, but if you decide to use it, be sure the name is descriptive enough - don't just put "myFirstLongProgramOMG". The next important part is declaring the variables. You will use these in 99 per cent of your programs, but again, it is not a must-have. The variable block starts with "var" (another reserved word) and continues until the compiler bumps into another reserved word - that tells him there are no more variables. You will be able to read more on this topic in the next chapter. And finally, the main part of the program - the code that will be executed. Simply enough, it should be enclosed between two reserved words - "begin" which marks the start of the code, and "end." (with a full stop) which marks the end. Now that we have the main block, we can talk a bit about the commands. The most important thing to remember is that almost every command must end with a semi-colon. There are some exceptions that will be mentioned later in the text. By having these semi-colons, you are limiting each command, so you can practically write the whole program in one line. Of course, this is not advisable, as it will make your code extremely hard to read. A rule of the thumb is to use a new line for each command, and indent it if necessary. You might also want to put blank lines between groups of commands. Here is an example of am (aesthetically) well-written code: program wellWrittenCode;var // declaring the variablesbegin // command one // command two // command three // command four // command fiveend.Hang on, hang on! What are those double slashes? Those are one-line comments. When writing a longer program, these can help you find a specific piece of code easily. Use them well, and they will prove to be very handy. Anyway, back to the example. Here we have all the parts that were talked about - program name, variable declaring, and the main program. As you can see, commands in each block are indented only once, and grouped if necessary. Later on, you will see the advantage of multiple indenting, when the examples get more complicated. Variables Now we shall concentrate on the "var" part of the program. As already, explained, this is the right place to declare each variable used in the code. For every variable you must use a unique, non-reserved name (consisting of letter, numbers and underscores). Furthermore, every declarations consists of two parts - first come the new variables (their names) and then their type. When declaring more variables for one type, these should be separated by commas. Here are several examples: var var1: type1; var2, var3: type1; var4: type2; "var1" to "var4" are variable names which will be used in the program, and "type1" and "type2" are data types that the variables will be. In the var block, the variables are assigned a data type by using a colon. And don't forget to put a semi-colon after each declaration! Let's talk a bit about data types, since these are very important. In Pascal there are many data types - however, since we are just starting off, I will only mention two, both for numbers. The first, and probably most important one is integer. An integer is a whole number between -32768 and 32767 (this might vary depending on the compiler, but this is the safest definition). The second one is real, and it can hold decimal values (e.g. 25.2341). Its range is quite big, so you won't have to worry about it. OK, so now we have some variables. And how do we assign them values? Quite simple. I guess you remember we used a colon for declaring variables? When assigning them values, we do not use an equal (=) sign, but colon equal - :=. The equal sign is used in true/false statements, which is covered in the next part of the tutorial. To make things more clear, here's an example: program variableValues;var x, y: integer; z: real;begin x := 24; z := 2314.8375; y := 3.1415926; // this line would give you an error, since you are try to give an integer a real value!end.In bigger programs, give your variables better names, so you can easily know which one holds what value. And what if there is an error? In the previous example, we've had an invalid line. In such cases, you would get a compiling error and the number of the line where it occurred. This is usually enough to help you set things straight. There errors are mostly easy to fix if you know the correct syntax. Other things that might produce an error include a missing semi-colon, no "end." etc. On the other hand, an error can occur while the program is being executed. For example, you ask the user to enter an integer, and he/she enters a real number. The program would stop working, all because of the user. That's why, besides being careful about not making any coding mistakes, you must also be careful when dealing with user input. "Hello World" For those not into programming, Hello World might not mean anything, but it is a rather important part of the programming process. Every beginner programmer is advised to make a Hello World program first, so he can get a glimpse of how the language works. Basically, all that this program does is write the sentence "Hello World!" on the screen. Just copy this code into a program and run it (remember, we don't always need the var part): program helloWorld;begin writeln('Hello World!'); readln;end. Short and simple - we only have two commands! The first one, writeln, writes a new line to the screen containing the text specified between the parenthesis. Notice that the text must be limited by apostrophes, and not inverted commas as it is in some other languages. The readln command is there to stop the program from closing itself. If it weren't there, the program would end after writing "Hello World", and the user would see it (it would happen really fast). This way, we tell the program to read one line (the user has to press ENTER), and then close. You can read more about these two commands in the following chapter. Input & Output Output For outputting data you can use two commands - writeln and write. Writeln writes the data and then moves the pointer to a new line. So, several writelns would give you several lines. On the other hand, several writes would print it all out in one line. You can write any variable, as well as custom text (like in the helloWorld program). If you want to write several variables, you can separate them with commas - writeln(a, b, c, 'Text', d); Input Sometimes you don't want to assign values to variables yourself, but have the user enter them. There are also two commands, read and readln. When reading data enter from the keyboard, the difference can't be noticed, so you can actually use both; I advise you to use readln whenever possible. Just like for writing data, you can also choose to read multiple variables: readln(a, b, c); Examples Swapping numbers A user is required to enter two integer numbers, which would then be stored in two variables - a and b. The program should then swap the variable values. For example, if user enters 3 and 4, the program would assign a the value 3, and b the value 4, after which it would swap these values, making a contain 4 and b contain 3. program swappingVariables;var a, b, temp: integer;begin write('Please enter two integer numbers: '); read(a); read(b); temp:=a; a:=b; // we have "temp" so with don't lose the value contained in "a" in this line b:=temp;end. Reading and writing multiple variables A user is required to five integer numbers, and the program should write them in the opposite order. program multipleVariables;var a, b, c, d, e: integer;begin write('Please enter five integer numbers: '); readln(a, b, c, d, e); // reading it all at once writeln(e,' ',d,' ',c,' ',b,' ',a,' '); // we need to have blanks between numbers readln; // so the program doesn't closeend. And that's all you need to know to start learning Pascal!
  25. I don't think this has to do with the server, since I can access both yours and mine web site. It's probably a problem on your side, so it's nothing to be worried about.
×
×
  • 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.