-
Content Count
122 -
Joined
-
Last visited
Everything posted by pasten
-
You cannot have login system like that, where the visitor enters his google login information to access your website. And you are right, you can have login system from google where the visitor enters his google login information to access features provided by google on your site (facebook connect). However you can use OpenID to enable the visitors to log in to your site using thier OpenID. OpenID is an ID which a visitor can use to login websites who have OpenID incorporated in thier websites. It is being used in thousands of websites. You may visit these websites for more information:
-
After showing off "Nano" the world's cheapest car, now its the turn of Laptops. As promised Indian government unveiled a cheap 20$ Laptop at National Mission on Education launch in Tirupati, Andhra Pradesh. The project was conceived in order to boost the educational infrastructure in India. Two years before, the Indian governemnt rejected the offer of 100$ laptop of MIT's Nicholas Negroponte, and now it seems to have given back the reason. As of now, they are still testing the prototype and would take about six months to launch it commercially. Have a look at some of the specs told: 2 GB memory, WiFi, exapandable memory, ethernet and a lowly 2 watts power consumption. It seems that they have unveiled it a bit too early, with no other important specs. Nothing much of it can be expected until we atleast see a photograph of it. Also it is seen that the cost usually rises when it reaches commercial production as it happened with OLPC OX, for which the price came to around 200$ when it was offered to Indian government. But wait! If this works out to be true, we would soon be seeing Indian children carrying laptops to thier schools, a change which would improve the current scenario by leaps and bounds. Also the governemnt has plans to tie up with leading publishers to provide content on educational subjects, of which 5% would be free. It is also planning to provide broadband to even more universities and schools at subsidised rates. With broadband internet still messed up in India, we have to just wait and watch what happens next. Source:Times of India Update: Here's a picture of the prototype. It seems the price is rising from its inital 10 dollar. Stay tuned for more turnarounds...
-
Drop downs are something which happens in the visitor's browser. And PHP is used for dynamic page generation which actually happens in the website's server. You can't make drop downs using PHP (appearance not content wise, but that too using either CSS/Javascript). But there's something to cheer up for you. You can create very nice drop down using CSS only. As for the examples, you can find dozens of menu's at CSS Play.
-
Just go to "Tools" in explorer and click "Folder Options...". Once there check the box next to "Remeber each folder's view settings". And before that you should reset all folder's view which is located at the top of the dialog box. I hope that should work, because as you told the settings are resetting, that is, it is applying the default view. So checking the box should maintain each folders view separately.
-
The Best Media Player Which is your best media player?
pasten replied to finaldesign's topic in Software
I use Power DVD to watch movies and Winamp to listen music. Power dvd has really good features like up to 2x live fast forwarding, changing the tone of audio and video quality. With built in snap shot I do take a couple of snaps, for using it in my web album. I like the useful plugins for winamp. Even though I would listen to original music quality, but sometimes jazzing the music a bit feels awesome. -
Lot of negative comments in the beginning. Anyway, the site is very good and it does what it shows on about page. It has really useful and popular softwares. Very clean layout. Its way ahead by tens of miles compared to download.com and softpedia in accessibility and information it gives about files. I had a couple of downloads of old version of my favourite softwares, reliving the past memories of using these softwares.
-
Your daughter is truly a gifted child. Very few are born with such accelerating abilities which I would call otherwise. I too have seen some parents who have smart children. One such case the child was so good academically that he was promoted directly to 8th grade from 6th. They got such permission from concerned authorities. But what I think, skipping grades is not a wise thing to do. The child would grow in a somewhat different environment which would affect his/her life in the future.If I had such a gifted child, I would never do such a thing. Instead I would ask what he/she likes and give the child all the coaching and support. Anybody would be bored if he is comfortable and knows what he is given to learn. Childrens are very eager to learn new things. What such a child wants is more and more knowledge and resources to learn. It wouldn't necessarily come through academic qualification. Giving him exposure to sports and other extra curricular activities which stimulates mind would help to quench the thirst for learning more.?Another thing what I have observed is, a gifted child who always outperforms and has exceptionaly great skills tend to become normal when he grows.
-
It seems the problem is with OS (windows) and not the hardware, since you told that Ubuntu was loading but couldn't recognize the HDD format. Try Puppy Linux, I've used it and was able to access all the partitions. But if you have NTFS formatted HDD then there might be some problems to backup up the data. You can have a look here for more info. You can also try NTFS clone. NTFS Clone Download. To avoid these unavoidable crashes in future, you can always have two windows installations in two drives. Also you can have a backup of the C:\ on another drive. So when C:\ drive screws up just login using other installation and restore the files in C:\.
-
Games In Dos Show your age. whats your favor dos game
pasten replied to Echo_of_thunder's topic in Computer Gaming
I didn't like any of the FPS genre games in DOS. Really. I never liked it for some reason. The game I played and like the most:Alladdin: Its a 2d platform game. The reason I like it is because it has a great story line and truly immersive, fun filled and enjoying. My second favourite is Prince of persia which I have always been playing even today, in its gorgeous 3d versions.I consider "Dangerous Dave" as the classic game ever created for DOS. The author John Romero created a truly challenging and compact game. -
Apart from some of the above answers what I know is, XHTML will standardize the coding format to be viewable in most of the devices including computers like Mobile phones, PDA etc ie. most of the other platforms. The reason is that the technological development of browsers in other platforms are not as matured as in pc, hence they will be able to directly take the advantages of stricter xhtml.
-
Designing Vs Templets Which do you prefer?
pasten replied to Echo_of_thunder's topic in Websites and Web Designing
Designing a website is an art. I have seen many beautiful templates which often leaves me spellbound. But when I see its code I find that they are not usually w3c compliant or uses good coding techniques. I would say that, usually a highly learn't web designer wouldn't be able to create beautiful template while a basic web designer would be able to create more beautiful templates from his limited knowledge. I admit that there are exceptions, who are good in both.I learn from these beautiful websites and apply it to my templates. The reason why I usually don't use others templates is because they have different coding techniques. And I always carry my own set of boilerplates (basic html, css files). If I go with a free template, even if it is beautiful the thing is that it has been used in dozens of other websites, not a good idea for a long term website. -
If html attributes are not working, ('marginheight' and 'marginwidth'), then try CSS:pyost's suggestion might work. I usually nullify the margins and padding: html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dd, dl, dt, li, ol, ul, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td { margin: 0; padding: 0; border: 0; font-weight: inherit; font-style: inherit; font-family: inherit; font-size: 100%; vertical-align: baseline; }
-
What you should know: HTML, PHP basics (executing php scripts) Examples: Using AJAX Using iframe Download Examples Using this script you can display a random quote/fact every time a visitor clicks the link. It happens dynamically without reloading the whole page. Useful for keeping a site fresh and lively. For example, you can have it in "About Me" page of a website which is rarely updated. All the quotes are stored in a text file separated by a line break. Although I have included a sample collection, you are free to modify or create your own. Thanks to David Pye for offering such a huge collection of facts. His site too contains a random line fetcher, but what I am going to tell is a bit different and will also contain a link to view another random quote without refreshing. If you are interested in this script, I recommend you go through this tutorial instead of just downloading the script. Because, the files in the download was actually made for one of my friends static php website and hence contains a lot of bulky code and styling which might confuse you. Using AJAX: Ok, so first we will use AJAX and the php script which displays the output. Let's save the script as did-you-know.php: <?phpsrand ((double)microtime()*1000000);$f_contents = file ("did-you-know.txt");$line = $f_contents[array_rand ($f_contents)];print $line;?>You can download "did_you_know.txt" and save it to the same directory as your php script. Bascially, the whole text file is saved into an array and then a random row is extracted using php's built in function array_rand(). array_rand() can also extract several lines by supplying an extra argument that specifies how many random elements you want and it returns the keys for them in an array. Now for the main display file which shows the quotes. Save it as anything like random-quote.php: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; <html xmlns="https://w3.org/1999/xhtml/; <head> <title>Random line fetcher - Using Ajax</title> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <script type="text/javascript"> //Create a boolean variable to check for a valid Internet Explorer instance. var xmlhttp = false; //Check if we are using IE. try { //If the Javascript version is greater than 5. xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { //If not, then use the older activex object. try { //If we are using Internet Explorer. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (E) { //Else we must be using a non-IE browser. xmlhttp = false; } } //If we are using a non-IE browser, create a javascript instance of the object. if (!xmlhttp && typeof XMLHttpRequest != 'undefined') { xmlhttp = new XMLHttpRequest(); } function makerequest(serverPage, objID) { var obj = document.getElementById(objID); xmlhttp.open("GET", serverPage); xmlhttp.onreadystatechange = function() { if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { obj.innerHTML = xmlhttp.responseText; } } xmlhttp.send(null); } </script> </head> <body onload="makerequest('did-you-know.php','fact')"> <div> ďż˝<div id="fact"></div> ďż˝<a href="did-you-know.php" onclick="makerequest('did-you-know.php','fact'); return false;">Yes! Next one please...</a> </div> </body> </html> The basic javascript defines an instance of the object depending on whether the browser is IE or not. <body onload="makerequest('did-you-know.php','fact')"> The body onload displays random quote when the page is first viewed or when it is refreshed. <a href="did-you-know.php" onclick="makerequest('did-you-know.php','fact'); return false;">Yes! Next one please...</a> onclick invokes the function makerequest which calls the php script and puts the quote in the div with id "fact". That\'s all. Now upload all the three files and view "ranom-quote.php". I was unable to execute it correctly in IE. Any help, please? Here is the complete short code as given above: barebones_using_ajax.zip. Using iframe: In the mean time, I have created the script using iframe. Its very simple, any way here is the modified visual for it (random-quote.php). The php script (did-you-know.php) is the same as given above. Here we don't require javascript at all. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;<html xmlns="https://w3.org/1999/xhtml/; <head> <title>Random line fetcher - Using iframe</title> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> </head> <body> <div>Did You Know?</div> <div> ďż˝<iframe src="did-you-know.php" id="fact" title="fact"></iframe> ďż˝<a href="did-you-know.php" target="fact">Yes! Next one please...</a> ďż˝ </div> </body> </html> Update: External download links not working. Download the attachments. did_you_know.zip
-
Opaque, what would you want to tell about the new package "Unmetered hosting", where the customers get unlimited space, bandwitdh, features. Because it has been already released and you haven't made any comment on it. I know that it is governed by strict rules and poilcy, and I am eager to see the agreement policy.
-
How about "Best Tutorial of the Year". It would be nice to have. And when I was thinking about myself, how about "The Least Poster of the Year". I mean the person who has posted the least number of posts since he joined this forum. Just an idea. Its interesting to see so many categories.
-
Prerequisite: Basics of HTML. Download example Creating_common_navigation_for_a_website___Part_2.zip (.zip) (needs a php enabled server to view the result of the scripts) The first part of the tutorial (click here) described the method of creating common navigation for websites using pure html. That was posted almost a year ago. I happened to visit that, and thought to write a second part for it. As the previous article this article too is for absolute newbies guiding them to create a common set of links for a website. But this method uses PHP scripting. If you don't know what is PHP, for time being just know that the method described ahead will work on any free/paid web host offering php. Also don't worry about the php code, just read a basic php tutorial and you will be on the track. If you are php developer then you may also read the latter part of the article and leave your comments about it. Ok, so let's get started. 1) Firstly, create an html page containing all the links which you want to appear on every page of your website. Name this file as "nav.html". The html code should look something like this: <p><a href="page1.php">Page 1</a> | <a href="page2.php">Page 2</a> | <a href="page3.php">Page 3</a></p> You would better link those files as site relative (for example http://forums.xisto.com/no_longer_exists/). This will enable you to create any number of subdirectory combinations. 2) Now create the pages "page1.php", "page2.php" and "page3.php". But... wait, if you are using windows there is a problem in creating those files. So, first select the "Tools" menu, then select "Folder Options...". In the popup box select the "View" tab and uncheck "Hide extensions for known file types", press OK. Now right click anywhere and choose "New" "Text Document" to create the files. 3) In each of the pages, at the top of document, even before html tags/doctype you need to add the following code: <?php//universal include function for site wide includesfunction incfile($file,$d=""){ for($i = 0; $i < 5; $i++){ if(!is_file($d.$file)){ $d.="../"; }else{ include ($d.$file); break; } }}?> The code contains a simple php function which, when processed adds "../" after each loop until the path is correct. In simple, this function allows you to make upto 5 (change the number if you want more) folders and create a document just containing the code given in step 4. You don't have to worry about the paths at all. 4) Now place this code in each of the page wherever you want to show the link: <?php incfile("include/nav.html"); ?> "include" is the top level folder containing the nav file. You can also have the file in server root, by making appropriate changes to the path. Hey! That's it. You've done. Now if you did till here you know what to do next. Put the files on to the server and open page1.php from the browser. Now you have a common set of links which you can change once in "nav.html" and it is updated for the whole website (may be containing 100's of pages). Advantages: 1) A simple, manageable set of links which you can change anytime only at one place and the whole site is updated. 2) Unlike the iframe method described in first part, this method doesn't add any extra code to the html. 3) Unlike in the iframe method, here, in this method nobody visiting your website can know that you are using a common set of links for every page. Disadvantages: 1) Nothing in general, but just don't go overboard, "include"ing files everywhere on the page. Because each time you inlcude a file, the server has to open the file, read it, transfer it and then close it. So, the website may take a slight performance hit, not noticeable to living beings . 2) This is a solution for very basic websites. You will need CMS (Content Management System) if you want complex, dynamic, interactive websites. Even CMS's use "include"/"require", but that's another matter. Some technical notes for the PHP developers: You may ask "Why can't we use simple php include/require?". Wait... this tutorial is aimed at newbies who don't know much about server side scripting. So naturally they are creating individual pages instead of a PHP-MySQL templating system or similar methods. So what exactly happens is that, when we use include we have to change the path of the include file depending on the directory the current file resides. So the idea was to abolish the usage of default include funtion and automate the path defining process. That is what the function does. As in include/require, there's no need to worry about directory relative/root relative/document relative paths. fsockopen includes are also not a good solution, as they are not enabled by default on most web hosts. I came across that function in one of the php developer forums. One of my friends there told me about it. Actually I don't know who is the original creator of the function. Anyway that is really a creative idea. All the credit goes to that anonymous person. I have just presented you a practical example so that you can learn it and apply those in your projects. Happy coding. Any doubts, comments are welcome. Edit: Corrected malformed codes.
-
What I feel is, when it comes to learning PHP-AJAX, you would better buy some good books (orielly or sams pub). Introductory tutorials, from: smashing magazine.
-
Although tables did make a comeback with the development of CMS and other templating scripts, because it was easier for the developers to code the visual part of the script using tables. But now CSS is again pushing tables away into the dark. One good example is Joomla!, CMS which uses MySQL database. It doesn't use tables for structuring anywhere.
-
How Did I Become A Level 1 From Level 3 Member
pasten replied to SaNJ's topic in Web Hosting Support
Yes, even though its just a rank, but with the credit system 3 those ranks might have been considered for calculating mycents. Who knows? (Only Opaque). -
Yes, open the config file, and change the password. I too had the same problem.?XAMPP?does?store?password?in?config?file. That is XAMPP has changed the default mechanism of phpMyAdmin. I think so.?Another?thing?is?that XAMPP installation creates 3 php config files. So don't be frustrated if you change some setting and don't get the expected result. Just find the one which does the work. I did it through trial and error.
-
I too use ems. Not just for fonts, but for the divs also. Because when we apply ems to fonts only, then the whole layout will be screwed if the user increses the font size. I also consider using %.
-
Well... Actually I don't remember passwords. I have opera wand to remember it for me. Every time I open the forum, the wand automatically inserts it for me. It's more efficient than using a password storing software. Ok, since here we are discussing about ways to create passwords which are easy enough to be remebered by humans but complex enough for so called cracking algorithms, I have a suggestion. Yet another way of forming passwords: We know that we have to insert good combination of numbers and letters to make a password complex. But how? Answer --> Instead of choosing correct english spellings, one could use something like: 1) EchTooEssOhhFoure for H2SO4 (either spaced or joined, giving a bad time for dictionary attacks) 2) 6T9 (for 69) 3) La8 (for Late) after forming the individual words, just combine them either spaced or joined. You can find out more yourself. Just needs a bit of creative thinking, a step aside from english, that's it. If your mother tongue is other than english or you know other language then just use it. Isn't that good? These modified words in your passwords would be second nature to you after you use it for a few times. On the end note, I just want to say, think practical, the master cracker (not the ordinary one) sitting at the nook won't trouble your account unless, what you own is google's root admin account, paypal's super admin account or the like .
-
I regularly practice Taekwondo (similar to well known Karate), and currently holds blue belt. Please,?understand?that?it?is?not?just?about?self?defending?or?anger?management. If?you?practice?this?art,?it?will?reflect?in?your whole?personality,?your?health?in?general.?I?feel?more?flexible,?free?when?I?do?it?daily,?but?when?I?miss?it?even?one?day,?the?whole body feels somewhat numb, I won't feel that freshness in me.