iGuest
Members-
Content Count
72,093 -
Joined
-
Last visited
-
Days Won
5
Everything posted by iGuest
-
I would like to know more about your Solaser TheorySolar Laser: Possible Energy Source in FutureShiv,I have always been highly facinated with solor power, but disapointed at it's overall output. Afterall, the greatest energy source in our galaxy is the sun; can't we get more out of it? I don't think you are over ambitious. Ambition, next unto inspiration, is what has brought us the greatest technological advances in word history. I want to know more.
-
Php Random Text Generating How to Generate Random Text
iGuest replied to szupie's topic in Programming
This is the best i got online, try it..Php Random Text GeneratingGenerate random passwords with PHP In this tutorial I will show you how to generate random passwords that are highly secure and extremely difficult to crack. However you can choose between various complexity/strength and you can set password length as well. Step 1. Let’s go through what we need to generate passwords. First we need a list of words and/or characters what we can use for password generation. I don’t offer using word lists as it is easier to guess and password recovery tools are using such lists as well. So I will focus only on character lists. The idea is to create a string from the characters and than in a loop we select an item from this string (character list) one by one until we reach the requested length. To realize this we will implement a function with 2 parameters. The first is the length of the requested password and the second is the strength/complexity of the password. Step 2. The function use case looks like this: Initializing the PHP random generator using the actual time value. Define 3 variousstrings for the various password complexity. Reset the password andlength counter variables Create a loop until the requested length andappend a random character one by one to the password string. In the loop I made one more check to make all character different in the generatedpassword. Return with the ready password.It is quite simple and you can generate really strong passwords with it. The complete code looks like this:<?phpfunction generatePassword($length=6,$level=2){list($usec, $sec) = explode(' ', microtime());srand((float) $sec + ((float) $usec * 100000));$validchars[1] = "0123456789abcdfghjkmnpqrstvwxyz"; $validchars[2] = "0123456789abcdfghjkmnpqrstvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; $validchars[3] = "0123456789_!@#$%&*()-=+/abcdfghjkmnpqrstvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_!@#$%&*()-=+/"; $password = "";$counter = 0; while ($counter < $length) { $actChar = substr($validchars[$level], rand(0, strlen($validchars[$level])-1), 1); // All character must be different if (!strstr($password, $actChar)) {$password .= $actChar;$counter++;} } return $password;}?>Step 3. To make the script more usable let’s create an html page where the visitor can set the requested length and strength of the password. To do this we will create a simple form with 2 drop down box where the visitor can select the password properties. In this example I set the length list from 5 to 10 and the strength to Easy, Normal, and Hard. When the visitor submits the form it will call itself and in this phase not only shows the form again but processes the submitted values and generates the requested password and shows it for the user. The HTML code is quite simple: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.Dtd"><html><body> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> <table> <tr><td>Password length: </td><td> <select name="passlength"> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> <option value="9">9</option> <option value="10">10</option> </select> </td></tr> <tr><td>Password strength:</td><td> <select name="passstrength"> <option value="1">Easy</option> <option value="2">Normal</option> <option value="3">Hard</option> </select> </td></tr> <tr><td ><br/><input type="submit" name="submitBtn" value="Generate"></td></tr> </table> </form><?php if (isset($_POST['submitBtn'])){ echo '<table><tr><td>Generated password:</td><td>'; echo generatePassword($length,$strength); echo '</td></tr></table>'; }?></body> Step 4. Final words:As you can see generating a random password is not so complex task. You can integrate this script into your registration process to generate a password for the user. The complete script is the following:<?phpfunction generatePassword($length=6,$level=2){ list($usec, $sec) = explode(' ', microtime()); srand((float) $sec + ((float) $usec * 100000)); $validchars[1] = "0123456789abcdfghjkmnpqrstvwxyz"; $validchars[2] = "0123456789abcdfghjkmnpqrstvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; $validchars[3] = "0123456789_!@#$%&*()-=+/abcdfghjkmnpqrstvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_!@#$%&*()-=+/"; $password = ""; $counter = 0; while ($counter < $length) { $actChar = substr($validchars[$level], rand(0, strlen($validchars[$level])-1), 1); // All character must be different if (!strstr($password, $actChar)) { $password .= $actChar; $counter++; } } return $password;}?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.Dtd"><html><body> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> <table> <tr><td>Password length: </td><td> <select name="passlength"> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> <option value="9">9</option> <option value="10">10</option> </select> </td></tr> <tr><td>Password strength:</td><td> <select name="passstrength"> <option value="1">Easy</option> <option value="2">Normal</option> <option value="3">Hard</option> </select> </td></tr> <tr><td ><br/><input type="submit" name="submitBtn" value="Generate"></td></tr> </table> </form><?php if (isset($_POST['submitBtn'])){ echo '<table><tr><td>Generated password:</td><td>'; echo generatePassword($length,$strength); echo '</td></tr></table>'; }?></body> -reply by James Bondze -
I have used NOD32 for a while now, and on an Atom 1.66ghz 1gb RAM system, it works seamlessly. And to be honest, I cant be bothered to change now, after reading this forum...
-
Battlefieldheroes is a like bad graphic game but fun ( diffrent maps) Crossfire good graphics and fun (diffrent maps and moods like mutantion mode ghost mode team deathmatch search and destroy XD
-
hey, I have used Norton 360, Kaspersky 2010, and Nod32 S.S. 4. Norton is just too slow on my new Windows 7 Laptop and used to much memory. Kaspersky on the other hand is very good and gives a decent performance. But when I tried NOD32, that one was my favourite. NOD32 Smart security all the way people. It's fast, uses less memory, very efficient and has great performance. Thats my thought... Now it's your pick... -Ali R.
-
I Design Web in Photoshop But ISSUEEmbedding PSD Files Into DreamweaverI Design website in photoshop but after slicing; importing in dreamweaver everything is fine but I have text issues my graphic design are moving or I wanna text on graphics; I use apdiv but my web page is (Align = center) issue is this I preview in explorer then text moved another place. You have any idea or conversion solution as flash (because flash is full supportable for psd and all editable text) -question by KASHIF
-
hey brandon, u r great. Reseting works perfectly. Thanks.
-
Advice On Eliminating Audio Noise, Please?
iGuest replied to banjosforpeace's topic in Hardware Workshop
Thanks - you have saved me from insanity!Advice On Eliminating Audio Noise, Please?I fixed mine on Win 7 (x64) Also an Asus P6T SE by going to Control panel > Sounds > Playback tab. Then double click Speakers > Click Levels tab and reduce the slider for PC Beep to minimum. I am only using 2 front speakers on my PC, I then found by dropping the sliders for all the surround speakers that I don't use to 0 I could then turn up the PC beep and not have the annoying beeps / pops etc. -reply by Paul -
No QuestionNOD32 vs. Kaspersky: Which Is Better?I would just like to comment and say I have tested many AV's theones I find most effective are Kaspersky,NOD 32, Bitdefender,and Norton. In my oppinion, those are the only AV's which can protect a system from today's current malware threats. The rest of the av's are too heavy orjust have an overall "bad" detection rate. I love NOD32; however, I love Kaspersky way more because I have never got an infection in my PC withKaspersky Antivirus or Internet Security, which I currently use now init. With NOD, I have had many trojans and other forms of malware slipinto the system, although I still love it and recommend it because ofits great protection. No antivirus is 100 percent accurate and noantivirus can detect every threat. There is at least one threat that can make it past every AV, even Kaspersky and NOD. But in conclusion, Iprefer Kaspersky over NOD, although NOD 32 still rocks!! and it willonly continue to get better, I am confident in that! -reply by Slade Lloyd
-
WindowsBlinds replaement?Windows Blinds I am currently using windowsblinds and I agree my laptop does seem slower. But I really like the way everything looks. Does anyone have any suggestions as to what I can replace it with? another download or app or anything of the nature. I also hadnt realized that I had downloaded a trial and not the whole thing and I prefer not to spend any money -reply by michael
-
Need For Speed Shift The new Need for Speed
iGuest replied to *TBC*Killer's topic in Computer Gaming
nfs is running slowNeed For Speed ShiftDear , Is there anybody who can tell me that how can I run need for speed shift fast on my pc I have 2gb Ddr Ram 512 3d Card intel core 2 duo 2.8ghz dvd writer But Yet I face a slow performance of need for speed shift -reply by aatif -
Using VLOOKUP to calculate % using 2007 excelVlookup In Microsoft Excel.Hi I had that issue but worked it out between the two dates how to get how many days paid in advance. Now I'm having trouble using vlookup to calculating the % discount to add to a column titled discount % received. Then after that using the vlookup to calculate the discount% from the actual fees to end up with a balance due. I'm stuck, I cant work it out and have tried numerous times. I have a table 2 columns to the right of my infomration with 1 column with the days in advance and the second column to its right with the . % amounts for days paid in advance. Help Ive tried using tutorials and you tube videos but all I keep getting is NA in the cell -question by rochee
-
Play Buttons ActionScripting for a play button.
iGuest replied to busdriver630's topic in Graphics, Design & Animation
Whats wrong is that you are doing AddEventListener...There is no capital in the A, the code should be: one_btn.AddEventListener( MouseEvent.MOUSE_UP, function(evt:MouseEvent):void { stopAll( ); gotoAndStop(3); } ); -reply by Marzo -
Outlook doesn't work correctly with IMAP. It's not a matter of auto-hate, but since Microsoft leverages their semi-monopoly to edge out competition, their products will sometimes neglect to remain current with industry standards. Same goes for Apple, though they have less of a platform to leverage in terms of email. Not moralizing here, it's just how things are. Outlook is a terrible email client for gmail. Mac's Mail.App is decent. On Mac, Mailplane is good, but costs money. Thunderbird works fine for most things. -reply by thegnu
-
Castle of Heroes is definitely missing in your list. If you ever played Heroes of Might&Magic and liked it, CoH is the game for you. Basics are very similar to HOMM: few races (Orcs, Elves, Humans and Undeads) each having its unique units. You also have resource gathering, castle building, NPC fighting. Turn based combat is here as well. Sounds familiar doesn’t it? But what makes it different is that it’s a free to play MMORPG, so you’re not alone in your adventures but there are hundreds of other people with you there. So if you’re bored at work, school, have nothing to do at home, you’re waiting for your WoW raid to start or need to travel 20 star systems in EvE, I’d definitely recommend Castle of Heroes to you.
-
Databases Benchmark SoftwareBest Performance Databases From Not-so-far Future (published By Parts)Hi,We have created an open source benchmark project at https://sourceforge.net/projects/benchmark/ that includes some of the most widespread databases:- STSdb- Oracle Berkeley DB- Perst- MySQL (server)- MS SQL Server CE- Access- HamsterDB- SQLite- Db4objects- Firebird- H2.We accept proposals from Db4objects community to improve test results.
-
a guys rock its better then rap in any day cos rock haves more hard work to do rock is the best in makes you forget all your problems in makes you wild cos they don't talk about the same **** over and over again like rap rap sucks the only rapper is a little ok is eminem but what I'm saying eminem sucks 100% to so rock and roll is here to stay rock gives more saying into the music the songs it takes a lot of soul and lets not forget the cloths to lol rock for ever for life
-
Physics Behind The Lightsaber Can it become true
iGuest replied to Amadeus1405241494's topic in Science and Technology
Useless without the ForcePhysics Behind The LightsaberAs I understand it, even if you had a light saber, you can't use it without the force. You'd be better off developing your spiritual side and leaning to commune with the midichlorians, THEN worrying about making your light sabre -
Notepad++Where To Find Notepad++ For Linux ?Key features of Notepad++ for me are side-by-side open panes with lockable scrolling, the compare function which aligns matches and highlights changes, while displaying the files side-by-side. And the find function that allows you to find a piece of text in all files from a directory in two clicks.These things make working with Cisco configs and the like so easy. I'd love to find a linux app that replicates these things but I'm not doing well so far.Pete-reply by pete
-
hanging problemFrustrating Problem With XP On Laptop laptop(dell inspiron) ... when I installed avast antivirous in my laptop it not properly installed and after some few minute it not workproperly and it again when I start my pc then desktop totaly hang.I try formating but it shows error in os installing give me proper idea about thiis
-
Stage1 not existRestoring Grub Boot LoaderI don't know why but wen I tryey the folowing commane find / boot / grub / stage1 UBUNTU say: ERROR 15 : File not found and there is not Stage1 in grub directory so I can not recover that how can I recover my UBUNTU grub now? -reply by hassan=
-
Rappelz is a great free mmorpg. If you like to be in a group for exps, it's the one. Great 3d graphics, characters, and classes.
-
Limewire - Pro (free) how to get limewire pro free
iGuest replied to Mark Gleeson's topic in Software
What's Next? I bring my CD's to a party to share them with friends and a cop jumps out of the bushes to arrest me? The only difference between trading CD's in person and trading them over the internet is the medium. Here's a thought...Why don't governments regulate the industry by offering their own file sharing system, endorsed and virus free, from which all file sharing could occur. Every time someone buys a CD in the store, they get a code redeemable for file sharing points. This would preserve both the artists' interests as well as the time-honoured tradition of sharing. Let's be honest -- to share with each other should not be considered a bad thing. To take without giving is the sin. -reply by HoloAaron -
Replying to (G)susanne I think what the point is in quantum mechanics is the multiverse or many worlds interpretation which suggests that there are infinite numbers of parallel universes which may have different rules such ashope, no death.I think also that our concept of reality is really important- if you believe in an afterlife where you'll see your son again then I think as you die you will create such a reality for eternity which is as good as it gets...This may have been what Jesus realised about death
-
I need a software3d Mmorpg Maker Softwere?!I'm 11 (about to turn 12) and I have a small team of 7and we want to make a 3d mmorpg. We got it ALL planned out but we need a software. We tried realm crafter but it failed. We need an mmorpg maker that is 3d, cheap, and works well. Can you help me out? -reply by MMOFREAK